H3C S3600 Series Ethernet Switches Command Manual-Release 1510(V1.04)

HomeSupportSwitchesH3C S3600 Switch SeriesReference GuidesCommand ReferencesH3C S3600 Series Ethernet Switches Command Manual-Release 1510(V1.04)
26-QoS-QoS Profile Command
Title Size Download
26-QoS-QoS Profile Command 171 KB

Chapter 1  QoS Commands

1.1  QoS Commands

1.1.1  display protocol-priority

Syntax

display protocol-priority

View

Any view

Parameter

None

Description

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

Example

# Display the priority of the protocol packet.

<H3C> display protocol-priority

Protocol: telnet

  DSCP: be(0)

1.1.2  display qos cos-local-precedence-map

Syntax

display qos cos-local-precedence-map

View

Any view

Parameter

None

Description

Use the display qos cos-local-precedence-map command to display the “COS-to-local-precedence” mapping table.

Example

# Display the “COS-to-local-precedence” mapping table.

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

cos-local-precedence-map:

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

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

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

1.1.3  display qos-interface all

Syntax

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

View

Any view

Parameter

interface-type interface-number: Port index.

unit-id: Unit ID of the switch.

Description

Use the display qos-interface all command to display all the QoS configuration of the ports. If you do not input port parameters, this command will display the QoS parameter configuration of all the ports of the switch, including priority remark, queue scheduling, rate limit, etc; if you input port parameters, this command will display QoS parameter configuration of the port, including priority remark, queue scheduling, rate limit, etc.

When the IRF feature is enabled, the interface-type interface-number argument or the unit-id argument must be input.

Example

# Display all the QoS parameter configuration on Ethernet1/0/1.

<H3C> display qos-interface Ethernet 1/0/1 all

 

Ethernet1/0/1: traffic-limit

 Inbound:

   Matches: Acl 3001 rule 1  running

     Target rate: 640 kbps

     Exceed action: remark-dscp 4

Ethernet1/0/1: traffic-priority

 Inbound:

   Matches: Acl 2000 rule 0  running

     Priority action: dscp ef

 

Ethernet1/0/1: line-rate

   Inbound: 128 kbps

   Outbound: 1024 kbps

 

Ethernet1/0/1:

 

 Queue scheduling mode: strict-priority

1.1.4  display qos-interface line-rate

Syntax

display qos-interface { interface-type interface-number | unit-id } line-rate

View

Any view

Parameter

interface-type interface-number: Port index.

unit-id: Unit ID of the switch.

Description

Use the display qos-interface line-rate command to display the rate limit configuration of a port or all the ports of a switch. If you do not specify the interface-type interface-number argument, this command will display the rate limit configuration of all the ports of a switch; if you specify that argument, this command will display the rate limit configuration of a specific port.

Example

# Display the rate limit configuration of a specific port.

<H3C> display qos-interface 1 line-rate

Ethernet1/0/1: line-rate

   Inbound: 128 kbps

1.1.5  display qos-interface traffic-limit

Syntax

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

View

Any view

Parameter

interface-type interface-number: Port index.

unit-id: Unit ID of the switch.

Description

Use the display qos-interface traffic-limit command to display the traffic limit configuration of a port or all the ports of a switch, including the applied ACLs for traffic limit, committed information rate (CIR), and the corresponding actions.

Related command: traffic-limit.

Example

# Display the traffic limit configuration.

<H3C> display qos-interface Ethernet 1/0/1 traffic-limit

 

Ethernet1/0/1: traffic-limit

 Inbound:

   Matches: Acl 3001 rule 1  running

     Target rate: 640 kbps

     Exceed action: remark-dscp 4 

1.1.6  display qos-interface traffic-priority

Syntax

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

View

Any view

Parameter

interface-type interface-number: Port index.

unit-id: Unit ID of the switch.

Description

Use the display qos-interface traffic-priority command to display the traffic priority configuration. The information displayed includes the ACL corresponding to the traffic tagged with priority, priority type and value.

