H3C S3600 Series EPON OLT Switches Command Manual-Release 3103-6W100

23-QoS Commands

Chapters Download  (244.19 KB)

23-QoS Commands

Table of Contents

1 Traffic Policing and Line Rate Configuration Commands· 1-1

Traffic Policing Configuration Commands· 1-1

bandwidth downstream·· 1-1

bandwidth downstream policy enable· 1-2

uni port-policy· 1-3

Line Rate Configuration Commands· 1-4

display qos lr interface· 1-4

qos lr 1-5

High-Priority Packet Buffer Configuration Commands· 1-5

bandwidth downstream high-priority enable· 1-5

bandwidth downstream priority-queue· 1-6

2 QoS Policy Configuration Commands· 2-1

Class Configuration Commands· 2-1

display traffic classifier 2-1

if-match· 2-2

traffic classifier 2-6

Traffic Behavior Configuration Commands· 2-7

accounting· 2-7

car 2-8

display traffic behavior 2-9

filter 2-11

redirect 2-11

remark customer-vlan-id· 2-12

remark dot1p· 2-13

remark drop-precedence· 2-14

remark dscp· 2-14

remark ip-precedence· 2-15

remark local-precedence· 2-16

remark service-vlan-id· 2-17

traffic behavior 2-17

QoS Policy Configuration and Application Commands· 2-18

classifier behavior 2-18

display qos policy· 2-19

display qos policy global 2-20

display qos policy interface· 2-21

display qos vlan-policy· 2-22

qos apply policy (interface view, port group view) 2-24

qos apply policy global 2-24

qos policy· 2-25

qos vlan-policy· 2-26

reset qos policy global 2-26

reset qos vlan-policy· 2-27

3 Congestion Management Configuration Commands· 3-1

SP Queuing Configuration Commands· 3-1

display qos sp· 3-1

qos sp· 3-2

WRR Queuing Configuration Commands· 3-2

display qos wrr interface· 3-2

qos wrr 3-3

qos wrr group sp· 3-4

qos wrr weight 3-5

WFQ Configuration Commands· 3-6

display qos wfq interface· 3-6

qos wfq· 3-7

qos wfq weight 3-7

4 Priority Mapping Configuration Commands· 4-1

Priority Mapping Table Configuration Commands· 4-1

display qos map-table· 4-1

import 4-2

priority-queue-mapping· 4-2

qos cos-local-precedence-map· 4-4

qos map-table· 4-6

uni classification-marking· 4-6

Port Priority Configuration Commands· 4-8

qos priority· 4-8

Trusted Precedence Type Configuration Commands· 4-9

display qos trust interface· 4-9

qos trust 4-10

5 Traffic Mirroring Configuration Commands· 5-1

Traffic Mirroring Configuration Commands· 5-1

mirror-to cpu· 5-1

mirror-to interface· 5-1

 


Traffic Policing Configuration Commands

 

On the S3600 series EPON OLT switches, you can use QoS policies to perform traffic policing for Ethernet ports and OLT ports. For details about the related commands, refer to QoS Policy Configuration Commands. This section introduces the traffic policing configuration commands for UNI ports.

 

bandwidth downstream

Syntax

bandwidth downstream { max-bandwidth value | max-burstsize value } *

undo bandwidth downstream { max-bandwidth | max-burstsize } *

View

ONU port view

Default Level

2: System level

Parameters

max-bandwidth value: Specifies the maximum bandwidth in kbps. The value argument ranges from 0 to 999994. The system default is 999994 kbps.

max-burstsize value: Specifies the maximum burst buffer size in bytes. The value argument ranges from 0 to 8388480. The system default is 8388480 bytes.

Description

Use the bandwidth downstream command to configure the downlink bandwidth limit.

Use the undo bandwidth downstream command to restore the default.

Related commands: bandwidth downstream policy enable.

 

 

l          This command takes effect only when the downlink bandwidth allocation policy is enabled. 

l          The configured downlink bandwidth limit takes effect only on known unicasts, but not on unknown unicasts, multicasts, or broadcasts.

 

Examples

# Set the downstream bandwidth limit to 800000 kbps and maximum burst size to 8000000 bytes on ONU 1/0/1:1.

<Sysname> system-view

[Sysname] interface onu 1/0/1:1

[Sysname-Onu1/0/1:1] bandwidth downstream max-bandwidth 800000 max-burstsize 8000000

bandwidth downstream policy enable

Syntax

bandwidth downstream policy enable

undo bandwidth downstream policy enable

View

ONU port view

Default Level

2: System level

Parameters

None

Description

Use the bandwidth downstream command to enable the downlink bandwidth allocation policy for the ONU port.

Use the undo bandwidth downstream command to restore the default.

By default, the downlink bandwidth allocation policy is disabled.

Related commands: bandwidth downstream.

 

 

The downlink bandwidth limit configuration commands take effect only when the downlink bandwidth allocation policy is enabled.

 

Examples

# Enable the downlink bandwidth allocation policy for ONU 1/0/1:1.

<Sysname> system-view

[Sysname] interface onu 1/0/1:1

[Sysname-Onu1/0/1:1] bandwidth downstream policy enable

uni port-policy

Syntax

uni uni-number port-policy { { inbound { cir cir-value | bucket-depth bucket-depth-value | extra-burst-size ebs-value }* } | outbound cir cir-value [ pir pir-value] }

undo uni uni-number port-policy { inbound | outbound }

View

ONU port view

Default Level

2: System level

Parameters

uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.

inbound: Configure the traffic policing parameters for inbound packets on the UNI port.

cir-value: Committed information rate (CIR) value – guaranteed bandwidth, in the range 0 to 1024000 Kbps. It must be a multiple of 64 and defaults to 102400.

bucket-depth-value: Bucket depth – the maximum burst bandwidth, in the range 1522 to 65535 bytes. The default is 1522.

ebs-value: Available extra bandwidth when the maximum burst bandwidth is exceeded. It is in the range 0 to 1522 bytes, and the default is 0.

pir-value: Peak information rate, in the range of 1 to 1024000 kbps. It must be a multiple of 64.

outbound: Configure the traffic policing parameters for outbound packets on the UNI port.

Description

Use the uni port-policing command to configure the traffic policing parameters for the inbound/outbound packets on a UNI port.

Use the undo uni port-policy command to restore the traffic policing parameters for the inbound/outbound packets on a UNI port to defaults.

By default, no traffic policing parameter is configured for a UNI.

Examples

# Configure the traffic policing parameters for UNI 1.

<Sysname> system-view

[Sysname] interface onu 1/0/1:1

[Sysname-Onu1/0/1:1] uni 1 port-policy inbound cir 25600 bucket-depth 5608 extra-burst-size 800

Line Rate Configuration Commands

display qos lr interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

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

Description

Use the display qos lr interface command to view the line rate configuration information and operational statistics on a specified interface or all the interfaces.

