A technical white paper on communication for autonomous vehicles and embodied AI
C++17 and C++20, Python and a C ABI. Supported deployment targets include Linux, QNX, Android, Windows and macOS. VLink is available under the Apache License 2.0. Project website · Source repository · VKit · VMsgs
Where the other 52 milliseconds go
It is 11 p.m. in an underground garage. A perception model finishes inference in 18 milliseconds, yet more than 70 milliseconds pass between acquiring a frame and delivering the result. The integration team has the trace open on one laptop and htop on another. Which process accounts for the difference?
In the scenario that opens the Chinese white paper, eight 8-megapixel cameras and a 128-channel lidar feed four processes: capture, preprocessing, perception and recording. Each handoff can serialize the frame, copy it and move it between CPU cores. The vehicle also has several communication systems. Shared memory connects processes on the domain controller, Fast DDS connects compute boards, SOME/IP reaches chassis ECUs, FDBus serves the Android cockpit, and MQTT or Zenoh carries telemetry off the vehicle. Each interface brings its own setup, debugging tools and failure modes. Continuous recording can produce terabytes per day, while an intermittent dropped frame or takeover may occupy only a few seconds.
VLink gives these links a common application API. A URL selects the transport. The same stack includes shared-memory loans, device-memory handles, a runtime library, optional message encryption, event-triggered recording and tools for inspecting live traffic or recorded data.
ROS 2 supplies an extensive ecosystem of drivers and packages, including Nav2, MoveIt 2 and tf2. The comparison here addresses a narrower deployment question. What does it cost to move a sensor frame or start a group of nodes on a particular domain controller? In the project’s archived ROS 2 Humble comparison, a 1 MiB frame took a median of 1,028.8 µs across Cyclone DDS with iceoryx and 47.1 µs through VLink’s iceoryx path. Both loaded the same iceoryx 2.0.5 library. Section 5 gives the configurations, the cases where ROS 2 was faster and the limits of that comparison. Archived benchmark report
Architecture and deployment at a glance
| Engineering question | ROS 2 Humble configuration in the paper | VLink approach and measured example |
|---|---|---|
| How do protocols meet? | DDS through the RMW interface. Automotive and broker protocols typically need adapters. | A URL selects a registered backend. Deployment remapping changes the route. Native XCDR can reach compatible ROS 2 endpoints. |
| Where do large payloads live? | Loan support depends on the RMW and message layout. The tested Cyclone DDS/iceoryx path still incurred copies. | A sized transport loan holds a fixed-layout container with a variable payload. For device memory, a same-host handle with no metadata uses a 140 B envelope. |
| How do languages and schemas meet? | ROS interface generation and Python bindings define the application path. | Compile-time serializers, an AUTOSAR ARXML generator and Python buffer exports. Median decode time for a 324 B IMU message was 0.11 µs versus 0.79 µs with the same Fast CDR library. |
| What affects tail latency? | The measured path goes through the ROS client, RMW and executor layers. | Pooled allocation, direct callback dispatch and asynchronous logging. The complete 1 MiB Fast DDS SHM path recorded a P99 of 255.4 µs versus 9,019.0 µs. |
| How are messages protected and incidents recorded? | SROS2 configures DDS Security. rosbag2 supports continuous recording and snapshot mode. | Security v2 protects application messages across backends. TriggerRecorder captures per-topic pre- and post-event windows within a shared memory budget. |
| What can an engineer see in the field? | RViz2 serves desktop visualization. Remote bridging and offline conversion require their own integration. | Ten CLI tools, a loop-aware proxy, Qt viewers, and shared live/offline converters for Foxglove and Rerun. |
| What ships? | The single-backend Fast DDS example was 993.1 KB with 102 shared-library dependencies. | The corresponding executable was 48.0 KB with 14 dependencies. The library closures occupied 29.17 MB and 21.95 MB respectively. |
Source ownership, portability and maintenance
- Auditable components. VLink maintains its communication abstraction, zero-copy containers,
src/baseruntime, Security v2, TriggerRecorder and visualization tools in the open. The Apache 2.0 license covers first-party code. Third-party components retain their own licenses, recorded in the installedLICENSE_NOTICES.md. - Replaceable transports. The six primitives and URL contract give applications a stable interface.
TransportPluginInterfaceseparates registered transport types from their implementations. A team can change a protocol stack when commercial terms, availability or platform requirements change, subject to the new backend’s addressing and capabilities. - Hardware integration. A Horizon Robotics
hbmemplugin supports DMA-BUF sharing on supported 64-bit Linux automotive SoCs. CPU, BPU, VPU and ISP clients can share vendor-managed storage. Security callbacks allow teams to integrate SM2/SM4 or a hardware security module. The core build flow in VKit uses Bash and CMake. Some host preparation and optional Rerun build steps use Python. - Testability. Supported message types resolve at compile time. An unsupported type triggers a
static_assert. Anintra://route lets developers exercise a chain in one process and step through callbacks in a debugger before changing its deployment topology. - Incremental adoption. XCDR interoperability, generated SOME/IP headers and MCAP recordings let teams keep existing simulation nodes, ECU interfaces and analysis tools while moving individual modules.
1. One communication API across transports
A chassis ECU may expose a SOME/IP service, a simulator may speak ROS 2 over RTPS, and a cockpit process may expect FDBus. VLink puts the protocol-specific work behind its transport layer. Four layers separate application-facing primitives, core services, transport abstraction and backend implementations.
1.1 Three models and six primitives
| Model | Endpoints | Semantics |
|---|---|---|
| Event | Publisher<T>, Subscriber<T> |
Distribute events to subscribers. |
| Method | Client<Req, Resp>, Server<Req, Resp> |
Synchronous requests, asynchronous callbacks, futures, deferred server replies with listen_for_reply() and reply(req_id, resp), or one-way calls. |
| Field | Setter<T>, Getter<T> |
Synchronize state with last-value caching and change filtering. |
Figure 1. Applications use the six primitives at the top. Core services and the transport layer sit below them. The proxy, CLI, desktop and web tools share those interfaces.
Even a minimal native Fast DDS publisher has to create and connect a participant, type, publisher, topic and writer. This abbreviated example assumes the application already has its type support and sample.
eprosima::fastdds::dds::DomainParticipantQos pqos;
auto* participant = DomainParticipantFactory::get_instance()->create_participant(0, pqos);
TypeSupport type(new ImuPubSubType());
type.register_type(participant);
auto* publisher = participant->create_publisher(PUBLISHER_QOS_DEFAULT);
auto* topic = participant->create_topic("sensor/imu", "Imu", TOPIC_QOS_DEFAULT);
auto* writer = publisher->create_datawriter(topic, DATAWRITER_QOS_DEFAULT);
writer->write(&imu_sample);
With VLink, the application chooses a URL and constructs two RAII objects. In this usage sketch, ImuData, run_fusion and imu_sample belong to the application. The repository also has a self-contained in-process example. Buildable publish/subscribe example
#include <chrono>
#include <vlink/vlink.h>
// Inside the application's setup function:
constexpr char kUrl[] = "dds://sensor/imu?qos=sensor";
vlink::Subscriber<ImuData> sub(kUrl);
sub.listen([](const ImuData& msg) { run_fusion(msg); });
vlink::Publisher<ImuData> pub(kUrl);
pub.wait_for_subscribers(std::chrono::milliseconds(500));
pub.publish(imu_sample);
During development, intra://sensor/imu#direct runs the callback on the publishing thread without a DDS domain or RouDi. On one vehicle computer, JSON rules in VLINK_URL_REMAP can direct the endpoints to shm:// or shm2://. Across boards, the same application can use dds:// or zenoh://. Both endpoints must agree on the address, type and applicable QoS. With VLINK_TRANSPORT_PLUGINS=auto, VLink can load an appropriate transport plugin after checking its interface ID and ABI version. By default, a publisher with no subscribers can skip serialization.

