Configuring MPLS L2VPN QoS
Context
After you configure MPLS VPN QoS, differentiated services are provided for different services on the MPLS L2VPN network based on the service priorities.
On an MPLS L2VPN network, you can configure MPLS L2VPN QoS to differentiate services in a VPN. To retain the priorities of original packets, set the DiffServ mode to pipe. To change the priorities of original packets, set the DiffServ mode to uniform.
Procedure
- Run system-view
The system view is displayed.
- Create a DiffServ domain and configure priority mapping.
Performing the following steps on the ingress:
Run diffserv domain ds-domain-name
A DiffServ domain is created and the DiffServ domain view is displayed.
The default domain defines default mappings from packet priorities to PHBs. You can modify the mapping defined in the default domain but cannot delete the default domain. In addition to the DiffServ domain default, a maximum of six user-defined DiffServ domains can be created.
Run exp-outbound service-class color map exp-value
The PHB and color in original packets are mapped to the EXP priority of VPLS packets in the outbound direction of an interface.
For details on the default mapping from PHBs and colors in original packets to EXP priorities of VPLS packets in the outbound direction of an interface in a DiffServ domain, see exp-outbound.
Run quit
Return to the system view.
Performing the following steps on the egress:
Run diffserv domain ds-domain-name
A DiffServ domain is created and the DiffServ domain view is displayed.
The default domain defines default mappings from packet priorities to PHBs. You can modify the mapping defined in the default domain but cannot delete the default domain. In addition to the DiffServ domain default, a maximum of six user-defined DiffServ domains can be created.
Run exp-inbound exp-value phb service-class color
The EXP priority of VPLS packets is mapped to the PHB in the inbound direction of an interface.
For details on the default mapping from EXP priorities of VPLS packets to PHBs and colors in the inbound direction of an interface in a DiffServ domain, see exp-inbound.
Run quit
Return to the system view.
If a user-defined DiffServ domain is used:
- When a VLANIF interface is connected to an L2VPN, you need to run the trust upstream ds-domain-name command in the VLAN view of the egress node to apply this domain.
- When a BD is connected to an L2VPN, you need to run the trust upstream ds-domain-name command in the BD view or Layer 2 sub-interface view to apply this domain. The configuration in the Layer 2 sub-interface view takes precedence over that in the BD view.
- Run mpls l2vpn mode { pipe | uniform } [ domain ds-name ]
The DiffServ mode for MPLS L2VPN is specified and applied to a DiffServ domain.
When the DiffServ mode for MPLS L2VPN is Uniform, the 802.1p priorities of packets can only be mapped to EXP priorities.
On the CE6870EI or CE6875EI:
- When a VLANIF interface is connected to an L2VPN and the DiffServ mode is set to pipe, the egress node will map PHBs to 802.1p priorities for outgoing packets if the interface encapsulation type is changed to Ethernet using the encapsulation ethernet command. The mappings are pre-defined by the system and cannot be changed.
- When a BD is connected to an L2VPN and the DiffServ mode is set to uniform, packets will retain their 802.1p priorities when leaving the network if a QinQ transparent transmission Layer 2 sub-interface, Dot1q transparent transmission Layer 2 sub-interface, or default Layer 2 sub-interface (allowing tagged packets) is connected to the L2VPN.
- When a BD is connected to an L2VPN and the DiffServ mode is set to pipe, the egress node will map PHBs to 802.1p priorities for outgoing packets if a QinQ termination Layer 2 sub-interface or Dot1q termination Layer 2 sub-interface is connected to the L2VPN. The mappings are pre-defined by the system and cannot be changed.
- Run commit
The configuration is committed.