H3C S9500 Command Manual-Release2132[V2.03]-06 QoS ACL Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release2132[V2.03]-06 QoS ACL Volume
01-QoS Commands
Title Size Download
01-QoS Commands 297.29 KB

Table of Contents

Chapter 1 Traffic Shaping Configuration Commands. 1-1

1.1 Traffic Shaping Configuration Commands. 1-1

1.1.1 display qos gts interface. 1-1

1.1.2 qos gts. 1-2

Chapter 2 QoS Policy Configuration Commands. 2-1

2.1 Class Configuration Commands. 2-1

2.1.1 display traffic classifier user-defined. 2-1

2.1.2 if-match. 2-2

2.1.3 traffic classifier 2-6

2.2 Traffic Behavior Configuration Commands. 2-7

2.2.1 accounting. 2-7

2.2.2 car 2-8

2.2.3 display traffic behavior user-defined. 2-9

2.2.4 filter 2-10

2.2.5 nest 2-11

2.2.6 primap pre-defined. 2-12

2.2.7 primap pre-defined color 2-13

2.2.8 redirect 2-14

2.2.9 remark service-vlan-id. 2-16

2.2.10 remark dot1p. 2-16

2.2.11 remark drop-precedence. 2-17

2.2.12 remark dscp. 2-18

2.2.13 remark local-precedence. 2-19

2.2.14 traffic behavior 2-20

2.3 Policy Configuration Commands. 2-21

2.3.1 classifier behavior 2-21

2.3.2 display qos policy interface. 2-22

2.3.3 display qos policy user-defined. 2-23

2.3.4 qos apply policy. 2-25

2.3.5 qos policy. 2-26

Chapter 3 Hardware-based Congestion Management Configuration Commands. 3-1

3.1 SP Queuing Configuration Commands. 3-1

3.1.1 display qos sp interface. 3-1

3.1.2 qos sp. 3-2

3.2 WRR Queuing Configuration Commands. 3-2

3.2.1 display qos wrr interface. 3-2

3.2.2 qos wrr 3-4

3.2.3 qos wrr group. 3-4

Chapter 4 Priority Mapping Configuration Commands. 4-1

4.1 Priority Mapping Table Configuration Commands. 4-1

4.1.1 display qos map-table. 4-1

4.1.2 display qos map-table color 4-2

4.1.3 import 4-4

4.1.4 qos map-table. 4-5

4.1.5 qos map-table color 4-6

4.2 Port Priority Configuration Commands. 4-7

4.2.1 qos priority. 4-7

4.3 Port Priority Trust Mode Configuration Commands. 4-8

4.3.1 display qos trust interface. 4-8

4.3.2 qos trust dot1p. 4-9

Chapter 5 Congestion Avoidance Configuration Commands. 5-1

5.1 WRED Table Configuration Commands. 5-1

5.1.1 display qos wred interface. 5-1

5.1.2 display qos wred table. 5-2

5.1.3 qos wred apply. 5-3

5.1.4 qos wred queue table. 5-4

5.1.5 queue. 5-5

5.1.6 queue weighting-constant 5-6

Chapter 6 Aggregation CAR Configuration Commands. 6-1

6.1.1 car name. 6-1

6.1.2 display qos car name. 6-1

6.1.3 qos car aggregative. 6-2

6.1.4 reset qos car name. 6-4

Chapter 7 VLAN Policy Configuration Commands. 7-1

7.1 VLAN Policy Configuration Commands. 7-1

7.1.1 display qos vlan-policy. 7-1

7.1.2 qos vlan-policy. 7-2

7.1.3 reset qos vlan-policy. 7-3

Chapter 8 Traffic Mirroring Configuration Commands. 8-1

8.1 Traffic Mirroring Configuration Commands. 8-1

8.1.1 display qos policy user-defined. 8-1

8.1.2 display traffic behavior user-defined. 8-2

8.1.3 mirror-to cpu. 8-3

8.1.4 mirror-to interface. 8-4

Chapter 9 EACL Configuration Commands. 9-1

9.1 EACL Configuration Commands. 9-1

9.1.1 interface eacl 9-1

9.1.2 qos binding. 9-1

Chapter 10 Outbound Traffic Accounting Configuration Commands. 10-1

10.1 Outbound Traffic Accounting Configuration Commands. 10-1

10.1.1 display qos traffic-counter outbound. 10-1

10.1.2 qos traffic-counter outbound. 10-2

10.1.3 reset qos traffic-counter outbound. 10-4

 

 


Chapter 1  Traffic Shaping Configuration Commands

1.1  Traffic Shaping Configuration Commands

1.1.1  display qos gts interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

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

Description

Use the display qos gts interface command to view parameter configuration and statistics information of generic traffic shaping (GTS) on an interface or all interfaces.

If no interface is specified, GTS configuration and statistics information of all interfaces is displayed.

Examples

# Display the GTS parameter configuration information and statistic information on all the interfaces.

<Sysname> display qos gts interface

Interface: Ten-GigabitEthernet6/1/1

 Rule(s): If-match any

 CIR 50000 (kbps), CBS 1600000 (byte)

 Rule(s): If-match queue 2

 CIR 40000 (kbps), CBS 2500000 (byte)

Table 1-1 Description on the fields of the display qos gts interface command

Filed

Description

Interface

Interface name, consisting of interface type and interface number

Rule(s)

Matching rules

CIR

Committed information rate, in kbps

CBS

Committed burst size, that is, the depth of the token bucket holding burst traffic, in bytes

 

1.1.2  qos gts

Syntax

qos gts { any | queue queue-number } cir committed-information-rate [ cbs committed-burst-size ]

undo qos gts { any | queue queue-number }

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

any: Specifies to perform traffic shaping (TS) for all the IP data packets.

queue queue-number: Specifies to perform TS for data packets in a queue identified by the queue-number argument.

cir committed-information-rate: Committed information rate in kbps.

cbs committed-burst-size: Committed burst size in bytes, which must be a multiple of 4000. The default CBS is expressed in the formula MIN (cir × 62.5, 16000000), that is, the default CBS can be either CIR × 62.5 or 16000000, whichever is smaller.

 

&  Note:

If the cbs keyword is not specified in this command, the system calculates the CBS value using the formula MIN (cir × 62.5, 16000000). Because the CBS must be a multiple of 4000, the system tunes the calculation result of cir×62.5 automatically if the calculation result is not a multiple of 4000.

 

Description

Use the qos gts command to set TS parameters for traffic of a particular class or all the traffic and start TS.

Use the undo qos gts command to cancel the TS parameters set for traffic of a particular class or all the traffics.

Use the qos gts any command to set TS parameters for all the traffics.

Use the qos gts queue command to set TS parameters for the traffic in a particular queue.

By default, a port is not configured with any TS parameter.

Related commands: acl.

 

&  Note:

CIR and CBS must satisfy the following formula: cbs >= cir × 62.5.

 

Examples

# Perform TS for all the packets on Ethernet 6/1/1. The normal traffic rate (that is, CIR) is 600 kbps, and CBS is 120000 bytes.

<Sysname> system-view

[Sysname] interface ethernet6/1/1

[Sysname-Ethernet6/1/1] qos gts any cir 600 cbs 120000

 


Chapter 2  QoS Policy Configuration Commands

2.1  Class Configuration Commands

2.1.1  display traffic classifier user-defined

Syntax

display traffic classifier user-defined [ tcl-name ]

View

Any view

Default Level

1: Monitor level

Parameters

tcl-name: Class name.

Description

Use the display traffic classifier user-defined command to display information about user-defined classes.

If the tcl-name argument is not specified, the information about all the user-defined classes is displayed.

Examples

# Display the information about user-defined classes.

<Sysname> display traffic classifier user-defined

User Defined Classifier Information:

 Classifier: USER1

  Operator: AND

  Rule(s) : if-match ip-precedence 5

 

 Classifier: database

  Operator: AND

  Rule(s) : if-match acl 3131

            if-match inbound-interface Ethernet4/1/1

Table 2-1 Description on the fields of the display traffic classifier user-defined command

Field

Description

User Defined Classifier Information

Class type: user-defined

Classifier

Class name and the class content (of multiple types)

Operator

Logical relationship between classification rules

Rule

Classification rule

 

2.1.2  if-match

Syntax

if-match match-criteria

undo if-match match-criteria

View

Class view

Default Level

2: System level

Parameters

match-criteria: Match rules of a class. The values are as shown in Table 2-2:

Table 2-2 Values of match rules of a class

Value

Description

acl [ ipv6 ] acl-number

Define ACL matching rules

The acl-number argument is the number of an ACL, which is in the range of 2000 to 5999 for IPv4 ACLs and in the range of 2000 to 3999 for IPv6 ACLs.

dscp dscp-list

Define DSCP matching rules