If no interface is specified, the line rate configuration information and operational statistics on all the interfaces are displayed.

Examples

# Display the line rate configuration information and operational statistics on all the interfaces.

<Sysname> display qos lr interface

Interface: Olt1/0/1

Direction: Outbound

 CIR 640 (kbps),  CBS 50000 (byte)

Table 1-1 display qos lr command output description

Field

Description

Interface

Interface type and interface number

Direction

The direction in which the line rate configuration is applied: inbound or outbound

Currently, the S3600 series EPON OLT switches support line rate only in the outbound direction.

CIR

Committed information rate (CIR) in kbps

CBS

Committed burst size (CBS) in bytes, that is, the depth of the token bucket for holding bursty traffic

 

qos lr

Syntax

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

undo qos lr outbound

View

Interface view, port group view, OLT port view

Default Level

2: System level

Parameters

outbound: Limits the rate of outgoing packets on the interface.

cir committed-information-rate: Specifies the committed information rate (CIR) in kbps. The range of committed-information-rate is from 64 to 1000000, and committed-information-rate argument must be a multiple of 64.

cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes, in the range of 4000 to 16000000. The default CBS is the traffic transmitted at the rate of CIR in 500 Milliseconds.

Description

Use the qos lr command to limit the rate of incoming packets or outgoing packets on the interface.

Use the undo qos lr command to remove the rate limit.

Settings in interface view are effective on the current interface; settings in port group view are effective on all ports in the port group.

Examples

# Limit the rate of outgoing packets on OLT 1/0/1, with CIR 256 kbps, CBS 5000 bytes.

<Sysname> system-view

[Sysname] interface olt 1/0/1

[Sysname-Olt1/0/1] qos lr outbound cir 256 cbs 5000

High-Priority Packet Buffer Configuration Commands

bandwidth downstream high-priority enable

Syntax

bandwidth downstream high-priority enable

undo bandwidth downstream high-priority enable

View

ONU port view

Default Level

2: System level

Parameters

None

Description

Use the bandwidth downstream high-priority enable command to reserve high-priority buffer for the ONU corresponding to the current port.

Use the undo bandwidth downstream high-priority enable command to restore the default.

By default, no high-priority packet buffer is reserved for any ONU.

Related commands: bandwidth downstream priority-queue.

 

 

The high-priority packet buffer configuration takes effect only when the downlink bandwidth allocation policy is enabled.

 

Examples

# Enable the high-priority packet buffer for the ONU corresponding to ONU 1/0/1:1.

<Sysname> system-view

[Sysname] interface onu 1/0/1:1

[Sysname-Onu1/0/1:1] bandwidth downstream high-priority enable

bandwidth downstream priority-queue

Syntax

bandwidth downstream priority-queue priority high-priority-reserved value

undo bandwidth downstream priority-queue high-priority-reserved

View

OLT port view

Default Level

2: System level

Parameters

priority: Queue priority, in the range 0 to 7.

value: Buffer size reserved for packets of high-priority queues, in bytes. It is in the range 0 to 131070 and defaults to 0.

Description

Use the bandwidth downstream priority-queue command to configure thresholds for high-priority queues and reserve user-defined buffer sizes for high-priority queues based on the thresholds.

Use the undo bandwidth downstream priority-queue high-priority-reserved command to cancel the configuration.

By default, no priority threshold or buffer size is set for high-priority packet buffer.

The downlink packets on an OLT port are considered as high-priority only if their priority is greater than or equal to the priority value.

This command just configures buffer parameters. To make these parameters take effect, use the bandwidth downstream high-priority enable command to enable high-priority packet buffer for the specified ONU.

Examples

# Reserve 100 bytes of buffer for the packets whose priorities are greater than or equal to 3.

<Sysname> system-view

[Sysname] interface olt 1/0/1

[Sysname-Olt1/0/1] bandwidth downstream priority-queue 3 high-priority-reserved 100

 


Class Configuration Commands

display traffic classifier

Syntax

display traffic classifier user-defined [ tcl-name ]

View

Any view

Default Level

1: Monitor level

Parameters

user-defined: Displays user-defined classes.

tcl-name: Name of a class.

Description

Use the display traffic classifier command to display information about classes.

If no class name is specified, information about all system-defined or user-defined classes is displayed.

Examples

# Display information about all 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

Table 2-1 display traffic classifier user-defined command output description

Field

Description

User Defined Classifier Information

User-defined class information

Classifier

Class name and its match criteria

Operator

Logical relationship between match criteria

Rule(s)

Match criteria

 

if-match

Syntax

if-match match-criteria

undo if-match match-criteria

View

Class view

Default Level

2: System level

Parameters

not: Specifies to match packets not conforming to the specified criterion.

match-criteria: Match criterion. Table 2-2 shows the available criteria.

Table 2-2 The keyword and argument combinations for the match-criteria argument

Keyword and argument combination

Description

acl { access-list-number | name acl-name }

Specifies to match an IPv4 ACL specified by its number or name. The access-list-number argument specifies an ACL by its number, which ranges from 2000 to 4999; the name acl-name keyword-argument combination specifies an ACL by its name.

In a class configured with the operator and, the logical relationship between rules defined in the referenced IPv4 ACL is or.

acl ipv6 { access-list-number | name acl-name }

Specifies to match an IPv6 ACL specified by its number or name. The access-list-number argument specifies an ACL by its number, which ranges from 2000 to 3999; the name acl-name keyword-argument combination specifies an ACL by its name.

In a class configured with the operator and, the logical relationship between rules defined in the referenced IPv6 ACL is or.

any

Match all packets

dscp dscp-list

Match DSCP values. The dscp-list is a list of up to 8 DSCP values. A DSCP value is in the range 0 to 63.

destination-mac mac-address

Match a destination MAC address

customer-dot1p 8021p-list

Match the 802.1p priority of the customer network. The 8021p-list argument is a list of up to eight 802.1p priority values. An 802.1p priority is in the range 0 to 7.

service-dot1p 8021p-list

Match the 802.1p priority of the service provider network. The 8021p-list argument is a list of up to eight 802.1p priority values. An 802.1p priority is in the range 0 to 7.

ip-precedence ip-precedence-list

Match IP precedence. The ip-precedence-list is a list of up to 8 IP precedence values. An IP precedence is in the range of 0 to 7.

protocol protocol-name

Match a protocol. The protocol-name can be IP or IPv6.

source-mac mac-address

Match a source MAC address

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

Match the VLAN IDs of customer networks. The vlan-id-list is a list of up to 8 VLAN IDs. The vlan-id1 to vlan-id2 specifies a VLAN ID range, where the vlan-id1 must be smaller than the vlan-id2. A VLAN ID is in the range of 1 to 4094.

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

Match the VLAN IDs of ISP networks. The vlan-id-list is a list of up to 8 VLAN IDs. The vlan-id1 to vlan-id2 specifies a VLAN ID range, where the vlan-id1 must be smaller than the vlan-id2. A VLAN ID is in the range of 1 to 4094.

 