Related command: traffic-priority.

Example

# Display the traffic priority configuration.

<H3C> display qos-interface Ethernet 1/0/1 traffic-priority

Ethernet1/0/1: traffic-priority

 Inbound:

   Matches: Acl 2000 rule 0  running

     Priority action: dscp ef  

1.1.7  display qos-interface traffic-redirect

Syntax

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

View

Any view

Parameter

interface-type interface-number: Port index.

unit-id: Unit ID of the switch.

Description

Use the display qos-interface traffic-redirect command to display the redirection configuration of a port or all the ports of a switch. The displayed information includes the corresponding ACLs of the traffic to be redirected, the destination interfaces, etc.

Related command: traffic-redirect.

Example

# Display the redirect configuration.

<H3C> display qos-interface Ethernet 1/0/1 traffic-redirect

Ethernet1/0/1: traffic-redirect

 Inbound:

   Matches: Acl 3000 rule 0  running

     Redirected to: interface Ethernet1/0/22

1.1.8  display qos-interface traffic-statistic

Syntax

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

View

Any view

Parameter

interface-type interface-number: Port index.

unit-id: Unit ID of the switch.

Description

Use the display qos-interface traffic-statistic command to display the traffic statistics information. The information displayed includes the ACL corresponding to the traffic to be counted and the number of packets counted.

Related command: traffic-statistic.

Example

# Display the traffic statistics information.

<H3C> display qos-interface Ethernet 1/0/1 traffic-statistic

Ethernet1/0/1: traffic-statistic

 Inbound:

   Matches: Acl 2000 rule 2  running

     0 packet inprofile

     0 packet outprofile

1.1.9  display queue-scheduler

Syntax

display queue-scheduler

View

Any view

Parameter

None

Description

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

Related command: queue-scheduler.

Example

# Display the global queue scheduling mode.

<H3C> display queue-scheduler

Queue scheduling mode: strict-priority

1.1.10  line-rate

Syntax

line-rate { inbound | outbound } target-rate

undo line-rate{ inbound | outbound }

View

Ethernet port view

Parameter

inbound: Limits the rate of inbound packets.

outbound: Limits the rate of outbound packets.

target-rate: Total rate (in Kbps) to limit both the inbound and outbound packets on the port, with the granularity of rate limit being 64 Kbps. If the number you input is in the range of N*64 to (N+1)*64 (N is a natural number), the switch will set the value to (N+1)*64 Kbps automatically. The target rate range for fast Ethernet ports and Gigabit Ethernet ports respectively is:

l           Fast Ethernet port: 64 to 99,968

l           Gigabit Ethernet port: 64 to 1,000,000

Description

Use the line-rate command to limit the rate of the packets on the port.

Use the undo line-rate command to cancel the rate limit configuration on the port.

The granularity of rate limit is 64 Kbps.

Example

# Limit the rate of inbound packets on Ethernet1/0/1 to 128 Kbps.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] line-rate inbound 128

1.1.11  priority

Syntax

priority priority-level

undo priority

View

Ethernet port view

Parameter

priority-level: Priority level of the port, ranging from 0 to 7.

Description

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

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

By default, the switch uses the port priority instead of the 802.1p priority carried by a packet.

After this command is configured, the switch will replace the packet 802.1p priority with the priority of the receiving port, according to which the packet will be put into the corresponding egress queue.

Example

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

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] priority 6

1.1.12  priority trust

Syntax

priority trust

undo priority

View

Ethernet port view

Parameter

None

Description

Use the priority trust command to configure the system to use the packet 802.1p priority instead of the port priority.

Use the undo priority command to configure the system not to use packet 802.1p priority.

By default, the system replaces the priority carried by a packet with the port priority.

Example

# Configure the system to use the packet priority on Ethernet1/0/1.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] priority trust

1.1.13  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

Parameter

