cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6361
Views
0
Helpful
4
Replies

Policy and Class Map

aravinda099
Level 1
Level 1

Can someone share a sample policy and a class map for basic QoS implementation please ? 

4 Replies 4

Hello

Can you provide some more information on what QOS you are wanting to implement.

res

Paul
 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Looking at implementing basic QoS 5 class . Voice / video are the two top priorities. Citrix is third priority. 

Hi here is a basic QOS config for a router. this assumes a 2MB wan link, Note this is just one way of doing the classification, You can also use NBAR to identify the classes of traffic.

comments in red

First step is to classify local traffic coming into the router from the local network.

class-map match-any DSCP-EF
 match access-group name QOS_RT-VOICE < matches an access-list which would have correct UDP ports and Ip addresses
class-map match-any DSCP-AF41
 match access-group name QOS_RT-VIDEO < matches an Access list with your video boxes
class-map match-any DSCP-CS3 < voice control traffic
 match protocol skinny
 match protocol sip
 match protocol h323
 match protocol mgcp
class-map match-any DSCP-AF21
match access-group name QOS_CITRIX < matches access list which contains Ip address and ports for Citrix hosts

 

 

policy-map QOS_IN < this is the Policy-map that is applied to inbound interfaces.
 class DSCP-EF
  set ip dscp ef
 class DSCP-AF41
  set ip dscp af41
 class DSCP-CS3
  set ip dscp cs3
 class DSCP-AF21
  set ip dscp af21

int gi 0/0 < interface to local network.
service-policy input QOS_IN

Next step create policy map for the WAN interface, The following class maps use the Markings that were created on the traffic from the local network.
class-map match-any CONTROL
 match ip dscp cs3 
class-map match-any QUEUE-TRANSACTIONAL
 match  dscp af21 
class-map match-any RT-VOICE
 match ip dscp ef
class-map match-any RT-VIDEO
 match ip dscp af41 

 Below is the policy map for a 2Mbps WAN interface, you wouldneed to adjust the settings to match your particular requirements.
policy-map QOS_OUT_2MB
 class RT-VOICE
  priority percent 20
class RT-VIDEO
  bandwidth percent 25
class CONTROL
  bandwidth percent 3
class TRANSACTIONAL
  bandwidth percent 20
  random-detect dscp-based

 class class-default
  shape average 2000000 20000 20000
  queue-limit 64 packets
  random-detect dscp-based
  random-detect dscp 0 32 64

interface GigabitEthernet0/1 < wan interface
 
 service-policy output QOS_OUT_2MB

 

HTH

Richard.

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

An actual QoS policy would depend on the platform.

This generic 4 class policy, deals well with many situations:

policy-map Sample

class real-time

priority percent 33

class foreground

bandwidth remaining percent 81

fair-queue

class background

bandwidth remaining percent 1

fair-queue

class class-default

bandwidth remaining percent 9

fair-queue

Use your class-maps to direct traffic to what service level is needed.  Real-time VoIP (bearer) or real-time Video could be directed to the real-time class.  Streaming video, VoIP signalling, Citrix screen scraping, could be directed to the foreground class.  Bulk file transfers, could be directed to the background class.  Anything without a special performance need goes to default (were FQ often does very well).  (NB: ideally foreground shouldn't consume a huge amount of bandwidth, say no more than a third of total link.  Background can consume all available bandwidth.)

Review Cisco Networking for a $25 gift card