﻿# Adaptive routing needs compatible endpoint placement semantics

Qualify adaptive routing across the subnet manager, switch policy, service level and endpoint out-of-order support rather than one library flag.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/ib-adaptive-routing-ordering/
Language: en

## One enabled option cannot describe the fabric

A job requests adaptive routing and starts successfully, so the operator reports that its traffic now uses several congestion-sensitive paths. Startup alone is insufficient. Routing requires compatible fabric policy and endpoint receive behavior, and a best-effort option can tolerate unavailable support. Qualify the complete contract for the actual transport and service level instead of treating a library environment variable as evidence of switch behavior.

## Path diversity changes arrival behavior

The [NVIDIA out-of-order placement reference](https://networking-docs.nvidia.com/mlnxofedswum/583070lts/out-of-order-ooo-data-placement) explains that packets for a QP can arrive through different paths and be placed into host memory out of order when the supported feature is used. Its support is limited to documented adapter and transport combinations. Packet placement is not application consumption or completion. Code that reads a destination while a transfer remains active cannot infer a safe data-consumption order from the order in which the sender issued individual packets.

## Match endpoint and fabric prerequisites

The [HPC-X UCX guide](https://networking-docs.nvidia.com/hpcxum/225/unified-communication-x-framework-library) states that adaptive routing must also be enabled in the subnet manager and switches, and identifies compatible UCX transports with out-of-order support. Preserve the actual adapter, firmware, transport, routing policy and selected service level. An available route set or supported adapter family does not prove that the selected service level permits adaptive routing. A topology policy and an endpoint setting can each be correct locally yet incompatible together.

## Distinguish required from opportunistic support

The guide documents strict and best-effort enablement behavior rather than one universal success signal. A request that fails when support is unavailable provides different evidence from one allowed to continue without the feature. Record the effective setting and selected service level along with initialization diagnostics. Do not interpret a successful best-effort run as proof of adaptive routing, or use its completion time as a measurement of a feature whose use was never established.

## Test correctness before assigning benefit

Within an approved isolated configuration, verify payload integrity and completed operations across the relevant message-size distribution and competing traffic. Capture enough supported endpoint and fabric evidence to establish the intended eligible path. Compare against a documented baseline while holding rank placement and accepted work constant. Routing diversity may improve some congestion patterns while adding different operational behavior; this proposed procedure supplies no universal speedup. Any observed benefit belongs to the tested combination, not the abstract name of a routing technique.

## Preserve the remaining boundaries

Out-of-order packet placement does not relax application dependencies, memory registration lifetime or GPU visibility requirements. It also does not make static forwarding-table snapshots a trace of every selected packet path. The [routing comparison article](/journal/ibm-roce-path-pinning-ecmp-collective-metric-tradeoffs/) keeps aggregate metrics conditional, while [completion evidence](/journal/guide-net-rdma-completion/) establishes when work may be treated as finished. Acceptance should identify fabric permission, compatible endpoint handling, effective transport selection and correct useful work separately. If one stage is unobservable, state that limitation instead of silently promoting a requested option into verified operation.
