In this article
Port activity establishes a state, not the expected negotiated width and speed; preserve the decoded capability and the actual link values.
Link up is an incomplete repair criterion
A replaced cable returns an InfiniBand port to active state, and the maintenance ticket is closed. The next training job still runs below its prior performance. A link can become usable without negotiating the expected combination of width and speed. This possibility requires specific link observations, not an assumption that every active port supplies its nominal adapter capacity or that the replacement part must be defective.
Read state and capacity separately
The ibv_query_port contract exposes logical state, physical state, active width and active speed as distinct attributes. Preserve the returned raw fields and their supported interpretation. State answers whether the port is in a particular operating condition; width and speed describe different negotiated properties. A successful query or an active indication is not a substitute for comparing those properties with the qualified design for the actual connected ports.
Do not truncate newer speed information
The same reference includes active_speed_ex and documents using the legacy active_speed when the extended value is absent. A monitoring integration that reads only an older field can misrepresent a newer link. Conversely, treating raw encoded values as literal rate units can produce invented bandwidth. Use a decoding implementation matched to the installed library and hardware generation, and retain the original fields so a later decoder correction does not require reconstructing missing evidence.
Verify both ends of the intended link
Map the host port to the corresponding switch port using stable identities. The iblinkinfo reference describes fabric-link inspection with explicit local adapter and port selection and scoped scans. Compare both endpoints’ observations, expected cable/module compatibility and change history. Automatic diagnostic-port selection can inspect another active fabric. A host label alone is insufficient when a node has several ports, and a switch inventory slot is not proof that the training ranks use that link.
Acceptance includes useful communication
An authorized isolated post-maintenance check should preserve the expected negotiated width and speed, absence of relevant new error evidence and correct transfers for the intended endpoints. Compare the same bounded operation before and after the intervention when a baseline exists. If negotiated values are correct but the job remains slow, investigate routing, congestion and host placement separately. Do not keep replacing cables solely because a collective is slower; link state is one causal boundary, not the complete application path.
Bound the capacity claim
Even the expected width and speed do not guarantee payload throughput, aggregate node bandwidth or an application latency objective. Encoding, protocol work and competing resources remain outside this simple state check. The fabric qualification article places links within complete serving operations, while counter interpretation prevents generic drop totals from becoming cable diagnoses. A defensible maintenance result states which link negotiated which properties and what communication was actually accepted, rather than reporting that an active flag proves full performance.
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.