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
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: line-rate
Inbound: 128 kbps
Outbound: 1024 kbps
Ethernet1/0/1:
Queue scheduling mode:
strict-priority
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
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
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.7 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
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
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.
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
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
|
Syntax
I. In system view
queue-scheduler { strict-priority | 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 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.
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 of the WRR queue scheduling algorithm defined
globally cannot satisfy the requirement of a port, you can modify the weight of
the queue scheduling algorithm for this port in Ethernet port view of this
port. On this port, the newly defined queue weight will replace the globally
defined one. You cannot use the display queue-scheduler command to
display the queue weight 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, as needed
to achieve the implementation of WRR+SP. For example, with WRR, if you set the weight
of one or more queues to 0, the SP applies to the queue(s) and WRR 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