• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

H3C E152以太网交换机 命令手册-RELEASE 1500(V1.01)

21-QoS命令

本章节下载  (142.14 KB)

21-QoS命令


第1章  QoS命令

1.1  QoS命令

1.1.1  display protocol-priority

【命令】

display protocol-priority

【视图】

任意视图

【参数】

【描述】

display protocol-priority命令用于显示协议报文的优先级。

【举例】

# 显示协议报文对应的优先级。

<H3C> display protocol-priority

Protocol: telnet

  DSCP: be(0)

1.1.2  display qos cos-local-precedence-map

【命令】

display qos cos-local-precedence-map

【视图】

任意视图

【参数】

【描述】

display qos cos-local-precedence-map命令用来显示“COS—>Local-precedence”映射表。

【举例】

# 显示“COS—>Local -precedence”映射表。

<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

【命令】

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

【视图】

任意视图

【参数】

interface-type interface-number:交换机的端口。

unit-id:unit ID,只能为1。

【描述】

display qos-interface all命令用来显示端口的所有QoS设置信息,包括队列调度算法及端口限速配置信息。如果不输入端口参数,本命令将显示交换机上所有端口的QoS参数设置;如果输入了端口参数,本命令将显示交换机上指定端口的QoS参数设置。

【举例】

# 显示端口Ethernet 1/0/1下的所有QoS参数配置。

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

 

Ethernet1/0/1: line-rate

   Inbound: 128 Kbps

 

Ethernet1/0/1:

 

 Queue scheduling mode: weighted round robin

 weight of queue 0: 1

 weight of queue 1: 1

 weight of queue 2: 1

 weight of queue 3: 2

 weight of queue 4: 2

 weight of queue 5: 2

 weight of queue 6: 3

 weight of queue 7: 3

1.1.4  display qos-interface line-rate

【命令】

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

【视图】

任意视图

【参数】

interface-type interface-number:交换机的端口。

unit-id:unit ID,只能为1。

【描述】

display qos-interface line-rate命令用来显示端口流量限速的参数设置,包括端口及其限制的流量速率。如果不输入端口参数,本命令将显示所有端口流量限速的参数设置;如果输入了端口参数,本命令将显示交换机上指定端口的流量限速的参数设置。

【举例】

# 显示端口流量限制的参数配置。

<H3C> display qos-interface 1 line-rate

 

Ethernet1/0/1: line-rate

   Inbound: 128 kbps

1.1.5  display queue-scheduler

【命令】

display queue-scheduler

【视图】

任意视图

【参数】

【描述】

display queue-scheduler命令用来显示全局配置的队列调度模式及参数。

相关配置可参考命令queue-scheduler

【举例】

# 显示全局配置的队列调度模式及参数。

<Quidway> display queue-scheduler

Queue scheduling mode: strict-priority

1.1.6  line-rate

【命令】

line-rate { inbound | outbound } target-rate

undo line-rate{ inbound | outbound }

【视图】

以太网端口视图

【参数】

inbound:对端口接收报文进行速率限制。

outbound:对端口发送报文进行速率限制。

target-rate:对端口报文限制的总速率,单位Kbps,速率限制的粒度为64,如果用户输入的数字在N*64~(N+1)*64之间(N为自然数),交换机自动将该参数取值为(N+1)*64。百兆端口和千兆端口的取值范围分别为:

l              百兆以太网口:64~99968

l              千兆以太网口:64~1000000

【描述】

line-rate命令用来对端口报文的总速率进行限制。undo line-rate命令用来取消端口限速的配置。

速率限制的粒度为64Kbps。

【举例】

# 限制端口Ethernet 1/0/1接收报文的速率为128Kbps。

<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

【命令】

priority priority-level

undo priority

【视图】

以太网端口视图

【参数】

priority-level:端口优先级的取值,范围为0~7。

【描述】

priority命令用来设置以太网端口的优先级。undo priority命令用来恢复优先级缺省配置。

缺省情况下,交换机使用端口优先级替换报文携带的802.1p优先级。

使用本命令配置之后,交换机将报文接收端口的优先级替换报文中携带的802.1p优先级。然后交换机就会根据替换后的报文优先级将报文放入相应的端口输出队列。

【举例】

# 设置Ethernet 1/0/1端口的优先级为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.8  priority trust

【命令】

priority trust

undo priority

【视图】

以太网端口视图

【参数】

【描述】

priority trust命令用来设置交换机不使用端口优先级替换报文的802.1p优先级,而是信任报文自己带有的802.1p优先级。undo priority命令用来恢复交换机对端口优先级替换功能的缺省情况。

