H3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103

HomeSupportWirelessH3C WX3000 Series Unified SwitchesReference GuidesCommand ReferencesH3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103
21-QoS-QoS Profile Command
Title Size Download
21-QoS-QoS Profile Command 219.52 KB

Table of Contents

1 QoS Commands· 1-1

QoS Commands· 1-1

burst-mode enable· 1-1

display protocol-priority· 1-1

display qos cos-drop-precedence-map· 1-2

display qos cos-dscp-map· 1-2

display qos cos-local-precedence-map· 1-3

display qos dscp-cos-map· 1-3

display qos dscp-drop-precedence-map· 1-5

display qos dscp-dscp-map· 1-6

display qos dscp-local-precedence-map· 1-8

display qos-global 1-10

display qos-interface all 1-10

display qos-interface mirrored-to· 1-12

display qos-interface priority-trust 1-12

display qos-interface traffic-limit 1-13

display qos-interface traffic-priority· 1-14

display qos-interface traffic-redirect 1-15

display qos-interface traffic-remark-vlanid· 1-15

display qos-interface traffic-shape· 1-16

display qos-interface traffic-statistic· 1-17

display qos-port-group· 1-18

display qos-vlan· 1-19

display queue-scheduler 1-19

mirrored-to· 1-20

mirrored-to vlan· 1-21

monitor-port 1-22

priority· 1-22

priority-trust 1-23

protocol-priority protocol-type· 1-24

qos cos-drop-precedence-map· 1-25

qos cos-dscp-map· 1-27

qos cos-local-precedence-map· 1-28

qos dscp-cos-map· 1-29

qos dscp-drop-precedence-map· 1-31

qos dscp-dscp-map· 1-32

qos dscp-local-precedence-map· 1-33

queue-scheduler 1-35

reset traffic-limit 1-36

reset traffic-limit vlan· 1-37

reset traffic-statistic· 1-37

reset traffic-statistic vlan· 1-38

traffic-limit 1-38

traffic-limit vlan· 1-40

traffic-priority· 1-41

traffic-priority vlan· 1-42

traffic-redirect 1-42

traffic-redirect vlan· 1-43

traffic-remark-vlanid· 1-44

traffic-shape· 1-45

traffic-statistic· 1-45

traffic-statistic vlan· 1-46

2 QoS Profile Configuration Commands· 2-1

QoS Profile Configuration Commands· 2-1

apply qos-profile· 2-1

display qos-profile· 2-1

packet-filter 2-2

qos-profile· 2-3

qos-profile port-based· 2-3

traffic-limit 2-4

traffic-priority· 2-5

 


QoS Commands

burst-mode enable

Syntax

burst-mode enable

undo burst-mode enable

View

System view

Parameters

None

Description

Use the burst-mode enable command to enable the burst function.

Use the undo burst-mode enable command to disable the burst function.

By default, the burst function is disabled.

Examples

# Enable the burst function on the current device.

<device> system-view

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

[device] burst-mode enable

display protocol-priority

Syntax

display protocol-priority

View

Any view

Parameters

None

Description

Use the display protocol-priority command to display the priority of the protocol packets.

Related commands: protocol-priority.

Examples

# Display the priority of the protocol packet.

<device> display protocol-priority

Protocol: telnet

  DSCP: be(0)

display qos cos-drop-precedence-map

Syntax

display qos cos-drop-precedence-map

View

Any view

Parameters

None

Description

Use the display qos cos-drop-precedence-map command to display the CoS-precedence-to-drop-precedence mapping table.

Related commands: qos cos-drop-precedence-map.

Examples

# Display the CoS-precedence-to-drop-precedence mapping table on the current device.

<device> display qos cos-drop-precedence-map

cos-drop-precedence-map:

              cos :       0     1     2     3     4     5     6     7

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

  drop-precedence :       0     0     0     0     0     0     0     0

display qos cos-dscp-map

Syntax

display qos cos-dscp-map

View

Any view

Parameters

None

Description

Use the display qos cos-dscp-map command to display the CoS-precedence-to-DSCP-precedence mapping table.

Related commands: qos cos-dscp-map.

Examples

# Display the CoS-precedence-to-DSCP-precedence mapping table.

<device> display qos cos-dscp-map

cos-dscp-map:

             cos :      0     1     2     3     4     5     6     7

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

            dscp :     16     0     8    24    32    40    48    56

display qos cos-local-precedence-map

Syntax

display qos cos-local-precedence-map

View

Any view

Parameters

None

Description

Use the display qos cos-local-precedence-map command to display the CoS-precedence-to-local-precedence mapping table.

Related commands: qos cos-local-precedence-map.

Examples

# Display the CoS-precedence-to-local-precedence mapping table on the current device.

<device> display qos cos-local-precedence-map

 cos-local-precedence-map:

               cos(802.1p) :     0     1     2     3     4     5     6     7

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

   local precedence(queue) :     2     0     1     3     4     5     6     7

display qos dscp-cos-map

Syntax

display qos dscp-cos-map

View

Any view

Parameters

None

Description

Use the display qos dscp-cos-map command to display the DSCP-precedence-to-CoS-precedence mapping table.

Related commands: qos dscp-cos-map.

Examples

# Display the DSCP-precedence-to-CoS-precedence mapping table.

<device> display qos dscp-cos-map

 dscp-cos-map:

             dscp :          cos

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

                0 :            1

                1 :            1

                2 :            1

                3 :            1

                4 :            1

                5 :            1

                6 :            1

                7 :            1

                8 :            2

                9 :            2

               10 :            2

               11 :            2

               12 :            2

               13 :            2

               14 :            2

               15 :            2

               16 :            0

               17 :            0

               18 :            0

               19 :            0

               20 :            0

               21 :            0

               22 :            0

               23 :            0

               24 :            3

               25 :            3

               26 :            3

               27 :            3

               28 :            3

               29 :            3

               30 :            3

               31 :            3

               32 :            4

               33 :            4

               34 :            4

               35 :            4

               36 :            4

               37 :            4

               38 :            4

               39 :            4

               40 :            5

               41 :            5

               42 :            5

               43 :            5

               44 :            5

               45 :            5

               46 :            5

               47 :            5

               48 :            6

               49 :            6

               50 :            6

               51 :            6

               52 :            6

               53 :            6

               54 :            6

               55 :            6

               56 :            7

               57 :            7

               58 :            7

               59 :            7

               60 :            7

               61 :            7

               62 :            7

               63 :            7

display qos dscp-drop-precedence-map

Syntax

display qos dscp-drop-precedence-map

View

Any view

Parameters

None

Description

Use the display qos dscp-drop-precedence-map command to display the DSCP-precedence-to-drop-precedence mapping table.

Related commands: qos dscp-drop-precedence-map.

Examples

# Display the DSCP-precedence-to-drop-precedence mapping table on the current device.

<device> display qos dscp-drop-precedence-map

 dscp-drop-precedence-map:

             dscp : drop-precedence

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

                0 :            1

                1 :            1

                2 :            1

                3 :            1

                4 :            1

                5 :            1

                6 :            1

                7 :            1

                8 :            1

                9 :            1

               10 :            1

               11 :            1

               12 :            1

               13 :            1

               14 :            1

               15 :            1

               16 :            1

               17 :            1

               18 :            1

               19 :            1

               20 :            1

               21 :            1

               22 :            1

               23 :            1

               24 :            1

               25 :            1

               26 :            1

               27 :            1

               28 :            1

               29 :            1

               30 :            1

               31 :            1

               32 :            0

               33 :            0

               34 :            0

               35 :            0

               36 :            0

               37 :            0

               38 :            0

               39 :            0

               40 :            0

               41 :            0

               42 :            0

               43 :            0

               44 :            0

               45 :            0

               46 :            0

               47 :            0

               48 :            0

               49 :            0

               50 :            0

               51 :            0

               52 :            0

               53 :            0

               54 :            0

               55 :            0

               56 :            0

               57 :            0

               58 :            0

               59 :            0

               60 :            0

               61 :            0

               62 :            0

               63 :            0

display qos dscp-dscp-map

Syntax

display qos dscp-dscp-map

View

Any view

Parameters

None

Description

Use the display qos dscp-dscp-map command to display the DSCP-precedence-to-DSCP-precedence mapping table.

Related commands: qos dscp-dscp-map.

Examples

# Display the DSCP-precedence-to-DSCP-precedence mapping table.

