Controlling Congestion with WRED
Problem
You want to control congestion on an interface before it becomes a problem.
Solution
The syntax for configuring WRED changed with the introduction of class-based QoS. The old method defined WRED across an entire interface:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface
Router(config-if)#
HSSI0/0
random-detect
Router(config-if)#random-detect precedence 0 10 20 10
Router(config-if)#random-detect precedence 1 12 20 10
Router(config-if)#random-detect precedence 2 15 25 15
Router(config-if)#random-detect precedence 3 18 25 15
Router(config-if)#random-detect precedence 4 20 30 20
Router(config-if)#random-detect precedence 5 22 30 20
Router(config-if)#random-detect precedence 6 30 40 25
Router(config-if)#random-detect precedence 7 40 50 100
Router(config-if)#random-detect precedence RSVP 45 50 100
Router(config-if)#exit
Router(config)#end
Router#
The new configuration method uses the same syntax as CBWFQ:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#class-map
Router(config-cmap)#
Prec5
description
Router(config-cmap)#
Critical
match ip precedence
Router(config-cmap)#
5
exit
Router(config)#policy-map
Router(config-pmap)#
cb_wred
class
Router(config-pmap-c)#
Prec5
random-detect dscp-based
Router(config-pmap-c)#exit
Router(config-pmap)#class class-default
Router(config-pmap-c)#fair-queue
Router(config-pmap-c)#
512
queue-limit
Router(config-pmap-c)# ...
96
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.