Skip to content

fix(perf): TRex ASTFIPGen.glob type + client ip_gen (profile build)#106

Merged
gspivey merged 1 commit into
developmentfrom
agent/trex-astf-profile-fix
Jul 1, 2026
Merged

fix(perf): TRex ASTFIPGen.glob type + client ip_gen (profile build)#106
gspivey merged 1 commit into
developmentfrom
agent/trex-astf-profile-fix

Conversation

@gspivey

@gspivey gspivey commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Follow-up to #105 (which cleared the ip_range error). Run 28540393082 hit the next ArgVerify:

ASTFIPGen 'glob' must be of type ASTFIPGenGlobal

Reviewed the whole build_tcp_profile against the TRex ASTF API and fixed two things at once:

  • glob=ASTFIPGenGlobal(ip_offset="1.0.0.0") (was an ASTFIPGenDist — wrong type).
  • ASTFTCPClientTemplate now passes ip_gen= (canonical form).

py_compile clean, harness tests green, + a regression check for the glob type.

⚠️ Meta note

This is the 4th TRex-profile API error found one-at-a-time via ~30-min EC2 runs — that ASTF profile was clearly never validated against a real TRex, and one-per-run is exactly the expensive-testing trap. Strongly recommend a follow-up: validate build_tcp_profile offline (the TRex control-plane ArgVerify is pure Python — no NIC needed) so all such errors surface in <1s locally. I can set that up instead of continuing the EC2 whack-a-mole — your call.

🤖 Generated with Claude Code

…_gen

Run 28540393082 (post-#105) cleared the ip_range error and hit the next
profile-build ArgVerify: ASTFIPGen 'glob' must be ASTFIPGenGlobal, not
ASTFIPGenDist. Reviewed the whole build_tcp_profile against the TRex ASTF API
and fixed two issues at once to avoid another EC2 round-trip:
  - glob=ASTFIPGenGlobal(ip_offset='1.0.0.0') (was ASTFIPGenDist)
  - ASTFTCPClientTemplate now passes ip_gen= (canonical form)
Regression check asserts glob is not an ASTFIPGenDist.

NOTE: this is the 4th TRex-profile API error found one-at-a-time on real
hardware — the ASTF profile was never validated against TRex. Follow-up:
validate build_tcp_profile offline (TRex control-plane ArgVerify is pure
Python) so these are caught in <1s instead of a 30-min EC2 run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Synthetic Performance Results — Graviton (run)

Commit: fb71f5a6

✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)

Synthetic UDP Performance Results

Measures framework overhead: sync dpdk_udp::UdpSocket vs async (std::sync::Mutex + try_recv_from).

IPv4 Baseline

Test Payload Sync PPS Async PPS Ratio (sync/async) Async ns/op
TX send_to 64B 11.7M 11.3M 1.0x 88
RX recv_from 64B 3.6M 4.8M 0.8x 208
TX send_to 1400B 1.8M 1.8M 1.0x 549
RX recv_from 1400B 1.2M 1.3M 0.9x 789

IPv6

Test Payload Sync PPS Async PPS Ratio (sync/async) Async ns/op
TX send_to (IPv6) 64B 9.1M 8.9M 1.0x 112
RX recv_from (IPv6) 64B 4.1M 5.5M 0.7x 183
TX send_to (IPv6) 1400B 3.0M 3.0M 1.0x 328
RX recv_from (IPv6) 1400B 1.2M 1.3M 0.9x 752

IPv6 vs IPv4 Comparison (sync path)

Test Payload IPv4 PPS IPv6 PPS IPv4/IPv6 Ratio
TX send_to (sync) 64B 11.7M 9.1M 1.29x
RX recv_from (sync) 64B 3.6M 4.1M 0.89x
TX send_to (sync) 1400B 1.8M 3.0M 0.61x
RX recv_from (sync) 1400B 1.2M 1.2M 0.96x

IPv4 avg sync/async ratio: 0.9x, worst: 1.0x | IPv6 vs IPv4 worst ratio: 1.29x (OK)

OK: IPv6 is 29.4% slower than IPv4 — within acceptable threshold (<50%). Expected due to larger headers (40B vs 20B) and mandatory UDP checksum.

Good: Async wrapper is within 1.0x of sync — minimal framework overhead.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Synthetic Performance Results (run)

Commit: fb71f5a6

✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to 10.0.0.1:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)
✅ synthetic UDP socket bound to [2001:db8::1]:9000 (MAC: 02:00:00:00:00:01)

Synthetic UDP Performance Results

Measures framework overhead: sync dpdk_udp::UdpSocket vs async (std::sync::Mutex + try_recv_from).

IPv4 Baseline

Test Payload Sync PPS Async PPS Ratio (sync/async) Async ns/op
TX send_to 64B 10.7M 11.0M 1.0x 90
RX recv_from 64B 3.3M 4.2M 0.8x 239
TX send_to 1400B 1.6M 1.6M 1.0x 614
RX recv_from 1400B 963.8K 1.0M 0.9x 968

IPv6

Test Payload Sync PPS Async PPS Ratio (sync/async) Async ns/op
TX send_to (IPv6) 64B 8.6M 8.5M 1.0x 118
RX recv_from (IPv6) 64B 3.9M 5.4M 0.7x 185
TX send_to (IPv6) 1400B 2.7M 2.6M 1.0x 378
RX recv_from (IPv6) 1400B 992.8K 1.1M 0.9x 946

IPv6 vs IPv4 Comparison (sync path)

Test Payload IPv4 PPS IPv6 PPS IPv4/IPv6 Ratio
TX send_to (sync) 64B 10.7M 8.6M 1.24x
RX recv_from (sync) 64B 3.3M 3.9M 0.86x
TX send_to (sync) 1400B 1.6M 2.7M 0.62x
RX recv_from (sync) 1400B 963.8K 992.8K 0.97x

IPv4 avg sync/async ratio: 0.9x, worst: 1.0x | IPv6 vs IPv4 worst ratio: 1.24x (OK)

