H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 5303(V1.01)

HomeSupportSwitchesH3C S3610[S5510] Switch SeriesReference GuidesCommand ReferencesH3C S3610[S5510] Series Ethernet Switches Command Manual-Release 5303(V1.01)
21-QoS Commands
Title Size Download
21-QoS Commands 179.88 KB

Table of Contents

Chapter 1 TP and TS Configuration Commands. 1-1

1.1 TP Configuration Commands. 1-1

1.1.1 display qos car interface. 1-1

1.1.2 qos car 1-2

1.2 TS Configuration Commands. 1-3

1.2.1 display qos gts interface. 1-3

1.2.2 qos gts. 1-4

Chapter 2 QoS Policy Configuration Commands. 2-1

2.1 Commands for Defining Classes. 2-1

2.1.1 display traffic classifier 2-1

2.1.2 if-match. 2-2

2.1.3 traffic classifier 2-4

2.2 Traffic Behavior Configuration Commands. 2-5

2.2.1 accounting. 2-5

2.2.2 car 2-6

2.2.3 display traffic behavior 2-7

2.2.4 filter 2-8

2.2.5 nest 2-9

2.2.6 primap. 2-10

2.2.7 redirect 2-10

2.2.8 remark dot1p. 2-11

2.2.9 remark drop-precedence. 2-12

2.2.10 remark dscp. 2-13

2.2.11 remark ip-precedence. 2-14

2.2.12 remark local-precedence. 2-15

2.2.13 remark service-vlan-id. 2-15

2.2.14 traffic behavior 2-16

2.3 QoS Policy Configuration Commands. 2-17

2.3.1 classifier behavior 2-17

2.3.2 display qos policy user-defined. 2-17

2.3.3 display qos policy interface. 2-18

2.3.4 qos apply policy. 2-20

2.3.5 qos policy. 2-20

Chapter 3 Congestion Management Configuration Commands. 3-1

3.1 Congestion Management Configuration Commands. 3-1

3.1.1 display qos wrr interface. 3-1

3.1.2 qos wrr 3-2

Chapter 4 Priority Mapping Configuration Commands. 4-1

4.1 Priority Mapping Table Configuration Commands. 4-1

4.1.1 display qos map-table. 4-1

4.1.2 qos map-table. 4-2

4.1.3 import 4-3

4.2 Port Priority Configuration Commands. 4-3

4.2.1 qos priority. 4-3

4.3 Port Priority Trust Mode Configuration Commands. 4-4

4.3.1 display qos trust interface. 4-4

4.3.2 qos trust 4-5

Chapter 5 Congestion Avoidance Configuration Commands. 5-1

5.1 Congestion Avoidance Configuration Commands. 5-1

5.1.1 burst-traffic. 5-1

5.1.2 display burst-traffic interface. 5-2

5.1.3 display qos wred interface. 5-2

5.1.4 qos wred enable. 5-3

Chapter 6 Aggregation CAR Configuration Commands. 6-1

6.1 Aggregation CAR Configuration Commands. 6-1

6.1.1 qos car aggregative. 6-1

6.1.2 qos car 6-2

6.1.3 car name. 6-3

6.1.4 display qos car name. 6-3

6.1.5 reset qos car name. 6-4

Chapter 7 VLAN Policy Configuration Commands. 7-1

7.1 VLAN Policy Configuration Commands. 7-1

7.1.1 display qos vlan-policy. 7-1

7.1.2 qos vlan-policy. 7-2

7.1.3 reset qos vlan-policy. 7-3

Chapter 8 Traffic Mirroring Configuration Commands. 8-1

8.1 Traffic Mirroring Configuration Commands. 8-1

8.1.1 mirror-to cpu. 8-1

8.1.2 mirror-to interface. 8-1

 


Chapter 1  TP and TS Configuration Commands

1.1  TP Configuration Commands

1.1.1  display qos car interface

Syntax

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

View

Any view

Parameter

interface-type: Port type.

interface-number: Port number.

