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.

Configuring a Traffic Behavior

Configuring a Traffic Behavior

Pre-configuration Tasks

Before configuring a traffic behavior, configure link layer attributes of interfaces to ensure that the interfaces work properly.

Context

The device supports actions including packet filtering, priority re-marking, flow ID re-marking, redirection, traffic policing, and traffic statistics collection.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run traffic behavior behavior-name

    A traffic behavior is created and the traffic behavior view is displayed, or the view of an existing traffic behavior is displayed.

  3. Define actions in the traffic behavior. You can configure multiple non-conflicting actions in a traffic behavior.

    Action

    Command

    Remarks

    Packet filtering

    deny | permit

    In the same traffic behavior, the deny action cannot be used with other traffic actions except for traffic statistics collection and flow mirroring.

    For details on how to configure packet filtering, see Packet Filtering Configuration.

    Priority re-marking

    remark 8021p [ 8021p-value | inner-8021p ]

    remark dscp { dscp-name | dscp-value }

    remark local-precedence

    remark ip-precedence ip-precedence

    For details on how to configure MQC-based priority re-marking on 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, see Configuring MQC-based Priority Re-marking.

    For details on how to configure MQC-based priority re-marking on the S5720EI, S5720HI, S6720EI, and S6720S-EI, see Configuring MQC-based Priority Re-marking.

    Destination MAC address re-marking

    remark destination-mac mac-address (S5720EI, S6720EI, S6720S-EI)

    For details on how to configure MQC-based destination MAC address remarking, see Configuring Re-marking of Destination MAC Addresses in "MAC Address Table Configuration" in the S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - Ethernet Switching.

    Flow ID re-marking

    remark flow-id flow-id (S5720EI, S6720EI, S6720S-EI)

    -

    Redirection

    redirect cpu (S5720EI, S5720HI, S6720EI, S6720S-EI)

    redirect interface interface-type interface-number [ forced ]

    A traffic policy containing redirect interface and redirect cpu can only be applied to the inbound direction.

    For details on how to configure redirection, see Redirection Configuration.

    Traffic policing

    car

    For details on how to configure MQC-based traffic policing, see Configuring MQC to Implement Traffic Policing.

    Hierarchical traffic policing

    car car-name share (S5720EI, S5720HI)

    A traffic policy containing car share can only be applied to the inbound direction.

    Flow mirroring

    mirroring to observe-port observe-port-index

    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 support flow mirroring only in the inbound direction.

    For details on how to configure MQC-based flow mirroring, see Configuring MQC-based Local Traffic Mirroring and Configuring MQC-based Remote Traffic Mirroring in "Mirroring Configuration" in the S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - Network Management and Monitoring.

    PBR

    redirect ip-nexthop

    redirect ipv6-nexthop

    redirect ip-multihop

    redirect ipv6-multihop

    The traffic policy containing PBR is only valid for IP packets.

    For details on how to configure PBR, see Configuring PBR in "PBR Configuration" in the S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - IP Unicast Routing.

    Disabling MAC address learning

    mac-address learning disable (S5720EI, S5720HI, S6720EI, S6720S-EI)

    -

    VLAN mapping

    remark vlan-id vlan-id

    remark cvlan-id cvlan-id (S5720EI, S5720HI, S6720EI, S6720S-EI)

    When the traffic classifier defines if-match outbound-interface interface-type interface-number, VLAN mapping cannot be defined in the associated traffic behavior.

    For details on how to configure MQC-based VLAN mapping, see Configuring MQC-based VLAN Mapping in "VLAN Mapping Configuration" in the S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - Ethernet Switching.

    Selective QinQ

    add-tag vlan-id vlan-id (S1720X, S1720X-E, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI)

    For details on how to configure MQC-based selective QinQ, see Configuring MQC-based Selective QinQ in "QinQ Configuration" in the S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - Ethernet Switching.

    Traffic statistics

    statistic enable

    For details on how to configure traffic statistics, see Traffic Statistics Configuration.

    On the S5720HI, if selective QinQ, VLAN mapping, 802.1p priority re-marking, or MAC address learning disabling is configured in a traffic behavior, the following actions cannot be defined in the traffic behavior: traffic statistics collection, traffic mirroring, redirection, policy-based routing, DSCP priority re-marking, internal priority re-marking, destination MAC address re-marking, traffic policing, and hierarchical traffic policing.

    On the S5720EI, S6720EI, and S6720S-EI, if flow ID re-marking, re-marking of inner VLAN tags in QinQ packets, MAC address learning disabling, or redirection of packets to a VPN instance is configured in a traffic behavior, the following actions cannot be defined in the traffic behavior: traffic statistics collection, traffic mirroring, redirection, policy-based routing, DSCP priority re-marking, internal priority re-marking, destination MAC address re-marking, traffic policing, and hierarchical traffic policing.

  4. Run quit

    Exit from the traffic behavior view.