TECHNOLOGY

Resilient nexthop timers trade stability against rebalancing

In this article
THE QUICK TAKE

Resilient hashing minimizes disruption; removing a next hop or expiring an imbalance timer can still move traffic from busy buckets.

A resilient group still moves an established flow

A long-lived transfer changes path after a nexthop weight update, despite the group being labeled resilient. The label describes an algorithm intended to minimize disruption, not a permanent path reservation for every connection. Bucket activity, desired weight distribution and the allowed duration of imbalance determine when movement can occur. A removed next hop imposes another unavoidable boundary: its buckets cannot continue forwarding through a member that no longer exists.

Follow the indirection layer

The kernel resilient-group documentation describes hashing traffic into buckets that refer to constituent next hops. This separates flow hashing from assignment of the next-hop set. Weight changes alter how many buckets each member should receive. The algorithm can move eligible buckets instead of recomputing a continuous hash range for every member, reducing disruption. Several flows can share a bucket, so a bucket is not a uniquely identified application connection.

Idle is measured at the bucket

Every forwarding hit updates the bucket’s last-used time. The idle timer determines when the bucket can be treated as idle and reassigned from an overweight member. Application silence does not establish bucket idleness if another colliding flow keeps using it. Conversely, a flow that pauses long enough can lose its previous mapping without being closed. Preserve the bucket population and activity definition rather than assuming connection lifetime and bucket activity are equivalent.

The imbalance timer changes the guarantee

The documentation permits leaving a group imbalanced until idle buckets appear, potentially indefinitely, when forced balancing is disabled. A nonzero unbalanced timer limits tolerated imbalance and can allow moving busy buckets. Buckets whose member was removed also require reassignment. The iproute2 nexthop reference exposes the corresponding group parameters and bucket observations. Record the effective timers, member weights and event type so a weight update is not analyzed as if it had the same constraints as member deletion.

Acceptance includes the transition

In an approved isolated fixture, compare a busy flow, a paused flow and a controlled member or weight change. Preserve bucket mappings before and after, supported hardware-offload state where applicable and correct application progress. A driver can contribute activity information or affect non-forced migration, so software intent alone does not certify the hardware transition. Acceptance should demonstrate the selected stability/rebalance policy, with reordering or connection outcomes checked rather than assuming that unchanged address endpoints mean an unchanged physical path.

Keep the policy claim bounded

Avoid promising that all established flows remain pinned or that weights immediately equal measured byte shares. Traffic sizes and collisions can make bucket balance differ from bandwidth balance. The routing comparison article preserves performance and operating tradeoffs, while counter accounting explains why aggregate totals cannot reconstruct individual paths. Report the configured timers, observed bucket movement and accepted workload separately. Resilience is a qualified reduction in disruption, not an exemption from topology-change testing.

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