06-QoS Volume

HomeSupportSwitchesH3C S7500E Switch SeriesReference GuidesCommand ReferencesH3C S7500E Series Ethernet Switches Command Manual(Release 6300 series V1.03)06-QoS Volume
Table of Contents
Related Documents
01-QoS Commands
Title Size Download
01-QoS Commands 241.74 KB

Table of Contents

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

Traffic Shaping Configuration Commands· 1-1

display qos gts interface· 1-1

qos gts· 1-2

Line Rate Configuration Commands· 1-2

display qos lr interface· 1-2

qos lr outbound· 1-3

2 QoS Policy Configuration Commands· 2-1

Commands for Defining Classes· 2-1

display traffic classifier 2-1

if-match· 2-2

traffic classifier 2-5

Traffic Behavior Configuration Commands· 2-5

accounting· 2-5

car 2-6

display traffic behavior 2-7

filter 2-8

mirror-to· 2-9

nest 2-10

redirect 2-10

remark customer-vlan-id· 2-11

remark dot1p· 2-12

remark drop-precedence· 2-12

remark dscp· 2-13

remark ip-precedence· 2-14

remark local-precedence· 2-15

remark service-vlan-id· 2-16

traffic behavior 2-16

QoS Policy Configuration Commands· 2-17

classifier behavior 2-17

display qos policy· 2-18

display qos policy global 2-19

display qos policy interface· 2-20

display qos vlan-policy· 2-21

qos apply policy· 2-23

qos apply policy global 2-25

qos policy· 2-25

qos vlan-policy· 2-26

reset qos policy global 2-27

reset qos vlan-policy· 2-27

3 Congestion Management Configuration Commands· 3-1

Congestion Management Configuration Commands· 3-1

display qos sp interface· 3-1

display qos wfq interface· 3-1

display qos wrr interface· 3-3

qos bandwidth queue· 3-4

qos sp· 3-5

qos wfq· 3-5

qos wfq weight 3-6

qos wrr 3-7

qos wrr weight 3-7

4 Congestion Avoidance Configuration Commands· 4-1

Congestion Avoidance Configuration Commands· 4-1

display qos wred interface· 4-1

display qos wred table· 4-1

qos wred apply· 4-3

qos wred queue table· 4-3

queue· 4-4

5 Priority Mapping Configuration Commands· 5-1

Priority Mapping Table Configuration Commands· 5-1

display qos map-table· 5-1

import 5-2

qos map-table· 5-2

Port Priority Configuration Commands· 5-3

qos priority· 5-3

Port Priority Trust Mode Configuration Commands· 5-4

display qos trust interface· 5-4

qos trust 5-5

6 QoS Configuration Commands in an EPON System·· 6-1

QoS Configuration Commands at the OLT Side· 6-1

bandwidth downstream·· 6-1

bandwidth downstream high-priority enable· 6-2

bandwidth downstream policy enable· 6-2

bandwidth downstream priority-queue· 6-3

priority-queue-mapping· 6-4

QoS Configuration Commands at the ONU Side· 6-5

qos cos-local-precedence-map· 6-5

uni classification-marking· 6-7

uni port-policy· 6-9

 


Traffic Shaping Configuration Commands

display qos gts interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface-type: Port type.

interface-number: Port number.

Description

Use the display qos gts interface command to display traffic shaping configuration information.

If no port is specified, traffic shaping configuration information of all ports is displayed.

Examples

# Display traffic shaping configuration information of all ports.

<Sysname> display qos gts interface

Interface: GigabitEthernet2/0/1

Rule(s): If-match queue 2

 CIR 640 (kbps), CBS 40960 (byte)

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

Field

Description

Interface

Port name identified by port type and port number

Rule(s)

Match criteria.

“If-match queue 2” indicates that traffic shaping is performed for traffic in queue 2.

CIR

Committed information rate (CIR) in kbps

CBS

Committed burst size (CBS) in bytes

 

qos gts

Syntax

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

undo qos gts queue queue-number

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

queue queue-number: Specifies a queue by its number, which ranges from 0 to 7.

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

cbs committed-burst-size: Specifies the CBS (in bytes), which ranges from 4096 to 268435456 and must be a multiple of 4096.

If the cbs keyword is not specified, the default CBS is 62.5 ms × committed-information-rate and must be a multiple of 4096. If 62.5 ms × committed-information-rate is not a multiple of 4096, the default CBS is the multiple of 4096 that is bigger than and nearest to 62.5 ms × committed-information-rate. The maximum CBS is 268435456. For example, if the CIR is 640 kbps, then 62.5 ms × CIR is 62.5 ms × 640 = 40000. As 40000 is not a multiple of 4096, 40960, which is the multiple of 4096 that is bigger than and nearest to 40000, is taken as the default CBS.

Description

Use the qos gts command to configure traffic shaping.

Use the undo qos gts command to remove the traffic shaping configuration.

In Ethernet interface view, the configuration takes effect on the current port. In port group view, the configuration takes effect on all ports in the port group.

Examples

# Configure traffic shaping on GigabitEthernet 2/0/1 to limit the outgoing traffic rate of queue 2 to 640 kbps.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] qos gts queue 2 cir 640

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: Port type.

interface-number: Port number.

Description

Use the display qos lr interface command to display the line rate configuration information of the specified port or all ports if no port is specified.

Examples

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

<Sysname> display qos lr interface

Interface: GigabitEthernet2/0/10

Direction: Outbound

 CIR 64000 (kbps),  CBS 4000000 (byte)

Table 1-2 Description on the fields of the display qos lr command

Field

Description

Interface

Port name, composed of port type and port number

Direction

Specify the direction of limited rate as outbound

CIR

Committed information rate, in kbps

CBS

Committed burst size, in byte

 

qos lr outbound

Syntax

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

undo qos lr outbound

View

Ethernet interface view, port group view

Default Level

2: System Level

Parameters

outbound: Limits the rate of the outbound traffic.

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

cbs committed-burst-size: Specifies the committed burst size in bytes.

l          The committed-burst-size argument ranges from 4000 to 16000000.

l          If the cbs keyword is not used, the system uses the default committed burst size, that is, 62.5 ms x committed-information-rate, or 16000000 if the multiplication is more than 16000000.

Description

