Command Line Reference
QoS Configuration
Traffic Regulation
6 min
show traffic behavior rule show traffic behavior rule \[command] show traffic behavior rule \[purpose] displays the configured aboute car policies \[view] system view \[use cases] sonic# show traffic behavior rule name type mode cir cbs \ test bytes sr tcm 100000 64000 show traffic behavior counter show traffic behavior counter \[command] show traffic behavior counters \[purpose] view the hit statistics for the car \[view] system view \[use cases] sonic# show traffic behavior counters policerid forward drop remark forward \ flow controll 1049585 12764 1810877 traffic behavior traffic behavior \[command] traffic behavior traffic behavior name no traffic behavior \[purpose] create a traffic behavior and go to the traffic behavior view, or go to the existing traffic behavior view, or bind the traffic behavior to interface \[purpose] traffic behavior name traffic behavior name \[view] system view, interface view \[use cases] sonic# configure terminal sonic(config)# traffic behavior test sonic(config traffic behavior test)# car {sr tcm|tr tcm} meter type {bytes|packets} car {sr tcm|tr tcm} meter type {bytes|packets} \[command] car {sr tcm|tr tcm} \[meter type {bytes|packets}] \[cir cir value ] \[cbs cbs value ] \[pir pir value ] \[pbs pbs value ] \[yellow packet action {drop|forward|remark}] \[red packet action {drop|forward|remark}] \[remark dot1p dot1p value ] \[remark dscp dscp value ] \[remark tc tc value ] \[purpose] create a car template to bind to traffic behavior \[parameter] true 145,516#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] traffic behavior view \[notes] when the burst size of the message < cbs value, the message is marked as green when cbs value < burst size < pbs value, the message is marked yellow when burst size > pbs value, the message is marked as red no car this command removes the car template \[use cases] sonic# configure terminal sonic(config)# traffic behavior test sonic(config traffic behavior test)# car sr tcm meter type packets cir 1000000 traffic behavior bind traffic behavior bind \[command] traffic behavior bind policer name no traffic behavior bind \[purpose] bind traffic behavior to the interface \[view] interface view \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# traffic behavior bind test1