The dscp-list argument is the list of DSCP values and up to eight DSCP values can be input. The DSCP value is in the range 0 to 63.

destination-mac mac-address

Define destination MAC address matching rules

dot1p dot1p-id

Define dot1p matching rules

ip-precedence ip-precedence-list

Define IP precedence matching rules.

The ip-precedence-list argument is the list of ip-precedence values and up to eight ip precedence values can be input. The ip-precedence value is in the range of 0 to 7.

protocol protocol-name

Define protocol matching rules.

The protocol-name argument can be IP, IPv6 or bittorrent.

customer-vlan-id { vlan-id-list | vlan-id1 to vlan-id2 }

Define customer network VLAN ID matching rules.

The vlan-id-list argument is the list of VLAN IDs and up to eight VLAN IDs can be input. The vlan-id1 to vlan-id2 argument-keyword combination represents a VLAN ID range, where the vlan-id1 argument must be smaller than the vlan-id2 argument.

source-mac mac-address

Define source MAC address matching rules.

service-vlan-id { vlan-id-list | vlan-id1 to vlan-id2 }

Define service provider network VLAN ID matching rules.

The vlan-id-list argument is the list of VLAN IDs and up to eight VLAN IDs can be input. The vlan-id1 to vlan-id2 argument-keyword combination represents a VLAN ID range, where the vlan-id1 argument must be smaller than the vlan-id2 argument.

mpls-exp exp-value

Define MPLS EXP field matching rules.

The EXP field value ranges from 0 to 7.

forward-level { bridge | route }

Define Layer-2/Layer-3 attribute matching rules, bridge for Layer-2 packets and route for Layer-3 packets.

ttl ttl-value

Define time to live (TTL) matching rules for IPv4 packets.

The value range for the ttl-value argument is 0 to 255.

 

Description

Use the if-match command to define matching rules for packets.

Use the undo if-match command to delete the existing matching rules.

When defining the rules, take the following into consideration:

1)         Define ACL matching rules

l           If the ACL referenced in a class is not created, the matching rule cannot be applied to the hardware.

l           If the operator of a class is logical AND, only one if-match acl acl-number statement can be defined in the class. The acl-number argument ranges from 5000 to 5999.

2)         Define destination MAC address matching rules

l           The destination MAC address matching rules are only meaningful for the outbound policies on Ethernet ports.

l           For a class, you can configure multiple commands which cannot be overwritten.

3)         Define source MAC address matching rules

l           The source MAC address matching rules are only meaningful for the inbound policies on Ethernet ports.

l           For a class, you can configure multiple commands which cannot be overwritten.

4)         Define DSCP matching rules

l           For a class, you can configure multiple commands which cannot be overwritten. The DSCP values specified by them are automatically arranged in ascending order. Only when the specified DSCP values are identical with those in the rule (sequence may be different) can the command be deleted.

l           You may configure up to eight DSCP values in one command. If multiple DSCPs of the same value are specified, the system regards them as one. Relation between different DSCP values is “OR”.

5)         Define MPLS EXP field matching rules

The MPLS EXP field matching rules are only applicable to the ports on boards suffixed by C, CA, or CB.

If the class operator is set to and, the MPLS EXP field matching rules can be used in conjunction with only the following if-match commands:

l           if-match destination-mac

l           if-match service-vlan-id

l           if-match acl acl-number (with the acl-number argument in the range of 4000 to 4999) and the ACL rule can only be rule permit or rule permit dest-mac.

 

&  Note:

The DSCP value defined in the if-match dscp clause is used for matching IPv4 traffic in most cases. To use the clause to match IPv6 traffic, you need to define either the ip-match protocol ipv6 or if-match acl ipv6 clause in addition and adopt the AND operator in the class. In addition, you must ensure that the flow template applied to the port where the class is to be used contains the IPv6 DSCP field.

 

6)         Define IP precedence matching rules

l           When the command is configured, the IP precedence values are arranged automatically in ascending order.

l           You may configure up to eight IP precedence values in one command. If multiple IP precedences of the same value are specified, the system regards them as one. Relation between different IP precedence values is “OR”.

7)         Define customer network VLAN ID matching rules and service provider network VLAN ID matching rules

l           For a class, you can configure multiple commands which cannot be overwritten. When the command is configured, the vlan-id values are arranged automatically in ascending order. Only when the specified VLAN ID values are identical with those in the rule (sequence may be different) can the command be deleted.

l           You may configure multiple VLAN ID values in one command. If multiple VLAN IDs of the same value are specified, the system regards them as one. Relation between different VLAN IDs is “OR”.

8)         Define TTL matching rules for IPv4 packets

If the operator of the class is logical OR, a TTL matching rule for IPv4 packets cannot be configured together with any of the following statements in the class:

l           if-match protocol ipv6

l           if-match mpls-exp

l           if-match acl ipv6

Related commands: traffic classifier.

Examples

# Define a matching rule to match IP packets for class 1.

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a matching rule for class 1 to match packets with the destination MAC address 0050-BA27-BED3.

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a matching rule for class 2 to match packets with the source MAC address 0050-BA27-BED2.

<Sysname> system-view

[Sysname] traffic classifier class2

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

# Define a matching rule for class 1 to match IPv6 ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a matching rule for class 1 to match packets with IP precedence 1 or 6.

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a matching rule for class 1 to match packets with the customer VLAN ID 1, 6, or 9.

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a matching rule for class 1 to match Layer-2 packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match forward-level bridge

# Define a matching rule for class 1 to match the IPv4 packets with TTL 1.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match ttl 1

2.1.3  traffic classifier

Syntax

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

undo traffic classifier tcl-name

View

System view

Default Level

2: System level

Parameters

and: Specifies the relationship between the rules in the class as logic AND (that is, the packet that matches all the rules belongs to this class).

or: Specifies the relationship between the rules in the class as logic OR (that is, the packet that matches any one of the rules belongs to this class).

tcl-name: Class name.

Description

Use the traffic classifier command to define a class and enter the class view.

Use the undo traffic classifier command to delete a class.

By default, the relationship between the rules in a class is logic AND.

Related commands: qos policy, qos apply policy, and classifier behavior.

Examples

# Define a class named class1.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1]

2.2  Traffic Behavior Configuration Commands

2.2.1  accounting

Syntax

accounting

undo accounting

View

Traffic behavior view

Default Level

2: System level

Parameters

None

Description

Use the accounting command to configure the accounting action for a traffic behavior.

Use the undo accounting command to cancel the accounting action configured for a traffic behavior.

Related commands: qos policy, traffic behavior, and classifier behavior.

Examples

# Configure the accounting action for the traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] accounting

2.2.2  car

Syntax

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

undo car

View

Traffic behavior view

Default Level

2: System level

Parameters

cir committed-information-rate: Committed information rate in kbps.

cbs committed-burst-size: Committed burst size in bytes, number of bits that can be sent at each interval. By default, the CBS is MAX (cir × 62.5, 1875), which means that the CBS could be either CIR × 62.5 or 1875, whichever is greater.

ebs excess-burst-size: Excessive burst size in bytes. It defaults to 0.

pir peak information rate: Peak information rate in kbps. It defaults to 0.

red action: Action to take on packets when the traffic rate neither conforms to the CIR nor conforms to the PIR. By default, the action of red is discard.

The action argument can be:

l           discard: Drops the packets.

l           pass: Allows the packets to pass through.

Description

Use the car command to configure traffic policing for the current traffic behavior.

Use the undo car command to remove the traffic policing action from the traffic behavior.

The traffic policing action you configured can overwrite the previous traffic policing configuration of the traffic behavior, if any.

Related commands: qos policy, traffic behavior, classifier behavior.

 

&  Note:

CIR, CBS, EBS, and PIR must satisfy the following formulas:

l      cbs >= cir × 62.5

l      ebs >= pir × 50 ms

l      pir >= cir

 

Examples

# Configure traffic policing for traffic behavior database, setting CIR to 200 kbps, CBS to 50000 bytes, and action to dropping packets when the traffic rate exceeds 200 kbps.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] car cir 200 cbs 50000 red discard

2.2.3  display traffic behavior user-defined

Syntax

display traffic behavior user-defined [ behavior-name ]

View

Any view

Default Level

1: Monitor level

Parameters

behavior-name: User-defined traffic behavior name. If it is not specified, the information of all the traffic behaviors is displayed.

Description

Use the display traffic behavior command to display the information of the specific user-defined traffic behavior.

Examples

# Display information of all the user-defined traffic behaviors.

<Sysname> display traffic behavior user-defined

  User Defined Behavior Information:

    Behavior: test1

      Accounting Enable

      Committed Access Rate:

        CIR 20000 (kbps), CBS 300000 (byte), EBS 100 (byte), PIR 25000 (kbps)

        Red Action: discard

      Filter enable : permit

      Marking:

        Remark dot1p COS 2

    Behavior: test2

      Accounting Enable

      Committed Access Rate:

        CIR 10000 (kbps), CBS 250000 (byte), EBS 100 (byte), PIR 25000 (kbps)

        Red Action: discard

      Filter enable : deny

      Marking:

        Remark dot1p COS 2