OK: IPv6 is 23.7% slower than IPv4 — within acceptable threshold (<50%). Expected due to larger headers (40B vs 20B) and mandatory UDP checksum.

Good: Async wrapper is within 1.0x of sync — minimal framework overhead.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

[CI] Stage: Deploy

Infrastructure ready.

  • Sender: i-09d90653a1f3b87b7 (DPDK ENI: 10.0.1.72)
  • Receiver: i-0d8b0578ea63965db (DPDK ENI: 10.0.1.221)
  • Both instances SSM-ready.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

[CI] Stage: Deploy

Infrastructure ready.

  • Sender: i-0b16cc40003e2bc87 (DPDK ENI: 10.0.1.98)
  • Receiver: i-043b12e3fdac3e5bf (DPDK ENI: 10.0.1.6)
  • Both instances SSM-ready.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

[CI] Stage: Summary

All tests PASSED.

ARP seeding: kernel /proc/net/arp (automatic)

  • tier1-dpdk-echo: 6 tests, 0 failures
  • tier2-kernel-interop: 4 tests, 0 failures
  • tier3-iperf-interop: 1 tests, 0 failures
  • tier3-iperf-interop: 1 tests, 0 failures

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

✅ Integration Tests Passed — Graviton (run)

Branch: 106/merge | Commit: fb71f5a6

Test Results

  • tier1-dpdk-echo.xml: 6 tests, 0 failures
  • tier2-kernel-interop.xml: 4 tests, 0 failures
  • tier3-iperf-sends.xml: 1 tests, 0 failures
  • tier3-our-app-sends.xml: 1 tests, 0 failures

Application Logs (last 20 lines)

receiver-echo-server.log

EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Warning: Some RX offloads not supported by device (flags: 0x1)
Warning: Some TX offloads not supported by device (flags: 0x1)
✅ DPDK UDP socket bound to 10.0.1.221:9000 (MAC: 02:83:ac:08:0e:73)
echo listening on 10.0.1.221:9000 (MTU=9001, max_udp_payload=8973)
Shutting down gracefully...

sender-echo-server.log

EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Warning: Some RX offloads not supported by device (flags: 0x1)
Warning: Some TX offloads not supported by device (flags: 0x1)
✅ DPDK UDP socket bound to 10.0.1.72:9000 (MAC: 02:80:b8:c6:f9:87)
echo listening on 10.0.1.72:9000 (MTU=9001, max_udp_payload=8973)
Shutting down gracefully...

sender-test-client.log

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
TELEMETRY: No legacy callbacks, legacy socket not created
DPDK bind failed (Port init failed: Invalid port ID: 0), falling back to tokio
Backend: tokio
Sending packets...
Sent 12 bytes: 'arp-probe #1'
Received 12 bytes from 10.0.1.221:9000: 'arp-probe #1'
Test complete
[2026-07-01T19:35:34Z] INFO: ARP resolution succeeded (got response from peer)
[2026-07-01T19:35:34Z] INFO: Test: udp_send_receive
[2026-07-01T19:35:35Z] INFO: UDP send/receive succeeded
[2026-07-01T19:35:35Z] INFO: Test: echo_roundtrip
[2026-07-01T19:35:36Z] INFO: Echo roundtrip succeeded: 5/5 responses received
[2026-07-01T19:35:36Z] INFO: Test: payload_integrity
[2026-07-01T19:35:36Z] INFO: Response received, checking payload match...
[2026-07-01T19:35:36Z] INFO: Payload integrity verified (found in response)
[2026-07-01T19:35:36Z] INFO: JUnit XML written to: /tmp/test-results/tier2-kernel-interop.xml
[2026-07-01T19:35:36Z] INFO: Tier 2 sender tests complete. Results: /tmp/test-results/tier2-kernel-interop.xml

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

[CI] Stage: Summary

All tests PASSED.

ARP seeding: kernel /proc/net/arp (automatic)

  • tier1-dpdk-echo: 6 tests, 0 failures
  • tier2-kernel-interop: 4 tests, 0 failures
  • tier3-iperf-interop: 1 tests, 0 failures
  • tier3-iperf-interop: 1 tests, 0 failures

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

✅ Integration Tests Passed (Run 28542011384)

Branch: 106/merge | Commit: fb71f5a6

Test Results

  • tier1-dpdk-echo.xml: 6 tests, 0 failures, skipped
  • tier2-kernel-interop.xml: 4 tests, 0 failures, skipped
  • tier3-iperf-sends.xml: 1 tests, 0 failures, skipped
  • tier3-our-app-sends.xml: 1 tests, 0 failures, skipped

Application Logs (last 20 lines)

receiver-echo-server.log

EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Warning: Some RX offloads not supported by device (flags: 0x1)
Warning: Some TX offloads not supported by device (flags: 0x1)
✅ DPDK UDP socket bound to 10.0.1.6:9000 (MAC: 02:c3:ef:55:e6:e7)
echo listening on 10.0.1.6:9000 (MTU=9001, max_udp_payload=8973)
Shutting down gracefully...

sender-echo-server.log

EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Warning: Some RX offloads not supported by device (flags: 0x1)
Warning: Some TX offloads not supported by device (flags: 0x1)
✅ DPDK UDP socket bound to 10.0.1.98:9000 (MAC: 02:ee:7e:21:4a:3f)
echo listening on 10.0.1.98:9000 (MTU=9001, max_udp_payload=8973)
Shutting down gracefully...

