Breaking02 / IT
Meta open-sources MetaRoCE for AI training networks
The implementation uses the Apache-2.0 licence and comes with a tool that generates traffic for transport tests.
Meta has released the software implementation of MetaRoCE, an Ethernet transport protocol that retransmits lost packets on AI training networks, in its official GitHub repository.
The repository also offers the protocol specification as a download. The implementation code uses the Apache-2.0 licence, and the repository contains libsoftmetaroce, the software transport implementation, and rdma_gen, a tool that generates traffic for transport tests.
Meta said it designed the protocol to let network interface cards handle transport on training networks where thousands of AI accelerators exchange data. MetaRoCE operates without priority flow control, which lets switches pause traffic by priority. The receiver selectively acknowledges packets that arrive, and the sender retransmits the missing ones.
A single connection can carry several message streams, each with its own sequence numbers and completion order. When packets arrive out of order across different paths, the receiver writes the data directly to the position specified in each packet and issues completion notifications in stream order. A delay in one stream leaves the others free to continue.
The sender spreads packets from the same connection across several paths, tracking each path’s transmission limit and acknowledgements separately. It can distinguish a path that stops responding from a connection that stops responding, and shifts traffic to the remaining paths if one fails. When several senders converge on one receiver, the receiver communicates target sending rates to reduce congestion.