No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 13

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Priority Mapping

Configuring Priority Mapping

After priority mapping is configured, the device maps packet priorities or the default interface priority to PHBs and colors so that the device can provide differentiated services for packets.

Priority Mapping Configuration Logic

  1. Configure the packet priority trusted by an interface so that mapping is performed according to the trusted priority.
  2. Configure a DiffServ domain to determine the mapping between packet priorities and internal priorities (CoS values) so that the device provides differentiated services according to internal priorities.
  3. Apply the DiffServ domain to an object so that the mapping and re-marking take effect.
  4. Configure the mapping between internal priorities and queue indexes so that packets with different internal priorities are sent to different queues. This is because the device provides default mapping between internal priorities and queue indexes. This step is optional.

Pre-Configuration Tasks

Before configuring priority mapping, complete the following tasks:

  • Setting physical parameters of relevant interfaces
  • Setting the link-layer attributes of each interface

Configuring the Packet Priority Trusted by an Interface

Context

The device determines the priority type for priority mapping.

You can configure the device to trust either of the following priorities:
  • 802.1p priority

    • When receiving a tagged packet, the device searches the mapping table for the 802.1p priority of the packet, and then tags the packet with the mapping inner priority.
    • When receiving an untagged packet, the device searches the mapping table based on the default 802.1p priority, and then tags the packet with the mapping inner priority.
  • DSCP priority

    When receiving a packet, the device searches the mapping table for the DSCP priority of the packet, and then tags the packet with the mapping inner priority.

By default, an interface trusts the default 802.1p priority.

After packets flow into the device,
  • In Layer 2 forwarding mode

    If packets carry tags, the interface trusts the 802.1p priority. If packets carry no tag, the interface forwards them based on the interface priority.

  • In Layer 3 forwarding mode

    Configure the interface to trust DSCP priorities.

When an Ethernet interface switches to Layer 3 mode through the undo portswitch command, you cannot configure the Ethernet interface to trust other priorities. This Ethernet interface trusts DSCP priorities by default.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    trust { 8021p { inner | outer } | dscp }

    The priority trusted by the interface is specified.

    By default, an interface trusts 802.1p priorities in outer VLAN tags.

    When an Ethernet interface switches to Layer 3 mode through the undo portswitch command, you cannot configure the Ethernet interface to trust other priorities. This Ethernet interface trusts DSCP priorities by default.

  4. Run:

    commit

    The configuration is committed.

(Optional) Configuring the Priorities of Interfaces

Context

The interface priority is used as follows:
  • If an interface receives untagged packets, the switch provides differentiated services for packets based on the port priority.

  • If the priority mapping function is disabled on the interface using the trust upstream none command, the switch provides differentiated services for forwarded packets based on the port priority.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    port priority priority-value

    The interface priority is set.

    The default port priority is 0.

  4. Run:

    commit

    The configuration is committed.

Configuring a DiffServ Domain

Context

When the device functions as the edge node in the DiffServ domain, configure priority mapping between internal priorities and external priorities:

  • When traffic enters the device, the device maps packet priorities to PHBs and colors, and then performs congestion management based on PHBs and performs congestion avoidance based on colors.
  • When traffic flows out of the device, the device maps PHBs and colors of packets to priorities. The downstream device provides QoS services based on packet priorities.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. 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 mapping defined in the domain default but cannot delete the domain default. In addition to the domain default, a maximum of 7 DiffServ domains can be created.

  3. Run the following commands as required.

    Operation

    Command

    Map 802.1p priorities to PHBs on the inbound direction of an interface and color the packets.

    8021p-inbound 8021p-value phb service-class [ green | yellow | red ]

    Map PHBs and colors to 802.1p priorities on the outbound direction of an interface.

    8021p-outbound service-class { green | yellow | red } map 8021p-value

    Map DSCP priorities to PHBs on the inbound direction of an interface and color the packets.

    ip-dscp-inbound dscp-value phb service-class [ green | yellow | red ]

    Map PHBs and colors to DSCP priorities on the outbound direction of an interface .

    ip-dscp-outbound service-class { green | yellow | red } map dscp-value

    Default Configuration describes the following default mappings:
    • Mapping from 802.1p priorities to PHBs and colors
    • Mapping from PHBs and colors to 802.1p priorities
    • Mapping from DSCP priorities to PHBs and colors
    • Mapping from PHBs and colors to DSCP priorities

  4. Run:

    commit

    The configuration is committed.

Applying the DiffServ Domain

Context

To map priorities of incoming or outgoing packets to PHBs and colors based on the mappings defined in a DiffServ domain, bind the DiffServ domain to the inbound or outbound interface of the packets. The system then maps priorities of packets to PHBs and colors based on the mappings in the DiffServ domain.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. (Optional) Run:

    undo portswitch

    An interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    The command cannot be executed on an interface that has any Layer 2 configuration. To configure this interface to work in Layer 3 mode, delete the Layer 2 configuration and run the undo portswitch command.

  4. Run:

    trust upstream { ds-domain-name | none }

    The DiffServ domain is bound to the interface.

    If trust upstream none is executed on an interface, the system does not perform priority mapping for incoming and outgoing packets.

  5. (Optional) Run:

    qos phb marking dscp enable

    The mapping between PHBs and DSCP priorities is enabled for outgoing packets.

    By default, the mapping between PHBs and DSCP priorities is enabled for outgoing packets.

  6. (Optional) Run:

    qos phb marking 8021p disable

    The mapping between PHBs and 802.1p priorities is disabled for outgoing packets.

    By default, the mapping between PHBs and 802.1p priorities is not enabled for outgoing packets.

  7. Run:

    commit

    The configuration is committed.

(Optional) Configuring the Mapping Between a CoS and a Queue Index

Context

A device schedules packets based on queues. After packet priorities are mapped to CoS values (PHBs), the device sends packets to queues based on the mapping between CoS values and queue indexes to provide packets with differentiated services.

By default, CoS values and port queues are mapped in one-to-one mode. In practice, packets with two or more CoS values are scheduled in the same queue to save the device buffer. The device sends packets to different port queues based on the internal priority, and performs traffic shaping, congestion avoidance, and queue scheduling for the queues.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    qos local-precedence-queue-map local-precedence queue-index

    The mapping PHBs and queues is configured.

    For the default mappings between CoS values and queue indexes, see Mappings between CoS values and queues.

  3. Run:

    commit

    The configuration is committed.

Checking the Configuration

Procedure

  • Run the display diffserv domain [ brief | ds-domain-name ] command to check the DiffServ domain configuration.
Translation
Download
Updated: 2019-12-13

Document ID: EDOC1000041694

Views: 60285

Downloads: 3623

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next