有人能检查一下我的基本思科QoS配置吗?我有一个通过AT&T 20 an线路连接的小型远程站点,该线路通过IPSec隧道进行通信。
class-map match-any QoS-Voice
match ip dscp ef
match ip dscp cs5
match ip dscp cs3
match ip dscp af41
policy-map high-priority
class Qos-Voice
priority percent 25 5000
class class-default
fair-queue
interface Tunnel1
description Tunnel 2 IR
bandwidth 20000
ip address x.x.x.x x.x.x.x
interface FastEthernet0/0
description PX Corporate
bandwidth 100000
ip address x.x.x.x x.x.x.x
service-policy output high-priority
interface FastEthernet0/1
description ATT WAN
bandwidth 100000
ip address x.x.x.x x.x.x.x
service-policy output high-priority如果我做了一个show policy-map interface f0/0,我可以看到来自这些类的数据包,但我仍然看到我的系统上有很大的抖动,所以我想我出了点问题。这条隧道的另一边是一模一样的。有一个连接到交换机的Cisco路由器,它的配置完全相同。
作为核心层工作的交换机是第三层的Enterasys交换机,它们正在优先处理第二层的通信量。
发布于 2017-01-06 19:54:06
只是想回过头来标记正确的答案,解决了我的问题。原来我看到抖动的系统的MTU值为1440,我的Cisco路由器都设置为1400。一旦我降低了我的价值在1200范围内,一切都开始正常工作。
发布于 2016-10-11 16:51:29
QoS需要是全面的。您应该尽可能地标记接近源的通信量,例如在访问交换机上,以便您可以在网络上尽可能长时间地处理通信量。
我看不出你在哪里塑造广域网线路上的流量,也没有在隧道上排队。因为您的WAN接口没有100 Mb服务,所以您确实需要将接口设置为您所拥有的20 Mb服务。您正在对优先级队列使用百分比,但您使用的百分比来自100 Mb起点,而不是20 Mb实际值。
您不太可能需要在内部接口上排队,因为它比WAN快得多。
对于非EF (CS5,CS3,AF41) VoIP流量,您可能需要不同的队列。如果将较大的数据包大小放入VoIP的队列中,则会降低VoIP的级别。
您可以配置并运行IP以获取诸如抖动之类的真实数字。
您的分发交换机可能有一个真正的瓶颈,因为它们通过一个100 Mb接口连接到路由器。如果你不在那里排队,你就是在制造问题。您确实需要查看网络上的带宽超额订阅率,并且需要在发生这种情况的地方排队。
QoS需要是全面的。您应该尽可能地标记接近源的通信量,例如在访问交换机上,以便您可以在网络上尽可能长时间地处理通信量。
需要考虑的一件事是,您需要考虑数据包的大小。对于VoIP,有很多非常小的数据包,您需要将带宽调整为带宽的一个百分比。您可能希望开始大约85%,但您可以调整它以后,在您测试它。
我下面的应该是一个快速以太网广域网电路,真正的20兆。拿了85%的钱你就能赚到17 Mb了。这给了你15%的包开销。您可以调整百分比和队列大小,但我假设这是一个ISR路由器,因此我为该类型的路由器设置了实际的队列大小。
!***** QoS - Class Maps for Queuing Policy *****
class-map match-any QoS-Voice
match ip dscp cs4 cs5 ef
class-map match-any QoS-Video
match ip dscp af41 af42 af43
class-map match-any QoS-Control
match ip dscp cs3 af31 af32 af33 cs6 cs7
class-map match-any QoS-Medium
match ip dscp cs2 af21 af22 af23
class-map match-any QoS-Low
match ip dscp cs1 af11 af12 af13
!
!***** QoS - Queuing Policy *****
policy-map QoS-Tunnel-Out
description 20 Mb Tunnel
class QoS-Voice
priority percent 20
police cir percent 20 conform-action transmit exceed-action drop
class QoS-Video
bandwidth remaining percent 15
police cir percent 15 conform-action transmit exceed-action drop
class QoS-Control
bandwidth remaining percent 5
random-detect dscp-based
random-detect dscp 24 38 39
random-detect dscp 26 31 39
random-detect dscp 28 24 39
random-detect dscp 30 16 31
random-detect dscp 48 38 39
random-detect dscp 56 38 39
class QoS-Medium
bandwidth remaining percent 5
random-detect dscp-based
random-detect dscp 16 33 34
random-detect dscp 18 33 34
random-detect dscp 20 28 34
random-detect dscp 22 21 28
class QoS-Low
bandwidth remaining percent 5
random-detect dscp-based
random-detect dscp 8 8 13
random-detect dscp 10 20 21
random-detect dscp 12 17 21
random-detect dscp 14 13 21
class class-default
bandwidth remaining percent 50
random-detect dscp-based
random-detect dscp default 59 79
!
!***** QoS - Generic Traffic Shaping *****
policy-map QoS-Shaping-Out
description Shape WAN FE to 20 Mb
class class-default
shape average 17000000 68000
service-policy QoS-Tunnel-Out
!
interface Tunnel1
description Tunnel 2 IR
bandwidth 17000
ip address x.x.x.x x.x.x.x
service-policy output QoS-Tunnel-Out
!
interface FastEthernet0/0
description PX Corporate
ip address x.x.x.x x.x.x.x
!
interface FastEthernet0/1
description ATT WAN
bandwidth 100000
ip address x.x.x.x x.x.x.x
service-policy output QoS-Shaping-Out
!您应该在访问交换机上设置标记。上面的配置假设大多数通信量将是BE。您只想标记将被不同对待的流量,无论是高优先级还是低优先级。如果将批量类型的通信量(例如服务器备份通信量)标记为较低的优先级会更好.
默认情况下,思科交换机会将所有传入通信量记录到BE (默认),除非您在接口上专门配置信任。
如果有48个1GB端口进入交换机,并且交换机只有1GB的上行链路到发行版,那么您的订阅量是推荐值20:1的两倍以上。此外,如果有一堆接入交换机以1GB的速度进入分发版,但是到广域网路由器的链接只有100 Mb,那么您也必须在那里排队,否则您就会把您的QoS搞砸。你会受到很大的拥堵,这将导致很大的抖动。
https://networkengineering.stackexchange.com/questions/35696
复制相似问题