Home / Glossary / Packet Spraying

On this pageIn more detailWhy it mattersRelated termsRead more

Packet Spraying

Packet spraying is a load-balancing technique in which the packets of a single data flow are distributed across many network paths at once, instead of all following one path.

In more detail

Data center networks provide many equal routes between any two points. The traditional way to use them, equal-cost multipath routing, selects a path for each flow by hashing fields in the packet header. All packets of a flow follow the same path, which keeps them in order.

That works well when there are thousands of small flows. AI training produces the opposite: a small number of very large flows. When two of them happen to hash to the same link, that link is overloaded while others sit idle.

Packet spraying makes the choice per packet. Each packet of a flow can take a different path, so the load is spread evenly whatever the number of flows. The sender, or the switches, can also steer packets away from paths that show congestion.

The consequence is that packets arrive out of order, since paths differ slightly in delay. Older transports interpret that as loss and slow down. Spraying therefore needs a transport designed to accept packets in any order.

Why it matters

Even use of every path raises the effective capacity of the network and removes a major source of delay. That matters in distributed training, where each step waits for its slowest transfer.

Packet spraying is a core feature of Ultra Ethernet Transport. It marks a clear difference from RoCE, which keeps each flow on a single path.

Related terms

Read more