Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Manage Ingress Oversubscription with Traffic Class Maps

Ingress Oversubscription at the Packet Forwarding Engine

Ingress oversubscription is a state where the transmission rate of the incoming packets is much higher than the rate that the Packet Forwarding Engine and router can handle, causing important packets to be dropped. If an oversubscribed link or service experiences an excess of traffic, it can result in traffic loss or delay that could potentially affect other services and links.

The Packet Forwarding Engine uses fixed rules to decide the priority of incoming packets. Based on these fixed rules, the Packet Forwarding Engine categorizes incoming packets into high-priority network control packets and low-priority best-effort packets. Packets with protocols such as routing protocols are classified as network control packets. Packets with protocols such as Telnet, FTP, and SSH are classified as best-effort packets.

The limitation of these fixed rules is that even if the trusted and non-network-control packets marked by a CE router are forwarded to the transit router, the transit router might drop these packets. This packet drop happens because, according to the fixed rules, none of these packets are high-priority packets for the transit router.

To overcome this limitation, you can prioritize and classify the traffic entering a Packet Forwarding Engine by configuring a traffic class map based on CoS values and associating the values with a traffic class such as real-time, network control, or best-effort. You can associate the traffic class map with an interface on the transit router. During ingress oversubscription, the router interface uses this user-defined traffic class map to select the packet priority.

Note:

Use Feature Explorer to confirm platform and release support for traffic class maps.

Configure Traffic Class Maps

To configure a traffic class map:

  1. Configure the interface. This interface needs to be associated with the configured traffic class maps.
  2. Create a traffic class map based on CoS code points, and map the code points to a traffic class to decide the input packet priority.
    • To create a DSCP traffic class map and map the code points to a traffic class for IPv4 and IPv6 traffic, include the following statements at the [edit class-of-service] hierarchy level.

    • To create an IEEE 802.1 traffic class map and map the code points to a traffic class, include the following statements at the [edit class-of-service] hierarchy level.

    • To create an MPLS EXP traffic class map and map the code points to a traffic class, include the following statements at the [edit class-of-service] hierarchy level.

    • To create an IPv4 precedence traffic class map and map the code points to a traffic class, include the following statements at the [edit class-of-service] hierarchy level.

    • To create an IEEE 802.1ad code point traffic class map and map the code points to a traffic class, include the following statements at the [edit class-of-service] hierarchy level.

  3. Associate the traffic class map with the interface that is configured in Step 1.
    • Associate the DSCP traffic class map with the interface.

    • Associate the IEEE 802.1 traffic class map with the interface.

    • Associate the MPLS EXP traffic class map with the interface.

    • Associate the IPv4 precedence traffic class map with the interface.

    • Associate the IEEE 802.1ad traffic class map with the interface.

    Note:
    • If you do not associate the traffic class map with the configured interface, all traffic through this interface is treated with the existing fixed rule in the Packet Forwarding Engine. The existing fixed rule prioritizes network control traffic over best-effort traffic.

    • As soon as you associate a traffic class map with an interface, any code points entering that interface and not included in the traffic class map are treated as best effort.

    • You can associate either an IPv4 precedence traffic class map or a DSCP traffic class map with an interface. You cannot associate both these traffic class maps with a single interface. The DSCP traffic class map applies to both IPv4 and IPv6 traffic.

    • You can associate either an IEEE 802.1 traffic class map or an IEEE 802.1ad traffic class map with an interface. You cannot associate both these traffic class maps with a single interface.

    • An aggregated Ethernet interface bundle can have member links from both interfaces that support traffic class maps and interfaces that do not. A configured traffic class map is associated with an aggregated Ethernet bundle in following ways:

      • If an aggregated Ethernet bundle has child links only from interfaces that support traffic class maps, then the traffic class map is associated with all links of the aggregated Ethernet bundle.

      • If an aggregated Ethernet bundle has child links only from interfaces that do not support traffic class maps, then the traffic class map is not associated with the aggregated Ethernet bundle or its links.

      • If an aggregated Ethernet bundle has child links from interfaces that support traffic class maps and also interfaces that do not, the traffic class map associates only with the links from the interfaces that support traffic class maps.

Example: Configuring Traffic Class Maps

This example shows the configuration of traffic class maps on an MX Series routers with MPCs.

Note:

Use Feature Explorer to confirm platform and release support for traffic class maps.

Requirements

This example uses the following hardware and software components:

  • One MX Series router

  • One CE router

Before you configure the traffic class maps, be sure you have:

  • Connected the CE router to the MX Series router.

Overview and Topology

This example shows the configuration of traffic class maps on an MX Series router that is connected to a CE router.

Figure 1: Configuring Traffic Class Maps on MX Series router Configuring Traffic Class Maps on MX Series router

As shown in Figure 1, the CE router forwards the traffic to interface xe-4/0/0 and xe-4/0/1 on the router.

The traffic class maps need to be configured on the router and associated with the interface xe-4/0/0 and the interface xe-4/0/1 so that the packets can be classified based on the user-defined configuration. When ingress oversubscription occurs, the router uses the user-defined traffic class map to process the packets.

