Configuring traffic policing for an AC

Traffic policing controls packet transmission to avoid network congestion. An AC originally refers to a physical link between a PE and a CE to transfer data between the user network and the public network. In MPLS L2VPN, a PE uses service instances to differentiate different VPN traffic transmitted on the AC. Therefore, an AC on a port corresponds to all service instances on the port.

Before you configure traffic policing for an AC, use the qos car command in system view to configure a global CAR action. For more information about CAR, see ACL and QoS Configuration Guide.

After you apply an inbound or outbound global CAR action in service instance view, the device polices the inbound or outbound traffic matching the service instance according to the applied global CAR action.

To apply a global CAR action for a service instance:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter the view of the Layer 2 Ethernet interface or Layer 2 aggregate interface connected to a CE.

  • Enter Layer 2 Ethernet interface view:interface interface-type interface-number

  • Enter Layer 2 aggregate interface view:interface bridge-aggregation interface-number

N/A

3. Enter service instance view.

service-instance instance-id

N/A

4. Apply a global CAR action to the inbound or outbound traffic on the AC.

car { inbound | outbound } name car-name

By default, no global CAR is applied to an AC.

For more information about the car command, see MPLS Command Reference.