sender-test-client.log

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
TELEMETRY: No legacy callbacks, legacy socket not created
DPDK bind failed (Port init failed: Invalid port ID: 0), falling back to tokio
Backend: tokio
Sending packets...
Sent 12 bytes: 'arp-probe #1'
Received 12 bytes from 10.0.1.6:9000: 'arp-probe #1'
Test complete
[2026-07-01T19:38:42Z] INFO: ARP resolution succeeded (got response from peer)
[2026-07-01T19:38:42Z] INFO: Test: udp_send_receive
[2026-07-01T19:38:43Z] INFO: UDP send/receive succeeded
[2026-07-01T19:38:43Z] INFO: Test: echo_roundtrip
[2026-07-01T19:38:44Z] INFO: Echo roundtrip succeeded: 5/5 responses received
[2026-07-01T19:38:44Z] INFO: Test: payload_integrity
[2026-07-01T19:38:44Z] INFO: Response received, checking payload match...
[2026-07-01T19:38:44Z] INFO: Payload integrity verified (found in response)
[2026-07-01T19:38:44Z] INFO: JUnit XML written to: /tmp/test-results/tier2-kernel-interop.xml
[2026-07-01T19:38:44Z] INFO: Tier 2 sender tests complete. Results: /tmp/test-results/tier2-kernel-interop.xml

receiver-test-client-iperf.log

[2026-07-01T19:45:21Z] INFO: iperf-sends: sent 10 packets, received 10 responses
[2026-07-01T19:45:21Z] INFO: iperf-sends: PASS (sent >= 5 packets)
[2026-07-01T19:45:21Z] INFO: JUnit XML written to: /tmp/test-results/tier3-iperf-sends.xml
[2026-07-01T19:45:21Z] INFO: iperf-sends test complete

sender-test-client-iperf.log

Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #3'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #4'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #4'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #5'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #5'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #6'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #6'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #7'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #7'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #8'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #8'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #9'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #9'
Sent 31 bytes: 'dpdk-to-kernel-test-payload #10'
Received 31 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #10'
Test complete
[2026-07-01T19:44:22Z] INFO: our-app-sends: sent 10 packets, received 10 responses
[2026-07-01T19:44:22Z] INFO: our-app-sends: PASS (sent >= 5 packets)
[2026-07-01T19:44:22Z] INFO: JUnit XML written to: /tmp/test-results/tier3-our-app-sends.xml
[2026-07-01T19:44:22Z] INFO: our-app-sends test complete
Full Application Logs (last 200 lines each)

receiver-echo-server.log

EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Warning: Some RX offloads not supported by device (flags: 0x1)
Warning: Some TX offloads not supported by device (flags: 0x1)
✅ DPDK UDP socket bound to 10.0.1.6:9000 (MAC: 02:c3:ef:55:e6:e7)
echo listening on 10.0.1.6:9000 (MTU=9001, max_udp_payload=8973)
Shutting down gracefully...

sender-echo-server.log

EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Warning: Some RX offloads not supported by device (flags: 0x1)
Warning: Some TX offloads not supported by device (flags: 0x1)
✅ DPDK UDP socket bound to 10.0.1.98:9000 (MAC: 02:ee:7e:21:4a:3f)
echo listening on 10.0.1.98:9000 (MTU=9001, max_udp_payload=8973)
Shutting down gracefully...

sender-test-client.log

[2026-07-01T19:35:00Z] INFO: Test: arp_resolution
UDP Test Client
Target: 10.0.1.6:9000
Bind address: 10.0.1.98:0
Message: 'arp-probe'
Count: 1
EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Warning: Some RX offloads not supported by device (flags: 0x1)
Warning: Some TX offloads not supported by device (flags: 0x1)
✅ DPDK UDP socket bound to 10.0.1.98:32768 (MAC: 02:ee:7e:21:4a:3f)
Backend: dpdk
Sending packets...
Sent 12 bytes: 'arp-probe #1'
Received 12 bytes from 10.0.1.6:9000: 'arp-probe #1'
Test complete
[2026-07-01T19:35:01Z] INFO: ARP resolution succeeded (got response from peer)
[2026-07-01T19:35:01Z] INFO: Test: udp_send_receive
[2026-07-01T19:35:03Z] INFO: UDP send/receive succeeded
[2026-07-01T19:35:03Z] INFO: Test: echo_roundtrip
[2026-07-01T19:35:04Z] INFO: Echo roundtrip succeeded: 5/5 responses received
[2026-07-01T19:35:04Z] INFO: Test: payload_integrity
[2026-07-01T19:35:05Z] INFO: Response received, checking payload match...
[2026-07-01T19:35:05Z] INFO: Payload integrity verified (found in response)
[2026-07-01T19:35:05Z] INFO: Test: jumbo_diagnostics
[2026-07-01T19:35:05Z] INFO: === JUMBO FRAME DIAGNOSTICS ===
[2026-07-01T19:35:05Z] INFO: Interface MTU:
  9001
  65536
