Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure CAR profiles to limit the traffic sent to city A and city B within 2 Mbit/s.
2.
Configure ACLs to permit the traffic sent to city A and city B to pass through.
3.
Configure traffic classifiers to match traffic priorities and the ACLs.
4.
Configure traffic behaviors to allocate ensured bandwidth to each type of traffic and limit
the total traffic.
5.
Configure a traffic policy, bind the configured traffic behaviors and traffic classifiers to the
traffic policy, and apply the traffic policy to the interface connecting the provincial center
server and the Switch.
Data Preparation
To complete the configuration, you need the following data:
l
Total bandwidth of the traffic sent to city A and city B and CAR profile names
l
Numbers of ACLs matching the traffic sent to city A and city B and network segment IP
addresses
l
Priorities of traffic
l
CIR values
l
Traffic policy name and type and number of the interface to which the traffic policy is
applied
Procedure
Step 1
Configure CAR profiles.
# Create and configure a CAR profile to limit the traffic sent to city A within 2 Mbit/s.
<Quidway>
system-view
[Quidway]
sysname Switch
[Switch]
qos car city_a cir 2000
# Create and configure a CAR profile to limit the traffic sent to city B within 2 Mbit/s.
[Switch]
qos car city_b cir 2000
Step 2
Configure ACLs.
# Configure ACL 3000 to permit the TCP packets destined for city A on the network segment
10.1.0.0/16 to pass through.
[Switch]
acl 3000
[Switch-acl-adv-3000]
rule 5 permit tcp destination 10.1.0.0 0.0.255.255
# Configure ACL 3001 to permit the TCP packets destined for city B on the network segment
10.2.0.0/16 to pass through.
[Switch]
acl 3001
[Switch-acl-adv-3001]
rule 5 permit tcp destination 10.2.0.0 0.0.255.255
Step 3
Configure traffic classifiers.
S3700HI Ethernet Switches
Configuration Guide - QoS
2 Traffic Policing and Traffic Shaping Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
76