Figure 2. The Event API stays the same across five compatible routes. SOME/IP, MQTT and FDBus also use the six primitives and supply their own address fields.
1.2 Transports by deployment scope
Figure 3. From top to bottom: in-process delivery, same-host shared memory, industrial DDS, automotive service buses and edge-to-cloud transports.
The Rust-based Eclipse iceoryx2 backend, shm2://, removes the central iox-roudi daemon. That simplifies container deployment and changes the failure boundary. It reached 31,472 MiB/s of effective payload throughput in the project’s saturated 1 MiB test. Effective throughput counts application payload delivered per second and can exceed the volume of bytes physically copied.
The Zenoh backend supports zenoh-c with on-demand shared memory and mTLS, and zenoh-pico for smaller targets with TLS when built with Z_FEATURE_LINK_TLS=1. The local peer-to-peer Zenoh test reached 4,344 MiB/s at 1 MiB. Transport security through SslOptions is available for MQTT, Fast DDS, Cyclone DDS, RTI Connext and Zenoh, subject to backend support and configuration. It can be combined with application-layer encryption.
1.3 Compile-time serialization, ROS 2 XCDR and AUTOSAR ARXML
In include/vlink/internal/serializer-inl.h, Serializer::get_type_of<T>() uses C++17 if constexpr, SFINAE and header availability to resolve a message’s encoding. Supported families include Bytes, DynamicData, SOME/IP, Fast CDR/XCDR, Protobuf values and pointers, and FlatBuffers objects, read-only tables and builders. The receiver can bind Protobuf storage to an Arena. Additional branches handle custom stream operators, strings, C strings, suitable POD values and pointers, and text streams. VLINK_ZEROCOPY_TYPE specializes the custom path for the fixed-layout containers. Unsupported types resolve to kUnknownType and fail a compile-time check.
Figure 4. URL and plugin checks run when a node is constructed. Message types select the serializer at compile time. The two right-hand paths show ROS 2 interoperability and SOME/IP header generation.
- ROS 2. VLink recognizes
rosidl_generator_traits::is_messageand compatible Fast CDR signatures. A four-byte XCDR encapsulation header andDdsCdrPubSubTypeallow direct communication with compatible ROS 2 nodes. Teams can retain simulation and driver nodes while migrating perception or planning. Topic naming, wire type and QoS must match. - SOME/IP. The open-source vsomeip stack transports payloads and leaves application serialization to the caller. VLink provides
VLINK_SOMEIP_FIELDSandtools/autosar/arxml_to_vlink_someip.py. The generator reads supported AUTOSAR R25-11 ARXML constructs and emits C++17 headers handling byte order, padding, UTF-16, defaults and receive-side bounds.
1.4 Callback lifetime, variable-length loans and QoS
Figure 5. A short lock admits a post. A guard tracks it through shutdown. Separate sender and receiver guards govern the lifetime of loaned storage.
Callback detachment. In NodeImpl::LoopGate, a receiver thread briefly locks to acquire the attachment and increment active_posts. After releasing that lock, it creates an ActivePostGuard, takes a shared lock on the loop’s alive state, and calls loop->post_task(). The inner call returns a boolean, and post_with_loop_gate() exposes a three-state result. On scope exit the guard decrements the counter using sequential consistency. Paired with detach_waiters, this lets the final active post wake a waiting thread only when necessary. To detach, the application first clears message_loop to stop new posts. From inside the callback, detach can return immediately because a shared attachment keeps the active frame alive. An external thread waits for active posts and drains the loop with wait_for_idle().
Variable-sized messages. Node::serialize_to_transport() asks for the serialized size, requests impl_->loan(size), and immediately puts that loan under a unique_ptr with a custom deleter. Protobuf, CDR or a fixed-layout container can then encode in place. If encoding fails or throws, the deleter calls return_loan(). On receive, a thread-local ReceiveSlot and ReceiveGuard handle callback reentry and teardown. ClearGuard unbinds the borrowed pointer on exit. A synchronous client return or cached getter value uses deserialize_owned<T>() for an independent lifetime.
QoS. The QosProfile namespace provides 16 constexpr presets. For example, ?qos=sensor selects the sensor profile, and ?qos=best uses a shallow KeepLast(10) queue. The built-in presets leave deadline and lifespan at -1 by default. This avoids surprising expiry on systems with imperfectly synchronized clocks. Deployment-specific overrides can be supplied through VLINK_QOS_CONFIG.
2. Large frames, host zero copy and device memory
Eight 3840 × 2160 NV12 cameras at 30 frames/s produce about 2.99 GB/s of pixels. Add a 128-channel lidar producing 4 MB at 20 Hz and the total is about 3.07 GB/s, using decimal units. A full copy reads and writes every byte. Four full copies of that input therefore account for about 24.5 GB/s of memory traffic before other consumers touch the data. Fan-out to perception, parking and recording can push the modeled traffic above 40 GB/s, depending on where each branch copies. Cache pressure and memory bandwidth can dominate the inference time.
Moving the bottom transport into shared memory leaves the upper layers to consider. On the Ryzen 7 5800X system in the report, the ROS 2 Cyclone DDS/iceoryx configuration took 1,028.8 µs at 1 MiB and 6.41 ms at 16 MiB. Both frameworks loaded the same libiceoryx_posh.so. They differed in what happened before the bytes entered the chunk and after a subscriber received it.

