首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >2960 X上的QoS似乎没有影响

问2960 X上的QoS似乎没有影响
EN

Network Engineering用户
提问于 2019-03-25 12:47:22
回答 1查看 561关注 0票数 4

我们与Dect站有一些问题,对延迟有很高的要求。两个设备之间的通信不应超过500微秒(0.5ms)。我们决定用ping统计数据测试一些不同的配置。我们的设置是这样的:

代码语言:javascript
复制
DeviceA - - - - SwitchA - - - - SwitchB - - - - SwitchC - - - - SwitchD - - - - DeviceB

我们从DeviceA (即ESXi上的Windows2016Server)到DeviceB (仅仅是一台Windows 10 PC )进行了1h的切换。首先,我们做了一个没有任何QoS活动的测试,作为参考。然后,我们将ICMP流量放入DSCP18,因此它有自己的空闲队列可供使用。这是SwitchA和SwitchD上的策略配置:

代码语言:javascript
复制
ip access-list extended QOS_ICMP_COLORING
 permit icmp host 172.16.144.35 any
 permit icmp any host 172.16.144.35

class-map match-any QOS_ICMP_COLORING
 match access-group name QOS_ICMP_COLORING

policy-map QOS
 class QOS_ICMP_COLORING
  set dscp af21

SwitchA
interface GigabitEthernet1/0/37
 description DeviceA with IP 172.16.144.35
 switchport trunk native vlan 10
 switchport mode trunk
 power inline port 2x-mode
 mls qos trust dscp
 mls qos dscp-mutation HIDE
 spanning-tree portfast trunk
 service-policy input QOS
end

SwitchD
interface GigabitEthernet1/0/5
 description DeviceB with IP 172.16.144.243
 switchport access vlan 10
 switchport mode access
 power inline port 2x-mode
 mls qos trust dscp
 mls qos dscp-mutation HIDE
 spanning-tree portfast
 service-policy input QOS
end

Example uplink interface (same on all switches)
interface GigabitEthernet1/0/47
 description uplink
 switchport trunk native vlan 10
 switchport mode trunk
 power inline port 2x-mode
 mls qos trust dscp
 mls qos dscp-mutation HIDE
end

由于在2960 X上有固定的DSCP队列映射,所以我们使用dscp-突变映射来覆盖网络中所有不需要的标记,只允许需要的标记:

代码语言:javascript
复制
SwitchA#show mls qos maps dscp-mutation HIDE
Dscp-dscp mutation map:
HIDE:
 d1 :  d2 0  1  2  3  4  5  6  7  8  
 ---------------------------------------
  0 :    00 00 00 00 00 00 00 00 00 00 
  1 :    00 00 00 00 00 00 00 00 18 00 
  2 :    00 00 00 00 24 00 00 00 00 00 
  3 :    00 00 32 00 00 00 00 00 00 00 
  4 :    00 00 00 00 00 00 46 00 00 00 
  5 :    00 00 00 00 00 00 00 00 00 00 
  6 :    00 00 00 00 

我们没有将任何DSCP更改为队列映射,因此这仍然是所有端口上的默认设置,即:

代码语言:javascript
复制
 queue 0:  DSCP 40–47         Voice RTP
 queue 1:  DSCP 00–15         Class-default
 queue 2:  DSCP 16–31         Voice Signaling
 queue 3:  DSCP 32–39,48–63   Citrix

由于在此位置不使用语音信令(DSCP24),因此ICMP通信量(DSCP18)可以使用其他未使用的queue2。在mls统计中,我们可以看到DSCP18标记。我核实了整个路线,到目前为止一切看起来都很好。我们使用默认的队列集设置。

代码语言:javascript
复制
SwitchA#show mls qos interface gigabitEthernet 1/0/37 statistics
GigabitEthernet1/0/37 (All statistics are in packets)

  dscp: incoming  
-------------------------------

  0 -  4 :     1066030            0            0            0            0  
  5 -  9 :           0            0            0            0            0  
 10 - 14 :           0            0            0            0            0  
 15 - 19 :           0            0            0            0            0  
 20 - 24 :           0            0            0            0            0  
 25 - 29 :           0            0            0            0            0  
 30 - 34 :           0            0            0            0            0  
 35 - 39 :           0            0            0            0            0  
 40 - 44 :           0            0            0            0            0  
 45 - 49 :           0            0            0            0            0  
 50 - 54 :           0            0            0            0            0  
 55 - 59 :           0            0            0            0            0  
 60 - 64 :           0            0            0            0  
  dscp: outgoing 
-------------------------------

  0 -  4 :     2038575            0            0            0            0  
  5 -  9 :           0            0            0            0            0  
 10 - 14 :           0            0            0            0            0  
 15 - 19 :           0            0            0        68618            0  
 20 - 24 :           0            0            0            0            0  
 25 - 29 :           0            0            0            0            0  
 30 - 34 :           0            0       679380            0            0  
 35 - 39 :           0            0            0            0            0  
 40 - 44 :           0            0            0            0            0  
 45 - 49 :           0       974219            0            0            0  
 50 - 54 :           0            0            0            0            0  
 55 - 59 :           0            0            0            0            0  
 60 - 64 :           0            0            0            0

output queues enqueued: 
 queue: threshold1 threshold2 threshold3
-----------------------------------------------
queue 0:    974219          0          0 
queue 1:   6166478       1226     544798 
queue 2:     72375          0          0 
queue 3:    679900          0          0

output queues dropped: 
queue: threshold1 threshold2 threshold3
-----------------------------------------------
queue 0:        0          0          0 
queue 1:        8          0          0 
queue 2:        0          0          0 
queue 3:        0          0          0 

