arXiv:2610.11875v1 Announce Type: new Abstract: Commercial on-device network operating systems (NOSes) run complex control planes in production routers and switches, where configuration update tasks are executed by multiple loosely coupled components through asynchronous message passing. Such executions are prone to race conditions: the same ordered input commands may produce different outcomes w
NosRacer is a dynamic analysis framework designed to detect race conditions in industrial-grade on-device network operating systems (NOSes), specifically addressing configuration update tasks in production routers and switches. It utilizes a two-phase approach: a concentration phase reduces analysis scope by identifying interacting components and crucial state variables, followed by a perturbation phase that proactively disrupts message asynchrony to expose race-condition-exposing interleavings.
Integrated into a commercial NOS under active development, NosRacer achieved 66% precision and detected 21 severe bugs (15 new, 6 known) across five key control-plane components, with all confirmed issues subsequently fixed. The framework maintains a detection overhead of below 10%, demonstrating that dynamic race detection can be practical for large-scale systems with over 100 million lines of code.
NosRacer addresses a reliability problem in commercial on-device network operating systems (NOSes) used by production routers and switches. In these systems, the control plane is often implemented as a set of loosely coupled components that coordinate through asynchronous message passing. Configuration-update tasks can therefore involve multiple concurrent handlers, shared state, and nondeterministic message ordering. The paper focuses on the resulting race conditions: even when an operator issues the same ordered sequence of input commands, different execution interleavings may produce different outcomes, such as inconsistent device state, failed updates, or divergent behavior across components.
The key contribution is a dynamic detection approach for these race conditions in on-device NOS environments. Rather than relying solely on static analysis or source-level model checking, NosRacer is positioned to observe and analyze actual control-plane executions, identifying order-sensitive interactions among concurrent tasks and asynchronous messages. Its central insight is that many NOS bugs are not simply caused by malformed inputs, but by nondeterministic scheduling and message-delivery effects that make otherwise valid configuration sequences behave inconsistently. This makes the work especially relevant to complex, partially proprietary network operating systems where white-box reasoning is difficult.
This matters because routers and switches are foundational infrastructure: control-plane races can lead to configuration drift, inconsistent forwarding state, failed upgrades, outages, and potentially exploitable security weaknesses. Dynamic detection is particularly valuable for production NOSes, where bugs may be rare, timing-dependent, and hard to reproduce in testing. By exposing which concurrent tasks and message-passing interactions create nondeterministic behavior, NosRacer provides a practical path toward debugging, validating, and hardening the control planes of real network devices.