Use the qos lr outbound command to limit the rate of outbound traffic via physical interfaces.

Use the undo qos lr outbound command to cancel the limit.

Examples

#  Limit the outbound traffic rate on GigabitEthernet 2/0/1 within 640 kbps.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] qos lr outbound cir 640

 


Commands for Defining Classes

display traffic classifier

Syntax

display traffic classifier user-defined [ classifier-name ]

View

Any view

Default Level

1: Monitor level

Parameters

classifier-name: Class name.

Description

Use the display traffic classifier command to display the information about a class.

If no class name is provided, this command displays the information about all the user-defined classes.

Examples

# Display the information about the user-defined classes.

<Sysname> display traffic classifier user-defined

  User Defined Classifier Information:

   Classifier: p

    Operator: AND

    Rule(s) : If-match acl 2001

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

Field

Description

User Defined Classifier Information

The information about the user-defined classes is displayed.

Classifier

Class name and its contents, which could be of multiple types

Operator

Logical relationship among the classification rules

Rule

Classification rules

 

if-match

Syntax

if-match match-criteria

undo if-match match-criteria

View

Class view

Default Level

2: System Level

Parameters

match-criteria: Matching rule to be defined. Table 2-2 describes the available forms of this argument.

Table 2-2 The forms of the match-criteria argument

Field

Description

acl access-list-number

Specifies an ACL to match packets. The access-list-number argument is in the range 2000 to 4999.

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

Specifies an IPv6 ACL to match IPv6 packets. The access-list-number argument is in the range 2000 to 3999.

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

any

Specifies to match all packets.

customer-dot1p 8021p-list

Specifies to match packets by 802.1p precedence of the customer network. The 8021p-list argument is a list of CoS values. You can provide up to eight space-separated CoS values for this argument. CoS is in the range 0 to 7.

dscp dscp-list

Specifies to match packets by DSCP precedence. The dscp-list argument is a list of DSCP values. You can provide up to eight space-separated DSCP values for this argument. DSCP is in the range 0 to 63.

destination-mac mac-address

Specifies to match the packets with a specified destination MAC address.

ip-precedence ip-precedence-list

Specifies to match packets by IP precedence. The ip-precedence-list argument is a list of IP precedence values. You can provide up to eight space-separated IP precedence values for this argument. IP precedence is in the range 0 to 7.

protocol protocol-name

Specifies to match the packets of a specified protocol. The protocol-name argument can be IP or IPv6.

service-dot1p 8021p-list

Specifies to match packets by 802.1p precedence of the service provider network. The 8021p-list argument is a list of CoS values. You can provide up to eight space-separated CoS values for this argument. CoS is in the range 0 to 7.

source-mac mac-address

Specifies to match the packets with a specified source MAC address.

customer-vlan-id vlan-id-list

Specifies to match the packets of specified VLANs of user networks. The vlan-id-list argument specifies a list of VLAN IDs, in the form of vlan-id to vlan-id or multiple discontinuous VLAN IDs (separated by space). You can specify up to eight VLAN IDs for this argument at a time. VLAN ID is in the range 1 to 4094.

In a class configured with the operator and, the logical relationship between the customer VLAN IDs specified for the customer-vlan-id keyword is or.

service-vlan-id vlan-id-list

Specifies to match the packets of specified VLANs of the operator’s network. The vlan-id-list argument is a list of VLAN IDs, in the form of vlan-id to vlan-id or multiple discontinuous VLAN IDs (separated by space). You can specify up to eight VLAN IDs for this argument at a time. VLAN ID is in the range 1 to 4094.

In a class configured with the operator and, the logical relationship between the service VLAN IDs specified for the service-vlan-id keyword is or.

 

Description

Use the if-match command to define a rule to match a specific type of packets.

Use the undo if-match command to remove a matching rule.

 

Suppose the logical relationship between classification rules is and. Note the following when using the if-match command to define matching rules.

l          If multiple matching rules with the acl or acl ipv6 keyword specified are defined in a class, the actual logical relationship between these rules is or when the policy is applied.

l          If multiple matching rules with the customer-vlan-id or service-vlan-id keyword specified are defined in a class, the actual logical relationship between these rules is or when the policy is applied.

 

Examples

# Define a rule for class1 to match the packets with their destination MAC addresses being 0050-ba27-bed3.

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a rule for class2 to match the packets with their source MAC addresses being 0050-ba27-bed2.

<Sysname> system-view

[Sysname] traffic classifier class2

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

# Define a rule for class3 to match the advanced IPv4 ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class3

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

# Define a rule for class4 to match the advanced IPv6 ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class4

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

# Define a rule for class5 to match all the packets.

<Sysname> system-view

[Sysname] traffic classifier class5

[Sysname-classifier-class5] if-match any

# Define a rule for class6 to match the packets with their DSCP precedence values being 1.

<Sysname> system-view

[Sysname] traffic classifier class6

[Sysname-classifier-class6] if-match dscp 1

# Define a rule for class7 to match the packets with their IP precedence values being 1.

<Sysname> system-view

[Sysname] traffic classifier class7

[Sysname-classifier-class7] if-match ip-precedence 1

# Define a rule for class8 to match IP packets.

<Sysname> system-view

[Sysname] traffic classifier class8

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

# Define a rule for class9 to match the packets with the customer network 802.1p precedence 2.

<Sysname> system-view

[Sysname] traffic classifier class9

[Sysname-classifier-class9] if-match customer-dot1p 2

# Define a rule for class10 to match the packets with the service provider network 802.1p precedence 5.

<Sysname> system-view

[Sysname] traffic classifier class10

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

# Define a rule for class11 to match the packets of VLAN 1024 of the customer network.

<Sysname> system-view

[Sysname] traffic classifier class11

[Sysname-classifier-class11] if-match customer-vlan-id 1024

# Define a rule for class12 to match the packets of VLAN 1000 of the service provider network.

<Sysname> system-view

[Sysname] traffic classifier class12

[Sysname-classifier-class12] if-match service-vlan-id 1000 

traffic classifier

Syntax

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

undo traffic classifier classifier-name

View

System view

Default Level

2: System Level

Parameters

and: Specifies the relationship among the rules in the class as logic AND. That is, a packet is matched only when it matches all the rules defined for the class.