<device> display qos dscp-dscp-map

 dscp-dscp-map:

             dscp :         dscp

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

                0 :            0

                1 :            1

                2 :            2

                3 :            3

                4 :            4

                5 :            5

                6 :            6

                7 :            7

                8 :            8

                9 :            9

               10 :           10

               11 :           11

               12 :           12

               13 :           13

               14 :           14

               15 :           15

               16 :           16

               17 :           17

               18 :           18

               19 :           19

               20 :           20

               21 :           21

               22 :           22

               23 :           23

               24 :           24

               25 :           25

               26 :           26

               27 :           27

               28 :           28

               29 :           29

               30 :           30

               31 :           31

               32 :           32

               33 :           33

               34 :           34

               35 :           35

               36 :           36

               37 :           37

               38 :           38

               39 :           39

               40 :           40

               41 :           41

               42 :           42

               43 :           43

               44 :           44

               45 :           45

               46 :           46

               47 :           47

               48 :           48

               49 :           49

               50 :           50

               51 :           51

               52 :           52

               53 :           53

               54 :           54

               55 :           55

               56 :           56

               57 :           57

               58 :           58

               59 :           59

               60 :           60

               61 :           61

               62 :           62

               63 :           63

display qos dscp-local-precedence-map

Syntax

display qos dscp-local-precedence-map

View

Any view

Parameters

None

Description

Use the display qos dscp-local-precedence-map command to display the DSCP-precedence-to-local-precedence mapping table.

Related commands: qos dscp-local-precedence-map.

Examples

# Display the DSCP-precedence-to-local-precedence mapping table on the current device.

<device> display qos dscp-local-precedence-map

 dscp-local-precedence-map:

             dscp : local-precedence(queue)

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

                0 :            0

                1 :            0

                2 :            0

                3 :            0

                4 :            0

                5 :            0

                6 :            0

                7 :            0

                8 :            1

                9 :            1

               10 :            1

               11 :            1

               12 :            1

               13 :            1

               14 :            1

               15 :            1

               16 :            2

               17 :            2

               18 :            2

               19 :            2

               20 :            2

               21 :            2

               22 :            2

               23 :            2

               24 :            3

               25 :            3

               26 :            3

               27 :            3

               28 :            3

               29 :            3

               30 :            3

               31 :            3

               32 :            4

               33 :            4

               34 :            4

               35 :            4

               36 :            4

               37 :            4

               38 :            4

               39 :            4

               40 :            5

               41 :            5

               42 :            5

               43 :            5

               44 :            5

               45 :            5

               46 :            5

               47 :            5

               48 :            6

               49 :            6

               50 :            6

               51 :            6

               52 :            6

               53 :            6

               54 :            6

               55 :            6

               56 :            7

               57 :            7

               58 :            7

               59 :            7

               60 :            7

               61 :            7

               62 :            7

               63 :            7

display qos-global

Syntax

display qos-global { all | mirrored-to | traffic-limit | traffic-priority | traffic-redirect | traffic-statistic }

View

Any view

Parameters

all: Displays all the QoS-related configuration.

traffic-limit: Displays the global traffic policing configuration.

traffic-priority: Displays the global priority marking configuration.

traffic-redirect: Displays the global traffic redirecting configuration.

traffic-statistics: Displays the global traffic accounting configuration.

Description

Use the display qos-global command to display the QoS-related configuration performed for all the packets.

Examples

# Display all the QoS configurations performed for all the packets.

<device> display qos-global all

 global: traffic-limit inbound:

   Matches: Acl 3001 rule 0  running

     Target rate: 128 Kbps

     Exceed action: drop

   meter-statistic not running

display qos-interface all

Syntax

display qos-interface { interface-type interface-number | unit-id } all

View

Any view

Parameters

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

unit-id: Unit ID, which is fixed to 1. With this argument specified, the QoS-related configuration of all the ports on the device is displayed.

Description

Use the display qos-interface all command to display the QoS-related configuration of a port or all the ports on the device.

For a device, the following information is displayed in the following order depending on the configuration:

l          Traffic policing configurations

l          Priority marking configurations

l          Redirect configurations

l          Traffic accounting configurations

l          Traffic mirroring configurations

l          Priority trust mode configurations

l          Traffic shaping configurations

l          VLAN Mapping configurations

Examples

# Display the QoS-related configuration of GigabitEthernet 1/0/1.

<device> display qos-interface GigabitEthernet 1/0/1 all

 

GigabitEthernet1/0/1: traffic-limit

 Inbound:

   Matches: Acl 2000 rule 0  running

     Target rate: 128 Kbps

   meter-statistic not running

 

 GigabitEthernet1/0/1: priority-trust port

 

 GigabitEthernet1/0/1 Port Shaping: Disable

 0 kbps, 0 burst

 QID:    status    max-rate(kbps)   burst-size(byte)

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

  0 :   Disable           0                  0

  1 :   Disable           0                  0

  2 :   Disable           0                  0

  3 :   Disable           0                  0

  4 :   Disable           0                  0

  5 :   Disable           0                  0

  6 :   Disable           0                  0

  7 :   Disable           0                  0

display qos-interface mirrored-to

Syntax

display qos-interface { interface-type interface-number | unit-id } mirrored-to

View

Any view

Parameters

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

unit-id: Unit ID, which is fixed to 1. With this argument specified, the traffic mirroring configuration of all the ports on the device is displayed.

Description

Use the display qos-interface mirrored-to command to display the traffic mirroring configuration of a port or all the ports on the device.

Related commands: mirrored-to.

Examples

# Display the traffic mirroring configuration of GigabitEthernet 1/0/1.

<device> display qos-interface GigabitEthernet 1/0/1 mirrored-to

GigabitEthernet1/0/1: mirrored-to

 Inbound:

   Matches: Acl 2000 rule 0  running

     Mirrored to: monitor interface

Table 1-1 display qos-interface mirrored-to command output description

Field

Description

GigabitEthernet1/0/1:

Port with traffic mirroring configured

Inbound

Inbound direction. That is, traffic mirroring is performed to the inbound packets.

Matches

Match rule used for traffic classification

Mirrored to

Destination mirroring port

 

display qos-interface priority-trust

Syntax

display qos-interface { interface-type interface-number | unit-id } priority-trust

View

Any view

Parameters

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

unit-id: Unit ID, which is fixed to 1. With this argument specified, the priority trust mode configuration of all the ports on the device is displayed.

Description

Use the display qos-interface priority-trust command to display the priority trust mode configuration of a port or all the ports on the device.

Related commands: priority-trust.

Examples

# Display the priority trust mode configuration of Gigabitethernet 1/0/1.

<device> display qos-interface Gigabitethernet 1/0/1 priority-trust

 

 GigabitEthernet1/0/1: priority-trust port

Table 1-2 display qos-interface priority-trust command output description

Field

Description

GigabitEthernet1/0/1:

Port with priority trust mode configured

priority-trust port

Port priority is trusted.

l      priority-trust cos indicates that packet CoS precedence is trusted.

l      priority-trust dscp indicates that packet DSCP precedence is trusted.

 

display qos-interface traffic-limit

Syntax

display qos-interface { interface-type interface-number | unit-id } traffic-limit

View

Any view

Parameters

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

unit-id: Unit ID, which is fixed to 1. With this argument specified, the traffic policing configuration of all the ports on the device is displayed.

Description

Use the display qos-interface traffic-limit command to display the traffic policing configuration of a port or all the ports on the device. This command also displays the traffic policing statistics.

Related commands: traffic-limit.

Examples

# Display the traffic policing configuration and the corresponding statistics on GigabitEthernet 1/0/1.

<device> display qos-interface GigabitEthernet 1/0/1 traffic-limit

 

GigabitEthernet1/0/1: traffic-limit

 Inbound:

   Matches: Acl 2001 rule 0  running

     Target rate: 128 Kbps

     Conform action: remark-cos video

     Exceed action: drop

   meter-statistic running

     62284 byte outprofile

     82521 byte inprofile

Table 1-3 display qos-interface traffic-limit command output description

Field

Description

GigabitEthernet1/0/1:

Port with traffic policing configured

Inbound

Packet direction

Matches

ACL rules for traffic classifying

Target rate

Traffic policing target rate

Conform action

Action conducted to packet conforming to the traffic specification

Exceed action

Action conducted to packets exceeding the traffic specification

meter-statistic running

The function of collecting traffic policing statistics information is enabled (meter-statistic not running indicates that the function is not enabled)

62284 byte outprofile

Size of the packets exceeding the traffic specification (in bytes)

82521 byte inprofile

Size of the packets conforming to the traffic specification (in bytes)

 

display qos-interface traffic-priority

Syntax

