In a nutshell, flow control lets a receiver ask its neighbor to stop sending for a short time. Defined in IEEE 802.3 Annex 31B (Wikipedia). The idea itself is old, RFC 59 from 1970 was already arguing about “cease on link” for ARPANET.

Some quick facts :

  • receiver buffers get full, it sends a PAUSE frame to the link partner
  • EtherType 0x8808, destination 01:80:C2:00:00:01
  • pause time in quanta of 512 bit times, 0 means resume
  • one hop only, switches don’t forward PAUSE
  • it stops the whole link, no idea about priorities or QoS

Where it’s used :

Mostly storage, iSCSI and NAS. The array or host sends PAUSE and the switch holds the frames for a moment, so the array doesn’t drop and TCP doesn’t go into retransmits.

Why rx on, tx off on the switch :

  • rx on - switch listens when the endpoint is overloaded and buffers for it
  • tx off - if the switch sends PAUSE, the sender stops everything on that link, also traffic for other ports that are fine
  • on switch to switch links it just pushes congestion backwards, keep it off there
  • switch can drop and TCP will handle it, pausing the whole link usually hurts more

Check on Linux :

ethtool -a eth0
ethtool -A eth0 rx on tx on

Watch the pause counters on both sides, a broken NIC can send PAUSE nonstop and stall the port.