or: Specifies the relationship among the rules in the class as logic OR. That is, a packet is matched if it matches a rule defined for the class.

classifier-name: Name of the class to be created.

Description

Use the traffic classifier command to create a class. This command also leads you to class view.

Use the undo traffic classifier command to remove a class.

By default, a packet is matched only when it matches all the rules configured for the class.

Examples

# Create a class named class 1.

<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 configure the traffic accounting action for a traffic behavior.

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

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

Examples

# Configure the traffic accounting action for a traffic behavior.

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

cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes. The committed-burst-size argument ranges from 4000 to 16000000, the default is 4000.

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

pir peak-information-rate: Specifies the peak information rate (PIR) in kbps.

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 TP action for a traffic behavior.

Use the undo car command to remove the TP action.

Note that, if you configure the TP action for a traffic behavior for multiple times, only the last configuration takes effect.

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

Examples

# Configure TP action for a traffic behavior. When the traffic rate is lower than 6400 kbps, packets are forwarded normally. When the traffic rate exceeds 6400 kbps, the packets beyond 6400 kbps are dropped.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] car cir 6400 red discard

display traffic behavior

Syntax

display traffic behavior user-defined [ behavior-name ]

View

Any view

Default Level

1: Monitor level

Parameters

behavior-name: Name of a user defined traffic behavior.

Description

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

If no behavior name is provided, this command displays the information about all the user-defined behaviors.

Examples

# Display the information about all the user defined traffic behaviors.

<Sysname> display traffic behavior user-defined

  User Defined Behavior Information:

    Behavior: test

      Marking:

        Remark dot1p COS 4

      Committed Access Rate:

        CIR 640 (kbps), CBS 4000 (byte), EBS 4000 (byte), PIR 640 (kbps)

        Green Action: pass

        Red Action: discard

        Yellow Action: pass

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

Field

Description

User Defined Behavior Information

The information about user defined traffic behaviors is displayed

Behavior

Name of a traffic behavior, which can be of multiple types

Marking

Information about priority marking

Committed Access Rate

Information about traffic rate limit

CIR

Committed information rate in bytes

CBS

Committed burst size in bytes

EBS

Excessive burst size in bytes

PIR

Peak information rate in bytes

Green Action

Action conducted to packets conforming to CIR

Red Action

Action conducted for packets conforming to neither CIR nor PIR

Yellow Action

Action conducted to packets conforming to PIR but not conforming to CIR

 

filter

Syntax

filter { deny | permit }

undo filter

View

Traffic behavior view

Default Level

2: System Level

Parameters

deny: Drops packets.

permit: Forwards packets.

Description

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

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

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

Examples

# Configure traffic filtering action for a traffic behavior.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] filter deny

mirror-to

Syntax

mirror-to { cpu | interface interface-type interface-number }

undo mirror-to { cpu | interface interface-type interface-number }

View

Traffic behavior view

Default Level

2: System Level

Parameters

cpu: Redirects packets to the CPU.

interface interface-type interface-number: Port type and port number of the destination port for the traffic mirroring action.

Description

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

Use the undo mirror-to command to remove the traffic mirroring action.

Note that when the action of mirroring traffic is applied in the outbound direction of an SC LPU, any other action cannot be configured in the same traffic behavior. Otherwise, the corresponding QoS policy cannot be applied successfully.

Examples

# Configure traffic behavior 1 and define the action of mirroring traffic to GigabitEthernet2/0/2 in the traffic behavior.

<Sysname> system-view

[Sysname] traffic behavior 1

[Sysname-behavior-1] mirror-to interface GigabitEthernet 2/0/2

nest

Syntax

nest top-most vlan-id vlan-id

undo nest

View

Traffic behavior view

Default Level

2: System Level

Parameters

vlan-id vlan-id: ID of the VLAN. The vlan-id argument is in the range 1 to 4094.

Description

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

Use the undo nest command to remove the outer VLAN tag.

Note that:

l          If the nest action will be applied to the inbound direction of a port or port group on an EA LPU, the classification rule must be configured with the if-match customer-vlan-id command, and the other actions except remark dot1p cannot be configured in the traffic behavior. Additionally, you must enable basic QinQ on the port or port group before applying the QoS policy.

l          If the nest action will be applied to the inbound direction of a port or port group on an SA or SC LPU, you must enable basic QinQ on the port or port group first.

l          The nest action cannot be applied to a VLAN or globally.

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

Examples

# Configure an outer VLAN tag for a traffic behavior.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] nest top-most vlan-id 100

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 interface-type interface-number: Redirects traffic to an interface identified by its type and number.

next-hop: Specifies the next hop to redirect the traffic to.

ipv4-add: IPv4 address of the next hop.

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

Description

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

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

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

Examples

# Configure the redirecting action to redirect traffic to GigabitEthernet2/0/1 port.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] redirect interface GigabitEthernet 2/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: VLAN ID to be set for packets, in the range of 1 to 4094.

Description

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

Use the undo remark customer-vlan-id command to remove the action of setting the customer network VLAN ID.

Note that the action of setting the customer network VLAN ID cannot be applied to a VLAN or applied globally.

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

Examples

# Configure the action of setting the customer network VLAN ID to 2 for a traffic behavior.

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

Description

Use the remark dot1p command to configure the action of setting 802.1p precedence for a traffic behavior.

Use the undo remark dot1p command to remove the action of setting 802.1p precedence

Note that, when the remark dot1p command is used together with the remark local-precedence command, the 802.1p precedence to be set for packets must be the same as the local precedence to be set for packets. Otherwise, the corresponding policy cannot be applied successfully.

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

Examples

# Configure the action to set 802.1p precedence to 2 for a traffic behavior.

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

Description

Use the remark drop-precedence command to configure the action of setting drop precedence for a traffic behavior.

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

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

Examples

# Configure the action to set drop precedence to 2 for a traffic behavior.

<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 precedence to be set for packets, in the range of 0 to 63. This argument can also be the keywords listed 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 DSCP precedence for a traffic behavior.

Use the undo remark dscp command to remove the action of setting DSCP precedence.

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

Examples

# Configure the action to set DSCP precedence to 6 for a traffic behavior.

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

Description

Use the remark ip-precedence command to configure the action of setting IP precedence for a traffic behavior.

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

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

Examples

