# Industrial ICS/SCADA & IIoT Captures (Modbus, DNP3, S7comm, OPC UA)

> **FrameAssembly v3.2.2** · Anthology 11 (Layer 7 · 14 Recipes) · MIT License · Canonical URL: https://frameassembly-lang.dev/docs/examples/industrial-ics-scada-ot

Purdue-model OT firewall and passive ICS sensor validation across `modbus`, `dnp3` (reflected 0x3d65 CRC-16), Siemens `s7comm`, `opcua`, `bacnet`, `ethernetip` CIP, and constrained `coap`.

## Key Wire & Syntax Takeaways

- `modbus`, `dnp3`, and `ethernetip` are whitelisted dual-transport protocols supporting both stateful TCP conduits and `transport udp` I/O polling.
- `dnp3` computes IEEE 1815 reflected `0x3d65` CRC-16s over link headers and 16-byte data chunks automatically (or accepts `crc <u16>` negative tests).
- `s7comm` wraps TPKT + ISO 8073 COTP + Siemens `0x32` PDUs on TCP 102, while `opcua` frames binary `HEL`/`ACK`/`OPN`/`MSG`/`CLO` chunks on TCP 4840.

## 11.01 · Modbus TCP Register Poll vs. Modbus-over-UDP Serial Gateway (transport udp) (`modbus_tcp_and_udp_conduit.frasm`)

Tests Purdue Level 2 industrial firewall rules for standard Modbus/TCP polling alongside a serial-to-Ethernet gateway configured for UDP 502.

- **Protocols:** `tcp`, `modbus` (6 Ethernet frames)
- **Wire Behavior:** Encodes the 7-byte MBAP header (txid, protoid 0, length, unitid) across both TCP 502 and transport udp.
- **Wireshark Filter:** `mbtcp || modbus`
- **CLI Build:** `frameassembly modbus_tcp_and_udp_conduit.frasm`

```frameassembly
host scada_poller { ip 10.110.10.10 }
host plc_rack_01  { ip 10.110.20.50 }
host rtu_gw_udp   { ip 10.110.20.60 }

compile {
    scada_poller -> plc_rack_01 tcp syn srcport 50502 dstport 502 win 65535 mss 1460 wait 1ms
    scada_poller <- plc_rack_01 tcp syn ack win 65535 mss 1460 wait 1ms
    scada_poller -> plc_rack_01 tcp ack wait 1ms
    scada_poller -> plc_rack_01 modbus readholdingregisters txid 101 unitid 1 addr 40001 count 4 wait 2ms
    scada_poller <- plc_rack_01 modbus readholdingregisters isresponse txid 101 unitid 1 count 4 wait 5ms
    scada_poller -> rtu_gw_udp modbus readinputregisters txid 201 unitid 2 addr 30001 count 2 transport udp
}
```

## 11.02 · DNP3 Valid IEEE 1815 CRC-16 vs. Intentional Corrupted CRC Negative Test (`dnp3_crc_negative_validation.frasm`)

Sends a valid UDP 20000 DNP3 Analog Input read (auto CRC-16) followed by an explicit corrupted crc 0xdead packet to verify OT IDS malformed-frame alerts.

- **Protocols:** `dnp3` (3 Ethernet frames)
- **Wire Behavior:** Omitting crc computes exact reflected 0x3d65 CRC-16s; setting crc 0xdead overrides the link-header checksum intentionally.
- **Wireshark Filter:** `dnp3`
- **CLI Build:** `frameassembly dnp3_crc_negative_validation.frasm`

```frameassembly
host sub_master { ip 172.25.0.10 }
host bay_rtu    { ip 172.25.0.25 }

compile {
    sub_master -> bay_rtu dnp3 read src 1 dst 25 group 30 variation 1 transport udp wait 5ms
    sub_master <- bay_rtu dnp3 response src 25 dst 1 group 30 variation 1 transport udp wait 10ms
    sub_master -> bay_rtu dnp3 read src 1 dst 25 group 30 variation 1 crc 0xdead transport udp
}
```

