3com 3031 Instruccion De Instalación
Typical Example of Traffic Policing and Shaping
943
Networking diagram
Figure 232 Networking diagram of traffic policing and shaping
Configuration procedure
1 Configure the router Router1:
a Configure GTS on the interface ethernet0/0/0 of Router1 to shape the traffic
transmitted from the interface (shaping the traffic exceeding 0.5Mbps) so as to
reduce the packet drop rate of the interface ethernet1/0/0 of Router2.
reduce the packet drop rate of the interface ethernet1/0/0 of Router2.
[Router1]interface ethernet0/0/0
[Router1-Ethernet0/0/0]qos gts cir 500000
2 Configure the router Router2:
a Configure the ACL to match the packets from Server and PC1.
[Router2]acl number 2001
[Router2-acl-basic-2001]rule permit source 1.1.1.0 0.0.0.255
[Router2]acl number 2002
[Router2-acl-basic-2002]rule permit source 1.1.2.0 0.0.0.255
b Configure TP on the interface ethernet1/0/0 to perform the corresponding
traffic control on the different traffic received by the interface ethernet1/0/0.
[Router2]interface ethernet1/0/0
[Router2-Ethernet1/0/0]qos car inbound acl 2001 cir 54000 cbs 54000
ebs 0 green pass red remark-prec-pass 0
[Router2-Ethernet1/0/0]qos car inbound acl 2002 cir 8000 cbs 8000
ebs 0 green pass red discard
[Router2-Ethernet1/0/0]qos car inbound acl 1 cir 500000 cbs 500000
ebs 0 green pass red discard
c Configure TP on the interface ethernet0/0/0 to perform traffic control on the
traffic transmitted on the interface ethernet0/0/0. The traffic should not exceed
1Mbps and the ultralong packets will be dropped.
1Mbps and the ultralong packets will be dropped.
[Router2]interface ethernet0/0/0
[Router2-Ethernet0/0/0]qos car acl 2 outbound cir 1000000 cbs
1000000 ebs 0 green pass red discard
Ethernet
Internet
ethernet0/0/0
ethernet1/0/0
ethernet1/0/0
Quidway2
Quidway1
Server
PC1
ethernet0/0/0
1.1.1.1/8
1.1.1.2/8
PC2
ethernert2/0/0
Router2
Router1