Description

Use the display qos car interface command to display the CAR (committed access rate) settings and statistics of a port.

If no ports are specified, this command displays the CAR setting and statistics of all the ports.

Example

# Display the CAR settings and statistics of Ethernet1/0/1 port.

<Sysname> display qos car interface Ethernet 1/0/1

Interface: Ethernet1/0/1

Direction: Inbound

  Rule(s): If-match acl 2001

  CIR 64 (kbps),  CBS 100000 (byte),  EBS 100000 (byte) ,  PIR 100000 (kbps)

  Red Action : discard

  Green : 0(Bytes)

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

Field

Description

Interface

Port name, comprising of port type and port number

Direction

Direction of traffic policing (TP). As for S3610 and S5510 series Ethernet switches, TP is available to inbound packets only.

Rule(s)

Rules used for matching packets

CIR

Committed information rate (CIR), in kbps

CBS

Committed burst size (CBS), in bytes

EBS

Excess burst size (EBS), in bytes

PIR

Peak information rate (PIR), in kbps

Red Action

Action to be taken for packets when the traffic rate exceeds CIR

Green

Size of the packets (in bytes) when the traffic rate is lower than CIR

 

1.1.2  qos car

Syntax

qos car inbound acl [ ipv6 ] acl-number cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pir peak-information-rate ] [ red action ]

undo qos car inbound acl [ ipv6 ] acl-number

View

Ethernet port view, port group view

Parameter

inbound: Limits the inbound traffic.

acl acl-number: Specifies an IPv4 ACL for  traffic rate limiting. The acl-number argument ranges from 2000 to 5999, among which:

l           A value in the range from 2000 to 2999 identifies a basic IPv4 ACL.

l           A value in the range from 3000 to 3999 identifies an advanced IPv4 ACL.

l           A value in the range from 4000 to 4999 identifies a Layer 2 ACL.

l           A value in the range from 5000 to 5999 identifies a user-defined ACL.

acl ipv6 acl-number: Specifies an IPv6 ACL for traffic rate limiting. The acl-number argument ranges from 2000 to 3999, among which:

l           A value in the range from 2000 to 2999 identifies a basic IPv6 ACL.

l           A value in the range from 3000 to 3999 identifies an advanced IPv6 ACL.

cir committed-information-rate: Specifies the committed information rate (CIR) in kbps. The range of the committed-information-rate argument varies by port type as follows:

l           For fast Ethernet port: 4 to 100000

l           For GigabitEthernet port: 4 to 1000000

cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes. The committed-burst-size argument ranges from 0 to 10,000,000, the default is 100,000.

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

pir peak-information-rate: Specifies the peak information rate (PIR) in kbps. The range of the peak-information-rate argument varies by port type as follows:

l           For fast Ethernet port: 4 to 100000

l           For GigabitEthernet port: 4 to 1000000

red action: Specifies the action to be conducted when the traffic rate does not conforms to CIR.

l           discard: Drops the packets.

l           pass: Forwards the packets.

By default, packets not conforming to CIR are dropped.

Description

Use the qos car command to apply a CAR policy to a port.

Use the undo qos car command to remove a CAR policy applied to a port.

You can execute the qos car command repeatedly to apply multiple CAR policies to a port. The policies applied to a port are invoked in the order they are applied.

Example

# Perform TP for inbound traffic matching ACL 2001 on Ethernet1/0/1 port. When the traffic rate is lower than 200 kbps, packets are forwarded normally; when the traffic rate exceeds 200 kbps, the extra packets are dropped.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] qos car inbound acl 2001 cir 200 red discard

1.2  TS Configuration Commands

1.2.1  display qos gts interface

Syntax

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

View

Any view

Parameter

interface-type: Port type.

interface-number: Port number.

Description

Use the display qos gts interface command to display the general TS configuration of a port.

If no port is specified, this command displays the general TS configuration of all the ports.

Example

# Display the general TS configuration of Ethernet 1/0/1 port.

