配置交换机

流控策略(Flow Control)是为了避免数据包的丢失和网络拥堵而进行的一种机制,尤其是在高带宽、低延迟的环境中。配置流控策略可以提高网络的可靠性和稳定性,特别是对于一些关键应用和无损网络环境。为了配置无损网络,需要配置交换机。本文以HUAWEI CE6863-48S6CQ的交换机为例,执行流控策略。

  1. 登录交换机,设置PFC(Priority-based Flow Control)译文优先级。

    1
    2
    3
    4
    5
    system-view
    dcb pfc
    priority 0
    commit
    quit
    

  2. 查看PFC优先级使能状态。

    1
    display dcb pfc-profile
    

    命令返回0表示1配置成功。

  3. 配置ECNExplicit Congestion Notification

    1
    2
    3
    4
    drop-profile ecn
    color green buffer-size low-limit 247520 high-limit 18000000 discard-percentage 100
    commit
    quit
    

  4. 查看ECN。

    1
    display drop-profile ecn
    

    命令返回如下信息,表示3配置成功。

  5. 为每个流量端口配置流控,此处以25GE 1/0/5端口为例。

    1
    2
    3
    4
    5
    6
    7
    interface 25GE 1/0/5
    qos queue 0 wred ecn
    qos queue 0 ecn
    dcb pfc enable mode manual
    dcb pfc buffer 0 xoff static 1500 cells
    commit
    quit
    

  6. 查看端口流控配置是否成功。

    1
    2
    interface 25GE 1/0/5
    display this
    

    命令返回5中的配置信息,则表示端口流控配置成功。