# Create traffic classifiers
city_a_ef
,
city_a_af31
,
city_a_af11
, and
city_a_be
for traffic sent
to city A. These traffic classifiers match traffic with DSCP priorities EF, AF31, AF11, and 0
and ACL 3000. Create a traffic classifier
city_a_default
for other traffic to match ACL 3000.
[Switch]
traffic classifier city_a_ef operator and
[Switch-classifier-city_a_ef]
if-match dscp ef
[Switch-classifier-city_a_ef]
if-match acl 3000
[Switch-classifier-city_a_ef]
quit
[Switch]
traffic classifier city_a_af31 operator and
[Switch-classifier-city_a_af31]
if-match dscp af31
[Switch-classifier-city_a_af31]
if-match acl 3000
[Switch-classifier-city_a_af31]
quit
[Switch]
traffic classifier city_a_af11 operator and
[Switch-classifier-city_a_af11]
if-match dscp af11
[Switch-classifier-city_a_af11]
if-match acl 3000
[Switch-classifier-city_a_af11]
quit
[Switch]
traffic classifier city_a_be operator and
[Switch-classifier-city_a_be]
if-match dscp 0
[Switch-classifier-city_a_be]
if-match acl 3000
[Switch-classifier-city_a_be]
quit
[Switch]
traffic classifier city_a_default operator and
[Switch-classifier-city_a_default]
if-match acl 3000
[Switch-classifier-city_a_default]
quit
# Create traffic classifiers
city_b_ef
,
city_b_af31
,
city_b_af11
, and
city_b_be
for traffic sent
to city B. These traffic classifiers match traffic with DSCP priorities EF, AF31, AF11, and 0
and ACL 3001. Create a traffic classifier
city_b_default
for other traffic to match ACL 3001.
[Switch]
traffic classifier city_b_ef operator and
[Switch-classifier-city_b_ef]
if-match dscp ef
[Switch-classifier-city_b_ef]
if-match acl 3001
[Switch-classifier-city_b_ef]
quit
[Switch]
traffic classifier city_b_af31 operator and
[Switch-classifier-city_b_af31]
if-match dscp af31
[Switch-classifier-city_b_af31]
if-match acl 3001
[Switch-classifier-city_b_af31]
quit
[Switch]
traffic classifier city_b_af11 operator and
[Switch-classifier-city_b_af11]
if-match dscp af11
[Switch-classifier-city_b_af11]
if-match acl 3001
[Switch-classifier-city_b_af11]
quit
[Switch]
traffic classifier city_b_be operator and
[Switch-classifier-city_b_be]
if-match dscp 0
[Switch-classifier-city_b_be]
if-match acl 3001
[Switch-classifier-city_b_be]
quit
[Switch]
traffic classifier city_b_default operator and
[Switch-classifier-city_b_default]
if-match acl 3001
[Switch-classifier-city_b_default]
quit
Step 4
Configure traffic behaviors.
# Create traffic behaviors
city_a_ef
,
city_a_af31
,
city_a_af11
, and
city_a_be
to allocate CIR
values 700 kbit/s, 400 kbit/s, 500 kbit/s, and 200 kbit/s to traffic with DSCP priorities EF, AF31,
AF11, and 0. Create a traffic behavior
city_a_default
to allocate certain bandwidth to other
traffic.
[Switch]
traffic behavior city_a_ef
[Switch-behavior-city_a_ef]
car cir 700 pir 2000
[Switch-behavior-city_a_ef]
car city_a share
[Switch-behavior-city_a_ef]
statistic enable
[Switch-behavior-city_a_ef]
quit
[Switch]
traffic behavior city_a_af31
[Switch-behavior-city_a_af31]
car cir 400 pir 2000
[Switch-behavior-city_a_af31]
car city_a share
[Switch-behavior-city_a_af31]
statistic enable
[Switch-behavior-city_a_af31]
quit
[Switch]
traffic behavior city_a_af11
[Switch-behavior-city_a_af11]
car cir 500 pir 2000
[Switch-behavior-city_a_af11]
car city_a share
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.
77