< Home

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

  1. Run system-view

    The system view is displayed.

  2. Run diffserv domain { default | 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. (On the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S, only the DiffServ domain default is supported.)

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-S, S5731S-H, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735S-S, S5735-S-I, S6720-EI, S6720S-EI, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S support priority mapping configuration using a DiffServ domain.

    On the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S, the ds-domain-name parameter cannot be specified.

  3. Run the following commands as required.

    S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-S, S5731S-H, S5732-H, S6720-EI, S6720S-EI, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S:

    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

    Map EXP priorities of incoming MPLS packets on an interface to PHBs and color the packets. (supported only on the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)

    mpls-exp-inbound exp-value phb service-class [ color ]

    Map the PHBs and colors of outgoing MPLS packets on an interface to the EXP priorities. (supported only on the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)

    mpls-exp-outbound service-class color map exp-value

    S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S:

    Operation

    Command

    Map 802.1p priorities of incoming VLAN packets on an interface to PHBs.

    8021p-inbound 8021p-value phb service-class

    Map PHBs of outgoing VLAN packets on an interface to 802.1p priorities.

    8021p-outbound service-class map 8021p-value

    Map DSCP priorities of incoming IP packets on an interface to PHBs.

    ip-dscp-inbound dscp-value phb service-class

    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

    Refer to Default Settings for Priority Mapping for the default mappings, including:
    • Mappings from 802.1p priorities to PHBs and colors
    • Mappings from PHBs and colors to 802.1p priorities
    • Mappings from DSCP priorities to PHBs and colors
    • Mappings from PHBs and colors to DSCP priorities
    • Mappings from MPLS EXP priorities to PHBs and colors
    • Mappings from PHBs and colors to MPLS EXP priorities

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >