Command Line Reference
QoS Configuration
Traffic Regulation
7 min
traffic regulation traffic regulation 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 counters show traffic behavior counters \[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 traffic behavior name \[command] traffic behavior traffic behavior name no traffic behavior traffic behavior name \[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 \[parameter] true 199,462 left #4283c7 unhandled content type left #4283c7 unhandled content type left unhandled content type left unhandled content type \[view] system view, interface view \[use cases] sonic# configure terminal sonic(config)# traffic behavior test sonic(config traffic behavior test)# car car \[command] car {sr tcm|tr tcm} \[meter type {bytes|packets}] cir cir \[cbs cbs ] \[pir pir ]\[pbs pbs ] \[yellow packet action {drop|forward|remark}] \[red packet action {drop|forward|remark}] \[remark dot1p value ] \[remark dscp value ] \[remark tc value ] \[purpose] create a car template to bind to traffic behavior \[parameter] 173,488#4283c7 1 1 unhandled content type #4283c7 1 1 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 #d8e5f5 unhandled content type #d8e5f5 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 1000 traffic behavior bind traffic behavior bind traffic behavior name \[command] traffic behavior bind \[egress] traffic behavior name no traffic behavior bind traffic behavior name \[purpose] bind traffic behavior to the interface \[parameter] true 146,515 left #4283c7 unhandled content type left #4283c7 unhandled content type left unhandled content type left unhandled content type \[view] interface view \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# traffic behavior bind test1