[2026-07-01T19:35:05Z] INFO:   ens5: MTU=9001
[2026-07-01T19:35:05Z] INFO:   lo: MTU=65536
[2026-07-01T19:35:05Z] INFO: Routing table MTU column:
Iface	Destination	Gateway 	Flags	RefCnt	Use	Metric	Mask		MTU	Window	IRTT                                                       
ens5	00000000	0101000A	0003	0	0	512	00000000	0	0	0                                                                             
ens5	0200000A	0101000A	0007	0	0	512	FFFFFFFF	0	0	0                                                                             
ens5	0001000A	00000000	0001	0	0	512	00FFFFFF	0	0	0                                                                             
ens5	0101000A	00000000	0005	0	0	512	FFFFFFFF	0	0	0                                                                             
[2026-07-01T19:35:05Z] INFO: DPDK port config (from echo server log):
[2026-07-01T19:35:05Z] INFO:   (no MTU info in echo log)
[2026-07-01T19:35:05Z] INFO: === END JUMBO DIAGNOSTICS ===
[2026-07-01T19:35:05Z] INFO: Test: jumbo_echo_8000
[2026-07-01T19:35:07Z] INFO: Jumbo output: UDP Test Client
Target: 10.0.1.6:9000
Bind address: 10.0.1.98:0
Payload size: 8000 bytes
Count: 3
EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Warning: Some RX offloads not supported by device (flags: 0x1)
Warning: Some TX offloads not supported by device (flags: 0x1)
✅ DPDK UDP socket bound to 10.0.1.98:32768 (MAC: 02:ee:7e:21:4a:3f)
Backend: dpdk
Sending packets...
Sent 8000 bytes (binary payload)
Received 8000 bytes from 10.0.1.6:9000 (expected 8000, OK)
Sent 8000 bytes (binary payload)
Received 8000 bytes from 10.0.1.6:9000 (expected 8000, OK)
Sent 8000 bytes (binary payload)
Received 8000 bytes from 10.0.1.6:9000 (expected 8000, OK)
Test complete
[2026-07-01T19:35:07Z] INFO: Jumbo frame echo succeeded: 3/3 responses with correct size
[2026-07-01T19:35:07Z] INFO: JUnit XML written to: /tmp/test-results/tier1-dpdk-echo.xml
[2026-07-01T19:35:07Z] INFO: Tier 1 sender tests complete. Results: /tmp/test-results/tier1-dpdk-echo.xml
[2026-07-01T19:38:42Z] INFO: Test: arp_resolution
UDP Test Client
Target: 10.0.1.6:9000
Bind address: 0.0.0.0:0
Message: 'arp-probe'
Count: 1
EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
TELEMETRY: No legacy callbacks, legacy socket not created
DPDK bind failed (Port init failed: Invalid port ID: 0), falling back to tokio
Backend: tokio
Sending packets...
Sent 12 bytes: 'arp-probe #1'
Received 12 bytes from 10.0.1.6:9000: 'arp-probe #1'
Test complete
[2026-07-01T19:38:42Z] INFO: ARP resolution succeeded (got response from peer)
[2026-07-01T19:38:42Z] INFO: Test: udp_send_receive
[2026-07-01T19:38:43Z] INFO: UDP send/receive succeeded
[2026-07-01T19:38:43Z] INFO: Test: echo_roundtrip
[2026-07-01T19:38:44Z] INFO: Echo roundtrip succeeded: 5/5 responses received
[2026-07-01T19:38:44Z] INFO: Test: payload_integrity
[2026-07-01T19:38:44Z] INFO: Response received, checking payload match...
[2026-07-01T19:38:44Z] INFO: Payload integrity verified (found in response)
[2026-07-01T19:38:44Z] INFO: JUnit XML written to: /tmp/test-results/tier2-kernel-interop.xml
[2026-07-01T19:38:44Z] INFO: Tier 2 sender tests complete. Results: /tmp/test-results/tier2-kernel-interop.xml

receiver-test-client-iperf.log

[2026-07-01T19:45:21Z] INFO: iperf-sends: sent 10 packets, received 10 responses
[2026-07-01T19:45:21Z] INFO: iperf-sends: PASS (sent >= 5 packets)
[2026-07-01T19:45:21Z] INFO: JUnit XML written to: /tmp/test-results/tier3-iperf-sends.xml
[2026-07-01T19:45:21Z] INFO: iperf-sends test complete

sender-test-client-iperf.log

[2026-07-01T19:44:20Z] INFO: Pre-flight: checking DPDK state and ARP cache...
[2026-07-01T19:44:20Z] INFO: Local IP: 10.0.1.98, Peer IP: 10.0.1.6, Port: 9000
[2026-07-01T19:44:20Z] INFO: /proc/net/arp contents:
IP address       HW type     Flags       HW address            Mask     Device
10.0.1.93        0x1         0x2         02:11:8f:dd:22:a5     *        ens5
10.0.1.1         0x1         0x2         02:52:0d:b8:b7:39     *        ens5
10.0.1.6         0x1         0x2         02:c3:ef:55:e6:e7     *        ens5
10.0.1.98        0x1         0x2         02:ee:7e:21:4a:3f     *        ens5
10.0.1.75        0x1         0x2         02:21:5f:9a:ad:4b     *        ens5
[2026-07-01T19:44:20Z] INFO: DPDK runtime state:
No /var/run/dpdk/ directory
[2026-07-01T19:44:20Z] INFO: vfio-pci bindings:
0000:00:06.0
bind
module
new_id
remove_id
uevent
unbind
[2026-07-01T19:44:20Z] INFO: Test binary: /opt/dpdk-stdlib/target/release/test-client
-rwxr-xr-x. 2 root root 1950584 Jul  1 19:32 /opt/dpdk-stdlib/target/release/test-client
[2026-07-01T19:44:20Z] INFO: Launching test-client: /opt/dpdk-stdlib/target/release/test-client --target 10.0.1.6 --port 9000 --bind-ip 10.0.1.98 --count 10 --delay 200
[2026-07-01T19:44:22Z] INFO: Test client output: UDP Test Client
Target: 10.0.1.6:9000
Bind address: 10.0.1.98:0
Message: 'dpdk-to-kernel-test-payload'
Count: 10
EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Warning: Some RX offloads not supported by device (flags: 0x1)
Warning: Some TX offloads not supported by device (flags: 0x1)
✅ DPDK UDP socket bound to 10.0.1.98:32768 (MAC: 02:ee:7e:21:4a:3f)
Backend: dpdk
Sending packets...
Sent 30 bytes: 'dpdk-to-kernel-test-payload #1'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #1'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #2'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #2'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #3'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #3'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #4'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #4'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #5'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #5'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #6'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #6'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #7'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #7'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #8'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #8'
Sent 30 bytes: 'dpdk-to-kernel-test-payload #9'
Received 30 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #9'
Sent 31 bytes: 'dpdk-to-kernel-test-payload #10'
Received 31 bytes from 10.0.1.6:9000: 'dpdk-to-kernel-test-payload #10'
Test complete
[2026-07-01T19:44:22Z] INFO: our-app-sends: sent 10 packets, received 10 responses
[2026-07-01T19:44:22Z] INFO: our-app-sends: PASS (sent >= 5 packets)
[2026-07-01T19:44:22Z] INFO: JUnit XML written to: /tmp/test-results/tier3-our-app-sends.xml
[2026-07-01T19:44:22Z] INFO: our-app-sends test complete
⚠️ SSM Command Failures (receiver-ssm-failure.log)
=== Polling timeout after 30s ===
Status: InProgress
Instance: i-043b12e3fdac3e5bf (receiver)
Command ID: 8f17f7d9-c847-4579-a7a7-f23ba557a245

