Ecosystem Overview

V2X FlexStack(R) is an open-source, dual-language implementation of the European Telecommunications Standards Institute (ETSI) Cooperative Intelligent Transport Systems (C-ITS) Release 2 protocol stack.

Its objective is to accelerate the development, testing, and real-world deployment of V2X applications across connected vehicles, Vulnerable Road Users (VRUs), and roadside infrastructure.

The Dual-Stack Vision

Rather than forcing a single language onto incompatible operating constraints, V2X FlexStack provides two first-class implementations sharing identical wire protocol formats and architectural standards:

Python (v2xflexstack)

Optimized for Agility & Research

  • Runtime: Python 3.8+ / PyPy 3.11+

  • Concurrency: Reactive, callback-driven, non-blocking

  • ASN.1 Engine: asn1tools (APER/UPER)

  • Best for: Rapid prototyping, algorithm research, vehicle-to-cloud testing, laboratory simulation, and dynamic message structure modification.

  • Package: pip install v2xflexstack

Rust (rustflexstack)

Optimized for Performance & Embedded OBUs

  • Runtime: Native binary (Rust 2021 edition, stable toolchain), no garbage collector

  • Concurrency: Multi-threaded Actor model with mpsc channels

  • ASN.1 Engine: rasn ahead-of-time compiled codecs

  • Best for: Embedded OBUs and RSUs (e.g. Cohda MK6, Raspberry Pi), performance-sensitive deployments, and cross-compiled aarch64 targets.

  • Crate: rustflexstack = "0.4.0"

Feature & Capabilities Comparison

Feature / Standard

Python (v2xflexstack)

Rust (rustflexstack)

Link Layer: IEEE 802.11p

Yes (Linux PF_PACKET raw sockets)

Yes (pnet raw sockets)

Link Layer: C-V2X PC5

Yes (pybind11 C++ Qualcomm wrapper)

Yes (Native C FFI to Qualcomm SDK)

GeoNetworking (TS 103 836-4-1 V2.2.1)

All packet types, greedy and contention-based forwarding, location service

All packet types, greedy and contention-based forwarding, location service

BTP (EN 302 636-5-1)

BTP-A and BTP-B

BTP-A and BTP-B

Security (TS 103 097 V2.2.1)

NIST P-256/P-384, brainpool P-256/P-384 (ecdsa)

NIST P-256/P-384, brainpool P-256/P-384 (RustCrypto)

PKI Client (TS 102 941 V2.2.1, TS 103 601)

Enrolment, authorization, CTL/CRL, request repetition

Enrolment, authorization, CTL/CRL, request repetition

CAM (TS 103 900)

Generation, dissemination & reception

Generation, dissemination & reception

DENM (TS 103 831)

ActionID management & repetition

ActionID management & repetition

VAM (TS 103 300-3)

Generation, reception and clustering

Generation and reception

Local Dynamic Map (LDM)

IF.LDM-1 to 4, TinyDB & In-memory

IF-LDM-3 and 4, In-memory actor

DCC (TS 102 687 V1.2.1)

Adaptive & Reactive, DCC_NET

Adaptive & Reactive, DCC_NET

Cross-Compilation

Pure Python + C++ wheel

Native aarch64, Arm Cortex-A

Which Implementation Should You Choose?

  • Choose Python if: You are an academic researcher, an algorithm engineer, or building desktop/cloud tooling. You can inspect message dicts directly, modify fields dynamically, and deploy rapidly without compiling native binaries.

  • Choose Rust if: You are deploying on in-vehicle hardware (e.g. Cohda MK6, NXP RoadLINK, or Commsignia), roadside industrial controllers, or edge devices like the Raspberry Pi. You need low per-message processing time, no garbage-collection pauses, a small memory footprint and compile-time thread safety.

  • Choose Both: A common architecture uses Rust on the vehicle OBU/RSU for reliable real-time packet exchange over the air, while streaming parsed telemetry via BTP or IPC to a Python stack for machine learning or high-level routing logic.