Table 2-3 Description on the fields of the display traffic behavior user-defined command

Field

Description

User Defined Behavior Information

Behavior type: user-defined

Behavior

Behavior name and the behavior content (of multiple types)

Accounting enable

The accounting action is enabled for the traffic behavior

Committed Access Rate

Information about rate limiting

Red Action

Action conducted to packets nonconforming to CIR

Filter enable

The traffic filtering action is configure for the traffic behavior

Marking

Information about priority marking

 

2.2.4  filter

Syntax

filter { deny | permit }

undo filter

View

Traffic behavior view

Default Level

2: System level

Parameters

deny: Discards the packet.

permit: Transmits the packet.

Description

Use the filter command to configure the traffic filtering action for a traffic behavior.

Use the undo filter command to cancel the traffic filtering action configured for a traffic behavior.

Examples

# Configure the traffic filtering action for the traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] filter deny

2.2.5  nest

Syntax

nest top-most vlan-id vlan-id-value

undo nest

View

Traffic behavior view

Default Level

2: System level

Parameters

vlan-id-value: VLAN ID of the outer VLAN tag.

Description

Use the nest command to configure the action of creating an outer VLAN tag for a traffic behavior.

Use the undo nest command to cancel the action of creating an outer VLAN tag configured for the traffic behavior.

Note that:

l           A policy configured with the action of creating an outer VLAN tag can be applied to only the ingress direction of an interface.

l           If this command is executed multiple times, the new command overwrites the previous one.

Related commands: qos policy, traffic behavior, classifier behavior.

Examples

# Configure the action of creating outer VLAN tag 657 for traffic behavior be1.

<Sysname> system-view

[Sysname] traffic behavior be1

[Sysname-behavior-be1] nest top-most vlan-id 657

2.2.6  primap pre-defined

Syntax

primap pre-defined { dscp-lp | dscp-dp | dscp-dot1p | dscp-dscp }

undo primap pre-defined { dscp-lp | dscp-dp | dscp-dot1p | dscp-dscp }

View

Traffic behavior view

Default Level

2: System level

Parameters

dscp-lp: DSCP-to-local-precedence mapping table.

dscp-dp: DSCP-to-drop-precedence mapping table.

dscp-dot1p: DSCP-to-802.1p-precedence mapping table.

dscp-dscp: DSCP-to-DSCP mapping table.

Description

Use the primap pre-defined command to configure the action of obtaining other precedence values through the corresponding priority mapping table for a traffic behavior.

Use the undo primap pre-defined command to cancel the action.

 

&  Note:

All the priority mapping tables related to DSCP apply to EXP. That is, dsp-lp mappings are also used as exp-lp mappings; dscp-dscp mappings are also used as dscp-exp, exp-dscp, and exp-exp mappings. For MPLS packets, the priority mappings from EXP to other types of precedence apply; for non-MPLS packets, the priority mappings from DSCP to other types of precedence apply.

 

Related commands: display qos map-table.

Examples

# Obtain the local precedence values for packets through the DSCP-to-local-precedence mapping table.

<Sysname> system-view

[Sysname] traffic behavior behavior1

[Sysname-behavior-behavior1] primap pre-defined dscp-dp

2.2.7  primap pre-defined color

Syntax

primap pre-defined color { dscp-dot1p | dscp-dp | dscp-dscp | dscp-lp | lp-dot1p | lp-dp | lp-dscp | lp-lp }

undo primap pre-defined color { dscp-dot1p | dscp-dp | dscp-dscp | dscp-lp | lp-dot1p | lp-dp | lp-dscp | lp-lp }

View

Traffic behavior view

Default Level

2: System level

Parameters

dscp-dot1p: DSCP-to-802.1p-precedence mapping table.

dscp-dp: DSCP-to-drop-precedence mapping table.

dscp-dscp: DSCP-to-DSCP-precedence mapping table.

dscp-lp: DSCP-to-local-precedence mapping table.

lp-dot1p: Local-to-802.1p-precedence mapping table.

lp-dp: Local-to-drop-precedence mapping table.

lp-dscp: Local-to-DSCP-precedence mapping table.

lp-lp: Local-to-local-precedence mapping table.

Description

Use the primap pre-defined color command to configure the action of precedence mapping based on the specified colored priority mapping table.

Use the undo primap pre-defined color command to remove the configured action.

 

&  Note:

l      All the priority mapping tables related to DSCP apply to EXP. That is, dsp-lp mappings are also used as exp-lp mappings; dscp-dscp mappings are also used as dscp-exp, exp-dscp, and exp-exp mappings. For MPLS packets, the priority mappings from EXP to other types of precedence apply; for non-MPLS packets, the priority mappings from DSCP to other types of precedence apply. For the description on the EXP field in MPLS packets, refer to the section talking about implementing QoS in an MPLS network in QoS Configuration.

l      A colored priority mapping table must be used in conjunction with the car command.

 

Related commands: display qos map-table color.

Examples

# Use the colored dscp-dp mapping table to obtain drop precedence values for packets.

<Sysname> system-view

[Sysname] traffic behavior behavior1

[Sysname-behavior-behavior1] car cir 1600

[Sysname-behavior-behavior1] primap pre-defined color dscp-dp

2.2.8  redirect

Syntax

redirect { cpu | interface interface-type interface-number | link-aggregation group group-id | next-hop { ipv4-add [ ipv4-add ] | ipv6-add [ interface-type interface-number ] [ ipv6-add [ interface-type interface-number ] ] } }

undo redirect

View

Traffic behavior view

Default Level

2: System level

Parameters

cpu: Redirects traffic to CPU.

interface: Redirects traffic to specified interface.

next-hop: Redirects traffic to the next hop.

link-aggregation: Redirects traffic to a link aggregation group.

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

ipv4-add: Next hop IPv4 address.

ipv6-add: Next hop IPv6 address. If the IPv6 address is a link-local address, specify an interface for the next hop IPv6 address; otherwise, you do not need to do so.

group group-id: Group number of an existing link aggregation group.

Description

User the redirect command to configure the traffic redirecting action for a traffic behavior.

User the undo redirect command to cancel the traffic redirecting action configured for a traffic behavior.

 

  Caution:

l      When the traffic redirecting action is configured, if the outgoing interface to be redirected to is bound to an NAT virtual interface, packets sent from this outgoing interface are redirected to the L3+NAT card, thus resulting in traffic redirecting failure.

l      The policy routing function can be implemented through configuring the action of redirecting traffic to the next hop.

l      Two next hop addresses can be configured for the action of redirecting traffic to the next hop, with one address being the primary next hop address and the other being the secondary next hop address. The traffic is redirected to the primary next hop address if the primary next hop address exists; otherwise, the traffic is redirected to the secondary next hop address.

l      The device can only operate as follows: with the traffic redirected to the next hop address, if neither the primary next hop address nor the secondary next hop address exists, the device drops these packets.

 

Examples

# Configure the action of redirecting traffic to CPU for the traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] redirect cpu

2.2.9  remark service-vlan-id

Syntax

remark service-vlan-id vlan-id-value

undo remark service-vlan-id

View

Traffic behavior view

Default Level

2: System level

Parameters

vlan-id-value: Service provider network VLAN ID of the packets.

Description

Use the remark service-vlan-id command to configure the action of marking the service provider network VLAN ID of the packets for a traffic behavior.

Use the undo remark atm-clp command to cancel the action of marking the service provider network VLAN ID of the packets configured for a traffic behavior.

Related commands: qos policy, traffic behavior, classifier behavior.

Examples

# Mark the packets with the service provider network VLAN ID 2.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark service-vlan-id 2

2.2.10  remark dot1p

Syntax

remark dot1p 8021p

undo remark dot1p

View

Traffic behavior view

Default Level

2: System level

Parameters

8021p: 802.1p priority value to be marked.

Description

Use the remark dot1p command to configure the 802.1p priority value of the remarked packet.

Use the undo remark dot1p command to remove the 802.1p priority value from the remarked packet.

Related commands: qos policy, traffic behavior, classifier behavior.

Examples

# Set the 802.1p priority value of the remarked packet to 2.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark dot1p 2

2.2.11  remark drop-precedence

Syntax

remark drop-precedence drop-precedence-value

undo remark drop-precedence

View

Traffic behavior view

Default Level

2: System level

Parameters

drop-precedence-value: Drop precedence value to be marked.

Description

Use the remark drop-precedence command to configure the action of marking the drop precedence of packets.

Use the undo remark drop-precedence command to cancel the action of marking the drop precedence of packets.