=== STDOUT ===


=== STDERR ===


=== Polling timeout after 30s ===
Status: InProgress
Instance: i-043b12e3fdac3e5bf (receiver)
Command ID: aac3b233-f986-4a1e-8b65-d22f96fa9bff

=== STDOUT ===


=== STDERR ===


=== Polling timeout after 30s ===
Status: InProgress
Instance: i-043b12e3fdac3e5bf (receiver)
Command ID: ae488908-a755-4d1e-a764-296a5b0d4cb1

=== STDOUT ===


=== STDERR ===


=== Polling timeout after 30s ===
Status: InProgress
Instance: i-043b12e3fdac3e5bf (receiver)
Command ID: bea97292-44b0-4104-9a15-2720ee712926

=== STDOUT ===


=== STDERR ===


⚠️ SSM Command Failures (sender-ssm-failure.log)
=== Polling timeout after 30s ===
Status: InProgress
Instance: i-0b16cc40003e2bc87 (sender)
Command ID: 46d05784-834b-43ca-a3df-1573c07e6439

=== STDOUT ===


=== STDERR ===


Network & PCI State

receiver-network-interfaces.log

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000
    link/ether 02:c4:bf:00:38:e1 brd ff:ff:ff:ff:ff:ff
    altname enp0s5
    altname eni-000aaba2512bff54b
    altname device-number-0.0
    inet 10.0.1.34/24 metric 512 brd 10.0.1.255 scope global dynamic ens5
       valid_lft 2088sec preferred_lft 2088sec
    inet6 fe80::c4:bfff:fe00:38e1/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever

sender-network-interfaces.log

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000
    link/ether 02:ec:bd:fe:ff:33 brd ff:ff:ff:ff:ff:ff
    altname enp0s5
    altname eni-00783a6d541a4b22a
    altname device-number-0.0
    inet 10.0.1.205/24 metric 512 brd 10.0.1.255 scope global dynamic ens5
       valid_lft 2107sec preferred_lft 2107sec
    inet6 fe80::ec:bdff:fefe:ff33/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever

receiver-networking-diag-baseline.txt

=== NETWORKING DIAGNOSTICS ===
timestamp: 2026-07-01T19:34:22Z
hostname: ip-10-0-1-34.ec2.internal
kernel: 6.18.35-68.129.amzn2023.x86_64

=== DPDK PORT STATUS ===

Network devices using DPDK-compatible driver
============================================
0000:00:06.0 'Elastic Network Adapter (ENA) ec20' drv=vfio-pci unused=ena

Network devices using kernel driver
===================================
0000:00:05.0 'Elastic Network Adapter (ENA) ec20' if=ens5 drv=ena unused=vfio-pci *Active*

No 'Baseband' devices detected
==============================

No 'Crypto' devices detected
============================

No 'DMA' devices detected
=========================

No 'Eventdev' devices detected
==============================

No 'Mempool' devices detected
=============================

No 'Compress' devices detected
==============================

No 'Misc (rawdev)' devices detected
===================================

No 'Regex' devices detected
===========================

=== IP ADDRESSES ===
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000
    link/ether 02:c4:bf:00:38:e1 brd ff:ff:ff:ff:ff:ff
    altname enp0s5
    altname eni-000aaba2512bff54b
    altname device-number-0.0
    inet 10.0.1.34/24 metric 512 brd 10.0.1.255 scope global dynamic ens5
       valid_lft 3046sec preferred_lft 3046sec
    inet6 fe80::c4:bfff:fe00:38e1/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever

=== ARP TABLE ===
10.0.1.93 dev ens5 lladdr 02:11:8f:dd:22:a5 REACHABLE 
10.0.1.1 dev ens5 lladdr 02:52:0d:b8:b7:39 REACHABLE 

=== ROUTE TABLE ===
default via 10.0.1.1 dev ens5 proto dhcp src 10.0.1.34 metric 512 
10.0.0.2 via 10.0.1.1 dev ens5 proto dhcp src 10.0.1.34 metric 512 
10.0.1.0/24 dev ens5 proto kernel scope link src 10.0.1.34 metric 512 
10.0.1.1 dev ens5 proto dhcp scope link src 10.0.1.34 metric 512 

=== IMDS: ENI INFORMATION ===
ENI MACs found: 02:c3:ef:55:e6:e7/ 02:c4:bf:00:38:e1/ 

--- ENI: 02:c3:ef:55:e6:e7/ ---
  device-number: 1
  local-ipv4s: 10.0.1.6
  subnet-id: subnet-09b6b911c8553fd44
  subnet-cidr: 10.0.1.0/24

--- ENI: 02:c4:bf:00:38:e1/ ---
  device-number: 0
  local-ipv4s: 10.0.1.34
  subnet-id: subnet-09b6b911c8553fd44
  subnet-cidr: 10.0.1.0/24


=== GATEWAY ARP TEST ===
Gateway IP: 10.0.1.1
Gateway ARP entry:
10.0.1.1 dev ens5 lladdr 02:52:0d:b8:b7:39 REACHABLE 

arping result:
ARPING 10.0.1.1 from 10.0.1.34 ens5
Unicast reply from 10.0.1.1 [02:52:0D:B8:B7:39]  0.551ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)

=== HUGEPAGE STATUS ===
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
FileHugePages:     51200 kB
HugePages_Total:    1024
HugePages_Free:     1024
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:         2097152 kB

=== VFIO STATUS ===
total 0
drwxr-xr-x.  2 root root       80 Jul  1 19:34 .
drwxr-xr-x. 14 root root     3100 Jul  1 19:33 ..
crw-------.  1 root root 243,   0 Jul  1 19:34 noiommu-0
crw-rw-rw-.  1 root root  10, 196 Jul  1 19:25 vfio

noiommu mode:
Y

=== DPDK SHARED MEMORY ===
no /var/run/dpdk/ directory (clean state)

