C613-50631-01 Rev A Command Reference for IE340 Series 2147
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
QOS COMMANDS
REMARK
NEW-COS
Figure 42-1: Remarking and the CoS to Q map
NOTE: VLAN ID translation and VLAN double-tagging (switchport vlan translation)
cannot be used on the same port in combination with CoS remarking.
Example For policy-map “pmap3” and class-map “cmap1”, set the CoS value to 2 and also set
the input to the CoS to queue map so that the traffic is assigned to egress queue 1:
awplus# configure terminal
awplus(config)# policy-map pmap3
awplus(config-pmap)# class cmap1
awplus(config-pmap-c)# remark new-cos 2 both
Related
commands
mls qos map cos-queue
show mls qos maps cos-queue
The above mapping is set by the command, mls qos map cos-queue to, and displayed by the command,
show mls qos maps cos-queue. With the remark new-cos command unset, or set to external, the queue mapping
takes its input from the Existing CoS value. With the remark new-cos command set to internal or both, the
queue mapping takes its input from the value set by the command, remark new-cos. Note that although the
CoS to Queue map applies to the whole switch, the remark new-cos command applies per individual class-map.
Existing CoS value
New-CoS internal
Egress queue
value
CoS Value
Egress Queue
02135674
2103 5674
QoS_2_Q_Map_B
Cos to Queue
Mapping
Remark new-cos <0-7> external
CoS Flag in Packet
Remark new-cos <0-7> both
Remark new-cos <0-7> internal
Table 42-1: CoS to egress queue remarking function
Input Command Output
CoS field = 1 Remark new-cos (not
configured)
CoS value = 1
Packet sent to egress queue 0
CoS field = 1 Remark new-cos 2 external CoS value = 2
Packet sent to egress queue 0
CoS set to 1 Remark new-cos 2 internal CoS value = 1
Packet sent to egress queue 1
CoS set to 1 Remark new-cos 2 both CoS value = 2
Packet sent to egress queue 1
Note: This table assumes that the CoS to Queue map is set to its default values.