display qos-interface { interface-type interface-number | unit-idtraffic-priority

View

Any view

Parameters

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

unit-id: Unit ID, which is fixed to 1. With this argument specified, the priority marking configuration of all the ports on the device is displayed.

Description

Use the display qos-interface traffic-priority command to display the priority marking configuration of a port or all the ports on the device.

Related commands: traffic-priority.

Examples

# Display the priority marking configuration of GigabitEthernet 1/0/1.

<device> display qos-interface GigabitEthernet 1/0/1 traffic-priority

GigabitEthernet1/0/1: traffic-priority

 Inbound:

   Matches: Acl 2000 rule 0  running

     Priority action: cos controlled-load

Table 1-4 display qos-interface traffic-priority command output description

Field

Description

GigabitEthernet1/0/1

Port with priority marking configured

Inbound

Packet direction

Matches

ACL rules for traffic classifying

Priority action

Priority marking action

l      cos indicates that the CoS precedence of packets is marked

l      dscp indicates that the DSCP precedence of packets is marked

 

display qos-interface traffic-redirect

Syntax

display qos-interface { interface-type interface-number | unit-idtraffic-redirect

View

Any view

Parameters

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

unit-id: Unit ID, which is fixed to 1. With this argument specified, the traffic redirecting configuration of all the ports on the device is displayed.

Description

Use the display qos-interface traffic-redirect command to display the traffic redirecting configuration of a port or all the ports on the device.

Related commands: traffic-redirect.

Examples

# Display the traffic redirecting configuration of GigabitEthernet 1/0/1.

<device> display qos-interface GigabitEthernet 1/0/1 traffic-redirect

GigabitEthernet1/0/1: traffic-redirect

 Inbound:

   Matches: Acl 2000 rule 0  running

     Redirected to: interface GigabitEthernet1/0/2

Table 1-5 display qos-interface traffic-redirect command output description

Field

Description

GigabitEthernet1/0/1

Port with traffic redirecting configured

Inbound

Packet direction

Matches

ACL rules for traffic classification

Redirected to

Destination port

 

display qos-interface traffic-remark-vlanid

Syntax

display qos-interface { interface-type interface-number | unit-id } traffic-remark-vlanid

View

Any view

Parameters

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

unit-id: Unit ID, which is fixed to 1. With this argument specified, the VLAN mapping configuration of all the ports on the device is displayed.

Description

Use the display qos-interface traffic-remark-vlanid command to display the VLAN mapping configuration of a port or all the ports on the device.

Related commands: traffic-remark-vlanid.

Examples

# Display the VLAN mapping configuration of GigabitEthernet 1/0/1.

<device> display qos-interface GigabitEthernet 1/0/1 traffic-remark-vlanid

GigabitEthernet1/0/1: traffic-remark-vlanid

 Inbound:

   Matches: Acl 2000 rule 0  running

     Remark vlan: 2

     Packet type: untagged-packet

Table 1-6 display qos-interface traffic-remark-vlanid command output description

Field

Description

GigabitEthernet1/0/1

Port with VLAN mapping configured

Inbound

Packet direction

Matches

ACL rules for traffic classifying

Remark vlan

Destination VLAN ID of the VLAN mapping function

Packet type

Packet type after VLAN mapping is performed

 

display qos-interface traffic-shape

Syntax

display qos-interface { interface-type interface-number | unit-idtraffic-shape

View

Any view

Parameters

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

unit-id: Unit ID, which is fixed to 1. With this argument specified, the traffic shaping configuration of all the ports is displayed.

Description

Use the display qos-interface traffic-shape command to display the traffic shaping configuration of a port or all the ports on the device.

Related commands: traffic-shape.

Examples

# Display the traffic shaping configuration of GigabitEthernet 1/0/1.

<device> display qos-interface Gigabitethernet1/0/1 traffic-shape

 

 GigabitEthernet1/0/1 Port Shaping: Enable

 2000 kbps, 160 burst

 QID:    status    max-rate(kbps)   burst-size(byte)

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

  0 :   Disable           0                  0

  1 :   Disable           0                  0

  2 :   Disable           0                  0

  3 :   Disable           0                  0

  4 :   Disable           0                  0

  5 :   Disable           0                  0

  6 :   Disable           0                  0

  7 :   Disable           0                  0

Table 1-7 display qos-interface traffic-shape command output description

Field

Description

GigabitEthernet1/0/1

Port with traffic shaping configured

2000 kbps

Maximum traffic rate

160 burst

Burst size

QID

Queue ID

status

Traffic shaping status of a queue

max-rate(kbps)

Maximum traffic rate of a queue

burst-size(byte)

Burst size of a queue

 

display qos-interface traffic-statistic

Syntax

display qos-interface { interface-type interface-number | unit-id } traffic-statistic

View

Any view

Parameters

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

unit-id: Unit ID, which is fixed to 1. With this argument specified, the traffic accounting configuration of all the ports on the device is displayed.

Description

Use the display qos-interface traffic-statistic command to display the traffic accounting configuration of a port or all the ports on the device. This command also displays traffic statistics.

Related commands: traffic-statistic.

Examples

# Display the traffic accounting configuration information and traffic statistics on GigabitEthernet 1/0/1.

<device> display qos-interface GigabitEthernet 1/0/1 traffic-statistic

GigabitEthernet1/0/1: traffic-statistic

 Inbound:

   Matches: Acl 2000 rule 0  running

     8251 packet

Table 1-8 display qos-interface traffic-statistic command output description

Field

Description

GigabitEthernet1/0/1

Port with the traffic accounting function configured

Inbound

Packet direction

Matches

ACL rules for traffic classification

8251 packet

Statistics on matched packets

 

display qos-port-group

Syntax

display qos-port-group [ group-id ] { all | mirrored-to | traffic-limit | traffic-priority | traffic-redirect | traffic-statistic }

View

Any view

Parameters

group-id: Port group ID, in the range 1 to 100. If this argument is not specified, the QoS information of all the port groups is displayed.

all: Displays all the QoS-related configurations of a port group.

traffic-limit: Displays the traffic policing configuration of a port group.

traffic-priority: Displays the priority marking configuration of a port group.

traffic-redirect: Displays the traffic redirecting configuration of a port group.

traffic-statistics: Displays the traffic accounting configuration of a port group.

Description

Use the display qos-port-group command to display specific QoS-related configuration of a port group.

Examples

# Display all the QoS-related configurations of port group 1.

<device> display qos-port-group 1 all

Port-group 1 traffic-limit

 Inbound:

   Matches: Acl 3001 rule 0  running

     Target rate: 128 Kbps

     Exceed action: drop

   meter-statistic not running

display qos-vlan

Syntax

display qos-vlan [ vlan-id ] { all | mirrored-to | traffic-limit | traffic-priority | traffic-redirect | traffic-statistic }

View

Any view

Parameters

vlan-id: VLAN ID, in the range 1 to 4094. If this argument is not specified, the QoS configuration performed for all the VLANs is displayed.

all: Displays all the QoS-related configurations performed for packets of a VLAN.

traffic-limit: Displays the traffic policing configuration performed for packets of a VLAN.

traffic-priority: Displays the priority marking configuration performed for packets of a VLAN.

traffic-redirect: Displays the traffic redirecting configuration performed for packets of a VLAN.

traffic-statistics: Displays the traffic accounting configuration performed for packets of a VLAN.

Description

Use the display qos-vlan command to display the QoS-related configuration performed for a VLAN.

Examples

# Display all the QoS-related configuration performed for VLAN 1.

<device> display qos-vlan 1 all

Vlan 1 traffic-limit

 Inbound:

   Matches: Acl 3001 rule 0  running

     Target rate: 128 Kbps

     Exceed action: drop

   meter-statistic not running

display queue-scheduler

Syntax

display queue-scheduler

View

Any view

Parameters

None

Description

Use the display queue-scheduler command to display the queue scheduling mode and corresponding configuration.

Related commands: queue-scheduler.

Examples

# Display the queue scheduling mode and corresponding configuration.

<device> display queue-scheduler

QID:   scheduling-group     weight

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

  0 :   sp                      0

  1 :   sp                      0

  2 :   sp                      0

  3 :   sp                      0

  4 :   sp                      0

  5 :   sp                      0

  6 :   sp                      0

  7 :   sp                      0

mirrored-to

Syntax

mirrored-to inbound acl-rule monitor-interface

undo mirrored-to inbound acl-rule

View

System view, Port group, Ethernet port view

Parameters

inbound: Duplicates inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

Table 1-9 Ways of applying combined ACL rules

ACL combination

Form of the acl-rule argument

Apply a basic or advanced Layer 3 ACL

ip-group  acl-number

Apply a rule in an Layer 3 ACL

ip-group acl-number rule rule-id

Apply all the rules in a Layer 2 ACL

link-group acl-number

Apply a rule in a Layer 2 ACL

link-group acl-number rule rule-id

Apply a rule in an Layer 3 ACL and a rule in a Layer 2 ACL

ip-group acl-number rule rule-id link-group acl-number rule rule-id

 

Table 1-10 Description on the parameters used in Table 1-9

Parameters

Description

ip-group acl-number

Specifies the number of a basic or advanced ACL, in the range 2000 to 3999.

link-group acl-number

Specifies the number of a Layer 2 ACL, in the range 4000 to 4999.

rule-id

ACL rule number, in the range 0 to 65534. If this argument is not provided, all the rules in the ACL are specified.

 

monitor-interface: Duplicates the packets to the destination mirroring port.

Description

Use the mirrored-to command to reference ACLs globally or to a port group or a port for identifying traffics and perform traffic mirroring for packets that match.

Use the undo mirrored-to command to remove traffic mirroring configuration globally or for a port group or a port.

Related commands: display qos-interface mirrored-to.

Examples

# Mirror packets that match ACL 2000 on port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/4 through traffic mirroring.

<device> system-view

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

[device] interface GigabitEthernet 1/0/4

[device- GigabitEthernet1/0/4] monitor-port

[device- GigabitEthernet1/0/4] quit

[device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] mirrored-to inbound ip-group 2000 monitor-interface

mirrored-to vlan

Syntax

mirrored-to vlan vlan-id inbound acl-rule monitor-interface

undo mirrored-to inbound acl-rule

View

System view

Parameters

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

inbound: Mirrors the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

monitor-interface: Duplicates the packets to the destination mirroring port.

Description

Use the mirrored-to vlan command to reference ACLs to a VLAN for identifying traffics and perform traffic mirroring for packets that match.

Use the undo mirrored-to vlan command to remove traffic mirroring configuration for a VLAN.

Examples

# Mirror packets that match ACL 2000 on VLAN 1 to GigabitEthernet 1/0/2 through traffic mirroring.

<device> system-view

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

[device] interface GigabitEthernet1/0/2

[device-GigabitEthernet1/0/2] monitor-port

[device-GigabitEthernet1/0/2] quit

[device] mirrored-to vlan 1 inbound ip-group 2000 monitor-interface

monitor-port

Syntax

monitor-port

undo monitor-port

View

Ethernet port view

Parameters

None

Description

Use the monitor-port command to configure a port as a destination mirroring port.

Use the undo monitor-port command to cancel the configuration.

Note that the member ports of an aggregation link group, LACP-enabled ports, and STP-enabled ports cannot operate as destination mirroring ports.

 

When you configure mirroring destination port on an Ethernet port, if local mirroring group 1 does not exist, the device creates the group and adds the port to the group; if local mirroring group 1 already exists, but is not a local mirroring group, your configuration of the destination port will fail.

 

Examples

# Configure GigabitEthernet1/0/4 as the destination port.

<device> system-view

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

[device] interface GigabitEthernet 1/0/4

[device-GigabitEthernet1/0/4] monitor-port

priority

Syntax

priority priority-level

undo priority

View

Ethernet port view

Parameters

priority-level: Port priority, ranging from 0 to 7.

Description

Use the priority command to configure the priority of an Ethernet port.

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

By default, the priority of an Ethernet port is 0.

With the priority command configured on a port, the device uses the configured port priority of the receiving port as the 802.1p precedence of the packet and then looks up the CoS-precedence-to-other-precedence mapping table for the corresponding precedence.

Examples

# Set the priority of GigabitEthernet 1/0/1 to 6.

<device> system-view

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

[device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] priority 6

priority-trust

Syntax

priority-trust { cos [ automap ] | dscp [ automap | remap ] }

undo priority-trust

View

Ethernet port view

Parameters

cos [ automap ]: The mapping is performed based on 802.1p precedence and the mapping modes are as follows:

l          If automap is not input, it is the default mode in which the device does not replace the priority carried in the packet with the mapped priority.

l          If automap is input, it is the automap mode in which the device replaces the priority carried in the packet with the mapped priority.

dscp [ automap | remap]: The mapping is performed based on DSCP precedence, and the mapping modes are as follows:

l          If keywords are not input after DSCP, it is the default mode in which the device does not replace the priority carried in the packet with the mapped priority.

l          If automap is input, it is the automap mode in which the device replaces the priority carried in the packet with the mapped priority.

l          If remap is input, it is the remap mode. In this mode, the device firstly gets new DSCP precedence by the DSCP-precedence-to-DSCP-precedence mapping relationship, and then searches DSCP-precedence-to-other precedence mapping relationship through the new DSCP precedence, and replaces the precedence carried in the packet with the mapped precedence.

Description

Use the priority-trust command to configure the precedence mapping mode on the port of the device.

Use the undo priority-trust command to restore its default value.

The device trusts the port priority by default.

Related commands: display qos-interface priority-trust.

Examples

# Configure to trust packet 802.1p precedence on GigabitEthernet 1/0/1 and adopt the default priority mapping table for priority mapping.

<device> system-view

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

[device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] priority-trust cos

protocol-priority protocol-type

Syntax

protocol-priority protocol-type protocol-type { ip-precedence ip-precedence | dscp dscp-value }

undo protocol-priority protocol-type protocol-type

View

System view

Parameters

protocol-type protocol-type: Specifies the protocol type, which could be Telnet, SNMP, or ICMP.

ip-precedence ip-precedence: Specifies the IP precedence, in the range 0 to 7. You can also enter the keywords listed in Table 1-11 as the IP precedence.

Table 1-11 IP precedence keywords and the corresponding decimal/binary values

Keyword

IP precedence value (decimal)

IP precedence value (binary)

routine

0

000

priority

1

001

immediate

2

010

flash

3

011

flash-override

4

100

critical

5

101

internet

6

110

network

7

111

 

dscp dscp-value: Specifies the DSCP precedence, in the range of 0 to 63. You can also enter a keyword listed in Table 1-12 as the DSCP precedence.

Table 1-12 DSCP precedence keywords and the corresponding decimal/binary values

Keyword

DSCP value (decimal)

DSCP value (binary)

af11

10

001010

af12

12

001100

af13

14

001110

af21

18

010010

af22

20

010100

af23

22

010110

af31

26

011010

af32

28

011100

af33

30

011110

af41

34

100010

af42

36

100100

af43

38

100110

be (the default)

0

000000

cs1

8

001000

cs2

16

010000

cs3

24

011000

cs4

32

100000

cs5

40

101000

cs6

48

110000

cs7

56

111000

ef

46

101110

 

Description

Use the protocol-priority command to set the global IP precedence or DSCP precedence for packets of a specific protocol type.

Use the undo protocol-priority command to cancel the global IP precedence or DSCP precedence set for packets of a specific protocol type.

Related commands: display protocol-priority.

Examples

# Set the IP precedence to 3 for SNMP protocol packets.

<device> system-view

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

[device] protocol-priority protocol-type snmp ip-precedence 3

qos cos-drop-precedence-map

Syntax

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

undo qos cos-drop-precedence-map

View

System view

Parameters

cos0-map-drop-prec: Drop precedence to which CoS 0 is to be mapped, in the range 0 to 1.

cos1-map-drop-prec: Drop precedence to which CoS 1 is to be mapped, in the range 0 to 1.

cos2-map-drop-prec: Drop precedence to which CoS 2 is to be mapped, in the range 0 to 1.

cos3-map-drop-prec: Drop precedence to which CoS 3 is to be mapped, in the range 0 to 1.

cos4-map-drop-prec: Drop precedence to which CoS 4 is to be mapped, in the range 0 to 1.

cos5-map-drop-prec: Drop precedence to which CoS 5 is to be mapped, in the range 0 to 1.

cos6-map-drop-prec: Drop precedence to which CoS 6 is to be mapped, in the range 0 to 1.

cos7-map-drop-prec: Drop precedence to which CoS 7 is to be mapped, in the range 0 to 1.

Description

Use the qos cos-drop-precedence-map command to modify the CoS-precedence-to-drop-precedence mapping table.

Use the undo qos cos-drop-precedence-map command to restore the default CoS-precedence-to-drop-precedence mapping table.

Table 1-13 shows the default CoS-precedence-to-drop-precedence mapping table.

Table 1-13 The default CoS-precedence-to-drop-precedence mapping relationship

CoS value

Drop precedence

0

0

1

0

2

0

3

0

4

0

5

0

6

0

7

0

 

Related commands: display qos cos-drop-precedence-map.

Examples

# Modify the CoS-precedence-to-drop-precedence mapping table according to Table 1-14.

Table 1-14 A CoS-precedence-to-drop-precedence mapping table

CoS value

Drop precedence

0

1

1

1

2

1

3

1

4

1

5

0

6

0

7

0

 

The configuration procedure is as follows:

<device> system-view

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

[device] qos cos-drop-precedence-map 1 1 1 1 1 0 0 0

qos cos-dscp-map

Syntax

qos cos-dscp-map cos0-map-dscp cos1-map-dscp cos2-map-dscp cos3-map-dscp cos4-map-dscp cos5-map-dscp cos6-map-dscp cos7-map-dscp

undo qos cos- dscp-map

View

System view

Parameters

cos0-map-dscp: DSCP precedence to which CoS 0 is to be mapped, in the range 0 to 63.

cos1-map-dscp: DSCP precedence to which CoS 1 is to be mapped, in the range 0 to 63.

cos2-map-dscp: DSCP precedence to which CoS 2 is to be mapped, in the range 0 to 63.

cos3-map-dscp: DSCP precedence to which CoS 3 is to be mapped, in the range 0 to 63.

cos4-map-dscp: DSCP precedence to which CoS 4 is to be mapped, in the range 0 to 63.

cos5-map-dscp: DSCP precedence to which CoS 5 is to be mapped, in the range 0 to 63.

cos6-map-dscp: DSCP precedence to which CoS 6 is to be mapped, in the range 0 to 63.

cos7-map-dscp: DSCP precedence to which CoS 7 is to be mapped, in the range 0 to 63.

Description

Use the qos cos-dscp-map command to modify the CoS-precedence-to-DSCP-precedence mapping table.

Use the undo qos cos-dscp-map command to restore the default CoS-precedence-to-DSCP-precedence mapping table.

Table 1-15 shows the default CoS-precedence-to-DSCP-precedence mapping table.

Table 1-15 The default CoS-precedence-to-DSCP-precedence mapping table

CoS value

DSCP

0

16

1

0

2

8

3

24

4

32

5

40

6

48

7

56

 

Related commands: display qos cos-dscp-map.

Examples

# Modify the CoS-precedence-to-DSCP-precedence mapping table according to Table 1-16.

Table 1-16 A CoS-precedence-to-DSCP-precedence mapping table

CoS value

DSCP

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

 

The configuration procedure is as follows:

<device> system-view

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

[device] qos cos-dscp-map 0 1 2 3 4 5 6 7

qos cos-local-precedence-map

Syntax

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

undo qos cos-local-precedence-map

View

System view

Parameters

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

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

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

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

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

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

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

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

Description

Use the qos cos-local-precedence-map command to modify the CoS-precedence-to-local-precedence mapping table.

Use the undo qos cos-local-precedence-map command to restore the default CoS-precedence-to-local-precedence mapping table.

A port on a device can accommodate up to eight output queues. Table 1-17 shows the default CoS-precedence-to-local-precedence mapping table.

Table 1-17 The default CoS-precedence-to-local-precedence mapping table on the device

CoS value

Local precedence

0

2

1

0

2

1

3

3

4

4

5

5

6

6

7

7

 

Related commands: display qos cos-local-precedence-map.

Examples

# Modify the CoS-precedence-to-local-precedence mapping table on the device according to Table 1-18.

Table 1-18 A CoS-precedence-to-local-precedence mapping table

CoS value

Local precedence

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

 

The configuration procedure is as follows:

<device> system-view

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

[device] qos cos-local-precedence-map 0 1 2 3 4 5 6 7

qos dscp-cos-map

Syntax

qos dscp-cos-map dscp-list : cos-value

undo qos dscp-cos-map [ dscp-list ]

View

System view

Parameters

dscp-list: List of DSCP values. It can include only one DSCP value or many DSCP values. DSCP values are separated by space. dscp-list is connected with cos-value by the “:” after it to indicate the mapping relationship between them. The range of dscp-list is from 0 to 63.

cos-value: 802.1p precedence, in the range of 0 to 7.

Description

Use the qos dscp-cos-map command to modify the DSCP-precedence-to-CoS-precedence mapping table.

Use the undo qos dscp-cos-map command to restore the default DSCP-precedence-to-CoS-precedence mapping table.

Table 1-19 shows the default DSCP-precedence-to-CoS-precedence mapping table.

Table 1-19 The default DSCP-precedence-to-CoS-precedence mapping table

DSCP

CoS value

0 to 7

1

8 to 15

2

16 to 23

0

24 to 31

3

32 to 39

4

40 to 47

5

48 to 55

6

56 to 63

7

 

Related commands: display qos dscp-cos-map.

Examples

# Modify the DSCP-precedence-to-CoS-precedence mapping table according to Table 1-20.

Table 1-20 A DSCP-precedence-to-CoS-precedence mapping relationship

DSCP

CoS value

0 to 7

0

8 to 15

1

16 to 23

2

24 to 31

3

32 to 39

4

40 to 47

5

48 to 55

6

56 to 63

7

 

The configuration procedure is as follows:

<device> system-view

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

[device] qos dscp-cos-map 0 1 2 3 4 5 6 7 : 0

[device] qos dscp-cos-map 8 9 10 11 12 13 14 15 : 1

[device] qos dscp-cos-map 16 17 18 19 20 21 22 23 : 2

[device] qos dscp-cos-map 24 25 26 27 28 29 30 31 : 3

[device] qos dscp-cos-map 32 33 34 35 36 37 38 39 : 4

[device] qos dscp-cos-map 40 41 42 43 44 45 46 47 : 5

[device] qos dscp-cos-map 48 49 50 51 52 53 54 55 : 6

[device] qos dscp-cos-map 56 57 58 59 60 61 62 63 : 7

qos dscp-drop-precedence-map

Syntax

qos dscp-drop-precedence-map dscp-list : drop-precedence

undo qos dscp-drop-precedence-map [dscp-list ]

View

System view

Parameters

dscp-list: List of DSCP values. It can include only one DSCP value or many DSCP values. DSCP values are separated by space. dscp-list is connected with cos-value by the “:” after it to indicate the mapping relationship between them. The range of dscp-list is from 0 to 63.

drop-precedence: Drop precedence. The range of drop-precedence is from 0 to 1.

Description

Use the qos dscp-drop-precedence-map command to modify the DSCP-precedence-to-drop-precedence mapping table.

Use the undo qos dscp-drop-precedence-map command to restore the default DSCP-precedence-to-drop-precedence mapping table.

Table 1-21 shows the default DSCP-precedence-to-drop-precedence mapping table.

Table 1-21 The default DSCP-precedence-to-drop-precedence mapping table

DSCP

Drop precedence

0 to 7

1

8 to 15

1

16 to 23

1

24 to 31

1

32 to 39

0

40 to 47

0

48 to 55

0

56 to 63

0

 

Related commands: display qos dscp-drop-precedence-map.

Examples

# Modify the DSCP-precedence-to-drop-precedence mapping table according to Table 1-22.

Table 1-22 A DSCP-precedence-to-drop-precedence mapping table

DSCP

Drop precedence

0 to 7

0

8 to 15

1

16 to 23

1

24 to 31

1

32 to 39

0

40 to 47

0

48 to 55

0

56 to 63

0

 

The configuration procedure is as follows:

<device> system-view

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

[device] qos dscp-drop-precedence-map 0 1 2 3 4 5 6 7 : 0

qos dscp-dscp-map

Syntax

qos dscp-dscp-map dscp-list : dscp-value

undo qos dscp-dscp-map [dscp-list ]

View

System view

Parameters

dscp-list: List of DSCP values. It can include only one DSCP value or many DSCP values. DSCP values are separated by space. dscp-list is connected with dscp-value by the “:” after it to indicate the mapping relationship between them. The range of dscp-list is from 0 to 63.

dscp-value: DSCP precedence. The range of dscp-value is from 0 to 63.

Description

Use the qos dscp-dscp-map command to modify the DSCP-precedence-to-DSCP-precedence mapping table.

Use the undo qos dscp-dscp-map command to restore the default DSCP-precedence-to-DSCP-precedence mapping table.

Table 1-23 shows the default DSCP-precedence-to-DSCP-precedence mapping table.

Table 1-23 The default DSCP-precedence-to-DSCP-precedence mapping table

DSCP

Target DSCP

0

0

1

1

2

2

...

...

61

61

62

62

63

63

 

Related commands: display qos dscp-dscp-map.

Examples

# Modify the DSCP-precedence-to-DSCP-precedence mapping table according to Table 1-24.

Table 1-24 A DSCP-precedence-to-DSCP-precedence mapping table

DSCP

Target DSCP

0

1

1

1

2

1

3

1

4

1

5

1

6

1

7

1

8

8

9

9

10

10

...

...

61

61

62

62

63

63

 

The configuration procedure is as follows:

<device> system-view

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

[device] qos dscp-dscp-map 0 1 2 3 4 5 6 7 : 1

qos dscp-local-precedence-map

Syntax

qos dscp-local-precedence-map dscp-list : local-precedence

undo qos dscp-local-precedence-map [dscp-list ]

View

System view

Parameters

dscp-list: List of DSCP values. It can include only one DSCP value or many DSCP values. DSCP values are separated by space. dscp-list is connected with local-precedence by the “:” after it to indicate the mapping relationship between them. The range of dscp-list is from 0 to 63.

local-precedence: Local precedence. This argument is in the range of 0 to 7.

Description

Use the qos dscp-local-precedence-map command to modify the DSCP-precedence-to-local-precedence mapping table.

Use the undo qos dscp-local-precedence-map command to restore the default DSCP-precedence-to-local-precedence mapping table.

A port of a device can accommodate up to eight output queues. Table 1-25 shows the default DSCP-precedence-to-local-precedence mapping tables on a device.

Table 1-25 The default DSCP-precedence-to-local-precedence mapping table

DSCP

Local precedence

0 to 7

0

8 to 15

1

16 to 23

2

24 to 31

3

32 to 39

4

40 to 47

5

48 to 55

6

56 to 63

7

 

Related commands: display qos dscp-local-precedence-map.

Examples

# Modify the DSCP-precedence-to-local-precedence mapping table according to Table 1-26.

Table 1-26 A DSCP-precedence-to-local-precedence mapping table

DSCP

Local precedence

0 to 7

1

8 to 15

1

16 to 23

2

24 to 31

3

32 to 39

4

40 to 47

5

48 to 55

6

56 to 63

7

 

The configuration procedure is as follows:

<device> system-view

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

[device] qos dscp-local-precedence-map 0 1 2 3 4 5 6 7 : 1

queue-scheduler

Syntax

queue-scheduler wrr { group1 { queue-id queue-weight } &<1-8> | group2 { queue-id queue-weight } &<1-8> }*

undo queue-scheduler [ queue-id ] &<1-8>

View

System view

Parameters

wrr: Specifies the shaped deficit weighted round robin (SDWRR) queue scheduling algorithm.

group1: Specifies WRR scheduling group 1.

group2: Specifies WRR scheduling group 2.

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

queue-weight: Weight assigned to a queue, in the range 1 to 255.

&<1-8>: Indicates that the queue-id argument and the queue-weight argument can be entered for up to eight times.

Description

Use the queue-scheduler command to configure a queue scheduling algorithm and the related parameters for specific queues.

Use the undo queue-scheduler command to restore the default.

By default, the SP queue scheduling algorithm is adopted.

A port on a device can accommodate up to eight output queues. You can configure to use SP queue scheduling algorithm, SDWRR queue scheduling algorithm, or both of the two algorithms as required for queue scheduling.

l          With SDWRR queue scheduling algorithm adopted, the output queues of a port can be assigned to group 1 and group 2. The two groups are scheduled using SP algorithm. For example, you can assign queue 0, queue 1, queue 2, and queue 3 to group 1, and assign queue 4, queue 5, queue 6, and queue 7 to group 2. The queues in group 2 are scheduled preferentially using WRR queue scheduling algorithm. Queues in group 1 are scheduled using WRR queue scheduling algorithm only when all the queues in group 2 are empty.

l          With both SP and SDWRR queue scheduling algorithms adopted, groups are scheduled using SP algorithm. Assume that queue 0 and queue 1 are scheduled using SP algorithm; queue 2, queue 3, and queue 4 are assigned to group 1; and queue 5, queue 6, and queue 7 are assigned to group 2. The queues in group 2 are scheduled preferentially using WRR queue scheduling algorithm. When all the queues in group 2 are empty, queues in group 1 are scheduled using WRR queue scheduling algorithm. Then, queue 1 is scheduled, and then queue 0.

 

When using SDWRR or SP-SDWRR combination for queue scheduling, you are recommended to assign queues with successive queue numbers to the same scheduling group.

 

Related commands: display queue-scheduler.

Examples

# Adopt both SP and SDWRR for queue scheduling, assigning queue 3, queue 4, and queue 5 to WRR scheduling group 1, with the weigh of 20, 20 and 30; assigning queue 0, queue 1, and queue 2 to WRR scheduling group 2, with the weight 20, 20, and 40; and scheduling queue 6 and queue 7 using the SP algorithm.

<device> system-view

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

[device] queue-scheduler wrr group1 3 20 4 20 5 30 group2 0 20 1 20 2 40

[device] display queue-scheduler

 QID:   scheduling-group     weight

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

  0 :   wrr , group2           20

  1 :   wrr , group2           20

  2 :   wrr , group2           40

  3 :   wrr , group1           20

  4 :   wrr , group1           20

  5 :   wrr , group1           30

  6 :   sp                      0

  7 :   sp                      0

reset traffic-limit

Syntax

reset traffic-limit inbound acl-rule

View

System view, Ethernet port view, Port group view

Parameters

inbound: Specifies to clear the statistics about the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10.

Description

Use the reset traffic-limit command to clear the traffic policing statistics about all the packets matching specific ACL rules, or packets that match specific ACL rules and are of a port group or pass a port.

Related commands: traffic-limit.

Examples

# Clear the traffic policing statistics about packets matching ACL 2000 and passing GigabitEthernet 1/0/1.

<device> system-view

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

[device] interface GigabitEthernet1/0/1

[device-GigabitEthernet1/0/1] reset traffic-limit inbound ip-group 2000

reset traffic-limit vlan

Syntax

reset traffic-limit vlan vlan-id inbound acl-rule

View

System view

Parameters

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

inbound: Specifies to clear the statistics about the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10.

Description

Use the reset traffic-limit vlan command to clear the statistics about packets of a VLAN.

Related commands: traffic-limit vlan.

Examples

# Clear the statistics about packets that match ACL 2000 and are of VLAN 1.

<device> system-view

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

[device] reset traffic-limit vlan 1 inbound ip-group 2000

reset traffic-statistic

Syntax

reset traffic-statistic inbound acl-rule

View

System view, Ethernet port view, Port group view

Parameters

inbound: Specifies to clear the statistics about the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10.

Description

Use the reset traffic-statistics command to clear the statistics about all the packets matching specific ACL rules, or the packets that match specific ACL rules and are of a port group or pass a port.

Related commands: traffic-statistic.

Examples

# Clear the statistics about packets matching ACL 2000 and passing GigabitEthernet 1/0/1.

<device> system-view

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

[device] interface GigabitEthernet1/0/1

[device-GigabitEthernet1/0/1] reset traffic-statistic inbound ip-group 2000

reset traffic-statistic vlan

Syntax

reset traffic-statistic vlan vlan-id inbound acl-rule

View

System view

Parameters

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

inbound: Specifies to clear the statistics about the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10.

Description

Use the reset traffic-statistics vlan command to clear the statistics about packets that are of a VLAN and match specific ACL rules.

Related commands: traffic-statistic vlan.

Examples

# Clear the statistics about packets that match ACL 2000 and are of VLAN 1.

<device> system-view

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

[device] reset traffic-statistic vlan 1 inbound ip-group 2000

traffic-limit

Syntax

traffic-limit inbound acl-rule target-rate [ conform con-action ] [ exceed exceed-action ] [ meter-statistic ]

undo traffic-limit inbound acl-rule [ meter-statistic ]

View

System view, Ethernet port view, Port group view

Parameters

inbound: Performs traffic policing on the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

target-rate: Target traffic rate of traffic policing ( in kbps). This argument is in the range of 1 to 44000000 in system view and port group view. In Ethernet port view, the range of this argument varies by port type as follows:

l          Gigabit port: In the rang 1 to 1000000

l          10G port: In the rang 1 to 10000000

conform con-action: Sets the actions of the device on the packets except forwarding when the packet traffic is within the specified traffic. The con-action argument can be:

l          remark-dscp dscp-value: Sets the DSCP precedence for the packets. The dscp-value argument is in the range of 0 to 63. You can also enter a keyword listed in Table 1-12 for this argument.

l          remark-cos cos-value : Sets the 802.1p precedence for the packets. The cos-value argument is in the range of 0 to 7. You can also enter a keyword listed in Table 1-27 for this argument.

Table 1-27 802.1p precedence keywords and the corresponding decimal/binary values

Keyword

802.1p precedence (decimal)

802.1p precedence (binary)

best-effort

0

000

background

1

001

Spare

2

010

excellent-effort

3

011

controlled-load

4

100

Video

5

101

Voice

6

110

Network-management

7

111

 

exceed exceed-action: Sets the actions on the part of the packets exceeding the specified traffic when the packet traffic exceeds the specified traffic. The actions include:

l          drop: Drops the packets.

l          forward: Forwards the packets.

l          remark-dscp dscp-value: Resets the DSCP precedence of the packets and forwards them at the same time. The DSCP value is in the range of 0 to 63. You can also enter a keyword listed in Table 1-12 for this argument.

l          remark-cos cos-value: Resets the 802.1p precedence of the packets and forwards them at the same time. The cos-value argument is in the range of 0 to 7. You can also enter a keyword listed in Table 1-27 for this argument.

meter-statistic: Performs the traffic accounting function on traffic policing. It can meter the bytes of the packets within the limited rate and the bytes of the packets beyond the limited rate.

Description

Use the traffic-limit command to perform traffic policing for all the packets matching specific ACL rules, or for packets that match specific ACL rules and are of a port group or pass a port.

Use the undo traffic-limit command to cancel the configuration.

The granularity of traffic policing is described in the following table:

Table 1-28 The granularity of traffic policing

The rang of total rate

Granularity (bps)

0 to 1 Mbps

1K

0 to 10 Mbps

10K

0 to 100 Mbps

100K

0 to 1 Gbps

1M

0 to 10 Gbps

10M

 

Examples

# Perform traffic policing for packets matching ACL 4000 on GigabitEthernet 1/0/1. Limit the rate within 128 kbps and drop the packets exceeding the traffic limit.

<device> system-view

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

[device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] traffic-limit inbound link-group 4000 128 exceed drop

traffic-limit vlan

Syntax

traffic-limit vlan vlan-id inbound acl-rule target-rate [ conform con-action ] [ exceed exceed-action ] [ meter-statistic ]

undo traffic-limit vlan vlan-id inbound acl-rule [ meter-statistic ]

View

System view

Parameters

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

inbound: Performs traffic policing on the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

target-rate: Target traffic rate of traffic policing (in kbps). This argument is in the range 1 to 44000000.

conform con-action: Sets the actions of the device on the packets except forwarding when the packet traffic is within the specified traffic. The actions are as follows:

l          remark-dscp dscp-value: Sets the DSCP precedence of the packets to the specified value. The dscp-value argument is in the range of 0 to 63. You can also enter a keyword listed in Table 1-12 for this argument.

l          remark-cos cos-value : Sets the 802.1p precedence of the packets to the specified value. The cos-value argument is in the range of 0 to 7. You can also enter a keyword listed in Table 1-27 for this argument.

exceed exceed-action: Sets the actions on the part of the packets exceeding the specified traffic when the packet traffic exceeds the specified traffic. The actions include:

l          drop: Drops the packets.

l          forward: Forwards the packets.

l          remark-dscp dscp-value: Resets the DSCP precedence of the packets and forwards them at the same time. The dscp-value argument is in the range of 0 to 63. You can also enter a keyword listed in Table 1-12 for this argument.

l          remark-cos cos-value: Resets the 802.1p precedence of the packets and forwards them at the same time. The cos-value argument is in the range of 0 to 7. You can also enter a keyword listed in Table 1-27 for this argument.

meter-statistic: Performs the traffic accounting function on traffic policing. It can meter the bytes of the packets within the limited rate and the bytes of the packets beyond the limited rate.

Description

Use the traffic-limit vlan command to use ACL rules in traffic identifying and traffic policing for the packet matching with the ACL rules and to set traffic policing parameters and different actions for packets within the traffic limit and packets beyond the traffic limit on a VLAN.

Use the undo traffic-limit vlan command to disable traffic policing on a VLAN.

Refer to Table 1-28 for the granularity of traffic policing.

Examples

# Perform traffic policing for packets matching ACL 4000 on VLAN 1. Limit the rate within 128 kbps and drop the packets exceeding the traffic limit on VLAN 1.

<device> system-view

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

[device] traffic-limit vlan 1 inbound link-group 4000 128 exceed drop

traffic-priority

Syntax

traffic-priority inbound acl-rule { dscp dscp-value | cos cos-value }

undo traffic-priority inbound acl-rule

View

System view, Ethernet port view, Port group view

Parameters

inbound: Marks the priority for inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

dscp dscp-value: Sets the DSCP precedence, in the range 0 to 63. You can also enter a keyword listed in Table 1-12 for the dscp-value argument.

cos cos-value: Sets the 802.1p precedence, in the range 0 to 7. You can also enter a keyword listed in Table 1-27 for the cos-value argument.

Description

Use the traffic-priority command to use ACL rules in traffic identifying and specify a new priority for all the packets matching the specific ACL rules, or packets that match specific ACL rules and are of a port group, or pass a port.

Use the undo traffic-priority to disable the priority marking function for all the packets matching specific the ACL rules, or packets that match specific ACL rules and are of a port group, or pass a port.

Examples

# Set the 802.1p precedence to 1 for packets matching ACL 4000 and passing GigabitEthernet 1/0/1.

<device> system-view

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

[device] interface GigabitEthernet1/0/1

[device-GigabitEthernet1/0/1] traffic-priority inbound link-group 4000 cos 1

traffic-priority vlan

Syntax

traffic-priority vlan vlan-id inbound acl-rule { dscp dscp-value | cos cos-value }

undo traffic-priority vlan vlan-id inbound acl-rule

View

System view

Parameters

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

inbound: Performs priority marking for the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

dscp dscp-value: Sets the DSCP precedence, in the range of 0 to 63. You can also enter a keyword listed in Table 1-12 for the dscp-value argument.

cos cos-value: Sets the 802.1p precedence, in the range of 0 to 7. You can also enter a keyword listed in Table 1-27 for the cos-value argument.

Description

Use the traffic-priority vlan command to mark the priority for packets that match specific ACL rules and are of a VLAN.

Use the undo traffic-priority vlan to disable the priority marking for packets that match specific ACL rules and are of a VLAN.

Examples

# Set the 802.1p precedence to 1 for packets that match ACL 4000 and are of VLAN 1.

<device> system-view

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

[device] traffic-priority vlan 1 inbound link-group 4000 cos 1

traffic-redirect

Syntax

traffic-redirect inbound acl-rule interface interface-type interface-number

undo traffic-redirect inbound  acl-rule

View

System view, Ethernet port view, Port group view

Parameters

inbound: Redirects inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

interface interface-type interface-number: Redirects the packets to the specified Ethernet port. interface-type indicates the type of the interface and interface-number indicates the interface number.

Description

Use the traffic-redirect command to redirect all the packets that match specific ACL rules, or the packets that match specific ACL rules and are of a port group or pass a port.

Use the undo traffic-redirect command to disable traffic redirecting for all the packets that match specific ACL rules, or the packets that match specific ACL rules and are of a port group or pass a port

 

If the traffic is redirected to a Combo port in down state, the system automatically redirects the traffic to the port corresponding to the Combo port in up state. Refer to Port Basic Configuration in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide for information about Combo ports.

 

Examples

# Redirect the packets that match ACL 2000 and pass GigabitEthernet 1/0/1 to GigabitEthernet 1/0/7.

<device> system-view

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

[device] interface GigabitEthernet1/0/1

[device-GigabitEthernet1/0/1] traffic-redirect inbound ip-group 2000 interface GigabitEthernet1/0/7

traffic-redirect vlan

Syntax

traffic-redirect vlan vlan-id inbound acl-rule interface interface-type interface-number

undo traffic-redirect vlan vlan-id inbound acl-rule

View

System view

Parameters

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

inbound: Redirects inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

interface interface-type interface-number: Redirects the packets to the specified Ethernet port. interface-type indicates the type of the interface and interface-number indicates the interface number.

Description

Use the traffic-redirect vlan command to redirect packets that match specific ACL rules and are of a specific VLAN to a specified port.

Use the undo traffic-redirect vlan command to cancel the configuration.

 

If the traffic is redirected to a Combo port in down state, the system automatically redirects the traffic to the port corresponding to the Combo port in up state. Refer to Port Basic Configuration in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide for information about Combo ports.

 

Examples

# Redirect the packets that match ACL 2000 rules and are of VLAN 1 to GigabitEthernet 1/0/7.

<device> system-view

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

[device] traffic-redirect vlan 1 inbound ip-group 2000 interface GigabitEthernet1/0/7

traffic-remark-vlanid

Syntax

traffic-remark-vlanid inbound acl-rule remark-vlan vlan-id untagged-packet

undo traffic-remark-vlanid inbound acl-rule

View

Ethernet port view

Parameters

inbound: Indicates that VLAN tag remark is performed on the packets received on the port.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

remark-vlan vlan-id: Indicates the VLAN ID used in remark.

untagged-packet: Performs the VLAN tag remark operation on the packets matching with ACL rules without VLAN tags.

Description

Use the traffic-remark-vlanid command to enable VLAN mapping and set the target VLAN ID for packets matching specific ACL rules.

Use the undo traffic-remark-vlanid command to disable VLAN mapping for packets matching specific ACL rules.

Examples

# Configure VLAN mapping on GigabitEthernet 1/0/1 to map the VLAN IDs of inbound packets matching ACL 4001 to 1001.

<device> system-view

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

[device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] traffic-remark-vlanid inbound link-group 4001 remark-vlan 1001

traffic-shape

Syntax

traffic-shape [ queue queue-id ] max-rate burst-size

undo traffic-shape [ queue queue-id ]

View

Ethernet port view

Parameters

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

max-rate: Maximum traffic rate on a port, in kbps.

burst-size: Burst size (in KB), in the range 16 to 16000. This argument must be a multiple of 4.

Description

Use the traffic-shape command to enable traffic shaping and send the packets out at an even rate. Use the undo traffic-shape command to disable traffic shaping.

The device supports two forms of traffic shaping:

l          Traffic shaping for all the traffic of a port. The function can be implemented when queue queue-id in the traffic-shape command is not specified.

l          Traffic shaping for the specified output queues. The function can be implemented when queue queue-id in the traffic-shape command is specified.

Table 1-29 The granularity of traffic shaping

Port type

The set traffic shaping value

Granularity (bps)

GE ports

0 to 80 Mbps

20 Kbps

GE ports

80 Mbps to 1 Gbps

260 Kbps

10GE ports

0 to 10 Gbps

2500 Kbps

 

Examples

# Configure traffic shaping on GigabitEthernet 1/0/1, with the maximum rate being 640 kbps and the burst size being 16 KB.

<device> system-view

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

[device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] traffic-shape 640 16

traffic-statistic

Syntax

traffic-statistic inbound acl-rule

undo traffic-statistic inbound acl-rule

View

System view, Ethernet port view, Port group view

Parameters

inbound: Collects statistics about inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

Description

Use the traffic-statistic command to collect statistics about all the packets matching specific ACL rules, or about packets that match specific ACL rules and are of a port group, or pass a port.

Use the undo traffic-statistic command to disable collecting statistics about all the packets matching specific ACL rules, or about packets that match specific ACL rules and are of a port group, or pass a port.

Examples

# Collect statistics about the packets that match ACL 2000 and pass GigabitEthernet 1/0/1.

<device> system-view

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

[device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] traffic-statistic inbound ip-group 2000

traffic-statistic vlan

Syntax

traffic-statistic vlan vlan-id inbound acl-rule

undo traffic-statistic vlan vlan-id inbound acl-rule

View

System view

Parameters

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

inbound: Collects statistics about inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

Description

Use the traffic-statistic vlan command to collect statistics about packets that match specific ACL rules and are of a specific VLAN.

Use the undo traffic-statistic vlan command to cancel the configuration.

Examples

# Collect statistics about packets that match ACL 2000 and are of VLAN 1.

<device> system-view

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

[device] traffic-statistic vlan 1 inbound ip-group 2000


QoS Profile Configuration Commands

apply qos-profile

Syntax

In system view

apply qos-profile profile-name interface interface-list

undo apply qos-profile profile-name interface interface-list

In Ethernet port view

apply qos-profile profile-name

undo apply qos-profile profile-name

View

System view, Ethernet port view

Parameters

profile-name: QoS profile name, a string of 1 to 32 characters and starting with English letters [a-z, A-Z].

interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing this argument in the form of interface-type interface-number [ to interface-type interface-number ].

Description

Use the apply qos-profile command to apply a QoS profile to a port or multiple ports.

Use the undo apply qos-profile command to remove a QoS profile from a port or multiple ports.

Examples

# Apply the QoS profile named “a123” to GigabitEthernet 1/0/1.

<device> system-view

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

[device] interface GigabitEthernet1/0/1

[device-GigabitEthernet1/0/1] apply qos-profile a123

# Apply the QoS profile named “a123” to GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4.

<device> system-view

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

[device] apply qos-profile a123 interface GigabitEthernet 1/0/1 to GigabitEthernet 1/0/4

display qos-profile

Syntax

display qos-profile { all | name profile-name | interface interface-type interface-number | user user-name }

View

Any view

Parameters

all: Specifies all the QoS profiles.

name profile-name: Specifies a QoS profile name, a string of 1 to 32 characters and starting with English letters [a-z, A-Z].

interface interface-type interface-number: Specifies the port type and port number.

user user-name: Specifies a user name, a string of 1 to 80 characters.

Description

Use the display qos-profile command to display the configuration of a QoS profile or all the QoS profiles.

Examples

# Display the configuration of all the QoS profiles.

<device> display qos-profile all

qos-profile: test, 0 action

packet-filter

Syntax

packet-filter inbound acl-rule

undo packet-filter inbound acl-rule

View

QoS profile view

Parameters

inbound: Filters the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10.

Description

Use the packet-filter command to add the packet filtering action to a QoS profile.

Use the undo packet-filter command to remove the packet filtering action from a QoS profile.

Refer to ACL in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide for the detailed information about packet filtering.

Examples

# Add the packet filtering action to the QoS profile named “a123” to filter the inbound packets matching ACL 4000.

<device> system-view

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

[device] qos-profile a123

[device-qos-profile-a123] packet-filter inbound link-group 4000

qos-profile

Syntax

qos-profile profile-name

undo qos-profile profile-name

View

System view

Parameters

profile-name: QoS profile name, a string of 1 to 32 characters and  starting with English letters [a-z, A-Z]. Note that a QoS profile name cannot be “all”, “interface”, “user”, “undo”, or “name”.

Description

Use the qos-profile command to create a QoS profile and enter QoS profile view. If the QoS profile already exists, this command leads you to the corresponding QoS profile view.

Use the undo qos-profile command to remove a QoS profile.

A QoS profile currently applied to a port cannot be removed.

Examples

# Create a QoS profile named “a123”.

<device> system-view

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

[device] qos-profile a123

[device-qos-profile-a123]

qos-profile port-based

Syntax

qos-profile port-based

undo qos-profile port-based

View

Ethernet port view

Parameters

None

Description

Use the qos-profile port-based command to configure the QoS profile application mode on a port to be port-based.

Use the undo qos-profile port-based command to restore the default.

By default, the application mode of a QoS profile is user-based.

Note that:

l          If the 802.1x authentication is MAC-based, you need to configure the QoS profile application mode to be user-based.

l          If the 802.1x authentication is port-based, you need to configure the QoS profile application mode to be port-based.

Examples

# Configure the QoS profile application mode on GigabitEthernet 1/0/1 to be port-based.

<device> system-view

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

[device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] qos-profile port-based

traffic-limit

Syntax

traffic-limit inbound acl-rule target-rate [ conform con-action ] [ exceed exceed-action ] [ meter-statistic ]

undo traffic-limit inbound acl-rule [ meter-statistic ]

View

QoS profile view

Parameters

inbound: Performs traffic policing on the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

target-rate: Target traffic rate of traffic policing. This argument is in the range 1 to 10000000.

conform con-action: Sets the actions of the device on the packets except forwarding when the packet traffic is within the specified traffic. The con-action argument can be:

l          remark-dscp dscp-value: Sets the DSCP precedence for the packets. The dscp-value argument is in the range 0 to 63. You can also enter a keyword listed in Table 1-12 for this argument.

l          remark-cos cos-value : Sets the 802.1p precedence of the packets. The cos-value argument is in the range 0 to 7. You can also enter a keyword listed in Table 1-27 for this argument.

exceed exceed-action: Sets the actions on the part of the packets exceeding the specified traffic when the packet traffic exceeds the specified traffic. The actions include:

l          drop: Drops the packets.

l          forward: Forwards the packets.

l          remark-dscp dscp-value: Resets the DSCP precedence for the packets and forwards them at the same time. The dscp-value argument is in the range 0 to 63. You can also enter a keyword listed in Table 1-12 for this argument.

l          remark-cos cos-value: Resets the 802.1p precedence for the packets and forwards them at the same time. The cos-value argument is in the range 0 to 7. You can also enter a keyword listed in Table 1-27 for this argument.

meter-statistic: Performs the traffic accounting function on traffic policing. It can meter the bytes of the packets within the limited rate and the bytes of the packets beyond the limited rate.

Description

Use the traffic-limit command to add the traffic policing action to a QoS profile.

Use the undo traffic-limit command to remove the traffic policing action from a QoS profile.

The traffic policing action of a QoS profile currently applied to a port cannot be removed.

Examples

# Add traffic policing action to the QoS profile named “a123” to limit the rate of the inbound packets matching ACL 2000 to 128 kbps and drop the packets exceeding 128 kbps.

<device> system-view

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

[device] qos-profile a123

[device-qos-profile-a123] traffic-limit inbound  ip-group 2000 128 exceed drop

traffic-priority

Syntax

traffic-priority inbound acl-rule { dscp dscp-value | cos cos-value }

undo traffic-priority inbound acl-rule

View

QoS profile view

Parameters

inbound: Performs priority marking on the inbound packets.

acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more information about this argument, refer to Table 1-9 and Table 1-10. Note that the ACL rules referenced must be those defined with the permit keyword specified.

dscp dscp-value: Sets the DSCP precedence. The dscp-value argument is in the range 0 to 63. You can also enter a keyword listed in Table 1-12 for this argument.

cos cos-value: Sets the 802.1p precedence. The cos-value argument is in the range 0 to 7. You can also enter a keyword listed in Table 1-27 for this argument.

Description

Use the traffic-priority command to add a priority marking action to a QoS profile.

Use the undo traffic-priority command to remove a priority marking action from a QoS profile.

The priority marking action of a QoS profile currently applied to a port cannot be removed.

Examples

# Add the priority marking action to the QoS profile named “a123” to set the 802.1p precedence of the inbound packets matching ACL 4000 to 1.

<device> system-view

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

[device] qos-profile a123

[device-qos-profile-a123] traffic-priority inbound link-group 4000 cos 1

 

  • 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
新华三官网