The undo if-match [ not ] command provides a special form to change the previous ACL referenced for traffic classification into a new ACL: undo if-match [ not ] acl [ ipv6 ] { acl-number | name acl-name } [ update acl [ ipv6 ] { acl-number | name acl-name } ].

 

Description

Use the if-match command to define a match criterion.

Use the undo if-match command to remove the match criterion.

When defining match criteria, note the following:

1)            Define an ACL-based match criterion

l          If the ACL referenced in the if-match command does not exist, the class cannot be applied to hardware.

l          For a class, you can reference an ACL twice by its name and number respectively with the if-match command.

2)        Define a criterion to match a destination MAC address

l          You can configure multiple destination MAC address match criteria in a class.

l          A destination MAC address match criterion is significant only to Ethernet interfaces.

3)        Define a criterion to match a source MAC address

l          You can configure multiple source MAC address match criteria in a class.

l          A criterion to match a source MAC address is significant only to Ethernet interfaces.

4)        Define a criterion to match DSCP precedence values

l          You can configure multiple DSCP precedence match criteria in a class. All the defined DSCP values are arranged in ascending order automatically.

l          You can configure up to eight DSCP values in one command line. If multiple identical DSCP values are specified, the system considers them as one. If a packet matches one of the defined DSCP values, it is considered matching the if-match clause.

l          To delete a criterion matching DSCP values, the specified DSCP values must be identical with those defined in the rule (sequence may be different).

5)        Define a criterion to match the 802.1p priority values of the customer network or service provider network

l          You can configure multiple 802.1p priority match criteria in a class. All the defined 802.1p values are arranged in ascending order automatically.

l          You can configure up to eight 802.1p priority values in one command line. If the same 802.1p priority value is specified multiple times, the system considers them as one. If a packet matches one of the defined 802.1p priority values, it is considered matching the if-match clause.

l          To delete a criterion matching 802.1p priority values, the specified 802.1p priority values in the command must be identical with those defined in the criterion (sequence may be different).

6)        Define a criterion to match IP precedence values

l          You can configure multiple IP precedence match criteria in a class. The defined IP precedence values are arranged automatically in ascending order.

l          You can configure up to eight IP precedence values in one command line. If the same IP precedence is specified multiple times, the system considers them as one. If a packet matches one of the defined IP precedence values, it is considered matching the if-match clause.

l          To delete a criterion matching IP precedence values, the specified IP precedence values in the command must be identical with those defined in the criterion (sequence may be different).

7)        Define a criterion to match customer network VLAN IDs or service provider network VLAN IDs

l          You can configure multiple VLAN ID match criteria in a class. The defined VLAN IDs are automatically arranged in ascending order.

l          You can configure multiple VLAN IDs in one command line. If the same VLAN ID is specified multiple times, the system considers them as one. If a packet matches one of the defined VLAN IDs, it is considered matching the if-match clause.

l          To delete a criterion matching VLAN IDs, the specified VLAN IDs in the command must be identical with those defined in the criterion (sequence may be different).

 

The matching criteria listed below must be unique in a traffic class with the operator being AND. Therefore, even though you can define multiple if-match clauses for these matching criteria or input multiple values for a list argument (such as the 8021p-list argument) listed below in a traffic class, avoid doing that. Otherwise, the QoS policy referencing the class cannot be applied to interfaces successfully.

l          customer-dot1p 8021p-list

l          customer-vlan-id vlan-id-list

l          destination-mac mac-address

l          dscp dscp-list

l          ip-precedence ip-precedence-list

l          service-dot1p 8021p-list

l          service-vlan-id vlan-id-list

l          source-mac mac-address

To create multiple if-match clauses or specify multiple values for a list argument for any of the matching criteria listed above, ensure that the operator of the class is OR.

 

Related commands: traffic classifier.

Examples

# Define a match criterion for class class1 to match the 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 match criterion for class class2 to match the 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 match criterion for class class1 to match ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a match criterion for 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 class class1 to match IPv6 ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class1

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

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

<Sysname> system-view

[Sysname] traffic classifier class1

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

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

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match any

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

<Sysname> system-view

[Sysname] traffic classifier class1 operator or

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

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

<Sysname> system-view

[Sysname] traffic classifier class1 operator or

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

# Define a match criterion for class class1 to match the packets with a local precedence of 1 or 6.

<Sysname> system-view

[Sysname] traffic classifier class1 operator or

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

# Define a match criterion for 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 class class1 to match the packets with customer network VLAN ID 1, 6, or 9.

<Sysname> system-view

[Sysname] traffic classifier class1 operator or

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

# Change the match criterion of class class1 from ACL 2008 to ACL 2009.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] undo if-match acl 2008 update acl 2009

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 match criteria in the class as logic AND. That is, the packets that match all the criteria belong to this class.

or: Specifies the relationship between the criteria in the class as logic OR. That is, the packets that match any of the criteria belong to this class.

tcl-name: Class name.

Description

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

Use the undo traffic classifier command to remove a class.

By default, the relationship between match criteria is and.

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

Examples

# Define a class named class1.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1]

Traffic Behavior Configuration Commands

accounting

Syntax

accounting

undo accounting

View

Traffic behavior view

Default Level

2: System level

Parameters

None

Description

Use the accounting command to enable traffic accounting for the traffic behavior.

Use the undo accounting command to disable traffic accounting. You can use the display qos policy interface command and the display qos vlan-policy command to view the related statistics information.

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

Examples

# Configure traffic accounting for traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] accounting

car

Syntax

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

undo car

View

Traffic behavior view

Default Level

2: System level

Parameters

cir committed-information-rate: Specifies the committed information rate (CIR) in kbps. The committed-information-rate argument ranges from 64 to 10000000 and must be a multiple of 64.

cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes. The committed-burst-size argument ranges from 4000 to 16000000. The default CBS is the traffic transmitted at the rate of CIR in 500 Milliseconds.

ebs excess-burst-size: Specifies excess burst size (EBS) in bytes. The excess-burst-size argument ranges from 0 to 16000000, the default is 0.

pir peak-information-rate: Specifies the peak information rate (PIR) in kbps. The peak-information-rate argument ranges from 64 to 10000000.

green action: Specifies the action to be conducted for the traffic conforming to CIR. The action argument can be:

l          discard: Drops the packets.

l          pass: Forwards the packets.

l          remark-dscp-pass new-dscp: Marks the packets with a new DSCP precedence and forwards them to their destinations. The new-dscp argument is in the range 0 to 63.

By default, packets conforming to CIR are forwarded.

red action: Specifies the action to be conducted for the traffic conforms to neither CIR nor PIR. The action argument can be:

l          discard: Drops the packets.

l          pass: Forwards the packets.

l          remark-dscp-pass new-dscp: Marks the packets with a new DSCP precedence and forwards them to their destinations. The new-dscp argument is in the range 0 to 63.

