Thursday, March 31, 2011

QoS Hierarchical Class-Based Weighted Fair Queuing Cisco Router Configuration Example

HCBWFQ QoS Configuration Example on a Cisco Router:

This is an example of a QoS policy where the connection to the service provider is Ethernet and the contracted bandwidth is 20 Mbps. This requires the use of a parent policy which then references a subordinate (child) policy.

class-map match-any VOICE
match dscp ef
!
class-map match-any INTERACTIVE-VIDEO
match dscp cs4 af41
!
class-map match-any CRITICAL-DATA
match dscp af31 cs3
!
class-map match-any DATA
match ip dscp af21
!
class-map match-any SCAVENGER
match ip dscp af11 cs1
!
class-map match-any NETWORK-CRITICAL
match ip dscp cs6 cs2
!
class-map match-any BGP-ROUTING
match protocol bgp

policy-map MARK-BGP
class BGP-ROUTING
set dscp cs6

policy-map WAN
class VOICE
priority percent 10
class INTERACTIVE-VIDEO
priority percent 23
class CRITICAL-DATA
bandwidth percent 15
random-detect dscp-based
class DATA
bandwidth percent 19
random-detect dscp-based
class SCAVENGER
bandwidth percent 5
class NETWORK-CRITICAL
bandwidth percent 3
service-policy MARK-BGP
class class-default
bandwidth percent 25
random-detect

policy-map WAN-INTERFACE-G0/0
class class-default
shape average 20000000
service-policy WAN

interface GigabitEthernet0/0
service-policy output WAN-INTERFACE-G0/0

1 comment:

  1. Hello,
    to apply random-detect on parent policy not on individual class is ok ?

    ReplyDelete