96
Global CAR configuration commands
car name
Syntax
car
name
car-name
[
hierarchy-car
hierarchy-car-name
[
mode
{
and
|
or
} ] ]
undo car
View
Traffic behavior view
Default level
2: System level
Parameters
car-name
: Name of an aggregation CAR action.
hierarchy-car-name
: Name of the referenced hierarchical CAR.
mode
: Collaborating mode of the hierarchical CAR action and the aggregation CAR action, which can
be AND (the default) or OR. If the collaborating mode is not specified, the AND mode applies.
•
AND mode (the
and
keyword), in which the traffic rate of a flow is limited by both the aggregation
CAR applied to it and the total traffic rate defined with hierarchical CAR. For example, use
aggregation CAR actions to limit the rate of Internet access flow 1 and that of flow 2 to 128 kbps
respectively, and use a hierarchical CAR action to limit their total traffic rate to 192 kbps. When flow
1 is not present, flow 2 can access the Internet at the maximum rate, 128 kbps. If both flows are
present, each flow cannot exceed its own rate limit, and the total rate cannot exceed 192 kbps.
•
OR mode (the
or
keyword), in which a flow may pass through at the rate equal to the aggregation
CAR applied to it or a higher rate if the total traffic rate of all flows does not exceed the hierarchical
CAR. For example, use aggregation CAR actions to limit the rate of video flow 1 and that of flow
2 to 128 kbps respectively, and then use a hierarchical CAR action to limit their total traffic rate to
512 kbps. As long as the rate of flow 1 does not exceed 128 kbps, flow 2 can pass at a rate as high
as 384 kbps.
Description
Use the
car
name
command to reference a global CAR action in the traffic behavior.
Use the
undo car
command to remove the global CAR action from the traffic behavior.
Examples
# Reference the aggregation CAR action
aggcar-1
in the traffic behavior
be1
.
<Sysname> system-view
[Sysname] traffic behavior be1
[Sysname-behavior-be1] car name aggcar-1
# Configure traffic behavior
be1
to reference aggregation CAR
aggcar-1
and hierarchical CAR
hcar
,
with the collaborating mode as
or
.
<Sysname> system-view
[Sysname] traffic behavior be1