09-ACL and QoS Command Reference

HomeSupportSwitchesH3C S7500E Switch SeriesReference GuidesCommand ReferencesH3C S7500E Switch Series Command References-Release7178-6W10009-ACL and QoS Command Reference
02-QoS commands
Title Size Download
02-QoS commands 310.77 KB

Contents

QoS policy commands· 1

Traffic class commands· 1

display traffic classifier 1

if-match· 2

traffic classifier 7

Traffic behavior commands· 8

accounting· 8

car 8

display traffic behavior 10

filter 12

nest top-most 12

redirect 13

remark customer-vlan-id· 14

remark dot1p· 14

remark drop-precedence· 15

remark dscp· 16

remark ip-precedence· 17

remark local-precedence· 18

remark qos-local-id· 18

remark service-vlan-id· 19

traffic behavior 20

QoS policy commands· 20

classifier behavior 20

control-plane· 21

display qos policy· 22

display qos policy control-plane· 23

display qos policy control-plane pre-defined· 24

display qos policy global 27

display qos policy interface· 28

display qos vlan-policy· 29

qos apply policy· 30

qos apply policy global 32

qos policy· 32

qos vlan-policy· 33

reset qos policy control-plane· 34

reset qos policy global 34

reset qos vlan-policy· 35

Priority mapping commands· 36

Priority map commands· 36

display qos map-table· 36

import 37

qos map-table· 38

Port priority commands· 38

qos priority· 38

Priority trust mode commands· 39

display qos trust interface· 39

qos trust 40

GTS and rate limit commands· 41

GTS commands· 41

display qos gts interface· 41

qos gts· 41

Rate limit commands· 42

display qos lr 42

qos lr 43

Congestion management commands· 45

SP commands· 45

display qos queue sp interface· 45

qos sp· 46

WRR commands· 46

display qos queue wrr interface· 46

qos wrr 47

qos wrr { byte-count | weight } 48

qos wrr group sp· 49

WFQ commands· 50

display qos queue wfq interface· 50

qos bandwidth queue· 51

qos wfq· 52

qos wfq { byte-count | weight } 53

qos wfq group sp· 54

Queue scheduling profile commands· 55

bandwidth queue· 55

display qos qmprofile configuration· 56

display qos qmprofile interface· 57

qos apply qmprofile· 58

qos qmprofile· 58

queue· 59

Congestion avoidance commands· 61

display qos wred interface· 61

display qos wred table· 61

qos wred apply· 63

qos wred queue table· 63

queue· 64

queue ecn· 65

queue weighting-constant 66

Global CAR commands· 68

car name· 68

display qos car name· 69

qos car 70

reset qos car name· 72

Queue-based accounting commands· 73

display qos queue-statistics interface outbound· 73


QoS policy commands

Traffic class commands

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: Displays 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 on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify this option, the command displays traffic classes on 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 not 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 ] { acl-number | name acl-name }

Matches an ACL.

The value range for the acl-number argument is 2000 to 5999 for IPv4 ACLs and 2000 to 5999 for IPv6 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, the argument cannot be all.

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. For the ICMPv6 protocol, the switch supports matching only echo request packets and echo reply packets.

control-plane protocol-group protocol-group-name

Matches a control plane protocol group.

The protocol-group-name argument can be critical, exception, 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 route

Matches Layer 3 forwarded packets.

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.

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.

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

Matches 802.1p priority values in outer VLAN tags.

The dot1p-value&<1-8> argument is 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 the VLAN ID in the outer VLAN tag to match single-tagged packets.

source-mac mac-address

Matches a source MAC address.

This option takes effect only on Ethernet interfaces.

 

Table 3 Available system-defined control plane protocols

Protocol

Description

arp

ARP packets

arp-snooping

ARP snooping packets

bgp

BGP packets

bgp4+

IPv6 BGP packets

dhcp

DHCP packets

dhcp-snooping

DHCP snooping packets

dhcp6

DHCPv6 packets

dldp

DLDP packets

dot1x

802.1X 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

ospf-multicast

OSPF multicast packets

ospf-unicast

OSPF unicast packets

ospf3-multicast

OSPFv3 multicast packets

ospf3-unicast

OSPFv3 unicast packets

ssh

SSH packets

stp

STP packets

telnet

Telnet packets

vrrp

VRRP packets

vrrp6

IPv6 VRRP packets

 

Usage guidelines

Only the following match criteria are supported to match MPLS packets:

·     customer-dot1p.

·     customer-vlan-id.

·     destination-mac.

·     service-dot1p.

·     source-mac.

In a traffic class with the logical OR operator, you can configure multiple if-match commands for any of the available match criteria. You can also configure multiple values in one if-match command for any of the following available match criteria:

·     802.1p priority.

·     Control plane protocol.

·     DSCP.

·     IP precedence.

·     VLAN ID.

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

In a traffic class with the logical AND operator, if you configure multiple values for a match criterion, the traffic behavior associated with the traffic class cannot be applied correctly.

When you configure ACL-based match criteria for a traffic class, follow these restrictions and guidelines:

·     If the ACL used as a match criterion does not exist, the traffic class cannot be applied to hardware.

·     You can add two if-match statements that use the same ACL as the match criterion. In one statement, specify the ACL by its name. In the other statement, specify the ACL by its number.

For single-tagged packets, you can use the service-vlan-id criterion to match them.

For the control plane protocol match criterion, you can use the display qos policy control-plane pre-defined command to display predefined control plane protocols.

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

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 the 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 the 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

