Configuring traffic policing
Configure traffic policing in either policy approach or non-policy approach.
If traffic policing is configured in both the policy approach and non-policy approach, the configuration
in policy approach takes effect.
Configuring traffic policing by using the policy approach
Step
1.
Enter system view.
2.
Create a class and enter
class view.
3.
Configure match criteria.
4.
Return to system view.
5.
Create a behavior and
enter behavior view.
6.
Configure a traffic
policing action.
7.
Return to system view.
8.
Create a policy and
enter policy view.
9.
Associate the class with
the traffic behavior in the
QoS policy.
10. Return to system view.
11. Apply the QoS policy.
Configuring traffic policing by using the non-policy approach
Configuring CAR-list-based traffic policing
Command
system-view
traffic classifier
classifier-name [ operator { and
| or } ]
if-match [ not ] match-criteria
quit
traffic behavior behavior-name
car cir
committed-information-rate
[ cbs committed-burst-size
[ ebs excess-burst-size ] ] [ pir
peak-information-rate ] [ green
action ] [ red action ] [ yellow
action ]
quit
qos policy policy-name
classifier classifier-name
behavior behavior-name
quit
•
Applying the QoS policy to
an interface or PVC
•
Applying the QoS policy to
a VLAN
•
Applying the QoS policy to
online users
35
Remarks
N/A
N/A
N/A
N/A
N/A
The pir peak-information-rate and
yellow action options are supported
only on SAP modules operating in
bridge mode.
For a QoS policy implemented in
hardware, if you set the CIR or PIR to a
value that is not an integral multiple of
64, the system automatically converts
the value into the nearest integral
multiple of 64 that is greater than the
value. For example, if you set 127, 128
takes effect.
N/A
N/A
N/A
N/A
Choose one of the application
destinations as needed.