<Sysname> display qos gts interface Ethernet 1/0/1

Interface: Ethernet1/0/1

 Rule(s): If-match queue  0

 CIR 650 (kbps)

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

Field

Description

Interface

Port name, comprising of port type and port number

Rule(s)

Matching rules

l      any indicates that TS is performed for all the queues

l      queue indicates that TS is performed for the specific queue

CIR

Committed information rate (CIR) in kbps

 

1.2.2  qos gts

Syntax

qos gts { any | queue queue-number } cir committed-information-rate

undo qos gts { any | queue queue-number }

View

Ethernet port view, port group view

Parameter

any: Performs traffic shaping (TS) for all the packets.

queue queue-number: Performs TS for packets in the queue identified by the queue-number argument, in the range of 0 to 7.

cir committed-information-rate: Specifies the committed information rate (CIR). The range of the committed-information-rate argument varies by port type as follows:

l           For fast Ethernet port: 650 to 100000

l           For GigabitEthernet port: 65 to 1000000

Note that the argument must be a multiple of 650.

Description

Use the qos gts command to set TS parameters and enable TS for a specific type of traffic or all types of traffic.

Use the undo qos gts command to remove TS parameters for a specific type traffic or all types of traffic. .

By default, no TS parameters are configured for a port.

Example

#  Perform TS for all the packets on Ethernet1/0/1 port. Packets with the rate lower than 650 kbps are forwarded normally. Those with the rate exceeding 650 kbps are dropped.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] qos gts any cir 650

 


Chapter 2  QoS Policy Configuration Commands

2.1  Commands for Defining Classes

2.1.1  display traffic classifier

Syntax

display traffic classifier user-defined [ classifier-name ]

View

Any view

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

 

2.1.2  if-match

Syntax

if-match match-criteria

undo if-match match-criteria

View

Class view

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

Note that, for a class with the relationship between the classification rules in it set to logical and, a packet matches the class if it matches a rule in the ACL.

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.

Note that, for a class with the relationship between the classification rules in it set to logical and, a packet matches the class if it matches a rule in the ACL.

any

Specifies to match all packets.

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.

dot1p 8021p

Specifies to match packets by 802.1p priority. The 8021p 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.

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, IPv6 or Bittorrent.

The S3610 and S5510 series Ethernet switches do not support the Bittorrent protocol currently.

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.

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.

 

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.

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 class1 to match the advanced IPv4 ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class1

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

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

<Sysname> system-view

[Sysname] traffic classifier class1

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

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

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match any

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

<Sysname> system-view

[Sysname] traffic classifier class1

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

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

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a rule for class1 to match IP packets.

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a rule for class1 to match the packets with their 802.1p priority values being 2.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match dot1p 2

# Define a rule for class1 to match the packets of VLAN 1024 of the user networks.

<Sysname> system-view

[Sysname] traffic classifier class1

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

# Define a rule for class1 to match the packets of VLAN 1000 of the operator’s network.

<Sysname> system-view

[Sysname] traffic classifier class1

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

2.1.3  traffic classifier

Syntax

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

undo traffic classifier classifier-name

View

System view

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

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1]

2.2  Traffic Behavior Configuration Commands

2.2.1  accounting

Syntax

accounting

undo accounting

View

Traffic behavior view

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.

Note that, the traffic accounting action and the aggregation CAR action cannot be configured at the same time in a traffic behavior. Otherwise, the policy cannot be successfully applied.

Examples

# Configure the traffic accounting action for a traffic behavior.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] accounting

2.2.2  car

Syntax

car { cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pir peak-information-rate ] [ red action ] | name global-car-name }

undo car

View

Traffic behavior view

Parameters

cir committed-information-rate: Specifies the committed information rate (CIR) in kbps. The committed-information-rate argument ranges from 4 to 1,000,000.

cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes. The committed-burst-size argument ranges from 0 to 10,000,000, the default is 100,000.

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