# Configure the action to set IP precedence to 6 for a traffic behavior.

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

Description

Use the remark local-precedence command to configure the action of setting local precedence for a traffic behavior.

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

Note that, when the remark dot1p command is used together with the remark local-precedence command, the 802.1p precedence to be set for packets must be the same as the local precedence to be set for packets. Otherwise, the corresponding policy cannot be applied successfully.

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

Examples

# Configure the action to set local precedence to 2 for a traffic behavior.

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

Description

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

Use the undo remark service-vlan-id command to remove the action of setting the service provider network VLAN ID.

l          Note that: If the remark service-vlan-id action will be applied to the inbound direction of a port or port group on an EA LPU, the classification rule must be configured with the if-match customer-vlan-id command, and the other actions except remark dot1p cannot be configured in the traffic behavior.

l          If the remark service-vlan-id action will be applied to the outbound direction of a port or port group on an SC LPU, any other actions except filer and remark dot1p cannot be configured in the traffic behavior.

l          The remark service-vlan-id action cannot be applied to a VLAN or applied globally.

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

Examples

# Configure the action of setting the service provider network VLAN ID to 2 for a traffic behavior.

<Sysname> system-view

[Sysname] traffic behavior database

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

traffic behavior

Syntax

traffic behavior behavior-name

undo traffic behavior behavior-name

View

System view

Default Level

2: System Level

Parameters

behavior-name: Name of the traffic behavior to be created.

Description

Use the traffic behavior command to create a traffic behavior. This command also leads you to traffic behavior view.

Use the undo traffic classifier command to remove 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]

QoS Policy Configuration Commands

classifier behavior

Syntax

classifier classifier-name behavior behavior-name [ mode do1q-tag-manipulation ]

undo classifier classifier-name

View

Policy view

Default Level

2: System Level

Parameters

classifier-name: Name of an existing class.

behavior–name: Name of an existing traffic behavior.

mode dot1q-tag-manipulation: Specifies that the association relationship between the class and the traffic behavior is used for the VLAN mapping function.

Description

Use the classifier behavior command to associate a traffic behavior with a class.

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

Note that each class can be associated with only one traffic behavior.

Related commands: qos policy.

 

In a QoS policy with multiple class-to-traffic-behavior associations, if the action of creating an outer VLAN tag, the action of setting customer network VLAN ID, or the action of setting service provider network VLAN ID is configured in a traffic behavior, we recommend you not to configure any other action in this traffic behavior. Otherwise, the QoS policy may not function as expected after it is applied.

 

Examples

# Associate the behavior named test with the class named database in the policy user1.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1] classifier database behavior test

display qos policy

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

policy-name: Policy name. If it is not provided, the configuration of all the user defined policies is displayed.

classifier-name: Name of a class in the policy. If it is not provided, all the classes in the policy are specified.

Description

Use the display qos policy command to display the configuration of a specified policy, including the configuration of the classes and the associated traffic behaviors in the policy.

Examples

# Display the configuration of all the user specified policies.

<Sysname> display qos policy user-defined

 

  User Defined QoS Policy Information:

 

  Policy: test

   Classifier: test

     Behavior: test

      Accounting Enable

      Committed Access Rate:

        CIR 640 (kbps), CBS 4000 (byte), EBS 4000 (byte), PIR 640 (kbps)

        Green Action: pass

        Red Action: discard

        Yellow Action: pass

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

Field

Description

Policy

Policy name

Classifier

Class name and the corresponding configuration information

Behavior

Traffic behavior name and the corresponding configuration information

 

display qos policy global

Syntax

display qos policy global { inbound | outbound } [ slot slot-id ]

View

Any view

Default Level

1: Monitor level

Parameters

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

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

slot slot-number: Displays the global QoS policy applied on a board. If the slot-number argument is not specified, the global QoS policy applied on the main control board are displayed.

Description

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

Examples

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

<Sysname> display qos policy global inbound

 

  Direction: Inbound

 

  Policy: abc_policy

   Classifier: abc

     Operator: AND

     Rule(s) : If-match dscp cs1

     Behavior: abc

      Committed Access Rate:

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

        Green Action: pass

        Red Action: discard

        Yellow Action: pass

        Green : 0(Packets)  

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

Field

Description

Direction

Direction in which the policy is applied globally

Policy

Policy name

Classifier

Class name

Failed indicates that the policy is not successfully applied

Behavior

Traffic behavior name

 

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: Port type.

interface-number: Port number.

inbound: Specifies the inbound direction.

outbound: Specifies the outbound direction.

Description

Use the display qos policy interface command to display the configuration and statistics information about the policy applied on a port.

If no interface is provided, the configuration and statistics information about the policies applied on all the ports is displayed.

Examples

# Display the configuration and statistics information about the policy applied on GigabitEthernet2/0/1 port.

<Sysname> display qos policy interface GigabitEthernet 2/0/1

 

  Interface: GigabitEthernet2/0/1

 

  Direction: Inbound

 

  Policy: abc_policy

   Classifier: abc

     Operator: AND

     Rule(s) : If-match dscp cs1

     Behavior: abc

      Committed Access Rate:

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

        Green Action: pass

        Red Action: discard

        Yellow Action: pass

        Green : 0(Packets)

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

Field

Description

Interface

Port name, comprising of port type and port number

Direction

Direction of the port where the policy is applied

Policy

Name of the policy applied to the port

Classifier

Name of the class in the policy and its configuration

Failed indicates that the policy is not successfully applied

Operator

Logical relationship among the classification rules in a class

Rule(s)

Classification rules in the class

Behavior

Name of the behavior in the policy and its configuration

 

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 with the specified name.

vlan vlan-id: Specifies to display the information about the VLAN policy applied to the specified VLAN.

slot-id: Specifies to display the information about the VLAN policies applied to VLANs on the board seated in the specific slot. If the slot-id argument is not specified, this command displays the information about the VLAN policies applied to the SRPU.

Description

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

If the vlan-id argument is not specified, the information about all the VLAN policies will be displayed.

Examples

# Display the information about the VLAN policy named test.

<Sysname> display qos vlan-policy name test

  Policy test

    Vlan 300: inbound

Table 2-8 Description on the fields of the display qos vlan-policy command

Field

Description

Policy

Name of the VLAN policy