=== DPDK-RELATED DMESG (last 30 lines) ===
[    0.054642] printk: legacy console [ttyS0] enabled
[    0.055666] x2apic enabled
[    0.059833] mitigations: Enabled attack vectors: user_kernel, user_user, guest_host, guest_guest, SMT mitigations: auto
[    0.059944] x86/fpu: Enabled xstate features 0x2ff, context size is 2568 bytes, using 'compacted' format.
[    0.069730] audit: type=2000 audit(1782933903.422:1): state=initialized audit_enabled=0 res=1
[    0.089186] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    0.140249] ACPI: Interpreter enabled
[    0.140249] ACPI: Enabled 2 GPEs in block 00 to 0F
[    0.160488] pci 0000:00:05.0: enabling Extended Tags
[    0.244297] SGI XFS with ACLs, security attributes, quota, no debug enabled
[    0.250936] ACPI: \_SB_.LNKD: Enabled at IRQ 11
[    0.385653] IPI shorthand broadcast: enabled
[    2.316685] systemd[1]: Mounting dev-hugepages.mount - Huge Pages File System...
[    2.359118] systemd[1]: Mounted dev-hugepages.mount - Huge Pages File System.
[    2.441006] VFIO - User Level meta-driver version: 0.3
[    2.826364] ena 0000:00:05.0: Elastic Network Adapter (ENA) v2.17.1g
[    2.835600] ena 0000:00:05.0: ENA device version: 0.10
[    2.836319] ena 0000:00:05.0: ENA controller version: 0.0.1 implementation version 1
[    2.936020] ena 0000:00:05.0: ENA Large LLQ is disabled
[    2.947354] ena 0000:00:05.0: Elastic Network Adapter (ENA) found at mem c0500000, mac addr 02:c4:bf:00:38:e1
[    2.965710] ena 0000:00:05.0 ens5: renamed from eth0
[  492.163242] pci 0000:00:06.0: enabling Extended Tags
[  492.167190] ena 0000:00:06.0: enabling device (0000 -> 0002)
[  492.178945] ena 0000:00:06.0: ENA device version: 0.10
[  492.179716] ena 0000:00:06.0: ENA controller version: 0.0.1 implementation version 1
[  492.278921] ena 0000:00:06.0: ENA Large LLQ is disabled
[  492.292903] ena 0000:00:06.0: Elastic Network Adapter (ENA) found at mem c0508000, mac addr 02:c3:ef:55:e6:e7
[  492.298754] ena 0000:00:06.0 ens6: renamed from eth0
[  546.087664] vfio-pci 0000:00:06.0: Adding to iommu group 0
[  546.089112] vfio-pci 0000:00:06.0: Adding kernel taint for vfio-noiommu group on device

=== DPDK-RELATED PROCESSES ===
no DPDK processes running

=== END DIAGNOSTICS ===

sender-networking-diag-baseline.txt

=== NETWORKING DIAGNOSTICS ===
timestamp: 2026-07-01T19:34:14Z
hostname: ip-10-0-1-205.ec2.internal
kernel: 6.18.35-68.129.amzn2023.x86_64

=== DPDK PORT STATUS ===

Network devices using DPDK-compatible driver
============================================
0000:00:06.0 'Elastic Network Adapter (ENA) ec20' drv=vfio-pci unused=ena

Network devices using kernel driver
===================================
0000:00:05.0 'Elastic Network Adapter (ENA) ec20' if=ens5 drv=ena unused=vfio-pci *Active*

No 'Baseband' devices detected
==============================

No 'Crypto' devices detected
============================

No 'DMA' devices detected
=========================

No 'Eventdev' devices detected
==============================

No 'Mempool' devices detected
=============================

No 'Compress' devices detected
==============================

No 'Misc (rawdev)' devices detected
===================================

No 'Regex' devices detected
===========================

=== IP ADDRESSES ===
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000
    link/ether 02:ec:bd:fe:ff:33 brd ff:ff:ff:ff:ff:ff
    altname enp0s5
    altname eni-00783a6d541a4b22a
    altname device-number-0.0
    inet 10.0.1.205/24 metric 512 brd 10.0.1.255 scope global dynamic ens5
       valid_lft 3051sec preferred_lft 3051sec
    inet6 fe80::ec:bdff:fefe:ff33/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever

=== ARP TABLE ===
10.0.1.93 dev ens5 lladdr 02:11:8f:dd:22:a5 REACHABLE 
10.0.1.1 dev ens5 lladdr 02:52:0d:b8:b7:39 REACHABLE 
10.0.1.75 dev ens5 lladdr 02:21:5f:9a:ad:4b REACHABLE 

=== ROUTE TABLE ===
default via 10.0.1.1 dev ens5 proto dhcp src 10.0.1.205 metric 512 
10.0.0.2 via 10.0.1.1 dev ens5 proto dhcp src 10.0.1.205 metric 512 
10.0.1.0/24 dev ens5 proto kernel scope link src 10.0.1.205 metric 512 
10.0.1.1 dev ens5 proto dhcp scope link src 10.0.1.205 metric 512 

=== IMDS: ENI INFORMATION ===
ENI MACs found: 02:ec:bd:fe:ff:33/ 02:ee:7e:21:4a:3f/ 

--- ENI: 02:ec:bd:fe:ff:33/ ---
  device-number: 0
  local-ipv4s: 10.0.1.205
  subnet-id: subnet-09b6b911c8553fd44
  subnet-cidr: 10.0.1.0/24

--- ENI: 02:ee:7e:21:4a:3f/ ---
  device-number: 1
  local-ipv4s: 10.0.1.98
  subnet-id: subnet-09b6b911c8553fd44
  subnet-cidr: 10.0.1.0/24


=== GATEWAY ARP TEST ===
Gateway IP: 10.0.1.1
Gateway ARP entry:
10.0.1.1 dev ens5 lladdr 02:52:0d:b8:b7:39 REACHABLE 

arping result:
ARPING 10.0.1.1 from 10.0.1.205 ens5
Unicast reply from 10.0.1.1 [02:52:0D:B8:B7:39]  0.543ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)

