S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - QoS

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, ACL-based simplified traffic policy, and HQoS.

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, ACL-based simplified traffic policy, and HQoS.

(Optional) Configuring the Data Buffer

(Optional) Configuring the Data Buffer

Context

The data buffer caches packets to be sent from an interface to prevent packet loss upon traffic bursts. When the data buffer is full, the device does not cache packets and directly discards packets not entering the buffer. You can adjust the buffering capacity of interface queues to improve the forwarding performance.

Procedure

  • Configure the maximum ratio of the dynamic buffer occupied by a queue on an interface of the S5720EI, S6720EI, and S6720S-EI.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run qos queue queue-index buffer shared-ratio ratio-value

      The maximum ratio of the dynamic buffer occupied by a queue on an interface is set.

    The maximum ratio of the dynamic buffer occupied by a queue on an interface and a burst traffic buffering mode of the interface or switch cannot be configured simultaneously.

  • Configure a burst traffic buffering mode on an interface of the S5720EI, S6720EI, and S6720S-EI.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run qos burst-mode { enhanced | extreme }

      A burst traffic buffering mode is configured on the interface.

      The enhanced mode is recommended because the extreme mode may affect forwarding on other interfaces.

    A burst traffic buffering mode and the maximum ratio of the dynamic buffer occupied by a queue cannot be configured on the same interface simultaneously.

  • Configure a burst traffic buffering mode of the S5720EI, S6720EI, and S6720S-EI.
    1. Run system-view

      The system view is displayed.

    2. Run qos burst-mode { enhanced | extreme } slot slot-id

      A burst traffic buffering mode is configured on the device.

      The enhanced mode is recommended because the extreme mode may affect forwarding on other interfaces.

    A burst traffic buffering mode on a switch and the maximum ratio of the dynamic buffer occupied by a queue on an interface cannot be configured simultaneously.

  • Configure queue lengths on an interface of the S1720GFR, S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5710-X-LI, S5720LI, S5720S-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, and S6720S-SI.
    1. Run system-view

      The system view is displayed.

    2. Run qos tail-drop-profile profile-name

      A tail drop profile is created and its view is displayed.

    3. Run the following commands as required.

      • On the S2750EI and S5700-10P-LI, run qos queue queue-index green max-length packet-number non-green max-length packet-number

        The length of a queue is set.

      • On other models except the S2750EI and S5700-10P-LI, run qos queue queue-index max-length packet-number [ green max-length packet-number ]

        The length of a queue is set.

      • On other models except the S2750EI and S5700-10P-LI, run qos queue queue-index green max-length packet-number

        The length of a queue is set.

    4. Run quit

      Return to the system view.

    5. Run interface interface-type interface-number

      The interface view is displayed.

    6. Run shutdown

      The interface is shut down.

    7. Run qos tail-drop-profile profile-name

      The tail drop profile is applied to the interface.

    8. Run undo shutdown

      The interface is started.