Vlan 300

ID of the VLAN where the VLAN policy is applied

inbound

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

 

# Display the information about the VLAN policy applied to VLAN 300.

<Sysname> display qos vlan-policy vlan 300

 

  Vlan 300

 

  Direction: Inbound

 

  Policy: test

   Classifier: test

     Operator: AND

     Rule(s) : If-match customer-vlan-id 3

     Behavior: test

      Accounting Enable:

        0 (Packets)

      Committed Access Rate:

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

        Green Action: pass

        Red Action: discard

        Yellow Action: pass

        Green : 0(Packets)

Table 2-9 Description on the fields of the display qos vlan-policy command

Field

Description

Vlan 300

ID of the VLAN where the VLAN policy is applied

Inbound

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

Classifier

Name of the class in the policy and its configuration

Behavior

Name of the behavior in the policy and its configuration

 

qos apply policy

Syntax

qos apply policy policy-name { inbound | outbound }

undo qos apply policy { inbound | outbound }

View

Ethernet interface view, port group view

Default Level

2: System Level

Parameters

inbound: Specifies the inbound direction.

outbound: Specifies the outbound direction.

policy-name: Specifies the policy name.

Description

Use the qos apply policy command to apply a policy on a port or a port group.

Use the undo qos apply policy command to remove the policy applied on a port or a port group.

Note that, when you apply a policy by using the qos apply policy command, whether or not the inbound/outbound keyword can take effect depends on the actions defined in the traffic behavior and LPU types, as described in Table 2-10.

Table 2-10 The support for the inbound direction and the outbound direction

LPU type

 

Action

SC LPU

SA LPU

EA LPU

Inbound

Outbound

Inbound

Outbound

Inbound

Outbound

Traffic accounting

Supported

Supported

Supported

Not supported

Supported

Not supported

TP

Supported

Supported

Supported

Not supported

Supported

Not supported

Traffic filtering

Supported

Supported

Supported

Not supported

Supported

Not supported

Traffic mirroring

Supported

Supported

Supported

Not supported

Supported

Not supported

Configuring the outer VLAN tag

Supported

Not supported

Supported

Not supported

Supported

Not supported

Traffic redirecting

Supported

Not supported

Supported

Not supported

Supported

Not supported

Remarking the customer network VLAN ID for packets

Not supported

Supported

Not supported

Not supported

Not supported

Not supported

Remarking the 802.1p precedence for packets

Supported

Supported

Supported

Not supported

Supported

Not supported

Remarking the drop precedence for packets

Supported

Not supported

Supported

Not supported

Supported

Not supported

Remarking the DSCP precedence for packets

Supported

Supported

Supported

Not supported

Supported

Not supported

Remarking the IP precedence for packets

Supported

Supported

Supported

Not supported

Supported

Not supported

Remarking the local precedence for packets

Supported

Not supported

Supported

Not supported

Supported

Not supported

Remarking the service provider network VLAN ID for packets

Supported

Supported

Supported

Not supported

Supported

Not supported

 

SC LPUs include LSQ1GP24SC LPUs and so on, SA LPUs include LSQ1FP48SA LPUs and so on, EA LPUs include LSQ1GP12EA LPUs and so on. For the detailed information about LPU types, refer to the installation manual.

 

You can apply a QoS policy in the outbound direction of a basic QinQ-enabled port on an SA LPU or EA LPU to implement one-to-one VLAN mapping. In this policy, only one matching rule, if-match service-vlan-id, can be defined, and the action can only be remark customer-vlan-id or remark customer-vlan-id together with remark dot1p.

 

Examples

# Apply the policy named test in the inbound direction of GigabitEthernet2/0/1 port.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

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

qos apply policy global

Syntax

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

undo qos apply policy global { inbound | outbound }

View

System view

Default Level

2: System Level

Parameters

policy-name: Policy name.

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

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

Description

Use the qos apply policy global command to apply a QoS policy globally. A QoS policy applied globally takes effect on all inbound or outbound traffic depending on the direction in which the policy is applied.

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

Note that, when you apply a QoS policy with the qos apply policy global command, support for the inbound/outbound keyword depends on the actions defined in the traffic behavior and LPU types, as described in Table 2-10.

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: Name of the policy to be created.

Description

Use the qos policy command to create a policy. This command also leads you to policy view.

Use the undo qos policy command to remove a policy.

To remove a policy that is currently applied on a port, you need to disable it on the port first.

Related commands: classifier behavior, qos apply policy.

Examples

# Create 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 | 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: List of VLAN IDs, presented in the form of vlan-id to vlan-id or discontinuous VLAN IDs. Up to eight VLAN IDs can be specified at a time.

inbound: Specifies to apply the VLAN policy in the inbound direction of the VLAN.

outbound: Specifies to apply the VLAN policy in the outbound direction of the VLAN.

Description

Use the qos vlan-policy command to apply the VLAN policy to the specific VLAN(s).

Use the undo qos vlan-policy command to remove the VLAN policy from the specific VLAN(s).

Note that, when you apply a QoS policy with the qos vlan-policy command, support for the inbound/outbound keyword varies with the actions defined in the traffic behavior and the type of the LPU to which the ports in the VLAN belong, as described in Table 2-10.

 

Do not apply policies to a VLAN and the ports in the VLAN at the same time.

 

Examples

# Apply the VLAN policy named test in the inbound direction 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

reset qos policy global

Syntax

reset qos policy global { inbound | outbound }

View

User view

Default Level

1: Monitor level

Parameters

inbound: Specifies the inbound direction.

outbound: Specifies the outbound direction.

Description

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

Examples

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

<Sysname> reset qos policy global inbound

reset qos vlan-policy

Syntax

reset qos vlan-policy [ vlan vlan-id ]

View

User view

Default Level

1: Monitor level

Parameters

vlan-id: VLAN ID, in the range 1 to 4,094.

Description

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

Examples

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

<Sysname> reset qos vlan-policy vlan 2

 


Congestion Management Configuration Commands

display qos sp interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface-type: Port type.

interface-number: Port number.

Description

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

If no port is specified, this command displays the SP queuing configuration on all ports.

Related commands: qos sp.

Examples

# Display the SP queuing configuration on GigabitEthernet 2/0/1.

