Command Line Reference
QoS Configuration
Priority Map Configuration
9 min
show qos map {all|dot1p to tc|dscp to tc|tc to queue} show qos map {all|dot1p to tc|dscp to tc|tc to queue} \[command] show qos map {all|dot1p to tc|dscp to tc|tc to queue} \[purpose] display qos map configuration information \[view] system view \[parameter] parameter description all display all priority mapping configuration information dot1p to tc mapping of 802 1p priority of packet to internal priority dscp to tc mapping of the dscp priority of a packet to the internal priority tc to queue mapping the priority of packet to the egress queue \[use cases] sonic(config)# show qos map all { "dot1p to tc map" { "dot1x tc" { "0" "0", "1" "1", "2" "2", "3" "3", "4" "4", "5" "5", "6" "6", "7" "7" } }, "dscp to tc map" {}, "map pfc priority to queue" {}, "pfc priority to priority group map" {}, "tc to priority group map" {}, "tc to queue map" {} } show interface qos map bind show interface qos map bind \[command] show interface qos map bind \[purpose] show all qos map and interface binding configurations \[view] system view \[use cases] sonic# show interface qos map bind { "ethernet1" { "dot1p to tc map" "\[dot1p to tc map|1]" } } show queue counters show queue counters \[command] show queue counters \[ interface name ] show queue counters clear \[purpose] view export queue statistics \[view] system view \[use cases] sonic(config)# do show queue counters 1 port txq counter/pkts counter/bytes drop/pkts drop/bytes \ ethernet1 all0 0 0 0 0 ethernet1 all1 0 0 0 0 ethernet1 all2 0 0 0 0 ethernet1 all3 0 0 0 0 ethernet1 all4 0 0 0 0 ethernet1 all5 0 0 0 0 ethernet1 all6 0 0 0 0 ethernet1 all7 0 0 0 0 qos map {dot1p to tc|dscp to tc|tc to queue} qos map {dot1p to tc|dscp to tc|tc to queue} \[command] qos map {dot1p to tc|dscp to tc|tc to queue} profile name pri origin pri mapped \[purpose] add qos mapping table template \[parameter] parameter description dot1p to tc mapping of 802 1p priority of packet to internal priority tc to queue mapping the priority of packet to the egress queue profile name qos map name pri origin pre mapping priority pri mapped priority after mapping \[view] system configuration view \[user scenario] if user need to prioritize packets received by a device based on the dot1p/dscp values carried in the packet for qos scheduling, user can configure the mapping of packet priorities to local priorities using the qos map {dot1p to tc|dscp to tc} \<profile name> \<in value> command the qos map tc to queue \<profile name> \<in value> command configures the mapping of local priorities to output queues, allowing you to implement different qos strategies based on different scheduling methods for the output queues \[notes] by default, the local priority is mapped to the queue is tc queue 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 \[use cases] sonic(config)# qos map tc to queue queue 0 0 sonic(config)# qos map tc to queue queue 1 1 sonic(config)# qos map tc to queue queue 2 2 sonic(config)# qos map tc to queue queue 3 3 sonic(config)# qos map tc to queue queue 4 4 sonic(config)# qos map tc to queue queue 5 5 sonic(config)# qos map tc to queue queue 6 6 sonic(config)# qos map tc to queue queue 7 7 qos map all bind tc to queue qos map all bind tc to queue \[command] qos map all bind tc to queue profile name \[purpose] all interfaces are bound to qos map \[parameter] parameter description profile name qos map name \[view] system configuration view \[use cases] sonic(config)# qos map all bind tc to queue test qos map bind {dscp to tc|dot1p to tc} qos map bind {dscp to tc|dot1p to tc} \[command] qos map bind {dscp to tc|dot1p to tc} profile name \[purpose] single interface with qos map binding \[parameter] parameter description profile name qos map name \[view] interface view \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# qos map bind dscp to tc ceshi
