cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7421
Views
0
Helpful
5
Replies

qos on trunk

cesarestan
Level 1
Level 1

Hello

I need to give priority on a vlan for video on trunk port.

So in case of overload on trunk, the port drops packets of other vlans but not packets of video vlan

If i'm right before I need to mark packets with right priority on port and after make policy.

I need just i little example for 3750 or 2960 or 6500

thanks a lot for your help

5 Replies 5

Mark Malone
VIP Alumni
VIP Alumni

Hi

Theres a few ways to do this the easiest probably auto qos , if the end source is marking the video traffic with AF41 at layer 2 you really just need to turn on qos at the trunk and access   ,as the video traffic will be put in priority queue through the auto qos

I would just turn on auto qos , at the access layer port ......auto qos trust video , then at the uplink auto qos trust dscp

when you generate auto qos it will build the policy for you class-maps etc , you can see exactly what it will build by what you deploy in this doc

http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/release/12-2_55_se/configuration/guide/scg3750/swqos.html#pgfId-1898945

each switch can be different the 2960 should be generally the same , the 6500 will depend on the Supervisor and line cards your using on what can be deployed in terms of auto/mls qos if you chose that way

Hello thanks for your help.

So you mean under video port i mark all traffic with AF41 or cos 5

with this command?

Interface x/x/x

  swicthport access "vlan video"

   mls qos trust cos  "enable "

  mls qos cos 5   "mark"

on trunk i make just this command?

 auto qos trust 

 

whats the end device the video unit is it source marking traffic with AF41 that's what video uses in terms of DSCP  like a Cisco Phone would source mark a packet with EF at the phone itself

So you mean under video port i mark all traffic with AF41 or cos 5

No what I suggested was at the access video port use auto qos trust video do you have that command available  ?

then on the uplink trunk trust the dscp values with ..auto qos trust dscp .. this will carry the AF41 to the new switch in correct queue

when you enable those commands it will push a lot of config like below pre ready in queues and the service policy will apply to the interface as below

*****************************************************************************


the doc shows exactly what it will build when you deploy these commands

Auto-QoS Generated Configuration For Enhanced Video, Trust, and Classify Devices

If you entered these enhanced auto-QoS commands, the switch automatically configures the CoS-to-DSCP map (maps CoS values in incoming packets to a DSCP value).

– auto qos video cts 

– auto qos video ip-camera

– auto qos trust

– auto qos trust cos

– auto qos trust dscp

Switch(config)#  mls qos map cos-dscp 0 8 16 24 32 46 48 56

 


Note No class maps and policy maps are configured.


If you entered the  auto qos classify command, the switch automatically creates class maps and policy maps.

Switch(config)# mls qos map policed-dscp 0 10 18 to 8

Switch(config)# mls qos map cos-dscp 0 8 16 24 32 46 48 56

Switch(config)# class-map match-all AUTOQOS_MULTIENHANCED_CONF_CLASS

Switch(config-cmap)# match access-group name AUTOQOS-ACL-MULTIENHANCED-CONF

Switch(config)# class-map match-all AUTOQOS_DEFAULT_CLASS

Switch(config-cmap)# match access-group name AUTOQOS-ACL-DEFAULT

Switch(config)# class-map match-all AUTOQOS_TRANSACTION_CLASS

Switch(config-cmap)# match access-group name AUTOQOS-ACL-TRANSACTIONAL-DATA

Switch(config)# class-map match-all AUTOQOS_SIGNALING_CLASS

Switch(config-cmap)# match access-group name AUTOQOS-ACL-SIGNALING

Switch(config)# class-map match-all AUTOQOS_BULK_DATA_CLASS

Switch(config-cmap)# match access-group name AUTOQOS-ACL-BULK-DATA

Switch(config)# class-map match-all AUTOQOS_SCAVANGER_CLASS

Switch(config-cmap)# match access-group name AUTOQOS-ACL-SCAVANGER

Switch(config)# policy-map AUTOQOS-SRND4-CLASSIFY-POLICY

Switch(config-pmap)# class AUTOQOS_MULTIENHANCED_CONF_CLASS

Switch(config-pmap-c)# set dscp af41

Switch(config-pmap)# class AUTOQOS_BULK_DATA_CLASS

Switch(config-pmap-c)# set dscp af11

Switch(config-pmap)# class AUTOQOS_TRANSACTION_CLASS

Switch(config-pmap-c)# set dscp af21

Switch(config-pmap)# class AUTOQOS_SCAVANGER_CLASS

Switch(config-pmap-c)# set dscp cs1

Switch(config-pmap)# class AUTOQOS_SIGNALING_CLASS

Switch(config-pmap-c)# set dscp cs3

Switch(config-pmap)# class AUTOQOS_DEFAULT_CLASS

Switch(config-pmap-c)# set dscp default

;

Switch(config-if)# service-policy input AUTOQOS-SRND4-CLASSIFY-POLICY

*****************************************************************************

As an example of one of my auto qos configured switches

access port is set just wiuth auto qos trust

this then adds the service policys ads belwo

interface GigabitEthernet1/48
 description 
 switchport access vlan 49
 switchport mode access
 shutdown
 auto qos trust
 spanning-tree portfast edge
 service-policy input AutoQos-4.0-Input-Policy
 service-policy output AutoQos-4.0-Output-Policy
 ip dhcp snooping limit rate 7

and it also configures the auto queues

!
class-map match-all AutoQos-4.0-Scavenger-Classify
 match access-group name AutoQos-4.0-ACL-Scavenger