protocol-type protocol-type: Specifies the protocol type. Only TELNET, SNMP, ICMP and OSPF are supported currently.

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

Table 1-1 Description on IP precedence 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 priority, in the range of 0 to 63. You can also enter the keywords listed in Table 1-2.

Table 1-2 Description on DSCP values

Keyword

DSCP value (decimal)

DSCP value (binary)

ef

46

101110

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

cs1

8

001000

cs2

16

010000

cs3

24

011000

cs4

32

100000

cs5

40

101000

cs6

48

110000

cs7

56

111000

be (default)

0

000000

 

Description

Use the protocol-priority command to set the global traffic priority for a specific protocol type.

Use the undo protocol-priority command to cancel the settings.

 

&  Note:

The precedence of OSPF protocol packets cannot be changed on S3600-SI series switches.

 

Example

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

<H3C> system-view

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

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

1.1.14  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

Parameter

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

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

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

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

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

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

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

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

Description

Use the qos cos-local-precedence-map command to configure the “CoS-to-local-precedence” mapping table.

Use the undo qos cos-local-precedence-map command to restore the default values.

The following is the default “CoS-to-local-precedence” mapping table.

Table 1-3 Default “CoS-to-local-precedence” mapping table

CoS value

Local precedence

0

2

1

0

2

1

3

3

4

4

5

5

6

6

7

7

 

Example

# Configure the “CoS-to-local-precedence” mapping table.

<H3C> system-view

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

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

The following is the configured "CoS-to-local-precedence” mapping table.

Table 1-4 “CoS-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

 

1.1.15  queue-scheduler

Syntax

I. In system view

queue-scheduler { strict-priority | wfq queue0-width queue1-width queue2-width queue3-width queue4-width queue5-width queue6-width queue7-width | wrr queue0-weight queue1-weight queue2-weight queue3-weight queue4-weight queue5-weight queue6-weight queue7-weight }

undo queue-scheduler

II. In Ethernet port view

queue-scheduler { wfq queue0-width queue1-width queue2-width queue3-width queue4-width queue5-width queue6-width queue7-width | wrr queue0-weight queue1-weight queue2-weight queue3-weight queue4-weight queue5-weight queue6-weight queue7-weight }

undo queue-scheduler

View

System view/Ethernet port view

Parameter

strict-priority: Indicates that the queue uses strict priority (SP) scheduling algorithm.

wfq: Indicates that the queue uses weighted fair queue (WFQ) scheduling.

queue0-width queue1-width queue2-width queue3-width queue4-width queue5-width queue6-width queue7-width: Minimum delivery bandwidth of each WFQ queue in Kbps. Its granularity is 64 Kbps. If the number you enter is in the range of N*64 to (N+1)*64 (N is a natural number), the switch sets the value to (N+1)*64 automatically. The value for fast Ethernet ports is in the range of 64 to 99,968, and the value for Gigabit Ethernet ports is in the range of 64 to 1,000,000. A value of 0 means the corresponding queue uses the SP scheduling.

wrr: Indicates that the queue uses weighted round robin (WRR) scheduling.

queue0-weight queue1-weight queue2-weight queue3-weight queue4-weight queue5-weight queue6-weight queue7-weight: Indicates that the queue uses the WRR scheduling. The value ranges from 0 to 15. A value of 0 means the corresponding queue uses the SP scheduling.

Description

Use the queue-scheduler command to configure the queue scheduling mode.

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

The queue scheduling algorithm defined by executing the queue-scheduler command in system view takes effect on all the ports of the switch. The queue scheduling algorithm defined by executing the queue-scheduler command in Ethernet port view takes effect on the current port only. If the weight (or bandwidth value) of the WRR (or WFQ) queue scheduling algorithm defined globally cannot satisfy the requirement of a port, you can modify the weight (or bandwidth value) of the queue scheduling algorithm for this port in Ethernet port view of this port. On this port, the newly defined queue weight (or bandwidth value) will replace the globally defined one. You cannot use the display queue-scheduler command to display the queue weight (or bandwidth value) defined in Ethernet port view.

