6G Testbed and AI Traffic Characterization

An open-source framework for measuring and analyzing how AI and LLM services consume the network. I lead this project within the 5G-MAG Reference Tools effort, and it directly feeds the 3GPP SA4 study on 6G media by providing reproducible measurements of AI traffic under realistic, standards-aligned network conditions.

Source code: github.com/5G-MAG/6G-Testbed

Why it exists

AI is becoming a first-class network workload. Chatbots, agentic tools, image generation, and real-time voice all stress the network in ways that classic video and web traffic models do not capture. To design 6G media transport properly, 3GPP SA4 needs hard data: how much AI services upload and download, how token streaming behaves under delay and loss, and where the network becomes the bottleneck for user experience. The testbed produces exactly that data, in a form that can be cited and reproduced in standardization contributions.

The rest of this page describes the system first - its architecture, the workloads it drives, the network conditions it emulates, and the metrics it records - and then presents the measured results and what they imply for 6G design.

Architecture

The framework has two cooperating packages plus a capture-and-analysis stack:

6G Testbed (aitestbed) architecture

Figure: end-to-end architecture of the aitestbed component. The orchestrator walks the scenario × profile matrix, driving workloads through provider-specific LLM clients and MCP tool servers. All traffic crosses the netemu shaping layer (tc/netem) before reaching the public LLM and tool APIs. A capture stack taps the shaped path at layer 3/4 (tcpdump) and layer 7 (mitmproxy) and lands per-request metrics in SQLite for reporting.

Components

End-to-end flow. For each scenario × profile combination: netemu installs the profile's shaping rules → capture starts → the orchestrator runs the scenario, which drives an LLM client (and, for agents, the MCP servers) whose traffic crosses the shaped interface to the real provider and tool APIs → per-request metrics are written to SQLite → capture stops and the shaping is torn down. Once the full matrix completes, the analysis pipeline produces the aggregated reports and figures.

Scenarios

The scenario engine covers 11 scenario types that represent how people and agents actually use AI services:

Supported providers include OpenAI, Google Gemini, DeepSeek, self-hosted vLLM, and the OpenAI Realtime API.

Network profiles

Emulation profiles mirror 3GPP reference conditions and include 5QI mappings, for example:

The profiles align with the reference conditions in 3GPP SA4 contribution S4-260848.

Metrics

Each run collects more than 60 AI-specific metrics, including:

Getting started

The testbed targets Python 3.10+ on Linux with iproute2, and is Docker-ready with the NET_ADMIN capability. A basic experiment looks like:

pip install -e netemu
pip install -r aitestbed/requirements.txt
cd aitestbed
python orchestrator.py --scenario chat_basic --profile 5g_urban --runs 10

For full SA4 validation campaigns, the orchestrator can run the complete matrix of scenarios and network profiles with PCAP capture and automated report generation.

Measured results

The result archive covers the complete set of executed scenarios, rather than only the focused A2A and OpenClaw studies. The main campaign contains 14,355 raw records across 23 scenarios. Its scenario/profile reliability matrix covers 13,057 mapped attempts, of which 12,602 succeeded (96.5%). Follow-on campaigns add deeper measurements for agent discovery, multimodal analysis, A2A signaling, and the OpenClaw assistant pipeline.

Result set Records Scenarios Profiles Observed success
Full scenario matrix 14,355 raw 23 Up to 10 12,602 / 13,057 mapped (96.5%)
Agent and tool discovery 241 8 1 229 / 241 (95.0%)
Latest L7 multimodal run 60 1 10 60 / 60 (100%)
A2A protocol workloads 397 3 10 99.0%
Full agent pipeline (OpenClaw) 100 1 10 100.0%

The follow-on campaigns overlap some scenario names in the full matrix, so their record counts are reported separately and should not be added into one grand total.

Full scenario matrix

The tables below report every scenario in the archived full-suite analysis. Traffic values are median application-layer request/response bytes. TTFT shows the observed median time to first token without emulation and under the congested profile where that aggregate is available.

