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

Configuration Guide - QoS

CloudEngine 12800 and 12800E V200R003C00

This document describes the configurations of QoS functions, including MQC, priority mapping, traffic policing, traffic shaping, interface-based rate limiting, congestion avoidance, congestion management, packet filtering, redirection, traffic statistics, and ACL-based simplified traffic policy.
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).
Applying the DiffServ Domain

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, apply the DiffServ domain to the VLAN, BD or interface of the packets. The system then maps priorities of packets to PHBs and colors based on the mappings in the DiffServ domain.

Procedure

  • Apply a DiffServ domain to a VLAN.
    1. Run system-view

      The system view is displayed.

    2. Run vlan vlan-id

      The VLAN view is displayed.

    3. (Optional) Run qos phb marking dscp enable

      Mapping from PHBs to DSCP priorities is enabled for outgoing packets.

      By default, mapping from PHBs to DSCP priorities is disabled for outgoing packets.

      NOTE:
      • The CE-L48GT-EA, CE-L48GT-EC, CE-L48GS-EA, CE-L48GS-EC, CE-L24XS-BA, CE-L24XS-EA, CE-L48XS-BA, CE-L48XS-EA and CE-L24LQ-EA cards do not support this command in the VLAN view.

      • By default, the DiffServ domain default is used for priority mapping in a VLAN. A maximum of three different DiffServ domains including the DiffServ domain default can be applied to different VLANs, and the same DiffServ domain can be applied to different VLANs.
      • The device processes green and yellow packets based on mapping rules for green packets, and processes red packets based on the mapping rules for red packets.

    4. Run trust upstream { ds-domain-name | none }

      A DiffServ domain is applied to the VLAN.

      By default, the DiffServ domain default is applied to the VLAN.

      If the trust upstream none command is executed in the VLAN, the system does not perform priority mapping for incoming packets in the VLAN.

      NOTE:
      When the DiffServ domain is applied to an MUX VLAN or super-VLAN, the device can only map Layer 3 traffic according to 802.1p priorities in the DiffServ domain.

    5. Run quit

      The system view is displayed.

    6. (Optional) Run qos phb marking 8021p disable

      Global mapping from PHBs to 802.1p priorities is disabled for outgoing packets.

      By default, global mapping from PHBs to 802.1p priorities is enabled for outgoing packets. After global mapping from PHBs to 802.1p priorities is disabled for outgoing packets, the 802.1p priority in IPv4 packets is changed to 2 and the 802.1p priority in IPv6 packets is changed to 3 during Layer 3 forwarding.

    7. Run commit

      The configuration is committed.

  • Apply a DiffServ domain to a Layer 2 Ethernet interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run trust upstream ds-domain-name

      A DiffServ domain is applied to the interface.

      By default, the DiffServ domain default is applied to the interface.

    4. Run commit

      The configuration is committed.

  • Apply a DiffServ domain to a Layer 3 Ethernet interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run undo portswitch

      The 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 }

      A DiffServ domain is applied to the interface.

      By default, the DiffServ domain default is applied to the interface.

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

    5. Run quit

      Return to the system view.

    6. (Optional) Run qos phb marking dscp enable

      Global mapping from PHBs to DSCP priorities is enabled for outgoing packets.

      By default, global mapping from PHBs to DSCP priorities is disabled for outgoing packets.

    7. (Optional) Run qos phb marking 8021p disable

      Global mapping from PHBs to 802.1p priorities is disabled for outgoing packets.

      By default, global mapping from PHBs to 802.1p priorities is enabled for outgoing packets. After global mapping from PHBs to 802.1p priorities is disabled for outgoing packets, the 802.1p priority in IPv4 packets is changed to 2 and the 802.1p priority in IPv6 packets is changed to 3 during Layer 3 forwarding.

    8. Run commit

      The configuration is committed.

  • Apply a DiffServ domain to a Layer 3 sub-interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number.sub-interface-number

      The Layer 3 sub-interface view is displayed.

      By default, an Ethernet interface works in Layer 2 mode. Before creating a Layer 3 sub-interface, run the undo portswitch command to switch the Ethernet interface to Layer 3 mode.

    3. Run trust upstream { ds-domain-name | none }

      A DiffServ domain is applied to the Layer 3 sub-interface.

      By default, the DiffServ domain default is applied to the Layer 3 sub-interface.

      If the trust upstream none command is executed on a Layer 3 sub-interface, the system does not perform priority mapping for incoming packets.

    4. Run quit

      Return to the system view.

    5. (Optional) Run qos phb marking dscp enable

      Global mapping from PHBs to DSCP priorities is enabled for outgoing packets.

      By default, global mapping from PHBs to DSCP priorities is disabled for outgoing packets.

    6. (Optional) Run qos phb marking 8021p disable

      Global mapping from PHBs to 802.1p priorities is disabled for outgoing packets.

      By default, global mapping from PHBs to 802.1p priorities is enabled for outgoing packets. After global mapping from PHBs to 802.1p priorities is disabled for outgoing packets, the 802.1p priority in IPv4 packets is changed to 2 and the 802.1p priority in IPv6 packets is changed to 3 during Layer 3 forwarding.

    7. Run commit

      The configuration is committed.

  • Apply a DiffServ domain to a VLANIF interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface vlanif vlan-id

      The VLANIF interface view is displayed.

    3. Run trust upstream { ds-domain-name | none }

      A DiffServ domain is applied to the interface.

      By default, the DiffServ domain default is applied to the interface.

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

    4. Run quit

      Return to the system view.

    5. (Optional) Run qos phb marking dscp enable

      Global mapping from PHBs to DSCP priorities is enabled for outgoing packets.

      By default, global mapping from PHBs to DSCP priorities is disabled for outgoing packets.

    6. (Optional) Run qos phb marking 8021p disable

      Global mapping from PHBs to 802.1p priorities is disabled for outgoing packets.

      By default, global mapping from PHBs to 802.1p priorities is enabled for outgoing packets. After global mapping from PHBs to 802.1p priorities is disabled for outgoing packets, the 802.1p priority in IPv4 packets is changed to 2 and the 802.1p priority in IPv6 packets is changed to 3 during Layer 3 forwarding.

    7. Run commit

      The configuration is committed.

    NOTE:
    • After an interface joins a VLAN, if the trust command is configured on the interface to trust packet priorities, the DiffServ domain applied to the interface takes effect. If the trust command is not configured on the interface to trust packet priorities, the DiffServ domain applied to a VLAN takes effect.

    • A Diffserv Domain can be created only in the Admin-VS among all VSs in port mode. The Diffserv Domain created in the Admin-VS can be applied to a VLAN and VLANIF interface. In a VS in port group mode, only the Diffserv Domain created in this VS can be applied to a VLAN and VLANIF interface.

    • Global mapping from PHBs to DSCP or 802.1p priorities in the outbound direction can be enabled only in the Admin-VS among all VSs in port mode. Global mapping from PHBs to DSCP or 802.1p priorities in the outbound direction enabled in the Admin-VS also takes effect in other VSs in port mode. Global mapping from PHBs to DSCP or 802.1p priorities in the outbound direction enabled in a VS in port group mode only takes effect in this VS.

  • Apply a DiffServ domain to a VBDIF interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface vbdif bd-id

      The VBDIF interface view is displayed.

      By default, no VBDIF interface is created on the device. You must run the bridge-domain command to create a bridge domain (BD), and then run the interface vbdif command to create a VBDIF interface and enter the VBDIF interface view.

    3. Run trust upstream { ds-domain-name | none }

      A DiffServ domain is applied to the VBDIF interface.

      By default, the DiffServ domain default is applied to the VBDIF interface.

      If the trust upstream none command is executed on a VBDIF interface, the system does not perform priority mapping for incoming packets on the VBDIF interface.

    4. Run commit

      The configuration is committed.

  • Apply a DiffServ domain to a BD.
    1. Run system-view

      The system view is displayed.

    2. Run bridge-domain bd-id

      The BD view is displayed.

    3. Run trust upstream { ds-domain-name | none }

      A DiffServ domain is applied to the BD.

      By default, the DiffServ domain default is applied to the BD.

      If the trust upstream none command is executed on a BD, the system does not perform priority mapping for incoming packets on the BD.

      NOTE:
      • If a DiffServ domain is applied to a BD and a Layer 2 sub-interface bound to the BD on the CE12800, the system performs mapping based on the mapping defined in the DiffServ domain that is applied to the Layer 2 sub-interface.
      • If a DiffServ domain is applied to a BD and a VLAN bound to the BD on the CE12800, the system performs mapping based on the mapping defined in the DiffServ domain that is applied to the VLAN.

    4. Run commit

      The configuration is committed.

  • Apply a DiffServ domain to a Layer 2 sub-interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number.subnum mode l2

      The Layer 2 sub-interface view is displayed.

    3. Run trust upstream { ds-domain-name | none }

      A DiffServ domain is applied to the Layer 2 sub-interface.

      By default, the DiffServ domain default is applied to the Layer 2 sub-interface.

      If the trust upstream none command is executed on a Layer 2 sub-interface, the system does not perform priority mapping for incoming packets on the Layer 2 sub-interface.

      NOTE:
      • When a Layer 2 sub-interface uses QinQ encapsulation, only the DiffServ domain default is supported.

    4. Run commit

      The configuration is committed.

Translation
Download
Updated: 2019-05-05

Document ID: EDOC1100004202

Views: 24538

Downloads: 25

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