A port of the switch supports eight egress queues and you can configure a queue scheduling mode, which can be SP, WRR, or WFQ as needed to achieve the implementation of WRR+SP or WFQ+SP. For example, with WRR or WFQ, if you set the weight or the minimum bandwidth of one or more queues to 0, the SP applies to the queue(s) and WRR or WFQ apply to other queues.

By default, the WRR algorithm is selected for all outbound queues on a port, and their weight values are 1, 2, 3, 4, 5, 9, 13, and 15.

Related command: display queue-scheduler.

Example

# Set WRR as the queue scheduling mode, and set the weight value of each queue to 1, 2, 3, 4, 5, 6, 7, and 8, respectively.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] queue-scheduler wrr 1 2 3 4 5 6 7 8

1.1.16  reset traffic-statistic

Syntax

reset traffic-statistic inbound acl-rule

View

Ethernet port view

Parameter

inbound: Specifies to clear the statistics of the inbound packets on the port.

acl-rule: Applied ACL which can be the combination of various ACL rules. For the ways of combining ACLs and the description on related parameters, refer to Table 1-5 and Table 1-6.

Table 1-5 Ways of applying combined ACLs

ACL combination

Form of the acl-rule argument

Apply all the rules in an IP ACL separately

ip-group acl-number

Apply a rule in an IP ACL separately

ip-group acl-number rule rule-id

Apply all the rules in a Link ACL separately

link-group acl-number

Apply a rule in a Link ACL separately

link-group acl-number rule rule-id

Apply all the rules in a user-defined ACL separately

user-group acl-number

Apply a rule in a user-defined ACL separately

user-group acl-number rule rule-id

Apply a rule in an IP ACL and a rule in a Link ACL at the same time

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

 

Table 1-6 Description on the parameters in the ACL combination

Parameter

Description

ip-group acl-number

The number of a basic or advanced ACL, in the range of 2,000 to 3,999

link-group acl-number

The number of a Layer 2 ACL, in the range of 4,000 to 4,999

user-group acl-number

The number of a user-defined ACL, in the range of 5,000 to 5,999

rule-id

The number of an ACL rule, in the range of 0 to 65,534. If this argument is not specified, it refers to all the rules in the ACL

 

Description

Use the reset traffic-statistic command to clear the statistics of all or the specified traffic.

Example

# Clear the statistics of the inbound traffic that matches ACL 2000 on Ethernet1/0/1.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] reset traffic-statistic inbound ip-group 2000

1.1.17  traffic-limit

Syntax

traffic-limit inbound acl-rule target-rate [ exceed action ]

undo traffic-limit inbound acl-rule

View

Ethernet port view

Parameter

inbound: Imposes traffic limit on the packets received through the interface.

acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the ways of combining ACLs and the description on related parameters, refer to Table 1-5 and Table 1-6.

target-rate: Total rate (in Kbps) to be set, with the granularity of traffic limit being 64 Kbps. If the specified number ranges from N*64 to (N+1)*64, where N is a natural number, the switch automatically sets (N+1)*64 as the parameter value. This argument ranges from 64 to 99,968 inclusive for a fast Ethernet port and from 64 to 1,000,000 inclusive for a Gigabit Ethernet port.

exceed action: Optional. The action is taken when the traffic exceeds the threshold. The action can be:

l           drop: Drops the packets.

l           remark-dscp value: Sets a new DSCP value.

Description

Use the traffic-limit command to activate ACL-based traffic identification, impose traffic limit, and take different actions on packets within/exceeding the traffic limit.

Use the undo traffic-limit command to remove traffic limit.

The granularity of traffic limit is 64 Kbps.

This command is only effective for the ACL rules whose actions are permit.

Example

