Real-Time Embedded Network Stack
| 1 | # RTNet Verification Report |
| 2 | |
| 3 | ## Scope |
| 4 | This report summarizes current verification evidence for the RTNet stack (host build with stubs). |
| 5 | |
| 6 | ## Test Suite |
| 7 | - **Unit/Integration/Stress/Timing**: `rtns_tests.exe` |
| 8 | - RX/TX parameter validation |
| 9 | - Routing limits and overflow handling |
| 10 | - UDP/TCP lifecycle (simplified TCP-Lite) |
| 11 | - mDNS query/announce stubs |
| 12 | - QoS prioritization and buffer exhaustion |
| 13 | - WCET helper (uses host timer stub) |
| 14 | - Checksum vector sanity |
| 15 | |
| 16 | Run: |
| 17 | ``` |
| 18 | cmake --build build --config Debug |
| 19 | ctest --test-dir build -C Debug --output-on-failure |
| 20 | # or |
| 21 | .\build\Debug\rtns_tests.exe |
| 22 | ``` |
| 23 | |
| 24 | ## Formal / Static |
| 25 | - Checksum implementation validated against RFC 1071 vector in tests (host stub acknowledges). |
| 26 | - Codebase structured for MISRA C:2012 and static analysis (Clang static analyzer referenced in headers). |
| 27 | |
| 28 | ## Known Limitations (Host Build) |
| 29 | - Hardware TX/RX are stubbed; no real packet I/O. |
| 30 | - mDNS operations return timeout/success placeholders. |
| 31 | - Timing results are synthetic (`RTNET_GetTimeMs` stub increments by 10 ms). |
| 32 | |
| 33 | ## Next Steps |
| 34 | - Integrate real BSP hooks and rerun tests on target hardware. |
| 35 | - Extend checksum vectors and add negative-path TCP tests. |
| 36 | - Add continuous static analysis (clang-tidy) and coverage reports. |
| 37 |