Figure 6. The conventional path moves frame contents between buffers. Host loans let the consumer borrow the payload. A device-memory handle lets the consumer import the original allocation.
2.1 Two layers of host zero copy
- Loan the transport storage. On
shm://,shm2://and a shared-memory-enabled Zenoh path, the sender requests space for the encoded message and writes into it. Theshm://implementation reserves a further 16 bytes for channel and sequence information used in loss accounting. - Make the payload borrowable. Nine
vlink::zerocopycontainers define fixed headers followed by variable data. On supported 64-bit targets, static assertions check their sizes and eight-byte alignment. A subscriber copies the fixed header and points its data view at the payload already in the chunk. The 40 B commonHeaderrecords acquisition time (time_meas) and publication time (time_pub).
| Container | Fixed structure size |
|---|---|
RawData |
64 B |
CameraFrame |
80 B |
ProxyData |
80 B |
FastBuffer |
96 B |
ObjectArray |
112 B, plus 144 B per object |
AudioFrame |
128 B |
OccupancyGrid |
152 B |
Tensor |
248 B |
PointCloud |
256 B |
Together these layers gave VLink 47.1 µs median fixed-rate delivery and 35,657 MiB/s saturated effective throughput at 1 MiB on iceoryx. The ROS 2 configuration measured 1,028.8 µs and 1,115 MiB/s. At 16 MiB, median latency was 1.12 ms versus 6.41 ms. A separate decode-only test took 0.04 µs to bind a 720p camera frame and 0.06 µs for a 64K-point cloud. Those timings measure the creation of a borrowed view. They exclude transport, image processing and point-cloud processing.
The CLI, desktop viewer and WebViz use MessageParser to inspect these containers. The borrowed-payload path requires a suitable same-host plaintext loan, compatible 64-bit layouts and matching byte order. Encryption and network transmission introduce additional buffers. A subscriber that retains data beyond its callback must establish ownership, for example with deep_copy().
Figure 7. The top half shows a host chunk and the nine fixed-layout containers. The bottom half distinguishes the 140 B device-handle envelope from the 312 B shared control block used for reclamation.
2.2 FastBuffer across GPU and DMA-BUF processes
An ISP can already have placed a camera frame in GPU memory or an automotive DMA-BUF by the time inference begins. If the inference process uses PyTorch or TensorRT on the same device, staging the image in host shared memory can impose a GPU-to-host-to-GPU round trip.
FastBuffer and FastBufferPool let a producer export an allocation and a consumer import it. A 10–100 MB image or tensor stays in device storage. On the same-host shared-handle path, with metadata_size == 0, the serialized control envelope is 140 bytes. At eight cameras and 30 frames/s, that amounts to 33,600 bytes/s of envelope payload, before transport overhead. DDS, SHM or Zenoh can carry that envelope. The importing process still needs access to the same underlying device or shared allocation.
The harder problem is reclamation. A recorder or viewer can crash with a frame outstanding. The acquisition process needs to distinguish a dead reader, a live reader and a new process that happens to reuse a PID. VLink uses a 312 B FastBufferControl block in /vfb_<16hex>, with one generation counter and 32 reader slots. Sequentially consistent operations pair the writer’s generation update with the reader’s claim.
Writer: reclaim() Reader: import_handle()
1. Check refs == 1. Clear dead 1. Validate protocol, owner and
reader slots. PID/time namespaces.
2. Increment generation (seq_cst). 2. Claim a reader slot by CAS (seq_cst).
3. Read the slots (seq_cst). 3. Load generation (seq_cst) and
compare it with the exported value.
4. Retire buffers with live readers. 4. On mismatch, clear the slot and
report an expired frame.
The 64-bit reader and owner identities combine a PID with a folded process start time. Linux namespace checks and Utils::get_process_start_time(pid) help distinguish PID reuse and processes in different containers. Buffers with live readers move to a retired list. Acquisition does not synchronously wait for an acknowledgement from every viewer.
Providers are selected through VLINK_FASTBUFFER_PLUGIN:
- CUDA and HIP export a physical PCI bus ID. The receiver resolves that ID locally before opening the IPC handle, so different process-local device ordinals can refer to the same physical card.
- Horizon Robotics hbmem supports CPU/BPU/VPU/ISP DMA-BUF sharing on supported hardware. A boot ID guards against stale imports after a restart. Mapping operations handle cache synchronization, and
import_native()accepts compatible camera SDK buffers. - Host and shm support machines without a GPU. An empty provider configuration selects Host. Selecting shm explicitly uses the shared-memory provider.
3. Runtime, message security and triggered recording
VLink 2.2.0 removed the external spdlog, Quill and DLT logging dependencies. The in-house runtime supplies byte storage, a shared allocator, scheduling, asynchronous logging and optional C++20 coroutines across the target platforms.
Figure 8. Four components in src/base share an allocation strategy. They make different promises about ownership, scheduling and the durability of queued work.
3.1 Four components that affect tail latency
Bytes. On a supported 64-bit build, Bytes occupies 128 B and includes 96 B of inline storage. Small control messages can avoid a heap allocation. An offset reserves headroom for a transport header. A regular Bytes copy and deep_copy() copy the data. shallow_copy shares storage and took about 2 ns in the cited microbenchmark. Built-in compression uses LZAV 7.2. A pooled 4 KiB allocate/free benchmark measured 19.24 million operations/s, about 52 ns per operation.
MemoryPool. Nineteen size classes range from 32 B to 16 MiB. They double through 1 MiB, then use 4, 8 and 16 MiB classes. A leading-zero count enables constant-time lookup. Low contention favors shard zero for locality. After eight collisions the pool can switch to per-core shards, and a depleted shard can steal 16 blocks in a batch. A std::pmr::memory_resource interface serves the scheduler, logs, C API and coroutine frames. trim() unlinks blocks under a short lock, then coalesces and frees them outside it. The end-to-end Fast DDS SHM test measured a 1 MiB P99 of 255.4 µs versus 9,019.0 µs on ROS 2. That measurement covers the entire path and does not isolate the allocator’s individual contribution.
Scheduling. MessageLoop supports ordinary, lock-free MPMC and dual-heap priority queues. The reported median jitter for a 5 ms timer was 1.89 µs. A chained Schedule handle defers submission until destruction, allowing callbacks to be registered before execution. GraphTask supports conditional branches and cycle checks when editing a graph. On C++20 builds, vlink::Co allocates TaskPromise<T> and DetachedTask frames from the pool. Symmetric transfer limits stack growth. If a queue is full, FutureWaitLoop backs off and retries without sleeping under a lock.
Logging. LoggerBackend queues small records of up to 512 B through the pool. A background writer uses a 256 KiB buffer and fwrite_unlocked where supported. Four producers sustained 3.39 million file messages/s versus 0.72 million for the tested ROS 2 logger. The reported median call latency was 270 ns. Error, Fatal and flush barriers carry the protected flag when the queue fills. Rate-limited macros avoid evaluating suppressed arguments. A ring backtrace retains preceding low-severity records. Android and QNX can route output to logcat and slog2. Forced termination with SIGKILL can lose the unflushed tail of asynchronous output.
3.2 Transport-independent Security v2
SROS2 integrates with DDS Security and its PKI configuration. VLink places an optional authenticated-encryption envelope at the application layer so that protection can follow a message across different transports. The SecurityType::kWithSecurity template selects the encrypted path. A plaintext specialization compiles out those operations.
Figure 9. The left side shows the fixed security header, authentication tag and receiver checks. The right side follows an event from buffered history to a recording.
Security v2 uses a 34 B little-endian fixed header without a KeyId. In symmetric mode, the implementation reuses an EVP_CIPHER_CTX for AES-128-GCM. It combines a 12-byte random nonce base with a monotonic sequence number. Hybrid asymmetric mode requires RSA keys of at least 2,048 bits. After the fixed header come two-byte wrapped-key and signature lengths, the wrapped key, the optional signature, ciphertext and a trailing 16 B GCM tag.
By default, the authenticated data includes a protocol label, a length-delimited context containing the URL, serialization type and schema, and the fixed header. Hybrid mode also binds the wrapped key and its length. Binding an envelope to its context prevents a valid ciphertext for one topic from being accepted as a message for another. When asymmetric keys are configured, the receiver rejects symmetric-only packets. With signing enabled, it verifies the signature before authenticated decryption, then updates replay state only after successful authentication.
The symmetric and asymmetric replay tables each allow up to 1,024 senders. The default 4,096-bit bitmap costs 512 B per sender and can be configured up to 65,536 bits. RAII cleanup scrubs sensitive buffers. Custom encryption/decryption callbacks support integrations such as SM2/SM4 or an HSM without requiring the built-in OpenSSL path. Backend TLS can protect an individual connection while the application envelope protects a message through a broker or proxy.
3.3 TriggerRecorder and bag formats
Continuous recording is expensive when an incident lasts seconds. rosbag2 offers snapshot mode. VLink’s TriggerRecorder adds per-topic pre- and post-event windows, paced disk writes and event plugin callbacks. The vlink-trigger daemon collects encoded frames in per-topic deques under a shared configurable byte budget, 2 GiB by default. An RPC trigger requests a window, as exposed by vlink-trigger dump.