Related commands: qos policy, traffic behavior, classifier behavior.

Examples

# Mark the packets with drop precedence 2.

<Sysname> system-view

[Sysname] traffic behavior database

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

2.2.12  remark dscp

Syntax

remark dscp dscp-value

undo remark dscp

View

Traffic behavior view

Default Level

2: System level

Parameters

dscp-value: DSCP value, in the range of 0 to 63 (decimal), which can be any of these keywords as follows:

Table 2-4 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

 

Description

Use the remark dscp command to set a remarked DSCP value for IP packets belonging to the class.

Use the undo remark dscp command to disable DSCP remark.

 

  Caution:

The remark dscp command applies to both DSCP and EXP. The EXP field is the low-order three bits in the dscp-value argument (binary). For the description on the EXP field in MPLS packets, refer to the part discussing implementing QoS in an MPLS network in QoS Configuration.

 

Related commands: qos policy, traffic behavior, classifier behavior.

Examples

# Remark the DSCP of the IP packets belonging to the class to 6.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark dscp 6

2.2.13  remark local-precedence

Syntax

remark local-precedence local-precedence

undo remark local-precedence

View

Traffic behavior view

Default Level

2: System level

Parameters

local-precedence: Local precedence value to be marked.

Description

Use the remark local-precedence command to configure the action of marking the local precedence of packets.

Use the undo remark local-precedence command to cancel the action of marking the local precedence of packets.

Related commands: qos policy, traffic behavior, classifier behavior.

Examples

# Mark packets with the local precedence 2.

<Sysname> system-view

[Sysname] traffic behavior database

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

2.2.14  traffic behavior

Syntax

traffic behavior behavior-name

undo traffic behavior behavior-name

View

System view

Default Level

2: System level

Parameters

behavior-name: Behavior name.

Description

Use the traffic behavior command to define a traffic behavior and enter the behavior view.

Use the undo traffic behavior command to delete a traffic behavior.

Related commands: qos policy, qos apply policy, classifier behavior.

Examples

# Define a traffic behavior named behavior1.

<Sysname> system-view

[Sysname] traffic behavior behavior1

[Sysname-behavior-behavior1]

2.3  Policy Configuration Commands

2.3.1  classifier behavior

Syntax

classifier tcl-name behavior behavior-name

undo classifier tcl-name

View

Policy view

Default Level

2: System level

Parameters

tcl-name: Name of a class.

behavior–name: Name of a traffic behavior.

Description

Use the classifier behavior command to specify the behavior for the class in the policy.

Use the undo classifier command to remove the application of the class in the policy.

Each class in the policy can only be associated with one behavior.

Related commands: qos policy.

Examples

# Specify the behavior test for the class database in the policy user1.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1] classifier database behavior test

[Sysname-qospolicy-user1]

2.3.2  display qos policy interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

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

inbound: Inbound direction.

outbound: Outbound direction.

Description

Use the display qos policy interface command to view the configuration and operating state about the policy on the specified interface.

Examples

# Display the configuration and operating state about the policy on Ethernet 4/1/1.

<Sysname> display qos policy interface ethernet 4/1/1

 

  Interface: Ethernet4/1/1

 

  Direction: Inbound

 

  Policy: test1

   Classifier: cl1

     Operator: AND

     Rule(s) : If-match acl 2345

     Behavior: be1

      Committed Access Rate:

        CIR 10 (kbps), CBS 10000 (byte), EBS 0 (byte)

        Red Action: discard

        Green : 0(Bytes)

        Yellow: 0(Bytes)

        Red   : 0(Bytes)

Table 2-5 Description on the fields of the display qos policy interface command

Field

Description

Interface

Interface name, consisting of interface type and interface number

Direction

Specifies the direction that the policy is applied to the interface.

Policy

Name of the policy applied to the interface

Classifier

Classification rules and corresponding configurations in the policy

Operator

Logical relationship between classification rules

Rule(s)

Classification rules of class

Behavior

Name and configuration information of the behavior. Refer to related command of behavior.

Committed Access Rate

Information about rate limiting

CIR

Committed information rate in kbps

CBS

Committed burst size, i.e. the depth of the token bucket holding burst traffic, in bytes

EBS

Excess burst size, in bytes

Red

Traffic statistics information about red traffic

Green

Traffic statistics information about green traffic

Yellow

Traffic statistics information about yellow traffic

 

2.3.3  display qos policy user-defined

Syntax

display qos policy user-defined [ policy-name [ classifier tcl-name ] ]

View

Any view

Default Level

1: Monitor level

Parameters

policy-name: Policy name. If no policy is specified, the configurations of all user-defined policies are displayed.

tcl-name: Class name in the policy.

Description

Use the display qos policy command to display the configurations of the specified or all classes and their associated behaviors in the specified or all user-defined policies.

Examples

# Display the configurations of all user-defined policies.

<Sysname> display qos policy user-defined

  User Defined QoS Policy Information:

 

  Policy: default

  Policy: user1

   Classifier: class1

     Behavior: test

      Accounting Enable

      Committed Access Rate:

        CIR 20000 (kbps), CBS 300000 (byte), EBS 100 (byte), PIR 25000 (kbps)

        Red Action: discard

      Filter enable : permit

      Marking:

        Remark dot1p COS 2

Table 2-6 Description on the fields of the display qos policy user-defined command

Field

Description

Policy

Policy name

Classifier

Class name. A policy may contain multiple classes, each corresponding to a behavior and multiple matching rules. For details, refer to the traffic classifier command.

Behavior

The behavior in the class. Each behavior can have multiple matching rules. For details, refer to the traffic behavior command.

Accounting enable

The traffic accounting action is configured for the traffic behavior.

Committed Access Rate

Information about rate limiting

Red Action

Action taken on red packets which are nonconforming to CIR

Filter enable

The traffic filtering action is configured for the traffic behavior.

Marking

Information about priority marking

 

2.3.4  qos apply policy

Syntax

qos apply policy policy-name { inbound | outbound }

undo qos apply policy { inbound | outbound }

View

Interface view, port group view, EACL service sub-interface view

Default Level

2: System level

Parameters

inbound: Inbound direction.

outbound: Outbound direction.

policy-name: Policy name.

Description

Use the qos apply policy command to apply associated policy to the interface.

Use the undo qos apply policy command to delete the associated policy from the interface.

Note that:

l           To successfully apply the policy to the interface, you must make sure that the sum of bandwidth specified for the AF and EF classes in the policy is smaller than the available bandwidth of the interface. You can modify the available bandwidth of the current interface. If the sum of their bandwidth still exceeds that modified value, the policy will be deleted.

l           For a policy to be applied in the inbound direction, it cannot contain classes associated with traffic behaviors specified using gts.

l           Configured in interface view, the setting is effective on the current interface only; configured in port group view, the setting is effective on all the ports in the port group.

l           A policy can be applied only in the outbound direction in EACL service sub-interface view.

Examples

# Apply the policy USER1 in the outbound direction of Ethernet 1/1/1.

<Sysname> system-view

[Sysname] interface ethernet1/1/1

[Sysname-Ethernet1/1/1] qos apply policy USER1 outbound

2.3.5  qos policy

Syntax

qos policy policy-name

undo qos policy policy-name

View

System view

Default Level

2: System level

Parameters

policy policy-name: Policy name.

Description

Use the qos policy command to define a policy and enter policy view.

Use the undo qos policy command to delete a policy.

The policy cannot be deleted if it is applied on an interface. It is necessary to remove application of the policy on the current interface before deleting it via the undo qos policy command.

Related commands: classifier behavior, qos apply policy.

Examples

# Define a policy named user1 and enter policy view.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1]

 


Chapter 3  Hardware-based Congestion Management Configuration Commands

3.1  SP Queuing Configuration Commands

3.1.1  display qos sp interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface-type: Interface type.

interface-number: Interface number.

Description

Use the display qos sp interface command to display the strict priority (SP) queuing configuration on an interface.

If no interface is specified, the SP queuing configuration information on all the interfaces is displayed.

Related commands: qos sp.

Examples

# Display the SP queuing configuration information on Ethernet 1/1/1/.

<Sysname> display qos sp interface ethernet 1/1/1

Output queue: Strict-priority queue

Table 3-1 Description on the fields of the display qos sp interface command

Field

Description

Output queue

Type of the current output queue

Strict-priority queue

Adopt the SP queuing mechanism for queue scheduling

 

3.1.2  qos sp

Syntax

qos sp

undo qos sp

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

None

Description

Use the qos sp command to configure SP queuing on a port.

Use the undo qos sp command to restore the default queuing algorithm on the port.

Configured in interface view, the setting is effective on the current interface only; configured in port group view, the setting is effective on all the ports in the port group.

Related commands: display qos sp interface.

Examples

