TECHNOLOGY

Match an RDMA GID to the intended network path

In this article
THE QUICK TAKE

Resolve a RoCE GID index to its current port, value, type and netdev before treating it as the intended RDMA network path.

A distributed worker copies a GID index from another machine and selects the wrong RoCE path. The index is a position in a particular port’s current table, not a portable network identifier. Inspect the complete entry, including GID value, type and associated network device, before using it to explain connectivity between inference ranks.

Query the selected port

Preserve RDMA device identity, port and selected index together. The extended verbs query returns an entry with those coordinates and associated metadata, or a documented error. An index within the table’s range can still contain no data. Do not replace a failed query with an all-zero value and proceed as if a valid source path had been established.

Distinguish value from type

RoCE entries can share a GID value while carrying different RoCE types. Selecting only by the displayed address can therefore miss the transport-mode distinction. Read the type explicitly and compare it with the intended peer and fabric. A copied numerical index can select another type on the replacement host even when a familiar address appears elsewhere in its table.

Resolve the network association

The entry’s network-interface index identifies its associated netdev when one exists. Match it to the actual Ethernet or VLAN interface and address configuration in the relevant environment. NVIDIA documents population of RoCE GID entries from associated Ethernet IP configuration. Retain lower-link and VLAN relationships rather than assuming the RDMA device’s administrative name directly identifies the desired data network.

Preserve connection setup behavior

Connected queue-pair setup and connection-management libraries can choose source GIDs through different interfaces. Establish which path the application uses before assuming a manually selected setting controls it. A successful table query only reports local metadata; it does not validate peer reachability, switch configuration, MTU compatibility or the application’s actual chosen queue-pair address vector.

Revalidate after network changes

Repeat the entry query after address, VLAN or device changes and verify the application’s selected path in an isolated equivalent. Record the complete entry and connection outcome, not just the remembered index. A useful result explains why that source GID matches the intended network. It does not make the index a permanent cross-host contract or establish end-to-end RDMA performance from local table membership alone.

Primary references

rdma-core Extended GID Entry Query.

NVIDIA DOCA RoCE GID Table and Mode Selection.

iproute2 Link and VLAN Configuration.

Related reading: RoCE vs InfiniBand for LLM serving: qualify the full fabric; vLLM tensor-parallel-size: When One Model Needs Multiple GPUs.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles