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] 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 {bytes|packets} if meter type mode is bytes :cir, pir in kbps, cbs, pbs in byteif meter type mode is packets :cir, pir in kpps, cbs, pbs in packetdefault mode is bytes cir value specifies the committed information rate (cir), which is the allowed rate at which traffic can pass through cbs value specifies the committed burst size (cbs), which is the average volume of burst traffic that can pass through an interface pir value specifies the peak information rate (pir), which is the maximum rate at which traffic can pass through pbs value specifies the peak burst size (pbs), which is the maximum volume of burst traffic that can pass through an interface \[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
