241
1. Configure one to one mapping between 802.1p priority and COS Queue on the ingress port. Frames with
802.1p priority 1 are assigned to COS 1 queue and similarly frames with 802.1p priority 2 are assigned to
COS2 and so on.
(QCT) (Config)#queue cos-map all 0 0
(QCT) (Config)#queue cos-map all 1 1
(QCT) (Config)#queue cos-map all 2 2
(QCT) (Config)#queue cos-map all 3 3
(QCT) (Config)#queue cos-map all 4 4
(QCT) (Config)#queue cos-map all 5 5
(QCT) (Config)#queue cos-map all 6 6
(QCT) (Config)#queue cos-map all 7 7
2. Enable 802.1p Trust mode on all the ports.
(QCT) (Config)#interface range 0/1-0/16
(QCT) (Interface 0/1-0/16)#queue trust dot1p
(QCT) (Interface 0/1-0/16)#exit
3.
Configure
the mapping
between
COS queues and Traffic Classes Groups.
Configure
the Traffic Class Group
that such 802.1p priority 4 is assigned to TCG1 and 802.1p priority 1 is assigned to TCG2 so that less loss
sensitive traffic does not starve the loss sensitive traffic even during traffic bursts. Assign 802.1p priority 7
traffic to TCG0.
(QCT) (Config)#classofservice traffic-class-group 4 1
(QCT) (Config)#classofservice traffic-class-group 1 2
(QCT) (Config)#classofservice traffic-class-group 7 0
4. Enable VLAN tagging on the ports so the 802.1p priority is identified. The interfaces in this example are
members of VLAN 100, which has been previously configured.
(QCT) (Config)#interface range 0/1-0/16
(QCT) (Interface 0/1-0/16)#switchport allowed vlan add tagged 100
(QCT) (Interface 0/1-0/16)#exit
5. Configure the weight percentage of TCG0 to 10%, and the weights of TCG1 and TCG2 to 45% each.
(QCT) (Config)#traffic-class-group weight 10 45 45
6. Associate weighted round robin scheduling with TCG1 and TCG2.
(QCT) (Config)#no traffic-class-group strict 1 2
7. Configure TCG0 for strict priority scheduling.
(QCT) (Config)#traffic-class-group strict 0
8. Associate TCG0 with CoS queue 7 so that it serves the high priority internal control traffic with CoS 7.
(QCT) (Config)#classofservice traffic-class-group 7 0
9. Configure the minimum bandwidth percentage for all the TCGs to be zero.