## 11.03 · Minimal Two-Block Modbus TCP (`modbus`) Quickstart (`modbus_quickstart.frasm`)

Smallest zero-boilerplate `host` + `compile` capture for Modbus TCP / UDP Industrial Application Protocol (TCP 502 (or UDP 502 via transport udp), Dual-Stack IPv4/IPv6).

- **Protocols:** `modbus` (5 Ethernet frames)
- **Wire Behavior:** Defaults to TCP destination port `502` (`psh ack`), Protocol ID `0`, `unitid 1`, and computes the 16-bit MBAP `Length` (`unitid + PDU bytes`) automatically.
- **Wireshark Filter:** `mbtcp || modbus`
- **CLI Build:** `frameassembly modbus_quickstart.frasm`

```frameassembly
host scada_hmi { ip 192.168.100.10 }
host plc_pump1 { ip 192.168.100.50 }

compile {
    scada_hmi -> plc_pump1 tcp syn srcport 50502 dstport 502 wait 1ms
    scada_hmi <- plc_pump1 tcp syn ack wait 1ms
    scada_hmi -> plc_pump1 tcp ack wait 1ms
    scada_hmi -> plc_pump1 modbus readholdingregisters txid 1 unitid 1 addr 100 count 2 wait 3ms
    scada_hmi <- plc_pump1 modbus readholdingregisters txid 1 unitid 1 count 2 value 1500 isresponse
}
```

## 11.04 · Minimal Two-Block DNP3 (IEEE 1815) (`dnp3`) Quickstart (`dnp3_quickstart.frasm`)

Smallest zero-boilerplate `host` + `compile` capture for Distributed Network Protocol 3 (Electric & Water Utilities) (TCP 20000 (or UDP 20000 via transport udp), Dual-Stack IPv4/IPv6).

- **Protocols:** `dnp3` (5 Ethernet frames)
- **Wire Behavior:** Defaults to TCP destination port `20000` (`transport udp` switches to UDP `20000`) and builds the `0x0564` Data Link + Transport (`FIN|FIR`) + Application headers.
- **Wireshark Filter:** `dnp3`
- **CLI Build:** `frameassembly dnp3_quickstart.frasm`

```frameassembly
host scada_master { ip 10.100.1.10 }
host sub_rtu_10   { ip 10.100.2.10 }

compile {
    scada_master -> sub_rtu_10 tcp syn srcport 52000 dstport 20000 wait 1ms
    scada_master <- sub_rtu_10 tcp syn ack wait 1ms
    scada_master -> sub_rtu_10 tcp ack wait 1ms
    scada_master -> sub_rtu_10 dnp3 read src 1 dst 10 group 30 variation 1 wait 3ms
    scada_master <- sub_rtu_10 dnp3 response src 10 dst 1 group 30 variation 1
}
```

## 11.05 · Minimal Two-Block Siemens S7comm (`s7comm`) Quickstart (`s7comm_quickstart.frasm`)

Smallest zero-boilerplate `host` + `compile` capture for Siemens S7 Communication Protocol over ISO-on-TCP (TCP 102 (ISO-on-TCP), Dual-Stack IPv4/IPv6).

- **Protocols:** `s7comm` (6 Ethernet frames)
- **Wire Behavior:** Defaults to TCP destination port `102` (`psh ack`) and computes the outer 4-byte TPKT (`0x03 0x00 <len>`) + 3-byte COTP DT (`0x02 0xf0 0x80`) framing automatically.
- **Wireshark Filter:** `s7comm`
- **CLI Build:** `frameassembly s7comm_quickstart.frasm`

```frameassembly
host wincc_hmi { ip 192.168.10.20 }
host s7_plc    { ip 192.168.10.100 }

compile {
    wincc_hmi -> s7_plc tcp syn srcport 50102 dstport 102 wait 1ms
    wincc_hmi <- s7_plc tcp syn ack wait 1ms
    wincc_hmi -> s7_plc tcp ack wait 1ms
    wincc_hmi -> s7_plc s7comm rosctr "job" setupcomm pduref 1 wait 2ms
    wincc_hmi <- s7_plc s7comm rosctr "ackdata" setupcomm pduref 1 wait 2ms
    wincc_hmi -> s7_plc s7comm rosctr "job" readvar pduref 2 area 0x84 dbnum 1 offset 0 count 4
}
```

## 11.06 · Minimal Two-Block OPC UA (`opcua`) Quickstart (`opcua_quickstart.frasm`)

Smallest zero-boilerplate `host` + `compile` capture for OPC Unified Architecture Binary TCP Protocol (TCP 4840, Dual-Stack IPv4/IPv6).

- **Protocols:** `opcua` (5 Ethernet frames)
- **Wire Behavior:** Defaults to TCP destination port `4840` (`psh ack`), `msgtype "HEL"`, `chunktype "F"`, and calculates the 4-byte little-endian `MessageSize` across the entire OPC UA frame.
- **Wireshark Filter:** `opcua`
- **CLI Build:** `frameassembly opcua_quickstart.frasm`

```frameassembly
host historian { ip 10.130.35.10 }
host ua_server { ip 10.130.20.48 }

compile {
    historian -> ua_server tcp syn srcport 54840 dstport 4840 wait 1ms
    historian <- ua_server tcp syn ack wait 1ms
    historian -> ua_server tcp ack wait 1ms
    historian -> ua_server opcua msgtype "HEL" chunktype "F" endpointurl "opc.tcp://10.130.20.48:4840" wait 2ms
    historian <- ua_server opcua msgtype "ACK" chunktype "F"
}
```

## 11.07 · Minimal Two-Block CoAP (IoT) (`coap`) Quickstart (`coap_quickstart.frasm`)

Smallest zero-boilerplate `host` + `compile` capture for Constrained Application Protocol (UDP 5683, Dual-Stack IPv4/IPv6).

- **Protocols:** `coap` (2 Ethernet frames)
- **Wire Behavior:** Defaults to UDP destination port `5683` and packs CoAP Version `1`, 2-bit Type, Token Length (`TKL`), 1-byte `c.dd` Code (`(class << 5) | detail`), and 16-bit `msgid`.
- **Wireshark Filter:** `coap`
- **CLI Build:** `frameassembly coap_quickstart.frasm`

```frameassembly
host sensor_01 { ip 10.70.1.50 }
host iot_gw    { ip 10.70.1.1 }

compile {
    sensor_01 -> iot_gw coap con post msgid 101 token 0x4a1b uripath "telemetry/humidity" contentformat 50 payload "{\"rh\":48.2}" wait 3ms
    sensor_01 <- iot_gw coap ack changed msgid 101 token 0x4a1b
}
```

## 11.08 · Modbus TCP (`modbus`): Normal Historian Read Polling (`FC 3`) + Unauthorized Coil/Register Write (`FC 5` / `FC 6`) (`modbus_ot_conduit_test.frasm`)

Models an HMI polling Holding Registers on Unit 1 (`FC 3` request + `isresponse` reply), followed by a `writesinglecoil` (`FC 5`) and `writesingleregister` (`FC 6`) command to test OT write-detection alarms.

- **Protocols:** `modbus`, `tcp` (8 Ethernet frames)
- **Wire Behavior:** Defaults to TCP destination port `502` (`psh ack`), Protocol ID `0`, `unitid 1`, and computes the 16-bit MBAP `Length` (`unitid + PDU bytes`) automatically. Formats client Request PDUs (`addr` + `count` / `value`) by default, and switches to PLC Response PDUs (`byte_count` + register/coil values) when `isresponse` is set.
- **Wireshark Filter:** `mbtcp || modbus`
- **CLI Build:** `frameassembly show modbus_ot_conduit_test.frasm`