SwitchA#show mls qos queue-set 1
Queueset: 1
Queue :        1     2     3     4
----------------------------------------------
buffers :     25    25    25    25
threshold1:  100   200   100   100
threshold2:  100   200   100   100
reserved :    50    50    50    50
maximum :    400   400   400   400

对我来说,奇怪的是,DSCP18依赖于mls统计数据DSCP传出,不匹配为queue2排队的输出队列。但也许这是正常的。你好,我们的平数据还没有改善。因此,我们将策略映射更改为设置DSCP46和激活的优先级队列:

代码语言:javascript
复制
policy-map QOS
 class QOS_ICMP_COLORING
  set dscp ef

interface GigabitEthernet1/0/5
 description DeviceB with IP 172.16.144.243
 switchport access vlan 10
 switchport mode access
 power inline port 2x-mode
 priority-queue out
 mls qos trust dscp
 mls qos dscp-mutation HIDE
 service-policy input QOS
end

服务策略仅应用于连接终端设备的接口。优先级队列已在路径上的所有接口上启用(包括上行链路)。但这并不影响ping的统计数据。这是一个有21个交换机的网络,其中大多数都是星型配置的。为了获得更可靠的数据,我们从同一台服务器同时对3台PC机进行了测试。但我们到处都有相同的照片。以下是研究结果:

代码语言:javascript
复制
TC0686CQ swDAI15 no QoS     TC0686CQ swDAI15 QoS (18)   TC0686CQ swDAI15 QoS (46) Priority  
More then 1ms   2872        More then 1ms   4872        More then 1ms   1870
More then 2ms   1012        More then 2ms   2080        More then 2ms   735
More then 3ms   123         More then 3ms   160         More then 3ms   449
More then 4ms   75          More then 4ms   246         More then 4ms   39
More then 5ms   64          More then 5ms   59          More then 5ms   29
Average (ms)    0.768       Average (ms)    0.935       Average (ms)    0.873
Maximum (ms)    26.5        Maximum (ms)    23          Maximum (ms)    26.3
Timeouts    0               Timeouts    0               Timeouts    0

TC0686JZ swDAI12 no QoS     TC0686JZ swDAI12 QoS (18)   TC0686JZ swDAI12 QoS (46) Priority
More then 1ms   2507        More then 1ms   2891        More then 1ms   746
More then 2ms   865         More then 2ms   1012        More then 2ms   385
More then 3ms   150         More then 3ms   894         More then 3ms   41
More then 4ms   106         More then 4ms   64          More then 4ms   19
More then 5ms   87          More then 5ms   73          More then 5ms   34
Average (ms)    0.866       Average (ms)    0.736       Average (ms)    0.679
Maximum (ms)    48.5        Maximum (ms)    59.3        Maximum (ms)    27.9
Timeouts    1               Timeouts    0               Timeouts    1

TC0868KD swDAI08 no QoS     TC0868KD swDAI08 QoS (18)   TC0868KD swDAI08 QoS (46) Priority
More then 1ms   3145        More then 1ms   1010        More then 1ms   406
More then 2ms   1095        More then 2ms   171         More then 2ms   154
More then 3ms   145         More then 3ms   134         More then 3ms   27
More then 4ms   63          More then 4ms   62          More then 4ms   11
More then 5ms   70          More then 5ms   43          More then 5ms   27
Average (ms)    0.737       Average (ms)    0.717       Average (ms)    0.703
Maximum (ms)    43.7        Maximum (ms)    40.3        Maximum (ms)    55.7
Timeouts    1               Timeouts    1               Timeouts    2

我们总是每50毫秒做一次1小时的ping测试,也就是每秒20坪,也就是72,000坪/小时。平均水平对我们来说很好,也许这一点不能再改进了。但是困扰我的是我们无法摆脱的最大值,即使优先级队列被激活了。我们的配置中有遗漏什么吗?我唯一的解释是,延迟来自终端设备。我们交叉引用这些值来查看,如果服务器有一些负载,导致所有的ping在同一时间被延迟,但事实并非如此。我们在所有交换机上使用IOS版本15.2(2)E7。谢谢你看了看这个长柱子。

EN

回答 1

Network Engineering用户

回答已采纳

发布于 2019-03-25 13:16:36

正如已经评论过的那样,QoS只能在拥塞的情况下塑造您的流量--它可以优先处理一些流量,但它不能使您的网络更快。减少空闲延迟的唯一方法是在硬件中使用更快的设备或更少/更短的链接。

换句话说,QoS使您能够以(理想情况下)空闲延迟转发高优先级流量,即使在出现拥塞时也是如此。在带宽充足的情况下,QoS没有什么意义。

然而,500μs不应该是一个问题,跨越四个交换机-一个不错的开关范围从2到5μs跨越千兆位链接。再加上.5μs每100米电缆(铜和纤维不重要)。添加1-1.5μs为10 10GBASE链接.

在您的场景中,最有可能导致延迟的原因是虚拟主机。我发现ESXi上的Windows在物理网卡、vSwitch和vNIC上至少有50μs的额外延迟。您可以通过使用半虚拟化的vNIC (VMXNET)来稍微降低这个值,而不是使用虚拟的E1000之类的。(不过,我们要离开话题了。)

但是,您应该注意,您不能使用ping度量延迟。这是一个常见的误解,但是ICMP处理的优先级往往很低,以至于ping显示的数字比实际要高得多。因此,ping值(或多或少)显示了延迟的上限--这通常没有多大帮助。

相反,您应该监视TCP或类似参数中的RTT值。对于真正准确的值,您需要使用昂贵的设备(或非常精细的实验室设置)。

票数 4
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/57973

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档