# Adopt SP queuing for queue scheduling on Ethernet 6/1/1.

<Sysname> system-view

[Sysname] interface ethernet6/1/1

[Sysname-Ethernet6/1/1] qos sp

3.2  WRR Queuing Configuration Commands

3.2.1  display qos wrr interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface-type: Interface type.

interface-number: Interface number.

Description

Use the display qos wrr interface command to display the weighted round robin (WRR) queuing configuration on an interface.

If no interface is specified, the WRR queuing configuration on all the interfaces is displayed.

Related commands: qos wrr.

Examples

# Display the WRR queuing configuration information on Ethernet 6/1/1.

<Sysname> display qos wrr interface ethernet 6/1/1

Interface: Ethernet6/1/1

Output queue:   Weighted round robin queue

Queue ID    Group   Weight

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

0                2       100

1                1       1

2                1       1

3                1       1

4                1       1

5                1       1

6                1       1

7                1       1

Table 3-2 Description on the fields of the display qos wrr interface command

Field

Description

Interface

Interface name consisting of interface type and interface number.

Output queue

Type of the current output queue

Queue ID

Queue ID

Group

ID of the group that the current queue belongs to

By default, all the queues belong to group 1.

Weight

Weight of a queue during queue scheduling

 

3.2.2  qos wrr

Syntax

qos wrr

undo qos wrr

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

None

Description

Use the qos wrr command to enable WRR queuing on a port.

Use the undo qos wrr command to disable WRR queuing on a port.

Configured in interface view, the setting is effective on the current interface only; configured in port group view, the setting is effective on all the ports in the port group.

Before configuring WRR, make sure that you have used the qos wrr command to enable WRR queuing on a port.

Examples

# Enable WRR queuing on Ethernet 1/1/1.

<Sysname> system-view

[Sysname] interface ethernet1/1/1

[Sysname-Ethernet1/1/1] qos wrr

3.2.3  qos wrr group

Syntax

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

undo qos wrr

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

queue-id: Queue ID, in the range of 0 to 7.

1 | 2 : Specifies the WRR priority group a queue belongs to. The group 1 keyword indicates that a queue belongs to WRR priority group 1, and the group 2 keyword indicates that a queue belongs to WRR priority group 2.

sp: Indicates that the queue belongs to WRR priority group 0 (that is, the SP queue).

weight: Indicates that the weight of a queue is calculated based on the queue length.

schedule-value: Scheduling weight value of a queue.

Description

Use the qos wrr group command to configure or modify WRR queuing parameters.

Use the undo qos wrr command to restore the default queuing algorithm on the port.

Note that:

l           Before executing this command, enable WRR queuing on the port.

l           Configured in interface view, the setting is effective on the current interface only; configured in port group view, the setting is effective on all the ports in the port group.

Related commands: display qos wrr interface.

Examples

# Enable the WRR queue scheduling algorithm on Ethernet 1/1/1, set the scheduling weight value of queue 0 to 100, and allocate queue 0 to group 1.

<Sysname> system-view

[Sysname] interface ethernet1/1/1

[Sysname-Ethernet1/1/1] qos wrr

[Sysname-Ethernet1/1/1] qos wrr 0 group 1 weight 100

 


Chapter 4  Priority Mapping Configuration Commands

4.1  Priority Mapping Table Configuration Commands

4.1.1  display qos map-table

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

dot1p-dp: 802.1p-to-drop-precedence mapping table.

dot1p-lp: 802.1p-to-local-precedence mapping table.

dot1p-rpr: 802.1p-to-RPR-precedence mapping table.

dscp-dot1p: DSCP-to-802.1p-precedence mapping table.

dscp-dp: DSCP-to-drop-precedence mapping table.

dscp-dscp: DSCP-to-DSCP-precedence mapping table.

dscp-exp: DSCP-to-EXP-precedence mapping table.

dscp-lp: DSCP-to-local-precedence mapping table.

exp-dot1p: EXP-to-802.1p-precedence mapping table.

exp-dp: EXP-to-drop-precedence mapping table.

exp-exp: EXP-to-EXP-precedence mapping table.

exp-lp: EXP-to-local-precedence mapping table.

exp-rpr: EXP-to-RPR-precedence mapping table.

ippre-rpr: IP-precedence-to-RPR-precedence mapping table.

Description

Use the display qos map-table command to display the configuration of a specific priority mapping table.

If the table type is not specified, the configuration information of all mapping tables is displayed.

Related commands: qos map-table.

Examples

# Display the configuration information of the 802.1p-precedence-to-drop-precedence mapping table.

<Sysname> display qos map-table dot1p-dp

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

IMPORT  :  EXPORT

   0    :    0

   1    :    0

   2    :    0

   3    :    0

   4    :    0

   5    :    0

   6    :    0

   7    :    0

Table 4-1 Description on the fields of the display qos map-table command

Field

Description

MAP-TABLE NAME

Name of the mapping table

TYPE

Type of the mapping table

IMPORT

Source precedence

EXPORT

Target precedence

 

4.1.2  display qos map-table color

Syntax

display qos map-table color [ green | yellow | red ] [ dscp-dot1p | dscp-dp | dscp-dscp | dscp-exp | dscp-lp | exp-dot1p | exp-dp | exp-exp | exp-lp | lp-dot1p | lp-dp | lp-dscp | lp-exp | lp-lp ]

View

Any view

Default Level

1: Monitor level

Parameters

green: Represents green packets.

yellow: Represents yellow packets.

red: Represents red packets.

dscp-dot1p: DSCP-to- 802.1p-precedence mapping table.

dscp-dp: DSCP-to- drop-precedence mapping table.

dscp-dscp: DSCP-to- DSCP-precedence mapping table.

dscp-exp DSCP-to- EXP-precedence mapping table.

dscp-lp: DSCP-to- local-precedence mapping table.

exp-dot1p: EXP-to- 802.1p-precedence mapping table.

exp-dp: EXP-to- drop-precedence mapping table.

exp-exp: EXP-to- EXP-precedence mapping table.

exp-lp: EXP-to- local-precedence mapping table.

lp-dot1p: Local-to- 802.1p-precedence mapping table.

lp-dp: Local-to- drop-precedence mapping table.

lp-dscp: Local-to- DSCP-precedence mapping table.

lp-exp: Local-to- EXP-precedence mapping table.

lp-lp: Local-to- local-precedence mapping table.

Description

Use the display qos map-table color command to display the configuration of one or all colored priority mapping tables.

If no table is specified, the configurations of all the colored mapping tables is displayed. If no color is specified, the configuration of the mapping tables for all the colors is displayed.

Related commands: qos map-table.

Examples

# Display the configuration of the exp-lp mapping table for green packets.

<Sysname> display qos map-table color green exp-lp

MAP-TABLE NAME: exp-lp   TYPE: pre-define   COLOR: green

IMPORT  :  EXPORT

   0    :    0

   1    :    1

   2    :    2

   3    :    3

   4    :    4

   5    :    5

   6    :    6

   7    :    7

Table 4-2 Description on the fields of the display qos map-table color command

Field

Description

MAP-TABLE NAME

Mapping table name

TYPE

Mapping table type

COLOR

Mapping table color

IMPORT

Source precedence

EXPORT

Target precedence

 

4.1.3  import

Syntax

import import-value-list export export-value

undo import { import-value-list | all }

View

Priority mapping table view

Default Level

2: System level

Parameters

import-value-list: Input parameters of a mapping table. Up to seven values can be input for a mapping table.

export-value: Output parameters of a mapping table.

all: Deletes all parameters in the mapping table.

Description

Use the import command to configure the parameters in the specified priority mapping table to define a mapping rule or a group of mapping rules.

Use the undo import command to remove the values in the specified mapping entries and restore the default for the entries.

Related commands: display qos map-table, display qos map-table color.

Examples

# Configure the parameters in the dot1p-dp mapping table, with both 802.1p precedences 4 and 5 mapped to drop precedence 1.

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

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

4.1.4  qos map-table

Syntax

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

View

System view

Default Level

2: System level

Parameters

dot1p-dp: 802.1p-precedence-to-drop-precedence mapping table.

dot1p-lp: 802.1p-precedence-to-local-precedence mapping table.

dot1p-rpr: 802.1p-precedence-to-RPR-precedence mapping table.

dscp-dot1p: DSCP-to-802.1p-precedence mapping table.

dscp-dp: DSCP-to-drop-precedence mapping table.

dscp-dscp: DSCP-to-DSCP mapping table.

dscp-exp: DSCP-to-EXP-precedence mapping table.

dscp-lp: DSCP-to-local-precedence mapping table.

exp-dot1p: EXP-to-802.1p-precedence mapping table.

exp-dp: EXP-to-drop-precedence mapping table.

exp-exp: EXP-to-EXP-precedence mapping table.

exp-lp: EXP-to-local-precedence mapping table.

