Configuring Switches
To configure a lossless network, you need to configure switches. This section uses the HUAWEI CE6863-48S6CQ switch as an example to describe how to execute a flow control policy.
- Log in to the switch and enable priority-based flow control (PFC).
1 2 3 4 5
system-view dcb pfc priority 0 commit quit
- Check whether PFC is enabled.
1display dcb pfc-profile
If 0 is returned, the configuration in 1 takes effect.

- Configure Explicit Congestion Notification (ECN).
1 2 3 4 5
system-view drop-profile ecn color green buffer-size low-limit 247520 high-limit 18000000 discard-percentage 100 commit quit
- Check the ECN profile.
1display drop-profile ecn
If the following information is displayed, the configuration in 3 takes effect.

- Configure flow control for each traffic interface. A 25GE interface 1/0/5 is used as an example.
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
- Check whether the configuration takes effect.
1 2
interface 25GE 1/0/5 display this
If the information in 5 is returned, the flow control is configured.