Sample QOS template for 6500

Posted: May 24, 2006 by sankar in 6500, QOS

set qos enable

set qos map 2q2t tx 2 1 cos 3 ### maps cos 3 packets to queue 2 threshold 1

set port qos 3/1-2 trust trust-cos

set port qos 3/1-2 trust-ext untrusted

### maps signalling to dscp24, rtp to dscp 46, video to dscp 34.
set qos cos-dscp-map 0 8 16 24 34 46 48 56


#Phones — acl defined at the phone port level to trust cos value coming from phones.
set qos acl ip Phones trust-cos ip any any

commit qos acl all

set qos acl map Phones 3/1-2

#CCM — ACL defined for applying qos to CCM port.
#Marks all control signals to dscp 24, rtp payload to dscp 46.


set qos acl ip CCM dscp 24 tcp any range 2000 2002 any
set qos acl ip CCM dscp 24 tcp any any eq 1718
set qos acl ip CCM dscp 24 tcp any any eq 1720
set qos acl ip CCM dscp 24 udp any eq 1719 any
set qos acl ip CCM dscp 46 udp any any range 16384 32767
set qos acl ip CCM dscp 24 tcp any any range 11000 11999
set qos acl ip CCM dscp 24 tcp any any range 1024 4999
set qos acl ip CCM dscp 24 tcp any any eq 1433
set qos acl ip CCM dscp 24 tcp any any eq 3372
set qos acl ip CCM dscp 24 udp any eq 69 any
set qos acl ip CCM dscp 24 tcp any any range 8002 8003
set qos acl ip CCM dscp 24 tcp any eq 2443 any
set qos acl ip CCM dscp 24 tcp any any eq 5060
set qos acl ip CCM dscp 24 udp any any eq 5060
set qos acl ip CCM dscp 24 tcp any any eq 4224
#To apply a policer to the Voice vlan and mark traffic down (both bearer and control)

#Pol

set qos policer aggregate Police rate 32000 burst 13000 policed-dscp
set qos acl ip Pol trust-dscp aggregate Police tcp any range 2000 2002 any
set qos acl ip Pol trust-dscp aggregate Police tcp any any eq 1718
set qos acl ip Pol trust-dscp aggregate Police tcp any any eq 1720
set qos acl ip Pol trust-dscp aggregate Police udp any eq 1719 any
set qos acl ip Pol trust-dscp aggregate Police udp any any range 16384 32767
set qos acl ip Pol trust-dscp aggregate Police tcp any any range 11000 11999
set qos acl ip Pol trust-dscp aggregate Police tcp any any range 1024 4999
set qos acl ip Pol trust-dscp aggregate Police tcp any any eq 1433
set qos acl ip Pol trust-dscp aggregate Police tcp any any eq 3372
set qos acl ip Pol trust-dscp aggregate Police udp any eq 69 any
set qos acl ip Pol trust-dscp aggregate Police tcp any any range 8002 8003
set qos acl ip Pol trust-dscp aggregate Police tcp any eq 2443 any
set qos acl ip Pol trust-dscp aggregate Police tcp any any eq 5060
set qos acl ip Pol trust-dscp aggregate Police udp any any eq 5060

set qos policed-dscp-map 24,46:0

#To mark Unity packets appropriately

#Unity
set qos acl ip Unity dscp 24 tcp any eq 2000 any
set qos acl ip Unity dscp 46 udp any any range 16384 32767

#To mark Gateway ports appropriately (H323)

#Gtway
set qos acl ip Gtway dscp 46 udp any any range 16384 32767
set qos acl ip Gtway dscp 24 tcp any any eq 1720
set qos acl ip Gtway dscp 24 tcp any any range 11000 11999
set qos acl ip Gtway dscp 24 tcp any any range 1024 4999

#To mark Gateway ports appropriately (MGCP)

set qos acl ip Gtway dscp 24 tcp any any eq 2428
set qos acl ip Gtway dscp 24 udp any any eq 2427
set qos acl ip Gtway dscp 46 udp any any range 16384 32767

#To mark Gatekeeper ports appropriately

set qos acl ip GK dscp 24 tcp any eq 1718 any
set qos acl ip GK dscp 24 udp any any eq 1719
set qos acl ip GK dscp 24 udp any eq 1719 any

Applying ACL at port or vlan level

commit qos acl all
set port qos 3/1-10 port-based

set qos acl map Phones 3/1-2 ### applying acl at port on phones

set qos acl map CCM 3/3-4 ### applying acl at port level on Callmanager Pub and Sub

set qos acl map Pol 21,421 ### applying Policer on Voice vlan

set qos acl map Unity 3/5 #### applying acl at port level on Unity

set qos acl map Gtway 3/6 ### applying acl at port level on Gateway

set qos acl map GK 3/7 #### applying acl at port level on gatekeeper.

Advertisements
Comments
  1. JB says:

    Your dscp value should be 26 to map to cos 3 not 24

  2. JB says:

    What I mean on the current version of the exam it should be 26 because ccm is af31 and once the exam is upgraded it will be 24 corresponding to CS3

  3. enigma says:

    >set qos acl ip CCM dscp 24 tcp any any eq 1718

    Port 1728 is UDP:

    All outbound signaling from the Cisco CallManager to the H.323 device still uses both H.225 (UDP Port 1718 for gatekeeper discovery, UDP port 1719 for H.323 Registration, Admission and Status (RAS)/gatekeeper, and TCP port 1720 for peer-to-peer call control) and H.245 (TCP port range from 11000-65535).

    regards.
    Gabriel

  4. Martin Chmelik says:

    I’m confused with this :
    set qos acl ip Gtway dscp 24 tcp any any eq 2428
    set qos acl ip Gtway dscp 24 udp any any eq 2427

    These MGCP ports should be as CCM source :
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_tech_note09186a00801a62b9.shtml

    set qos acl ip Gtway dscp 24 tcp any eq 2428 any
    set qos acl ip Gtway dscp 24 udp any eq 2427 any

    Am I right ?
    Maritn.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s