A QoS policy that references the behavior can be applied in either the inbound direction or outbound
direction of an interface.
A traffic behavior can contain only one CAR action. If you configure the car command multiple times in
the same traffic behavior, the last configuration takes effect.
Related commands: qos policy, traffic behavior, and classifier behavior.
Examples
# Configure a CAR action in traffic behavior database:
Set the CIR to 128 kbps, CBS to 50000 bytes, and EBS to 0.
•
•
Allow the conforming packets to pass, and mark the excess packets with DSCP precedence 0 and
forward them.
<Sysname> system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] car cir 128 cbs 50000 ebs 0 green pass red remark-dscp-pass
0
# Configure a CAR action in traffic behavior database:
Set the CIR to 256 kbps, CBS to 50000 bytes, and EBS to 0.
•
Allow the conforming packets to pass, and mark excess packets with DSCP precedence 0 and
•
forward them.
•
Reference hierarchical CAR hcar in the action, with the or collaborating mode.
<Sysname> system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] car cir 256 cbs 50000 ebs 0 green pass red remark-prec-pass
0 hierarchy-car hcar mode or
display traffic behavior
Syntax
display traffic behavior user-defined [ behavior-name ] [ | { begin | exclude | include }
regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
user-defined: Displays user-defined traffic behaviors.
behavior-name: Behavior name, a string of 1 to 31 characters. If no traffic behavior is specified, this
command displays information about all the user-defined behaviors.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see the Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
44