实验14 QoS端口优先级设置实验14 QoS端口优先级设置
实验十四:Qos之端口优先级设置
一、 理论基础
端口优先级是可以由管理员手工设置的。以太网交换机的端口支持8个优先级。用户可以根据需要设置端口的优先级。默认情况下,交换机将使用端口优先级代替该端口接收报文本身带有的802.1p优先级,从而控制报文可以享有的服务质量。 priority-level的取值范围为0,7。
缺省情况下,端口优先级为0;对于接收的报文,交换机将使用报文接收端口的优先级替换报文的802.1p优先级。
交换机的端口有4个输出队列,队列ID分别为0、1、2、3。交换机...
实验14 QoS端口优先级设置
实验十四:Qos之端口优先级设置
一、 理论基础
端口优先级是可以由管理员手工设置的。以太网交换机的端口支持8个优先级。用户可以根据需要设置端口的优先级。默认情况下,交换机将使用端口优先级代替该端口接收报文本身带有的802.1p优先级,从而控制报文可以享有的服务质量。 priority-level的取值范围为0,7。
缺省情况下,端口优先级为0;对于接收的报文,交换机将使用报文接收端口的优先级替换报文的802.1p优先级。
交换机的端口有4个输出队列,队列ID分别为0、1、2、3。交换机支持根据报文的802.1p优先级或者DSCP优先级把报文放入这4个输出队列中。用户可以通过配置来指定根据哪种优先级将报文入队列。
可以使用下面的命令来指定将报文放入队列时依据的优先级。指定将报文放入队列时依据的优先级: priority-trust { cos | dscp }
缺省情况下,交换机采用802.1p优先级将报文放入相应的输出队列中去。
二、 实验案例
端口的优先级的配置
1、实验拓扑结构图:
2、配置说明:
交换机的 E0/1的接口的优先级别设置为1,速率为10Mbps(接PC1)
E0/2的接口的速率为20Mbps(接server)
E0/3的接口的优先级别设置为7,速率为10Mbps(接PC2)
3、具体配置:
[Quidway]int e0/3
[Quidway-Ethernet0/3]priority 7 [Quidway-Ethernet0/3]int e0/1
[Quidway-Ethernet0/1]priority 1
[Quidway]undo port-prioritytrust disable
[Quidway]queue-scheduler wrr 1 2 3 31 [Quidway]int e0/3
[Quidway-Ethernet0/3]speed 10
[Quidway-Ethernet0/3]int e0/1
[Quidway-Ethernet0/1]speed 10
[Quidway-Ethernet0/1]int e0/2
[Quidway-Ethernet0/2]line-rate outbound 20 [Quidway]priority-trust cos
[Quidway]dis qos cos-local-precedence-map
cos-local-precedence-map:
cos : 0 1 2 3 4 5 6 7
---------------------------------------------------------------
local-precedence : 2 0 1 3 4 5 6 7
[Quidway]
dis cur
sysname Quidway
radius scheme system
server-type huawei
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain domain system
radius-scheme system
access-limit disable
state active
vlan-assignment-mode integer idle-cut disable
self-service-url disable
messenger time disable
domain default enable system
local-server nas-ip 127.0.0.1 key huawei
queue-scheduler wrr 1 2 3 31 vlan 1
vlan 2
vlan 3
interface Aux0/0 interface Ethernet0/1
speed 10
priority 1
interface Ethernet0/2 line-rate outbound 20
interface Ethernet0/3
speed 10
priority 7
interface Ethernet0/4 interface Ethernet0/5 interface Ethernet0/6 interface Ethernet0/7 interface Ethernet0/8 interface NULL0
user-interface aux 0 user-interface vty 0 4 return
三、 实验
通过优先级的设置,使得PC1和PC2从Server上拷贝同一个文件,可以看出连接在交
换机E0/3(优先级为7)的计算机所使用的时间明显的少与连接在交换机E0/1的计算机使
用的时间。
本文档为【实验14 QoS端口优先级设置】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。