Chat, search, and inference

Scenario Mapped attempts Success Median request / response TTFT: baseline to congested
Basic chat 300 100% 3.5 KB / 5.2 KB Not archived
Streaming chat 300 100% 5.9 KB / 543 KB 6.14 s to 10.10 s
Gemini chat 200 100% 2.4 KB / 92.7 KB 4.60 s to 5.40 s
DeepSeek chat 300 100% 1.9 KB / 4.1 KB Not archived
DeepSeek streaming 299 99.3% 6.9 KB / 685 KB 0.73 s to 2.44 s
DeepSeek coder 295 98.6% 6.8 KB / 1.13 MB 0.74 s to 2.47 s
DeepSeek reasoner 297 99.3% 9.4 KB / 1.09 MB 4.68 s to 8.09 s
Direct web search 200 100% 5.2 KB / 144 KB Not archived
Direct web search, DeepSeek 390 2.6% 5.2 KB / 140 KB Not archived
Self-hosted vLLM chat 300 100% 2.9 KB / 295 KB 0.24 s to 2.63 s

Real-time and multimodal media

Scenario Mapped attempts Success Median request / response TTFT: baseline to congested
Real-time text 300 100% 224 B / 1.26 MB 0.24 s to 0.69 s
Real-time interactive 500 100% 193 B / 417 KB 0.20 s to 0.77 s
Real-time technical 396 100% 206 B / 1.03 MB 0.20 s to 0.81 s
Real-time multilingual 400 100% 210 B / 1.34 MB 0.23 s to 0.70 s
Real-time audio 300 100% 104 KB / 699 KB 2.63 s to 4.90 s
Real-time audio over WebRTC 300 100% 77.4 KB / 65.0 KB 1.58 s to 1.62 s
Real-time text over WebRTC 198 100% 209 B / 77.8 KB 0.010 s to 0.001 s
Image generation 300 100% 133 B / 1.75 MB Not archived
Multimodal analysis 400 100% 14.2 KB / 16.9 KB Not archived
Video understanding, self-hosted vLLM 100 100% 1.32 MB / 1.4 KB Not archived

Agents and data tools

Scenario Mapped attempts Success Median request / response
Computer-control agent 2,303 100% 238 B / 1.9 KB
Playwright web test 2,933 97.7% 3.1 KB / 863 B
Trading market data 1,746 99.9% 74.4 KB / 872 B

Agent and tool discovery campaign

This separate 241-run validation exercised eight multi-tool workflows under one network profile.

Scenario Records Success Mean latency
Exa research 30 96.7% 38.74 s
Maps route planning 32 100% 21.63 s
Playwright web test 38 94.7% 13.37 s
Shopping agent 44 81.8% 19.15 s
Trading market data 27 100% 20.81 s
Twilio emergency notification 2 100% 0.01 s
Weather risk assessment 25 100% 20.20 s
Weather route planning 43 97.7% 27.85 s

The latest dedicated L7 multimodal campaign added 60 successful runs across 10 profiles, with 18.48 seconds mean end-to-end latency.

Key result figures

The figures below summarize the headline results across all scenarios and network profiles. They are produced by the testbed's reporting pipeline from the same measured data as the tables above. The leading figures cover the core transport metrics (latency, burstiness, TTFT, TTLT, and uplink/downlink ratio); the remaining figures follow.

Latency by scenario

Mean and P95 end-to-end latency per scenario. Chat coding and reasoning dominate (mean up to roughly 88 s, P95 up to roughly 116 s), while real-time transports and computer-control agents complete in a few seconds or less.

Traffic burstiness, per-request throughput distribution, by scenario

Per-request throughput distribution per scenario (log scale), classified by burstiness (P95 over median). Real-time media is steady, whereas search and agent tool calls are very bursty (P95 over median up to roughly 1250x), which stresses buffers and schedulers very differently from a steady stream.

Time to first token by scenario