pir peak-information-rate: Specifies the peak information rate (PIR) in kbps. The peak-information-rate argument ranges from 4 to 1,000,000.

red action: Specifies the action to be conducted when the traffic rate does not conforms to CIR.

l           discard: Drops the packets.

l           pass: Forwards the packets.

By default, packets not conforming to CIR are dropped.

name global-car-name: Specifies the name of the aggregation CAR.

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:

l           If you configure the qos car command and a QoS policy configured with the car command for the same class of packets, the qos car command does not take effect.

l           If you execute the car command multiple times in traffic behavior view, the last configuration overrides the previous ones.

l           The traffic accounting action and the aggregation CAR action cannot be configured at the same time in a traffic behavior. Otherwise, the policy cannot be successfully applied.

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

Examples

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

<Sysname> system-view

[Sysname] traffic behavior database

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

2.2.3  display traffic behavior

Syntax

display traffic behavior user-defined [ behavior-name ]

View

Any view

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 1000 (kbps) , CBS 100000 (byte), EBS 100000 (byte), PIR 1000 (kbps)

        Red Action: discard

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

Red Action

Action conducted to packets not conforming to CIR

 

2.2.4  filter

Syntax

filter { deny | permit }

undo filter

View

Traffic behavior view

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.

Note that the filter deny command cannot be configured with any other action at the same time in a traffic behavior. Otherwise, the policy cannot be successfully applied.

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

2.2.5  nest

Syntax

nest top-most vlan-id vlan-id

undo nest

View

Traffic behavior view

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 the action of creating an external VLAN tag for a traffic behavior.

Use the undo nest command to remove the action of creating an external VLAN tag.

Note that, the nest command, the redirect next-hop command, and the remark service-vlan-id command cannot be configured at the same time in a traffic behavior. Otherwise, the policy cannot be successfully applied.

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

Examples

# Configure the action of creating an external VLAN tag for a traffic behavior.

<Sysname> system-view

[Sysname] traffic behavior database

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

2.2.6  primap

Syntax

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

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

View

Traffic behavior view

Parameter

pre-defined: Specifies a pre-defined priority mapping table.

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

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

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

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

Description

Use the primap command to configure the action of getting other precedence for packets by looking up a priority mapping table.

Use the primap command to remove the action.

Note that, the priority mapping action cannot be configured with any priority marking action except the DSCP precedence marking action at the same time in a traffic behavior. Otherwise, the policy cannot be successfully applied.

Related command: display qos map-table.

Example

# Define the DSCP-precedence-to-drop-precedence mapping action for the traffic behavior behavior1.

<Sysname> system-view

[Sysname] traffic behavior behavior1

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

2.2.7  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

View

Traffic behavior view

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.

Note that, the redirect next-hop command, the remark service-vlan-id command, and the nest command cannot be configured at the same time in a traffic behavior. Otherwise, the policy cannot be successfully applied.

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

Examples

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

<Sysname> system-view

[Sysname] traffic behavior database

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

2.2.8  remark dot1p

Syntax

remark dot1p 8021p

undo remark dot1p

View

Traffic behavior view

Parameters

8021p: 802.1p priority 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 priority for a traffic behavior.

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

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

Examples

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

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark dot1p 2

2.2.9  remark drop-precedence

Syntax

remark drop-precedence drop-precedence-value

undo remark drop-precedence

View

Traffic behavior view

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

2.2.10  remark dscp

Syntax

remark dscp dscp-value

undo remark dscp

View

Traffic behavior view

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

2.2.11  remark ip-precedence

Syntax

remark ip-precedence ip-precedence-value

undo remark ip-precedence

View

Traffic behavior view

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

2.2.12  remark local-precedence

Syntax

remark local-precedence local-precedence

undo remark local-precedence

View

Traffic behavior view

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.

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

2.2.13  remark service-vlan-id

Syntax

remark service-vlan-id vlan-id-value

undo remark service-vlan-id

View

Traffic behavior view

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.

