06-Internet Access Behavior Management

HomeSupportConfigure & DeployConfiguration ExamplesH3C Routers Easy and Effortless Routing Feature Configuration Examples-6W10006-Internet Access Behavior Management
04-MSR Routers Bandwidth Guarantee Configuration Examples (CLI)

 

MSR Routers

Bandwidth Guarantee Configuration Examples (CLI)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2024 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Introduction

The following information provides an example for configuring bandwidth guarantee.

Prerequisites

This document is not restricted to specific software or hardware versions. Procedures and information in the examples might be slightly different depending on the software or hardware version of the device.

The configuration examples were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

The following information is provided based on the assumption that you have basic knowledge of ACL and QoS.

Example: Configuring bandwidth guarantee

Network configuration

As shown in Figure 1, the services accessed by the device include voice services, administrative department services, and common services. Configure bandwidth guarantee to meet the following requirements when network congestion occurs:

·     Expedited forwarding (EF) is performed on the voice service traffic.

·     Assured-forwarding (AF) is performed on the administrative department service traffic.

·     The remaining or idle bandwidth is used for forwarding the common service traffic.

Figure 1 Network diagram

 

Analysis

To achieve bandwidth guarantee for different data flows, you must define class rules that match the data of each service. This example uses ACLs for matching IP packets from different sources, and associates the class rules with different bandwidth guarantee actions.

Procedures

# Assign IP addresses to interfaces.

<Device> system-view

[Device] interface gigabitethernet 1/0/1

[Device-GigabitEthernet1/0/1] ip address 1.1.1.1 24

[Device-GigabitEthernet1/0/1] quit

[Device] interface gigabitethernet 1/0/2

[Device-GigabitEthernet1/0/2] ip address 192.168.20.1 24

[Device-GigabitEthernet1/0/2] quit

[Device] interface gigabitethernet 1/0/3

[Device-GigabitEthernet1/0/3] ip address 192.168.10.1 24

[Device-GigabitEthernet1/0/3] quit

[Device] interface gigabitethernet 1/0/4

[Device-GigabitEthernet1/0/4] ip address 192.168.30.1 24

[Device-GigabitEthernet1/0/4] quit

# Create basic ACLs, and configure rules to match packets sourced from 192.168.20.0/24 and 192.168.30.0/24.

[Device] acl basic 2000

[Device-acl-ipv4-basic-2000] rule 5 permit source 192.168.20.0 0.0.0.255

[Device-acl-ipv4-basic-2000] quit

[Device] acl basic 2001

[Device-acl-ipv4-basic-2001] rule 0 permit source 192.168.30.0 0.0.0.255

[Device-acl-ipv4-basic-2001] quit

# Create traffic classes af-1 and use ACL 2000 as the match criterion. Create traffic class ef-1 and use ACL 2001 as the match criterion.

[Device] traffic classifier af-1

[Device-classifier-af-1] if-match acl 2000

[Device-classifier-af-1] quit

[Device] traffic classifier ef-1

[Device-classifier-ef-1] if-match acl 2001

[Device-classifier-ef-1] quit

# Create traffic behavior af-1. Enable AF and set a minimum guaranteed bandwidth percentage of 20%.

[Device] traffic behavior af-1

[Device-behavior-af-1] queue af bandwidth pct 20

[Device-behavior-af-1] quit

# Create traffic behavior ef-1. Enable EF and set a maximum bandwidth percentage of 40%.

[Device] traffic behavior ef-1

[Device-behavior-ef-1] queue ef bandwidth pct 40

[Device-behavior-ef-1] quit

# Define a QoS policy and associate the configured traffic behaviors with classes in the QoS policy.

[Device] qos policy cbq

[Device-qospolicy-cbq] classifier ef-1 behavior ef-1

[Device-qospolicy-cbq] classifier af-1 behavior af-1

[Device-qospolicy-cbq] quit

# Apply the QoS policy to the outgoing traffic of GigabitEthernet 1/0/1.

[Device] interface gigabitethernet 1/0/1

[Device-GigabitEthernet1/0/1] qos apply policy cbq outbound

[Device-GigabitEthernet1/0/1] quit

Verifying the configuration

# Display the QoS policy configuration on GigabitEthernet 1/0/1.

[Device] display qos policy interface gigabitethernet 1/0/1

Interface: GigabitEthernet1/0/1

  Direction: Outbound

  Policy: cbq

   Classifier: default-class

     Matched : 0 (Packets) 0 (Bytes)

     5-minute statistics:

      Forwarded: 0/0 (pps/bps)

      Dropped  : 0/0 (pps/bps)

     Operator: AND

     Rule(s) :

      If-match any

     Behavior: be

     Default Queue:

      Flow based Weighted Fair Queue:

        Max number of hashed queues: 256

        Matched  : 0 (Packets) 0 (Bytes)

        Enqueued : 0 (Packets) 0 (Bytes)

        Discarded: 0 (Packets) 0 (Bytes)

        Discard Method: Tail

   Classifier: af-1

     Matched : 0 (Packets) 0 (Bytes)

     5-minute statistics:

      Forwarded: 0/0 (pps/bps)

      Dropped  : 0/0 (pps/bps)

     Operator: AND

     Rule(s) :

      If-match acl 2000

     Behavior: af-1

      Assured Forwarding:

        Bandwidth 160000 (kbps)

        Matched  : 0 (Packets) 0 (Bytes)

        Enqueued : 0 (Packets) 0 (Bytes)

        Discarded: 0 (Packets) 0 (Bytes)

        Discard Method: Tail

Classifier: ef-1

     Matched : 0 (Packets) 0 (Bytes)

     5-minute statistics:

      Forwarded: 0/0 (pps/bps)

      Dropped  : 0/0 (pps/bps)

     Operator: AND

     Rule(s) :

      If-match acl 2001

     Behavior: ef-1

      Expedited Forwarding:

        Bandwidth 320000 (kbps) CBS 8000000 (Bytes)

        Matched  : 0 (Packets) 0 (Bytes)

        Enqueued : 0 (Packets) 0 (Bytes)

        Discarded: 0 (Packets) 0 (Bytes)

Configuration files

#

interface GigabitEthernet1/0/1

 port link-mode route

 combo enable copper

 ip address 1.1.1.1 255.255.255.0

 qos apply policy cbq outbound

#

interface GigabitEthernet1/0/2

 port link-mode route

 combo enable copper

 ip address 192.168.20.1 255.255.255.0

#

interface GigabitEthernet1/0/3

 port link-mode route

 combo enable copper

 ip address 192.168.10.1 255.255.255.0

#

interface GigabitEthernet1/0/4

 port link-mode route

 combo enable copper

 ip address 192.168.30.1 255.255.255.0

#

acl basic 2000

 rule 5 permit source 192.168.20.0 0.0.0.255

#

acl basic 2001

 rule 0 permit source 192.168.30.0 0.0.0.255

#

traffic classifier af-1

 if-match acl 2000

#

traffic classifier ef-1

 if-match acl 2001

#

traffic behavior af-1

 queue af bandwidth pct 20

#

traffic behavior ef-1

 queue ef bandwidth pct 40

#

qos policy cbq

 classifier ef-1 behavior ef-1

 classifier af-1 behavior af-1

#

Related documentation

·     ACL and QoS Configuration Guide in H3C MSR Router Series Comware 7 Configuration Guides

·     ACL and QoS Command Reference in H3C MSR Router Series Comware 7 Command References

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网