# Impose traffic limit on packets that are received on Ethernet1/0/1 and match the permit rule in ACL 4000. Set the rate limit to 128 Kbps and drop the packets exceeding the rate.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] traffic-limit inbound link-group 4000 128 exceed drop

1.1.18  traffic-priority

Syntax

traffic-priority { inbound | outbound } acl-rule { { dscp dscp-value | ip-precedence { pre-value | from-cos } } | cos { pre-value | from-ipprec } | local-precedence pre-value }*

undo traffic-priority { inbound | outbound } acl-rule

View

Ethernet port view

Parameter

inbound: Performs priority remarking on the packets received by the interface.

outbound: Performs priority remarking on the packets sent by the interface.

acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the ways of combining ACLs and the description on related parameters, refer to Table 1-5 and Table 1-6.

dscp dscp-value: Sets DSCP priority, ranging from 0 to 63. You can also enter the keywords listed in Table 1-2.

ip-precedence { pre-value | from-cos }: Sets IP precedence. pre-value ranges from 0 to 7. You can also enter the keywords listed in Table 1-1. from-cos means to set IP precedence of the packet to be the same as the 802.1p priority.

cos { pre-value | from-ipprec }: Sets 802.1p priority. The pre-value argument ranges from 0 to 7. You can also enter the keywords list in Table 1-7. from-ipprec means to set 802.1p priority of the packet to be the same as the IP precedence.

Table 1-7 Description on 802.1p priority values

Keyword

CoS value (decimal)

