Configuring MPLS L2VPN QoS (Except CE6870EI/CE6875EI)
Context
You can configure MPLS L2VPN QoS to distinguish services with different priorities on an MPLS L2VPN network and provide differentiated services accordingly.
On an MPLS L2VPN network, you can configure MPLS L2VPN QoS to distinguish different services from the same VPN.
If you want to retain priorities carried in original packets when the EXP priority changes, set the DiffServ mode to short pipe. If you set the DiffServ mode to uniform or pipe, priorities carried in original packets may be changed. In uniform and pipe modes, the egress node determines the per-hop behavior (PHB) based on EXP priorities of packets. In short pipe mode, the egress node determines the PHB based on 802.1p priorities of packets.
Procedure
- Run system-view
The system view is displayed.
- 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 default domain, a maximum of seven DiffServ domains can be created.
- Configure priority mapping.
Choose either of the following tasks:
- DiffServ mode: uniform
Run exp-outbound service-class color map exp-value
The PHBs and colors are mapped to the EXP priorities for outgoing MPLS packets on the ingress node.
For details about the default mapping from PHBs and colors to the EXP priorities for outgoing packets in a DiffServ domain, see exp-outbound.
Run exp-inbound exp-value phb service-class color
The EXP priorities are mapped to PHBs and colors for incoming MPLS packets on the egress node.
For details about the default mapping from the EXP priorities to PHBs and colors for incoming packets in a DiffServ domain, see exp-inbound.
- Run quit
Return to the system view.
DiffServ mode: pipe
Run exp-inbound exp-value phb service-class color
The EXP priorities are mapped to PHBs and colors for incoming MPLS packets on the egress node.
For details about the default mapping from the EXP priorities to PHBs and colors for incoming packets in a DiffServ domain, see exp-inbound.
If you want to retain the 802.1p priorities of original packets and make them effective after packets leave the MPLS network, run the qos phb marking 8021p disable command on the outbound interface of the egress node to disable mapping from PHBs to the 8021.p priorities.
- Run quit
Return to the system view.
- DiffServ mode: short pipe
Run exp-outbound service-class color map exp-value
The PHBs and colors are mapped to the EXP priorities for outgoing MPLS packets on the ingress node.
For details about the default mapping from PHBs and colors to the EXP priorities for outgoing packets in a DiffServ domain, see exp-outbound.
If exp-value is specified, skip this step.
In the inbound direction of the interface on the egress node, the system sends packets to the queue whose internal priority is 0 and sets the color to green by default.
- Run quit
Return to the system view.
- DiffServ mode: uniform
- Configure an MPLS DiffServ mode.
- Run commit
The configuration is committed.