The diffserv-mode command configures a DiffServ mode for MPLS L2VPN or MPLS L3VPN labels to implement end-to-end QoS.
The undo diffserv-mode command restores the default DiffServ mode of an MPLS network.
By default, the uniform mode is used for MPLS L2VPN or MPLS L3VPN labels.
diffserv-mode { pipe { mpls-exp mpls-exp | domain ds-name } | short-pipe [ mpls-exp mpls-exp ] domain ds-name | uniform [ domain ds-name ] }
undo diffserv-mode
Parameter | Description | Value |
---|---|---|
pipe | Indicates that the DiffServ mode of an MPLS network is pipe. |
- |
short-pipe | Indicates that the DiffServ mode of an MPLS network is short pipe. |
- |
uniform | Indicates that the DiffServ mode of an MPLS network is uniform. |
- |
mpls-exp mpls-exp | Specifies the EXP priority in the private label. This parameter is valid only when the DiffServ mode on the ingress PE is set to pipe or short pipe. It is invalid on the egress PE. If a DiffServ domain is configured, the inner label specified by mpls-exp is preferred for the mapping. When the mpls-exp parameter is set to a large value, the packets have high priority and packet forwarding quality is high. |
The value is an integer that ranges from 0 to 7. The default value is 0. |
domain ds-name | Indicates the name of the DiffServ domain. The default DiffServ domain name is default. This parameter is specified in the diffserv domain command. |
The value is an existing DiffServ domain name. |
Usage Scenario
If you want to differentiate priorities of different services in a VPN, set the DiffServ mode to uniform. You can also set the DiffServ mode to pipe or short pipe, but you need to specify the DiffServ domain in which the mode applies.
If you want to differentiate priorities of services in different VPNs but not priorities of services in a VPN, set the DiffServ mode to pipe or short pipe and specify EXP values in private labels.
If you do not want to change priorities carried in original packets, you are advised to set the DiffServ mode to pipe or short pipe. 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 DSCP or 802.1p priorities of packets.
Precautions
Before configuring the MPLS Diff-Serv mode for IPv4 services, ensure that an IPv4 address family is configured in the VPN instance view using the ipv4-family command.
Before configuring the MPLS Diff-Serv mode for IPv6 services, ensure that an IPv6 address family is configured in the VPN instance view using the ipv6-family command.
On the ingress, all the three modes can be set. On the egress, only the short pipe mode can be set.
If you specify the DiffServ domain in the diffserv-mode command, ensure that the specified DiffServ domain is already created using the diffserv domain command in the system view.
Before running this command, use the undo portswitch command to set the working mode of the Ethernet interfaces to Layer 3 mode.
The diffserv-mode command takes effect only for the new LSPs. To make the command take effect for the existing LSPs, run the reset mpls ldp command to reestablish LSPs.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] diffserv-mode pipe mpls-exp 3
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] diffserv-mode pipe mpls-exp 3