Implementing Standards-Based Per-Hop Behavior
Problem
You want to configure your router to follow the RFC-defined Per-Hop Behaviors defined for different DSCP values.
Solution
This recipe constructs an approximate implementation of both Expedited Forwarding and Assured Forwarding, while still ensuring that network control packets do not suffer from delays due to application traffic. With the QoS enhancements provided in IOS Version 12.1(5)T and higher, there is a straightforward way to accomplish this using a combination of WRED, CBWFQ, and Low Latency Queuing (LLQ):
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#class-map
Router(config-cmap)#
EF
description
Router(config-cmap)#
Real-time application traffic
match ip precedence
Router(config-cmap)#
5
exit
Router(config)#class-map
Router(config-cmap)#
AF1x
description
Router(config-cmap)#
Priority Class 1
match ip precedence
Router(config-cmap)#
1
exit
Router(config)#class-map
Router(config-cmap)#
AF2x
description
Router(config-cmap)#
Priority Class 2
match ip precedence
Router(config-cmap)#
2
exit
Router(config)#class-map
Router(config-cmap)#
AF3x
description
Router(config-cmap)#
Priority Class 3
match ip precedence
Router(config-cmap)#
3
exit
Router(config)#class-map
Router(config-cmap)#
AF4x
description
Router(config-cmap)#
Priority Class 4
match ip precedence
Router(config-cmap)#
4
exit
Router(config)#policy-map
Router(config-pmap)#
cbwfq_pq
class
Router(config-pmap-c)#
EF
priority 58 800
Router(config-pmap-c)# ...
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.