CoS value (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

 

local-precedence pre-value: Sets local precedence. The pre-value argument ranges from 0 to 7.

Description

Use the traffic-priority command to apply ACLs in traffic classification and remark priority for the traffic matching the ACLs. This command is effective only for the ACL rules whose actions are permit.

Use the undo traffic-priority command to remove the function of remarking priority for the specified traffic.

 

&  Note:

The CoS precedence and the local-precedence cannot be applied simultaneously on the switch.

 

Related command: display qos-interface traffic-priority.

Example

# Remark the 802.1p priority of the packets that are received on Ethernet1/0/1 and match the permit rule in ACL 4000 as 1.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] traffic-priority inbound link-group 4000 cos 1

1.1.19  traffic-redirect

Syntax

traffic-redirect { inbound | outbound } acl-rule { cpu | interface interface-type interface-number }

undo traffic-redirect { inbound | outbound } acl-rule

View

Ethernet port view

Parameter

inbound: Performs traffic redirecting on the packets received by the interface.

outbound: Performs traffic redirecting on the packets sent by the interface.

acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the ways of combining ACLs and the description on related parameters, refer to Table 1-5 and Table 1-6.

cpu: Redirects the traffic to the CPU.

interface interface-type interface-number: Redirects the packets to the specified Ethernet port. The interface-type argument refers to the port type.

Description

Use the traffic-redirect command to activate the ACL to identify and redirect the traffic (whose action is permit).

Use the undo traffic-redirect command to cancel the redirection.

Related command: display qos-interface traffic-redirect.

 

&  Note:

l      After the packets are redirected to CPU, they cannot be forwarded normally.

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

 

Example

# Redirect the packets that are received on Ethernet1/0/1 and match the permit rule in ACL 2000 to Ethernet1/0/7.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] traffic-redirect inbound ip-group 2000 interface Ethernet 1/0/7

1.1.20  traffic-statistic

Syntax

traffic-statistic inbound acl-rule

undo traffic-statistic inbound acl-rule

View

Ethernet port view

Parameter

inbound: Performs traffic statistics on the packets received by the interface.

acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the ways of combining ACLs and the description on related parameters, refer to Table 1-5 and Table 1-6.

Description

Use the traffic-statistic command to activate the ACL to identify traffic and perform statistics on the traffic (whose action is permit).

Use the undo traffic-statistic command to cancel the traffic statistics.

The statistics generated with the traffic-statistic command includes the times transmitted data is matched by the switch. You can use the display qos-interface traffic-statistic command to display the statistics information.

Related command: display qos-interface traffic-statistic.

Example

# Perform traffic statistics on the packets that are received on Ethernet1/0/1 and match the permit rule in ACL 2000.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] traffic-statistic inbound ip-group 2000

1.1.21  wred

Syntax

wred queue-index qstart probability

undo wred queue-index

View

Ethernet port view

Parameter

queue-index: Queue index in the range of 0 to 7.

qstart: Number of the packets that the queue can hold, in the range of 1 to 128.

probability: Drop probability in the range of 0 to 92 (percentage).

Description

Use the wred command to configure WRED parameters.

Use the undo wred command to restore default setting.

By default, WRED function is disabled.

Example

# Configure WRED parameters for queue 2 on Ethernet1/0/1. When the number of packets in queue 2 exceeds 64, packets are dropped at random. The drop probability is 20%.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] wred 2 64 20

 


Chapter 2  QoS Profile Configuration Commands

2.1  QoS Profile Configuration Commands

2.1.1  apply qos-profile

Syntax

I. In system view

apply qos-profile profile-name interface interface-list

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

II. In Ethernet port view

apply qos-profile profile-name

undo apply qos-profile profile-name

View

System view/Ethernet port view

Parameter

profile-name: QoS profile name, a string of 1 to 32 characters, starting with English letters [a-z, A-Z] and excluding reserved keywords, such as all, interface, user, undo, user-based, port-based, and name.

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

Description

Use the apply qos-profile command to apply the QoS profile configuration to the current port manually.

Use the undo apply qos-profile command to remove the QoS profile configuration from the current port.

You cannot delete the specific QoS profile that has been applied to the port.

Example

# Apply the QoS profile named a123 to Ethernet1/0/1.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] apply qos-profile a123

# Apply the QoS profile named a123 to Ethernet1/0/1 through Ethernet1/0/4.

<H3C> system-view

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

[H3C] apply qos-profile a123 interface Ethernet 1/0/1 to Ethernet 1/0/4

2.1.2  display qos-profile

Syntax

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

View

Any view

Parameter

all: Displays all QoS profiles.

profile-name: QoS profile with the specified name. profile-name is a string of 1 to 32 characters, starting with English letters [a-z, A-Z] and excluding reserved keywords, such as all, interface, user, undo, user-base, port-based, and name.

interface interface-type interface-number: Displays the QoS profile applied on a specific port.

user user-name: Displays the QoS profile mapped to a specific user. user-name is a string of 1 to 80 characters.

Description

Use the display qos-profile command to display QoS profile configuration information.

Example

# Display QoS profile configuration information.

<H3C> display qos-profile all

2.1.3  packet-filter

Syntax

packet-filter { inbound | outbound } acl-rule

undo packet-filter { inbound | outbound } acl-rule

View

QoS profile view

Parameter

inbound: Filters the inbound packets on the port.

outbound: Filters the outbound packets on the port.

acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the ways of combining ACLs and the description on related parameters, refer to Table 1-5 and Table 1-6.

Description

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

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

Example

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

<H3C> system-view

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

[H3C] qos-profile a123

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

2.1.4  qos-profile

Syntax

qos-profile profile-name

undo qos-profile profile-name

View

System view

Parameter

profile-name: QoS profile name, a string of 1 to 32 characters, starting with English letters [a-z, A-Z] and excluding reserved keywords, such as all, interface, user, undo, user-based, port-based, and name.

Description

Use the qos-profile command to create a QoS profile and enter the corresponding view. For an existing QoS profile, use this command to directly enter the corresponding view.

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

You cannot delete a QoS profile that has been applied to the port.

Example

# Create a QoS profile named a123.

<H3C> system-view

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

[H3C] qos-profile a123

[H3C-qos-profile-a123]

2.1.5  qos-profile port-based

Syntax

qos-profile port-based

undo qos-profile port-based

View

Ethernet port view

Parameter

None

Description

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

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

By default, a QoS profile is applied on a port in user-based mode.

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

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

After you configure the QoS profiles and the user passes the authentication, the switch delivers the right profile dynamically to the port through which the user is connected. The QoS profile can be delivered to the port in one of the following two modes:

l           User-based mode: If the source station information (source MAC address, source IP address, or source MAC address + source IP address) has been defined in the ACL that is applied in the traffic actions, the switch cannot deliver the QoS profile dynamically; if no source station information is available, the switch generates a new ACL by adding the source MAC address and source IP address of the user into the existing ACL, and then applies all traffic actions in the QoS profile on the user port.

l           Port-based mode: The switch delivers the traffic actions in the QoS profile directly to the user port. In this mode, all the users connected through one port should use the same QoS profile.

Example

# Configure the application mode of the QoS profile on Ethernet1/0/1 as the port-based mode.

<H3C> system-view

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

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1] qos-profile port-based

