674 CHAPTER 48: TRAFFIC POLICING, TRAFFIC SHAPING AND LINE RATE
Apply a CAR Policy on the Packets that Match ACL
The CAR policy is applied to the packet that is input to router A serial interface
0 and that matches the specific ACL rule, directly forwarding the packet that
meets the conditions and dropping the packet that does not meet the
conditions.
The CAR policy is applied to the packet that is output from router A serial
interface 0 and that matches the specific ACL rule, directly forwarding the
packet that meets the conditions and dropping the packet that does not meet
the conditions.
Figure 214 Configure the CAR rule to be applied to the packet that matches the ACL
policy
1Configure Router A:
The CAR policy is applied to the packet input to router A serial interface 0 and
matching the ACL
[RouterA]acl 1
[RouterA-acl-1]rule permit source 10.0.0.2 0.0.0.0
[RouterA-acl-1]interface serial 0
[RouterA-Serial0] ip address 10.0.0.1 255.255.255.0
[RouterA-Serial0] qos car inbound acl 1 cir 8000 cbs 15000 ebs 8000
conform pass exceed discard
The CAR policy is applied to the packet that is output from router A serial interface
1 and matches ACL
[RouterA]acl 1
[RouterA-acl-1]rule permit source 11.0.0.1 0.0.0.0
[RouterA-acl-1]rule permit source 11.0.0.2 0.0.0.0
[RouterA-acl-1]interface serial 0
[RouterA-Serial0] ip address 11.0.0.1 255.255.255.0
[RouterA-Serial0] qos car inbound acl 1 cir 8000 cbs 15000 ebs 8000
conform pass exceed discard
Traffic Shaping Generic Traffic Shaping (GTS) restricts packets that are sent from an interface at
relative uniform speed by limiting the traffic and burst of a certain connection
from a network. This is usually carried out with buffer and token bucket that is
used to control the transmission speed. Even buffering the packets that exceed a
specified traffic and sending them after a specified time can make the speed of
the packets.
The processing of the packet by GTS is shown in Figure 215.
S0
10.0.0.2
S0
10.0.0.1 S0
11.0.0.2
S1
11.0.0.1
Router A Router B
Router C