# Layer 7 Automotive Ethernet, SAN Storage & RoCEv2 RDMA

> **FrameAssembly v3.3.0** · Category 10 (Layer 7 · 5 Protocols) · Canonical URL: https://frameassembly-lang.dev/docs/protocols/categories/automotive-storage-rdma

Modern software-defined vehicles, disaggregated NVMe/iSCSI storage networks, and AI/GPU training clusters rely on specialized binary Layer 7 transports that traditional web traffic generators cannot synthesize. FrameAssembly v3.3.0 compiles AUTOSAR SOME/IP & Service Discovery (`someip`), ISO 13400-2 Diagnostics over IP (`doip`), RFC 7143 iSCSI (`iscsi`), NVMe/TCP (`nvmetcp`), and InfiniBand RoCEv2 (`rocev2`) offline into `.pcap` and nanosecond `.pcapng` traces.

Combine `rocev2` (`UDP 4791`, Base Transport Header + RETH + Invariant CRC) with Layer 2 `pfc` (`0x8808` Priority Flow Control) and Layer 3 `ecn 3` Congestion Experienced markings to validate lossless AI fabric telemetry without saturating a 400GbE GPU cluster.

## Category Wire & Endpoint Rules

- **Automotive Zonal Middleware (`someip` & `doip`):** `someip` (`UDP/TCP 30490`) encodes both RPC headers and `0xffff8100` Service Discovery entries (`findservice`/`offerservice`); `doip` (`TCP/UDP 13400`) encodes `0x02fd` inverse-version headers, 17-byte VINs, and UDS diagnostic payloads.
- **Block Storage Fabrics (`iscsi` 3260 & `nvmetcp` 4420):** `iscsi` constructs 48-byte Basic Header Segments (`login`, `read`, `write`, IQN names); `nvmetcp` constructs 8-byte Common Headers + PDU-specific `icreq`/`icresp`, command capsules, and `h2cdata`/`c2hdata` transfers.
- **Lossless AI/HPC RoCEv2 RDMA (`UDP 4791`):** `rocev2` builds InfiniBand Base Transport Headers (24-bit `destqp`, 24-bit PSN `seqnum`, `pkey 0xffff`), RDMA Extended Transport Headers (`addr`, `key`, `count`), and 4-byte Invariant ICRC trailers.
- **Cross-Layer QoS, VLAN & PFC Integration:** Wrap `someip`/`doip` in automotive `vlan` priorities (`pcp 5`) or pair `rocev2` with `dscp 26 ecn 3` and Layer 2 `pfc` pause quanta in a single `.frasm` file.

## Multi-Protocol Example: NVMe/TCP + RoCEv2 AI Storage Fabric & Automotive SOME/IP + DoIP ECU Bus (`automotive_san_rocev2_suite.frasm`)

Combines an NVMe/TCP `icreq`/`icresp` + namespace read on TCP 4420, an ECN-marked RoCEv2 RDMA Write on UDP 4791, an AUTOSAR SOME/IP OfferService multicast-style announcement on UDP 30490, and an ISO 13400 DoIP VIN identification exchange on UDP 13400.

```frameassembly
host initiator { ip 10.90.1.10 }
host target    { ip 10.90.1.20 }

compile {
    initiator -> target tcp syn srcport 51420 dstport 4420 win 65535 mss 1460 wait 1ms
    initiator <- target tcp syn ack win 65535 mss 1460 wait 1ms
    initiator -> target tcp ack wait 1ms
    initiator -> target nvmetcp icreq wait 1ms
    initiator <- target nvmetcp icresp wait 1ms
    initiator -> target nvmetcp read nsid 1 qid 1 reqid 10 offset 0 count 4096 wait 2ms
    initiator -> target rocev2 write destqp 0x000104 seqnum 1 addr 0x00007f8000100000 key 0x1a2b3c4d count 4096 ackreq dscp 26 ecn 3 wait 2ms
    initiator -> target someip offerservice sdservice 0x1234 instanceid 1 majorver 1 sdttl 3 endpointip 10.90.1.10 endpointport 30501 vlan 20 pcp 5 wait 2ms
    initiator -> target doip vehicleid transport udp wait 1ms
    initiator <- target doip announcement vin "WVWZZZ1JZ3W386752" eid 00:1a:2b:3c:4d:5e gid 00:1a:2b:3c:4d:5f src 0x0e80 transport udp
}
```

```bash
# 1. Eyeball relative timestamps, ports & wire lengths in your terminal
frameassembly show automotive_san_rocev2_suite.frasm

# 2. Compile .frasm -> classic .pcap, nanosecond .pcapng, or pipe via '-'
frameassembly automotive_san_rocev2_suite.frasm automotive_san_rocev2_suite.pcap
frameassembly automotive_san_rocev2_suite.frasm automotive_san_rocev2_suite.pcapng

# 3. Round-trip .pcap <-> .frasm whenever you want to scrub or tweak an existing capture
frameassembly reverse automotive_san_rocev2_suite.pcap automotive_san_rocev2_suite_edited.frasm

# 4. Verify dissected protocol fields in tshark
tshark -r automotive_san_rocev2_suite.pcap -Y "nvme-tcp || infiniband || someip || doip"
```

- **Wireshark Display Filter:** `nvme-tcp || infiniband || someip || doip`

## Protocols in Category 10 (5 Native Builders)

| # | Keyword | Protocol | Default Port / Proto | Endpoint Rule | Wireshark Filter | Spec URL |
| --- | --- | --- | --- | --- | --- | --- |
| 95 | `iscsi` | Internet Small Computer Systems Interface Block SAN | `TCP 3260` | Dual-Stack IPv4/IPv6 | `iscsi` | https://frameassembly-lang.dev/docs/protocols/iscsi |
| 96 | `nvmetcp` | NVM Express over Fabrics TCP Transport (TP 8000) | `TCP 4420` | Dual-Stack IPv4/IPv6 | `nvme-tcp` | https://frameassembly-lang.dev/docs/protocols/nvmetcp |
| 97 | `rocev2` | RDMA over Converged Ethernet v2 (InfiniBand Annex A17) | `UDP 4791` | Dual-Stack IPv4/IPv6 | `infiniband` | https://frameassembly-lang.dev/docs/protocols/rocev2 |
| 118 | `someip` | Scalable service-Oriented MiddlewarE over IP & Service Discovery | `UDP 30490 (or TCP 30490 via transport tcp)` | Dual-Stack IPv4/IPv6 | `someip` | https://frameassembly-lang.dev/docs/protocols/someip |
| 119 | `doip` | Diagnostics over Internet Protocol (Automotive UDS Transport) | `TCP 13400 (or UDP 13400 via transport udp)` | Dual-Stack IPv4/IPv6 | `doip` | https://frameassembly-lang.dev/docs/protocols/doip |