Figure 10. An engineer observes traffic in the terminal. A hard-braking event freezes the relevant history, the recorder collects the post-event interval, and a plugin can receive the finished recording.
For each topic, the retention interval is T_pre + max(T_post) + 2 × T_guard. Ordinary and triggered states use the same ingestion path. At capacity the default kDropNewest policy drops an arriving frame. kCoverOldest can instead evict the oldest frame for that topic. Per-topic max_size limits operate inside the global budget, so a high-bandwidth camera can be constrained independently of a control stream.
On a trigger, the target buffer is marked frozen to retain already-acquired frames even if that sensor stops. After the post-event window, std::lower_bound locates the slice and shared pointers form a snapshot. The writer can pace output with sleep_interval, exposed as sleep_interval_mb in CLI configuration. The suffix selects either SQLite WAL with adaptive LZAV compression (.vdb) or Foxglove MCAP with Zstd and optional chunk CRCs (.vcap). The separate bag benchmark measured uncompressed MCAP writes at 1,448 MB/s and reads at 8,541 MB/s. ROS 2 read 5,278 MB/s. SQLite WAL writes measured 905 and 417 MB/s respectively. BagPluginInterface and TriggerPluginInterface expose hooks such as on_frame and on_dump_finished for redaction or encrypted upload.
4. Diagnostics, 3D visualization and language bindings
In the field, the first question is often whether a producer stopped, a URL was mistyped, a rate dropped or a field went out of range. A terminal session can answer those questions before an engineer starts a 3D viewer.
4.1 Discovery, loop-aware proxies and the CLI
Figure 11. Lightweight discovery batches endpoint reports. Proxy v3 separates its control and data planes. The command-line tools can be deployed without graphical dependencies.
DiscoveryReporter batches endpoint and CPU reports every 500 ms over UDP multicast at 239.255.0.100, port 29600 + domain, in packets of up to 1,450 B. An endpoint expires after two seconds without an update. Local native replay binds to 127.0.0.1 with a TTL of zero, keeping replay announcements off the vehicle LAN.
For cross-subnet observation, vlink-proxy runs a ProxyServer. ProxyAPI::Mode has eight modes: offline, observe one, observe all, record, play, edit, auto, and auto with observation of all topics. The encrypted Bitsery control channel uses a 128-bit session token. Five seconds without a heartbeat marks a disconnect, and reconnection can restore last_control. The data path can relay ProxyData (an 80 B fixed structure plus framing and variable payload), use direct local SHM, or dispatch an in-process callback.
Bidirectional proxies need to distinguish original publishers from their own mirrors. Four measures work together. A mirror sets proxy.bridge="1". Its discovery record advertises bridge=1, optionally followed by native=1. During snapshot aggregation, ProxyServer::update_all() clears the publisher bit on marked process records while preserving other roles. Reverse subscriptions disable their own discovery and skip local SHM mirrors.
The CLI comprises ten independently selectable tools:
| Tools | Field use |
|---|---|
vlink-monitor, vlink-eproto, vlink-efbs |
Inspect rate, frequency, loss and latency over SSH. vlink-monitor -x --dot draws Braille plots. Enter opens a dynamic Protobuf or FlatBuffers inspection tool for a selected topic. |
vlink-parse |
Extract 11 kinds of output, evaluate ExprTk expressions, and slice recordings on cross-topic conditions with --event. |
vlink-check |
diag checks platform-appropriate conditions such as MTU, multicast routing, kernel buffers, shared-memory capacity and daemons. The tool covers more than 35 checks across the platforms. |
vlink-bag, vlink-trigger |
Record, replay, convert, merge and repair supported bag files, or run and trigger the bounded recorder. The bag utility has nine subcommands. |
vlink-bench, vlink-list, vlink-info |
Benchmark a deployment, inspect process topology, or report the version and build configuration. |
4.2 Qt, Foxglove and Rerun
Figure 12. Three Qt applications share a time cursor. Point clouds and calibration parameters meet in the camera window, where projection is computed locally.
Desktop inspection. The Qt 5/6 vlink-viewer has 14 OpenSceneGraph renderers. Point clouds, object arrays and occupancy grids support native fixed-layout rendering. Other perception types can be mapped through vmsgs_config.json and ExprTk. A tree editor can change fields and schedule messages for injection. For camera calibration, ProjectionDialog supplies Eigen projection parameters and five distortion coefficients, while Point3DDialog supplies the cloud. CameraDialog::process_projection() overlays them locally on video decoded by FFmpeg in a separate thread. No additional projection data needs to be sent back over the vehicle bus.
vlink-player detects SHM recordings and can manage proxy, viewer and analyzer processes as needed. vlink-analyzer provides a fast path for simple arithmetic and ExprTk for more complex expressions. An IpcChannel synchronizes all three time cursors. Selecting a spike in a plot can seek the player and 3D view to the same instant.
Figure 13. Foxglove’s live bridge and MCAP exporter share a converter. Rerun’s live bridge and RRD exporter do the same. Both families use the common decoding and mapping layer.
Remote and offline visualization. vlink-webviz-common handles schema registration, decoding and mapping rules. If one message maps to several outputs, they can reuse a single decode. The live bridges and offline vlink-bag2mcap and vlink-bag2rrd converters reuse the same conversion logic.
vlink-foxglove serves WebSocket clients on port 8765 by default. It embeds Foxglove BFBS schemas at build time, can forward native Protobuf/FlatBuffers data using shallow_copy, and implements seven bidirectional capabilities. A 64 MiB per-connection limit bounds buffering for slow clients. vlink-rerun uses gRPC on port 9876 by default. Its build scans Rerun SDK headers with generate_registry.py to construct an Arrow registry. Aligned data can be borrowed through rr::Collection<T>::borrow(), and NV12/YUV can use native pixel formats.
4.3 Python buffers, a C ABI and selective deployment
Figure 14. Language bindings and optional plugins sit outside the communication core. The build selects the platform, transports and vendor integrations required by a deployment.
The Python bindings use nanobind. Bytes implements the PEP 3118 buffer protocol for memoryview and compatible NumPy/PyTorch operations. Export counts pin the underlying storage. Python can write into a transport loan through with memoryview(loan): and can use FastBufferPool for device allocations. The binding releases the GIL around applicable blocking operations, can short-circuit publishes larger than 64 KiB when no subscribers exist, and uses weakref.finalize in cleanup. The C interface, vlink_c_api, exposes opaque POD handles and seven vlink_ret_t values: one success and six errors. C++ exceptions are contained at the ABI boundary, allowing integration from C, Rust, Go and C#.
Eight plugin interfaces cover transports, GPU/DMA-BUF providers, logging, bags, event recording, schemas, WebViz conversion and standalone application plugins. Each uses an interface ID and SemVer check. Deployment targets include Linux, QNX 7/8, Android, Windows and macOS. Build and packaging options include CMake with vlink_generate_cpp(), Conan 2.x, vcpkg, DEB/RPM and Android AOSP Android.bp recipes. The Android build isolates Fast DDS type-registration RTTI in a small static library. VKit supplies the cross-platform build tools and VMsgs supplies message definitions. In the archived Linux comparison, the executable linked to one Fast DDS backend was 48.0 KB, with 14 shared libraries occupying 21.95 MB in total.
5. What the matched-library benchmark measured
The archived run took place on November 22, 2026 on an AMD Ryzen 7 5800X, Linux 6.12 and GCC 16.2. It compared VLink v2.4.0 at 9d880ba with ROS 2 Humble, took the median of three runs and lasted 874.6 seconds. Before the run, an ldd audit checked that both stacks resolved six dependencies to the same physical files: Fast DDS 2.6.10, Fast CDR 1.0.24, Cyclone DDS 0.10.5, iceoryx 2.0.5, Zstd 1.5.7 and SQLite 3.53.4.
The project’s seven-dimension quantitative score was 84.0 for VLink and 66.6 for ROS 2. Including the report’s qualitative criteria gave 84.6 and 72.0. These are the project’s own weighted scores. The per-workload results below are more informative when choosing a transport or estimating a deployment budget. Pinned report with the underlying measurements
Figure 15. Fixed-rate P50 latency and saturated payload throughput are separate experiments. The RPC bars show throughput, with median round-trip times above each pair in VLink / ROS 2 order.
Figure 16. The serialization panel separates same-format CDR from VLink’s additional borrowed-view measurements. The remaining panels report sustained logging and bag reads or writes.
Figure 17. The radar uses the report’s scoring method. The other panels show observed startup time, resident memory, threads, executable size, library count and dependency closure.
| Workload | VLink | ROS 2 Humble |
|---|---|---|
| Fast DDS UDP / Cyclone DDS UDP, 64 B, P50 | 19.1 / 13.8 µs | 28.3 / 28.7 µs |
| Fast DDS SHM, 1 MiB, P50 / P99 | 177.3 / 255.4 µs | 247.9 / 9,019.0 µs |
| iceoryx SHM, 1 MiB, fixed-rate P50 | 47.1 µs | 1,028.8 µs (Cyclone DDS + iceoryx) |
| iceoryx SHM, 1 MiB, saturated payload throughput | 35,657 MiB/s | 1,115 MiB/s |
| iceoryx SHM, 4 / 8 / 16 MiB, P50 | 0.22 / 0.65 / 1.12 ms | 2.65 / 3.97 / 6.41 ms |
| Fast DDS SHM synchronous RPC, throughput / median RTT | 32,356 requests/s / 29.5 µs | 21,694 requests/s / 42.7 µs |
| Fast CDR decode, 324 B IMU / 10K points | 0.11 / 3.10 µs | 0.79 / 4.19 µs |
| Fast CDR decode, 720p image | 61.1 µs | 58.9 µs |
| Additional decode reference, 720p image / 64K points | 0.04 / 0.06 µs, borrowed view | 58.92 / 23.96 µs, CDR |
| Sustained file logging, single-thread stream / four threads | 2.11M / 3.39M messages/s | 0.84M / 0.72M messages/s |
| Bag storage, raw MCAP read / SQLite WAL write | 8,541 / 905 MB/s | 5,278 / 417 MB/s |
| 30-node Fast DDS UDP cold start, convergence / RSS / threads | 460 ms / 523 MB / 210 | 679 ms / 816 MB / 300 |
| Single-backend Fast DDS executable / library count / library closure | 48.0 KB / 14 / 21.95 MB | 993.1 KB / 102 / 29.17 MB |
The iceoryx result corresponds to 21.8× lower median latency and 32.0× higher effective throughput at 1 MiB. With Fast DDS SHM the largest gap in this table was at P99, where the observed ROS 2 latency was 35.3 times VLink’s. At 30 nodes the median time to the first message was 45.5 ms for VLink and 111.9 ms for ROS 2. The VLink-only shm:// RPC reference reached 50,876 requests/s with a median RTT of 20.25 µs.
Several design differences are consistent with these measurements. The VLink receive path can call a statically selected decoder and callback directly. Loans and fixed-layout containers reduce intermediate objects. Sharded allocation and out-of-lock reclamation reduce contention opportunities. A smaller dependency closure and fewer per-node services reduce startup work. The measurements compare complete stacks. They do not assign a fraction of the observed improvement to each design choice.
Where ROS 2 was faster, and what changes the comparison
- Saturated UDP. VLink trailed in three configurations. Fast DDS UDP at 1 KiB measured 23.8 versus 43.6 MiB/s. Cyclone DDS UDP measured 129.3 versus 137.8 MiB/s at 1 KiB and 61.7 versus 79.3 MiB/s at 1 MiB. UDP write batching is an area for further work.
- Default versus explicitly enabled Fast DDS SHM. VLink defaults to disabling the Fast DDS built-in SHM path for cross-host compatibility. In the default comparison its 1 MiB P50 was 314.0 versus 261.7 µs. With
VLINK_DDS_SHM=1to align the local SHM configuration, the result was 177.3 versus 247.9 µs, with saturated throughput of 1,931.8 versus 878.5 MiB/s. - Discovery and release scope. The 210-thread result used
VLINK_DISCOVERY_DISABLE=1so that only DDS discovery was counted. In the tested configuration, enabling VLink’s additional discovery used one thread and two file descriptors per node. Humble is the baseline. Results from this run do not establish performance for later ROS 2 releases or other executors such as EventsExecutor. - Decode format and scheduling. The 0.04 µs borrowed-view camera result is excluded from the 84.0 same-library score. In-process direct dispatch took about 50 ns and ran synchronously on the publishing thread. Queued 64 B delivery involved a futex wakeup and took 5.36 µs versus 2.40 µs for the tested ROS 2 polling path. VLink’s queued path nevertheless recorded 7.8× the throughput in the cited comparison and lower latency at larger sizes.
- Compressed playback. In the SQLite compressed test, VLink’s single-core LZAV path read 2,622 versus 1,299 MB/s. ROS 2’s two-thread Zstd configuration achieved a higher compression ratio, 1.62 versus 1.30. Storage budget and replay speed favor different configurations.
- Deployment fit. Projects whose value comes from the existing ROS driver and algorithm ecosystem may have little reason to migrate. VLink’s interfaces are most relevant where the constraints include large host or device buffers, multiple automotive protocols, QNX or Android packaging, event-triggered recording, or low-overhead diagnostics. XCDR and MCAP provide integration points for a mixed system.
6. Choosing a route and migrating in stages
These are example starting configurations. Rates and payloads describe representative workloads. The timings cited alongside them come from the individual benchmarks above.
| Application path | Representative load | Route and rationale |
|---|---|---|
| 8 MP cameras to BEV or vision-language-action inference | 30 Hz × about 12 MB per camera | shm://cam/front plus CUDA, HIP or hbmem FastBuffer. Share the device handle locally. With no extra metadata, the control envelope is 140 B. |
| 128-channel lidar to perception fusion | 10–20 Hz × 4 MB | shm://lidar/top plus PointCloud. The container supports 16-bit quantization and voxel downsampling. The 4 MiB delivery and 64K-point borrowed-view decode are separate tests. |
| Humanoid whole-body controller | 500–2,000 Hz × 256 B | intra://ctrl/wbc#direct for inline callbacks, or shm2://ctrl/wbc for daemon-free process isolation. |
| Cross-board planning or ROS 2 interoperability | 20–100 Hz × 64 KB | dds://plan/traj?qos=best with a compatible XCDR type. Consider dds.noblock if the control thread must avoid waiting on network congestion. |
| Chassis ECU service | 50–100 Hz × 64 B | someip://1001/1/1 with headers generated from the relevant ARXML service definition. Match addressing and wire layout to the ECU. |
| Cockpit 3D scene or remote inspection | 10–30 Hz | FDBus or a ProxyServer feeding Qt, Foxglove or Rerun. Bridge markers prevent mirrored publications from looping. |
| Wide-area teleoperation or incident capture | WAN / event-driven | zenoh://, Security v2 and TriggerRecorder. Apply connection TLS and message protection as appropriate. Capture bounded windows around braking or takeover events. |
A staged migration can preserve useful components of the existing system:
- Exercise the interface in CI. Start a new module on
intra://. Check message semantics, callback lifetimes and request/reply behavior in one process. - Move same-host endpoints to shared memory. Apply
VLINK_URL_REMAPto selectshm://orshm2://. Use FastBuffer on large camera and tensor paths where the producer and consumer can import the same device allocation. - Connect boards and existing ROS 2 nodes. Use
dds://orddsc://, compatible XCDR types, and matching topic names and QoS. Simulation and driver nodes can remain on ROS 2. - Package and operate the target. Add SOME/IP, FDBus, Zenoh, security, recording and visualization only where needed. Use CMake or Conan to select the deployed backends. Measure the resulting footprint on the target, using the single-backend report as a reference.
The source, examples and benchmark tools are available for teams to run against their own frame sizes, device providers and scheduling constraints.
References and further reading
- VLink source repository and project website.
- Original Chinese white paper and editable diagram sources.
- Chinese architecture manual, chapters 00–15. Chapters 04, 06, 11 and 12 cover transports, zero copy, visualization and observability.
- Archived VLink v2.4.0 versus ROS 2 Humble benchmark and topic-specific examples.
- Related specifications and projects include OMG DDS 1.4, DDS Security 1.1, AUTOSAR Foundation R25-11, Eclipse iceoryx, iceoryx2 and Zenoh, eProsima Fast DDS and Fast CDR, and the Foxglove MCAP specification. For background on ROS 2, see Macenski et al., “Robot Operating System 2: Design, architecture, and uses in the wild,” Science Robotics (2022). DOI
This English edition and its English-language figures were prepared from the project’s Chinese white paper with AI translation and editorial assistance.














