Configuring a DiffServ Domain
Context
When the device is located at the edge of a DiffServ domain of another network, configure mappings between internal priorities and external priorities:
- When traffic arrives at the device, the device maps packet priorities to PHBs and colors. The device then performs congestion management based on PHBs and performs congestion avoidance based on colors.
- When sending traffic out, the device maps PHBs and colors of packets to priorities. The downstream device then provides QoS services based on packet priorities.
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 domain default defines default mappings between packet priorities and PHBs/colors. You can modify the mappings defined in the domain default but cannot delete this domain. In addition to the domain default, you can create a maximum of six DiffServ domains.
A DiffServ domain can only be created in the Admin-VS in port mode.
- Run the following commands as required.
Operation
Command
Map 802.1p priorities of incoming VLAN packets to PHBs and color the packets.
8021p-inbound 8021p-value phb service-class [ green | yellow | red ]
Map PHBs and colors of outgoing VLAN packets to 802.1p priorities.
8021p-outbound service-class { green | yellow | red } map 8021p-value
Map DSCP priorities of incoming IP packets to PHBs and color the packets.
ip-dscp-inbound dscp-value phb service-class [ green | yellow | red ]
Map PHBs and colors of outgoing IP packets to DSCP priorities.
ip-dscp-outbound service-class { green | yellow | red } map dscp-value
Map DSCP priorities in IP packets in the inbound direction to internal DSCP priorities.
ip-dscp-inbound dscp-value map in-dscp in-dscp-value
Map internal DSCP priorities to DSCP priorities in IP packets in the outbound direction.
ip-dscp-outbound in-dscp in-dscp-value { green | yellow | red } map dscp-value
Map EXP priorities of incoming MPLS packets to PHBs.
mpls-exp-inbound exp-value phb service-class
Map DSCP priorities of outgoing MPLS packets to EXP priorities.
mpls-exp-outbound dscp-value map exp-value
Map PHBs and colors of outgoing VPLS packets to EXP priorities.
exp-outbound service-class color map exp-value
Map EXP priorities of incoming VPLS packets to PHBs and color the packets.
exp-inbound exp-value phb service-class color
For details about the default mappings, see Default Settings for Priority Mapping.
- Run commit
The configuration is committed.