By default, packets conforming to neither CIR nor PIR are dropped.

yellow action: Specifies the action to be conducted for the traffic conforms to PIR but does not conform to CIR. The action argument can be:

l          discard: Drops the packets.

l          pass: Forwards the packets.

l          remark-dscp-pass new-dscp: Marks the packets with a new DSCP precedence and forwards them to their destinations. The new-dscp argument is in the range 0 to 63.

By default, packets conforming to PIR but not conforming to CIR are forwarded.

Description

Use the car command to configure a CAR policy for the traffic behavior.

Use the undo car command to remove a CAR policy from the traffic behavior.

If this command is configured multiple times for the same traffic behavior, the last configuration takes effect.

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

Examples

# Configure a CAR policy for traffic behavior database. The CIR is 256 kbps, CBS is 5000 bytes and EBS is 0. The conforming packets are allowed to pass, and excess packets are marked with DSCP precedence 0 and forwarded.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] car cir 256 cbs 50000 ebs 0 green pass red remark-dscp-pass 0

display traffic behavior

Syntax

display traffic behavior user-defined [ behavior-name ]

View

Any view

Default Level

1: Monitor level

Parameters

user-defined: Displays user-defined traffic behaviors.

behavior-name: Behavior name. If no traffic behavior is specified, the information of all the user-defined behaviors is displayed.

Description

Use the display traffic behavior command to display traffic behavior information.

Examples

# Display user-defined traffic behaviors.

<Sysname> display traffic behavior user-defined

  User Defined Behavior Information:

    Behavior: 1

      Filter enable: deny

      Mirror enable:

        Mirror type: cpu

      Accounting enable

      Committed Access Rate:

        CIR 64 (kbps), CBS 4000 (byte), EBS 4000 (byte)

        Green Action: pass

        Red Action: discard

        Yellow Action: remark dscp af23 and pass

      Redirect enable:

        Redirect type: cpu

        Redirect destination: cpu

      Marking:

        Remark dot1p COS 2

      Marking:

        Remark Customer VLAN ID 100

      Marking:

        Remark drop precedence 1

      Marking:

        Remark IP precedence 1

      Marking:

        Remark local precedence 1

      Marking:

        Remark qos local ID 1

      Marking:

        Remark Service VLAN ID 200 

Table 2-3 display traffic behavior user-defined command output description

Field

Description

 

User Defined Behavior Information

User-defined behavior information.

 

Behavior

Name of a behavior.

 

Remark

Type of precedence marked for traffic, which can be DSCP, IP precedence, MPLS EXP, FR DE, dot1p (COS), ATM CLP, qos local ID, local precedence, drop precedence, customer VLAN ID, service VLAN ID, forwarding class, or Bfi ID. For detailed information about these precedence types, refer to Traffic Behavior Configuration Commands.

 

Accounting enable

Traffic accounting mode.

 

Filter enable

Traffic filtering option: permit or deny.

 

Committed Access Rate

Information about the CAR policy.

 

Green Action

Action to be taken on green packets, which can be pass, remark-dscp-pass or discard.

 

Red Action

Action to be taken on red packets, which can be pass, remark-dscp-pass or discard.

 

Yellow Action

Action to be taken on yellow packets, which can be pass, remark-dscp-pass or discard.

 

Mirror enable

Traffic mirroring configuration information.

Mirror type

Traffic mirroring type, which can be VLAN, CPU, or interface.

Mirror destination

Mirroring destination, CPU or interface name.

Redirect enable

Traffic redirecting configuration information.

Redirect type

Traffic redirecting type, which can be redirecting  the CPU, an interface, or the next-hop.

Redirect destination

Traffic redirecting destination, an interface name, the IP address of the next hop, or the CPU

 

filter

Syntax

filter { deny | permit }

undo filter

View

Traffic behavior view

Default Level

2: System level

Parameters

deny: Drops the packets.

permit: Permits the packet to pass through.

Description

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

Use the undo filter command to remove the traffic filtering action.

Examples

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

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] filter deny

redirect

Syntax

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

undo redirect { cpu | interface interface-type interface-number | next-hop }

View

Traffic behavior view

Default Level

2: System level

Parameters

cpu: Redirects traffic to the CPU.

interface: Redirects traffic to the specified interface.

interface-type interface-number: Interface identified by an interface number and interface type.

next-hop: Redirects traffic to a next hop.

ipv4-add: IPv4 address of the next hop.

ipv6-add: IPv6 address of the next hop. If the IPv6 address is a link-local address, you must specify an interface for the IPv6 address of the next hop; if the IPv6 address is not a link-local address, you need not specify an interface for the IPv6 address of the next hop.

Description

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

Use the undo redirect command to remove the traffic redirect action.

 

The action of redirecting traffic to CPU, the action of redirecting traffic to an interface, and the action of redirecting traffic to the next hop are mutually exclusive with each other in the same traffic behavior.

 

Examples

# Configure the action of redirecting traffic to OLT 1/0/1 for traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

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

remark customer-vlan-id

Syntax

remark customer-vlan-id vlan-id-value

undo remark customer-vlan-id

View

Traffic behavior view

Default Level

2: System level

Parameters

vlan-id-value: Customer network VLAN ID to be marked for packets, in the range of 1 to 4094.

Description

Use the remark customer-vlan-id command to configure the action of setting the specified customer network VLAN ID for packets for the traffic behavior.

Use the undo remark customer-vlan-id command to remove the action.

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

Examples

# Set the customer network VLAN ID to 2.

<Sysname> system-view

[Sysname] traffic behavior database

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

remark dot1p

Syntax

remark dot1p 8021p

undo remark dot1p

View

Traffic behavior view

Default Level

2: System level

Parameters

8021p: 802.1p priority to be marked for packets, in the range of 0 to 7.

Description

Use the remark dot1p command to configure the action of setting the specified 802.1p priority for packets.

Use the undo remark dot1p command to remove the action.

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

Examples

# Set the 802.1p priority to 2.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark dot1p 2

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 to be marked for packets, in the range of 0 to 2.

Description

Use the remark drop-precedence command to configure the action of setting the specified drop precedence for packets.

Use the undo remark drop-precedence command to remove the action.

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

Examples

# Set drop precedence 2 for packets.

<Sysname> system-view

[Sysname] traffic behavior database

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

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 or a keyword, as shown in Table 2-4.

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 configure the action of setting the specified DSCP value for packets.

Use the undo remark dscp command to remove the action.

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

Examples

# Set the DSCP value of packets to 6.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark dscp 6

remark ip-precedence

Syntax

remark ip-precedence ip-precedence-value

undo remark ip-precedence

View

Traffic behavior view

Default Level

2: System level

Parameters

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

Description

Use the remark ip-precedence command to configure the action of setting the specified IP precedence for packets.

Use the undo remark ip-precedence command to remove the action.

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

Examples

