配置交换机

配套网卡DCQCN拥塞控制,交换机需要配置ECN水线。配置ECN水线属于交换机通用配置,本节是按Huarong FM8861交换机为例进行介绍。

配置参考

  1. 配置pfc和ecn。

    port link-type trunk

    port trunk allow-pass vlan 100 200

    qos buffer queue 0 shared-threshold dynamic 10

    qos buffer queue 1 shared-threshold dynamic 10

    qos buffer queue 2 shared-threshold dynamic 10

    qos buffer queue 3 shared-threshold dynamic 10

    qos queue 0 wred 100g

    qos queue 1 wred 100g

    qos queue 2 wred 100g

    qos queue 3 wred 100g

    qos drr 0 to 3

    qos queue 0 drr weight 25

    qos queue 1 drr weight 25

    qos queue 2 drr weight 25

    qos queue 3 drr weight 25

    qos queue 0 ecn

    qos queue 1 ecn

    qos queue 2 ecn

    qos queue 3 ecn

    dcb pfc enable mode manual

    dcb pfc buffer 0 xoff static 500 cells xon offset 250 cells hdrm 2000 cells

    dcb pfc buffer 1 xoff static 500 cells xon offset 250 cells hdrm 2000 cells

    dcb pfc buffer 2 xoff static 500 cells xon offset 250 cells hdrm 2000 cells

    dcb pfc buffer 3 xoff static 500 cells xon offset 250 cells hdrm 2000 cells

  2. 配置丢弃模板。

    color green buffer-size low-limit 100000 high-limit 18874080 discard-percentage 30

  3. 配置优先级。

    [~Switch]dcb pfc default

    [~Switch-dcb-pfc-default]dis this

    dcb pfc

    priority 0 to 3