Configuring Bidirectional Flow Control
Context
Flow control prevents packet loss caused by network congestion. If network congestion occurs on the local device after flow control is configured, the local device sends a message to the remote device, requesting the remote device to temporarily stop sending packets. After receiving the message, the remote device temporarily stops sending packets to the local device regardless of the interface working rate. In this case, the device can receive and send pause frames.
- GE1/0/1 of SwitchA and GE1/0/2 of SwitchB are connected, and their negotiation rate is 1000 Mbit/s. The two interfaces send data packets to each other at the rate of 1000 Mbit/s.
- The outbound interface Eth2/0/3 of SwitchB provides a maximum transmission rate of only 100 Mbit/s. When congestion occurs during packet forwarding, SwitchB caches the received packets. As the cached packets accumulate, Eth2/0/3 cannot forward all the packets due to forwarding capability limitations, and packet loss will occur.
- After flow control is configured on GE1/0/1 of SwitchA and GE1/0/2 of SwitchB, GE1/0/2 sends a Pause frame to GE1/0/1, requesting GE1/0/1 to temporarily stop sending packets. After receiving the Pause frame, GE1/0/1 stops sending packets to GE1/0/2 within the period specified in the Pause frame. If the congestion persists, GE1/0/2 continues to send Pause frames to GE1/0/1.
- Eth2/0/3 continues to send cached data packets until the congestion is eliminated.
- After the congestion is eliminated, SwitchB stops sending Pause frames to SwitchA. SwitchA then continues to send data packets to SwitchB at the rate of 1000 Mbit/s.
If the remote device does not support auto-negotiation, you can configure flow control on the local and remote devices. If both the local and remote devices support auto-negotiation, you can configure flow control auto-negotiation on the two devices. The local device then negotiates with the remote device to determine whether to enable flow control based on the network congestion status.
Only the switches equipped with the SRUHX1, BC series cards, and the last twelve XGE interfaces on the ES1DAS24SX2S, ES1D2X48SX2S, and EH1DAS24SX2S cards do not support bidirectional flow control.
For details about Ethernet interfaces supporting the flow control function, see Licensing Requirements and Limitations for Ethernet Interfaces.
Flow control and flow control auto-negotiation cannot be concurrently configured on Ethernet interfaces.
Flow control auto-negotiation takes effect only when configured on interfaces at both ends of a link.
When an interface works in half-duplex mode, flow control does not take effect on the interface.
On X1E series cards, flow control takes effect on inbound interfaces only after you run the undo qos traffic-manage enable command on outbound interfaces. Flow control takes effect only for known unicast packets.
On the ES0DG48TFA00 and ES0DF48TFA00 cards, if interfaces 0 to 23 work as inbound interfaces (or outbound interfaces) and interfaces 24 to 47 work as outbound interfaces (or inbound interfaces), flow control auto-negotiation does not take effect on these interfaces.