This example shows how to create the following traffic class maps with CoS code points and associate these code points with the traffic class.

  • IPv4 precedence traffic class map with code points 000 001, 010 011, and 100 101. Map these code points to the real-time, network-control, and best-effort traffic classes, respectively.

  • MPLS EXP traffic class map with code points 000 001, 010 011, and 100 101. Map these code points to the real-time, network-control, and best-effort traffic classes, respectively.

  • IEEE 802.1 traffic class map with code points 000 001, 010 011, and 100 101. Map these code points to the real-time, network-control, and best-effort traffic classes, respectively.

  • DSCP traffic class map with code points 100001 100010 100011, 010011 010100 010101, and 101001 101010 101011. Map these code points to the real-time, network-control, and best-effort traffic classes, respectively.

  • IEEE 802.1ad traffic class map with code points 0000 0001 1000 1001, 0010 0011 1010 1011, and 0100 0101 1100 1101. Map these code points to the real-time, network-control, and best-effort traffic classes, respectively.

The traffic class maps IPv4 precedence, MPLS EXP, and IEEE 802.1 are associated with the interface xe-4/0/0. The traffic class maps DSCP and IEEE 802.1ad are associated with the interface xe-4/0/1.

Configuration

To configure the traffic class map, perform the following tasks:

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them in a text file, and remove any line breaks. Change any details necessary to match your network configuration, and paste the commands into the CLI at the [edit] hierarchy level.

Configuring Interfaces

Step-by-Step Procedure

Configure the interfaces. These interfaces need to be associated with traffic class maps.

  1. Configure the interface xe-4/0/0 with unit 0 as its logical interface, inet as protocol family, and 198.51.100.0/24 as the IP address.

  2. Configure the interface xe-4/0/1 with unit 0 as its logical interface, inet as protocol family, and 198.51.100.1/24 as the IP address. Also, enable the VLAN tagging and configure a VLAN ID (for example, 111) to receive and transmit VLAN-tagged frames on the interface.

Configuring Traffic Class Maps for the Code Points and Mapping the Code Points to a Traffic Class

Step-by-Step Procedure

You can prioritize and classify the traffic entering a Packet Forwarding Engine by configuring a traffic class map based on the code points and associating the map with the traffic class.

  1. Create an IPv4 precedence traffic class map inetp and map its code points 000 001, 010 011, and 100 101 to the real-time, network control, and best-effort traffic classes, respectively.

  2. Create an MPLS EXP traffic class map mpls_exp and map the code points 000 001, 010 011, and 100 101 to the real-time, network control, and best-effort traffic classes, respectively.

  3. Create an IEEE 802.1 traffic class map 802.1p and map the code points 000 001, 010 011, and 100 101 to the real-time, network control, and best-effort traffic classes, respectively.

  4. Create a DSCP traffic class map dscp_v4 and map the code points 100001 100010 100011, 010011 010100 010101, and 101001 101010 101011 to the real-time, network control, and best-effort traffic classes, respectively.

  5. Create an IEEE802.1ad traffic class map 802.1ad and map the code points 0000 0001 1000 1001,0010 0011 1010 1011, and 0100 0101 1100 1101 to the real-time, network control, and best-effort traffic classes, respectively.

Associating Interfaces with Traffic Class Maps

Step-by-Step Procedure

You need to associate the configured traffic class maps with the interfaces on which you want to prioritize and classify the input traffic.

  1. Associate the traffic class maps inetp, mpls_exp, and 802.1p with the interface xe-4/0/0.

  2. Associate the traffic class map dscp_v4 and 802.1ad with the interface xe-4/0/1.

Results

Verification

Verifying Mapping of Code Points to Input Traffic Classes

Purpose

Verify that the code points of traffic class maps are mapped to the corresponding traffic classes.

Action

In operational mode, enter the show class-of-service traffic-class-map command.

Meaning

The display output fields Traffic-class-map and Code-point type indicate the configured traffic class map and the type of code point information, respectively.

The fields Code point and Traffic class show the mapping between the code points and the traffic class.

Verifying Mapping of Interfaces to Traffic Class Maps

Purpose

Verify that the configured interfaces are mapped to the corresponding traffic class maps.

Action

In operational mode, enter the show class-of-service forwarding-table traffic-class-map mapping command.

Meaning

The output shows that:

  • Interface xe-4/0/0 is associated with the traffic class maps INET-Precedence, MPLS EXP, and IEEE-802.1.

  • Interface xe-4/0/1 is associated with the traffic class maps DSCP and IEEE-802.1AD.

Verifying Traffic Class Information on the Interface

Purpose

Verify the packet information based on the configured traffic class map.

Action

In operational mode, enter the show interfaces xe-4/0/0 extensive and show interfaces xe-4/0/1 extensive commands.

Meaning

The Preclassifier statistics field shows the information for received, transmitted, and dropped packets for each of the configured traffic class map.