Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring QoS (Rev. 03)
Overview
© 2008 Foundry Networks, Inc.
Page 53 of 62
device-name
#
show qos tx random-detect 1/1/3
interface 1/1/3
---------------
queue-set 2
-----------
+==+=========+=========+======+=========+=========+======+======+
|Pr|Green |Green |Green |Yellow |Yellow |Yellow|Weight|
| |Min |Max |Prob |Min |Max |Prob | |
+--+---------+---------+------+---------+---------+------+------+
| 0| 64( 50%)|128(100%)| 10| 96( 75%)|128(100%)| 10| 5|
| 1| 48( 38%)|128(100%)| 5| 32( 25%)|128(100%)| 5| 2|
| 2| 48( 38%)|128(100%)| 5| 32( 25%)|128(100%)| 5| 2|
| 3| 48( 38%)|128(100%)| 5| 32( 25%)|128(100%)| 5| 2|
| 4| 48( 38%)|128(100%)| 5| 32( 25%)|128(100%)| 5| 2|
| 5| 48( 38%)|128(100%)| 5| 32( 25%)|128(100%)| 5| 2|
| 6| 48( 38%)|128(100%)| 5| 32( 25%)|128(100%)| 5| 2|
| 7| 48( 38%)|128(100%)| 5| 32( 25%)|128(100%)| 5| 2|
+==+=========+=========+======+=========+=========+======+======+
Configuring WRED to Use the DSCP Value
The following example configures WRED to use the DSCP value 8. The minimum threshold for
the DSCP value 8 is 16 Mbytes and the maximum threshold is 9 Mbytes.
1. Set the mapping of DSCP 8 to priority 3 and mark the traffic with green:
device-name
#
configure terminal
device-name
(config)#
qos traffic-class 8 dscp 8 priority 3 green
device-name
(config)#
access-list 100 permit ip any any precedence 1
device-name
(config)#
interface 1/1/1
device-name
(config-if 1/1/1)#
ip access-group 100 option
device-name
(config-if 1/1/1 acg 100)#
set
traffic-class
device-name
(config-if 1/1/1 acg 100)#
exit
device-name
(config-if 1/1/1)#
exit
2. Set WRED profile 3 with the threshold for priority 3:
device-name
(config)#
qos tx queue-set 3 random-detect priority 3 25 10 50
10
3. Set WRED profile 3 on interface 1/1/3:
device-name
(config-if)#
interface
1/1/3
device-name
(config-if 1/1/3)#
qos tx random-detect queue-set 3
4. Display the WRED profile 3 settings:
device-name
#
show qos tx random-detect queue-set 3
queue-set 3
-----------
==+=========+=========+======+=========+=========+======+======+
Pr|Green |Green |Green |Yellow |Yellow |Yellow|Weight|
|Min |Max |Prob |Min |Max |Prob | |
+--+---------+---------+------+---------+---------+------+------+
0| 25( 20%)|128(100%)| 5| 16( 13%)|128(100%)| 5| 2|
1| 25( 20%)|128(100%)| 5| 16( 13%)|128(100%)| 5| 2|
2| 25( 20%)|128(100%)| 5| 16( 13%)|128(100%)| 5| 2|
3| 32( 25%)|128(100%)| 10| 64( 50%)|128(100%)| 10| 2|
4| 25( 20%)|128(100%)| 5| 16( 13%)|128(100%)| 5| 2|
5| 25( 20%)|128(100%)| 5| 16( 13%)|128(100%)| 5| 2|