Command Line Reference
QoS Configuration
Traffic Behavior
10 min
traffic behavior view traffic behavior view table 1 traffic behavior view table 1 traffic behavior view command purpose show traffic behavior \[ traffic behavior name ] display the configured car policy show traffic behavior \[ show traffic behavior \[ traffic behavior name ] \[command] show traffic behavior \[ traffic behavior name ] \[purpose] display the configured car(committed access rate) policy \[parameters] parameter description traffic behavior name traffic behavior name \[view] privileged user view \[use cases] sonic# show traffic behavior name type mode cir cbs \ test bytes sr tcm 100000 64000 traffic behavior config traffic behavior config table 2 traffic behavior config table 2 traffic behavior config command purpose traffic behavior traffic behavior name (global configuration view) create a traffic behavior and enter traffic behavior view car { sr tcm | tr tcm } \[ meter type bytes ] cir cir \[ cbs cbs ] \[ pir pir ] \[ pbs pbs ] add a byte mode car policy car { sr tcm | tr tcm } meter typepackets cir cir \[ cbs cbs ] \[ pir pir ] \[ pbs pbs ] add a packet mode car policy traffic behavior traffic behavior name (physical interface configuration view) apply the car policy to an interface traffic behavior traffic behavior traffic behavior name (global configuration view) \[command] traffic behavior traffic behavior name \[purpose] create a traffic behavior and enter traffic behavior view \[parameters] parameter description traffic behavior name traffic behavior name \[view] global configuration view \[notes] run command no traffic behavior traffic behavior name to delete the traffic behavior \[use cases] sonic# configure terminal sonic(config)# traffic behavior test sonic(config traffic behavior test)# car {sr tcm|tr tcm} \[meter type bytes] cir car {sr tcm|tr tcm} \[meter type bytes] cir cir \[cbs cbs ] \[pir pir ] \[pbs pbs ] \[command] car { sr tcm | tr tcm } \[ meter type bytes ] cir cir \[ cbs cbs ] \[ pir pir ] \[ pbs pbs ] \[purpose] add a byte mode car policy \[parameters] parameter description sr tcm single rate three color marker mode tr tcm two rate three color marker mode cir specify cir(committed information rate) in bps the range is 62500 2400000000000 cbs specify cbs(committed burst size) in bytes the range is 1000 1500000000 pir specify pir(peak information rate) in bps(only for tr tcm) the range is 62500 2400000000000 pbs specify pbs(peak burst size) in bytes(only for tr tcm) the range is 1000 1500000000 \[view] traffic behavior configuration view \[notes] if not specified the mode, the default is byte mode run command no car to delete the car policy \[use cases] sonic# configure terminal sonic(config)# traffic behavior test sonic(config traffic behavior test)# car sr tcm meter type packets cir 1000000 car {sr tcm|tr tcm} meter type packets cir car {sr tcm|tr tcm} meter type packets cir cir \[cbs cbs ] \[pir pir ] \[pbs pbs ] \[command] car { sr tcm | tr tcm } meter type packets cir cir \[ cbs cbs ] \[ pir pir ] \[ pbs pbs ] \[purpose] add a packet mode car policy \[parameters] parameter description sr tcm single rate three color marker mode tr tcm two rate three color marker mode cir specify cir(committed information rate) in pps the range is 78 3000000000 cbs specify cbs(committed burst size) in packets the range is 10 15000000 pir specify pir(peak information rate) in pps(only for tr tcm) the range is 78 3000000000 pbs specify pbs(peak burst size) in packets(only for tr tcm) the range is 10 15000000 \[view] traffic behavior configuration view \[notes] run command no car to delete the car policy \[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 traffic behavior traffic behavior name (physical interface configuration view) \[command] traffic behavior traffic behavior name \[purpose] apply the car policy to an interface \[parameters] parameter description traffic behavior name traffic behavior name \[view] physical interface configuration view \[notes] run command no traffic behavior to unbind the car policy to an interface \[use cases] sonic# configure terminal sonic(config)# interface ethernet 0/124 sonic(config if 0/124)# traffic behavior test sonic(config if 0/124)# show this ! interface ethernet 0/124 traffic behavior test