[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

[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

[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

[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 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

traffic classifier

Use traffic classifier to create a traffic class and enter traffic class view.

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 class exists.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

classifier-name: Specifies a traffic class name, 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 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 delete the action.

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 switch 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 a traffic behavior.

Use undo car to delete the action.

Syntax

car cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ green action | red action | yellow action ] * [ hierarchy-car hierarchy-car-name [ mode { and | or } ] ]

car cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebs excess-burst-size ] [ green action | red action | yellow action ] * [ hierarchy-car hierarchy-car-name [ mode { and | or } ] ]

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 kbps, which is an average traffic rate. The value range for committed-information-rate is 8 to 160000000. The value must be an integral multiple of 8.

cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes. The value range for the committed-burst-size argument is 512 to 256000000. The value must be an integral multiple 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. 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 the excess-burst-size argument is 0 to 256000000. The value must be an integral multiple of 512.

pir peak-information-rate: Specifies the peak information rate (PIR) in kbps. The value range for the peak-information-rate argument is 8 to 160000000. The value must be an integral multiple of 8.

green action: Specifies the action to take on packets that conform to the CIR. The default setting is pass.

red action: Specifies the action to take on the packet that conforms to neither the CIR nor PIR. The default setting is discard.

yellow action: Specifies the action to take on packets that conform to the PIR but not to the CIR. The default setting is pass.

action: Sets the action to take on the packet:

·     discard: Drops the packet.

·     pass: Permits the packet to pass through.

·     remark-dot1p-pass new-cos: Sets the 802.1p priority value of the 802.1p packet to new-cos and permits the packet to pass through. The new-cos argument is in the range of 0 to 7.

·     remark-dscp-pass new-dscp: Sets the DSCP value of the packet to new-dscp and permits the packet to pass through. The new-dscp argument is in the range of 0 to 63.

·     remark-lp-pass new-local-precedence: Sets the local precedence value of the packet to new-local-precedence and permits the packet to pass through. The new-local-precedence argument is in the range of 0 to 7.

hierarchy-car-name: Specifies the name of the used hierarchical CAR action.

mode: Specifies the collaborating mode of the hierarchical CAR action and the common CAR action:

·     and: Specifies the AND mode (the default mode). In this mode, the traffic rate of a flow is limited by both the common CAR applied to it and the total traffic rate defined with hierarchical CAR. For example, you can perform the following configurations:

¡     Use common CAR actions to limit the rate of Internet access flow 1 and that of flow 2 to 128 kbps respectively.

¡     Use a hierarchical CAR action to limit their total traffic rate to 192 kbps.

When flow 1 is not present, flow 2 can access the Internet at the maximum rate, 128 kbps. If both flows are present, each flow cannot exceed its own rate limit, and the total rate cannot exceed 192 kbps.

·     or: Specifies the OR mode. In this mode, a flow can perform one of the following tasks:

¡     Pass through at the rate equal to the common CAR applied to it.

¡     Pass through at a higher rate if the total traffic rate of all flows does not exceed the hierarchical CAR.

For example, you can perform the following configurations:

¡     Use generic CAR actions to limit the rate of video flow 1 and that of flow 2 to 128 kbps respectively.

¡     Use a hierarchical CAR action to limit their total traffic rate to 512 kbps.

As long as the rate of flow 1 does not exceed 128 kbps, flow 2 can pass at a rate up to 384 kbps.

Usage guidelines

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.

A CAR action can be applied in the inbound or outbound direction of an interface.

If you configure 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 as follows:

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

·     Transmit conforming packets, and mark excess packets with DSCP value 0 and transmit them.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] car cir 200 cbs 51200 ebs 0 green pass red remark-dscp-pass 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: Displays 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 on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify this option, the command displays traffic behaviors on 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 200 (kbps), CBS 51200 (Bytes), EBS 0 (Bytes)

        Green action  : pass

        Yellow action : pass

        Red action    : remark dscp default and pass

 

    Behavior: 2 (ID 101)

      Accounting enable: Packet

      Filter enable: Permit

      Marking:

        Remark dot1p 1

 

    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.

Green action

Action to take on green packets.

Yellow action

Action to take on yellow packets.

Red action

Action to take on red packets.

Filter enable

Traffic filtering action.

Remark dot1p

Action of setting the 802.1p value for packets.

none

No other traffic behavior is configured.

 

filter

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

Use undo filter to delete the action.

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.

Examples

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

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] filter deny

nest top-most

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

Use undo nest top-most to delete the action.

Syntax

nest top-most vlan vlan-id

undo nest top-most

Default

No 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 range of 1 to 4094.

Usage guidelines

A QoS policy that contains a VLAN tag adding action can be applied only to the inbound direction of an interface.

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

Examples

# Configure traffic behavior b1 to add VLAN tag 123.

<Sysname> system-view

[Sysname] traffic behavior b1

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

redirect

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

Use undo redirect to delete the action.

Syntax

redirect { cpu | failover-group group-name | interface interface-type interface-number [ track-oap ] }

undo redirect { cpu | failover-group group-name | interface interface-type interface-number }

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.

failover-group group-name: Redirects traffic to a failover group specified by its name, a case-sensitive string of 1 to 63 characters. This option is not supported in the current software version.

interface interface-type interface-number: Redirects traffic to a Layer 2 Ethernet interface specified by its type and number.

track-oap: Redirects traffic only when OAP clients are present.

Usage guidelines

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

After you configure a traffic redirecting action in a traffic behavior, only a traffic accounting action can be configured in the traffic behavior.

If you specify the track-oap keyword, the switch detects the presence of OAP clients and redirects traffic to the interface only when OAP clients are present.

The switch supports redirecting traffic to only a Layer 2 Ethernet interface for interface QoS policies.

Examples

# Configure redirecting traffic to the CPU in the traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] redirect cpu

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

<Sysname> system-view

[Sysname] traffic behavior database

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

Related commands

·     classifier behavior

·     qos policy

·     traffic behavior

remark customer-vlan-id

Use remark customer-vlan-id to configure a CVLAN marking action in a traffic behavior.

Use undo remark customer-vlan-id to delete the action.

Syntax

remark customer-vlan-id vlan-id

undo remark customer-vlan-id

Default

No CVLAN marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

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

Examples

# Configure traffic behavior b1 to mark matching packets with CVLAN 111.

<Sysname> system-view

[Sysname] traffic behavior b1

[Sysname-behavior-b1] remark customer-vlan-id 111

remark dot1p

Use remark dot1p to configure an 802.1p priority marking action or an inner-to-outer tag priority copying action in a traffic behavior.

Use undo remark dot1p to delete the action.

Syntax

remark [ green | red | yellow ] dot1p dot1p-value

undo remark [ green | red | yellow ] dot1p

remark dot1p customer-dot1p-trust

undo remark dot1p

Default

No 802.1p priority marking action or inner-to-outer tag priority copying action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

green: Specifies green packets.

red: Specifies red packets.

yellow: Specifies yellow packets.

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

customer-dot1p-trust: Copies the 802.1p priority value in the inner VLAN tag to the outer VLAN tag after the QoS policy is applied to an interface.

Usage guidelines

Using both the remark dot1p dot1p-value and remark dot1p customer-dot1p-trust commands will cause them to override each other. The most recent configuration takes effect.

The remark dot1p customer-dot1p-trust command does not take effect on single-tagged packets.

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

# Configure an inner-to-outer tag priority copying action in traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark dot1p customer-dot1p-trust

remark drop-precedence

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

Use undo remark drop-precedence to delete the action.

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

The command applies only to incoming traffic.

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 delete the action.

Syntax

remark [ green | red | yellow ] dscp dscp-value

undo [ green | red | yellow ] remark dscp

