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] parameter description 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 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] parameter description sr tcm single bucket single speed mode, this mode only requires the configuration of cir and cbs tr tcm double buckets and double speed mode meter type if meter type mode is bytes : cir, pir in kbps, cbs, pbs in byte if meter type mode is packets : cir, pir in kpps, cbs, pbs in packet default mode is bytes cir specifies the committed information rate (cir), which is the allowed rate at which traffic can pass through cbs specifies the committed burst size (cbs), which is the average volume of burst traffic that can pass through an interface pir specifies the peak information rate (pir), which is the maximum rate at which traffic can pass through pbs specifies the peak burst size (pbs), which is the maximum volume of burst traffic that can pass through an interface red packet action {drop|forward|remark}/ yellow packet action {drop|forward|remark} specifies the packet color the packet color is determined by cbs cbs value and pbs pbs value of this command \[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] parameter description egress bind in the direction of the output interface \[view] interface view \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# traffic behavior bind test1