exp-rpr: EXP-to-RPR-precedence mapping table.

ippre-rpr: IP-precedence-to-RPR-precedence mapping table.

Description

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

Related commands: display qos map-table.

Examples

# Enter dot1p-dp mapping table view.

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

[Sysname-maptbl-dot1p-dp]

4.1.5  qos map-table color

Syntax

qos map-table color { green | yellow | red } { dscp-dot1p | dscp-dp | dscp-dscp | dscp-exp | dscp-lp | exp-dot1p | exp-dp | exp-exp | exp-lp | lp-dot1p | lp-dp | lp-dscp | lp-exp | lp-lp }

View

System view

Default Level

2: System level

Parameters

green: Green packets.

yellow: Yellow packets.

red: Red packets.

dscp-dot1p: DSCP-to-802.1p-precedence mapping table.

dscp-dp: DSCP-to-drop-precedence mapping table.

dscp-dscp: DSCP-to-DSCP-precedence mapping table.

dscp-exp: DSCP-to-EXP-precedence mapping table.

dscp-lp: DSCP-to-local-precedence mapping table.

exp-dot1p: EXP-to-802.1p-precedence mapping table.

exp-dp: EXP-to-drop-precedence mapping table.

exp-exp: EXP-to-EXP-precedence mapping table.

exp-lp: EXP-to-local-precedence mapping table.

lp-dot1p: Local-to-802.1p-precedence mapping table.

lp-dp: Local-to-drop-precedence mapping table.

lp-dscp: Local-to-DSCP-precedence mapping table.

lp-exp: Local-to-EXP-precedence mapping table.

lp-lp: Local-to-local-precedence mapping table.

Description

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

Related commands: display qos map-table color.

Examples

# Enter green EXP-to-local-precedence mapping table view.

<Sysname> system-view

[Sysname] qos map-table color green exp-lp

[Sysname-maptbl-green-exp-lp]

4.2  Port Priority Configuration Commands

4.2.1  qos priority

Syntax

qos priority priority-value

undo qos priority

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

priority-value: Port priority value.

Description

Use the qos priority command to configure the port priority of the current port.

Use the undo qos priority command to restore the default port priority of the current port.

The default priority of a port is 0.

Configured in Ethernet interface view, the setting is effective on the current port only; configured in port group view, the setting is effective on all the ports in the port group.

 

&  Note:

If the priority of a port is trusted, the device assigns a local precedence to each packet received on the port based on the port priority regardless of whether the packet carries a VLAN tag or not.

 

Examples

# Set the port priority of Ethernet 1/1/1 to 2.

<Sysname> system-view

[Sysname] interface ethernet 1/1/1

[Sysname-Ethernet1/1/1] qos priority 2

4.3  Port Priority Trust Mode Configuration Commands

4.3.1  display qos trust interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface-type: Interface type.

interface-number: Interface number.

Description

Use the display qos trust interface command to display the information about the port priority trust mode of a port.

If no port is specified, the port priority trust mode information of all the ports is displayed.

Examples

# Display the information about the port priority trust mode of Ethernet 1/1/1/.

<Sysname> display qos trust interface ethernet 1/1/1

Interface: Ethernet1/1/1

Port priority trust information

Port priority :0

Port priority trust type :  dot1p

Table 4-3 Description on the fields of the display qos trust interface command

Field

Description

Interface

Interface name, consisting of interface type and interface number

Port priority

Port priority

Port priority trust type

Port priority trust mode

 

4.3.2  qos trust dot1p

Syntax

qos trust dot1p

undo qos trust

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

None

Description

Use the qos trust dot1p command to set to trust 802.1p precedence on a port.

Use the undo qos trust dot1p command to restore the default.

By default, port priority is trusted on Ethernet ports.

Configured in interface view, the setting is effective on the current interface only; configured in port group view, the setting is effective on all the ports in the port group.

Examples

# Configure to trust the 802.1p precedence carried in packets on Ethernet 1/1/1.

<Sysname> system-view

[Sysname] interface ethernet 1/1/1

[Sysname-Ethernet1/1/1] qos trust dot1p

 


Chapter 5  Congestion Avoidance Configuration Commands

5.1  WRED Table Configuration Commands

5.1.1  display qos wred interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface-type: Interface type.

interface-number: Interface number.

Description

Use the display qos wred interface command to view weighed random early detection (WRED) configuration and statistics information of an interface.

If no interface is specified, WRED table configuration and statistics information of all interfaces is displayed.

Examples

# Display WRED table configuration and statistics information of Ethernet 1/1/1.

<Sysname> display qos wred interface ethernet 1/1/1

Interface: Ethernet1/1/1

 Current WRED configuration:

 Applied WRED table name: table1

Table 5-1 Description on the fields of the display qos wred interface command

Field

Description

Interface

Interface name, consisting of interface type and interface number

Current WRED configuration

Current WRED configuration, that is, the applied WRED table

 

5.1.2  display qos wred table

Syntax

display qos wred table [ table-name ]

View

Any view

Default Level

1: Monitor level

Parameters

table-name: Name of the WRED table to be displayed.

Description

Use the display qos wred table command to display the configuration information about a specific WRED table.

If no WRED table name is specified, the configuration information about all the WRED tables is displayed.

Examples

# Display the configuration information about all the tables of the switch.

<Sysname> display qos wred table

Table Name: zhou

Table Type: Queue based WRED

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

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

 0    76    134     1    33     66     1    11     23     1      9

 1    85    143     1    37     75     1    13     27     1      9

 2    95    153     1    42     85     1    16     32     1      9

 3   104    162     1    47     94     1    18     37     1      9

 4   114    172     1    52    104     1    21     42     1      9

 5   124    182     1    57    114     1    23     47     1      9

 6   133    191     1    61    123     1    25     51     1      9

 7   143    201     1    66    133     1    28     56     1      9

 

Table Name: table1

Table Type: Queue based WRED

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

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

 0    76    134     1    33     66     1    11     23     1      9

 1    85    143     1    37     75     1    13     27     1      9

 2    15     50   100    15     50   100    15     50   100      9

 3   104    162     1    47     94     1    18     37     1      3

 4   114    172     1    52    104     1    21     42     1      9

 5   124    182     1    57    114     1    23     47     1      9

 6   133    191     1    61    123     1    25     51     1      9

 7   143    201     1    66    133     1    28     56     1      9

Table 5-2 Description on the fields of the display qos wred table command

Field

Description

Table name

WRED table name

Table type

WRED table type

QID

Queue ID

gmin

Lower threshold for green packets

gmax

Upper threshold for green packets

gprob

Maximum drop probability for green packets

ymin

Lower threshold for yellow packets

ymax

Upper threshold for yellow packets

yprob

Maximum drop probability for yellow packets

rmin

Lower threshold for red packets

rmax

Upper threshold for red packets

rprob

Maximum drop probability for red packets

exponent

Exponent used for calculating average queue length

 

5.1.3  qos wred apply

Syntax

qos wred apply table-name

undo qos wred apply

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

table-name: Global WRED table name.

Description

Use the qos wred apply command to apply a global WRED table to the current port or ports.

Use the undo qos wred apply command to restore the default drop mode (tail drop) and remove the WRED table application.

By default, a port adopts tail drop.

Configured in interface view, the setting is effective on the current interface only; configured in port group view, the setting is effective on all the ports in the port group.

Related commands: display qos wred interface, display qos wred table, qos wred queue table.

Example

# Apply the queue-based WRED table queue-table1 to Ethernet 1/1/1.

<Sysname> system-view

[Sysname] interface ethernet1/1/1

[Sysname-Ethernet1/1/1] qos wred apply queue-table1

5.1.4  qos wred queue table

Syntax

qos wred queue table table-name

undo qos wred table table-name

View

System view

Default Level

2: System level

Parameters

table-name: WRED table name.

Description

Use the qos wred queue table command to create a WRED table and enter WRED table view.

Use the undo qos wred table command to delete the global WRED table.

By default, no global WRED table exists.

A WRED table being used cannot be deleted.

Related commands: qos wred apply, display qos wred interface.

Examples

# Create a queue-based WRED table table1.

<Sysname> system-view

[Sysname] qos wred queue table table1

[Sysname-wred-table-table1]

5.1.5  queue

Syntax

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

undo queue { queue-value | all }

View

WRED table view

Default Level

2: System level

Parameters

queue-value: Queue ID.

drop-level drop-level: Drop level. If the drop-level drop-level keyword-argument combination is not specified, the parameters configured subsequently apply to packets of all drop levels in the specific queue. If specified, the parameters apply to packets at the specific drop level.

low-limit low-limit: Lower threshold for the priority WRED table.

high-limit high-limit: Upper threshold for the priority WRED table.

