.. _standards: ===================================== Supported ETSI C-ITS Standards ===================================== V2X FlexStack implements the protocols of the **ETSI C-ITS Release 2** stack. The Python (``v2xflexstack`` 0.12.0) and Rust (``rustflexstack`` 0.4.0) implementations follow the same specifications, listed below with the version each one implements. .. note:: **What "implemented" means here.** The unit tests of both implementations are traced to the Test Purposes (TPs) of the ETSI conformance test specifications (Part 2, TSS&TP) listed at the end of this page: 380 of the 399 TPs are covered in each implementation (see :ref:`conformance`). This is traceability, not certification: the tests are unit tests written by the FlexStack developers, not an execution of the ETSI abstract test suites (TTCN-3) or a test by an accredited laboratory. Interoperability with independent implementations is described on the :ref:`performance` page. Implemented specifications ========================== .. list-table:: :widths: 16 30 40 14 :header-rows: 1 * - Layer - Specification - Scope - Python / Rust * - **Facilities** - ETSI TS 103 900 V2.3.1 - Cooperative Awareness basic service: CAM generation rules (dynamics-triggered interval, low-frequency and special-vehicle containers), reception, SSP. - Both * - **Facilities** - ETSI TS 103 831 V2.3.1 - Decentralized Environmental Notification service: triggering, update, termination, action identifiers, repetition, keep-alive forwarding, receiving message table, SSP. - Both * - **Facilities** - ETSI TS 103 300-3 V2.3.1 - VRU Awareness basic service: VAM generation and reception. VRU clustering: Python only. - Both * - **Facilities** - ETSI EN 302 895 V1.1.1 - Local Dynamic Map: storage of received messages, query and subscription interfaces. - Both * - **Common types** - ETSI TS 102 894-2 V2.3.1 - Common Data Dictionary (CDD). - Both * - **Transport** - ETSI EN 302 636-5-1 V2.2.1 - Basic Transport Protocol: BTP-A and BTP-B. - Both * - **Network** - ETSI TS 103 836-4-1 V2.2.1 - GeoNetworking: all packet types (Beacon, SHB, TSB, GBC, GAC, GUC, LS Request / Reply), greedy and contention-based forwarding, location service, packet buffers with store-carry-forward, duplicate packet and address detection. - Both * - **Network** - ETSI TS 103 836-4-2 V2.1.1 - ITS-G5 media-dependent functions: DCC_NET (local and global CBR in SHBs). Optional, off by default. - Both * - **Management** - ETSI TS 102 687 V1.2.1 - Decentralized Congestion Control in the management layer, reactive and adaptive approach, driving the CAM generation interval (``T_GenCam_DCC``). Not yet evaluated on a loaded channel. - Both * - **Security** - ETSI TS 103 097 V2.2.1 on IEEE Std 1609.2 - Signing and verification of CAMs, DENMs, VAMs and GeoNetworking management packets; certificate and digest signer; full chain validation (AT, AA, Root CA), permissions (PSID / SSP), validity period and region; NIST P-256, NIST P-384, brainpoolP256r1 and brainpoolP384r1; explicit and implicit (ECQV) certificates; peer-to-peer certificate distribution. - Both * - **Security / PKI** - ETSI TS 102 941 V2.2.1 - PKI client: enrolment and authorization requests and responses (ECIES, AES-CCM) with the EA and AA; retrieval of certificate trust lists (CTL) and revocation lists (CRL). Butterfly key expansion is not implemented. - Both * - **Security / PKI** - ETSI TS 103 601 V2.1.1 - Repetition of enrolment and authorization requests; peer-to-peer distribution of CTLs and CRLs. - Both * - **Access layer** - IEEE 802.11p (ITS-G5) and Ethernet - Linux raw packet sockets (``PF_PACKET``, EtherType ``0x8947``). - Both * - **Access layer** - 3GPP LTE-V2X PC5 - C-V2X sidelink through the Qualcomm Telematics SDK (e.g. Cohda MK6). - Both Not implemented in the released packages: collective perception, manoeuvre coordination and the infrastructure services (SPATEM, MAPEM, IVIM); butterfly key expansion; a hardware security module back end. Packet structure ================ A GeoNetworking packet carries, after the link-layer header, the GeoNetworking Basic Header and then either the unsecured Common Header or a TS 103 097 ``SecuredData`` structure that contains it. The secured part covers the Common Header, the extended header, the BTP header and the Facilities PDU: .. mermaid:: flowchart TD PHY["Link-layer header
IEEE 802.11p (ITS-G5) / Ethernet (EtherType 0x8947) / LTE-V2X PC5"] BH["GeoNetworking Basic Header"] SEC["[If secured] TS 103 097 SecuredData
header info, signer (digest or certificate), signature"] CH["Common Header + Extended Header
(SHB / TSB / GBC / GAC / GUC / Beacon / LS)"] BTP["BTP header
BTP-A (destination + source port) or BTP-B (destination port + info)"] FAC["Facilities PDU
CAM • DENM • VAM"] PHY --> BH BH --> SEC SEC --> CH CH --> BTP BTP --> FAC style PHY fill:#fef3c7,stroke:#d97706,stroke-width:2px,color:#78350f style BH fill:#fee2e2,stroke:#dc2626,stroke-width:2px,color:#7f1d1d style SEC fill:#f3e8ff,stroke:#7c3aed,stroke-width:2px,color:#581c87 style CH fill:#fee2e2,stroke:#dc2626,stroke-width:2px,color:#7f1d1d style BTP fill:#dbeafe,stroke:#2563eb,stroke-width:2px,color:#1e3a8a style FAC fill:#dcfce7,stroke:#16a34a,stroke-width:2px,color:#14532d ASN.1 encoding ============== Facilities messages (CAM, DENM, VAM) are encoded with the Unaligned Packed Encoding Rules (UPER), and the security and PKI structures with the canonical Octet Encoding Rules (COER), from the official ETSI ASN.1 modules. - **Python** compiles the ASN.1 modules at run time with ``asn1tools``, so a modified module can be loaded without rebuilding. - **Rust** uses ``rasn`` bindings generated ahead of time from the same modules. .. _conformance: Conformance test-purpose traceability ===================================== ETSI specifies the conformance tests of each protocol in a PICS pro forma (Part 1), a Test Suite Structure and Test Purposes document (TSS&TP, Part 2) and an Abstract Test Suite (Part 3). For every test purpose, each implementation has a unit test that names it and checks its expected behaviour, running complete stations on a virtual clock and decoding the frames from the wire. .. list-table:: :widths: 30 30 10 10 10 10 :header-rows: 1 * - Protocol - TSS&TP - TPs - Covered - Not impl. - Out of PICS * - BTP - ETSI TS 102 870-2 V1.2.1 - 5 - 5 - 0 - 0 * - GeoNetworking - ETSI TS 102 871-2 V2.1.1 - 138 - 129 - 1 - 8 * - CA basic service - ETSI TS 102 868-2 V2.1.1 - 32 - 30 - 0 - 2 * - DEN basic service - ETSI TS 102 869-2 V1.6.1 - 57 - 56 - 1 - 0 * - Security - ETSI TS 103 096-2 V2.1.1 - 91 - 91 - 0 - 0 * - PKI (ITS-S) - ETSI TS 103 525-2 V2.1.1 - 76 - 69 - 6 - 1 * - **Total** - - **399** - **380** - **8** - **11** The figures are the same for the Python and the Rust implementation. Out of the PICS: the GeoNetworking advanced-forwarding test purposes (an algorithm Release 2 no longer defines), a CAM test purpose for the roadside-unit profile and one for CAM version 1, and a PKI test purpose that contradicts the official ASN.1 module. Not implemented: the six butterfly-key test purposes, an optional DEN impact-reduction feature and the GeoNetworking time synchronisation for C-V2X. The access-layer DCC test specification (ETSI TS 102 917-2) tests the first version of TS 102 687 and was not used. The per-test-purpose mapping is published with the `benchmark suite `_.