arXiv:2610.36436cs.OSOct 2026

Manuscript Offprint

arXiv:2610.36436

USB Differentiated Service for Networked Cyber-Physical Systems

Anton Njavro, Rafiuddin Syed, Shriram Raja, Zhiyuan Ruan, Richard West

Anton Njavro

Boston University

Boston, USA

njavro@bu.edu

Rafiuddin Syed

Drako Motors

San Jose, USA

rafiuddin.syed@drakomotors.com

Shriram Raja

Boston University

Boston, USA

shriramr@bu.edu

Zhiyuan Ruan

Boston University

Boston, USA

zruan@bu.edu

Richard West

Boston University

Boston, USA

richwest@bu.edu

Abstract

Cyber-physical systems are increasingly complex, requiring high throughput, low-latency data processing across multiple cores and compute devices. Additional functional safety challenges dictate the need for high system availability in the presence of failures. Together, these requirements are addressed using a network of compute nodes across which data processing, control and functional safety tasks are distributed. A key challenge is how to address the service requirements of independent data flows, spanning a set of hosts and I/O devices.

In this paper, we show how to develop connectivity between hosts using a custom xDCI gadget driver that uses USB interrupters to differentiate the processing of separate data flows. Our solution is the first to handle both isochronous and bulk communication at USB 3.0 transfer rates, with predictable bus latencies down to the granularity of a 125 microsecond microframe, which is sufficient for many CPS control operations. We present an end-to-end solution that couples the predictable execution of user-level tasks with interrupt processing and data communication, so that multiple virtual connections are able to share a common bus. This work is not only applicable to host networking but also device I/O, which makes it arguably desirable for CPS scenarios requiring short-range communication, such as in vehicle control area networks or robotics.

Keywords: USB, xDCI, Cyber-Physical Systems, Real-Time Networks, I/O

ACM Reference Format:

Anton Njavro, Rafiuddin Syed, Shriram Raja, Zhiyuan Ruan, and Richard West. 2026. USB Differentiated Service for Networked Cyber-Physical Systems. In . ACM, New York, NY, USA, 15 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

Cyber-physical systems (CPS) couple computation to the physical world. Data processing pipelines span from sensors to actuators, and must keep pace with the physical processes under control. Modern CPS workloads push this pipeline beyond a single machine. High-rate sensors demand more processing than one node provides. Functional safety demands availability in the presence of failures, which requires redundant nodes. The result is a network of compute nodes among which sensing, control, and safety tasks are distributed. A sensing-to-actuation pipeline therefore interacts with both I/O devices and other hosts, and it needs low latency, high bandwidth communication at every stage.

Three interconnects dominate I/O and networking in cyber-physical systems. Table 1 summarizes their trade-offs. CAN is ubiquitous in CPS and well studied from a real-time standpoint. Its throughput, however, falls short of modern I/O. Even CAN XL, its fastest variant, is limited to data rates of 10–20 Mbit/s [5]. USB offers high throughput and dominates the I/O domain, but it was not originally designed to support host-to-host networking. Consequently, it has thus far mostly been resigned to consumer electronics. TSN provides real-time networking and is a comparatively recent technology, finding adoption in automotive and embedded systems. However, it is not commonly used for I/O device communication, so task pipelines spanning sensors, host processing nodes and actuators must bridge to other buses.

Recent work [34] showed how to use USB to bridge host networking and device I/O. That work was limited to using USB 2.0 bulk communication without differentiated service support for separate pipes sharing the same bus. This work extends the prior art to include differentiated services, based on multiple USB interrupters, for host-to-host and device-host communication. We build on USB, which already pairs high throughput with broad I/O adoption, and add the peer-to-peer networking it lacks.

Today, host networking and device I/O is split across two fabrics. For example, USB connects devices to a host, while Ethernet or CAN connects hosts to one another. Each fabric brings its own software stack, and traffic that crosses from one to the other must be bridged between them. The split adds cost, wiring, and software complexity. A single bus that serves both roles removes the bridging problem and

Table 1. Common interconnect technologies for cyber-physical systems and their principal trade-offs.

InterconnectProsConsUse case
CANUbiquitous in CPSLow throughputAutomotive, embedded
USBHigh bandwidth supportNo peer networking supportConsumer I/O
TSNReal-time networkingNo I/O supportAutomotive, factory automation

simplifies the stack. USB is the natural candidate, already being the bus of choice for high-rate CPS sensors such as cameras and LiDARs. Its signaling rate has grown to 5 Gbps at SuperSpeed and 40 Gbps in USB 4, comparable to dedicated network fabrics. We target short-range communication, as found in robots and vehicles, where a few meters of cable connect every node.

Two challenges stand in the way. The first is handling asymmetry, resulting from the master-slave nature of USB. A host operates as the bus master, ensuring a device only sends data when it initiates a transfer request. Nothing in this model lets two hosts communicate as peers. The second challenge is guaranteeing differentiated service. A consolidated CPS host carries independent flows with different requirements. For example, a camera stream needs sustained bandwidth, while a control flow needs bounded delay, and a file transfer require lossless communication. Commodity USB stacks funnel the completions of all flows through one path, so the service each flow receives is not ensured.

Prior work addresses these challenges separately. One line of work repurposes the USB Extensible Debug Capability (xDBC) as a host-to-host link [34, 55]. It unifies networking and device I/O on one bus, but it is limited to bulk transfers and offers no differentiated service. A second line of work provides interrupt-based differentiated service for USB device I/O [40]. It serves each flow through its own completion path, but it targets bulk transfers to USB 2 devices, not host-to-host communication. No existing system offers differentiated host-to-host communication over USB 3.x with both isochronous and bulk transfers.

This paper closes that gap. We present a real-time xDCI gadget driver for the Quest RTOS [9] that lets one machine appear to another as a USB device with a configurable number and type of endpoints. Isochronous endpoints carry periodic flows on a reserved schedule. Bulk endpoints carry reliable data at high throughput. On the host side, USB interrupters route each flow's completions to its own I/O VCPU, a bandwidth-preserving server, isolating the flow from everything else on the bus. Ours is the first system to use multiple USB interrupters to support host-to-host communication with both isochronous and bulk transfers at USB 3 rates. Bus latencies are predictable down to the 125μs125\mu \mathrm{s} microframe, which is sufficient for many CPS control operations.

This paper makes the following contributions:

  • A real-time xDCI gadget driver that provides host-to-host communication over USB 3.x with a configurable number and type of endpoints, including the frame alignment that isochronous service requires.

  • The integration of interrupter-based flow differentiation with Quest's I/O VCPU scheduling, extending differentiated service from device I/O [40] to communication between hosts.

  • An evaluation showing that isochronous and bulk flows share a bus while maintaining required service.

The rest of the paper is organized as follows. Section 2 motivates the use of USB in the context of a next-generation automotive E/E architecture. This is followed by a primer on USB, the Quest RTOS, and differentiated service. Section 3 presents the design and implementation of the gadget driver. Section 4 evaluates the system, while Section 5 surveys related work, and Section 6 draws conclusions.

References (26)