discard-probability discard-prob: Denominator of drop probability. Each drop level has an independent drop probability denominator. The discard-prob argument is 1 for packets at drop level 0, 2 for packets at drop level 1, and 3 for packets at drop level 2.

Description

Use the queue command to edit the content of the queue-based WRED table.

Use the undo queue command to restore the content of the WRED table to the default.

By default, a global queue-based WRED table has a set of applicable default parameters.

Related commands: qos wred queue table.

Examples

# Modify the drop parameter for packets of drop level 1 in queue 1 of the global queue-based WRED table queue-table1.

<Sysname> system-view

[Sysname] qos wred queue table queue-table1

[Sysname-wred-table-queue-table1]

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

[Sysname-wred-table-queue-table1]

5.1.6  queue weighting-constant

Syntax

queue queue-value weighting-constant exponent

undo queue queue-value weighting-constant

View

WRED table view

Default Level

2: System level

Parameters

queue-value: Queue ID.

exponent: Exponent used for calculating the average queue length. This argument defaults to 9.

Description

Use the queue weighting-constant command to set the exponent used for calculating the average queue length for a queue-based WRED table.

Use the undo queue weighting-constant command to restore the default value.

Related commands: qos wred queue table.

Examples

# Set the exponent used for calculating the average queue length to 6 for the queue-based WRED table queue-table1.

<Sysname> system-view

[Sysname] qos wred queue table queue-table1

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

[Sysname-wred-table-queue-table1]

 


Chapter 6  Aggregation CAR Configuration Commands

6.1.1  car name

Syntax

car name car-name

undo car

View

Traffic behavior view

Default Level

2: System level

Parameters

name car-name: Name of an aggregation CAR.

Description

Use the car name car-name command to configure an aggregation CAR action for a traffic behavior.

Use the undo car command to remove the traffic policing action of a traffic behavior.

Examples

# Configure the aggregation CAR action aggcar-1 for the traffic behavior be1.

<Sysname> system-view

[Sysname] traffic behavior be1

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

6.1.2  display qos car name

Syntax

display qos car name [ car-name ]

View

Any view

Default Level

1: Monitor level

Parameters

car-name: Name of an aggregation CAR.

Description

Use the display qos car name command to display the configurations and statistics about the specific aggregation CAR. If no CAR is specified, the configuration and statistics about all aggregation CARs are displayed.

Examples

# Display the configuration information of aggregation CAR aggcar-1.

<Sysname> display qos car name aggcar-1

Name: aggcar-1

  Mode: aggregative

  CIR 100(kbps)  CBS: 10000(byte)  EBS: 100000(byte)

  Red Action: discard

  Green packet 2300(Bytes)

  Yellow packet 0(Bytes)

  Red packet 4500(Bytes)

Table 6-1 Description on the fields of the display qos car name command

Field

Description

Name: aggcar-1

Name of the traffic policing action

Mode: aggregative

Type of the traffic policing action

CIR 100(kbps)  CBS: 10000(byte)  EBS: 100000(byte)

Traffic policing parameters

Red Action: discard

Action conducted to red packets

Green packet

Action conducted to green packets

Yellow packet

Traffic statistics about yellow packets

Red packet

Traffic statistics about red packets

 

6.1.3  qos car aggregative

Syntax

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

undo qos car car-name

View

System view

Default Level

2: System level

Parameters

car-name: Name of an aggregation CAR.

aggregative: Specifies that the global CAR is aggregative. Only aggregation CAR is supported currently.

cir committed-information-rate: Committed information rate (CIR) in kbps.

cbs committed-burst-size: Committed burst size in bytes, that is, the burst traffic transmitted when the actual average rate is smaller than CIR. The default CBS value is expressed in the formula MAX (cir × 62.5, 1875), that is, the default CBS could be either CIR × 62.5 or 1875, whichever is greater.

ebs excess-burst-size: Excess burst size in bytes. The default is 0.

pir peak-information-rate: Peak information rate in kbps. The default is 0.

red action: Specifies the action conducted for red packets, which are packets that do not conform to CIR.

The action argument can be:

l           discard: Drops the packets.

l           pass: Permits the packets to pass through.

Description

Use the qos car aggregative command to configure an aggregation CAR.

Use the undo qos car aggregative command to cancel the aggregation CAR configuration.

An aggregation CAR takes effect after it is applied to an interface or it is referenced in a policy.

 

&  Note:

CIR, CBS, EBS, and PIR must satisfy the following formulas:

l      cbs cir × 62.5

l      ebs pir × 50 ms

l      pir cir

 

Examples

# Configure CAR parameters for an aggregation CAR, setting CIR to 200 kbps, CBS to 2000 bytes, and the action for red packets to discard.

<Sysname> system-view

[Sysname] qos car aggcar-1 aggregative cir 200 cbs 2000 red discard

6.1.4  reset qos car name

Syntax

reset qos car name [ car-name ]

View

User view

Default Level

2: System level

Parameters

car-name: Name of an aggregation CAR. If this argument is not specified, this command clears the statistics about all the aggregation CARs.

Description

Use the reset qos car name command to clear the statistics about the specific aggregation CAR.

Examples

# Clear the statistics about the aggregation CAR aggcar-1.

<Sysname> reset qos car name aggcar-1

 


Chapter 7  VLAN Policy Configuration Commands

7.1  VLAN Policy Configuration Commands

7.1.1  display qos vlan-policy

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

name policy-name: Specifies to display the information about the VLAN policy identified by the policy-name argument.

vlan vlan-id: Specifies to display VLAN policies applied to the VLAN identified by the vlan-id argument.

slot slot-id: Specifies to display the information about the VLAN policies applied to VLANs on the board residing in the specific slot. If this argument is not specified, the information about VLAN policies applied to the SRPU is displayed; if this argument is specified, the information about VLAN policies applied to the specific board is displayed.

Description

Use the display qos vlan-policy command to display the information about a specific VLAN policy.

Examples

# Display the information about VLAN policy test.

<Sysname> display qos vlan-policy name test

Policy test

    Vlan 34: inbound (active)

    Vlan 38: inbound (active)

Table 7-1 Description on the fields of the display qos vlan-policy command

Field

Description

Policy test

Name of the QoS policy

Vlan 34

ID of the VLAN referencing the QoS policy

Inbound (active)

Apply the QoS policy to the incoming packets of the VLAN

The active field indicates that the VLAN policy is active.

 

7.1.2  qos vlan-policy

Syntax

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

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

View

System view

Default Level

2: System level

Parameters

policy-name: Policy name.

vlan-id-list: VLAN ID list, which may be expressed in the form of vlan-id to vlan-id. The vlan-id argument is the ID of a VLAN. You can input multiple discontinuous VLAN IDs. For S9500 series routing switches, up to eight VLAN IDs can be input.

inbound: Applies the QoS policy to the incoming packets of the specific VLANs.

outbound: Applies the QoS policy to the outgoing packets of the specific VLANs. Currently, this keyword is used only for EACL.

Description

Use the qos vlan-policy command to apply the QoS policy to the specific VLANs.

Use the undo qos vlan-policy command to cancel the QoS policy applied to the specific VLANs.

A QoS policy can be applied in the following two ways:

l           Port-based application: a QoS policy is applied to the incoming packets or outgoing packets of a port.

l           VLAN-based application: a QoS policy is applied to all the traffic of a VLAN.

A QoS policy applied to all the traffic of a VLAN is also known as a VLAN policy.

Examples

# Apply the VLAN policy test to the incoming packets of VLAN 200, VLAN 300, VLAN 400, VLAN 500, VLAN 600, VLAN 700, VLAN 800, and VLAN 900.

<Sysname> system-view

[Sysname] qos vlan-policy test vlan 200 300 400 500 600 700 800 900 inbound

7.1.3  reset qos vlan-policy

Syntax

reset qos vlan-policy [ vlan vlan-id ]

View

User view

Default Level

2: System level

Parameters

vlan-id: ID of a VLAN.

Description

Use the reset qos vlan-policy command to clear the statistics information about the VLAN policies applied to a VLAN.

Examples

# Clear the statistics information about the VLAN policies applied to VLAN 2.

<Sysname> reset qos vlan-policy vlan 2

 


Chapter 8  Traffic Mirroring Configuration Commands

8.1  Traffic Mirroring Configuration Commands

8.1.1  display qos policy user-defined

Syntax

display qos policy user-defined [ policy-name [ classifier tcl-name ] ]

View

Any view

Default Level

1: Monitor level

Parameters

policy-name: Policy name.

tcl-name: Traffic classification rule name in a policy.

Description

Use the display qos policy user-defined command to display the configuration information about a user-defined policy.

Examples

# Display the configuration information about the user-defined QoS policy test.

<Sysname> display qos policy user-defined test

  User Defined QoS Policy Information:

 

  Policy: test

   Classifier: test

     Behavior: test

      Mirror enable:

        Mirror type: interface

        Mirror destination: Ethernet3/1/1

