08-ACL and QoS Command Reference

HomeSupportResource CenterSwitchesS12500X-AF SeriesS12500X-AF SeriesTechnical DocumentsReference GuidesCommand ReferencesH3C S12500X-AF Switch Series Command References(R28xx)-6W10008-ACL and QoS Command Reference
02-QoS commands
Title Size Download
02-QoS commands 467.57 KB

Contents

QoS policy commands· 1

Traffic class commands· 1

description· 1

display traffic classifier 1

if-match· 3

traffic classifier 10

Traffic behavior commands· 11

accounting· 11

car 11

display traffic behavior 13

filter 14

mac-address mac-learning enable· 15

nest top-most 15

packet-rate· 16

redirect 17

remark dot1p· 18

remark drop-precedence· 19

remark dscp· 19

remark local-precedence· 21

remark qos-local-id· 21

remark service-class· 22

remark service-vlan-id· 23

traffic behavior 24

QoS policy commands· 24

classifier behavior 24

control-plane· 26

display qos policy· 26

display qos policy control-plane· 28

display qos policy control-plane pre-defined· 30

display qos policy diagnosis control-plane· 31

display qos policy diagnosis global 33

display qos policy diagnosis interface· 35

display qos policy diagnosis l2vpn-ac inbound· 38

display qos policy global 40

display qos policy interface· 42

display qos policy l2vpn-ac· 45

display qos vlan-policy· 46

display qos vlan-policy diagnosis· 47

qos apply policy (Ethernet service instance view, interface view, control plane view) 49

qos apply policy global 52

qos policy· 53

qos vlan-policy· 54

reset qos policy control-plane· 55

reset qos policy global 55

reset qos vlan-policy· 56

Priority mapping commands· 57

Priority map commands· 57

display qos map-table· 57

dot1p-trust-tc· 58

import 59

qos map-table· 59

Priority trust mode commands· 60

display qos trust interface· 60

qos trust 61

Port priority commands· 62

qos priority· 62

GTS and rate limit commands· 63

GTS commands· 63

display qos gts interface· 63

qos gts· 63

Rate limit commands· 64

display qos lr interface· 64

qos lr 65

Per-card inbound rate limit level commands· 66

pps-level inbound· 66

Congestion management commands· 68

Common commands· 68

display qos queue interface· 68

SP commands· 69

display qos queue sp interface· 69

qos sp· 69

WRR commands· 70

display qos queue wrr interface· 70

qos wrr 71

qos wrr { byte-count | weight } 72

qos wrr group sp· 73

WFQ commands· 74

display qos queue wfq interface· 74

qos bandwidth queue· 75

qos wfq· 76

qos wfq { byte-count | weight } 76

qos wfq group sp· 77

Queue scheduling profile commands· 78

bandwidth queue· 78

display qos qmprofile configuration· 79

display qos qmprofile interface· 80

qos apply qmprofile· 81

qos qmprofile· 82

queue· 82

Congestion avoidance commands· 84

WRED commands· 84

display qos wred interface· 84

display qos wred table· 84

qos wred apply· 86

qos wred queue table· 86

queue· 87

queue ecn· 88

queue weighting-constant 89

Aggregate CAR commands· 91

car name· 91

display qos car name· 91

qos car 92

reset qos car name· 93

Queue-based accounting commands· 94

display qos queue-statistics interface outbound· 94

display statistic mode· 95

reset qos queue-statistics interface outbound· 96

statistic mode queue· 96

QPPB commands· 98

bgp-policy· 98


QoS policy commands

Traffic class commands

description

Use description to configure a description for a traffic class.

Use undo description to restore the default.

Syntax

description text

undo description

Default

No description is configured for a traffic class.

Views

Traffic class view

Predefined user roles

network-admin

mdc-admin

Parameters

text: Specifies a description, a case-sensitive string of 1 to 127 characters.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Configure the description as classifier for traffic class class1.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] description classifier

display traffic classifier

Use display traffic classifier to display traffic classes.

Syntax

In standalone mode:

display traffic classifier user-defined [ classifier-name ] [ slot slot-number ]

In IRF mode:

display traffic classifier user-defined [ classifier-name ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

user-defined: Specifies user-defined traffic classes.

classifier-name: Specifies a traffic class by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a traffic class, this command displays all traffic classes.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays the traffic classes for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays the traffic classes for the global active MPU. (In IRF mode.)

Examples

# Display all user-defined traffic classes.

<Sysname> display traffic classifier user-defined

 

  User-defined classifier information:

 

   Classifier: 1 (ID 100)

     Operator: AND

     Rule(s) :

      If-match acl 2000

 

   Classifier: 2 (ID 101)

     Operator: AND

     Rule(s) :

      If-match protocol ipv6

 

   Classifier: 3 (ID 102)

     Operator: AND

     Rule(s) :

      -none-

Table 1 Command output

Field

Description

Classifier

Traffic class name and its match criteria.

Operator

Match operator you set for the traffic class. If the operator is AND, the traffic class matches the packets that match all its match criteria. If the operator is OR, the traffic class matches the packets that match any of its match criteria.

Rule(s)

Match criteria.

 

if-match

Use if-match to define a match criterion.

Use undo if-match to delete a match criterion.

Syntax

if-match match-criteria

undo if-match match-criteria

Default

No match criterion is configured.

Views

Traffic class view

Predefined user roles

network-admin

mdc-admin

Parameters

match-criteria: Specifies a match criterion. Table 2 shows the available match criteria.

Table 2 Available match criteria

Option

Description

acl [ ipv6 | mac | user-defined ] { acl-number | name acl-name } [ inner ]

Matches an ACL.

The value range for the acl-number argument is as follows:

·     2000 to 3999 for IPv4 ACLs.

·     2000 to 3999 for IPv6 ACLs.

·     4000 to 4999 for Layer 2 MAC ACLs.

·     5000 to 5999 for user-defined ACLs.

The acl-name argument is a case-insensitive string of 1 to 63 characters, which must start with an English letter. To avoid confusion, make sure the argument is not all.

You can use the inner keyword to match the inner header information of VXLAN packets. For example, a rule permit ip source 10.0.0.0 0.255.255.255 statement matches the inner source IP address of VXLAN packets if the inner keyword is specified in the if-match acl command. The statement matches the source IP address of non-VXLAN packets or the outer source IP address of VXLAN packets if the inner keyword is not specified.

If you specify the inner keyword in the if-match acl command, you must also specify it when executing the undo if-match acl command.

If no VPN instance is specified in an ACL rule, the ACL rule takes effect on both non-VPN packets and VPN packets.

any

Matches all packets.

control-plane protocol protocol-name&<1-8>

Matches control plane protocols.

The protocol-name&<1-8> argument specifies a space-separated list of up to eight system-defined control plane protocols. For available system-defined control plane protocols, see Table 3.

control-plane protocol-group protocol-group-name

Matches a control plane protocol group.

The protocol-group-name argument can be critical, important, management, monitor, normal, or redirect.

customer-dot1p dot1p-value&<1-8>

Matches 802.1p priority values in inner VLAN tags of double-tagged packets.

The dot1p-value&<1-8> argument specifies a space-separated list of up to eight 802.1p priority values. The value range for the dot1p-value argument is 0 to 7.

customer-vlan-id vlan-id-list

Matches VLAN IDs in inner VLAN tags of double-tagged packets.

The vlan-id-list argument specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN or a range of VLANs in the form of vlan-id1 to vlan-id2. The value for vlan-id2 must be greater than or equal to the value for vlan-id1. The value range for the vlan-id argument is 1 to 4094.

destination-mac mac-address

Matches a destination MAC address.

This option takes effect only on Ethernet interfaces.

dscp dscp-value&<1-8>

Matches DSCP values.

The dscp-value&<1-8> argument specifies a space-separated list of up to eight DSCP values. The value range for the dscp-value argument is 0 to 63 or keywords shown in Table 5.

forwarding-layer bridge

Matches Layer 2 forwarded packets.

inbound-interface interface-type interface-number

Matches an input interface specified by its type and number.

If this option is configured in a traffic class with logic AND operator, the traffic class is no longer in effect after the card or subcard where the input interface resides is removed. After the removed card or subcard is reinserted, the traffic class takes effect again. If you do not reinsert the card or subcard and add other match criteria to the traffic class, the traffic class does not take effect again.

ip-precedence ip-precedence-value&<1-8>

Matches IP precedence values.

The ip-precedence-value&<1-8> argument specifies a space-separated list of up to eight IP precedence values. The value range for the ip-precedence-value argument is 0 to 7.

mpls-exp exp-value&<1-8>

Matches MPLS EXP values.

The exp-value&<1-8> argument specifies a space-separated list of up to eight EXP values. The value range for the exp-value argument is 0 to 7.

mpls-label { label-value&<1-8> | label-value1 to label-value2 }

Matches MPLS labels.

The label-value&<1-8> argument specifies a space-separated list of up to eight MPLS label values. The label-value1 to label-value2 option specifies a range of MPLS label values. The value for label-value2 must be greater than or equal to the value for label-value1. The value range for the label-value argument is 0 to 1048575.

mpls { l2vpn | l3vpn }

Matches the MPLS VPN type:

·     l2vpn—Matches L2VPN packets.

·     l3vpn—Matches L3VPN packets.

protocol protocol-name

Matches a protocol.

The protocol-name argument can be ip or ipv6.

qos-local-id local-id-value

Matches a local QoS ID in the range of 1 to 4095.

second-mpls-exp exp-value&<1-8>

Matches inner MPLS EXP values.

The exp-value&<1-8> argument is a space-separated list of up to eight EXP values. The value range for the exp-value argument is 0 to 7.

second-mpls-label { label-value&<1-8> | label-value1 to label-value2 }

Matches inner MPLS labels.

The label-value&<1-8> argument specifies a space-separated list of up to eight MPLS label values. The label-value1 to label-value2 option specifies a range of MPLS label values. The value for label-value2 must be greater than or equal to the value for label-value1. The value range for the label-value argument is 0 to 1048575.

service-dot1p dot1p-value&<1-8>

Matches 802.1p priority values in outer VLAN tags.

The dot1p-value&<1-8> argument specifies a space-separated list of up to eight 802.1p priority values. The value range for the dot1p-value argument is 0 to 7.

service-vlan-id vlan-id-list

Matches VLAN IDs in outer VLAN tags.

The vlan-id-list argument specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN or a range of VLANs in the form of vlan-id1 to vlan-id2. The value for vlan-id2 must be greater than or equal to the value for vlan-id1. The value range for the vlan-id argument is 1 to 4094.

You can use this option to match single-tagged packets.

source-mac mac-address

Matches a source MAC address.

This option takes effect only on Ethernet interfaces.

traffic-type { unicast | unknown-unicast | broadcast | multicast }

Matches the packet type:

·     unicast—Matches unicast packets.

·     unknown-unicast—Matches unknown unicast packets.

·     broadcast—Matches broadcast packets.

·     multicast—Matches multicast packets.

For a traffic class to match multiple packet types, you must specify the OR operator when creating the class.

vlan-tag { double | none | single }

Matches the VLAN tagging mode:

·     double—Matches double-tagged packets.

·     none—Matches packets with no tags.

·     single—Matches single-tagged packets.

vxlan { any | vxlan-id }

Matches a VXLAN ID.

 

Table 3 Available system-defined control plane protocols

Protocol

Description

arp

ARP packets

arp-snooping

ARP snooping packets

bfd

BFD packets

bgp

BGP packets

bgp4+

IPv6 BGP packets

default

Protocol packets other than the packet types listed in this table

dhcp

DHCP packets

dhcp-snooping

DHCP snooping packets

dhcp6

IPv6 DHCP packets

dldp

DLDP packets

dot1x

802.1X packets

hoplimit-expires

Hop-limit expire packets

icmp

ICMP packets

icmp6

ICMPv6 packets

igmp

IGMP packets

ip-option

IPv4 packets with the Options field

ipv6-option

IPv6 packets with the Options field

isis

IS-IS packets

lacp

LACP packets

lldp

LLDP packets

mvrp

MVRP packets (including GVRP packets)

ospf-multicast

OSPF multicast packets

ospf-unicast

OSPF unicast packets

ospf3-multicast

OSPFv3 multicast packets

ospf3-unicast

OSPFv3 unicast packets

pim-multicast

PIM multicast packets

pim-unicast

PIM unicast packets

pim6-multicast

IPv6 PIM multicast packets

pim6-unicast

IPv6 PIM unicast packets

radius

RADIUS packets

snmp

SNMP packets

ssh

SSH packets

stp

STP packets

tacacs

TACACS packets

telnet

Telnet packets

ttl-expires

TTL expire packets

vrrp

VRRP packets

vrrp6

IPv6 VRRP packets

Usage guidelines

In a traffic class with the logical OR operator, you can configure multiple if-match commands for any of the available match criteria.

When you configure a match criterion that can have multiple values in one if-match command, follow these restrictions and guidelines:

·     You can specify up to eight values for any of the following match criteria in one if-match command:

¡     Control plane protocol.

¡     802.1p priority.

¡     DSCP.

¡     IP precedence.

¡     MPLS EXP.

¡     MPLS label.

¡     VLAN ID.

·     If a packet matches one of the specified values, it matches the if-match command.

·     To delete a criterion that has multiple values, the specified values in the undo if-match command must be the same as those specified in the if-match command. The order of the values can be different.

When you configure ACL-based match criteria, follow these restrictions and guidelines:

·     The ACL must already exist.

·     An ACL can only match the following inner header information of VXLAN packets:

¡     Source IP address.

¡     Destination IP address.

¡     Source port number.

¡     Destination port number.

¡     Transport protocol type.

·     The ACL is used for classification only and the permit/deny actions in ACL rules are ignored. Actions taken on matching packets are defined in traffic behaviors.

You can use both AND and OR operators to define the match relationships between the criteria for a class. For example, you can define relationships among three match criteria in traffic class classA as follows:

traffic classifier classB operator and

if-match criterion 1

if-match criterion 2

traffic classifier classA operator or

if-match criterion 3

If a traffic class includes both the control-plane protocol or control-plane protocol-group criterion and other criteria, the QoS policy that contains the traffic class cannot be applied correctly.

If any traffic class in a QoS policy includes the control-plane protocol or control-plane protocol-group match criterion, the QoS policy can be applied only to a control plane.

For the service-vlan-id match criterion, you can configure multiple values in one if-match command.

Examples

# Define a match criterion for traffic class class1 to match the packets with a destination MAC address of 0050-ba27-bed3.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match destination-mac 0050-ba27-bed3

# Define a match criterion for traffic class class2 to match the packets with a source MAC address of 0050-ba27-bed2.

<Sysname> system-view

[Sysname] traffic classifier class2

[Sysname-classifier-class2] if-match source-mac 0050-ba27-bed2

# Define a match criterion for traffic class class1 to match the double-tagged packets with 802.1p priority 3 in the inner VLAN tag.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match customer-dot1p 3

# Define a match criterion for traffic class class1 to match the packets with 802.1p priority 5 in the outer VLAN tag.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match service-dot1p 5

# Define a match criterion for traffic class class1 to match advanced ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match acl 3101

# Define a match criterion for traffic class class1 to match the ACL named flow.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match acl name flow

# Define a match criterion for traffic class class1 to match advanced IPv6 ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match acl ipv6 3101

# Define a match criterion for traffic class class1 to match the IPv6 ACL named flow.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match acl ipv6 name flow

# Define a match criterion for traffic class class1 to match all packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match any

# Define a match criterion for traffic class class1 to match the packets with a DSCP value of 1, 6, or 9.

<Sysname> system-view

[Sysname] traffic classifier class1 operator or

[Sysname-classifier-class1] if-match dscp 1 6 9

# Define a match criterion for traffic class class1 to match the packets with an IP precedence value of 1 or 6.

<Sysname> system-view

[Sysname] traffic classifier class1 operator or

[Sysname-classifier-class1] if-match ip-precedence 1 6

# Define a match criterion for traffic class class1 to match IP packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match protocol ip

# Define a match criterion for traffic class class1 to match double-tagged packets with VLAN ID 1, 6, or 9 in the inner VLAN tag.

<Sysname> system-view

[Sysname] traffic classifier class1 operator or

[Sysname-classifier-class1] if-match customer-vlan-id 1 6 9

# Define a match criterion for traffic class class1 to match the packets with VLAN ID 2, 7, or 10 in the outer VLAN tag.

<Sysname> system-view

[Sysname] traffic classifier class1 operator or

[Sysname-classifier-class1] if-match service-vlan-id 2 7 10

# Define a match criterion for traffic class class1 to match the packets with a local QoS ID of 3.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match qos-local-id 3

# Define a match criterion for traffic class class1 to match packets with MPLS labels in the range of 1 to 10000.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match mpls-label 1 to 10000

# Define a match criterion for traffic class class1 to match MPLS L2VPN packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match mpls l2vpn

# Define a match criterion for traffic class class1 to match Layer 2 forwarded packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match forwarding-layer bridge

# Define a match criterion for traffic class class1 to match ARP protocol packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match control-plane protocol arp

# Define a match criterion for traffic class class1 to match packets of the protocols in protocol group normal.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match control-plane protocol-group normal

# Define a match criterion for traffic class class1 to match multicast packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match traffic-type multicast

# Define a match criterion for traffic class class1 to match double-tagged packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match vlan-tag double

 # Define a match criterion for traffic class class1 to match the packets with VXLAN 10.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match vxlan 10

traffic classifier

Use traffic classifier to create a traffic class and enter its view, or enter the view of an existing traffic class.

Use undo traffic classifier to delete a traffic class.

Syntax

traffic classifier classifier-name [ operator { and | or } ]

undo traffic classifier classifier-name

Default

No traffic classes exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

classifier-name: Specifies a name for the traffic class, a case-sensitive string of 1 to 31 characters.

operator: Sets the operator to logic AND (the default) or OR for the traffic class.

and: Specifies the logic AND operator. The traffic class matches the packets that match all its criteria.

or: Specifies the logic OR operator. The traffic class matches the packets that match any of its criteria.

Examples

# Create a traffic class named class1.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1]

Related commands

display traffic classifier

Traffic behavior commands

accounting

Use accounting to configure a traffic accounting action in a traffic behavior.

Use undo accounting to restore the default.

Syntax

accounting [ byte | packet ]*

undo accounting

Default

No traffic accounting action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

byte: Counts traffic in bytes.

packet: Counts traffic in packets.

Usage guidelines

If you do not specify the byte or packet keyword, the device counts traffic in packets.

Examples

# Configure a traffic accounting action in traffic behavior database to count traffic in bytes.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] accounting byte

car

Use car to configure a CAR action in absolute value in a traffic behavior.

Use undo car to restore the default.

Syntax

car cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ]

car cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebs excess-burst-size ] 

undo car

Default

No CAR action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

cir committed-information-rate: Specifies the committed information rate (CIR) in the range of 8 to 160000000 kbps, in increments of 8.

cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes. The value range for committed-burst-size is 512 to 256000000, in increments of 512. The default value for this argument is the product of 62.5 and the CIR and must be an integral multiple of 512. When the product is not an integral multiple of 512, it is rounded up to the nearest integral multiple of 512 that is greater than the product. A default value greater than 256000000 is converted to 256000000.

ebs excess-burst-size: Specifies the excess burst size (EBS) in bytes. The value range for excess-burst-size is 0 to 256000000, in increments of 512. If the PIR is configured, the default EBS is the product of 62.5 and the PIR and must be an integral multiple of 512. When the product is not an integral multiple of 512, it is rounded up to the nearest integral multiple of 512. A default value greater than 256000000 is converted to 256000000.

pir peak-information-rate: Specifies the peak information rate (PIR) in the range of 8 to 160000000 kbps, in increments of 8.

Usage guidelines

You can apply a QoS policy that contains a traffic policing action to the inbound or outbound direction of an interface, VLANs, a control plane, or globally. However, the traffic policing action takes effect only when the QoS policy is applied to the inbound direction.

To use two rates for traffic policing, configure the car command with the pir peak-information-rate option. To use one rate for traffic policing, configure the car command without the pir peak-information-rate option.

If you execute the car command multiple times in the same traffic behavior, the most recent configuration takes effect.

Examples

# Configure a CAR action in traffic behavior database:

·     Set the CIR to 200 kbps, CBS to 51200 bytes, and EBS to 0.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] car cir 200 cbs 51200 ebs 0

display traffic behavior

Use display traffic behavior to display traffic behaviors.

Syntax

In standalone mode:

display traffic behavior user-defined [ behavior-name ] [ slot slot-number ]

In IRF mode:

display traffic behavior user-defined [ behavior-name ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

user-defined: Specifies user-defined traffic behaviors.

behavior-name: Specifies a behavior by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a traffic behavior, this command displays all traffic behaviors.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays traffic behaviors for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays the traffic behaviors for the global active MPU. (In IRF mode.)

Examples

# Display all user-defined traffic behaviors.

<Sysname> display traffic behavior user-defined

 

  User-defined behavior information:

 

    Behavior: 1 (ID 100)

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 5120 (Bytes), EBS 512 (Bytes)

 

    Behavior: 2 (ID 101)

      Accounting enable: Packet

      Filter enable: Permit

      Marking:

        Remark mpls-exp 4

      Redirecting:

        Redirect to the CPU

 

    Behavior: 3 (ID 102)

      -none-

Table 4 Command output

Field

Description

Behavior

Name and contents of a traffic behavior.

Marking

Information about priority marking.

Remark dscp

Action of setting the DSCP value for packets.

Committed Access Rate

Information about the CAR action.

Accounting enable

Class-based accounting action.

Filter enable

Traffic filtering action.

Remark mpls-exp

Action of setting the MPLS EXP value for packets.

Redirecting

Information about traffic redirecting. For information about marking actions, see "redirect."

none

No other traffic behavior is configured.

filter

Use filter to configure a traffic filtering action in a traffic behavior.

Use undo filter to restore the default.

Syntax

filter { deny | permit }

undo filter

Default

No traffic filtering action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

deny: Drops packets.

permit: Transmits packets. The permitted packets can be processed by other class-behavior associations in the same QoS policy.

Examples

# Configure a traffic filtering action as deny in traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] filter deny

mac-address mac-learning enable

Use mac-address mac-learning enable to enable MAC address learning for a traffic behavior.

Use undo mac-address mac-learning enable to disable MAC address learning for a traffic behavior.

Syntax

mac-address mac-learning enable

undo mac-address mac-learning enable

Default

MAC address learning is enabled for a traffic behavior.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

To prevent the MAC address table from being saturated when the device is experiencing attacks, disable MAC address learning. For example, you can disable MAC address learning to prevent the device from being attacked by a large number of frames with different source MAC addresses.

Disabling MAC address learning in a traffic behavior takes effect only if the QoS policy is applied to the inbound direction of an interface or globally.

Disabling MAC address learning has the following impacts:

·     The device does not learn new MAC addresses of packets that match the QoS policy and therefore cannot update MAC address changes in real time.

·     The device floods packets that do not match an entry in the MAC address table.

As a best practice, configure broadcast storm suppression on the interface that has the QoS policy applied. For information about broadcast storm suppression, see Layer 2—LAN Switching Configuration Guide.

·     The device does not delete existing MAC addresses until the aging timer expires.

To delete the existing MAC addresses, delete them manually or wait for the aging timer to expire.

Examples

# Disable MAC address learning in traffic behavior data.

<Sysname> system-view

[Sysname] traffic behavior data

[Sysname-behavior-data] undo mac-address mac-learning enable

nest top-most

Use nest top-most to configure an outer VLAN tag adding action in a traffic behavior.

Use undo nest top-most to restore the default.

Syntax

nest top-most vlan vlan-id

undo nest top-most

Default

No outer VLAN tag adding action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

vlan-id vlan-id: Specifies the VLAN ID to be added in the outer VLAN tag, in the range of 1 to 4094.

Usage guidelines

For a QoS policy that contains a nesting action to take effect on a Type H card, make sure both the downlink port and uplink port permit the single-tagged packets matching the QoS policy. The double-tagged packets are forwarded in the device based on the inner VLAN tag.

If a QoS policy contains an outer VLAN tag adding action, apply it only to the incoming traffic of an interface.

If you execute the nest top-most command multiple times in the same traffic behavior, the most recent configuration takes effect.

An outer VLAN tag adding action takes effect only when the QoS policy is applied to the inbound direction of an interface, VLANs, or globally.

This command does not take effect on packets forwarded by a VXLAN overlay network.

Examples

# Configure traffic behavior b1 to add an outer VLAN tag with VLAN ID 123.

<Sysname> system-view

[Sysname] traffic behavior b1

[Sysname-behavior-b1] nest top-most vlan 123

packet-rate

Use packet-rate to configure a protocol packet rate limiting action in a traffic behavior.

Use undo packet-rate to restore the default.

Syntax

packet-rate value

undo packet-rate

Default

No protocol packet rate limiting action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

value: Specifies the protocol packet rate in pps. The value range for this argument is 1 to 1048575. The device converts the specified value to the nearest integral multiple of 43 that is not 0.

Usage guidelines

Protocol packet rate limiting can protect the CPU against protocol packet attacks.

A protocol packet rate limiting action takes effect only when the QoS policy is applied to a control plane.

If you execute the packet-rate command multiple times in the same traffic behavior, the most recent configuration takes effect.

Examples

# Configure traffic behavior copp to rate limit the protocol packets sent to the CPU to 1600 pps.

<Sysname> system-view

[Sysname] traffic behavior copp

[Sysname-behavior-copp] packet-rate 1600

redirect

Use redirect to configure a traffic redirecting action in a traffic behavior.

Use undo redirect to restore the default.

Syntax

redirect { cpu | interface interface-type interface-number | tunnel-group group-id }

undo redirect { cpu | interface interface-type interface-number | tunnel-group }

Default

No traffic redirecting action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

cpu: Redirects traffic to the CPU.

interface interface-type interface-number: Redirects traffic to an interface specified by its type and number.

tunnel-group group-id: Redirects traffic to a tunnel group specified by its ID. The value range for the group-id argument is 1 to 32. For information about tunnel groups, see tunneling in Layer 3—IP Services Configuration Guide.

Usage guidelines

If you execute the redirect command multiple times in the same traffic behavior, the most recent configuration takes effect.

The redirecting action in a QoS policy takes effect only on Layer 2 packets, and does not take effect on Layer 3 packets.

Examples

# Configure redirecting traffic to FortyGigE 1/0/1 in traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] redirect interface fortygige 1/0/1

# Configure redirecting traffic to tunnel group 1 in traffic behavior aa.

<Sysname> system-view

[Sysname] traffic behavior aa

[Sysname-behavior-aa] redirect tunnel-group 1

Related commands

classifier behavior

group (Layer 3—IP Services Command Reference)

qos policy

traffic behavior

remark dot1p

Use remark dot1p to configure an 802.1p priority marking action in a traffic behavior.

Use undo remark dot1p to restore the default.

Syntax

remark dot1p dot1p-value

undo remark dot1p

Default

No 802.1p priority marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

dot1p-value: Specifies the 802.1p priority to be marked for packets, in the range of 0 to 7.

Examples

# Configure traffic behavior database to mark matching traffic with 802.1p 2.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark dot1p 2

remark drop-precedence

Use remark drop-precedence to configure a drop priority marking action in a traffic behavior.

Use undo remark drop-precedence to restore the default.

Syntax

remark drop-precedence drop-precedence-value

undo remark drop-precedence

Default

No drop priority marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

drop-precedence-value: Specifies the drop priority to be marked for packets, in the range of 0 to 2.

Usage guidelines

A drop priority marking action takes effect only when the QoS policy is applied to the inbound direction.

If you execute the remark drop-precedence command multiple times in the same traffic behavior, the most recent configuration takes effect.

Examples

# Configure traffic behavior database to mark matching traffic with drop priority 2.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark drop-precedence 2

remark dscp

Use remark dscp to configure a DSCP marking action in a traffic behavior.

Use undo remark dscp to restore the default.

Syntax

remark dscp dscp-value

undo remark dscp

Default

No DSCP marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

dscp-value: Specifies a DSCP value, which can be a number from 0 to 63 or a keyword in Table 5.

Table 5 DSCP keywords and values

Keyword

DSCP value (binary)

DSCP value (decimal)

af11

001010

10

af12

001100

12

af13

001110

14

af21

010010

18

af22

010100

20

af23

010110

22

af31

011010

26

af32

011100

28

af33

011110

30

af41

100010

34

af42

100100

36

af43

100110

38

cs1

001000

8

cs2

010000

16

cs3

011000

24

cs4

100000

32

cs5

101000

40

cs6

110000

48

cs7

111000

56

default

000000

0

ef

101110

46

 

Usage guidelines

Each chip supports two remark dscp dscp-value commands for the outbound direction of interfaces. To view the mappings between chips and interfaces, execute the debug port mapping command in probe view. The Unit field represents the chip number.

The device supports two remark dscp dscp-value commands for the outbound direction globally.

Examples

# Configure traffic behavior database to mark matching traffic with DSCP 6.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark dscp 6

remark local-precedence

Use remark local-precedence to configure a local precedence marking action in a traffic behavior.

Use undo remark local-precedence to restore the default.

Syntax

remark local-precedence local-precedence-value

undo remark local-precedence

Default

No local precedence marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

local-precedence-value: Specifies the local precedence to be marked for packets, in the range of 0 to 7.

Usage guidelines

A local precedence marking action takes effect only when the QoS policy is applied to the inbound direction.

Examples

# Configure traffic behavior database to mark matching traffic with local precedence 2.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark local-precedence 2

remark qos-local-id

Use remark qos-local-id to configure a local QoS ID marking action in a traffic behavior.

Use undo remark qos-local-id to restore the default.

Syntax

remark qos-local-id local-id-value

undo remark qos-local-id

Default

No local QoS ID marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

local-id-value: Specifies the local QoS ID to be marked for packets, in the range of 1 to 4095.

Usage guidelines

You can use one QoS policy to mark the local QoS ID for packets in the inbound direction. Then, you can use another QoS policy to apply other QoS features in the outbound direction based on the marked local QoS ID.

If you execute the remark qos-local-id command multiple times in the same traffic behavior, the most recent configuration takes effect.

Examples

# Configure the action of marking packets with local QoS ID 2.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark qos-local-id 2

remark service-class

Use remark service-class to configure an MPLS TE service class marking action in a traffic behavior.

Use undo remark service-class to restore the default.

Syntax

remark service-class service-class-value

undo remark service-class

Default

No MPLS TE service class marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

service-class-value: Specifies the MPLS TE service class to be marked for packets. The value range for this argument is 0 to 7.

Usage guidelines

This command is used only in CBTS to mark the MPLS TE service class for packets. For more information about CBTS, see MPLS TE in MPLS Configuration Guide.

You can use the mpls te service-class command to set an MPLS TE service class value for a tunnel. For more information about this command, see MPLS TE commands in MPLS Command Reference.

A QoS policy that contains the remark service-class command can only be applied globally.

If you execute the remark service-class command multiple times in the same traffic behavior, the most recent configuration takes effect.

For an HF card, if the TCAM operating mode is mixed, the traffic class associated with the MPLS TE service class marking action can match packets by using the following criteria:

·     Source IP address.

·     Destination IP address.

·     Source MAC address.

·     Destination MAC address.

·     Port number.

·     DSCP value.

If the TCAM operating mode is not mixed, the traffic class can match packets by using only the DSCP value.

For a card other than HF, the traffic class associated with the MPLS TE service class marking action can match packets by using only the DSCP value.

For information about TCAM operating modes, see device management in Fundamentals Configuration Guide.

 

 

 

Examples

# Configure the action of marking MPLS TE service class 2 for packets.

<Sysname> system-view

[Sysname] traffic behavior data

[Sysname-behavior-data] remark service-class 2

remark service-vlan-id

Use remark service-vlan-id to configure an SVLAN marking action in a traffic behavior.

Use undo remark service-vlan-id to restore the default.

Syntax

remark service-vlan-id vlan-id

undo remark service-vlan-id

Default

No SVLAN marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

vlan-id: Specifies an SVLAN ID in the range of 1 to 4094.

Examples

# Configure traffic behavior b1 to mark matching packets with SVLAN 222.

<Sysname> system-view

[Sysname] traffic behavior b1

[Sysname-behavior-b1] remark service-vlan-id 222

traffic behavior

Use traffic behavior to create a traffic behavior and enter its view, or enter the view of an existing traffic behavior.

Use undo traffic behavior to delete a traffic behavior.

Syntax

traffic behavior behavior-name

undo traffic behavior behavior-name

Default

No traffic behaviors exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

behavior-name: Specifies a name for the traffic behavior, a case-sensitive string of 1 to 31 characters.

Examples

# Create a traffic behavior named behavior1.

<Sysname> system-view

[Sysname] traffic behavior behavior1

[Sysname-behavior-behavior1]

Related commands

display traffic behavior

QoS policy commands

classifier behavior

Use classifier behavior to associate a traffic behavior with a traffic class in a QoS policy.

Use undo classifier to delete a class-behavior association from a QoS policy.

Syntax

classifier classifier-name behavior behavior-name [ mode { dcbx | loose | qppb-manipulation } | insert-before before-classifier-name ] *

undo classifier classifier-name

Default

No traffic behavior is associated with a traffic class.

Views

QoS policy view

Predefined user roles

network-admin

mdc-admin

Parameters

classifier-name: Specifies a traffic class by its name, a case-sensitive string of 1 to 31 characters.

behavior-name: Specifies a traffic behavior by its name, a case-sensitive string of 1 to 31 characters.

mode dcbx: Specifies that the class-behavior association applies only to the DCBX. For more information about DCBX, see Layer 2—LAN Switching Configuration Guide.

mode loose: Specifies that a class-behavior association is applied in loose mode. This keyword takes effect only when a QoS policy is applied to a control plane.

mode qppb-manipulation: Specifies that the class-behavior association applies only to QPPB. The if-match qos-local-id command in the class sets the same local QoS ID as the apply qos-local-id command in the BGP routing policy. For more information about routing policies, see Layer 3—IP Routing Configuration Guide.

insert-before before-classifier-name: Inserts the new traffic class before an existing traffic class in the QoS policy. The before-classifier-name argument specifies an existing traffic class by its name, a case-sensitive string of 1 to 31 characters. If you do not specify the insert-before before-classifier-name option, the new traffic class is placed at the end of the QoS policy.

Usage guidelines

A traffic class can be associated only with one traffic behavior in a QoS policy.

If the specified traffic class or traffic behavior does not exist, the system defines a null traffic class or traffic behavior.

The mode loose keyword allows you to limit the rate of protocol packets from a specific interface to the control plane. The configuration procedure is as follows:

1.     Create an ACL, and configure a rule to match protocol packets.

2.     Create a traffic class with AND operator, and execute the commands in the if-match acl and if-match inbound-interface traffic class.

3.     Create a traffic behavior, configure an action.

4.     Create a QoS policy, and associate the traffic class and the traffic behavior and specify the mode loose keyword.

5.     Apply the QoS policy to a control plane.

The applied QoS policy takes effect on only the protocol packets from the interface specified in the if-match inbound-interface command to the control plane.

Examples

# Associate traffic class database with traffic behavior test in QoS policy user1.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1] classifier database behavior test

# Associate traffic class database with traffic behavior test in QoS policy user1, and specify that the class-behavior association applies only to QPPB.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1] classifier database behavior test mode qppb-manipulation

# Associate traffic class database with traffic behavior test in QoS policy user1, and insert traffic class database before an existing traffic class named class-a.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1] classifier database behavior test insert-before class-a

Related commands

qos policy

control-plane

Use control-plane to enter control plane view.

Syntax

In standalone mode:

control-plane slot slot-number

In IRF mode:

control-plane chassis chassis-number slot slot-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies a card by its slot number. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.)