Note that, the remark service-vlan-id command, the redirect next-hop command, and the nest command cannot be configured at the same time in a traffic behavior. Otherwise, the policy cannot be successfully applied.

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

2.2.14  traffic behavior

Syntax

traffic behavior behavior-name

undo traffic behavior behavior-name

View

System view

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]

2.3  QoS Policy Configuration Commands

2.3.1  classifier behavior

Syntax

classifier classifier-name behavior behavior-name

undo classifier classifier-name

View

Policy view

Parameters

classifier-name: Name of an existing class.

behavior–name: Name of an existing traffic behavior.

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.

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

2.3.2  display qos policy user-defined

Syntax

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

View

Any view

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

      Marking:

        Remark dot1p COS 4

      Committed Access Rate:

        CIR 1000 (kbps), CBS 100000 (byte), EBS 100000 (byte), PIR 1000 (kbps)

        Red Action: discard

      Filter enable : permit

      Redirect enable:

        Redirect type: next-hop

        Redirect destination: 1:1::1 2:2::2

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

 

2.3.3  display qos policy interface

Syntax

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

View

Any view

Parameters

interface-type: Port type.

interface-number: Port number.

inbound: Specifies the inbound 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 Ethernet1/0/1 port.

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

 

  Interface: Ethernet1/0/1

 

  Direction: Inbound

 

  Policy: test1

   Classifier: test1 (Failed)

     Operator: AND

     Rule(s) : If-match acl 2000

     Behavior: test1

      Filter Enable: deny

Table 2-6 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 (For S3610 and S5510 series Ethernet switches, a QoS policy can only be used in the inbound direction of a port.)

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

 

2.3.4  qos apply policy

Syntax

qos apply policy policy-name  inbound

undo qos apply policy inbound

View

Ethernet port view, port group view

Parameters

inbound: Specifies the inbound 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.

Examples

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

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

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

2.3.5  qos policy

Syntax

qos policy policy-name

undo qos policy policy-name

View

System view

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]

 


Chapter 3  Congestion Management Configuration Commands

3.1  Congestion Management Configuration Commands

3.1.1  display qos wrr interface

Syntax

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

View

Any view

Parameter

interface-type: Port type.

interface-number: Port number.

Description

Use the display qos wrr interface command to display the weighted round robin (WRR) queue information about a port.

If no ports are specified, this command displays the WRR information about all the ports.

Related command: qos wrr.

Example

# Display the WRR information about Ethernet1/0/1 port.

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

Interface: Ethernet1/0/1

Output queue:   Weighted round robin queue

Queue ID    Group    Weight

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

   0         sp       N/A

   1         sp       N/A

   2         1        10

   3         1        30

   4         1        70

   5         2        20

   6         2        50

   7         2        100

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

Field

Description

Interface

Port name, comprising of port type and port number

Output queue

Type of the current output queues

Queue ID

Queue number

Group

ID of the group which a queue belongs to

Weight

Queue weight

N/A indicates that the queue adopts the SP queue scheduling algorithm

 

3.1.2  qos wrr

Syntax

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

undo qos wrr

View

Ethernet port view, port group view

Parameter

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

group group-id: Specifies a WRR priority group. The group-id argument can be 1 or 2. The WRR priority groups are scheduled by priority.

weight queue-weight: Specifies weight for the queue. The queue-weight argument is in the range 8 to 100.

sp: Specifies the SP queue scheduling algorithm.

Description

Use the qos wrr command to configure the WRR or SP + WRR queue scheduling algorithm for a port or port group.

Use the undo qos wrr command to restore the default.

By default, all the output queues of a port are scheduled using the strict priority (SP) algorithm.