缺省情况下,交换机上端口接收的报文本身所带的优先级将被本端口的优先级所代替。

【举例】

# 设置信任端口Ethernet 1/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.9  protocol-priority protocol-type

【命令】

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

undo protocol-priority protocol-type protocol-type

【视图】

系统视图

【参数】

protocol-type protocol-type:表示协议类型,目前只支持TELNET、SNMP、ICMP。

ip-precedence ip-precedence:IP优先级,取值范围0~7。用户也可输入如表1-1所示的关键字。

表1-1 IP Precedence值说明

关键字

IP Precedence值(十进制)

IP Precedence值(二进制)

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:DSCP优先级,取值范围0~63。用户也可输入如表1-2所示的关键字。

表1-2 DSCP值说明

关键字

DSCP值(十进制)

DSCP值(二进制)

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

 

【描述】

protocol-priority命令用于设置某个协议对应的全局优先级。undo protocol-priority命令用于取消协议优先级设置。

【举例】

# 设置SNMP协议的IP优先级为3。

<H3C> system-view

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

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

1.1.10  qos cos-local-precedence-map

【命令】

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

【视图】

系统视图

【参数】

cos0-map-local-prec:表示COS 0local-prec的映射值。取值范围0~7。

cos1-map-local-prec:表示COS 1到local-prec的映射值。取值范围0~7。

cos2-map-local-prec:表示COS 2local-prec的映射值。取值范围0~7。

cos3-map-local-prec:表示COS 3到local-prec的映射值。取值范围0~7。

cos4-map-local-prec:表示COS 4local-prec的映射值。取值范围0~7。

cos5-map-local-prec:表示COS 5到local-prec的映射值。取值范围0~7。

cos6-map-local-prec:表示COS 6local-prec的映射值。取值范围0~7。

cos7-map-local-prec:表示COS 7到local-prec的映射值。取值范围0~7。

【描述】

qos cos-local-precedence-map命令用来配置“COS —>Local-precedence”映射表。undo qos cos-local-precedence-map命令用来将“COS —>Local-precedence”映射表恢复为缺省值。

缺省情况下,系统提供缺省的“COS —>Local-precedence”映射表。

表1-3 缺省的“COS —>Local-precedence”映射关系

COS Value

Local Precedence

0

2

1

0

2

1

3

3

4

4

5

5

6

6

7

7

 

【举例】

# 配置“COS —>Local-precedence”映射表。

<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

则配置完毕后的“COS —>Local-precedence”映射表如下所示。

表1-4 “COS —>Local-precedence”映射表

COS Value

Local Precedence

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

 

1.1.11  queue-scheduler

【命令】

1. 系统视图下的命令形式

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

undo queue-scheduler

2. 以太网端口视图下的命令形式

queue-scheduler wrr queue0-weight queue1-weight queue2-weight queue3-weight queue4-weight queue5-weight queue6-weight queue7-weight

undo queue-scheduler

【视图】

系统视图/以太网端口视图

【参数】

strict-priority:表示队列实行严格优先级调度算法。

wrr:表明队列实行加权轮循调度算法。

queue0-weight queue1-weight queue2-weight queue3-weight queue4-weight queue5-weight queue6-weight queue7-weight:分别是队列0~7的权重。权重的取值范围0~15。如果取值为0,表示此队列使用实行严格优先级调度算法。

【描述】

queue-scheduler命令用来设置队列调度算法及参数。undo queue-scheduler命令用来恢复队列调度算法的缺省值。

在全局视图下用queue-scheduler命令定义的队列调度算法会在设备的所有端口上生效;在以太网端口视图下用queue-scheduler命令定义的队列调度算法只在当前端口生效。如果全局定义的WRR队列调度算法中各队列的权值不能满足某一端口的需求,用户可在此端口视图下修改其队列权值。在此端口上,新定义的队列权值会覆盖全局定义的队列权值。在端口视图下定义的队列权值不能用display queue-scheduler命令来显示。

交换机的端口支持8个输出队列,用户可以根据需要配置队列调度方法:SP、WRR。在WRR方式中,如果某一个或多个队列的权值设为0,则对于这个或这些队列实行严格优先级调度算法。其他队列仍然使用WRR的调度算法。即可以通过设置,实现WRR+SP的功能。

缺省情况下,端口所有输出队列采用WRR队列调度方法,权重为1:2:3:4:5:9:13:15。

相关配置可参考命令display queue-scheduler

【举例】

# 设置队列调度模式为加权轮循调度,队列的权重分别为1、2、3、4、5、6、7、8。

<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

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们