Mean and P95 time-to-first-token per scenario (log scale). Reasoning and streaming chat carry multi-second TTFT with long P95 tails, while real-time transports respond in well under a second.

Latency breakdown, TTFT vs generation time to the last token, by scenario

Total response time split into time-to-first-token and generation time (the path to the last token, TTLT). For chat, generation to the last token dominates the total, and TTFT is only a small fraction.

Bandwidth asymmetry, uplink over downlink, by scenario

Uplink/downlink ratio per scenario on a log scale. AI traffic spans four orders of magnitude of asymmetry: image generation is extreme downlink-heavy, while video understanding and market-data tools are strongly uplink-heavy. A single directional traffic model cannot cover this range.

Total data transferred by scenario

Total uplink and downlink volume per scenario (log scale). Streaming and real-time media move hundreds of KB to several MB on the downlink, whereas agent and tool calls are small and often uplink-dominated.

Latency degradation from the best profile, by scenario and network profile

Latency degradation of each scenario relative to its best network profile. The congested and satellite columns dominate, with real-time WebRTC text and local-inference video understanding the most sensitive (hundreds of percent, up to roughly 1200%).

Cross-scenario findings

Focused agent-protocol findings

Agentic AI: where MCP and A2A struggle

Agentic workloads are the hardest case for the network, and the two dominant agent protocols, the Model Context Protocol (MCP) for tool calling and Agent2Agent (A2A) for agent-to-agent messaging, both turn a single user intent into many small, sequential, setup-heavy round-trips. The problems below are structural, not tuning issues.

MCP tool-calling: the cost is the loop, not the tool.

MCP agent economics: calls per session, marginal step cost, context growth, and tool-backend latency share

MCP agent economics per scenario. Left: LLM and external tool calls per session (bars) and the marginal cost of one agent step (line), which reaches roughly 9 to 10 seconds. Right: per-call context growth (bars, up to about 1,750 tokens per call) and the tool-backend share of latency (line), which is near 0% for every scenario except the browser test. The cost lives in the reasoning loop, not in the tools.

A2A agent-to-agent: latency- and loss-fragile signaling.

A2A multi-agent delegation sequence

A2A multi-agent delegation. A single client task fans out into orchestrator-to-agent delegations and back, so end-to-end latency accumulates one round-trip per hop. In the current setup only the client-to-orchestrator hop is network-shaped and the agent hops run on loopback, so per-hop scaling over a real wide-area chain is not yet captured.

Common failure mode. Both protocols convert one intent into many small, sequential, setup-heavy exchanges whose cost is governed by round-trip latency, loss tails, and handshake and context overhead, not throughput. A network optimized only for bulk media bandwidth will not make agentic AI fast or reliable.

Implications for 6G design

The measurements point to five concrete system priorities:

  1. Define an agent-signaling service class for small messages with a low packet-error-rate target and a moderate delay budget.
  2. Keep discovery, brokering, and multi-agent delegation topologically close to the user so every agent hop does not cross the wide area.
  3. Amortize transport setup through persistent connections, multiplexing, and 0-RTT resumption.
  4. Treat compute and network placement as one optimization problem; once radio conditions are good, moving inference and tools closer can matter more than adding link capacity.
  5. Support rapidly changing uplink/downlink asymmetry and preserve streaming cadence with active queue management.

Scope. These are exploratory campaign results, not universal performance claims. The 14,355-record archive includes 1,298 raw records that were not mapped into its scenario/profile reliability aggregate. Timing, token rate, and traffic volume should be compared within a scenario because providers, models, prompts, protocols, and run counts differ across scenarios. The discovery results use one profile; the OpenClaw results use 10 runs per profile and include provider-side inference variability. OpenClaw returned a single non-streamed response, so its recorded TTFT equals completion latency. In the current multi-agent A2A setup, the shaped path is the client-to-orchestrator hop; per-hop scaling across a fully shaped delegation chain remains to be measured.

(6G, 3GPP SA4, AI/LLM, 5G-MAG, Python)

Back to projects