# Set the IP precedence of packets to 6.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark ip-precedence 6

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 for packets, in the range of 0 to 7.

Description

Use the remark local-precedence command to configure the action of setting the specified local precedence for packets.

Use the undo remark local-precedence command to remove the action.

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

Examples

# Set the local precedence of packets to 2.

<Sysname> system-view

[Sysname] traffic behavior database

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

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 to be marked for packets, in the range of 1 to 4094.

Description

Use the remark service-vlan-id command to configure the action of setting the specified service provider network VLAN ID for packets.

Use the undo remark service-vlan-id command to remove the action.

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

Examples

# Configure the action of marking packets with service provider network VLAN ID 666.

<Sysname> system-view

[Sysname] traffic behavior b1

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

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 create a traffic behavior and enter traffic behavior view.

Use the undo traffic classifier command to remove a traffic behavior.

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

Examples

# Create a traffic behavior named behavior1.

<Sysname> system-view

[Sysname] traffic behavior behavior1

[Sysname-behavior-behavior1]

 

QoS Policy Configuration and Application Commands

classifier behavior

Syntax

classifier tcl-name behavior behavior-name

undo classifier tcl-name

View

Policy view

Default Level

2: System level

Parameters

tcl-name: Class name.

behavior-name: Behavior name.

Description

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

Use the undo classifier command to remove a class from the policy.

Note that:

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

l          If the class and traffic behavior specified for the command do not exist, the system creates a null class and a null traffic behavior.

Related commands: qos policy.

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

[Sysname-qospolicy-user1]

display qos policy

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

user-defined: Displays user-defined QoS policies.

policy-name: QoS policy name, a string of 1 to 31 characters. If no policy is specified, configuration information of all the policies is displayed.

tcl-name: Class name.

Description

Use the display qos policy command to display QoS policy configuration information.

Examples

# Display the configuration information of user-defined QoS policies.

<Sysname> display qos policy user-defined

  User Defined QoS Policy Information:

  Policy: 1

   Classifier: 1

     Behavior: 1

      Filter enable: deny

      Mirror enable:

        Mirror type: cpu

      Accounting enable

      Committed Access Rate:

        CIR 64 (kbps), CBS 4000 (byte), EBS 4000 (byte)

        Green Action: remark dscp af23 and pass

        Red Action: discard

        Yellow Action: pass

      Redirect enable:

        Redirect type: interface

        Redirect destination: Olt1/0/1

      Marking:

        Remark dot1p COS 2

      Marking:

        Remark Customer VLAN ID 100

      Marking:

        Remark drop precedence 1

      Marking:

        Remark IP precedence 1

      Marking:

        Remark local precedence 1

      Marking:

        Remark qos local ID 1

      Marking:

        Remark Service VLAN ID 200 

Table 2-5 display qos policy command output description

Field

Description

Policy

Policy name

Classifier

Class name

A policy can contain multiple classes, and each class is associated with a traffic behavior. A class can be configured with multiple match criteria. Refer to the traffic classifier command for related information.

Behavior

Behavior associated with the class. A behavior is associated with a class. It can be configured with multiple actions. Refer to the traffic behavior command for related information.

 

display qos policy global

Syntax

display qos policy global [ inbound ]

View

Any view

Default Level

1: Monitor level

Parameters

inbound: Displays the QoS policy applied globally in the inbound direction of all ports.

Description

Use the display qos policy global command to display information about the QoS policy applied globally.

Examples

# Display information about the global QoS policy applied in the inbound direction.

<Sysname> display qos policy global inbound

  Direction: Inbound

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match any

     Behavior: 1

      Filter Enable: deny

      Mirror enable:

        Mirror type: cpu

      Accounting Enable:      

Table 2-6 display qos policy global command output description

Field

Description

Policy

Policy name and its contents

Classifier

Class name and its contents.

Operator

Logical relationship between match criteria

Rule(s)

Match criteria

Behavior

Name of the traffic behavior, and the actions in the traffic behavior

 

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: Specify an interface by its type and number.

inbound: Specifies the inbound direction.

outbound: Specifies the outbound direction. Currently, the S3600 series EPON OLT switches do not support applying a QoS policy in the outbound direction of a port.

Description

Use the display qos policy interface command to display QoS policy configuration and operational information on an interface or all interfaces.

Examples

# Display the QoS configuration and operational information on OLT 1/0/1.

<Sysname> display qos policy interface Olt1/0/1

  Interface: Olt1/0/1

  Direction: Inbound

  Policy: 1

   Classifier: 1 (Failed)

     Operator: AND

     Rule(s) : If-match any

     Behavior: 1

      Filter Enable: deny

      Mirror enable:

        Mirror type: cpu

      Accounting Enable:

      Committed Access Rate:

        CIR 64 (kbps), CBS 4000 (byte), EBS 4000 (byte)

        Green Action: remark dscp af23 and pass

        Red Action: discard

        Yellow Action: pass

Table 2-7 display qos policy interface command output description

Field

Description

Interface

Interface type and interface number

Direction

The direction in which the policy is applied to the interface

Policy

Name of the policy applied to the interface

Classifier

Class name and corresponding configuration information

Operator

Logical relationship between match criteria in the class

Rule(s)

Match criteria in the class

Behavior

Behavior name and corresponding configuration information

 

display qos vlan-policy

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

name policy-name: Displays the information of the VLAN QoS policy specified by its name, a string of 1 to 31 characters.

vlan vlan-id: Displays the QoS policy applied to the specified VLAN.

inbound: Displays the QoS policy applied to the inbound direction of the specified VLAN.

Description

Use the display qos vlan-policy command to display VLAN QoS policy information.

Examples

# Display information about the VLAN QoS policy test.

<Sysname> display qos vlan-policy name test

  Policy test

    Vlan 100: inbound 

Table 2-8 display qos vlan-policy command output description

Field

Description

Policy

Name of the QoS policy

Vlan

ID of the VLAN where the VLAN policy is applied

Inbound

The QoS policy is applied in the inbound direction of the VLAN.

 

# Display the QoS policy applied to VLAN 2.

<Sysname> display qos vlan-policy vlan 2

  Vlan 2

  Direction: Inbound

  Policy: 1

   Classifier: 1 (Failed)

     Operator: AND

     Rule(s) : If-match any

     Behavior: 1

      Filter Enable: deny

      Mirror enable:

        Mirror type: cpu

      Accounting Enable:

      Committed Access Rate:

        CIR 64 (kbps), CBS 4000 (byte), EBS 4000 (byte)

        Green Action: remark dscp af23 and pass

        Red Action: discard

        Yellow Action: pass

   Classifier: 55 (Failed)

     Operator: AND

     Rule(s) : -none-

     Behavior: 55

      -none-  

Table 2-9 display qos vlan-policy command output description

Field

Description

Vlan

ID of the VLAN where the QoS policy is applied

Direction

The direction in which the QoS policy is applied for the VLAN.

Classifier

Class name and its contents