class-map match-all AutoQos-4.0-Signaling-Classify
 match access-group name AutoQos-4.0-ACL-Signaling
class-map match-any AutoQos-4.0-Priority-Queue
 match cos  5
 match dscp ef
 match dscp cs5
 match dscp cs4
class-map match-all AutoQos-4.0-VoIP-Data-Cos
 match cos  5
class-map match-any AutoQos-4.0-Multimedia-Stream-Queue
 match dscp af31
 match dscp af32
 match dscp af33
class-map match-all AutoQos-4.0-Network-Mgmt
 match dscp cs2
class-map match-all AutoQos-4.0-VoIP-Signal-Cos
 match cos  3
class-map match-any AutoQos-4.0-Multimedia-Conf-Queue
 match cos  4
 match dscp af41
 match dscp af42
 match dscp af43
 match access-group name AutoQos-4.0-ACL-Multimedia-Conf
class-map match-any AutoQos-4.0-Transaction-Data
 match dscp af21
 match dscp af22
 match dscp af23
class-map match-all AutoQos-4.0-Network-Ctrl
 match dscp cs7
class-map match-all AutoQos-4.0-Scavenger
 match dscp cs1
class-map match-all AutoQos-4.0-Default-Classify
 match access-group name AutoQos-4.0-ACL-Default
class-map match-any AutoQos-4.0-Signaling
 match dscp cs3
 match cos  3
class-map match-any AutoQos-4.0-Bulk-Data-Queue
 match cos  1
 match dscp af11
 match dscp af12
 match dscp af13
 match access-group name AutoQos-4.0-ACL-Bulk-Data
class-map match-all AutoQos-4.0-Transaction-Classify
 match access-group name AutoQos-4.0-ACL-Transactional-Data
class-map match-all AutoQos-4.0-Broadcast-Vid
 match dscp cs5
class-map match-any AutoQos-4.0-Bulk-Data
 match dscp af11
 match dscp af12
 match dscp af13
class-map match-all AutoQos-4.0-VoIP-Video-Cos
 match cos  4
class-map match-any AutoQos-4.0-Scavenger-Queue
 match dscp cs1
 match cos  1
 match access-group name AutoQos-4.0-ACL-Scavenger
class-map match-any AutoQos-4.0-VoIP
 match dscp ef
 match cos  5
class-map match-any AutoQos-4.0-Multimedia-Conf
 match dscp af41
 match dscp af42
 match dscp af43
class-map match-any AutoQos-4.0-Control-Mgmt-Queue
 match cos  3
 match dscp cs7
 match dscp cs6
 match dscp cs3
 match dscp cs2
 match access-group name AutoQos-4.0-ACL-Signaling
class-map match-all AutoQos-4.0-Bulk-Data-Classify
 match access-group name AutoQos-4.0-ACL-Bulk-Data
class-map match-any AutoQos-4.0-Trans-Data-Queue
 match cos  2
 match dscp af21
 match dscp af22
 match dscp af23
 match access-group name AutoQos-4.0-ACL-Transactional-Data
class-map match-any AutoQos-4.0-Multimedia-Stream
 match dscp af31
 match dscp af32
 match dscp af33
class-map match-any AutoQos-4.0-VoIP-Data
 match dscp ef
 match cos  5
class-map match-all AutoQos-4.0-Internetwork-Ctrl
 match dscp cs6
class-map match-all AutoQos-4.0-Realtime-Interact
 match dscp cs4
class-map match-all AutoQos-4.0-Multimedia-Conf-Classify
 match access-group name AutoQos-4.0-ACL-Multimedia-Conf
class-map match-any AutoQos-4.0-VoIP-Signal
 match dscp cs3
 match cos  3
!
policy-map AutoQos-4.0-Output-Policy
 class AutoQos-4.0-Scavenger-Queue
  bandwidth remaining percent 1
 class AutoQos-4.0-Priority-Queue
  priority
  police cir percent 30 bc 33 ms
 class AutoQos-4.0-Control-Mgmt-Queue
  bandwidth remaining percent 10
 class AutoQos-4.0-Multimedia-Conf-Queue
  bandwidth remaining percent 10
 class AutoQos-4.0-Multimedia-Stream-Queue
  bandwidth remaining percent 10
 class AutoQos-4.0-Trans-Data-Queue
  bandwidth remaining percent 10
    dbl
 class AutoQos-4.0-Bulk-Data-Queue
  bandwidth remaining percent 4
    dbl
 class class-default
  bandwidth remaining percent 25
    dbl
policy-map AutoQos-4.0-Input-Policy
 class AutoQos-4.0-VoIP
 class AutoQos-4.0-Broadcast-Vid
 class AutoQos-4.0-Realtime-Interact
 class AutoQos-4.0-Network-Ctrl
 class AutoQos-4.0-Internetwork-Ctrl
 class AutoQos-4.0-Signaling
 class AutoQos-4.0-Network-Mgmt
 class AutoQos-4.0-Multimedia-Conf
 class AutoQos-4.0-Multimedia-Stream
 class AutoQos-4.0-Transaction-Data
 class AutoQos-4.0-Bulk-Data
 class AutoQos-4.0-Scavenger
!

so i make under access port i have this command :

auto qos video (cts,ip-camera,media-player) i think for me is good ip-camera parameter

But i have another problem.... I have etherchannel so i have 2 trunk port bundled...

In this case auto qoS does not work....

I read something about service policy in order to make qos on etherchannel

for the port-channel if you cant apply the service policy to the logical interface  , take them out of the etherchannel apply the qos to the physical interfaces then put them back into the PO ,  

Review Cisco Networking for a $25 gift card