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 seven 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 on an interface to PHBs and color the packets.
8021p-inbound 8021p-value phb service-class [ green | yellow | red ]
Map PHBs and colors of outgoing VLAN packets on an interface to 802.1p priorities.
8021p-outbound service-class { green | yellow | red } map 8021p-value
Map DSCP priorities of incoming IP packets on an interface 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 on an interface to DSCP priorities.
ip-dscp-outbound service-class { green | yellow | red } map dscp-value
For details about the default mappings, see Default Settings for Priority Mapping.
- Run commit
The configuration is committed.