Default

No DSCP marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

green: Specifies green packets.

red: Specifies red packets.

yellow: Specifies yellow packets.

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)

default

000000

0

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

ef

101110

46

 

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 ip-precedence

Use remark ip-precedence to configure an IP precedence marking action in a traffic behavior.

Use undo remark ip-precedence to delete the action.

Syntax

remark ip-precedence ip-precedence-value

undo remark ip-precedence

Default

No IP precedence marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

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

Examples

# Set the IP precedence to 6 for packets.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark ip-precedence 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 delete the action.

Syntax

remark [ green | red | yellow ] local-precedence local-precedence-value

undo remark [ green | red | yellow ] local-precedence

Default

No local precedence marking action is configured.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

green: Specifies green packets.

red: Specifies red packets.

yellow: Specifies yellow packets.

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

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 delete the action.

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. The value range for this argument is 1 to 4095.

Usage guidelines

Marking a local QoS ID for traffic of multiple classes combines these traffic classes into one new class indicated by the local QoS ID. You can configure a traffic behavior for this new class to implement two levels of actions on these traffic classes.

A local QoS ID marking action can be applied only to incoming traffic.

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-vlan-id

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

Use undo remark service-vlan-id to delete the action.

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 traffic behavior view.

Use undo traffic behavior to delete a traffic behavior.

Syntax

traffic behavior behavior-name

undo traffic behavior behavior-name

Default

No traffic behavior exists.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

behavior-name: Specifies the name of 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 [ insert-before before-classifier-name | mode dcbx ] *

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.

insert-before before-classifier-name: Inserts a new class before an existing class. The before-classifier-name argument specifies an existing 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 class is placed at the end of the QoS policy.

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

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.

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

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 or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. (In IRF mode.)

Usage guidelines

Do not specify an MPU (except LSQM1SRP8X2QE0)  by using the slot number. QoS policies cannot be applied to the control planes of MPUs (except LSQM1SRP8X2QE0) .

Examples

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

<Sysname> system-view

[Sysname] control-plane slot 3

[Sysname-cp-slot3]

# (In IRF mode.) Enter the control plane view of card 3 on IRF member device 1.

<Sysname> system-view

[Sysname] control-plane chassis 1 slot 3

[Sysname-cp-chassis1-slot3]

display qos policy

Use display qos policy to display the configuration of QoS policies.

Syntax

In standalone mode:

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

In IRF mode:

display qos policy user-defined [ 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.

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 the configuration of 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 on the active MPU. (In standalone mode.)

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

Examples

# Display the configuration of all user-defined 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 7000 (Bytes), EBS 512 (Bytes)

        Green action  : pass

        Yellow action : pass

        Red action    : discard

   Classifier: 2 (ID 101)

     Behavior: 2

      Accounting enable: Packet

      Filter enable: Permit

      Marking:

        Remark mpls-exp 4

   Classifier: 3 (ID 102)

     Behavior: 3

      -none-

For the output description, see Table 1 and Table 4.

display qos policy control-plane

Use display qos policy control-plane to display the QoS policy 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 or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. (In IRF mode.)

Examples

# Display the QoS policy applied to the control plane of card 3 on IRF member device 1.

<Sysname> display qos policy control-plane chassis 1 slot 3

Control plane chassis 1 slot 3

  Direction: Inbound

  Policy: p1

   Classifier: c1

     Operator: AND

     Rule(s) :

      If-match dscp cs3

     Behavior: b1

      Committed Access Rate:

        CIR 1000 (kbps), CBS 62976 (Bytes), EBS 0 (Bytes)

        Green action  : pass

        Yellow action : pass

        Red action    : discard

        Green packets : 0 (Packets)

        Red packets   : 0 (Packets)

Table 6 Command output

Field

Description

Direction

Inbound direction on the control plane.

Green packets

Statistics about green packets.

Red packets

Statistics about red packets.

 

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 QoS policies applied to control planes of cards.

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 QoS policy applied to the control plane of each in-position card. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify this option, the command displays the predefined QoS policy applied to the control plane of each in-position card on each IRF member device. (In IRF mode.)

Examples

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

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

Pre-defined policy information slot 3

  Protocol          Priority   Bandwidth (kbps)   Group

  IS-IS             29         512                critical

  VRRP              36         512                important

  OSPF Multicast    30         256                critical

  OSPF Unicast      30         256                critical

  PIM Multicast     24         128                critical

  PIM Unicast       24         128                critical

  IGMP              18         512                important

  PIMv6 Multicast   24         64                 critical

  PIMv6 Unicast     24         64                 critical

  OSPFv3 Unicast    30         256                critical

  OSPFv3 Multicast  30         256                critical

  VRRPv6            36         512                important

  ARP               12         768                normal

  DHCP Snooping     18         256                redirect

  DHCP              18         256                normal

  802.1x            12         128                important

  STP               36         256                critical

  LACP              36         64                 critical

  MVRP              18         256                critical

  BGP               24         256                critical

  ICMP              9          512                monitor

  IPOPTION          18         384                normal

  BGPv6             24         256                critical

  IPOPTIONv6        18         64                 normal

  LLDP              24         64                 important

  DLDP              24         64                 critical

  TELNET            8          512                management

  SSH               8          512                management

  HTTP              12         64                 management

  HTTPS             12         64                 management

  TACACS            12         64                 management

  RADIUS            12         64                 management

  ARP Snooping      18         256                redirect

  ICMPv6            8          512                monitor

  DHCPv6            18         256                normal

  BFD               31         2048               critical

# (In IRF mode.) Display the predefined QoS policy applied to the control plane of slot 3 of IRF member device 1.

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

Pre-defined control plane policy chassis 1 slot 3

  Protocol          Priority   Bandwidth (kbps)   Group

  IS-IS             29         512                critical

  VRRP              36         512                important

  OSPF Multicast    30         256                critical

  OSPF Unicast      30         256                critical

  PIM Multicast     24         128                critical

  PIM Unicast       24         128                critical

  IGMP              18         512                important

  PIMv6 Multicast   24         64                 critical

  PIMv6 Unicast     24         64                 critical

  OSPFv3 Unicast    30         256                critical

  OSPFv3 Multicast  30         256                critical

  VRRPv6            36         512                important

  ARP               12         768                normal

  DHCP Snooping     18         256                redirect

  DHCP              18         256                normal

  802.1x            12         128                important

  STP               36         256                critical

  LACP              36         64                 critical

  MVRP              18         256                critical

  BGP               24         256                critical

  ICMP              9          512                monitor

  IPOPTION          18         384                normal

  BGPv6             24         256                critical

  IPOPTIONv6        18         64                 normal

  LLDP              24         64                 important

  DLDP              24         64                 critical

  TELNET            8          512                management

  SSH               8          512                management

  HTTP              12         64                 management

  HTTPS             12         64                 management

  TACACS            12         64                 management

  RADIUS            12         64                 management

  ARP Snooping      18         256                redirect

  ICMPv6            8          512                monitor

  DHCPv6            18         256                normal

  BFD               31         2048               critical

Table 7 Command output

Field

Description

Pre-defined control plane policy

Contents of the pre-defined control plane QoS policy.

Group

Protocol group.

 

display qos policy global

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

Syntax

In standalone mode:

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

In IRF mode:

display qos 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

inbound: Specifies the inbound direction.

outbound: Specifies the outbound direction.

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

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

Usage guidelines

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

Examples

# Display the QoS policy applied globally in the inbound direction.

<Sysname> display qos policy global inbound

  Direction: Inbound

  Policy: p1

   Classifier: c1

     Operator: AND

     Rule(s) :

      If-match dscp cs3

     Behavior: b1

      Committed Access Rate:

        CIR 1000 (kbps), CBS 62976 (Bytes), EBS 0 (Bytes)

        Green action  : pass

        Yellow action : pass

        Red action    : discard

        Green packets : 0 (Packets)

        Red packets   : 0 (Packets)

Table 8 Command output

Field

Description

Direction

Direction (inbound or outbound ) in which the QoS policy is applied.

Green packets

Statistics about green packets.

Red packets

Statistics about red packets.

 

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

display qos policy interface

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

Syntax

display qos policy interface [ interface-type interface-number ] [ inbound | 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.

inbound: Specifies QoS policies applied in the inbound direction.

outbound: Specifies QoS policies applied in the outbound direction.

Usage guidelines

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

Examples

# Display the QoS policy applied to the incoming traffic of GigabitEthernet 1/3/0/1.

<Sysname> display qos policy interface gigabitethernet 1/3/0/1 inbound

  Direction: Inbound

  Policy: p1

   Classifier: c1

     Operator: AND

     Rule(s) :

      If-match dscp cs3

     Behavior: b1

      Committed Access Rate:

        CIR 1000 (kbps), CBS 62976 (Bytes), EBS 0 (Bytes)

        Green action  : pass

        Yellow action : pass

        Red action    : discard

        Green packets : 0 (Packets)

        Red packets   : 0 (Packets)

Table 9 Command output

Field

Description

Direction

Direction in which the QoS policy is applied to the interface.

Green packets

Traffic statistics for green packets.

Red packets

Traffic statistics for red packets.

 

For the description of other 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: Specifies QoS policies applied in the inbound direction.

outbound: Specifies QoS policies applied in the inbound direction.

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 on the active MPU. (In standalone mode.)

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

Usage guidelines

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

Examples

# Display QoS policies applied to VLAN 2.

<Sysname> display qos vlan-policy vlan 2

Vlan 2

  Direction: Inbound

  Policy: p1

   Classifier: c1

     Operator: AND

     Rule(s) :

      If-match dscp cs3

     Behavior: b1

      Committed Access Rate:

        CIR 1000 (kbps), CBS 62976 (Bytes), EBS 0 (Bytes)

        Green action  : pass

        Yellow action : pass

        Red action    : discard

        Green packets : 0 (Packets)

        Red packets   : 0 (Packets)

Table 10 Command output

Field

Description

Direction

Direction in which the QoS policy is applied for the VLAN.

Green packets

Statistics about green packets.

Red packets

Statistics about red packets.

 

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

qos apply policy

Use qos apply policy to apply a QoS policy to an interface or control plane.

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

Syntax

qos apply policy policy-name { inbound | outbound }

undo qos apply policy policy-name { inbound | outbound }

Default

No QoS policy is applied to an interface or control plane.

Views

Interface view, control plane 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.

inbound: Applies the QoS policy to incoming traffic.

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

Usage guidelines

Table 11 shows the support of the inbound and outbound keywords for different actions.

Table 11 Support of the inbound and outbound keywords for different actions

Action

inbound

outbound

Class-based accounting

Yes

Yes

Traffic policing

Yes

Yes

Traffic filtering

Yes

Yes

Traffic mirroring

Yes

Yes

Outer VLAN tag encapsulation

Yes

No

Traffic redirecting

Yes

No

CVLAN marking

Yes

Yes

SVLAN marking

Yes

Yes

802.1p priority marking

Yes

Yes

Drop precedence marking

Yes

No

DSCP marking

Yes

Yes

IP precedence marking

Yes

Yes

Local precedence marking

Yes

No

Local QoS ID marking

Yes

No

 

Examples

# Apply QoS policy USER1 to the outgoing traffic of GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos apply policy USER1 outbound

# Apply QoS policy aaa 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 aaa inbound

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 policy policy-name global { inbound | outbound }

undo qos apply policy policy-name global { inbound | outbound }

Default

No QoS policy is applied globally.

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.

inbound: Applies the QoS policy to incoming traffic.

outbound: Applies the QoS policy to outgoing traffic.

Usage guidelines

A QoS policy applied globally takes effect on all incoming or outgoing traffic on the switch.

Examples

# Globally apply the QoS policy user1 to incoming traffic.

<Sysname> system-view

[Sysname] qos apply policy user1 global inbound

qos policy

Use qos policy to create a QoS policy and enter QoS policy view.

Use undo qos policy to delete a QoS policy.

Syntax

qos policy policy-name

undo qos policy policy-name

Default

No QoS policy exists.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

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

Usage guidelines

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]

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 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.

inbound: Applies the QoS policy to incoming packets.

outbound: Applies the QoS policy to outgoing packets.

Examples

# Apply the 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 statistics for 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 or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. (In IRF mode.)

Examples

# (In standalone mode.) Clear statistics for the QoS policy applied to the control plane of card 3.

<Sysname> reset qos policy control-plane slot 3

# (In IRF mode.) Clear statistics for the QoS policy applied to the control plane of card 3 on IRF member device 1.

<Sysname> reset qos policy control-plane chassis 1 slot 3

reset qos policy global

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

Syntax

reset qos policy global [ inbound | outbound ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

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 a direction, this command clears statistics for the QoS policy applied in the inbound direction and the QoS policy applied in the outbound direction.

Examples

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

<Sysname> reset qos policy global inbound

reset qos vlan-policy

Use reset qos vlan-policy to clear 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 QoS policies applied in the inbound direction.

outbound: Specifies QoS policies applied in the outbound direction.

Usage guidelines

If you do not specify a direction, this command clears statistics for QoS policies applied in the inbound direction and QoS policies applied in the outbound direction.

Examples

# Clear statistics for 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-exp | dot1p-lp | dscp-dot1p| dscp-dp | dscp-dscp | exp-dot1p ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

The switch provides the following types of priority maps.

Table 12 Priority maps

Priority mapping

Description

dot1p-dp

802.1p-drop priority map.

dot1p-exp

802.1p-EXP 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.

exp-dot1p

EXP-802.1p 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 13 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.

 

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-drop priority map to map 802.1p priority values 4 and 5 to drop priority 1.

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

[Sysname-maptbl-dot1p-dp] 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-exp | dot1p-lp | dscp-dot1p| dscp-dp | dscp-dscp | exp-dot1p }

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

For the description of the keywords, see Table 12.

Usage guidelines

The dscp-dot1p priority map does not take effect on LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules.

EXP-related priority maps take effect only on MPLS-capable cards. For information about MPLS-capable cards, see MPLS Configuration Guide.

Examples

# Enter the 802.1p-drop priority map view.

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

[Sysname-maptbl-dot1p-dp]

Related commands

·     display qos map-table

·     import

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 priority-value

undo qos priority

Default

The port priority of an interface is 0.

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

priority-value: Specifies a port priority value in the range of 0 to 7.

Examples

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

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

Related commands

display qos trust interface

Priority trust mode commands

display qos trust interface

Use display qos trust interface to display the priority trust modes and port priorities of interfaces.

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 GigabitEthernet 1/0/1.

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

Interface: GigabitEthernet1/0/1

 Port priority trust information

  Port priority:4

  Port priority trust type: dot1p

Table 14 Command output

Field

Description

Interface

Interface type and interface number.

Port priority trust type

Priority trust mode on the interface: dot1p or dscp.

 

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

The priority trust mode of an interface is 802.1p priority.

Views

Layer 2 Ethernet interface view, 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

The dscp-dot1p priority map does not take effect on LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules. To use the priority carried in packets for priority mapping on an interface of such a card, you must configure the interface to trust the 802.1p priority.

Examples

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

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

Related commands

display qos trust interface

 


GTS and rate limit commands

GTS commands

display qos gts interface

Use display qos gts interface to display GTS configuration and statistics on 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 and statistics on all interfaces.

Examples

# Display the GTS configuration and statistics on all interfaces.

<Sysname> display qos gts interface

Interface: GigabitEthernet1/0/1

Rule: If-match queue 1

  CIR 1000 (kbps), CBS 62976 (Bytes)

 Rule: If-match queue 4

  CIR 400 (kbps), CBS 25088 (Bytes)

Table 15 Command output

Field

Description

Interface

Interface name, including the interface type and interface number.

Rule

Match criteria.

 

qos gts

Use qos gts to set GTS parameters for a queue on an interface.

Use undo qos gts to delete GTS settings 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 set on an interface.

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

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

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.

·     8 to 100000000 for 100-GE interfaces.

The values must be an integral multiple of 8.

cbs committed-burst-size: Specifies the CBS in bytes. The value range for the committed-burst-size argument is 512 to 16000000. The value must be an integral multiple 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. A default value greater than 16000000 is converted to 16000000.

Examples

# Configure the following GTS parameters for queue 1 on GigabitEthernet 1/0/1:

·     The CIR is 6400 kbps.

·     The CBS is 51200 bytes.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

Rate limit commands

display qos lr

Use display qos lr to display the rate limit configuration and statistics 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 and statistics for all interfaces.

Examples

# Display the rate limit configuration and statistics for all interfaces.

<Sysname> display qos lr interface

Interface: GigabitEthernet1/0/1

 Direction: Inbound

  CIR 10000 (kbps), CBS 625152 (Bytes)

 Direction: Outbound

  CIR 10000 (kbps), CBS 625152 (Bytes)

Table 16 Command output

Field

Description

Interface

Interface name, including the interface type and interface number.

Direction

Direction to which the rate limit configuration is applied: inbound or outbound.

 

qos lr

Use qos lr to limit the rate of packets on an interface.

Use undo qos lr to remove a rate limit.

Syntax

qos lr { inbound | outbound } cir committed-information-rate [ cbs committed-burst-size ]

undo qos lr { inbound | outbound }

Default

No rate limit is configured on an interface.

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

inbound: Limits the rate of incoming packets.

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.

·     8 to 100000000 for 100-GE interfaces.

The values must be an integral multiple of 8.

cbs committed-burst-size: Specifies the CBS in bytes. The value range for the committed-burst-size argument is 512 to 128000000. The value must be an integral multiple 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. A default value greater than 128000000 is converted to 128000000.

Examples

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

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos lr outbound cir 2000 cbs 51200

 


Congestion management commands

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 GigabitEthernet 1/0/1.

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

Interface: GigabitEthernet1/0/1

 Output queue: Strict Priority queuing

Queue ID        Group           Byte-count      Min-Bandwidth

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

 be              sp              N/A             N/A

 af1             sp              N/A             N/A

 af2             sp              N/A             N/A

 af3             sp              N/A             N/A

 af4             sp              N/A             N/A

 ef              sp              N/A             N/A

 cs6             sp              N/A             N/A

 cs7             sp              N/A             N/A

Table 17 Command output

Field

Description

Interface

Interface type and interface number.

Output queue

Type of the current output queue.

Byte-count

Number of bytes that are forwarded from a queue during a queue scheduling cycle. N/A is displayed for SP queues.

Min-Bandwidth

Minimum guaranteed bandwidth for a queue.

 

Related commands

qos sp

qos sp

Use qos sp to configure SP queuing on an interface.

Use undo qos sp to restore the default.

Syntax

qos sp

undo qos sp

Default

SP queuing is used on an interface.

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Examples

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

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/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 GigabitEthernet 1/0/1.

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

Interface: GigabitEthernet1/0/1

 Output queue: Weighted Round Robin queuing

 Queue ID        Group           Weight          Min-Bandwidth                 

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

 be              1               1               N/A                           

 af1             1               2               N/A                            

 af2             1               3               N/A                           

 af3             1               4               N/A                           

 af4             1               5               N/A                            

 ef              1               6               N/A                           

 cs6             1               7               N/A                           

 cs7             1               8               N/A

Table 18 Command output

Field

Description

Interface

Interface type and interface number.

Output queue

Type of the current output queue.

Group

Number of the WRR group to which a queue belongs. By default, all queues belong to WRR group 1. Only LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules support WRR group 2.

Weight

Number of packets that are forwarded from a queue during a queue scheduling cycle. N/A is displayed for SP queues.

Min-Bandwidth

Minimum guaranteed bandwidth for a queue.

 

Related commands

qos wrr

qos wrr

Use qos wrr to enable WRR queuing on an interface.

Use undo qos wrr to disable WRR queuing and restore the default queue scheduling algorithm for an interface.

Syntax

qos wrr { byte-count | weight }

undo qos wrr { byte-count | weight }

Default

SP queuing is used on an interface.

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

byte-count: Uses the byte as the scheduling unit.

weight: Uses the packet as the scheduling unit.

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 GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

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

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/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 WRR queuing parameters for a queue on an interface.

Use undo qos wrr to restore the default.

Syntax

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

undo qos wrr queue-id

Default

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

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID, which can be a number in the range of 0 to 7 or a keyword in Table 19.

group { 1 | 2 }: Specifies a WRR group. Only LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules support WRR group 2.

byte-count: Uses the byte as the scheduling unit.

weight: Uses the packet as the scheduling unit.

schedule-value: Specifies a scheduling value in the range of 1 to 15.

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.

The queue-id argument can be either a number or a keyword. Table 19 shows the number-keyword map.

Table 19 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

 

Examples

# Enable byte-count WRR queuing on GigabitEthernet 1/0/1, and assign queue 0, with the scheduling value 10, to WRR group 1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

[Sysname-GigabitEthernet1/0/1] qos wrr 0 group 1 byte-count 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 restore the default.

Syntax

qos wrr queue-id group sp

undo qos wrr queue-id

Default

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

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID, which can be a number in the range of 0 to 7 or a keyword in Table 19.

sp: Assigns a queue to the SP group, which uses the SP queue scheduling algorithm.

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. The queues in a WRR group are scheduled based on their scheduling values. The two WRR groups are scheduled in the ratio of 1:1.

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

For this command to take effect on a 10 GE or 40 GE port on an LSQM1SRP8X2QE0 MPU when you use SP+WRR queuing, make sure the queue IDs in the SP group are continuous.

Examples

# Enable packet-based WRR queuing on GigabitEthernet 1/0/1, and assign queue 0 to the SP group.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

[Sysname-GigabitEthernet1/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 on 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 GigabitEthernet 1/0/1.

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

Interface: GigabitEthernet1/0/1

 Output queue: Hardware Weighted Fair Queuing

 Queue ID        Group           Weight          Min-Bandwidth

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

 be              1               1               64

 af1             1               1               64

 af2             1               1               64

 af3             1               1               64

 af4             1               1               64

 ef              1               1               64

 cs6             1               1               64

 cs7             1               1               64

Table 20 Command output

Field

Description

Interface

Interface type and interface number.

Output queue

Type of the current output queue.

Group

Number of the WFQ group to which a queue belongs. By default, all queues are in WFQ group 1. Only LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules support WFQ group 2.

Weight

Number of packets that are forwarded from a queue during a queue scheduling cycle.

Min-Bandwidth

Minimum guaranteed bandwidth for a queue.

 

Related commands

qos wfq

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 of each queue on a WFQ-enabled interface is 64 kbps.

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID, which can be a number in the range of 0 to 7 or a keyword in Table 19.

min bandwidth-value: Specifies the minimum guaranteed bandwidth in kbps for a queue. 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.

·     8 to 100000000 for 100-GE interfaces.

Usage guidelines

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

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

Examples

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

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

[Sysname-GigabitEthernet1/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 disable WFQ and restore the default queuing algorithm on an interface.

Syntax

qos wfq { byte-count | weight }

undo qos wfq { byte-count | weight }

Default

SP queuing is used on an interface.

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

byte-count: Uses the byte as the scheduling unit.

weight: Uses the packet as the scheduling unit.

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-based WFQ on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

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

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/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 configure WFQ queuing parameters for a queue on an interface.

Use undo qos wfq to restore the default.

Syntax

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

undo qos wfq queue-id

Default

All queues of a WFQ-enabled interface are in WFQ group 1 and have a scheduling value of 1.

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID, which can be a number in the range of 0 to 7 or a keyword in Table 19.

group { 1 | 2 }: Specifies a WFQ group. Only LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules support WFQ group 2.

byte-count: Uses the byte as the scheduling unit.

weight: Uses the packet as the scheduling unit.

schedule-value: Specifies a scheduling value in the range of 1 to 15.

Usage guidelines

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

Examples

# Enable byte-count WFQ on interface GigabitEthernet 1/0/1, and assign queue 0, with the scheduling value 10, to WFQ group 1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

[Sysname-GigabitEthernet1/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 restore the default.

Syntax

qos wfq queue-id group sp

undo qos wfq queue-id

Default

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

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID, which can be a number in the range of 0 to 7 or a keyword in Table 19.

sp: Assigns a queue to the SP group.

Usage guidelines

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

For this command to take effect on a 10 GE or 40 GE port on an LSQM1SRP8X2QE0 MPU when you use SP+WFQ queuing, make sure the queue IDs in the SP group are continuous.

On LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules, SP+WFQ queuing schedules traffic in the following order:

1.      Schedules the queues in the SP group based on their priorities until the SP queues are empty.

2.     Schedules the traffic conforming to the minimum guaranteed bandwidth of each queue in WFQ groups. The two WFQ groups are scheduled in the ratio of 1:1.

3.     Schedules the traffic in each queue of WFQ groups according to the configured scheduling values. The two WFQ groups are scheduled in the ratio of 1:1.

On interface modules other than LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules, SP+WFQ queuing schedules traffic in the following order:

1.     Schedules the traffic conforming to the minimum guaranteed bandwidth of each queue in the WFQ group.

2.     Schedules the queues in the SP group based on their priorities until the SP queues are empty.

3.     Schedules the traffic of queues in the WFQ group according to the configured scheduling values.

Examples

# Enable byte-count WFQ on interface GigabitEthernet 1/0/1, and assign queue 0 to the SP group.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

[Sysname-GigabitEthernet1/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 configure 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 WFQ 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, which can be a number in the range of 0 to 7 or a keyword in Table 19.

min bandwidth-value: Specifies the minimum guaranteed bandwidth in the range of 8 to 100000000 kbps.

Usage guidelines

To configure the minimum guaranteed bandwidth for a queue in a queue scheduling profile, you must first configure the queue as a WFQ queue.

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

Examples

# Configure queue 0 in the queue scheduling profile myprofile as a WFQ queue, and configure the minimum guaranteed bandwidth as 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

Related commands

·     display qos qmprofile interface

·     queue

·     qos qmprofile

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 configuration of queue scheduling profiles on the active MPU. (In standalone mode.)

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

Examples

# Display the configuration of the queue scheduling profile myprofile.

<Sysname> display qos qmprofile configuration myprofile

Queue management profile: myprofile (ID 1)

Queue ID    Type    Group    Schedule-unit    Schedule-value    Bandwidth

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

 be          SP      N/A      N/A              N/A                N/A

 af1         WFQ     1        weight           1                  128

 af2         SP      N/A      N/A              N/A                N/A

 af3         SP      N/A      N/A              N/A                N/A

 af4         SP      N/A      N/A              N/A                N/A

 ef          SP      N/A      N/A              N/A                N/A

 cs6         SP      N/A      N/A              N/A                N/A

 cs7         SP      N/A      N/A              N/A                N/A

Table 21 Command output

Field

Description

Queue management profile

Queue scheduling profile name.

Type

Queue scheduling type:

·     SP.

·     WRR.

·     WFQ.

Group

Number of the group to which the queue belongs.

N/A is displayed for SP queues.

Schedule-unit

Scheduling unit: weight or byte-count.

N/A is displayed for SP queues.

Schedule-value

Value for the scheduling unit.

N/A is displayed for SP queues.

Bandwidth

Minimum guaranteed bandwidth for the queue.

 

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 GigabitEthernet 1/0/1.

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

Interface: GigabitEthernet1/0/1

 Queue management profile: myprofile

Table 22 Command output

Field

Description

Interface

Interface name.

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 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 Ethernet interface view, 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 the queue scheduling profile myprofile to GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/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 profile exists.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

profile-name: Specifies the name of 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 interface, first remove it from the interface.

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 restore the default.

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 use SP queuing.

Views

Queue scheduling profile view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID, which can be a number in the range of 0 to 7 or a keyword in Table 19.

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, which can be 1 or 2. If you do not specify this option for WFQ, the default is WFQ group 1. Only LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules support group 2.

byte-count: Allocates bandwidth to queues in terms of bytes.

weight: Allocates bandwidth to queues in terms of packets.

schedule-value: Specifies the scheduling weight, in the range of 1 to 15.

Usage guidelines

For SP+WRR or SP+WFQ queuing to work correctly on a 10 GE or 40 GE port on an LSQM1SRP8X2QE0 MPU, make sure the queue IDs in the SP group are continuous.

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 and configure queue 1 to meet the following requirements:

·     The packet-based WRR queuing is used.

·     The WRR group is group 1.

·     The scheduling value 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

display qos wred interface

Use display qos wred interface to display the WRED configuration and statistics 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 configuration and statistics for all interfaces.

Examples

# Display the WRED configuration and statistics for GigabitEthernet 1/0/4.

<Sysname> display qos wred interface

Interface: GigabitEthernet1/0/4

 Current WRED configuration:

Applied WRED table name: wr1

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. 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 configuration of WRED tables on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify this option, the command displays the configuration of WRED tables on 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     300   600   10     100   1000  10     10        Y

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 23 Command output

Field

Description

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 on 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 tail drop is used on an interface.

Views

Layer 2 Ethernet interface view, 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.

Usage guidelines

If you do not specify a WRED table, this command applies the default WRED table to the interface.

Examples

# Apply the queue-based WRED table table1 to interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

Related commands

·     display qos wred interface

·     display qos wred table

·     qos wred table

qos wred queue table

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

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

Syntax

qos wred queue table table-name

undo qos wred queue table table-name

Default

No WRED table exists.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

table table-name: Specifies the name of the WRED table.

Usage guidelines

You cannot delete a WRED table applied to an interface. To delete it, first remove it from the interface.

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 a 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 | all }

Default

The low-limit argument is 100, the high-limit argument is 1000, and the discard-prob argument is 10.

Views

WRED table view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID, which can be a number in the range of 0 to 7 or a keyword in Table 19.

drop-level drop-level: Specifies a drop level. 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, in the range of 0 to 16383.

high-limit high-limit: Specifies the upper limit for the average queue length, in the range of 0 to 16383. The value for the high-limit argument must be greater than the value for the low-limit argument.

discard-probability discard-prob: Specifies the drop probability in percentage, in the range of 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 randomly according to the configured drop probability. The longer the queue, the higher the drop probability. When the average queue size exceeds the upper threshold, all 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 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 not enabled on any queue.

Views

WRED table view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-id: Specifies a queue by its ID, which can be a number in the range of 0 to 7 or a keyword in Table 19.

Usage guidelines

When both the receiver and sender support ECN, the switch 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 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, which can be a number in the range of 0 to 7 or a keyword in Table 19.

weighting-constant exponent: Specifies the WRED exponent for average queue length calculation, in the range of 1 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 table

 


Global CAR commands

LSQ1QGS4SC0 and LSQM2TGS16SF0 interface modules and 10 GE ports and 40 GE ports on an LSQM1SRP8X2QE0 MPU do not support hierarchical CAR commands.

car name

Use car name to use global CAR actions in a traffic behavior.

Use undo car to remove global CAR actions from a traffic behavior.

Syntax

car name car-name [ hierarchy-car hierarchy-car-name [ mode { and | or } ] ]

undo car

Default

No global CAR action is used in a traffic behavior.

Views

Traffic behavior view

Predefined user roles

network-admin

mdc-admin

Parameters

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

hierarchy-car hierarchy-car-name: Specifies a hierarchical CAR action by its name, a case-sensitive string of 1 to 31 characters. This argument must start with a letter.

mode: Specifies a collaborating mode between the hierarchical CAR action and the aggregate CAR action, which can be AND (the default) or OR. If you do not specify a collaborating mode, the AND mode applies.

·     and: Specifies the AND mode (the default mode). In this mode, the rate of a flow is limited by both aggregate CAR and the total traffic rate defined with hierarchical CAR.

·     or: Specifies the OR mode. In this mode, a flow can perform one of the following operations:

¡     Pass through at the rate equal to the aggregate CAR applied to it.

¡     Pass through at a higher rate if the total traffic rate of all flows does not exceed the hierarchical CAR.

Examples

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

<Sysname> system-view

[Sysname] traffic behavior be1

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

# Configure traffic behavior be1 to use aggregate CAR aggcar-1 and hierarchical CAR hcar, with the collaborating mode as or.

<Sysname> system-view

[Sysname] traffic behavior be1

[Sysname-behavior-be1] car name aggcar-1 hierarchy-car hcar mode or

Related commands

·     display qos car name

·     display traffic behavior user-defined

display qos car name

Use display qos car name to display the configuration and statistics for a global CAR action.

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 a global (aggregate or hierarchical) CAR action by its name, a case-sensitive string of 1 to 31 characters. This argument must start with a letter. If you do not specify a global CAR action, this command displays the configuration and statistics for all global CAR actions, including aggregate CAR actions and hierarchical CAR actions.

Examples

# (In standalone mode.) Display the configuration and statistics for all global CAR actions.

<Sysname> display qos car name

Name: car-1

  Mode: aggregative

   CIR 1000 (kbps), CBS 62976 (Bytes), EBS 0 (Bytes)

   Green action  : pass

   Yellow action : pass

   Red action    : discard

  Slot 3:

   Green packets : 0 (Packets)

   Red packets   : 0 (Packets)

 

 Name: car-2

  Mode: hierarchy

   CIR 4000 (kbps), CBS 250368 (Bytes), PIR 5120 (kbps), EBS 102400 (Bytes)

# (In IRF mode.) Display the configuration and statistics for all global CAR actions.

<Sysname> display qos car name

Name: car-1

  Mode: aggregative

   CIR 1000 (kbps), CBS 62976 (Bytes), EBS 0 (Bytes)

   Green action  : pass

   Yellow action : pass

   Red action    : discard

  Chassis 1 Slot 3:

   Green packets : 0 (Packets)

   Red packets   : 0 (Packets)

 

 Name: car-2

  Mode: hierarchy

   CIR 4000 (kbps), CBS 250368 (Bytes), PIR 5120 (kbps), EBS 102400 (Bytes)

Table 24 Command output

Field

Description

Name

Name of the global CAR action.

Mode

Type of the CAR action:

·     aggregative—Aggregate CAR.

·     hierarchy—Hierarchical CAR.

CIR  CBS  PIR  EBS

Parameters for the CAR action.

Green action

Action to take on green packets:

·     discard—Drops the packets.

·     pass—Permits the packets to pass through.

Yellow action

Action to take on yellow packets:

·     discard—Drops the packets.

·     pass—Permits the packets to pass through.

Red action

Action to take on red packets:

·     discard—Drops the packets.

·     pass—Permits the packets to pass through.

Green packet

Statistics about green packets.

Red packet

Statistics about red packets.

 

qos car

Use qos car aggregative to configure an aggregate CAR action.

Use qos car hierarchy to configure a hierarchical CAR action.

Use undo qos car to remove an aggregate or hierarchical CAR action.

Syntax

qos car car-name { aggregative | hierarchy } cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ green action | red action | yellow action ] *

qos car car-name { aggregative | hierarchy } cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebs excess-burst-size ] [ green action | red action | yellow action ] *

undo qos car car-name

Default

No aggregate or hierarchical CAR action is configured.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

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

aggregative: Specifies the global CAR action as an aggregate CAR action.

hierarchy: Specifies the global CAR action as a hierarchical CAR action.

cir committed-information-rate: Specifies the CIR in the range of 8 to 160000000 kbps. The value must be an integral multiple of 8.

cbs committed-burst-size: Specifies the CBS in bytes. The value range for the committed-burst-size argument is 512 to 256000000. The value must be an integral multiple 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. A default value greater than 256000000 is converted to 256000000.

ebs excess-burst-size: Specifies the EBS in the range of 0 to 256000000 bytes. The value must be an integral multiple of 512. The default value is 512.

pir peak-information-rate: Specifies the PIR in the range of 8 to 160000000 kbps. The value must be an integral multiple of 8

green action: Specifies the action to take on packets that conform to CIR. The default setting is pass.

red action: Specifies the action to take on the packet that conforms to neither CIR nor PIR. The default setting is discard.

yellow action: Specifies the action to take on packets that conform to PIR but not to CIR. The default setting is pass.

action: Specifies the action to take on packets:

·     discard: Drops the packet.

·     pass: Permits the packet to pass through.

·     remark-dot1p-pass new-cos: Sets the 802.1p priority value of the 802.1p packet to new-cos and permits the packet to pass through. The new-cos argument is in the range of 0 to 7.

·     remark-dscp-pass new-dscp: Remarks the packet with a new DSCP value and permits the packet to pass through. The new-dscp argument is in the range of 0 to 63. Alternatively, you can specify the new-dscp argument with af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7, default, or ef.

Usage guidelines

An aggregate CAR action takes effect only after it is applied to an interface or used in a QoS policy.

An aggregate CAR action is supported only in the inbound direction.

A hierarchical CAR action takes effect only after it is used in a QoS policy.

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

Examples

# Configure the aggregate CAR action aggcar-1 as follows:

·     The CIR is 25600 kbps.

·     The CBS is 512000 bytes.

·     Red packets are dropped.

<Sysname> system-view

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

# Configure the hierarchical CAR action h-car as follows:

·     The CIR is 25600 kbps.

·     The CBS is 512000 bytes.

<Sysname> system-view

[Sysname] qos car h-car hierarchy cir 25600 cbs 512000

Related commands

display qos car name

reset qos car name

Use reset qos car name to clear statistics for global CAR actions.

Syntax

reset qos car name [ car-name ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

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

Examples

# Clear statistics for the global 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 GigabitEthernet 1/0/1.

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

Interface: GigabitEthernet1/0/1

Direction: outbound

 Forwarded: 0 packets, 0 bytes

 Dropped: 0 packets, 0 bytes

 Queue 0

  Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps

  Dropped: 0 packets, 0 bytes

  Current queue length: 0 packets

 Queue 1

  Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps

  Dropped: 0 packets, 0 bytes

  Current queue length: 0 packets

 Queue 2

  Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps

  Dropped: 0 packets, 0 bytes

  Current queue length: 0 packets

 Queue 3

  Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps

  Dropped: 0 packets, 0 bytes

  Current queue length: 0 packets

 Queue 4

  Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps

  Dropped: 0 packets, 0 bytes

  Current queue length: 0 packets

 Queue 5

  Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps

  Dropped: 0 packets, 0 bytes

  Current queue length: 0 packets

 Queue 6

  Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps

  Dropped: 0 packets, 0 bytes

  Current queue length: 0 packets

 Queue 7

  Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps

  Dropped: 0 packets, 0 bytes

  Current queue length: 0 packets

Table 25 Command output

Field

Description

Interface

Interface for which queue-based traffic statistics are displayed.

Direction

Direction of traffic for which statistics are collected.

Forwarded

Counts forwarded traffic both in packets and in bytes.

Dropped

Counts dropped traffic both in packets and in bytes.

Current queue length

Current number of packets in the queue.

 

Related commands

reset counters interface (Interface 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
新华三官网