Table 8-1 Description on the fields of the display qos policy user-defined command

Field

Description

Policy

QoS policy name

Classifier

Traffic classification rule name

Behavior

Traffic behavior name

Mirror enable

Traffic mirroring is enabled

Mirror type

Traffic mirroring type

Mirror destination

Destination of traffic mirroring

 

8.1.2  display traffic behavior user-defined

Syntax

display traffic behavior user-defined [ behavior-name ]

View

Any view

Default Level

1: Monitor level

Parameters

behavior-name: Traffic behavior name.

Description

Use the display traffic behavior user-defined command to display the configuration information about a user-defined traffic behavior.

Examples

# Display the configuration information about the user-defined traffic behavior test.

<Sysname> display traffic behavior user-defined test

  User Defined Behavior Information:

    Behavior: test

      Mirror enable:

        Mirror type: interface

        Mirror destination: Ethernet3/1/1

Table 8-2 Description on the fields of the display traffic behavior user-defined command

Field

Description

Behavior

Traffic behavior name

Mirror enable

Traffic mirroring is enabled

Mirror type

Traffic mirroring type

Mirror destination

Destination of traffic mirroring

 

8.1.3  mirror-to cpu

Syntax

mirror-to cpu

undo mirror-to cpu

View

Traffic behavior view

Default Level

2: System level

Parameters

cpu: Mirrors traffic to the CPU.

Description

Use the mirror-to cpu command to configure the action of mirroring traffic to the CPU for a traffic behavior.

Use the undo mirror-to cpu command to cancel the action of mirroring traffic to the CPU for a traffic behavior.

By default, the action of mirroring traffic to the CPU is not configured for a traffic behavior.

In a traffic behavior, the action of mirroring traffic to a port is mutually exclusive with the action of mirroring traffic to the CPU.

Examples

# Configure the action of mirroring traffic to the CPU for the traffic behavior test.

<Sysname> system-view

[Sysname] traffic behavior test

[Sysname-behavior-test] mirror-to cpu

8.1.4  mirror-to interface

Syntax

mirror-to interface interface-type interface-number

undo mirror-to interface interface-type interface-number

View

Traffic behavior view

Default Level

2: System level

Parameters

interface-type interface-number: Type and number of the destination interface of traffic mirroring.

Description

Use the mirror-to interface command to configure the action of mirroring traffic to a specific port for a traffic behavior.

Use the undo mirror-to interface command to cancel the action of mirroring traffic to a specific port configured for a traffic behavior.

By default, the action of mirroring traffic to a specific port is not configured for a traffic behavior.

Note that:

l           In a traffic behavior, the action of mirroring traffic to a port is mutually exclusive with the action of mirroring traffic to the CPU.

l           If this command is executed multiple times, the new command overwrites the previous command.

Examples

# Configure the action of mirroring traffic to Ethernet 1/1/1 for the traffic behavior test.

<Sysname> system-view

[Sysname] traffic behavior test

[Sysname-behavior-test] mirror-to interface ethernet 1/1/1

 


Chapter 9  EACL Configuration Commands

9.1  EACL Configuration Commands

9.1.1  interface eacl

Syntax

interface eacl interface-number

View

System view

Default Level

2: System level

Parameters

interface-number: Interface number.

Description

Use the interface eacl command to enter EACL service subinterface view.

Currently, only the LSB1NAMB boards of S9500 series support EACL service subinterface view.

Examples

# Enter EACL service subinterface view.

<Sysname> system-view

[Sysname] interface eacl 8/0/1.1

9.1.2  qos binding

Syntax

qos binding interface interface-type interface-number

undo qos binding

View

EACL service subinterface view

Default Level

2: System level

Parameters

interface-type interface-number: Type and number of the interface to be bound to. Currently, only VLAN interfaces are available.

Description

Use the qos binding command to bind an EACL service subinterface to a VLAN interface.

Use the undo qos binding command to cancel the binding.

An EACL service interface is bijective with a layer-3 interface, that is, an EACL service subinterface can be bound to only one layer-3 interface and a layer-3 interface can be bound to only one EACL service subinterface too.

Examples

# Bind EACL service subinterface EACL 8/0/1.1 to the VLAN-interface 100.

<Sysname> system-view

[Sysname] interface eacl 8/0/1.1

[Sysname-EACL8/0/1.1] qos binding interface vlan-interface 100

 


Chapter 10  Outbound Traffic Accounting Configuration Commands

10.1  Outbound Traffic Accounting Configuration Commands

10.1.1  display qos traffic-counter outbound

Syntax

display qos traffic-counter outbound { counter0 | counter1 } slot slot-num

View

Any view

Default Level

1: Monitor level

Parameters

counter0: Counter 0.

counter1: Counter 1.

slot-num: Number of the slot where a board resides.

Description

Use the display qos traffic-counter command to display the outbound traffic statistics collected by the specified counter and the configuration of the counter.

Examples

# Display the statistics about outbound traffic for the board in slot 4.

<Sysname> display qos traffic-counter outbound counter0 slot 4

Slot 4 outbound counter0 mode:

  Interface: all

  VLAN: all

  Local precedence: all

  Drop priority: all

 

 The outgoing packets:

  Unicast: 0 packets

  Multicast: 0 packets

  Broadcast: 0 packets

  Bridge egress filtered packets: 0 packets

  TxQ filtered packets(Due to TxQ congestion): 0 packets

Table 10-1 Description on the fields of the display qos traffic-counter outbound command

Field

Description

Slot 4 outbound counter0 mode

Counter that is used for outbound traffic accounting, and the slot where the involved board is reside

Interface

Interfaces for which outbound traffic is counted

VLAN

VLANs for which outbound traffic is counted

Local precedence

Local precedence values of the counted packets

Drop priority

Drop precedence values of the counted packets

The outgoing packets

The number of outgoing packets

Unicast

The number of unicasts

Multicast

The number of multicasts

Broadcast

The number of broadcasts

Bridge egress filtered packets

The number of packets filtered in the egress direction of the bridge

TxQ filtered packets(Due to TxQ congestion )

The number of packets filtered out due to congestion in the transmit queue.

 

10.1.2  qos traffic-counter outbound

Syntax

qos traffic-counter outbound { counter0 | counter1 } slot slot-num [ interface interface-type interface-number | vlan vlan-id | local-precedence lp-value | drop-priority dp-value ] *

undo qos traffic-counter outbound { counter0 | counter1 } slot slot-num

View

System view

Default Level

2: System level

Parameters

counter0: Counter 0.

counter1: Counter 1.

slot-num: Number of the slot where a board resides. The outbound traffic of the board is monitored.

interface-type interface-number: Type and number of the interface whose outbound traffic is monitored. Currently, Ethernet ports, POS interfaces, and RPR interfaces are supported.

vlan-id: ID of the VLAN whose outbound traffic is monitored.

lp-value: Local precedence value. The outbound traffic with the specified local precedence value is monitored.

dp-value: Drop precedence. The outbound traffic with the specified drop precedence value is monitored.

Description

Use the qos traffic-counter outbound command to enable the outbound traffic accounting function and specify the type of outbound traffic.

Use the undo qos traffic-counter outbound command to disable the outbound traffic accounting function.

By default, the outbound traffic accounting function is disabled.

A board provides two counters for outbound traffic accounting. The monitored object can be an interface, a VLAN, a local precedence value, or a drop precedence value.

l           If no interface is specified, the outbound traffic of all the interfaces on the board is monitored.

l           If no VLAN is specified, the outbound traffic of all the VLANs is monitored.

l           If no local precedence value is specified, the outbound traffic is monitored regardless of the local precedence.

l           If no drop precedence value is specified, the outbound traffic is monitored regardless of the drop precedence.

 

&  Note:

l      After the qos traffic-counter outbound command is used to reset the monitored object for a board, the counter is rest automatically.

l      For the outbound traffic accounting function configured on XP4B, XP4CA, and D boards, the monitored object of the counter cannot be an interface.

 

Examples

# Enable counter 0 in slot 4 to collect statistics information about the outbound traffic of Ethernet 1/1/1.

<Sysname> system-view

[Sysname] qos traffic-counter outbound counter0 slot 4 interface ethernet1/1/1

10.1.3  reset qos traffic-counter outbound

Syntax

reset qos traffic-counter outbound { counter0 | counter1 } slot slot-num

View

User view

Default Level

2: System level

Parameters

counter0: Counter 0.

counter1: Counter 1.

slot-num: Number of the slot where the board resides.

Description

Use the reset qos traffic-counter outbound command to clear the outbound traffic statistics information collected by a counter.

Examples

# Clear the outbound traffic statistics information collected by counter 0 on the board in slot 4.

<Sysname> reset qos traffic-counter outbound counter0 slot 4

 

  • 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 Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网