3 qos example – Amer Networks SS2R48G4i V2 User Manual
Page 190

SS2R24G4i/SS2R48G4i
179
cos8>
no wrr-queue cos-map [<queue-id>]
egress queue; the “no wrr-queue
cos-map[<queue-id>]
” command
restores the default setting.
6.Configure QoS mapping
Command Explanation
Global Mode
mls qos map {cos-dscp <dscp1...dscp8> |
dscp-cos <dscp-list> to <cos> | dscp-mutation
to <out-dscp> | policed-dscp
<dscp-list> to <mark-down-dscp>}
no mls qos map {cos-dscp | dscp-cos |
dscp-mutation | policed-dscp}
Set CoS to DSCP mapping,
DSCP to CoS mapping,
DSCP to DSCP mutation
mapping, IP precedence to
DSCP and policed DSCP
mapping; the “no”command
restores the default
mapping.
22.3 QoS Example
Scenario 1
Enable QoS function, change the queue out weight of port ethernet 0/0/1to 1 2 4 8, and set
the port in trust QoS mode without changing DSCP value, and set the default QoS value of the port to 5.
The configuration steps are listed below
Switch#config
Switch(config)#mls qos
Switch(config)#wrr-queue bandwidth 1 2 4 8
Switch(config)#interface ethernet 0/0/1
Switch(config-Ethernet0/0/1)#mls qos trust cos
Switch(config-Ethernet0/0/1)#mls qos cos 5
Configuration result
When QoS enabled in Global Mode, the egress queue bandwidth proportion of port ethernet 0/0/1
is 1 2 4 8. When packets have CoS value coming in through port ethernet 0/0/1, it will be map to
the queue out according to the CoS value, CoS value 0 to 7 correspond to queue out 1, 1, 2, 2, 3,3,4, 4,
respectively. If the incoming packet has no CoS value, it is default to 5 and will be put in queue 6. All
passing packets would not have their DSCP values changed.
Scenario 2
In port ethernet 1/2, set the bandwidth for packets from segment 192.168.1.0 to 10 Mb/s, with a
burst value of 4 MB, all packets exceed this bandwidth setting will be dropped.
The configuration steps are listed below
Switch#config
Switch(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Switch(config)#mls qos