GigaSMART MPLS Traffic Performance Enhancement
The GigaSMART MPLS traffic performance enhancement provides a method to improve GigaSMART packet processing for MPLS traffic and other traffic having Layer 2 encapsulation, such as L2GRE or VNTag. This type of traffic has a header in the packet between the MAC address and the IP address. 1 shows the MPLS example.
1 | MPLS Header Between MAC and IP Address in Packet |
Refer to the following examples:
Flow Masking Example 1 |
Flow Masking Example 2 |
Flow Masking Example 1
In Example 1 packets are expected to have two MPLS labels before the IP header, and no VLAN tag between the MAC and MPLS headers. IP addresses will be used to identify the flows.
The offset will be the sum of the following: 14 bytes for the MAC address + 8 bytes for the MPLS headers +12 bytes offset from the beginning of the IP header = 34 bytes.
The length will be the sum of the following: 4 bytes for ipsrc + 4 bytes for ipdst = 8 bytes.
Use the following CLI command syntax to configure Example 1:
(config) # gsparams gsgroup gsgrp1 flow-mask enable offset 34 length 8
Flow Masking Example 2
In Example 2, packets are expected to have one VLAN tag and two MPLS labels before the IP header. IP addresses will be used to identify the flows.
The offset will be the sum of the following: 14 bytes for the MAC address + 4 bytes for the VLAN tag + 8 bytes for the MPLS headers +12 bytes offset from the beginning of the IP header = 38 bytes.
The length will be the sum of the following: 4 bytes for ipsrc + 4 bytes for ipdst = 8 bytes.
Use the following CLI command syntax to configure Example 2:
(config) # gsparams gsgroup gsgrp1 flow-mask enable offset 38 length 8