=== HUGEPAGE STATUS ===
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
FileHugePages:     51200 kB
HugePages_Total:    1024
HugePages_Free:     1024
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:         2097152 kB

=== VFIO STATUS ===
total 0
drwxr-xr-x.  2 root root       80 Jul  1 19:34 .
drwxr-xr-x. 14 root root     3100 Jul  1 19:33 ..
crw-------.  1 root root 243,   0 Jul  1 19:34 noiommu-0
crw-rw-rw-.  1 root root  10, 196 Jul  1 19:25 vfio

noiommu mode:
Y

=== DPDK SHARED MEMORY ===
no /var/run/dpdk/ directory (clean state)

=== DPDK-RELATED DMESG (last 30 lines) ===
[    0.052739] printk: legacy console [ttyS0] enabled
[    0.053744] x2apic enabled
[    0.057875] mitigations: Enabled attack vectors: user_kernel, user_user, guest_host, guest_guest, SMT mitigations: auto
[    0.057983] x86/fpu: Enabled xstate features 0x2ff, context size is 2568 bytes, using 'compacted' format.
[    0.067733] audit: type=2000 audit(1782933902.096:1): state=initialized audit_enabled=0 res=1
[    0.087245] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    0.139225] ACPI: Interpreter enabled
[    0.139225] ACPI: Enabled 2 GPEs in block 00 to 0F
[    0.157306] pci 0000:00:05.0: enabling Extended Tags
[    0.234337] SGI XFS with ACLs, security attributes, quota, no debug enabled
[    0.248754] ACPI: \_SB_.LNKD: Enabled at IRQ 11
[    0.353785] IPI shorthand broadcast: enabled
[    2.597298] systemd[1]: Mounting dev-hugepages.mount - Huge Pages File System...
[    2.639476] systemd[1]: Mounted dev-hugepages.mount - Huge Pages File System.
[    2.690577] VFIO - User Level meta-driver version: 0.3
[    3.041531] ena 0000:00:05.0: Elastic Network Adapter (ENA) v2.17.1g
[    3.052778] ena 0000:00:05.0: ENA device version: 0.10
[    3.053466] ena 0000:00:05.0: ENA controller version: 0.0.1 implementation version 1
[    3.154958] ena 0000:00:05.0: ENA Large LLQ is disabled
[    3.169980] ena 0000:00:05.0: Elastic Network Adapter (ENA) found at mem c0500000, mac addr 02:ec:bd:fe:ff:33
[    3.189528] ena 0000:00:05.0 ens5: renamed from eth0
[  512.148793] pci 0000:00:06.0: enabling Extended Tags
[  512.153489] ena 0000:00:06.0: enabling device (0000 -> 0002)
[  512.166113] ena 0000:00:06.0: ENA device version: 0.10
[  512.166846] ena 0000:00:06.0: ENA controller version: 0.0.1 implementation version 1
[  512.268006] ena 0000:00:06.0: ENA Large LLQ is disabled
[  512.280693] ena 0000:00:06.0: Elastic Network Adapter (ENA) found at mem c0508000, mac addr 02:ee:7e:21:4a:3f
[  512.288084] ena 0000:00:06.0 ens6: renamed from eth0
[  540.834908] vfio-pci 0000:00:06.0: Adding to iommu group 0
[  540.836314] vfio-pci 0000:00:06.0: Adding kernel taint for vfio-noiommu group on device

=== DPDK-RELATED PROCESSES ===
no DPDK processes running

=== END DIAGNOSTICS ===
⚠️ Crash Diagnostics

receiver-dmesg-crashes.log

[    0.069083] pid_max: default: 32768 minimum: 301
[    0.164429] iommu: Default domain type: Translated
[    0.164476] NetLabel:  unlabeled traffic allowed by default
[    0.189942] PCI: CLS 0 bytes, default 64
[    0.262043] nvme nvme0: 2/0/0 default/read/poll queues
[    0.460656] systemd[1]: systemd 252.23-12.amzn2023 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP -GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 -BZIP2 -LZ4 +XZ +ZLIB -ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    0.460789] systemd[1]: No hostname configured, using default hostname.
[    0.550022] systemd[1]: Queued start job for default target initrd.target.
[    1.727009] systemd[1]: systemd 252.23-12.amzn2023 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP -GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 -BZIP2 -LZ4 +XZ +ZLIB -ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[  581.851131] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (echo:8386)
[  803.758450] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (echo:8820)
[ 1382.171607] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (echo:9989)

sender-dmesg-crashes.log

[    0.067145] pid_max: default: 32768 minimum: 301
[    0.161068] iommu: Default domain type: Translated
[    0.161093] NetLabel:  unlabeled traffic allowed by default
[    0.182275] PCI: CLS 0 bytes, default 64
[    0.271851] nvme nvme0: 2/0/0 default/read/poll queues
[    0.429175] systemd[1]: systemd 252.23-12.amzn2023 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP -GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 -BZIP2 -LZ4 +XZ +ZLIB -ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    0.429298] systemd[1]: No hostname configured, using default hostname.
[    0.493285] systemd[1]: Queued start job for default target initrd.target.
[    1.936847] systemd[1]: systemd 252.23-12.amzn2023 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP -GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 -BZIP2 -LZ4 +XZ +ZLIB -ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[ 1201.524912] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (echo:9717)
Kernel Console (dmesg)

receiver-console-output.log (PCI/driver events only)