Operator

Logical relationship between match criteria

Rule(s)

Match criteria

Behavior

Name of the behavior, and its actions

 

qos apply policy (interface view, port group view)

Syntax

qos apply policy policy-name { inbound | outbound }

undo qos apply policy { inbound | outbound }

View

Interface view, port group view, OLT port view, ONU port view

Default Level

2: System level

Parameters

inbound: Inbound direction.

outbound: Outbound direction. Currently, the S3600 series EPON OLT switches do not support applying a QoS policy in the outbound direction of a port.

policy-name: Specifies a policy name, a string of 1 to 31 characters.

Description

Use the qos apply policy command to apply a QoS policy.

Use the undo qos apply policy command to remove the QoS policy.

Note that: whether a QoS policy can be applied to an ONU port depends on the support of the ONU for actions in the QoS policy. For details, refer to the user manual of the ONU.

Examples

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

<Sysname> system-view

[Sysname] interface Olt 1/0/1

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

qos apply policy global

Syntax

qos apply policy policy-name global inbound

undo qos apply policy global inbound

View

System view

Default Level

2: System level

Parameters

policy-name: Policy name, a string of 1 to 31 characters.

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

Description

Use the qos apply policy global command to apply a QoS policy globally. A global QoS policy takes effect on all inbound traffic.

Use the undo qos apply policy global command to cancel the global application of the QoS policy.

Examples

# Apply the QoS policy user1 in the inbound direction globally.

<Sysname> system-view

[Sysname] qos apply policy user1 global inbound

qos policy

Syntax

qos policy policy-name

undo qos policy policy-name

View

System view

Default Level

2: System level

Parameters

policy-name: Policy name, a string of 1 to 31 characters.

Description

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

Use the undo qos policy command to remove a policy.

A policy applied to an interface cannot be deleted directly. You need to cancel application of the policy on the interface before deleting the policy with the undo qos policy command.

Related commands: classifier behavior, qos apply policy.

Examples

# Define a policy named user1.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1]

qos vlan-policy

Syntax

qos vlan-policy policy-name vlan vlan-id-list inbound

undo qos vlan-policy vlan vlan-id-list inbound

View

System view

Default Level

2: System level

Parameters

policy-name: QoS policy name, a string of 1 to 31 characters.

vlan-id-list: A list of up to eight VLAN IDs in the range 1 to 4094. You can input individual discontinuous VLAN IDs and VLAN ID ranges in the form of start-vlan-id to end-vlan-id where the start VLAN ID must be smaller than the end VLAN ID. Each item in the VLAN list is separated by a space.

inbound: Applies the QoS policy to the incoming packets in the specified VLAN(s).

Description

Use the qos vlan-policy command to apply a QoS policy to the specified VLAN(s).

Use the undo qos vlan-policy command to remove the QoS policy applied to the specified VLAN(s).

Examples

# Apply the QoS policy test to the inbound direction 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 global

Syntax

reset qos policy global [ inbound ]

View

User view

Default Level

1: Monitor level

Parameters

inbound: Specifies the inbound direction.

Description

Use the reset qos vlan-policy command to clear the statistics of a global QoS policy.

Examples

# Clear statistics of the global QoS policy applied in the inbound direction.

<Sysname> reset qos policy global inbound

reset qos vlan-policy

Syntax

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

View

User view

Default Level

1: Monitor level

Parameters

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

inbound: Clears the QoS policy statistics in the inbound direction of the specified VLAN.

Description

Use the reset qos vlan-policy command to clear VLAN QoS policy statistics.

Examples

# Clear the QoS policy statistics of VLAN 2.

<Sysname> reset qos vlan-policy vlan 2

 


Congestion Management Configuration Commands

SP Queuing Configuration Commands

display qos sp

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

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

Description

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

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

Related commands: qos sp.

Examples

# Display the SP queuing configuration of GigabitEthernet 1/1/1.

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

Interface: GigabitEthernet1/1/1

 Output queue: Strict-priority queue

Table 3-1 display qos sp interface command output description

Field

Description

Interface

Interface type and interface number

Output queue

Pattern of the current output queue

Strict-priority queue

SP queuing is adopted for queue scheduling

 

qos sp

Syntax

qos sp

undo qos sp

View

Interface view, port group view, OLT port view, ONU port view

Default Level

2: System level

Parameters

None

Description

Use the qos sp command to configure SP queuing on an interface.

Use the undo qos sp command to restore the default.

The default queuing algorithm on an interface is SP.

Settings in interface view are effective on the current interface; settings in port group view are effective on all ports in the port group.

Related commands: display qos sp interface.

Examples

# Enable SP queuing pattern 1 on OLT 1/0/1.

<Sysname> system-view

[Sysname] interface Olt 1/0/1

[Sysname-Olt1/0/1] qos sp

WRR Queuing Configuration Commands

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-number: Specify an interface by its type and 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 of all the interfaces is displayed.

Related commands: qos wrr.

Examples

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

<Sysname> display qos wrr interface Olt 1/0/1

Interface: Olt1/0/1

 Output queue: Weighted round robin queue

Queue ID    Group    Weight

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

   0         1        1

   1         1        2

   2         1        3

   3         1        4

   4         1        5

   5         1        6

   6         1        7

   7         1        8

Table 3-2 display qos wrr interface command output description

Field

Description

Interface

Interface type and interface number

Output queue

Pattern of the current output queue

Queue ID

ID of a queue

Group

Number of the group a queue is assigned to. By default, all queues belong to group 1.

Weight

Queue weight based on which queues are scheduled. N/A indicates that the queue adopts the SP queue scheduling algorithm.

 

qos wrr

Syntax

qos wrr

undo qos wrr

View

Interface view, port group view, OLT port view

Default Level

2: System level

Parameters

None

Description

Use the qos wrr command to enable WRR queuing.

Use the undo qos wrr command to disable WRR queuing.

The default queuing algorithm on an interface is SP.

Settings in interface view are effective on the current interface; settings in port group view are effective on all ports in the port group.

Before performing WRR configuration, you need to enable WRR queuing on an interface using the qos wrr command.

Examples

# Enable WRR queuing on OLT 1/0/1.

<Sysname> system-view

[Sysname] interface Olt 1/0/1

[Sysname-Olt1/0/1] qos wrr

qos wrr group sp

Syntax

qos wrr queue-id group sp

undo qos wrr queue-id group sp

View

Interface view, port group view, OLT port view

Default Level

2: System level

Parameters

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

sp: Strict priority (SP) queuing algorithm.

Description

Use the qos wrr group sp command to assign the specified queue to the SP scheduling group on a port using the SP+WRR scheduling algorithm.

Use the undo qos wrr group sp command to remove the specified queue from the SP scheduling group.

Before configuring this command on an interface, make sure that WRR queue scheduling is enabled on the interface. An SP group is different from a common WRR priority group. Queues in an SP group are scheduled using SP queuing algorithm but not WRR queuing scheduling algorithm.

