What Are Usage Scenarios of a Traffic Policy and What Is the Procedure for Confi
A traffic policy can be associated with traffic classifiers containing ACLs and traffic behaviors to filter traffic, implement access control, and redirect and mirror packets. The procedure for configuring a traffic policy is as follows:
|
Example for Configuring Traffic Policing Based on a Traffic Classifier The Switch provides different bandwidth by configuring traffic policing based on a traffic classifier and setting different CAR parameters. Networking RequirementsThe Switch is connected to the router through GE 0/0/3; enterprise and individual users can access the network through the Switch and router. SeeTable 1.
On the Switch, packets of different services need to be policed, and the total traffic of enterprise and individual users needs to be controlled in a proper range. The DSCP priorities carried in service packets sent from the user side are unreliable and services require different QoS in actual applications; therefore, you need to re-mark DSCP priorities of different service packets on the Switch. In this manner, the downstream router can process packets according to different priorities. The requirements are as follows: Table 1 QoS provided by the Switch for upstream traffic
Figure 1 Networking diagram for configuring traffic policing based on a traffic classifier http://127.0.0.1:52199/hedex/pages/DE107063/01%20(2010-06-28)/DE107063/01%20(2010-06-28)/resources/s/images/fig_dc_s_cfg_x0162301.png Configuration Roadmap The configuration roadmap is as follows:
Data Preparation To complete the configuration, you need the following data:
Procedure
Configuration file of the Switch # sysname Switch # vlan batch 100 110 120 200 210 220 # traffic classifier c6 operator and if-match 5 vlan-id 200 traffic classifier c4 operator and if-match 5 vlan-id 220 traffic classifier c2 operator and if-match 5 vlan-id 110 traffic classifier c5 operator and if-match 5 vlan-id 210 traffic classifier c3 operator and if-match 5 vlan-id 100 traffic classifier c1 operator and if-match 5 vlan-id 120 # traffic behavior b1 car cir 10000 pir 15000 cbs 1250000 pbs 1875000 green pass yellow pass red discard remark dscp ef statistic enable traffic behavior b3 car cir 40000 pir 60000 cbs 5000000 pbs 7500000 green pass yellow pass red discard remark dscp af13 statistic enable traffic behavior b5 car cir 40000 pir 60000 cbs 5000000 pbs 7500000 green pass yellow pass red discard remark dscp af33 statistic enable traffic behavior b2 car cir 50000 pir 75000 cbs 6250000 pbs 9375000 green pass yellow pass red discard remark dscp af33 statistic enable traffic behavior b4 car cir 10000 pir 15000 cbs 1250000 pbs 1875000 green pass yellow pass red discard remark dscp ef statistic enable traffic behavior b6 car cir 30000 pir 45000 cbs 3750000 pbs 5625000 green pass yellow pass red discard remark dscp af13 statistic enable # traffic policy p1 classifier c1 behavior b1 classifier c2 behavior b2 classifier c3 behavior b3 classifier c4 behavior b4 classifier c5 behavior b5 classifier c6 behavior b6 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 110 120 traffic-policy p1 inbound # interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 200 210 220 traffic-policy p1 inbound # interface GigabitEthernet0/0/3 port link-type trunk port trunk allow-pass vlan 100 110 120 200 210 220 # return |

Favorite (0)