Home / Learn / AI Networking / Lossless Ethernet and PFC Explained
On this page
Why Ethernet drops packetsData center bridgingHow PFC worksHeadroomThe problems PFC bringsMitigationsPFC and explicit congestion notificationThe debateHow newer designs handle itWhy this matters for AI clustersFor chip and system designersCommon questionsRelated guidesLossless Ethernet and PFC Explained
Lossless Ethernet uses priority flow control to pause senders before buffers overflow. Ordinary Ethernet drops packets when a switch runs out of buffer space. Priority flow control, or PFC, lets a receiver tell its neighbor to stop sending a particular class of traffic until there is room again. It was introduced so that loss-sensitive traffic, such as storage and RDMA, could run over Ethernet. It works, and it brings side effects that have made it a subject of long debate.
Why Ethernet drops packets
Ethernet was designed as a best-effort network. A switch receives packets, queues them and forwards them. If packets arrive for an output port faster than they can be sent, the queue grows. When its memory is exhausted, further packets are discarded.
For most traffic this is fine. Protocols such as TCP notice the loss, resend and slow down.
Some traffic cannot tolerate it well.
- Storage protocols designed for dedicated lossless storage networks.
- RDMA. The transport used for RDMA over Ethernet was inherited from InfiniBand, which does not drop packets. In its classic form it recovers from loss very inefficiently.
Data center bridging
To let such traffic share an Ethernet network, a set of enhancements was standardized under the name data center bridging.
| Component | Purpose |
|---|---|
| Priority flow control | Pauses a traffic class to prevent buffer overflow |
| Enhanced transmission selection | Allocates bandwidth among traffic classes |
| Data center bridging exchange | Lets neighboring devices negotiate their settings |
| Congestion notification | Signals congestion back to senders |
Priority flow control is the one that makes the network lossless.
How PFC works
Ethernet traffic can be tagged with one of eight priority levels. Each has its own queue in a switch.
- A switch or adapter monitors how full each priority’s buffer is.
- When the buffer for a priority crosses a threshold, the device sends a pause frame to its upstream neighbor, naming that priority.
- The neighbor stops transmitting traffic of that priority. Other priorities keep flowing.
- When the buffer drains below a lower threshold, a resume is sent.
An earlier mechanism paused an entire link. PFC is finer-grained: only the affected class stops.
Headroom
A pause does not take effect instantly. The pause frame takes time to reach the neighbor, the neighbor takes time to react and packets already on the wire keep arriving.
So the pause must be triggered while there is still room for everything in flight. That reserved space is called headroom. It depends on link speed and cable length. Faster and longer links need more. Setting it too small causes drops. Setting it too large wastes buffer memory.
The problems PFC brings
Head-of-line blocking. A pause stops all traffic of that priority on the link, including flows going to destinations that are not congested. One slow receiver holds up unrelated traffic.
Congestion spreading. When a switch is paused, its own buffers fill, and it pauses the switches feeding it. The effect moves backward through the network, hop by hop, sometimes reaching servers far from the original problem.
Pause storms. A faulty adapter or switch that sends pause frames continuously can freeze traffic over a wide area.
Deadlock. If pauses form a cycle among switches, each waits for another to resume, and traffic stops permanently until someone intervenes. This can happen when routing changes create loops in the dependency between buffers, even in topologies that are normally safe.
Unfairness. Flows that are not responsible for congestion are penalized along with those that are.
Configuration burden. Priorities, thresholds and headroom must be set consistently on every device. Mistakes are easy to make and hard to find.
Limited classes. In practice, only one or two priorities are made lossless, which restricts how traffic can be separated.
Mitigations
Operators have developed practices to live with PFC.
- Keep it as a last resort. Use congestion control to hold queues short, so pauses are rare.
- Watchdogs. Switches detect a queue that has been paused too long and discard its traffic or ignore pauses, breaking a storm or deadlock.
- Restrict the lossless domain. Enable PFC only where it is required.
- Topology and routing rules that avoid cyclic dependencies.
- Careful buffer tuning.
- Monitoring of pause frames.
PFC and explicit congestion notification
The two are used together and do different jobs.
| Priority flow control | Explicit congestion notification | |
|---|---|---|
| Scope | One link | End to end |
| Trigger | Buffer nearly full | Queue above a marking threshold |
| Action | Neighbor stops sending | Sender reduces its rate |
| Speed | Immediate | Takes a round trip |
| Purpose | Prevent loss | Prevent congestion |
The marking threshold is set lower than the pause threshold. The intent is for senders to slow down before a pause is ever needed. When congestion control works well, PFC rarely fires.
The debate
Whether data center networks should depend on PFC has been argued for years.
Operators of some of the largest RDMA networks have published accounts of running PFC successfully at scale, along with the problems they encountered and the safeguards they built. Others have concluded that the risks and operational effort are too high and have looked for ways to do without it.
The alternative is to make the transport tolerate loss.
- Selective retransmission. Resend only what was lost, instead of everything after it. This makes occasional drops cheap.
- Fast loss detection. Packet trimming lets a switch forward just the header of a packet it cannot deliver, so the receiver knows immediately.
- Better congestion control, so drops are rare.
With these, a network can run without PFC, or with it enabled only as a safety measure.
How newer designs handle it
Improved RoCE. Current adapters support selective retransmission, and some deployments run without PFC.
Ultra Ethernet. Its transport is designed not to need a lossless network. It combines per-packet multipath, modern congestion control, trimming and selective retransmission. It also defines optional link-level features, retry and credit-based flow control, for those who want them.
Credit-based flow control. Where losslessness is wanted, credits are an alternative to pauses. The receiver grants the sender permission in advance for a certain amount of data. InfiniBand works this way, as do scale-up interconnects. Credits avoid the headroom problem, since a sender never transmits what the receiver cannot accept.
Why this matters for AI clusters
AI back-end networks run RDMA at very high speeds with traffic that arrives in synchronized bursts. That is a demanding environment for PFC. Bursts push buffers toward their thresholds, and a pause that spreads can stall many accelerators at once.
Because a training step waits for its slowest transfer, the consequences of head-of-line blocking are magnified.
For chip and system designers
A network interface for these environments generally needs to:
- Support PFC correctly, including responding to pauses within the required time and generating them, since much deployed infrastructure uses it.
- Support explicit congestion notification and the associated congestion control.
- Implement selective retransmission so that it can operate without lossless guarantees.
- Size its buffers with headroom in mind.
- Be ready for newer transports that do not rely on pauses.
Interoperability with switches from several vendors is essential, and behavior under pause conditions is a common area of testing.
Common questions
What does PFC stand for?
Priority flow control. It is an Ethernet mechanism that pauses traffic of a given priority on a link to stop a buffer from overflowing.
Is lossless Ethernet completely free of packet loss?
It prevents loss from buffer overflow when correctly configured. Packets can still be lost through bit errors, failures or misconfiguration.
Is PFC required for RDMA over Ethernet?
It has traditionally been used to ensure good performance. With selective retransmission and better congestion control, some networks now run RDMA without it, and newer transports are designed not to need it.