Settings in Ethernet interface view are effective on the current interface only; settings in port group view are effective on all the ports in the port group.

Related commands: display qos wrr interface.

Examples

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

<Sysname> system-view

[Sysname] interface Olt 1/0/1

[Sysname-Olt1/0/1] qos wrr

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

qos wrr weight

Syntax

qos wrr queue-id group 1 weight schedule-value

undo qos wrr queue-id group 1 weight

View

Interface view, port group view

Default Level

2: System level

Parameters

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

1: Specifies a group the queue belongs to, group 1.

weight schedule-value: Specifies the scheduling weight of a queue, rang from 1 to 15.

Description

Use the qos wrr weight command to configure or modify WRR queuing parameters on an interface.

Use the undo qos wrr weight command to restore the default WRR queuing parameters on an interface.

Settings in interface view are effective on the current interface; settings in port group view are effective on all ports in the port group.

Related commands: display qos wrr interface.

Examples

# Enable WRR queuing on OLT 1/0/1, assign scheduling weight 100 to queue 0, and assign queue 0 to group 1.

<Sysname> system-view

[Sysname] interface Olt 1/0/1

[Sysname-Olt1/0/1] qos wrr

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

WFQ Configuration Commands

display qos wfq interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

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

Description

Use the display qos wfq interface command to display the weighted fair queuing (WFQ) configuration on an interface.

If no interface is specified, the WFQ configuration of all the interfaces is displayed.

Related commands: qos wfq.

Examples

# Display the HWFQ configuration of ONU 1/0/1:1.

<Sysname> display qos wfq interface onu 1/0/1:1

Interface: Onu 1/0/1:1

Output queue:   Hardware weighted fair queue

Queue ID         Weight        Min-Bandwidth

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

0                100           NA

1                1             NA

2                1             NA

3                1             NA

4                1             NA

5                1             NA

6                1             NA

7                1             NA

Table 3-3 display qos wfq interface command output description

Field

Description

Interface

Interface type and interface number

Output queue

Pattern of the current output queue

Queue ID

ID of a queue

Weight

Queue scheduling weight

Min-Bandwidth

Minimum guaranteed bandwidth

 

qos wfq

Syntax

qos wfq

undo qos wfq

View

ONU port view

Default Level

2: System level

Parameters

None

Description

Use the qos wfq command to enable HWFQ on an interface.

Use the undo qos wfq command to restore default queuing algorithm on an interface.

Examples

# Enable WFQ on ONU 1/0/1:1

<Sysname> system-view

[Sysname] interface onu 1/0/1:1

[Sysname-Onu1/0/1:1] qos wfq

qos wfq weight

Syntax

qos wfq queue-id weight schedule-value

undo qos wfq queue-id weight

View

Interface view, port group view

Default Level

2: System level

Parameters

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

schedule-value: Scheduling weight of the queue.

Description

Use the qos wfq weight command to configure a scheduling weight for an WFQ queue on the interface.

Use the undo qos wfq weight command to restore the default scheduling weight for an WFQ queue on the interface.

Related commands: display qos wfq interface.

Examples

# Configure the scheduling weight 100 for WFQ queue 0 on ONU 1/0/1:1.

<Sysname> system-view

[Sysname] interface onu 1/0/1:1

[Sysname-Onu1/0/1:1] qos wfq

[Sysname-Onu1/0/1:1] qos wfq 0 weight 100

 

 


Priority Mapping Table Configuration Commands

display qos map-table

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

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

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

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

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

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

Description

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

If no priority mapping table is specified, the configuration information of all priority mapping tables is displayed.

Related commands: qos map-table.

Examples

# Display the configuration information of the 802.1p-to-drop priority 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 display qos map-table command output description

Field

Description

MAP-TABLE NAME

Name of the mapping table

TYPE

Type of the mapping table

IMPORT

Input values of the mapping table

EXPORT

Output values of the mapping table

 

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: List of input values.

export-value: Output value.

all: Deletes all the mappings in the priority mapping table.

Description

Use the import command to configure a mapping from one or multiple input values to an output value.

Use the undo import command to restore the specified or all mappings to the default mappings.

Related commands: display qos map-table.

Examples

# Configure the 802.1p-to-drop priority mapping table to map 802.1p priority values 4 and 5 to drop precedence 1.

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

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

priority-queue-mapping

Syntax

priority-queue-mapping { downstream | upstream} { value } &<1-8>

undo priority-queue-mapping { downstream | upstream}

View

OLT port view

Default Level

2: System level

Parameters

downstream: Downlink packets.

upstream: Uplink packets.

value : Local precedence, in the range 0 to 7.

&<1-8>: Indicates that you can specify up to eight priority queue values.

Description

Use the priority-queue-mapping command to configure the 802.1p-to-local priority mapping table of uplink and downlink packets on the OLT port.

Use the undo priority-queue-mapping command to restore the default 802.1p-to-local priority mapping table of uplink and downlink packets on the OLT port.

The default 802.1p-to-local priority mapping table on an OLT port is as shown in Table 4-2.

Table 4-2 Default 802.1p-to-local priority mapping table of the packets on an OLT port

802.1p priority

Local precedence

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

 

Examples

# Configure the 802.1p-to-local priority mapping table of downlink packets on the OLT port.

<Sysname> system-view

[Sysname] interface olt 1/0/1

[Sysname-Olt1/0/1] priority-queue-mapping downstream 1 1 2 3 4 5 6 7

Table 4-3 shows the 802.1p-to-local priority mapping table of downlink packets on the OLT port after the configuration is compete. 

Table 4-3 802.1p-to-local priority mapping table

802.1p priority

Local precedence

0

1

1

1

2

2

3

3

4

4

5

5

6

6

7

7

 

qos cos-local-precedence-map

Syntax

qos cos-local-precedence-map cos0-map-local-prec cos1-map-local-prec cos2-map-local-prec cos3-map-local-prec cos4-map-local-prec cos5-map-local-prec cos6-map-local-prec cos7-map-local-prec

undo qos cos-local-precedence-map

View

ONU port view

Default Level

2: System level

Parameters

cos0-map-local-prec: Local precedence to which 802.1p priority 0 is to be mapped, in the range of 0 to 3.

cos1-map-local-prec: Local precedence to which 802.1p priority 1 is to be mapped, in the range of 0 to 3.

cos2-map-local-prec: Local precedence to which 802.1p priority 2 is to be mapped, in the range of 0 to 3.

cos3-map-local-prec: Local precedence to which 802.1p priority 3 is to be mapped, in the range of 0 to 3.

cos4-map-local-prec: Local precedence to which 802.1p priority 4 is to be mapped, in the range of 0 to 3.

cos5-map-local-prec: Local precedence to which 802.1p priority 5 is to be mapped, in the range of 0 to 3.

cos6-map-local-prec: Local precedence to which 802.1p priority 6 is to be mapped, in the range of 0 to 3.