<Sysname> display qos sp interface GigabitEthernet 2/0/1

Interface: GigabitEthernet2/0/1

Output queue: Strict-priority queue

display qos wfq interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface-type: Port type.

interface-number: Port number.

Description

Use the display qos wfq interface command to display the configuration of Weighted Fair Queuing (WFQ) queues of a port.

If no port number is specified, the command displays the configurations of WFQ queues of all ports.

Related commands: qos wfq.

Examples

# Display the configuration of the WFQ queues on port GigabitEthernet 3/0/1 on an EA LPU.

<Sysname> display qos wfq interface e 3/0/1

Interface: Ethernet3/0/1

 Output queue: Hardware weighted fair queue

Queue ID         Weight          Min-Bandwidth

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

0                1               8

1                1               8

2                1               8

3                1               8

4                1               8

5                1               8

6                1               8

7                1               8   

# Display the configuration of the WFQ queues on port GigabitEthernet 2/0/1 on a non-EA LPU.

<Sysname> display qos wfq interface GigabitEthernet 2/0/1

Interface: GigabitEthernet2/0/1

Output queue: Hardware weighted fair queue

Queue ID         Weight          Min-Bandwidth

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

0                1               8

1                2               8

2                4               8

3                6               8

4                8               8

5               10               8

6               12               8

7               14               8  

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

Field

Description

Interface

Port name, composed of port type and port number

Output queue

The type of the current output queue

Queue ID

ID of the queue

Weight

The weight of each queue during scheduling.

Min-Bandwidth

Minimum guaranteed bandwidth of the queue

 

display qos wrr interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface-type: Port type.

interface-number: Port number.

Description

Use the display qos wrr interface command to display the configuration of weighted round robin (WRR) queues of a port.

If no port number is specified, the command displays the configurations of WRR queues of all ports.

Related commands: qos wrr.

Examples

# Display the configuration of WRR queues of GigabitEthernet 2/0/1.

<Sysname> display qos wrr interface GigabitEthernet 2/0/1

Interface: GigabitEthernet2/0/1

Output queue:   Weighted round robin queue

Queue ID    Group    Weight

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

   0         sp       N/A

   1         sp       N/A

   2         1        3

   3         1        4

   4         1        5

   5         1        6

   6         1        7

   7         1        8

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

Field

Description

Interface

Port name, composed of port type and port number

Output queue

The type of the current output queue

Queue ID

ID of the queue

Group

Group ID, indicating which group a queue belongs to.

Weight

The weight of each queue during scheduling. N/A indicates that SP queue scheduling algorithm is adopted.

 

qos bandwidth queue

Syntax

qos bandwidth queue queue-id min bandwidth-value

undo qos bandwidth queue queue-id [ min bandwidth-value ]

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

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

bandwidth-value: Minimum guaranteed bandwidth (in kbps), that is, the minimum bandwidth guaranteed for a queue when the port is congested.

Description

Use the qos bandwidth queue command to set the minimum guaranteed bandwidth for a specified queue on the port or ports in the port group.

Use the undo qos bandwidth queue command to remove the configuration.

Note that:

l          In Ethernet interface view, the configuration takes effect only on the current port; in port group view, the configuration takes effect on all ports in the port group.

l          To configure minimum guaranteed bandwidth for queues on a port/port group, enable WFQ on the port/port group first.

Examples

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

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet 2/0/1] qos wfq

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

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 the current port.

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

By default, the switch adopts the SP queue-scheduling algorithm.

Related commands: display qos sp interface.

Examples

# Configure SP queuing on GigabitEthernet 2/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] qos sp

qos wfq

Syntax

qos wfq

undo qos wfq

View

Ethernet interface view, port group view

Default Level

2: System Level

Parameters

None

Description

Use the qos wfq command to enable weighted fair queuing (WFQ) on a port or port group.

Use the undo qos wfq command to restore the default.

By default, the switch adopts the SP queue-scheduling algorithm.

Related commands: display qos wrr interface.

Examples

# Enable WFQ on GigabitEthernet 2/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] qos wfq

qos wfq weight

Syntax

qos wfq queue-id weight schedule-value

undo qos wfq queue-id weight

View

Ethernet interface view, port group view

Default Level

2: System Level

Parameters

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

weight schedule-value: Specifies the scheduling weight of a queue. The range for the scheduling weight depends on the LPU type of your S7500E series switch:

l          For EA LPUs, the scheduling weight of each queue is 1, that is, all queues share the allocable bandwidth (allocable bandwidth = total bandwidth – the sum of the minimum guaranteed bandwidth for each queue).

l          For non-EA LPUs, the scheduling weight ranges from 0 to 15, and each queue is allocated with part of the allocable bandwidth based on its scheduling weight.

Description

Use the qos wfq command to enable weighted fair queuing (WFQ) on a port or port group and configure a scheduling weight for the specified queue.

Use the undo qos wfq command to restore the default.

On a WFQ-enable port/port group, the scheduling weight of a queue is 1 by default.

Related commands: display qos wfq interface, qos bandwidth queue.

Examples

# Enable WFQ on GigabitEthernet 2/0/1 on a non-EA LPU and assign weight values 1, 2, 4, 6, 8, 10, 12, and 14 to queues 0 through 7.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] qos wfq

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

[Sysname-GigabitEthernet2/0/1] qos wfq 1 weight 200

[Sysname-GigabitEthernet2/0/1] qos wfq 2 weight 4

[Sysname-GigabitEthernet2/0/1] qos wfq 3 weight 6

[Sysname-GigabitEthernet2/0/1] qos wfq 4 weight 8

[Sysname-GigabitEthernet2/0/1] qos wfq 5 weight 10

[Sysname-GigabitEthernet2/0/1] qos wfq 6 weight 12

[Sysname-GigabitEthernet2/0/1] qos wfq 7 weight 14

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 weighted round robin (WRR) on a port or port group.

Use the undo qos wrr command to restore the default.

By default, the switch adopts the SP queue-scheduling algorithm.

On a port or port group with WRR enabled, the weight values of queues 0 through 7 are 1, 2, 3, 4, 5, 6, 7, and 8 respectively.

Related commands: display qos wrr interface.

Examples

# Enable WRR on GigabitEthernet 2/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] qos wrr

qos wrr weight

Syntax

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