[  581.849572] vfio-pci 0000:00:06.0: reset done
[  581.851131] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (echo:8386)
[  581.852565] vfio-pci 0000:00:06.0: resetting
[  582.069428] vfio-pci 0000:00:06.0: reset done
[  660.689899] vfio-pci 0000:00:06.0: Removing from iommu group 0
[  661.703150] ena 0000:00:06.0: ENA device version: 0.10
[  661.703896] ena 0000:00:06.0: ENA controller version: 0.0.1 implementation version 1
[  661.805071] ena 0000:00:06.0: ENA Large LLQ is disabled
[  661.818126] ena 0000:00:06.0: Elastic Network Adapter (ENA) found at mem c0508000, mac addr 02:c3:ef:55:e6:e7
[  661.828829] ena 0000:00:06.0 ens6: renamed from eth0 (while UP)
[  681.311883] vfio-pci 0000:00:06.0: Adding to iommu group 0
[  681.313308] vfio-pci 0000:00:06.0: Adding kernel taint for vfio-noiommu group on device
[  803.531980] vfio-pci 0000:00:06.0: resetting
[  803.756880] vfio-pci 0000:00:06.0: reset done
[  803.758450] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (echo:8820)
[  803.759900] vfio-pci 0000:00:06.0: resetting
[  803.976718] vfio-pci 0000:00:06.0: reset done
[  876.839388] vfio-pci 0000:00:06.0: Removing from iommu group 0
[  877.852413] ena 0000:00:06.0: ENA device version: 0.10
[  877.853188] ena 0000:00:06.0: ENA controller version: 0.0.1 implementation version 1
[  877.954284] ena 0000:00:06.0: ENA Large LLQ is disabled
[  877.967296] ena 0000:00:06.0: Elastic Network Adapter (ENA) found at mem c0508000, mac addr 02:c3:ef:55:e6:e7
[  877.974142] ena 0000:00:06.0 ens6: renamed from eth0
[ 1298.026688] vfio-pci 0000:00:06.0: Adding to iommu group 0
[ 1298.028083] vfio-pci 0000:00:06.0: Adding kernel taint for vfio-noiommu group on device
[ 1381.954144] vfio-pci 0000:00:06.0: resetting
[ 1382.170070] vfio-pci 0000:00:06.0: reset done
[ 1382.171607] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (echo:9989)
[ 1382.172981] vfio-pci 0000:00:06.0: resetting
[ 1382.399960] vfio-pci 0000:00:06.0: reset done

sender-console-output.log (PCI/driver events only)

[ 1201.526303] vfio-pci 0000:00:06.0: resetting
[ 1201.743147] vfio-pci 0000:00:06.0: reset done
[ 1262.492555] vfio-pci 0000:00:06.0: Removing from iommu group 0
[ 1263.501135] ena 0000:00:06.0: ENA device version: 0.10
[ 1263.501871] ena 0000:00:06.0: ENA controller version: 0.0.1 implementation version 1
[ 1263.601118] ena 0000:00:06.0: ENA Large LLQ is disabled
[ 1263.613711] ena 0000:00:06.0: Elastic Network Adapter (ENA) found at mem c0508000, mac addr 02:ee:7e:21:4a:3f
[ 1263.623546] ena 0000:00:06.0 ens6: renamed from eth0 (while UP)
[ 1292.705190] vfio-pci 0000:00:06.0: Adding to iommu group 0
[ 1292.706519] vfio-pci 0000:00:06.0: Adding kernel taint for vfio-noiommu group on device
[ 1399.062460] vfio-pci 0000:00:06.0: resetting
[ 1399.281359] vfio-pci 0000:00:06.0: reset done
[ 1399.282903] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (tokio-rt-worker:10160)
[ 1399.284511] vfio-pci 0000:00:06.0: resetting
[ 1399.501224] vfio-pci 0000:00:06.0: reset done
[ 1399.789371] vfio-pci 0000:00:06.0: resetting
[ 1400.011267] vfio-pci 0000:00:06.0: reset done
[ 1400.012801] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (tokio-rt-worker:10180)
[ 1400.014333] vfio-pci 0000:00:06.0: resetting
[ 1400.231175] vfio-pci 0000:00:06.0: reset done
[ 1401.521095] vfio-pci 0000:00:06.0: resetting
[ 1401.751245] vfio-pci 0000:00:06.0: reset done
[ 1401.752782] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (tokio-rt-worker:10203)
[ 1401.754353] vfio-pci 0000:00:06.0: resetting
[ 1401.971183] vfio-pci 0000:00:06.0: reset done
[ 1403.260712] vfio-pci 0000:00:06.0: resetting
[ 1403.491229] vfio-pci 0000:00:06.0: reset done
[ 1403.492748] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (tokio-rt-worker:10226)
[ 1403.494315] vfio-pci 0000:00:06.0: resetting
[ 1403.711183] vfio-pci 0000:00:06.0: reset done

@gspivey gspivey merged commit aac7a80 into development Jul 1, 2026
7 checks passed
@gspivey gspivey deleted the agent/trex-astf-profile-fix branch July 1, 2026 21:39
gspivey added a commit that referenced this pull request Jul 1, 2026
…107)

Follow-up to #106. Run
[28549496895](https://github.com/gspivey/dpdk-stdlib-rust/actions/runs/28549496895)
hit `unexpected keyword argument 'port'`. **This is the 5th TRex-profile
API error found one-at-a-time on EC2 — so instead of guessing again, I
built the offline validator we discussed.**

### The fix (ground-truthed, not guessed)
Stood up the TRex control-plane profile module locally (its `ArgVerify`
is pure Python — no NIC/server) and introspected the real API:
- `ASTFAssociation(rules=...)` — does **not** take `port=`; the port
goes on `ASTFAssociationRule(port=...)`.
- `ASTFTCPClientTemplate` **does** accept `port=` (my #106 change there
was fine).

Fixed the association, and **confirmed `build_tcp_profile()` builds a
valid `ASTFProfile` for all payload sizes offline in <1s.**

### The tool (ends the whack-a-mole)
`scripts/perf-tests/test/validate_tcp_profile.sh` — sparse-clones the
TRex control-plane, shims `cgi` (py3.13) + `zmq` (arm64), and builds the
profile locally. Any future ASTF-API mistake is caught in <1s instead of
a ~30-min EC2 run. Directly addresses the "testing at deployment is
expensive" concern. Follow-up: wire it into CI as a per-PR gate.

Merge → the next EC2 run should finally get **past profile-build** to
real CPS/throughput (or a genuine *runtime* issue, no longer a
profile-build error).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant