QoS带宽计算

网络工程 思科 服务质量 带宽 服务质量
2021-07-08 04:17:06

请解释:

我有两个带有 QoS 的路由器。。两个面向 WAN 的接口都有一个具有相同值 (100000) 的带宽命令,但优先级队列(还有其他保留)为这个队列计算了不同的 kbps 数量?我会认为当带宽相同时,每个队列的 kbps 计算结果应该相同吗?

第一个路由器(我们称之为路由器 a)位于主办公室,并与分支机构的 3 个其他路由器建立多点连接。总机实际带宽为300Mbit,分支机构实际带宽为100Mbit。我制作了一个 HQos 脚本来将主要的带宽调整为每个站点(父)的 100mbit,然后是 QoS 队列(子)。我将主带宽设置为 100Mbit,以确保它以正确的方式(例如每个站点 100mbit)计算带宽(全部以百分比表示)。我知道我可以使用严格的带宽量,但我想知道为什么这不能按照我认为应该的方式运行..

主路由器(A):

interface GigabitEthernet0/0
 description WAN
 bandwidth 100000
 ip address 172.16.2.1 255.255.255.0
 ip flow ingress
 ip flow egress
 ip ospf message-digest-key 1 md5 7 
 duplex full
 speed 1000
 service-policy output 300Mb-forward-qos
end



Service-policy output: 300Mb-forward-qos

Class-map: site1-100Mb-forward-qos (match-all)
  97350980 packets, 60719394859 bytes
  5 minute offered rate 1891000 bps, drop rate 0 bps
  Match: access-group name site1
  Queueing
  queue limit 64 packets
  (queue depth/total drops/no-buffer drops) 0/864/0
  (pkts output/bytes output) 97350116/60718176568
  shape (peak) cir 97000000, bc 388000, be 388000
  target shape rate 194000000

  Service-policy : forward-qos

    queue stats for all priority classes:

      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 148794/7659376

    Class-map: forward-qos-class-prec5 (match-all)
      148794 packets, 7659376 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: ip precedence 5
      Priority: 10% (2500 kbps), burst bytes 62500, b/w exceed drops: 0
      !^^^^^^^^^^^^^^^^^^^^^^^^

分行路由器 (B)

interface GigabitEthernet0/0
 description WAN
 bandwidth 100000
 ! ^^^^^^^^^^^^^^
 ip address 172.16.2.4 255.255.255.0
 ip ospf message-digest-key 1 md5 7 12480603150C02573E
 duplex auto
 speed auto
 service-policy output 100Mb-forward-qos
end



  Service-policy : forward-qos

    queue stats for all priority classes:

      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 3873239/716718654

    Class-map: forward-qos-class-prec5 (match-all)
      3873238 packets, 716718440 bytes
      5 minute offered rate 123000 bps, drop rate 0 bps
      Match: ip precedence 5
      Priority: 10% (5000 kbps), burst bytes 125000, b/w exceed drops: 0
      !^^^^^^^^^^^^^^^^^^^^^^^^
1个回答

无需在路由器 (A) 接口上放置带宽声明。如果您正在执行 H-QoS,那么您将在父策略上整形为 100Mb,而子策略则继承该整形值。

像这样:

policy-map parent
 class class-default
  shape average 100m
  service-policy child

policy-map child
 class EF
  priority percent 5

如果您将带宽声明放在物理接口上,您就会搞砸 H-QoS 计算。分支机构没有问题,因为它们没有运行 H-QoS