undo qos wrr

View

Ethernet interface view, port group view

Default Level

2: System Level

Parameters

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

group-id: It can only be 1.

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

sp: Configures SP queuing.

Description

Use the qos wrr command to configure Weighted Round Robin (WRR) queue scheduling algorithm or the SP + WRR queue scheduling algorithm on a port or port group.

Use the undo qos wrr command to restore the default queue-scheduling algorithm on the port.

By default, the switch adopts the SP queue-scheduling algorithm.

As required, you can configure part of the queues on the port to adopt the SP queue-scheduling algorithm and parts of queues to adopt the WRR queue-scheduling algorithm. Through adding the queues on a port to the SP scheduling group and WRR scheduling group (namely, group 1), the SP + WRR queue scheduling is implemented. During the queue scheduling process, the queues in the SP scheduling group is scheduled preferentially. When no packet is to be sent in the queues in the SP scheduling group, the queues in the WRR scheduling group are scheduled. The queues in the SP scheduling group are scheduled according to the strict priority of each queue, while the queues in the WRR queue scheduling group are scheduled according the weight value of each queue.

Related commands: display qos wrr interface.

Examples

# Configure SP+WRR queue scheduling algorithm on GigabitEthernet 2/0/1 as follows: assign queue 0, queue 1, queue 2, and queue 3 to the SP scheduling group; and assign queue 4, queue 5, queue 5, and queue 7 to WRR scheduling group, with the weight 2, 4, 6, and 8.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] qos wrr

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

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

[Sysname-GigabitEthernet2/0/1] qos wrr 2 group sp

[Sysname-GigabitEthernet2/0/1] qos wrr 3 group sp

[Sysname-GigabitEthernet2/0/1] qos wrr 4 group 1 weight 2

[Sysname-GigabitEthernet2/0/1] qos wrr 5 group 1 weight 4

[Sysname-GigabitEthernet2/0/1] qos wrr 6 group 1 weight 6

[Sysname-GigabitEthernet2/0/1] qos wrr 7 group 1 weight 8

 


Congestion Avoidance Configuration Commands

display qos wred interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface-type: Port type.

interface-number: Port number.

Description

Use the display qos wred interface command to display the WRED configuration of a port.

If no port number is specified, the command displays the WRED configurations of all ports.

Related commands: qos wred apply.

Examples

# Display the WRED configuration of GigabitEthernet 2/0/1.

<Sysname> display qos wred interface GigabitEthernet 2/0/1

Interface: GigabitEthernet2/0/1

 Current WRED configuration:

 Applied WRED table name: queue-table1

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 WRED table configuration information.

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

Related commands: queue.

Examples

# Display the configuration of WRED table queue-table1.

<Sysname> display qos wred table queue-table1

 

Table Name: queue-table1

Table Type: Queue based WRED

QID:  gmin  gmax  gprob  ymin  ymax  yprob  rmin  rmax  rprob

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

 0    10    NA    10    10    NA    10    10    NA    10

 1    10    NA    10    10    NA    10    10    NA    10

 2    10    NA    10    10    NA    10    10    NA    10

 3    10    NA    10    10    NA    10    10    NA    10

 4    10    NA    10    10    NA    10    10    NA    10

 5    10    NA    10    10    NA    10    10    NA    10

 6    10    NA    10    10    NA    10    10    NA    10

 7    10    NA    10    10    NA    10    10    NA    10

Table 4-1 display qos wred table command output description

Field

Description

Table name

Name of a WRED table

Table type

Type of a WRED table

Queue ID

ID of the queue

gmin

Lower threshold configured for green packets, whose drop precedence is 0

gmax

Upper threshold configured for green packets, whose drop precedence is 0

gprob

Drop probability slope configured for green packets, whose drop precedence is 0

ymin

Lower threshold configured for yellow packets, whose drop precedence is 1

ymax

Upper threshold configured for yellow packets, whose drop precedence is 1

yprob

Drop probability slope configured for yellow packets, whose drop precedence is 1

rmin

Lower threshold configured for red packets, whose drop precedence is 2

rmax

Upper threshold configured for red packets, whose drop precedence is 2

rprob

Drop probability slope configured for red packets, whose drop precedence is 2

 

qos wred apply

Syntax

qos wred apply table-name

undo qos wred apply

View

Interface view, port group view

Default Level

2: System Level

Parameters

table-name: Name of a global WRED table.

Description

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

Use the undo qos wred apply command to cancel the application.

By default, no WRED table is applied to any port or port group.

Related commands: display qos wred interface.

Examples

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

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] qos wred apply queue-table1

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 table-name: Specifies a name for the table, a string of 1 to 32 characters..

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 remove a WRED table.

By default, no WRED table is created.

A WRED table in use cannot be removed.

Related commands: queue.

Examples

# Create a WRED table named queue-table1.

<Sysname> system-view

[Sysname] qos wred queue table queue-table1

[Sysname-wred-table-queue-table1]

queue

Syntax

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

undo queue { queue-id | all }

View

WRED table view

Default Level

2: System Level

Parameters

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

drop-level drop-level: Specifies a drop level, in the range of 0 to 2. If this argument is not specified, the subsequent configuration takes effect on the packets in the queue regardless of the drop level.

low-limit low-limit: Specifies a lower threshold. When the queue length exceeds the lower threshold, WRED begins to drop packets. The low-limit argument ranges from 0 to 100 and defaults to 10.

discard-probability discard-prob: Specifies the discard-prob argument, which ranges from 0 to 90 and defaults to 10. Each drop level is configured with an independent drop probability. The meaning of discard-probability discard-prob depends on the type of the LPU where the WRED table-applied port resides, as shown in Table 4-2.

Table 4-2 Description on discard-probability discard-prob

LPU type

Description on discard-probability discard-prob

EA

In a coordinate graph with the queue length percentage as the abscissa and drop probability as the ordinate, discard-prob specifies the degree of the included angle between the abscissa and the straight line starting at (low-limit, 0) and ending at (100%, max-drop-probability). The degree of the included angel ranges from 0 to 90.

l      When the queue length is fixed, the bigger the argument, the bigger the drop-probability.

l      When the argument is fixed, the bigger the queue length, the bigger the drop-probability.

SC

Reciprocal of the drop probability. The argument corresponds to the drop probability as follows:

l      0 corresponds to 100%

l      1 through 8 corresponds to 1/8

l      9 through 16 corresponds to 1/16

l      17 through 32 corresponds to 1/32

l      33 through 64 corresponds to 1/64

l      65 through 90 corresponds to 1/128

 

Description

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

Use the undo queue command to restore the default.

By default, the lower threshold is 10 and the discard-prob argument is 10 for all the drop levels in the WRED table.

Related commands: qos wred queue table.

Examples

# Modify drop parameters for queue 1 in the WRED table queue-table1: set the lower threshold to 10 and the degree of the included angle between the drop probability and queue length percentage to 30 for packets with drop level 1 in queue 1 (assuming the WRED table queue-table1 is applied to a port on an EA LPU).

<Sysname> system-view

[Sysname] qos wred queue table queue-table1

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

 


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-lp: Specifies the 802.1p precedence-to-local precedence mapping table.

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

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

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

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

Description

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

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

Related commands: qos map-table.

Examples

# Display the configuration 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    :    2

   1    :    2

   2    :    2

   3    :    1

   4    :    1

   5    :    1

   6    :    0

   7    :    0

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

Input entries of the mapping table

EXPORT

Output entries 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 parameters.

export-value: Output parameter in the mapping table.

all: Removes all the parameters in the priority mapping table.

Description

Use the import command to configure entries for a priority mapping table, that is, to define one or more mapping rules.

Use the undo import command to restore specific entries of a priority mapping table to the default.

Note that, you cannot configure to map any DSCP value to drop precedence 1.

Related commands: display qos map-table.

Examples

# Configure the 802.1p precedence-to-drop precedence mapping table to map 802.1p precedence 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

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-lp: Specifies the 802.1p precedence-to-local precedence mapping table.

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

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

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

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

Description

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

Related commands: display qos map-table.

Examples

# Enter 802.1p precedence-to-drop precedence mapping table view.

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

[Sysname-maptbl-dot1p-dp]

Port Priority Configuration Commands

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 to be configured. This argument is in the range 0 to 7.

Description

Use the qos priority command to set the port priority for a port.

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

By default, the port priority is 0.

Note that, if a port receives packets without an 802.1q tag, the switch takes the priority of the receiving port as the 802.1p precedence of the packets and then searches the dot1p-dp/lp mapping table for the local/drop precedence for the packets according to the priority of the receiving port.

Examples

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

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

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

Port Priority Trust Mode 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: Port type.

interface-number: Port number.

Description

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

If no port is specified, this command displays the port priority trust modes of all the ports.

Examples

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

<Sysname> display qos trust interface GigabitEthernet 2/0/1

Interface: GigabitEthernet2/0/1

Port priority information

Port priority :0

Port priority trust type : dscp

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

Field

Description

Interface

Port name, comprising of port type and port number

Port priority

Port priority

Port priority trust type

Port priority trust mode

l      dscp indicates that the DSCP precedence of the received packets is trusted

l      dot1p indicates that the 802.1p precedence of the received packets is trusted

 

qos trust

Syntax

qos trust dscp

undo qos trust

View

Ethernet interface view, port group view

Default Level

2: System Level

Parameters

dscp: Specifies to trust DSCP precedence carried in the packet and adopt this priority for priority mapping.

Description

Use the qos trust command to configure the port priority trust mode.

Use the undo qos trust command to restore the default port priority trust mode.

By default, the 802.1p precedence of the received packets is trusted.

Examples

# Specify to trust the DSCP precedence carried in packets on GigabitEthernet 2/0/1 port.  

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

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

 


QoS Configuration Commands in an EPON System

QoS Configuration Commands at the OLT Side

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

<Sysname> system-view

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

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

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

<Sysname> system-view

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

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

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

<Sysname> system-view

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

[Sysname-Onu2/0/1:1] bandwidth downstream policy 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 3/0/1

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

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 mapping between the CoS precedence and local precedence of uplink and downlink packets on the OLT port.

Use the undo priority-queue-mapping command to restore the default mapping between CoS precedence and local precedence of uplink and downlink packets on the OLT port.

The default mapping between CoS precedence and local precedence on an OLT port is as shown in Table 6-1.

Table 6-1 Default mapping between the CoS precedence and local precedence of the packets on an OLT port

CoS precedence

Local precedence

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

 

Examples

# Configure the mapping between the CoS precedence and local precedence of downlink packets on the OLT port.

<Sysname> system-view

[Sysname] interface olt 3/0/1

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

Table 6-2 shows the mapping between CoS precedence and local precedence of downlink packets on the OLT port after the configuration is compete. 

Table 6-2 Mapping between CoS precedence and local precedence

CoS precedence

Local precedence

0

1

1

1

2

2

3

3

4

4

5

5

6

6

7

7

 

QoS Configuration Commands at the ONU Side

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 CoS 0 is to be mapped, in the range of 0 to 3.

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

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

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

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

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

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

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

Description

Use the qos cos-local-precedence-map command to configure the mappings between CoS precedence values to local precedence values on an ONU port.

Use the undo qos cos-local-precedence-map command to restore the mappings between CoS precedence values to local precedence values on an ONU port to defaults.

Table 6-3 shows the default CoS precedence values and the corresponding local precedence queues of the packets on an ONU port.

 

 

This command takes effect on the downlink data stream only.

 

Table 6-3 Default mapping between CoS precedence and local precedence

CoS precedence

Local precedence

0

0

1

0

2

1

3

1

4

2

5

2

6

3

7

3

 

Examples

# Configure the CoS precedence-to-local precedence mapping of the packets on the ONU port.

<Sysname> system-view

[Sysname] interface onu2/0/1:1

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

Table 6-4 shows the CoS precedence-to-local precedence mapping after the configuration is compete. 

Table 6-4 CoS precedence-to-local precedence mapping

CoS precedence

Local precedence

0

0

1

1

2

1

3

0

4

2

5

2

6

3

7

3

 

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 6-5 lists possible selector values.

operator: Match rule. Table 6-6 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 6-5 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 6-6 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 2/0/1:1

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

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: Specifies the committed information rate (CIR) value – guaranteed bandwidth in kbps.

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: Specifies the peak information rate in kbps.

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 2/0/1:1

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

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网