```frameassembly
host hmi_01   { ip 10.100.10.15 }
host vfd_plc  { ip 10.100.20.50 }

compile {
    hmi_01 -> vfd_plc tcp syn srcport 51502 dstport 502 win 65535 mss 1460 wait 1ms
    hmi_01 <- vfd_plc tcp syn ack win 65535 mss 1460 wait 1ms
    hmi_01 -> vfd_plc tcp ack wait 1ms
    // 1. Authorized Read Holding Registers (FC 3) + PLC Response (isresponse)
    hmi_01 -> vfd_plc modbus readholdingregisters txid 101 unitid 1 addr 0 count 4 wait 2ms
    hmi_01 <- vfd_plc modbus readholdingregisters txid 101 unitid 1 count 4 value 3600 isresponse wait 5ms
    // 2. Write Single Coil (FC 5) & Write Single Register (FC 6) -> triggers OT IDS write alert!
    hmi_01 -> vfd_plc modbus writesinglecoil txid 102 unitid 1 addr 10 value 1 wait 2ms
    hmi_01 <- vfd_plc modbus writesinglecoil txid 102 unitid 1 addr 10 value 1 isresponse wait 3ms
    hmi_01 -> vfd_plc modbus writesingleregister txid 103 unitid 1 addr 200 value 1800
}
```

## 11.09 · BACnet/IP (`bacnet`): Data-Center CRAC Discovery (`Who-Is`/`I-Am`), Temperature Read & Setpoint Write (`bacnet_dc_cooling_audit.frasm`)

Discovers CRAC device instance `2001`, reads Analog-Input 1 `Present-Value` (`propertyid 85`), and tests an unauthorized `writeproperty` setpoint change.

- **Protocols:** `bacnet` (4 Ethernet frames)
- **Wire Behavior:** Defaults to UDP source and destination port `47808` (`0xbac0`) and sets BVLC Function to `0x0b` (`Original-Broadcast-NPDU`) on `whois`/`iam` or `0x0a` (`Original-Unicast-NPDU`) on `readproperty`/`writeproperty`. Bit-packs the 10-bit `objecttype` and 22-bit `objectinstance` into the 32-bit ASHRAE 135 `BACnetObjectIdentifier` tag.
- **Wireshark Filter:** `bacnet || bvlc || bacapp`
- **CLI Build:** `frameassembly show bacnet_dc_cooling_audit.frasm`

```frameassembly
host bms_workstation { ip 192.168.90.10 }
host crac_unit_04    { ip 192.168.90.40 }

compile {
    // 1. Device discovery: Who-Is -> I-Am (Object Type 8 = Device, Instance 2001)
    bms_workstation -> crac_unit_04 bacnet whois wait 2ms
    bms_workstation <- crac_unit_04 bacnet iam objecttype 8 objectinstance 2001 wait 5ms
    // 2. Read return-air temperature (Object Type 0 = Analog-Input, Property 85 = Present-Value)
    bms_workstation -> crac_unit_04 bacnet readproperty invokeid 10 objecttype 0 objectinstance 1 propertyid 85 wait 4ms
    // 3. Write chiller setpoint (Object Type 2 = Analog-Value, Property 85 = Present-Value)
    bms_workstation -> crac_unit_04 bacnet writeproperty invokeid 11 objecttype 2 objectinstance 1 propertyid 85 value 24
}
```

## 11.10 · DNP3 (IEEE 1815) (`dnp3`): Substation Analog Input Poll (`Group 30`) + Select-Before-Operate (`Group 12` CROB) (`dnp3_substation_sbo.frasm`)

Polls Analog Inputs (`group 30 variation 1`), receives an RTU `unsolicitedresponse` event (`group 2` Binary Input Change), and executes a two-step `select` -> `operate` breaker sequence.

- **Protocols:** `dnp3`, `tcp` (10 Ethernet frames)
- **Wire Behavior:** Defaults to TCP destination port `20000` (`transport udp` switches to UDP `20000`) and builds the `0x0564` Data Link + Transport (`FIN|FIR`) + Application headers. Computes the reflected IEEE 1815 `0x3d65` CRC-16 across the 8-byte Data Link header and every 16-byte user-data chunk automatically.
- **Wireshark Filter:** `dnp3`
- **CLI Build:** `frameassembly show dnp3_substation_sbo.frasm`

```frameassembly
host ems_master { ip 172.25.1.5 }
host feeder_rtu { ip 172.25.10.20 }

compile {
    ems_master -> feeder_rtu tcp syn srcport 53000 dstport 20000 win 65535 mss 1460 wait 1ms
    ems_master <- feeder_rtu tcp syn ack win 65535 mss 1460 wait 1ms
    ems_master -> feeder_rtu tcp ack wait 1ms
    // 1. Class/Group 30 Analog Input Read + RTU Response
    ems_master -> feeder_rtu dnp3 read src 1 dst 20 group 30 variation 1 wait 3ms
    ems_master <- feeder_rtu dnp3 response src 20 dst 1 group 30 variation 1 wait 10ms
    // 2. RTU Unsolicited Event (Group 2 Binary Input Event) + Master Confirm
    ems_master <- feeder_rtu dnp3 unsolicitedresponse src 20 dst 1 group 2 variation 2 wait 2ms
    ems_master -> feeder_rtu dnp3 confirm src 1 dst 20 wait 5ms
    // 3. Select-Before-Operate (Group 12 Variation 1 CROB) -> triggers high-priority OT alert
    ems_master -> feeder_rtu dnp3 select src 1 dst 20 group 12 variation 1 wait 2ms
    ems_master <- feeder_rtu dnp3 response src 20 dst 1 group 12 variation 1 wait 2ms
    ems_master -> feeder_rtu dnp3 operate src 1 dst 20 group 12 variation 1
}
```

## 11.11 · Siemens S7comm (`s7comm`): S7 Communication Setup, DB1 Read Poll, DB1 Write & PLC CPU Control Alert (`s7comm_plc_security_lab.frasm`)

Negotiates S7 PDU parameters (`setupcomm`), polls 4 bytes from `DB1.DBB0` (`area 0x84 dbnum 1`), writes to `DB1`, and emits a `plccontrol` Job to test critical OT security alerts.

- **Protocols:** `s7comm`, `tcp` (10 Ethernet frames)
- **Wire Behavior:** Defaults to TCP destination port `102` (`psh ack`) and computes the outer 4-byte TPKT (`0x03 0x00 <len>`) + 3-byte COTP DT (`0x02 0xf0 0x80`) framing automatically. Writes the `0x32` S7 Protocol ID, ROSCTR (`0x01` Job, `0x02` Ack, `0x03` Ack_Data, `0x07` Userdata), 2-byte error class/code on `ackdata`, and exact Parameter/Data lengths.
- **Wireshark Filter:** `s7comm`
- **CLI Build:** `frameassembly show s7comm_plc_security_lab.frasm`

```frameassembly
host tia_ws  { ip 10.110.1.15 }
host plc_315 { ip 10.110.2.102 }

compile {
    tia_ws -> plc_315 tcp syn srcport 51102 dstport 102 win 65535 mss 1460 wait 1ms
    tia_ws <- plc_315 tcp syn ack win 65535 mss 1460 wait 1ms
    tia_ws -> plc_315 tcp ack wait 1ms
    // 1. S7 Setup Communication (Func 0xf0)
    tia_ws -> plc_315 s7comm rosctr "job" setupcomm pduref 100 wait 2ms
    tia_ws <- plc_315 s7comm rosctr "ackdata" setupcomm pduref 100 wait 2ms
    // 2. Read 4 bytes from Data Block 1 (area 0x84 = DB, dbnum 1, offset 0)
    tia_ws -> plc_315 s7comm rosctr "job" readvar pduref 101 area 0x84 dbnum 1 offset 0 count 4 wait 2ms
    tia_ws <- plc_315 s7comm rosctr "ackdata" readvar pduref 101 count 4 wait 5ms
    // 3. WriteVar (0x05) + PLCControl (0x28) -> critical OT IDS signatures
    tia_ws -> plc_315 s7comm rosctr "job" writevar pduref 102 area 0x84 dbnum 1 offset 0 count 2 wait 3ms
    tia_ws <- plc_315 s7comm rosctr "ackdata" writevar pduref 102 wait 3ms
    tia_ws -> plc_315 s7comm rosctr "job" plccontrol pduref 103
}
```

## 11.12 · EtherNet/IP (CIP) (`ethernetip`): PLC Discovery (`ListIdentity`), Session Registration, CIP Attribute Read & UDP 2222 I/O (`ethernetip_cip_cell.frasm`)

Performs a `listidentity` check, registers session `0x00010042` on TCP 44818, reads Assembly Instance `100` Attribute `3` (`Get_Attribute_Single` `0x0e`), and sends an implicit I/O packet on UDP 2222.

- **Protocols:** `ethernetip`, `tcp` (9 Ethernet frames)
- **Wire Behavior:** Selects TCP port `44818` for explicit encapsulation commands (`registersession`, `listidentity`, `sendrrdata`) and automatically switches to UDP port `2222` on `sendunitdata` or `transport udp`. Encodes the 24-byte little-endian EtherNet/IP Encapsulation Header (`Command`, `Length`, `Session Handle`, `Status`, 8-byte `Sender Context`, `Options`).
- **Wireshark Filter:** `enip || cip`
- **CLI Build:** `frameassembly show ethernetip_cip_cell.frasm`

```frameassembly
host studio_ws { ip 10.120.10.15 }
host clx_plc   { ip 10.120.10.60 }

compile {
    studio_ws -> clx_plc tcp syn srcport 51818 dstport 44818 win 65535 mss 1460 wait 1ms
    studio_ws <- clx_plc tcp syn ack win 65535 mss 1460 wait 1ms
    studio_ws -> clx_plc tcp ack wait 1ms
    // 1. ListIdentity (0x0063) + RegisterSession (0x0065)
    studio_ws -> clx_plc ethernetip listidentity wait 2ms
    studio_ws -> clx_plc ethernetip registersession context 0x1122334455667788 wait 2ms
    studio_ws <- clx_plc ethernetip registersession sessionhandle 0x00010042 context 0x1122334455667788 status 0 wait 3ms
    // 2. SendRRData (0x006f): CIP Get_Attribute_Single (0x0e) on Assembly Object (0x04), Instance 100, Attr 3
    studio_ws -> clx_plc ethernetip sendrrdata sessionhandle 0x00010042 cipservice 0x0e cipclass 0x04 cipinstance 100 cipattr 3 wait 4ms
    // 3. Implicit CIP I/O over UDP 2222 + UnRegisterSession
    studio_ws -> clx_plc ethernetip sendunitdata sessionhandle 0x00010042 cipservice 0x0e cipclass 0x04 cipinstance 150 cipattr 3 transport udp wait 3ms
    studio_ws -> clx_plc ethernetip unregistersession sessionhandle 0x00010042
}
```

## 11.13 · OPC UA (`opcua`): Complete OPC UA Connection (`HEL`/`ACK`), `OpenSecureChannel`, `NodeId` Read & `CLO` (`opcua_idmz_historian.frasm`)

Establishes an OPC UA Binary TCP 4840 session across an Industrial DMZ, opens Secure Channel `1`, reads `"ns=2;s=Turbine1.RPM"` via `"MSG"`, and closes cleanly with `"CLO"`.

- **Protocols:** `opcua`, `tcp` (9 Ethernet frames)
- **Wire Behavior:** Defaults to TCP destination port `4840` (`psh ack`), `msgtype "HEL"`, `chunktype "F"`, and calculates the 4-byte little-endian `MessageSize` across the entire OPC UA frame. Encodes IEC 62541-6 receive/send buffer sizes (`65535`) + length-prefixed UTF-8 `endpointurl` inside `"HEL"` and `"ACK"` frames.
- **Wireshark Filter:** `opcua`
- **CLI Build:** `frameassembly show opcua_idmz_historian.frasm`

```frameassembly
host idmz_hist { ip 172.18.35.20 }
host plant_ua  { ip 192.168.48.10 }

compile {
    idmz_hist -> plant_ua tcp syn srcport 51840 dstport 4840 win 65535 mss 1460 wait 1ms
    idmz_hist <- plant_ua tcp syn ack win 65535 mss 1460 wait 1ms
    idmz_hist -> plant_ua tcp ack wait 1ms
    // 1. Transport Hello / Acknowledge
    idmz_hist -> plant_ua opcua msgtype "HEL" chunktype "F" endpointurl "opc.tcp://192.168.48.10:4840/UA/PlantServer" wait 2ms
    idmz_hist <- plant_ua opcua msgtype "ACK" chunktype "F" wait 2ms
    // 2. OpenSecureChannel (OPN)
    idmz_hist -> plant_ua opcua msgtype "OPN" chunktype "F" securechannelid 0 seqnum 1 reqid 1 wait 2ms
    idmz_hist <- plant_ua opcua msgtype "OPN" chunktype "F" securechannelid 1 tokenid 1 seqnum 1 reqid 1 wait 3ms
    // 3. Service Read Request (MSG) for NodeId + CloseSecureChannel (CLO)
    idmz_hist -> plant_ua opcua msgtype "MSG" chunktype "F" securechannelid 1 tokenid 1 seqnum 2 reqid 2 nodeid "ns=2;s=Turbine1.RPM" wait 4ms
    idmz_hist -> plant_ua opcua msgtype "CLO" chunktype "F" securechannelid 1 tokenid 1 seqnum 3 reqid 3
}
```

## 11.14 · CoAP (IoT) (`coap`): Confirmable CoAP Sensor GET (`2.05 Content`) & Missing Resource (`4.04`) (`coap_ipv6_sensors.frasm`)

Queries `/sensors/temp` over IPv6 receiving a piggybacked `ack` with `code "2.05"` JSON payload, then queries an unknown path returning `notfound` (`4.04`).

- **Protocols:** `coap` (4 Ethernet frames)
- **Wire Behavior:** Defaults to UDP destination port `5683` and packs CoAP Version `1`, 2-bit Type, Token Length (`TKL`), 1-byte `c.dd` Code (`(class << 5) | detail`), and 16-bit `msgid`. Splits slash-separated `uripath` strings (`"telemetry/humidity"`) into individual delta-encoded Option `11` (`Uri-Path`) segments automatically.
- **Wireshark Filter:** `coap`
- **CLI Build:** `frameassembly show coap_ipv6_sensors.frasm`

```frameassembly
host collector { ip 2001:db8:70::1 }
host mote_12   { ip 2001:db8:70::12 }

compile {
    // 1. Confirmable GET -> Piggybacked ACK 2.05 Content (contentformat 50 = application/json)
    collector -> mote_12 coap con get msgid 500 token 0x0102 uripath "sensors/temp" wait 4ms
    collector <- mote_12 coap ack code "2.05" msgid 500 token 0x0102 contentformat 50 payload "{\"c\":22.4}" wait 5ms
    // 2. Unknown URI -> 4.04 Not Found
    collector -> mote_12 coap con get msgid 501 token 0x0103 uripath "sensors/valve9" wait 4ms
    collector <- mote_12 coap ack notfound msgid 501 token 0x0103
}
```