cos7-map-local-prec: Local precedence to which 802.1p priority 7 is to be mapped, in the range of 0 to 3.

Description

Use the qos cos-local-precedence-map command to configure the 802.1p-to-local priority mapping table on an ONU port.

Use the undo qos cos-local-precedence-map command to restore the 802.1p-to-local priority mapping table on an ONU port to defaults.

Table 4-4 shows the default 802.1p-to-local priority mapping table of the packets on an ONU port.

 

 

This command takes effect on the downlink data stream only.

 

Table 4-4 Default 802.1p-to-local priority mapping table

802.1p priority

Local precedence

0

0

1

0

2

1

3

1

4

2

5

2

6

3

7

3

 

Examples

# Configure the 802.1p-to-local priority mapping table of the packets on the ONU port.

<Sysname> system-view

[Sysname] interface onu1/0/1:1

[Sysname-Onu1/0/1:1] qos cos-local-precedence-map 0 1 1 0 2 2 3 3

Table 4-5 shows the 802.1p-to-local priority mapping table after the configuration is compete. 

Table 4-5 802.1p-to-local priority mapping table

802.1p priority

Local precedence

0

0

1

1

2

1

3

0

4

2

5

2

6

3

7

3

 

qos map-table

Syntax

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

View

System view

Default Level

2: System level

Parameters

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

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

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

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

dscp-dscp: DSCP-to-DSCP priority 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 the 802.1p-to-drop priority mapping table view.

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

[Sysname-maptbl-dot1p-dp]

uni classification-marking

Syntax

uni uni-number classification-marking index index queue qid priority priority { selector operator matched-value } &<1-4>

undo uni uni-number classification-marking index index

View

ONU port view

Default Level

2: System level

Parameters

uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.

index: UNI index number, in the range 1 to 8. The match rule configured on the UNI port with the smallest index number is used first.

qid: Queue ID, in the range 0 to 7.

priority: Mapping priority, in the range 0 to 7.

selector: Match field. Table 4-6 lists possible selector values.

operator: Match rule. Table 4-7 lists possible operator values.

matched-value: Match field value.

&<1-4>: Indicates that you can specify up to four values for the selector, operator, and matched-value arguments respectively.

Table 4-6 Selector values

Selector

Description

always-match

Perform a match on physical ports for traffic classification

dst-ip

Perform a match on the destination IP addresses of the packets

dst-mac

Perform a match on the destination MAC addresses of the packets

dst-port

Perform a match on the port numbers of the packets

eth-pri

Perform a match on the CoS precedence of the packets

eth-type

Perform a match on the Ethernet frame types of the packets

ip-precedence

Perform a match on the IP precedence of the packets

ip-tos-dscp

Perform a match on the ToS precedence or DSCP precedence of the packets

ip-type

Perform a match on the IP protocol types of the packets

never-match

Performs no traffic classification for the traffic received by the specified UNI port

src-ip

Perform a match on the source IP addresses of the packets

src-mac

Perform a match on the source MAC addresses of the packets

src-port

Perform a match on the source port numbers of the packets

vlan-id

Perform a match on the VLAN numbers of the packets

 

Table 4-7 Operators

Operator

Description

equal

The value of matched-value is equal to that of the corresponding field of the packet.

not-equal

The value of matched-value is not equal to that of the corresponding field of the packet.

greater-equal

The value of matched-value is greater than or equal to that of the corresponding field of the packet.

less-equal

The value of matched-value is less than or equal to that of the corresponding field of the packet.

exist

The corresponding packet field exists.

not-exist

The corresponding packet field does not exist.

 

Description

Use the uni classification-marking command to map packets to different priority queues based on the configured keywords.

Use the undo uni classification-marking command to remove the configuration.

Examples

# Set the priority of packets whose destination MAC address is 000F-E2D7-925A to 3.

<Sysname> system-view

[Sysname] interface onu 1/0/1:1

[Sysname-Onu1/0/1:1] uni 1 classification-marking index 1 queue 3 priority 3 dst-mac equal 000F-E2D7-925A

Port Priority Configuration Commands

qos priority

Syntax

qos priority priority-value

undo qos priority

View

Interface view, port group view

Default Level

2: System level

Parameters

priority-value: Port priority value. The port priority is local precedence, which defaults to 0 and ranges from 0 to 7.

Description

Use the qos priority command to configure a priority for the current port.

Use the undo qos priority command to restore the default value.

The default port priority is 0.

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

Examples

# Set the priority of OLT 1/0/1 to 2.

<Sysname> system-view

[Sysname] interface Olt 1/0/1

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

# Set the priority of ONU 1/0/1 to 2.

<Sysname> system-view

[Sysname] interface Onu 1/0/1:1

[Sysname-Onu1/0/1:1] qos priority 2

Trusted Precedence Type Configuration Commands

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-number: Specify an interface by its type and number.

Description

Use the display qos trust interface command to display the trusted precedence type and priority of an interface.

If no interface is specified, the trusted precedence types on all interfaces are displayed.

Examples

# Display the trusted precedence type and priority of OLT 1/0/1.

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

Interface: Olt1/0/1

 Port priority information

  Port priority: 2

  Port priority trust type: dot1p

Table 4-8 display qos trust interface command output description

Field

Description

Interface

Interface type and interface number

Port priority

Port priority

Port priority trust type

Trusted precedence type, which can be dot1p or dscp

 

qos trust

Syntax

qos trust dscp

undo qos trust

View

Interface view, port group view, OLT port view, ONU port view

Default Level

2: System level

Parameters

dscp: Trusts the DSCP precedence and uses this precedence for priority mapping.

Description

Use the qos trust command to configure the trusted precedence type on an interface.

Use the undo qos trust command to restore the default.

The default trusted precedence type on an interface is 802.1p.

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

Examples

# Configure OLT 1/0/1 to trust the DSCP precedence.

<Sysname> system-view

[Sysname] interface Olt 1/0/1

[Sysname-Olt1/0/1] qos trust dscp

 


Traffic Mirroring Configuration Commands

Traffic Mirroring Configuration Commands

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

Use the undo mirror-to cpu command to remove the action.

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 an interface and the action of mirroring traffic to the CPU are mutually exclusive. Therefore, you can configure only one of them for a traffic behavior.

Examples

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

<Sysname> system-view

[Sysname] traffic behavior 1

[Sysname-behavior-1] mirror-to cpu

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: Specify an interface by its type and number.

Description

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

Use the undo mirror-to interface command to remove the action.

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

The action of mirroring traffic to an interface and the action of mirroring traffic to the CPU are mutually exclusive. Therefore, you can configure only one of them for a traffic behavior.

Examples

# Configure the action of mirroring traffic to OLT 1/0/1 for traffic behavior 1.

<Sysname> system-view

[Sysname] traffic behavior 1

[Sysname-behavior-1] mirror-to interface Olt 1/0/1

 


H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.