2.1.6  traffic-limit

Syntax

traffic-limit inbound acl-rule target-rate [ exceed exceed-action ]

undo traffic-limit inbound acl-rule

View

QoS profile view

Parameter

inbound: Imposes traffic limit on the inbound packets through the port.

acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the ways of combining ACLs and the description on related parameters, refer to Table 1-5 and Table 1-6.

target-rate: Total traffic (in Kbps) to be set, with the granularity of traffic limit being 64Kbps. If the number user input ranges from N*64 to (N+1)*64, where N is a natural number, the switch automatically sets (N+1)*64 as the parameter value. The value of port rate ranges from 64 to 1,000,000.

exceed action: Specifies the action to be taken when the traffic threshold is exceeded (optional). Two actions are available:

l           drop: Drops packets.

l           remark-dscp value: Sets a new DSCP value.

Description

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

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

You cannot remove traffic policing action from the specific QoS profile that has been applied to the port.

Example

# Add this traffic policing action to the QoS profile named a123: Limit traffic matching ACL 2000, set the target rate to 128 Kbps, and drop the packets that exceed this target rate.

<H3C> system-view

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

[H3C] qos-profile a123

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

2.1.7  traffic-priority

Syntax

traffic-priority { inbound | outbound } acl-rule { { dscp dscp-value | ip-precedence { pre-value | from-cos } } | cos { pre-value | from-ipprec } | local-precedence pre-value }*

undo traffic-priority { inbound | outbound } acl-rule

View

QoS profile view

Parameter

inbound: Remarks the preference value for the inbound packets on the port.

outbound: Remarks the preference value for the outbound packets through the port.

acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the ways of combining ACLs and the description on related parameters, refer to Table 1-5 and Table 1-6.

dscp dscp-value: Sets DSCP preference value, in the range 0 to 63. You can also enter keywords listed in Table 1-2.

ip-precedence { pre-value | from-cos }: Sets IP preference value. pre-value is in the range of 0 to 7. You can also enter keywords listed in Table 1-1. from-cos sets the IP preference value consistent with 802.1p preference value.

cos { pre-value | from-ipprec }: Sets 802.1p preference value. pre-value is in the range of 0 to 7. You can also enter keywords listed in Table 1-7. from-ipprec sets the 802.1p preference value consistent with the IP preference value.

local-precedence pre-value: Sets local preference value, in the range of 0 to 7.

Description

Use the traffic-priority command to enable the ACL and preference marking.

Use the undo traffic-priority command to remove the preference marking.

You cannot remove preference marking from a QoS profile that has been applied to the port.

 

&  Note:

The CoS precedence and the local-precedence cannot be applied simultaneously on the switch.

 

Example

# Add preference marking to the QoS profile named a123. The action is to set the local preference of the inbound packets matching ACL 2000 to 0.

<H3C> system-view

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

[H3C] qos-profile a123

[H3C-qos-profile-a123] traffic-priority inbound ip-group 2000 local-precedence 0

 

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