A port on an S3610 and S5510 switch supports eight output queues. Different queues can adopt different queue scheduling algorithms. As required, you can configure part of the queues on a port to adopt the SP queue scheduling algorithm and part of the queues to adopt the WRR queue scheduling algorithm. The SP+WRR queue scheduling algorithm is implemented by adding queues on a port to SP scheduling queues and WRR queue scheduling queues respectively. For example, queue 0 and queue 1 are in the SP queue scheduling group, and queue 2, queue 3, and queue 4 are in the WRR queue scheduling group 1, queue 5, queue 6, and queue 7 are in WRR queue scheduling group 2. Round robin is performed in WRR group 2 firstly. If no packet is to be sent in WRR group 2, round robin is performed in WRR group 1. At last, packets in the SP queue scheduling group are processed.

 

  Caution:

With WRR or SP + WRR queue scheduling algorithm adopted, the queues assigned to the same queue scheduling group must be with consecutive queue numbers.

 

Example

# Enable the SP+WRR queue scheduling algorithm on Ethernet1/0/1. Add queue 0 and queue 1 to the SP queue scheduling group; add queue 2, queue 3, and queue 4 to WRR queue scheduling group 1, with the weight being 20, 70, and 100 respectively; add queue 5, queue 6, and queue 7 to WRR queue scheduling group 2, with the weight being 10, 50, and 80 respectively.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

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

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

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

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

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

[Sysname-Ethernet1/0/1] qos wrr 5 group 2 weight 10

[Sysname-Ethernet1/0/1] qos wrr 6 group 2 weight 50

[Sysname-Ethernet1/0/1] qos wrr 7 group 2 weight 80

 


Chapter 4  Priority Mapping Configuration Commands

4.1  Priority Mapping Table Configuration Commands

4.1.1  display qos map-table

Syntax

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

View

Any view

Parameters

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

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

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

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

dscp-dot1p: Specifies the DSCP-to-802.1p priority 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 priority-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 4-1 Description on the fields of the display qos map-table command

Field

Description

MAP-TABLE NAME

Name of the mapping table

TYPE

Type of the mapping table

IMPORT

Input entries of the mapping table

EXPORT

Output entries of the mapping table

 

4.1.2  qos map-table

Syntax

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

View

System view

Parameters

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

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

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

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

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

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

[Sysname-maptbl-dot1p-dp]

4.1.3  import

Syntax

import import-value-list export export-value

undo import { import-value-list | all }

View

Priority mapping table view

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.

Related commands: display qos map-table.

Examples

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

4.2  Port Priority Configuration Commands

4.2.1  qos priority

Syntax

qos priority priority-value

undo qos priority

View

Ethernet port view, port group view

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.

Examples

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

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

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

4.3  Port Priority Trust Mode Configuration Commands

4.3.1  display qos trust interface

Syntax

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

View

Any view

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

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

Interface: Ethernet1/0/1

Port priority information

Port priority :0

Port priority trust type : dot1p

Table 4-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      dot1p indicates that the 802.1p priority of the received packets is trusted

l      untrust indicates that the port priority is trusted

 

4.3.2  qos trust

Syntax

qos trust dot1p

undo qos trust

View

Ethernet port view, port group view

Parameters

dot1p: Specifies to trust 802.1p priority 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 priory mode set on the port is trusted.

Examples

# Specify to trust 802.1p priority carried in the packets on Ethernet1/0/1 port.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

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

 


Chapter 5  Congestion Avoidance Configuration Commands

5.1  Congestion Avoidance Configuration Commands

5.1.1  burst-traffic

Syntax

burst-traffic { queue queue-id length queue-length }&<1-8>

undo burst-traffic [ queue queue-id ]&<1-8>

View

Ethernet port view, port group view

Parameters

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

length queue-length: Specifies the queue length, in the range of 1 to 256.

Description

Use the burst-traffic command to set the queue length on the port or port group to adjust the capability of processing burst traffic.

Use the undo burst-traffic command to restore the default.

By default, the default queue length on a port varies by port type as follows:

l           For fast Ethernet port, the length of queue 0 is 4, and the length of the other queues is 1.

l           For GigabitEthernet port, the queue length is 6.

Although increasing queue length improves the ability to process burst traffic, it reduces the ability of congestion avoidance.

Related commands: display burst-traffic interface.