Examples

# (In standalone mode.) Enter the control plane view of slot 3.

<Sysname> system-view

[Sysname] control-plane slot 3

[Sysname-cp-slot3]

display qos policy

Use display qos policy to display QoS policies.

Syntax

In standalone mode:

display qos policy user-defined [ accounting | remarking ] [ policy-name [ classifier classifier-name ] ] [ slot slot-number ]

In IRF mode:

display qos policy user-defined [ accounting | remarking ] [ policy-name [ classifier classifier-name ] ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

user-defined: Specifies user-defined QoS policies.

accounting: Specifies accounting-type QoS policies.

remarking: Specifies marking-type QoS policies.

policy-name: Specifies a QoS policy by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a QoS policy, this command displays all user-defined QoS policies.

classifier classifier-name: Specifies a traffic class by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a traffic class, this command displays all traffic classes.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays the QoS policies for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays the QoS policies for the global active MPU. (In IRF mode.)

Usage guidelines

If you do not specify the accounting or remarking keyword, this command displays generic QoS policies.

Examples

# Display all user-defined generic QoS policies.

<Sysname> display qos policy user-defined

 

  User-defined QoS policy information:

 

  Policy: 1 (ID 100)

   Classifier: 1 (ID 100)

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 51200 (Bytes), EBS 512 (Bytes)

   Classifier: 2 (ID 101)

     Behavior: 2

      Accounting enable: Packet

      Filter enable: Permit

      Marking:

        Remark dot1p 4

   Classifier: 3 (ID 102)

     Behavior: 3

      -none-

# Display user-defined accounting-type QoS policies.

<Sysname> display qos policy user-defined accounting

 

  User-defined QoS policy information:

 

  Accounting policy: 1 (ID 100)

   Classifier: 1 (ID 100)

     Behavior: 1

      Accounting enable: Packet

# Display user-defined marking-type QoS policies.

<Sysname> display qos policy user-defined remarking

 

  User-defined QoS policy information:

 

  Marking policy: 1 (ID 100)

   Classifier: 1 (ID 100)

     Behavior: 1

      Marking:

        Remark dscp 3

Table 6 Command output

Field

Description

User-defined QoS policy information

Information about a user-defined QoS policy.

System-defined QoS policy information

Information about a system-defined QoS policy.

Accounting policy

User-defined accounting-type QoS policy name.

Marking policy

User-defined marking-type QoS policy name.

 

For the description of other fields, see Table 1 and Table 4.

display qos policy control-plane

Use display qos policy control-plane to display QoS policies applied to a control plane.

Syntax

In standalone mode:

display qos policy control-plane slot slot-number

In IRF mode:

display qos policy control-plane chassis chassis-number slot slot-number

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Specifies a card by its slot number. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.)

Examples

# (In standalone mode.) Display the QoS policy applied to the control plane of slot 1.

<Sysname> display qos policy control-plane slot 1

 

Control plane slot 1

 

  Direction: Inbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match acl 2000

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 51200 (Bytes), EBS 512 (Bytes)

   Classifier: 2

     Operator: AND

     Rule(s) :

      If-match protocol ipv6

     Behavior: 2

      Accounting enable:

        0 (Packets)

      Filter enable: Permit

      Marking:

        Remark dscp 3

   Classifier: 3

     Operator: AND

     Rule(s) :

      -none-

     Behavior: 3

      -none-

Table 7 Command output

Field

Description

Direction

Direction in which the QoS policy is applied.

 

For the description of other fields, see Table 1 and Table 4.

display qos policy control-plane pre-defined

Use display qos policy control-plane pre-defined to display predefined control plane QoS policies.

Syntax

In standalone mode:

display qos policy control-plane pre-defined [ slot slot-number ]

In IRF mode:

display qos policy control-plane pre-defined [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays the predefined control plane QoS policies for all cards. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays predefined control plane QoS policies for all cards. (In IRF mode.)

Examples

# (In standalone mode.) Display the predefined control plane QoS policy of slot 1.

<Sysname> display qos policy control-plane pre-defined slot 1

Pre-defined policy information slot 1

  Protocol          Priority   Bandwidth          Group

  Default           N/A        1024 (pps)         N/A

  IS-IS             5          2048 (pps)         critical

  VRRP              6          512 (pps)          important

  OSPF Multicast    5          4096 (pps)         critical

  OSPF Unicast      5          4096 (pps)         critical

  PIM Multicast     4          512 (pps)          critical

  PIM Unicast       4          512 (pps)          critical

  IGMP              3          512 (pps)          important

  PIMv6 Multicast   4          256 (pps)          critical

  PIMv6 Unicast     4          256 (pps)          critical

  OSPFv3 Unicast    5          2048 (pps)         critical

  OSPFv3 Multicast  5          2048 (pps)         critical

  VRRPv6            6          512 (pps)          important

  ARP               2          2048 (pps)         normal

  DHCP Snooping     3          384 (pps)          redirect

  DHCP              3          384 (pps)          normal

  802.1x            2          512 (pps)          important

  STP               6          384 (pps)          critical

  LACP              6          43 (pps)           critical

  MVRP              3          384 (pps)          critical

  BGP               4          2048 (pps)         critical

  ICMP              1          512 (pps)          monitor

  TTL Expires       3          256 (pps)          important

  IPOPTION          3          256 (pps)          normal

  BGPv6             4          2048 (pps)         critical

  Hop Limit Expires 3          256 (pps)          important

  IPOPTIONv6        3          256 (pps)          normal

  LLDP              4          384 (pps)          important

  DLDP              4          256 (pps)          critical

  TELNET            1          896 (pps)          management

  SSH               1          896 (pps)          management

  TACACS            1          896 (pps)          management

  RADIUS            1          896 (pps)          management

  SNMP              1          896 (pps)          management

  ARP Snooping      3          2048 (pps)         redirect

  ICMPv6            1          2048 (pps)         monitor

  DHCPv6            3          384 (pps)          normal

  BFD               5          2048 (pps)         critical

Table 8 Command output

Field

Description

Pre-defined control plane policy

Contents of the predefined control plane QoS policy.

Default

Protocols other than those listed.

Group

Protocol group of the protocol.

 

For descriptions of other fields, see Table 3.

display qos policy diagnosis control-plane

Use display qos policy diagnosis control-plane to display diagnostic information about QoS policies applied to a control plane.

Syntax

In standalone mode:

display qos policy diagnosis control-plane slot slot-number

In IRF mode:

display qos policy diagnosis control-plane chassis chassis-number slot slot-number

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Specifies a card by its slot number. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.)

Examples

# (In standalone mode.) Display diagnostic information about the QoS policy applied to the control plane of slot 2.

<Sysname> display qos policy diagnosis control-plane slot 2

Control plane slot 2

  Direction: Inbound

  Policy: 1

   Classifier: 1 (Incomplete)

     Operator: AND

     Rule(s) :

      If-match acl 2000 (Incomplete)

       Failed Rule ID: 0, 3, 5, 50

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 7000 (Bytes), EBS 512 (Bytes)

   Classifier: 2

     Operator: AND

     Rule(s) :

      If-match protocol ipv6

     Behavior: 2

      Accounting enable:

      Filter enable: Permit

      Marking:

        Remark mpls-exp 4

   Classifier: 3

     Operator: AND

     Rule(s) :

      -none-

     Behavior: 3

      -none-

Table 9 Command output

Field

Description

Direction

Direction in which the QoS policy is applied.

Classifier: 1 (Incomplete)

Traffic class application result:

·     Incomplete—Some contents of the traffic class were applied successfully.

·     Failed—All contents of the traffic class failed to be applied.

If-match acl 2000 (Incomplete)

Match criterion application result:

·     Incomplete—Some contents of the match criterion were applied successfully.

·     Failed—All contents of the match criterion failed to be applied.

Failed rule ID

ACL rules that failed to be applied.

 

For the description of other fields, see Table 1 and Table 4.

display qos policy diagnosis global

Use display qos policy diagnosis global to display diagnostic information about QoS policies applied globally.

Syntax

In standalone mode:

display qos [ accounting | remarking ] policy diagnosis global [ slot slot-number ] [ inbound | outbound ]

In IRF mode:

display qos [ accounting | remarking ] policy diagnosis global [ chassis chassis-number slot slot-number ] [ inbound | outbound ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

accounting: Specifies accounting-type QoS policies.

remarking: Specifies marking-type QoS policies.

inbound: Specifies the QoS policy applied in the inbound direction.

outbound: Specifies the QoS policy applied in the outbound direction.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays diagnostic information about globally applied QoS policies for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays diagnostic information about globally applied QoS policies for the global active MPU. (In IRF mode.)

Usage guidelines

If you do not specify the accounting or remarking keyword, this command displays diagnostic information about generic QoS policies.

If you do not specify a direction, this command displays diagnostic information about both QoS policies.

Examples

# Display diagnostic information about generic QoS policies applied globally.

<Sysname> display qos policy diagnosis global

  Direction: Inbound

  Policy: 1

   Classifier: 1 (Incomplete)

     Operator: AND

     Rule(s) :

      If-match acl 2000 (Incomplete)

       Failed Rule ID: 0, 3, 5, 50

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 7000 (Bytes), EBS 512 (Bytes)

   Classifier: 2

     Operator: AND

     Rule(s) :

      If-match protocol ipv6

     Behavior: 2

      Accounting enable:

      Filter enable: Permit

      Marking:

        Remark mpls-exp 4

   Classifier: 3

     Operator: AND

     Rule(s) :

      -none-

     Behavior: 3

      -none-

# Display diagnostic information about accounting-type QoS policies applied globally.

<Sysname> display qos accounting policy diagnosis global

  Direction: Inbound

  Accounting policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match protocol ipv4

     Behavior: 1

      Accounting enable: Packet

# Display diagnostic information about marking-type QoS policies applied globally.

<Sysname> display qos remarking policy diagnosis global

  Direction: Inbound

  Marking policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match protocol ipv4

     Behavior: 1

      Marking:

        Remark dscp 3

Table 10 Command output

Field

Description

Direction

Direction in which the QoS policy is applied.

Policy

User-defined generic QoS policy name or system-defined QoS policy name.

Accounting policy

User-defined accounting-type QoS policy name.

Marking policy

User-defined marking-type QoS policy name.

Classifier: 1 (Incomplete)

Traffic class application result:

·     Incomplete—Some contents of the traffic class were applied successfully.

·     Failed—All contents of the traffic class failed to be applied.

If-match acl 2000 (Incomplete)

Match criterion application result:

·     Incomplete—Some contents of the match criterion were applied successfully.

·     Failed—All contents of the match criterion failed to be applied.

Failed rule ID

ACL rules that failed to be applied.

 

For the description of other fields, see Table 1 and Table 4.

display qos policy diagnosis interface

Use display qos policy diagnosis interface to display diagnostic information about QoS policies applied globally.

Syntax

In standalone mode:

display qos [ accounting | remarking ] policy diagnosis interface [ interface-type interface-number ] [ slot slot-number ] [ inbound | outbound ]

In IRF mode:

display qos [ accounting | remarking ] policy diagnosis interface [ interface-type interface-number ] [ chassis chassis-number slot slot-number ] [ inbound | outbound ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

accounting: Specifies accounting-type QoS policies.

remarking: Specifies marking-type QoS policies.

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays diagnostic information about QoS policies applied to all interfaces.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays diagnostic information about applied QoS policies for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays diagnostic information about applied QoS policies for the global active MPU. (In IRF mode.)

inbound: Specifies the QoS policy applied in the inbound direction.

outbound: Specifies the QoS policy applied in the outbound direction.

Usage guidelines

If you do not specify the accounting or remarking keyword, this command displays diagnostic information about generic QoS policies.

If you do not specify a direction, this command displays diagnostic information about both QoS policies.

Examples

# Display diagnostic information about the generic QoS policy applied to the incoming traffic of FortyGigE 1/0/1.

<Sysname> display qos policy diagnosis interface fortygige 1/0/1 inbound

Interface: FortyGigE1/0/1

  Direction: Inbound

  Policy: 1

   Classifier: 1 (Incomplete)

     Operator: AND

     Rule(s) :

      If-match acl 2000 (Incomplete)

       Failed Rule ID: 0, 3, 5, 50

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 7000 (Bytes), EBS 512 (Bytes)

        Green action  : pass

        Yellow action : pass

        Red action    : discard

   Classifier: 2

     Operator: AND

     Rule(s) :

      If-match not protocol ipv6

     Behavior: 2

      Filter enable: Permit

      Marking:

        Remark mpls-exp 4

   Classifier: 3

     Operator: AND

     Rule(s) :

      -none-

     Behavior: 3

      -none-

# Display diagnostic information about the accounting-type QoS policy applied to the incoming traffic of FortyGigE 1/0/1.

<Sysname> display qos accounting policy diagnosis interface fortygige 1/0/1 inbound

Interface: FortyGigE1/0/1

  Direction: Inbound

  Accounting policy: 1

   Classifier: 1 (Incomplete)

     Operator: AND

     Rule(s) :

      If-match acl 2000 (Incomplete)

       Failed Rule ID: 0, 3, 5, 50

     Behavior: 1

      Accounting enable: Packet

# Display diagnostic information about the mirroring-type QoS policy applied to the incoming traffic of FortyGigE 1/0/1.

<Sysname> display qos remarking policy diagnosis interface fortygige 1/0/1 inbound

Interface: FortyGigE1/0/1

  Direction: Inbound

  Marking policy: 1

   Classifier: 1 (Incomplete)

     Operator: AND

     Rule(s) :

      If-match acl 2000 (Incomplete)

       Failed Rule ID: 0, 3, 5, 50

     Behavior: 1

      Marking:

        Remark dscp 3

Table 11 Command output

Field

Description

Direction

Direction in which the QoS policy is applied.

Policy

User-defined generic QoS policy name or system-defined QoS policy name.

Accounting policy

User-defined accounting-type QoS policy name.

Marking policy

User-defined marking-type QoS policy name.

Classifier: 1 (Incomplete)

Traffic class application result:

·     Incomplete—Some contents of the traffic class were applied successfully.

·     Failed—All contents of the traffic class failed to be applied.

If-match acl 2000 (Incomplete)

Match criterion application result:

·     Incomplete—Some contents of the match criterion were applied successfully.

·     Failed—All contents of the match criterion failed to be applied.

Failed rule ID

ACL rules that failed to be applied.

 

For the description of other fields, see Table 1 and Table 4.

display qos policy diagnosis l2vpn-ac inbound

Use display qos policy diagnosis l2vpn-ac inbound to display diagnostic information about the QoS policies applied to the inbound direction of Ethernet service instances.

Syntax

In standalone mode:

display qos policy diagnosis l2vpn-ac [ interface interface-type interface-number [ service-instance instance-id ] [ slot slot-number ] ] [ inbound ]

In IRF mode:

display qos policy diagnosis l2vpn-ac [ interface interface-type interface-number [ service-instance instance-id ] [ chassis chassis-number slot slot-number ] ] [ inbound ]

 Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays diagnostic information about QoS policies applied to Ethernet service instances on all interfaces.

service-instance instance-id: Specifies an Ethernet service instance by its ID in the range of 1 to 4096. If you do not specify an Ethernet service instance, this command displays diagnostic information about QoS policies applied to all Ethernet service instances on an interface.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays QoS policy diagnostic information for all cards. Only Layer 2 aggregate interfaces support this option. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays QoS policy diagnostic information for all cards. Only Layer 2 aggregate interfaces support this option. (In IRF mode.)

Examples

# Display diagnostic information about the QoS policy applied to the incoming traffic of Ethernet service instance 1 on FortyGigE 1/0/1.

<Sysname> display qos policy diagnosis l2vpn-ac interface fortygige 1/0/1 service-instance 1 inbound

Interface: FortyGigE1/0/1    Service instance ID: 1

  Direction: Inbound

  Policy: 1

   Classifier: 1 (Incomplete)

     Operator: AND

     Rule(s) :

      If-match acl 2000 (Incomplete)

       Failed Rule ID: 0, 3, 5, 50

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 7000 (Bytes), EBS 512 (Bytes)

   Classifier: 2

     Operator: AND

     Rule(s) :

      If-match protocol ipv6

     Behavior: 2

      Filter enable: Permit

      Marking:

        Remark mpls-exp 4

   Classifier: 3

     Operator: AND

     Rule(s) :

      -none-

     Behavior: 3

      -none-

Table 12 Command output

Field

Description

Direction

Direction in which the QoS policy is applied.

Classifier: 1 (Incomplete)

Traffic class application result:

·     Incomplete—Some contents of the traffic class were applied successfully.

·     Failed—All contents of the traffic class failed to be applied.

If-match acl 2000 (Incomplete)

Match criterion application result:

·     Incomplete—Some contents of the match criterion were applied successfully.

·     Failed—All contents of the match criterion failed to be applied.

Failed rule ID

ACL rules that failed to be applied.

 

For the description of fields, see Table 1 and Table 4.

 

display qos policy global

Use display qos policy global to display QoS policies applied globally.

Syntax

In standalone mode:

display qos [ accounting | remarking ] policy global [ slot slot-number ] [ inbound | outbound ]

In IRF mode:

display qos [ accounting | remarking ] policy global [ chassis chassis-number slot slot-number ] [ inbound | outbound ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

accounting: Specifies accounting-type QoS policies.

remarking: Specifies marking-type QoS policies.

inbound: Specifies the QoS policy applied in the inbound direction.

outbound: Specifies the QoS policy applied in the outbound direction.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays global QoS policies for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays global QoS policies for the global active MPU. (In IRF mode.)

Usage guidelines

If you do not specify the accounting or remarking keyword, this command displays information about generic QoS policies.

If you do not specify a direction, this command displays both inbound and outbound global QoS policies.

Examples

# Display generic QoS policies applied globally.

<Sysname> display qos policy global

  Direction: Inbound

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match acl 2000

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 51200 (Bytes), EBS 512 (Bytes)

        Green action  : pass

        Yellow action : pass

        Red action    : discard

   Classifier: 2

     Operator: AND

     Rule(s) :

      If-match protocol ipv6

     Behavior: 2

      Accounting enable:

        0 (Packets)

      Filter enable: Permit

      Marking:

        Remark dscp 3

   Classifier: 3

     Operator: AND

     Rule(s) :

      -none-

     Behavior: 3

      -none-

# Display information about accounting-type QoS policies applied globally.

<Sysname> display qos accounting policy global

  Direction: Inbound

  Accounting policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match acl 2000

     Behavior: 1

      Accounting enable: Packet

# Display information about marking-type QoS policies applied globally.

<Sysname> display qos remarking policy global

  Direction: Inbound

  Marking policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match acl 2000

     Behavior: 1

      Marking:

        Remark dscp 3

Table 13 Command output

Field

Description

Direction

Direction in which the QoS policy is applied.

Policy

User-defined generic QoS policy name or system-defined QoS policy name.

Accounting policy

User-defined accounting-type QoS policy name.

Marking policy

User-defined marking-type QoS policy name.

 

For the description of other fields, see Table 1 and Table 4.

display qos policy interface

Use display qos policy interface to display the QoS policies applied to interfaces.

Syntax

In standalone mode:

display qos [ accounting | remarking ] policy interface [ interface-type interface-number ] [ slot slot-number ] [ inbound | outbound ]

In IRF mode:

display qos [ accounting | remarking ] policy interface [ interface-type interface-number ] [ chassis chassis-number slot slot-number ] [ inbound | outbound ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

accounting: Specifies accounting-type QoS policies.

remarking: Specifies marking-type QoS policies.

interface-type interface-number: Specifies an interface by its type and number.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays QoS policies on the active MPU. Only logical interfaces support this option. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays QoS policies on the global active MPU. Only logical interfaces support this option. (In IRF mode.)

inbound: Specifies the QoS policy applied to incoming traffic.

outbound: Specifies the QoS policy applied to outgoing traffic.

Usage guidelines

If you do not specify the accounting or remarking keyword, this command displays generic QoS policies applied.

If you do not specify a direction, this command displays the QoS policy applied to incoming traffic and the QoS policy applied to outgoing traffic.

Examples

# Display the generic QoS policy applied to the incoming traffic of FortyGigE 1/0/1.

<Sysname> display qos policy interface fortygige 1/0/1 inbound

Interface: FortyGigE1/0/1

  Direction: Inbound

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match acl 2000

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 51200 (Bytes), EBS 512 (Bytes)

   Classifier: 3

     Operator: AND

     Rule(s) :

      -none-

     Behavior: 3

      -none-

# Display information about the accounting-type QoS policy applied to the incoming traffic of FortyGigE 1/0/1.

<Sysname> display qos accounting policy interface fortygige 1/0/1 inbound

Interface: FortyGigE1/0/1

  Direction: Inbound

  Accounting Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match acl 2000

     Behavior: 1

      Accounting enable:

        0 (Packets)

# Display information about the marking-type QoS policy applied to the incoming traffic of FortyGigE 1/0/1.

<Sysname> display qos remarking policy interface fortygige 1/0/1 inbound

Interface: FortyGigE1/0/1

  Direction: Inbound

  Marking policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match acl 2000

     Behavior: 1

      Marking:

        Remark dscp 3

# Display the QoS policies applied to all interfaces.

<Sysname> display qos policy interface

Interface: FortyGigE1/0/1

  Direction: Inbound

  Mode     : Share

  Policy: a

   Classifier: a

     Operator: AND

     Rule(s) :

      If-match any

     Behavior: a

      Mirroring:

        Mirror to the interface: FortyGigE1/0/2

      Committed Access Rate:

        CIR 112 (kbps), CBS 51200 (Bytes), EBS 0 (Bytes)

 

Interface: FortyGigE1/0/3

  Direction: Inbound

  Policy: b

   Classifier: b

     Operator: AND

     Rule(s) :

      If-match any

     Behavior: b

      Committed Access Rate:

        CIR 112 (kbps), CBS 51200 (Bytes), EBS 0 (Bytes)

 

Interface: FortyGigE1/0/4

  Direction: Inbound

  Mode     : Share

  Policy: a

   Classifier: a

     Operator: AND

     Rule(s) :

      If-match any

     Behavior: a

      Mirroring:

        Mirror to the interface: FortyGigE1/0/5

      Committed Access Rate:

        CIR 112 (kbps), CBS 51200 (Bytes), EBS 0 (Bytes)

Table 14 Command output

Field

Description

Direction

Direction in which the QoS policy is applied.

Policy

User-defined generic QoS policy name.

Accounting policy

User-defined accounting-type QoS policy name.

Marking policy

User-defined marking-type QoS policy name.

Mode

Sharing mode for QoS and ACL resources.

This field appears only if a QoS policy is applied with the share-mode keyword.

 

For the description of other fields, see Table 1 and Table 4.

display qos policy l2vpn-ac

Use display qos policy l2vpn-ac to display the QoS policies applied to Ethernet service instances.

Syntax

In standalone mode:

display qos policy l2vpn-ac [ interface interface-type interface-number [ service-instance instance-id ] [ slot slot-number ] ] [ inbound ]

In IRF mode:

display qos policy l2vpn-ac [ interface interface-type interface-number [ service-instance instance-id ] [ chassis chassis-number slot slot-number ] ] [ inbound ]

 Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays QoS policies applied to Ethernet service instances on all interfaces.

service-instance instance-id: Specifies an Ethernet service instance by its ID in the range of 1 to 4096. If you do not specify an Ethernet service instance, this command displays QoS policies applied to all Ethernet service instances on an interface.

inbound: Specifies the QoS policies applied to incoming traffic. If you do not specify this keyword, the command execution results are the same.

Examples

# Display the QoS policy applied to the incoming traffic of Ethernet service instance 1 on FortyGigE 1/0/1.

<Sysname> display qos policy l2vpn-ac interface fortygige 1/0/1 service-instance 1 inbound

Interface: FortyGigE1/0/1    Service instance ID: 1

  Direction: Inbound

  Policy: p

   Classifier: c

     Operator: AND

     Rule(s) :

      If-match any

     Behavior: b

      Committed Access Rate:

        CIR 88 (kbps), CBS 5632 (Bytes), EBS 0 (Bytes)

        Green packets : 0 (Packets)

        Red packets   : 0 (Packets)

For the description of fields, see Table 1 and Table 4.

display qos vlan-policy

Use display qos vlan-policy to display QoS policies applied to VLANs.

Syntax

In standalone mode:

display qos vlan-policy { name policy-name | vlan [ vlan-id ] } [ slot slot-number ] [ inbound | outbound ]

In IRF mode:

display qos vlan-policy { name policy-name | vlan [ vlan-id ] } [ chassis chassis-number slot slot-number ] [ inbound | outbound ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

name policy-name: Specifies a QoS policy by its name, a case-sensitive string of 1 to 31 characters.

vlan vlan-id: Specifies a VLAN by its ID in the range of 1 to 4094.

inbound: Displays QoS policies applied to incoming traffic.

outbound: Displays QoS policies applied to outgoing traffic.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays QoS policies applied to VLANs for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays QoS policies applied to VLANs for the global active MPU. (In IRF mode.)

Usage guidelines

If you do not specify a direction, this command displays QoS policies applied to VLANs in both the inbound and outbound directions.

Examples

# Display QoS policies applied to VLAN 2.

<Sysname> display qos vlan-policy vlan 2

Vlan 2

  Direction: Inbound

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match acl 2000

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 5120 (Bytes), EBS 512 (Bytes)

   Classifier: 2

     Operator: AND

     Rule(s) :

      If-match protocol ipv6

     Behavior: 2

      Accounting enable:

        0 (Packets)

      Filter enable: Permit

      Marking:

        Remark dscp 3

   Classifier: 3

     Operator: AND

     Rule(s) :

      -none-

     Behavior: 3

      -none-

Table 15 Command output

Field

Description

Direction

Direction in which the QoS policy is applied.

 

For the description of other fields, see Table 1 and Table 4.

display qos vlan-policy diagnosis

Use display qos vlan-policy diagnosis to display diagnostic information about QoS policies applied to VLANs.

Syntax

In standalone mode:

display qos vlan-policy diagnosis { name policy-name | vlan [ vlan-id ] } [ slot slot-number ] [ inbound | outbound ]

In IRF mode:

display qos vlan-policy diagnosis { name policy-name | vlan [ vlan-id ] } [ chassis chassis-number slot slot-number ] [ inbound | outbound ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

name policy-name: Specifies a QoS policy by its name, a case-sensitive string of 1 to 31 characters.

vlan vlan-id: Specifies a VLAN by its ID in the range of 1 to 4094.

inbound: Specifies QoS policies applied to incoming traffic.

outbound: Specifies QoS policies applied to outgoing traffic.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays diagnostic information about QoS policies applied to VLANs for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays diagnostic information about QoS policies applied to VLANs for the global active MPU. (In IRF mode.)

Usage guidelines

If you do not specify a direction, this command displays diagnostic information about QoS policies applied to VLANs in both the inbound and outbound directions.

Examples

# Display diagnostic information about QoS policies applied to VLAN 2.

<Sysname> display qos vlan-policy diagnosis vlan 2

Vlan 2

  Direction: Outbound

  Policy: 1

   Classifier: 1 (Incomplete)

     Operator: AND

     Rule(s) :

      If-match acl 2000 (Incomplete)

       Failed Rule ID: 0, 3, 5, 50

     Behavior: 1

      Marking:

        Remark dscp 3

      Committed Access Rate:

        CIR 112 (kbps), CBS 7000 (Bytes), EBS 512 (Bytes)

   Classifier: 2

     Operator: AND

     Rule(s) :

      If-match protocol ipv6

     Behavior: 2

      Accounting enable:

      Filter enable: Permit

      Marking:

        Remark mpls-exp 4

   Classifier: 3

     Operator: AND

     Rule(s) :

      -none-

     Behavior: 3

      -none-

Table 16 Command output

Field

Description

Direction

Direction in which the QoS policy is applied.

Classifier: 1 (Incomplete)

Traffic class application result:

·     Incomplete—Some contents of the traffic class were applied successfully.

·     Failed—All contents of the traffic class failed to be applied.

If-match acl 2000 (Incomplete)

Match criterion application result:

·     Incomplete—Some contents of the match criterion were applied successfully.

·     Failed—All contents of the match criterion failed to be applied.

Failed rule ID

ACL rules that failed to be applied.

 

For the description of other fields, see Table 1 and Table 4.

qos apply policy (Ethernet service instance view, interface view, control plane view)

Use qos apply policy to apply a QoS policy to an Ethernet service instance, interface, or control plane.

Use undo qos apply policy to remove an applied QoS policy.

Syntax

qos apply [ accounting | remarking ] policy policy-name { inbound [ extension ] | outbound } [ share-mode ]

undo qos apply [ accounting | remarking ] policy policy-name { inbound | outbound }

Default

No QoS policy is applied.

Views

Control plane view

Ethernet service instance view

Layer 2 Ethernet interface view

Layer 2 aggregate interface view

Layer 3 Ethernet interface view

Layer 3 aggregate interface view

Layer 3 Ethernet subinterface view

Predefined user roles

network-admin

mdc-admin

Parameters

accounting: Specifies an accounting-type QoS policy. This keyword is supported only in interface view.

remarking: Specifies a marking-type QoS policy. This keyword is supported only in interface view.

policy-name: Specifies a QoS policy by its name, a case-sensitive string of 1 to 31 characters.

inbound: Applies the QoS policy to incoming traffic.

outbound: Applies the QoS policy to outgoing traffic. This keyword is not supported in Ethernet service instance view or control plane view.

extension: Applies the QoS policy in extended mode to a Layer 2 or Layer 3 Ethernet interface. You can apply a QoS policy to one direction of an interface either with or without the extension keyword, but not both. A QoS policy applied with the extension keyword uses more hardware resources but supports limited parameters than that applied without the extension keyword. This keyword is available only on HF cards. Before using this keyword, you must set the TCAM operating mode to acl by using the hardware-resource tcam command. For information about this command, see device management commands in Fundamentals Command Reference.

share-mode: Applies the QoS policy in sharing mode to a Layer 2 Ethernet interface, Layer 3 Ethernet interface, or VSI interface. In this mode, all Layer 2 Ethernet interfaces, Layer 3 Ethernet interfaces, or VSI interfaces on an interface card with the same QoS policy applied in one direction share one QoS and ACL resource. For Ethernet interfaces, the device has four QoS and ACL resources that can be shared in each direction separately. For VSI interfaces, the device has three QoS and ACL resources that can be shared in each direction separately. The device supports the sharing mode for packet filtering, QoS policy, and policy-based routing. Policy-based routing supports the sharing mode only in the inbound direction. If all QoS and ACL resources that can be shared are used, they can be reused after they are released.

Usage guidelines

For configuration commands for Ethernet service instances, see MPLS L2VPN or VPLS in MPLS Command Reference or see VXLAN Command Reference.

A maximum of three QoS policies (one for each type) can be applied to one direction of an interface. Different actions can be taken on the same traffic class if QoS policies of different types are applied to an interface.

You can use the following commands to match protocol packets sent to the CPU for a QoS policy applied to a control plane:

·     if-match control-plane protocol

·     if-match control-plane protocol-group

·     if-match acl

When you use the if-match acl command to match protocol packets sent to the CPU, follow these restrictions and guidelines:

¡     The used ACL must be an advanced ACL.

¡     You must specify TCP or UDP for the protocol argument in the rule.

¡     You must specify a source port or destination port by using the eq operator in the rule.

For example, an IPv4 advanced ACL that contains a rule permit tcp source-port eq 80 statement can match TCP packets sent to the CPU.

If you specify the share-mode keyword when applying a QoS policy containing a traffic policing action to interfaces, all interfaces that share one QoS and ACL resource evenly share the set CIR. If the share-mode keyword is not specified, the bandwidth of each interface can be limited to the CIR.

You cannot change the sharing mode dynamically after a QoS policy is applied to an interface. To change the sharing mode for an applied QoS policy, perform the following tasks:

1.     Remove the QoS policy from the interface.

2.     Reapply the QoS policy with or without the share-mode keyword specified.

A traffic behavior takes effect only on matching Layer 3 packets and does not take effect on matching Layer 2 packets if the following conditions exist:

·     The associated traffic class contains an IPv4 ACL.

·     The QoS policy is applied to the outbound direction of an interface.

A traffic behavior takes effect only on matching Layer 3 packets and does not take effect on matching Layer 2 packets if the following conditions exist:

·     The associated traffic class contains an IPv6 ACL.

·     The dscp dscp option is configured in an ACL rule.

·     The QoS policy is applied to the outbound direction of an interface.

A QoS policy cannot be applied to the outbound direction of an interface if the following conditions exist:

·     A traffic class contains an IPv6 ACL.

·     The source IPv6 address and destination IPv6 address match criteria are configured in a rule of the ACL.

Examples

# Apply generic QoS policy TEST1 to the outgoing traffic of FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos apply policy TEST1 outbound

# Apply accounting-type QoS policy TEST2 to the outgoing traffic of FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos apply accounting policy TEST2 outbound

# Apply marking-type QoS policy TEST4 to the outgoing traffic of FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos apply remarking policy TEST4 outbound

# Apply QoS policy TEST5 to the incoming traffic of the control plane of slot 3.

<Sysname> system-view

[Sysname] control-plane slot 3

[Sysname-cp-slot3] qos apply policy TEST5 inbound

# Apply QoS policy test to the incoming traffic of Ethernet service instance 200.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] service-instance 200

[Sysname-GigabitEthernet1/0/1-srv200] qos apply policy test inbound

# Apply QoS policy TEST10 in sharing mode to the outgoing traffic of FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1]qos apply policy TEST10 outbound share-mode

qos apply policy global

Use qos apply policy global to apply a QoS policy globally.

Use undo qos apply policy global to remove a globally applied QoS policy.

Syntax

qos apply [ accounting | remarking ] policy policy-name global { inbound | outbound }

undo qos apply [ accounting | remarking ] policy policy-name global { inbound | outbound }

Default

No QoS policy is applied globally.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

accounting: Specifies an accounting-type QoS policy.

remarking: Specifies a marking-type QoS policy.

policy-name: Specifies a QoS policy by its name, a case-sensitive string of 1 to 31 characters.

inbound: Applies the QoS policy to the incoming packets on all interfaces.

outbound: Applies the QoS policy to the outgoing packets on all interfaces.

Usage guidelines

A global QoS policy takes effect on all incoming or outgoing traffic depending on the direction in which the QoS policy is applied.

A maximum of three QoS policies (one generic, one accounting-type, and one marking-type) can be applied to one direction globally.

If you do not specify the accounting or remarking keyword, this command applies a generic QoS policy globally.

A traffic behavior takes effect only on matching Layer 3 packets and does not take effect on matching Layer 2 packets if the following conditions exist:

·     The associated traffic class contains an IPv4 ACL.

·     The QoS policy is applied to the outbound direction globally.

A traffic behavior takes effect only on matching Layer 3 packets and does not take effect on matching Layer 2 packets if the following conditions exist:

·     The associated traffic class contains an IPv6 ACL.

·     The dscp dscp option is configured in an ACL rule.

·     The QoS policy is applied to the outbound direction globally.

A QoS policy cannot be applied to the outbound direction globally if the following conditions exist:

·     A traffic class contains an IPv6 ACL.

·     The source IPv6 address and destination IPv6 address match criteria are configured in a rule of the ACL.

Examples

# Globally apply generic QoS policy user1 to the incoming traffic.

<Sysname> system-view

[Sysname] qos apply policy user1 global inbound

qos policy

Use qos policy to create a QoS policy and enter its view, or enter the view of an existing QoS policy.

Use undo qos policy to delete a QoS policy.

Syntax

qos [ accounting | remarking ] policy policy-name

undo qos [ accounting | remarking ] policy policy-name

Default

No QoS policies exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

accounting: Identifies the QoS policy as an accounting-type QoS policy.

remarking: Identifies the QoS policy as a marking-type QoS policy.

policy-name: Specifies a name for the QoS policy, a case-sensitive string of 1 to 31 characters.

Usage guidelines

If you do not specify the accounting or remarking keyword when creating a QoS policy, a generic QoS policy is created.

QoS policies of different types cannot use the same policy name.

Do not use the accounting or remarking word or the first letters of any one of them as a policy name. If you do so, no information is displayed when you execute the display qos policy user-defined policy-name command, because the system will recognize such a policy name as a command keyword.

A generic QoS policy can be applied to all supported destinations and can contain all actions. An accounting-type QoS policy can be applied to only interfaces or globally and can contain only class-based accounting actions. A marking-type QoS policy can be applied to only interfaces or globally and can contain only marking actions.

To delete a QoS policy that has been applied to an object, you must first remove the QoS policy from the object.

Examples

# Create a QoS policy named user1.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1]

# Create an accounting-type QoS policy named user2.

<Sysname> system-view

[Sysname] qos accounting policy user2

[Sysname-qospolicy-user2]

# Create a marking-type QoS policy named user3.

<Sysname> system-view

[Sysname] qos remarking policy user3

[Sysname-qospolicy-user3]

Related commands

classifier behavior

qos apply policy

qos apply policy global

qos vlan-policy

qos vlan-policy

Use qos vlan-policy to apply a QoS policy to the specified VLANs.

Use undo qos vlan-policy to remove a QoS policy from the specified VLANs.

Syntax

qos vlan-policy policy-name vlan vlan-id-list { inbound | outbound }

undo qos vlan-policy policy-name vlan vlan-id-list { inbound | outbound }

Default

No QoS policy is applied to a VLAN.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

policy-name: Specifies a QoS policy by its name, a case-sensitive string of 1 to 31 characters.

vlan vlan-id-list: Specifies a space-separated list of up to eight VLAN IDs or a VLAN ID range in the form of vlan-id1 to vlan-id2. The value for vlan-id2 must be greater than or equal to the value for vlan-id1. The value range for the vlan-id argument is 1 to 4094.

inbound: Applies the QoS policy to incoming packets.

outbound: Applies the QoS policy to outgoing packets.

Examples

# Apply QoS policy test to the incoming traffic of VLAN 200, VLAN 300, VLAN 400, and VLAN 500.

<Sysname> system-view

[Sysname] qos vlan-policy test vlan 200 300 400 500 inbound

reset qos policy control-plane

Use reset qos policy control-plane to clear the statistics of the QoS policy applied to a control plane.

Syntax

In standalone mode:

reset qos policy control-plane slot slot-number

In IRF mode:

reset qos policy control-plane chassis chassis-number slot slot-number

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies a card by its slot number. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.)

Examples

# (In standalone mode.) Clear the statistics of the QoS policy applied to the control plane of slot 1.

<Sysname> reset qos policy control-plane slot 1

reset qos policy global

Use reset qos policy global to clear statistics for QoS policies applied globally.

Syntax

reset qos [ accounting | remarking ] policy global [ inbound | outbound ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

accounting: Specifies accounting-type QoS policies.

remarking: Specifies marking-type QoS policies.

inbound: Specifies the QoS policy applied to the inbound direction globally.

outbound: Specifies the QoS policy applied to the outbound direction globally.

Usage guidelines

If you do not specify a direction, this command clears statistics for the global QoS policies in both directions.

If you do not specify the accounting or remarking keyword, this command clears statistics for generic QoS policies.

Examples

# Clear statistics for the generic QoS policy applied to the inbound direction globally.

<Sysname> reset qos policy global inbound

reset qos vlan-policy

Use reset qos vlan-policy to clear the statistics for QoS policies applied to VLANs.

Syntax

reset qos vlan-policy [ vlan vlan-id ] [ inbound | outbound ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

vlan vlan-id: Specifies a VLAN ID in the range of 1 to 4094.

inbound: Specifies the QoS policy applied to incoming traffic.

outbound: Specifies the QoS policy applied to outgoing traffic.

Usage guidelines

If you do not specify a direction, this command clears the statistics of the QoS policies in both directions of the VLAN.

Examples

# Clear the statistics of QoS policies applied to VLAN 2.

<Sysname> reset qos vlan-policy vlan 2


Priority mapping commands

Priority map commands

display qos map-table

Use display qos map-table to display the configuration of priority maps.

Syntax

display qos map-table [ dot1p-dp | dot1p-dscp | dot1p-lp | dscp-dot1p | dscp-dp | dscp-dscp | dscp-exp |exp-dot1p | exp-dscp ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

The device provides the following types of priority map.

Table 17 Priority maps

Priority mapping

Description

dot1p-dp

802.1p-drop priority map.

dot1p-dscp

802.1p-DSCP priority map.

dot1p-lp

802.1p-local priority map.

dscp-dot1p

DSCP-802.1p priority map.

dscp-dp

DSCP-drop priority map.

dscp-dscp

DSCP-DSCP priority map.

dscp-exp

DSCP-EXP priority map.

exp-dot1p

EXP-802.1p priority map.

exp-dscp

EXP-DSCP priority map.

Usage guidelines

If you do not specify a priority map, this command displays the configuration of all priority maps.

Examples

# Display the configuration of the 802.1p-local priority map.

<Sysname> display qos map-table dot1p-lp

MAP-TABLE NAME: dot1p-lp   TYPE: pre-define

IMPORT  :  EXPORT

   0    :    2

   1    :    0

   2    :    1

   3    :    3

   4    :    4

   5    :    5

   6    :    6

   7    :    7

Table 18 Command output

Field

Description

MAP-TABLE NAME

Name of the priority map.

TYPE

Type of the priority map.

IMPORT

Input values of the priority map.

EXPORT

Output values of the priority map.

 

dot1p-trust-tc

Use dot1p-trust-tc to modify the 802.1p priority of outgoing packets to the local precedence value.

Use undo dot1p-trust-tc to restore the default.

Syntax

In standalone mode:

dot1p-trust-tc slot slot-number

undo dot1p-trust-tc slot slot-number

In IRF mode:

dot1p-trust-tc chassis chassis-number slot slot-number

undo dot1p-trust-tc chassis chassis-number slot slot-number

Default

The 802.1p priority of outgoing packets is not modified.

Views

System view

Predefined user roles

network-admin

Usage guidelines

For the remark dot1p command to take effect, this command must be executed.

After an incoming packet is marked according to the remark dot1p command, it is assigned to a queue according to the default dot1p-lp priority map. The 802.1p priority of the packet is modified as its local precedence value before it is sent out.

If you modify the default dot1p-lp priority map, the outgoing packet is enqueued to a different queue, and its 802.1p priority is modified to a different local precedence value.

Parameters

slot slot-number: Specifies a card by its slot number. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.)

Examples

# Modify the 802.1p priority of outgoing packets to the local precedence value on card 3 of member device 1.

<Sysname> system-view

[Sysname] dot1p-trust-tc chassis 1 slot 3

Related commands

remark dot1p

import

Use import to configure mappings for a priority map.

Use undo import to restore the specified or all mappings to the default for a priority map.

Syntax

import import-value-list export export-value

undo import { import-value-list | all }

Default

The default priority maps are used. For more information, see ACL and QoS Configuration Guide.

Views

Priority map view

Predefined user roles

network-admin

mdc-admin

Parameters

import-value-list: Specifies a list of input values.

export-value: Specifies the output value.

all: Restores all mappings in the priority map to the default.

Examples

# Configure the 802.1p-local priority map to map 802.1p priority values 4 and 5 to local priority 1.

<Sysname> system-view

[Sysname] qos map-table dot1p-lp

[Sysname-maptbl-dot1p-lp] import 4 5 export 1

Related commands

display qos map-table

qos map-table

Use qos map-table to enter the specified priority map view.

Syntax

qos map-table { dot1p-dp | dot1p-dscp | dot1p-lp | dscp-dot1p | dscp-dp | dscp-dscp | dscp-exp |exp-dot1p | exp-dscp }

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

For the description of the keywords, see Table 17.

Examples

# Enter 802.1p-local priority map view.

<Sysname> system-view

[Sysname] qos map-table dot1p-lp

[Sysname-maptbl-dot1p-lp]

Related commands

display qos map-table

import

Priority trust mode commands

display qos trust interface

Use display qos trust interface to display the priority trust mode and port priorities of an interface.

Syntax

display qos trust interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the priority trust mode and port priorities of all interfaces.

Examples

# Display the priority trust mode and port priority of FortyGigE 1/0/1.

<Sysname> display qos trust interface fortygige 1/0/1

Interface: FortyGigE1/0/1

 Port priority trust information

  Port priority:4

  Port dscp priority: -

  Port priority trust type: dscp

Table 19 Command output

Field

Description

Interface

Interface type and interface number.

Port priority

Port priority set for the interface.

Port dscp priority

DSCP value rewritten for packets. If you have not rewritten the DSCP value of packets, this field displays a hyphen (-).

Port priority trust type

Priority trust mode on the interface:

·     dot1p—Uses the 802.1p priority of received packets for mapping.

·     dscp—Uses the DSCP precedence of received IP packets for mapping.

 

qos trust

Use qos trust to configure the priority trust mode for an interface.

Use undo qos trust to restore the default.

Syntax

qos trust { dot1p | dscp }

undo qos trust

Default

An interface trusts the 802.1p priority in incoming packets.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

dot1p: Uses the 802.1p priority in incoming packets for priority mapping.

dscp: Uses the DSCP value in incoming packets for priority mapping.

Usage guidelines

For a VXLAN tunnel interface to trust the DSCP priority in the inner IP header of VXLAN packets, configure the qos trust dscp command on its physical interface.

Examples

# Set the priority trust mode to 802.1p priority on FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos trust dot1p

Related commands

display qos trust interface

Port priority commands

qos priority

Use qos priority to change the port priority of an interface.

Use undo qos priority to restore the default.

Syntax

qos priority [ dscp ] priority-value

undo qos priority [ dscp ]

Default

The port priority is 0.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

dscp: Specifies a DSCP value.

priority-value: Specifies a port priority value. If the dscp keyword is not specified, this argument specifies the port priority in the range of 0 to 7. If the dscp keyword is specified, this argument specifies the DSCP value to be set for packets, in the range of 0 to 63.

Examples

# Set the port priority of FortyGigE 1/0/1 to 2.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos priority 2

Related commands

display qos trust interface


GTS and rate limit commands

GTS commands

display qos gts interface

Use display qos gts interface to display the GTS configuration for interfaces.

Syntax

display qos gts interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the GTS configuration for all interfaces.

Examples

# Display the GTS configuration for all interfaces.

<Sysname> display qos gts interface

Interface: FortyGigE1/0/1

 Rule: If-match queue 1

  CIR 512 (kbps), CBS 51200 (Bytes)

Table 20 Command output

Field

Description

Interface

Interface name, including the interface type and interface number.

Rule

Match criteria.

CIR

CIR in kbps.

CBS

CBS in bytes.

 

qos gts

Use qos gts to set GTS parameters on an interface.

Use undo qos gts to delete the GTS configuration on an interface.

Syntax

qos gts queue queue-id cir committed-information-rate [ cbs committed-burst-size ]

undo qos gts queue queue-id

Default

No GTS parameters are configured.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue queue-id: Shapes the packets in a queue specified by its ID. The value range for queue-id is 0 to 7.

cir committed-information-rate: Specifies the CIR in kbps. The value range for committed-information-rate is 8 to 1000000 for GE interfaces, 8 to 10000000 for 10-GE interfaces, 8 to 40000000 for 40-GE interfaces, 8 to 100000000 for 100-GE interfaces. The specified value must be an integral multiple of 8.

cbs committed-burst-size: Specifies the CBS in bytes. The value range for committed-burst-size is 512 to 16000000, in increments of 512. The default value for this argument is the product of 62.5 and the CIR and must be an integral multiple of 512. When the product is not an integral multiple of 512, it is rounded up to the nearest integral multiple of 512 that is greater than the product. A default value greater than 16000000 is converted to 16000000.

Usage guidelines

GTS takes effect only on the outgoing traffic (traffic sent by the device).

Examples

# Shape the packets of queue 1 on HundredGigE 1/0/1 (CIR 6400 kbps and CBS 51200 bytes).

<Sysname> system-view

[Sysname] interface hundredgige 1/0/1

[Sysname-HundredGigE1/0/1] qos gts queue 1 cir 6400 cbs 51200

Rate limit commands

display qos lr interface

Use display qos lr interface to display the rate limit configuration for interfaces.

Syntax

display qos lr interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the rate limit configuration for all interfaces.

Examples

# Display the rate limit configuration for all interfaces.

<Sysname> display qos lr interface

Interface: FortyGigE1/0/1

 Direction: Outbound

  CIR 2000 (kbps), CBS 20480 (Bytes)

Table 21 Command output

Field

Description

Interface

Interface name, including the interface type and interface number.

Direction

Direction in which the rate limit configuration is applied.

CIR

CIR in kbps.

CBS

CBS in bytes.

 

qos lr

Use qos lr to configure rate limiting on an interface.

Use undo qos lr to delete the rate limit configuration on an interface.

Syntax

qos lr outbound cir committed-information-rate [ cbs committed-burst-size ]

undo qos lr  outbound

Default

No rate limit is configured.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

outbound: Limits the rate of outgoing packets.

cir committed-information-rate: Specifies the CIR in kbps. The committed-information-rate argument has the following value ranges: 8 to 1000000 for GE interfaces, 8 to 10000000 for 10-GE interfaces, 8 to 40000000 for 40-GE interfaces, and 8 to 100000000 for 100-GE interfaces. The specified value must be a multiple of 8.

cbs committed-burst-size: Specifies the CBS in bytes. The value range for committed-burst-size is 512 to 128000000, in increments of 512. The default value for this argument is the product of 62.5 and the CIR and must be a multiple of 512. When the product is not a multiple of 512, it is rounded up to the nearest integral multiple of 512 that is greater than the product. A default value greater than 128000000 is converted to 128000000.

Examples

# Limit the rate of outgoing packets on FortyGigE 1/0/1, with CIR 256 kbps and CBS 51200 bytes.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos lr outbound cir 256 cbs 51200

Per-card inbound rate limit level commands

pps-level inbound

Use pps-level inbound to set the per-card inbound rate limit level.

Use undo pps-level inbound to restore the default.

Syntax

pps-level inbound level-value

undo pps-level inbound

Default

On an HF card, the per-card rate limit level varies by TCAM operating mode:

·     6 for routing mode.

·     1 for ACL mode.

·     0 for mixed mode.

·     1023 for normal mode and IPv6 mode.

On an HB card, the per-card rate limit level is 1023.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

level-value: Specifies a per-card rate limit level in the range of 0 to 1024.

Usage guidelines

This command takes effect only for H-series cards. This command modifies the maximum number of incoming packets in Mpps that can be processed by a card and implements rate limiting on a per-card basis.

The maximum number of incoming packets that can be processed by a card is calculated by using he following formula:

720 x (inbound rate limit level + 1)/(2 x (inbound rate limit level + 1) +4)

For information about setting the TCAM operating mode, see device management commands in Fundamentals Command Reference.

Examples

# Set the per-card inbound rate limit level to 7.

<Sysname> system-view

[Sysname] pps-level inbound 7

 


Congestion management commands

Common commands

display qos queue interface

Use display qos queue interface to display the queuing information for interfaces.

Syntax

display qos queue interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the queuing information for all interfaces.

Examples

# Display the queuing information for all interfaces.

<Sysname> display qos queue interface

Interface: FortyGigE1/0/1

 Output queue: Strict Priority queuing

Interface: FortyGigE1/0/2

 Output queue: Strict Priority queuing

Table 22 Command output

Field

Description

Interface

Interface name, including the interface type and interface number.

Output queue

Type of the current output queue.

Group

Number of the group that holds the queue.

Weight

Packet-count scheduling weight of the queue. N/A is displayed for a queue that uses the SP scheduling algorithm.

Byte-count

Byte-count scheduling weight of the queue. N/A is displayed for a queue that uses the SP scheduling algorithm.

 

SP commands

display qos queue sp interface

Use display qos queue sp interface to display the SP queuing configuration of an interface.

Syntax

display qos queue sp interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the SP queuing configuration of all interfaces.

Examples

# Display the SP queuing configuration of FortyGigE 1/0/1.

<Sysname> display qos queue sp interface fortygige 1/0/1

Interface: FortyGigE1/0/1

 Output queue: Strict Priority queuing

Table 23 Command output

Field

Description

Interface

Interface type and interface number.

Output queue

Type of the current output queue.

 

qos sp

Use qos sp to enable SP queuing on an interface.

Use undo qos sp to restore the default.

Syntax

qos sp

undo qos sp

Default

An interface uses SP queuing.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Examples

# Enable SP queuing on FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos sp

Related commands

display qos queue sp interface

WRR commands

display qos queue wrr interface

Use display qos queue wrr interface to display the WRR queuing configuration of an interface.

Syntax

display qos queue wrr interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the WRR queuing configuration of all interfaces.

Examples

# Display the WRR queuing configuration of FortyGigE 1/0/1.

<Sysname> display qos queue wrr interface fortygige 1/0/1

Interface: FortyGigE1/0/1

 Output queue: Weighted Round Robin queuing

 Queue ID        Queue name      Group           Weight

 --------------------------------------------------------

 0               be              1               1

 1               af1             1               1

 2               af2             1               1

 3               af3             1               1

 4               af4             1               1

 5               ef              1               1

 6               cs6             1               1

 7               cs7             sp              N/A

Table 24 Command output

Field

Description

Interface

Interface type and interface number.

Output queue

Type of the current output queue.

Group

ID of the group a queue is assigned to.

Weight

Packet-count queue scheduling weight of a queue. N/A is displayed for a queue that uses the SP scheduling algorithm.

 

qos wrr

Use qos wrr to enable WRR queuing on an interface.

Use undo qos wrr to restore the default.

Syntax

qos wrr { byte-count | weight }

undo qos wrr { byte-count | weight }

Default

An interface uses SP queuing.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

byte-count: Allocates bandwidth to queues in bytes.

weight: Allocates bandwidth to queues in packets.

Usage guidelines

You must use the qos wrr command to enable WRR queuing before you can configure WRR queuing parameters for a queue on an interface.

Examples

# Enable packet-count WRR queuing on FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wrr weight

# Enable byte-count WRR queuing on FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wrr byte-count

Related commands

display qos queue wrr interface

qos wrr { byte-count | weight }

Use qos wrr { byte-count | weight } to configure the WRR queuing parameters for a queue on an interface.

Use undo qos wrr to restore the default.

Syntax

qos wrr queue-id group 1 { byte-count | weight } schedule-value

undo qos wrr queue-id

Default

All queues on a WRR-enabled interface are in WRR group 1, and queues 0 through 7 have a weight of 1, 2, 3, 4, 5, 6, 7, and 8, respectively.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID. The value range for this argument is 0 to 7 or keywords in Table 25.

Table 25 The number-keyword map for the queue-id argument

Number

Keyword

0

be

1

af1

2

af2

3

af3

4

af4

5

ef

6

cs6

7

cs7

 

group 1: Specifies WRR group 1. Only WRR group 1 is supported in the current software version.

byte-count: Allocates bandwidth to queues in bytes.

weight: Allocates bandwidth to queues in packets.

schedule-value: Specifies a scheduling weight. The value range for this argument is 1 to 127.

Usage guidelines

You must use the qos wrr command to enable WRR queuing before you can configure WRR queuing parameters for a queue on an interface.

Examples

# Enable packet-based WRR queuing on FortyGigE 1/0/1, assign queue 0 to WRR group 1, and specify scheduling weight 10 for queue 0.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wrr weight

[Sysname-FortyGigE1/0/1] qos wrr 0 group 1 weight 10

Related commands

display qos queue wrr interface

qos wrr

qos wrr group sp

Use qos wrr group sp to assign a queue to the SP group.

Use undo qos wrr group sp to remove a queue from the SP group.

Syntax

qos wrr queue-id group sp

undo qos wrr queue-id

Default

All queues on a WRR-enabled interface are in WRR group 1.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID. The value range for this argument is 0 to 7 or keywords in Table 25.

Usage guidelines

This command is available only on a WRR-enabled interface. Queues in the SP group are scheduled with SP. The SP group has higher scheduling priority than the WRR groups.

You must use the qos wrr command to enable WRR queuing before you can configure this command on an interface.

Examples

# Enable WRR queuing on FortyGigE 1/0/1, and assign queue 0 to the SP group.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wrr weight

[Sysname-FortyGigE1/0/1] qos wrr 0 group sp

Related commands

display qos queue wrr interface

qos wrr

WFQ commands

display qos queue wfq interface

Use display qos queue wfq interface to display the WFQ configuration of an interface.

Syntax

display qos queue wfq interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the WFQ configuration of all interfaces.

Examples

# Display the WFQ configuration of FortyGigE 1/0/1.

<Sysname> display qos wfq interface fortygige 1/0/1

Interface: FortyGigE1/0/1

 Output queue: Hardware Weighted Fair Queuing

 Queue ID        Queue name      Group           Byte count      Min Bandwidth

 --------------------------------------------------------------------------------

 0               be              1               1               64

 1               af1             1               1               64

 2               af2             1               1               64

 3               af3             1               1               64

 4               af4             1               1               64

 5               ef              1               1               64

 6               cs6             1               1               64

 7               cs7             1               1               64

Table 26 Command output

Field

Description

Interface

Interface type and interface number.

Output queue

Type of the current output queue.

Group

ID of the group that holds the queue.

Byte-count

Byte-count scheduling weight of the queue. N/A is displayed for a queue that uses the SP scheduling algorithm.

Weight

Packet-count queue scheduling weight of the queue. N/A is displayed for a queue that uses the SP scheduling algorithm.

Min Bandwidth

Minimum guaranteed bandwidth for the queue.

 

qos bandwidth queue

Use qos bandwidth queue to set the minimum guaranteed bandwidth for a queue on an interface.

Use undo qos bandwidth queue to restore the default.

Syntax

qos bandwidth queue queue-id min bandwidth-value

undo qos bandwidth queue queue-id

Default

The minimum guaranteed bandwidth for a queue is 64 kbps.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID. The value range for this argument is 0 to 7 or keywords in Table 25.

min bandwidth-value: Sets the minimum guaranteed bandwidth in kbps. The bandwidth-value argument has the following value ranges: 8 to 1000000 for GE interfaces, 8 to 10000000 for 10-GE interfaces, 8 to 40000000 for 40-GE interfaces, and 8 to 100000000 for 100-GE interfaces.

Usage guidelines

The minimum guaranteed bandwidth is the amount of bandwidth guaranteed for a queue when the interface is congested.

You must use the qos wfq command to enable WFQ before you can configure this command on an interface.

If you configure the outbound rate limit on the interface, the actual minimum guaranteed bandwidth will be slightly different from the set value.

Examples

# Set the minimum guaranteed bandwidth to 100 kbps for queue 0 on FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wfq weight

[Sysname-FortyGigE1/0/1] qos bandwidth queue 0 min 100

Related commands

qos wfq

qos wfq

Use qos wfq to enable WFQ on an interface.

Use undo qos wfq to restore the default.

Syntax

qos wfq { byte-count | weight }

undo qos wfq { byte-count | weight }

Default

An interface uses SP queuing.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

byte-count: Allocates bandwidth to queues in bytes.

weight: Allocates bandwidth to queues in packets.

Usage guidelines

You must use the qos wfq command to enable WFQ before you can configure WFQ queuing parameters for a queue on an interface.

Examples

# Enable packet-count WFQ on FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wfq weight

# Enable byte-count WFQ on FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wfq byte-count

Related commands

display qos queue wfq interface

qos wfq { byte-count | weight }

Use qos wfq { byte-count | weight } to assign a queue to a WFQ group with a certain scheduling weight.

Use undo qos wfq to restore the default.

Syntax

qos wfq queue-id group 1 { byte-count | weight } schedule-value

undo qos wfq queue-id

Default

All queues on a WFQ-enabled interface are in WFQ group 1 and have a weight of 1.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID. The value range for this argument is 0 to 7 or keywords in Table 25.

group 1: Specifies WFQ group 1. Only WFQ group 1 is supported in the current software version.

byte-count: Allocates bandwidth to queues in bytes.

weight: Allocates bandwidth to queues in packets.

schedule-value: Specifies a scheduling weight. The value range for this argument is 1 to 127.

Usage guidelines

You must use the qos wfq command to enable WFQ before you configure this command.

Examples

# Enable byte-count WFQ on FortyGigE 1/0/1, and specify scheduling weight 10 for queue 0.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wfq byte-count

[Sysname-FortyGigE1/0/1] qos wfq 0 group 1 byte-count 10

Related commands

display qos queue wfq interface

qos bandwidth queue

qos wfq

qos wfq group sp

Use qos wfq group sp to assign a queue to the SP group.

Use undo qos wfq group sp to remove a queue from the SP group.

Syntax

qos wfq queue-id group sp

undo qos wfq queue-id

Default

All queues on a WFQ-enabled interface are in WFQ group 1.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID. The value range for this argument is 0 to 7 or keywords in Table 25.

Usage guidelines

This command is available only on a WFQ-enabled interface. Queues in the SP group are scheduled with SP, instead of WFQ. The SP group has higher scheduling priority than the WFQ groups.

You must use the qos wfq command to enable WFQ before you configure this command.

Examples

# Enable WFQ on FortyGigE 1/0/1, and assign queue 0 to the SP group.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wfq weight

[Sysname-FortyGigE1/0/1] qos wfq 0 group sp

Related commands

display qos queue wfq interface

qos bandwidth queue

qos wfq

Queue scheduling profile commands

bandwidth queue

Use bandwidth queue to set the minimum guaranteed bandwidth for a queue.

Use undo bandwidth queue to restore the default.

Syntax

bandwidth queue queue-id min bandwidth-value

undo bandwidth queue queue-id

Default

The minimum guaranteed bandwidth for a queue is 64 kbps.

Views

Queue scheduling profile view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID. The value range for this argument is 0 to 7 or keywords in Table 25.

min bandwidth-value: Specifies the minimum guaranteed bandwidth in kbps. The value range for the bandwidth-value argument is 8 to 100000000.

Usage guidelines

You must configure a queue as a WFQ queue before you set the minimum guaranteed bandwidth for the queue.

The minimum guaranteed bandwidth is the amount of bandwidth guaranteed for a queue when the interface is congested.

Examples

# Configure queue 0 as a WFQ queue, and set the minimum guaranteed bandwidth to 100 kbps for queue 0.

<Sysname> system-view

[Sysname] qos qmprofile myprofile

[Sysname-qmprofile-myprofile] queue 0 wfq group 1 weight 1

[Sysname-qmprofile-myprofile] bandwidth queue 0 min 100

display qos qmprofile configuration

Use display qos qmprofile configuration to display the queue scheduling profile configuration.

Syntax

In standalone mode:

display qos qmprofile configuration [ profile-name ] [ slot slot-number ]

In IRF mode:

display qos qmprofile configuration [ profile-name ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

profile-name: Specifies a queue scheduling profile by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a queue scheduling profile, this command displays the configuration of all queue scheduling profiles.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays the queue scheduling profile configuration for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays the queue scheduling profile configuration for the global active MPU. (In IRF mode.)

Examples

# Display the configuration of queue scheduling profile myprofile.

<Sysname> display qos qmprofile configuration myprofile

Queue management profile: myprofile (ID 1)

Queue ID  Type  Group   Schedule   Schedule  Min         Max

                        unit       value     bandwidth   bandwidth

---------------------------------------------------------------------

be        WFQ   1       weight     1         100         N/A

af1       WFQ    N/A     N/A        N/A       64          N/A

af2       WFQ    N/A     N/A        N/A       64          N/A

af3       WFQ    N/A     N/A        N/A       64          N/A

af4       WFQ    N/A     N/A        N/A       64          N/A

ef        WFQ    N/A     N/A        N/A       64          N/A

cs6       WFQ    N/A     N/A        N/A       64          N/A

cs7       WFQ    N/A     N/A        N/A       64          N/A

Table 27 Command output

Field

Description

Queue management profile

Queue scheduling profile name.

Type

Queue scheduling type:

·     SP.

·     WRR.

·     WFQ.

Group

Priority group to which the queue belongs.

The value can only be 1. N/A indicates this field is ignored.

Schedule unit

Scheduling unit: weight or byte-count.

N/A indicates that this field is ignored.

Schedule value

This field indicates:

·     Number of packets for the weight scheduling unit.

·     Number of bytes for the byte-count scheduling unit.

N/A indicates that this field is ignored.

Min bandwidth

Minimum guaranteed bandwidth for the queue. N/A indicates that this field is ignored.

Max bandwidth

This field is not supported in the current software version. Maximum allowed bandwidth for the queue. N/A indicates that this field is ignored.

 

display qos qmprofile interface

Use display qos qmprofile interface to display the queue scheduling profile applied to an interface.

Syntax

display qos qmprofile interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the queue scheduling profiles applied to all interfaces.

Examples

# Display the queue scheduling profile applied to FortyGigE 1/0/1.

<Sysname> display qos qmprofile interface fortygige 1/0/1

Interface: FortyGigE1/0/1

Direction: Outbound

 Queue management profile: myprofile

Table 28 Command output

Field

Description

Direction

Direction in which the queue scheduling profile is applied.

Queue management profile

Name of the queue scheduling profile applied to the interface.

 

qos apply qmprofile

Use qos apply qmprofile to apply a queue scheduling profile to the outbound direction of an interface.

Use undo qos apply qmprofile to restore the default.

Syntax

qos apply qmprofile profile-name

undo qos apply qmprofile

Default

No queue scheduling profile is applied to an interface.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

profile-name: Specifies a queue scheduling profile by its name, a case-sensitive string of 1 to 31 characters.

Usage guidelines

You can apply only one queue scheduling profile to an interface.

Examples

# Apply queue scheduling profile myprofile to the outbound direction of FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos apply qmprofile myprofile

Related commands

display qos qmprofile interface

qos qmprofile

Use qos qmprofile to create a queue scheduling profile and enter its view, or enter the view of an existing queue scheduling profile.

Use undo qos qmprofile to delete a queue scheduling profile.

Syntax

qos qmprofile profile-name

undo qos qmprofile profile-name

Default

No user-created queue scheduling profiles exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

profile-name: Specifies a name for the queue scheduling profile, a case-sensitive string of 1 to 31 characters.

Usage guidelines

To delete a queue scheduling profile already applied to an object, first remove it from the object.

Examples

# Create a queue scheduling profile named myprofile and enter queue scheduling profile view.

<Sysname> system-view

[Sysname] qos qmprofile myprofile

[Sysname-qmprofile-myprofile]

Related commands

display qos qmprofile interface

queue

queue

Use queue to configure queue scheduling parameters.

Use undo queue to delete queue scheduling parameter settings.

Syntax

queue queue-id { sp | wfq group group-id { weight | byte-count } schedule-value | wrr group group-id { weight | byte-count } schedule-value }

undo queue queue-id

Default

All queues in a queue scheduling profile are SP queues.

Views

Queue scheduling profile view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID. The value range for this argument is 0 to 7 or keywords in Table 25.

sp: Enables SP for the queue.

wfq: Enables WFQ for the queue.

wrr: Enables WRR for the queue.

group group-id: Specifies a WFQ or WRR group by its ID. The group ID can only be 1.

byte-count: Allocates bandwidth to queues in bytes.

weight: Allocates bandwidth to queues in packets.

schedule-value: Specifies the scheduling weight. For WRR, the value range is 1 to 15. For WFQ, the value range is 1 to 15 if you have specified the byte-count keyword and 1 to 127 if you have specified the weight keyword.

Examples

# Create a queue scheduling profile named myprofile, and configure queue 0 to use SP.

<Sysname> system-view

[Sysname] qos qmprofile myprofile

[Sysname-qmprofile-myprofile] queue 0 sp

# Create a queue scheduling profile named myprofile. Configure queue 1 to meet the following requirements:

·     The WRR queuing is used.

·     The WRR group is group 1.

·     The scheduling weight is 10.

<Sysname> system-view

[Sysname] qos qmprofile myprofile

[Sysname-qmprofile-myprofile] queue 1 wrr group 1 weight 10

Related commands

display qos qmprofile interface

qos qmprofile


Congestion avoidance commands

WRED commands

display qos wred interface

Use display qos wred interface to display the WRED information for interfaces.

Syntax

display qos wred interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the WRED information for all interfaces.

Examples

# Display the WRED information for all interfaces.

<Sysname> display qos wred interface

Interface: FortyGigE1/0/3

 Current WRED configuration:

 Applied WRED table name: q1

Table 29 Command output

Field

Description

Interface

Interface type and interface number.

display qos wred table

Use display qos wred table to display the WRED table configuration.

Syntax

In standalone mode:

display qos wred table [ name table-name ] [ slot slot-number ]

In IRF mode:

display qos wred table [ name table-name ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

name table-name: Specifies a WRED table by its name, a case-sensitive string of 1 to 32 characters. If you do not specify a WRED table, this command displays the configuration of all WRED tables.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays the WRED table configuration for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays the WRED table configuration for the global active MPU. (In IRF mode.)

Examples

# Display the configuration of WRED table 1.

<Sysname> display qos wred table name 1

Table name: 1

Table type: Queue based WRED

QID   gmin  gmax  gprob  ymin  ymax  yprob  rmin  rmax  rprob  exponent  ECN

----------------------------------------------------------------------------

0     100   1000  10     100   1000  10     100   1000  10     9         N

1     100   1000  10     100   1000  10     100   1000  10     9         N

2     100   1000  10     100   1000  10     100   1000  10     9         N

3     100   1000  10     100   1000  10     100   1000  10     9         N

4     100   1000  10     100   1000  10     100   1000  10     9         N

5     100   1000  10     100   1000  10     100   1000  10     9         N

6     100   1000  10     100   1000  10     100   1000  10     9         N

7     100   1000  10     100   1000  10     100   1000  10     9         N

Table 30 Command output

Field

Description

Table name

Name of a WRED table.

Table type

Type of a WRED table.

QID

Queue ID.

gmin

Lower limit for green packets.

gmax

Upper limit for green packets.

gprob

Drop probability for green packets.

ymin

Lower limit for yellow packets.

ymax

Upper limit for yellow packets.

yprob

Drop probability for yellow packets.

rmin

Lower limit for red packets.

rmax

Upper limit for red packets.

rprob

Drop probability for red packets.

exponent

Exponent for average queue length calculation.

ECN

Indicates whether ECN is enabled for the queue:

·     Y—Enabled.

·     N—Disabled.

 

qos wred apply

Use qos wred apply to apply a WRED table to an interface.

Use undo qos wred apply to restore the default.

Syntax

qos wred apply [ table-name ]

undo qos wred apply

Default

No WRED table is applied to an interface, and the tail drop mode is used on an interface.

Views

Layer 2/Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

table-name: Specifies a WRED table by its name, a case-sensitive string of 1 to 32 characters. If you do not specify a WRED table, this command applies the default WRED table to the interface.

Examples

# Apply WRED table table1 to FortyGigE 1/0/1.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] qos wred apply table1

Related commands

display qos wred interface

display qos wred table

qos wred queue table

qos wred queue table

Use qos wred queue table to create a WRED table and enter its view, or enter the view of an existing WRED table.

Use undo qos wred queue table to delete a WRED table.

Syntax

qos wred queue table table-name

undo qos wred queue table table-name

Default

No WRED tables exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

table table-name: Specifies a name for the WRED table, a case-sensitive string of 1 to 32 characters.

Usage guidelines

You cannot delete a WRED table in use. To delete it, first remove it from the specified interface.

You can use the display qos wred table command to display the default WRED table, which cannot be modified or deleted.

Examples

# Create a queue-based WRED table named queue-table1.

<Sysname> system-view

[Sysname] qos wred queue table queue-table1

[Sysname-wred-table-queue-table1]

Related commands

display qos wred table

queue

Use queue to configure the drop-related parameters for a queue in the queue-based WRED table.

Use undo queue to restore the default.

Syntax

queue queue-id [ drop-level drop-level ] low-limit low-limit high-limit high-limit [ discard-probability discard-prob ]

undo queue { queue-id [ drop-level drop-level ] | all }

Default

The lower limit is 250, the upper limit is 1000, and the drop probability is 10%.

Views

WRED table view

Predefined user roles

network-admin

mdc-admin

Parameters

all: Specifies all queues.

queue-id: Specifies a queue by its ID. The value range for this argument is 0 to 7.

drop-level drop-level: Specifies a drop level. This argument is a consideration for dropping packets. The value 0 corresponds to green packets, the value 1 corresponds to yellow packets, and the value 2 corresponds to red packets. If you do not specify a drop level, the subsequent configuration takes effect on the packets in the queue regardless of the drop level.

low-limit low-limit: Specifies the lower limit for the average queue length. The value range for low-limit is 0 to 16383 KB.

high-limit high-limit: Specifies the upper limit for the average queue length. The upper limit must be greater than the lower limit. The value range for high-limit is 0 to 16383 KB.

discard-probability discard-prob: Specifies the denominator for drop probability calculation. The greater the denominator, the greater the calculated drop probability. The value range for discard-prob is 0 to 100.

Usage guidelines

When the average queue size is smaller than the lower threshold, no packet is dropped. When the average queue size is between the lower threshold and the upper threshold, the packets are dropped at random. The longer the queue is, the higher the drop probability is. When the average queue size exceeds the upper threshold, subsequent packets are dropped.

Examples

# In queue-based WRED table queue-table1, configure the following drop-related parameters for packets in queue 1:

·     The drop level is 1.

·     The lower limit for the average queue length is 10.

·     The upper limit for the average queue length is 20.

·     The drop probability is 30%.

<Sysname> system-view

[Sysname] qos wred queue table queue-table1

[Sysname-wred-table-queue-table1] queue 1 drop-level 1 low-limit 10 high-limit 20 discard-probability 30

Related commands

display qos wred table

qos wred queue table

queue ecn

Use queue ecn to enable ECN for a queue.

Use undo queue ecn to restore the default.

Syntax

queue queue-id ecn

undo queue queue-id ecn

Default

ECN is disabled for a queue.

Views

WRED table view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID in the range of 0 to 7.

Usage guidelines

When both the receiver and sender support ECN, the device can notify the peer end of the congestion status by identifying and setting the ECN flag. ECN avoids deteriorating congestion.

Examples

# In WRED table queue-table1, enable ECN for queue 1.

<Sysname> system-view

[Sysname] qos wred queue table queue-table1

[Sysname-wred-table-queue-table1] queue 1 ecn

Related commands

display qos wred table

qos wred queue table

queue weighting-constant

Use queue weighting-constant to specify an exponent for average queue length calculation for a queue.

Use undo queue weighting-constant to restore the default.

Syntax

queue queue-id weighting-constant exponent

undo queue queue-id weighting-constant

Default

The exponent for average queue length calculation is 9.

Views

WRED table view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID. The value range for this argument is 0 to 7.

weighting-constant exponent: Specifies the WRED exponent for average queue length calculation. The value range for exponent is 0 to 15.

Usage guidelines

The bigger the exponent is, the less sensitive the average queue size is to real-time queue size changes. The average queue size is calculated using the formula:

Average queue size = previous average queue size × (1-2-n) + current queue size × 2-n,

where n can be configured with the qos wred weighting-constant command.

Examples

# In WRED table queue-table1, set the exponent for average queue length calculation to 12 for queue 1.

<Sysname> system-view

[Sysname] qos wred queue table queue-table1

[Sysname-wred-table-queue-table1] queue 1 weighting-constant 12

Related commands

display qos wred table

qos wred queue table


Aggregate CAR commands

car name

Use car name to use an aggregate CAR action in a traffic behavior.

Use undo car to restore the default.

Syntax

car name car-name

undo car

Default

No aggregate CAR action is configured in a traffic behavior.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

car-name: Specifies the name of an aggregate CAR action. This argument must start with a letter, and is a case-sensitive string of 1 to 31 characters.

Examples

# Use aggregate CAR action aggcar-1 in traffic behavior be1.

<Sysname> system-view

[Sysname] traffic behavior be1

[Sysname-behavior-be1] car name aggcar-1

Related commands

display qos car name

display traffic behavior user-defined

display qos car name

Use display qos car name to display information about aggregate CAR actions.

Syntax

display qos car name [ car-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

car-name: Specifies an aggregate CAR action by its name. This argument must start with a letter, and is a case-sensitive string of 1 to 31 characters. If you do not specify an aggregate CAR action, this command displays information about all aggregate CAR actions.

Examples

# (In standalone mode.) Display information about all aggregate CAR actions.

<Sysname> display qos car name

 Name: a

  Mode: aggregative

   CIR 32 (kbps) CBS: 2048 (Bytes) PIR: 888 (kbps) EBS: 0 (Bytes)

Table 31 Command output

Field

Description

Name

Name of the aggregate CAR action.

Mode

Type of the CAR action, which can be aggregative.

CIR  CBS  PIR  EBS

Parameters for the CAR action.

 

qos car

Use qos car aggregative to configure an aggregate CAR action.

Use undo qos car to delete an aggregate CAR action.

Syntax

qos car car-name aggregative cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ]

qos car car-name aggregative cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebs excess-burst-size ]

undo qos car car-name

Default

No aggregate CAR action is configured.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

car-name: Specifies the name of the aggregate CAR action. This argument must start with a letter, and is a case-sensitive string of 1 to 31 characters.

cir committed-information-rate: Specifies the CIR in kbps, which is an average traffic rate. The value range for committed-information-rate is 8 to 160000000, in increments of 8.

cbs committed-burst-size: Specifies the CBS in bytes. The value range for committed-burst-size is 512 to 256000000, in increments of 512. The default value for this argument is the product of 62.5 and the CIR and must be an integral multiple of 512. When the product is not an integral multiple of 512, it is rounded up to the nearest integral multiple of 512 that is greater than the product. A default value greater than 256000000 is converted to 256000000.

ebs excess-burst-size: Specifies the EBS in bytes. The value range for excess-burst-size is 0 to 256000000, in increments of 512. If the PIR is configured, the default EBS is the product of 62.5 and the PIR and must be an integral multiple of 512. When the product is not an integral multiple of 512, it is rounded up to the nearest integral multiple of 512. A default value greater than 256000000 is converted to 256000000.

pir peak-information-rate: Specifies the PIR in kbps. The value range for peak-information-rate is 8 to 160000000, in increments of 8.

Usage guidelines

To use two rates for aggregate CAR, configure the qos car command with the pir peak-information-rate option. To use one rate for aggregate CAR, configure the qos car command without the pir peak-information-rate option.

An aggregate CAR action takes effect only after it is used in a QoS policy.

Examples

# Configure aggregate CAR action aggcar-1, where CIR is 25600 and CBS is 512000.

<Sysname> system-view

[Sysname] qos car aggcar-1 aggregative cir 25600 cbs 512000

Related commands

display qos car name

reset qos car name

Use reset qos car name to clear the statistics about aggregate CAR actions.

Syntax

reset qos car name [ car-name ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

car-name: Specifies an aggregate CAR action by its name. This argument must start with a letter, and is a case-sensitive string of 1 to 31 characters. If you do not specify an aggregate CAR action, this command clears statistics for all aggregate CAR actions.

Examples

# Clear the statistics about aggregate CAR action aggcar-1.

<Sysname> reset qos car name aggcar-1


Queue-based accounting commands

display qos queue-statistics interface outbound

Use display qos queue-statistics interface outbound to display outgoing traffic statistics collected for interfaces on a per-queue basis.

Syntax

display qos queue-statistics interface [ interface-type interface-number ] outbound

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the outgoing traffic statistics for all interfaces.

Examples

# Display queue-based outgoing traffic statistics of FortyGigE 1/0/1.

<Sysname> display qos queue-statistics interface fortygige 1/0/1 outbound

Interface: FortyGigE1/0/1

 Direction: outbound

 Forwarded: 0 packets, 0 bytes

 Dropped: 1 packets, 1 bytes

 Queue 0

  Forwarded: 0 packets, 0 bytes

  Dropped: 1 packets, 1 bytes

  Total queue length: 0 packets

  Current queue length: 0 packets, 0% use ratio

 Queue 1

  Forwarded: 0 packets, 0 bytes

  Dropped: 1 packets, 1 bytes

  Total queue length: 0 packets

  Current queue length: 0 packets, 0% use ratio

 Queue 2

  Forwarded: 0 packets, 0 bytes

  Dropped: 1 packets, 1 bytes

  Total queue length: 0 packets

  Current queue length: 0 packets, 0% use ratio

 Queue 3

  Forwarded: 0 packets, 0 bytes

  Dropped: 1 packets, 1 bytes

  Total queue length: 0 packets

  Current queue length: 0 packets, 0% use ratio

 Queue 4

  Forwarded: 0 packets, 0 bytes

  Dropped: 1 packets, 1 bytes

  Total queue length: 0 packets

  Current queue length: 0 packets, 0% use ratio

 Queue 5

  Forwarded: 0 packets, 0 bytes

  Dropped: 1 packets, 1 bytes

  Total queue length: 0 packets

  Current queue length: 0 packets, 0% use ratio

 Queue 6

  Forwarded: 0 packets, 0 bytes

  Dropped: 1 packets, 1 bytes

  Total queue length: 0 packets

  Current queue length: 0 packets, 0% use ratio

 Queue 7

  Forwarded: 0 packets, 0 bytes

  Dropped: 1 packets, 1 bytes

  Total queue length: 0 packets

  Current queue length: 0 packets, 0% use ratio

Table 32 Command output

Field

Description

Interface

Interface for which queue-based traffic statistics are displayed.

Direction

Direction of traffic for which statistics are collected.

Forwarded

(This field is not supported in the current software version.) Counts forwarded traffic both in packets and in bytes.

Dropped

Counts dropped traffic both in packets and in bytes.

Total queue length

Total number of packets allowed in the queue.

Current queue length

Current number of packets in the queue.

use ratio

Utilization ratio of the queue.

 

Related commands

reset counters interface (Layer 2—LAN Switching Command Reference)

display statistic mode

Use display statistic mode to display the packet counting mode.

Syntax

display statistic mode

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Examples

# Display the packet counting mode.

<Sysname> display statistic mode

The packet statistic mode is queue.

Related commands

statistic mode queue

reset qos queue-statistics interface outbound

Use reset qos queue-statistics interface outbound to clear outgoing queue-based traffic statistics for an interface.

Syntax

reset qos queue-statistics interface [ interface-type interface-number ] outbound

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command clears the outgoing queue-based traffic statistics for all interfaces.

Examples

# Clear the outgoing queue-based traffic statistics for all interfaces.

<Sysname> reset qos queue-statistics interface outbound

# Clear the outgoing queue-based traffic statistics for FortyGigE 1/0/1.

<Sysname> reset qos queue-statistics interface fortygige 1/0/1 outbound

statistic mode queue

Use statistic mode queue to set the packet counting mode to queue.

Use undo statistic mode queue to restore the default.

Syntax

statistic mode queue

undo statistic mode

Default

The packet counting mode is vsi.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

After you configure this command and the qos queue-statistics command, the device collects statistics on packets of each queue. You can use the display qos queue-statistics interface outbound command to display the statistics.

Examples

# Set the packet counting mode to queue.

<Sysname> system-view

[Sysname] statistic mode queue

Do you want to change the packet statistic mode? [Y/N]:y

Related commands

display statistic mode

statistic mode vsi (VXLAN Command Reference)

 


QPPB commands

bgp-policy

Use bgp-policy to enable QPPB, which transmits the apply ip-precedence and apply qos-local-id configuration through BGP routing policies.

Use undo bgp-policy to restore the default.

Syntax

bgp-policy { destination | source } { ip-prec-map | ip-qos-map } *

undo bgp-policy { destination | source } [ ip-prec-map | ip-qos-map ] *

Default

QPPB is disabled.

Views

Layer 3 Ethernet interface view

VLAN interface view

Predefined user roles

network-admin

mdc-admin

Parameters

destination: Searches the routing table by destination IP address.

source: Searches the routing table by source IP address. If the source keyword is specified, the source IP address is used as the destination address for inverse lookup.

ip-prec-map: Sets an IP precedence value for matching packets.

ip-qos-map: Sets a local QoS ID for matching packets.

Usage guidelines

This command is available only on HF cards. Before configuring this command, you must set the TCAM operating mode to routing by using the hardware-resource tcam command. For information about this command, see device management commands in Fundamentals Command Reference.

The bgp-policy command applies only to the incoming traffic of an interface.

In an MPLS L3VPN, the bgp-policy command is executed after the QoS features are performed in the inbound direction of the PE's public network interface. In any other case, the bgp-policy command is executed before the QoS features.

If you configure either of the following bgp-policy command pairs, both commands in the pair take effect:

·     bgp-policy destination ip-prec-map and bgp-policy source ip-qos-map.

·     bgp-policy source ip-prec-map and bgp-policy destination ip-qos-map.

If you configure either of the following bgp-policy command pairs, the command with the destination keyword in the pair takes effect:

·     bgp-policy destination ip-prec-map and bgp-policy source ip-prec-map.

·     bgp-policy destination ip-qos-map and bgp-policy source ip-qos-map.

Examples

# Configure FortyGigE 1/0/1 to get the IP precedence and local QoS ID by looking up routes based on destination IP address.

<Sysname> system-view

[Sysname] interface fortygige 1/0/1

[Sysname-FortyGigE1/0/1] bgp-policy destination ip-prec-map ip-qos-map

Related commands

apply ip-precedence (Layer 3—IP Routing Command Reference)

apply qos-local-id (Layer 3—IP Routing Command Reference)

route-policy (Layer 3—IP Routing Command Reference)

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网