100mb 电路的 QoS

网络工程 思科 服务质量
2021-07-07 21:10:11

运营商给了我 102: 80/10/10 80% RT 的 COS 配置文件,用于新的 100mb 电路。我已将以下内容编译为我的 QoS 策略映射和带宽配置。

interface GigabitEthernet0/0
 speed 100
 max-reserved-bandwidth 100
 service-policy output ***

policy-map ***
class voice
  priority percent 80
  set ip dscp ef
class priority1
  bandwidth remaining percent 16
  set ip dscp af31
class priority2
  bandwidth remaining percent 2
  set ip dscp af21
class class-default
  fair-queue

我对“剩余带宽”的性质有点困惑,我理解的方式如下;

class voice
  priority percent 80 = **80mbs**
  set ip dscp ef
class priority1
  bandwidth remaining percent 16 = **3.2mbs, or 16% of the 20mb remainder**
  set ip dscp af31
class priority2
  bandwidth remaining percent 2 = **0.336mbs, or 2% of the 16.8mb remainder**
  set ip dscp af21
class class-default = **16.46mbs, aka "whatever is left"**
  fair-queue

我不正确吗?

2个回答

您对“剩余带宽”的语义是正确的,但 IOS 中的数字略有不同。IOS 默认只允许 QoS 预留 75% 的带宽,可以通过max-reserved-bandwidth进行调整

这意味着在您的示例中,为语音类保留的带宽约为 60%,而“剩余带宽”将其余部分切碎。

如链接中所述,IOS > 15.0 和 IOS-XE 略有不同。

class voice
  priority percent 80
  set ip dscp ef
class priority1
  bandwidth remaining percent 80
  set ip dscp af31
class priority2
  bandwidth remaining percent 10
  set ip dscp af21
class class-default
  fair-queue

以上实际上是正确的配置。您正在寻找 80mbs、16mb、2mb 和 2mb Best Effort。

剩下的 20mbs 的 80% 是 16mbs。这为优先级 2 和尽力而为剩下 4mbs。