Examples

# Set the length of queue 1 and queue 3 to 8 and 32 on Ethernet 1/0/1.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] burst-traffic queue 1 length 8 queue 3 length 32

5.1.2  display burst-traffic interface

Syntax

display burst-traffic interface [ interface-type interface-number ]

View

Any view

Parameters

interface-type interface-number: Port type and port number.

Description

Use the display burst-traffic interface command to display the queue length configuration of a port.

If no port is specified, this command displays the queue length configuration of all the ports.

Examples

# Display the queue length configuration information of Ethernet 1/0/1.

<Sysname> display burst-traffic interface Ethernet 1/0/1

Interface e1/0/1

 Queue 0: 4      Queue 1: 8      Queue 2: 1

 Queue 3: 32     Queue 4: 1      Queue 5: 1

 Queue 6: 1      Queue 7: 1

5.1.3  display qos wred interface

Syntax

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

View

Any view

Parameter

interface-type: Port type.

interface-number: Port number.

Description

Use the display qos wred interface command to display the configuration about WRED on the specified ports.

If no port is specified when this command is executed, the configuration about WRED on all the ports is displayed.

Example

# Display the configuration information about WRED on Ethernet1/0/1.

<Sysname> display qos wred interface Ethernet 1/0/1

Interface: Ethernet1/0/1

 Current WRED configuration:

 WRED: Enable   

5.1.4  qos wred enable

Syntax

qos wred enable

undo qos wred enable

View

Ethernet port view, port group view

Parameter

None

Description

Use the qos wred enable command to enable the WRED function on the port or port group.

Use the undo qos wred enable command to restore the packet drop mode to the default tail drop mode and disable the WRED function.

By default, the tail drop mode is adopted on the port.

Related command: display qos wred interface.

Example

# Enable the WRED function on Ethernet1/0/1.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] qos wred enable

 


Chapter 6  Aggregation CAR Configuration Commands

6.1  Aggregation CAR Configuration Commands

6.1.1  qos car aggregative

Syntax

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

undo qos car global-car-name

View

System view

Parameter

global-car-name: Name of an aggregation CAR.

aggregative: Indicates that CAR is aggregated globally. Only aggregation CAR is supported currently.

cir committed-information-rate: Specifies the committed information rate (CIR) in kbps. The committed-information-rate argument ranges from 4 to 1,000,000.

cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes. The committed-burst-size argument ranges from 0 to 10,000,000, the default is 100,000.

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

pir peak-information-rate: Specifies the peak information rate (PIR) in kbps. The peak-information-rate argument ranges from 4 to 1,000,000.

red action: Specifies the action to be conducted when the traffic rate does not conforms to CIR.

l           discard: Drops the packets.

l           pass: Forwards the packets.

By default, packets not conforming to CIR are dropped.

Description

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

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

An aggregation CAR does not take effect until it is applied to a port or referenced in a policy.

Example

# Specify the aggregation CAR to adopt the following CAR parameters: CIR is 100, and red packets are dropped.

<Sysname> system-view

[Sysname] qos car test aggregative cir 100 red discard

6.1.2  qos car

Syntax

qos car inbound acl [ ipv6 ] acl-number name global-car-name

undo qos car inbound acl [ ipv6 ] acl-number

View

Ethernet port view, port group view

Parameter

inbound: Specifies to limit the rate of the packets received on the port.

acl acl-number: Specifies an IPv4 ACL for traffic rate limiting. The acl-number argument ranges from 2000 to 5999, among which:

l           A value in the range from 2000 to 2999 identifies a basic IPv4 ACL.

l           A value in the range from 3000 to 3999 identifies an advanced IPv4 ACL.

l           A value in the range from 4000 to 4999 identifies a Layer 2 ACL.

l           A value in the range from 5000 to 5999 identifies a user-defined ACL.

acl ipv6 acl-number: Specifies an IPv6 ACL for traffic rate limiting. The acl-number argument ranges from 2000 to 3999, among which:

l           A value in the range from 2000 to 2999 identifies a basic IPv6 ACL.

l           A value in the range from 3000 to 3999 identifies an advanced IPv6 ACL.

name global-car-name: Specifies the name of an aggregation CAR.

Description

Use the qos car name command to apply the aggregation CAR on the port.

Use the undo qos car command to remove the aggregation CAR from the port.

This command can be executed repeatedly on a port to apply multiple aggregation CAR policies to the port. CAR actions are performed on the packets according to the sequence that they are configured.

Example

# Apply the aggregation CAR named aggcar-1 to the packets matching IPv4 ACL 2001 on Ethernet1/0/1.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] qos car inbound acl 2001 name aggcar-1

6.1.3  car name

Syntax

car name global-car-name

undo car

View

Traffic behavior view

Parameter

name global-car-name: Specifies the name of an aggregation CAR.

Description

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

Use the undo car command to remove the aggregation CAR action for the traffic behavior.

Example

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

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] traffic behavior be1

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

6.1.4  display qos car name

Syntax

display qos car name global-car-name

View

Any view

Parameter

global-car-name: Name of an aggregation CAR.

Description

Use the display qos car name command to display the configuration information and statistics information about the specified aggregation CAR.

Example

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

<Sysname> display qos car name aggcar-1

 Name: aggcar-1

  Mode: aggregative

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

  Red Action: discard

  Green packet 0(Bytes)

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

Field

Description

Name

Name of the aggregation CAR action

Mode

Type of the aggregation CAR action

CIR

Committed information rate (CIR), in kbps

CBS

Committed burst size (CBS), in bytes

EBS

Excess burst size (EBS), in bytes

Red Action

Action to be taken for packets when the traffic rate exceeds CIR

 

6.1.5  reset qos car name

Syntax

reset qos car name [ global-car-name ]

View

User view

Parameter

global-car-name: Name of an aggregation CAR.

Description

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

If the global-car-name argument is not specified, this command will clear the statistics information about all aggregation CAR policies.

Example

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

<Sysname> reset qos car name aggcar-1

 


Chapter 7  VLAN Policy Configuration Commands

7.1  VLAN Policy Configuration Commands

7.1.1  display qos vlan-policy

Syntax

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

View

Any view

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.

Description

Use the display qos vlan-policy name 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 7-1 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 2.

<Sysname> display qos vlan-policy vlan 2

 

  Vlan 2

 

  Direction: Inbound

 

  Policy: 1

   Classifier: 2

     Operator: AND

     Rule(s) : If-match acl 2000

     Behavior: 2

      Accounting Enable

        0 (Packets)

      Committed Access Rate:

        CIR 128 (kbps), CBS 8000 (byte), EBS 0 (byte)

        Red Action: discard

        Green : 0(Bytes)

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

Field

Description

Vlan 2

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

 

7.1.2  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

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.

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:

The QoS policy applied to a port overrides the QoS policy applied to the VLAN the port belongs to.

 

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

7.1.3  reset qos vlan-policy

Syntax

reset qos vlan-policy [ vlan vlan-id ]

View

User view

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

 


Chapter 8  Traffic Mirroring Configuration Commands

8.1  Traffic Mirroring Configuration Commands

8.1.1  mirror-to cpu

Syntax

mirror-to cpu

undo mirror-to cpu

View

Traffic behavior view

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

8.1.2  mirror-to interface

Syntax

mirror-to interface interface-type interface-number

undo mirror-to interface interface interface-type interface-number

View

Traffic behavior view

Parameters

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

Description

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

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

 

  Caution:

l      A member port in a port aggregation group cannot function as the destination port for traffic mirroring.

l      If the destination port for traffic mirroring is not the same port as the destination port of the local port mirroring group, you cannot configure the two ports at the same time. For the detailed information about local port mirroring groups, refer to the Port Mirroring module in this manual.

 

Examples

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

<Sysname> system-view

[Sysname] traffic behavior 1

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

 

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