> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contextual.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 3GPP Wireless Log Analysis Agent

> AI agent for automated root cause analysis of 3GPP LTE-style device and eNB logs

## Overview

This agent performs automated root cause analysis on 3GPP LTE-style device logs: eNB/RRH events, error codes, handovers, and CPRI/HARQ/BLER-style signals. It cross-references logs against a debug reference guide to decode sub-codes, correlate events across subsystems, and produce RCA reports—work that would otherwise require a senior wireless engineer to manually sift through thousands of timestamped entries.

**Powered by the [Device Log Analysis](/how-to-guides/agent-composer-templates#device-log-analysis-enterprise) template** in [Agent Composer](/quickstarts/agent-composer)—available for Enterprise customers; [request a demo](https://contextual.ai/request-a-demo) for access.

## Try the Demo

<Card title="Launch Demo" icon="tower-cell" href="https://demo.contextual.ai/log-analysis">
  Analyze 3GPP wireless logs yourself
</Card>

3GPP Wireless samples are preloaded—pick a suggested query and run the analysis.

<Note>
  Running on the production DLA template. Demo queries are cached and sped up for demonstration purposes.
</Note>

## The Problem

When a device or network incident occurs, engineers must manually sift through thousands of timestamped log entries containing cryptic error codes, protocol abbreviations, and vendor-specific identifiers. Root cause analysis requires:

* Decoding error codes against reference documentation
* Correlating events across subsystems (eNB-SYS, eNB-MAC, eNB-PHY, eNB-RRC, eNB-S1AP, eNB-X2AP, UE-MAC/UE-RRC)
* Building timelines to establish causality between failures (e.g. CPRI degradation → handover failures → call drops)
* Identifying patterns across multiple failure events
* Distinguishing symptoms from root causes

## How It Works

### In production

**What you do:** Upload a **log file** and optionally **additional context** (e.g. a debug reference guide), then ask a query—for example *"Why did the calls drop?"*.

**What happens automatically:** A multi-agent implementation takes over. The system parses the log, builds a searchable database from the log and reference files, runs root cause analysis, and produces outputs.

**Pipeline stages:** Uploading files → parsing logs → building the database → root cause analysis → generating the report.

**Outputs:** The agent delivers a **detailed RCA report** (executive summary, timeline, decoded errors, recommended actions) and can generate **visualizations** (causation timelines, degradation charts).

**Auditable:** Every step is visible—tasks, trajectory, intermediate artifacts, and the final report—so teams can review the analysis and act on findings.

### In this demo

3GPP Wireless files are **preloaded**; choose a suggested query and run the analysis.

## Example Questions

Suggested queries in the demo:

* "Why did the calls drop?"
* "When did this problem start?"
* "Was there a problem with RRH:1?"

## Output

Example outputs from the three suggested queries:

**"Why did the calls drop?"** — Full-day RCA timeline across 5 correlated metrics: CPRI fronthaul BER on RRH:2, sector temperature, SCTP heartbeat to MME, PSU voltage sag, and handover failures / radio link failures:

<img src="https://mintcdn.com/contextualai/9uA4KMg-lEwT3v8u/images/dla-3gpp-rca-timeline-overview.png?fit=max&auto=format&n=9uA4KMg-lEwT3v8u&q=85&s=c2f08063599dfbf5ea5003cba94b448d" alt="eNB 4325 call drop RCA timeline — CPRI BER, thermal, SCTP, PSU, and handover failures over a full day" width="2683" height="3235" data-path="images/dla-3gpp-rca-timeline-overview.png" />

Zoomed into the critical 6-minute onset window (17:09–17:15), the agent pinpoints the cascade: CPRI BER spike triggers DRX misalignment, thermal breach forces TX power reduction, S1/SCTP path degrades, and handover failures begin:

<img src="https://mintcdn.com/contextualai/9uA4KMg-lEwT3v8u/images/dla-3gpp-rca-critical-window-zoom.png?fit=max&auto=format&n=9uA4KMg-lEwT3v8u&q=85&s=9c748232271eae0bf09985c06c6b5eda" alt="Critical failure onset window — cascade from CPRI spike through thermal breach to call drops" width="2083" height="2063" data-path="images/dla-3gpp-rca-critical-window-zoom.png" />

**"When did this problem start?"** — Hourly ERROR and WARN event counts pinpoint the problem onset at 17:10:01, with zero errors in the preceding 8 hours:

<img src="https://mintcdn.com/contextualai/9uA4KMg-lEwT3v8u/images/dla-3gpp-hourly-error-warn.png?fit=max&auto=format&n=9uA4KMg-lEwT3v8u&q=85&s=64e897080c65faf5f08d0c81788945b3" alt="Hourly ERROR and WARN event counts — problem start identified at 17:10:01" width="2084" height="1183" data-path="images/dla-3gpp-hourly-error-warn.png" />

CPRI link quality on RRH:2 and HARQ retransmission rate show the degradation building before the threshold breach:

<img src="https://mintcdn.com/contextualai/9uA4KMg-lEwT3v8u/images/dla-3gpp-cpri-harq-trend.png?fit=max&auto=format&n=9uA4KMg-lEwT3v8u&q=85&s=c0feed57d689794d0f40321f1b9e9928" alt="CPRI link quality and HARQ retransmission rate — RRH:2 degradation trend" width="2083" height="1181" data-path="images/dla-3gpp-cpri-harq-trend.png" />

PRB utilization and handover failure counts confirm the downstream impact:

<img src="https://mintcdn.com/contextualai/9uA4KMg-lEwT3v8u/images/dla-3gpp-prb-ho-failures.png?fit=max&auto=format&n=9uA4KMg-lEwT3v8u&q=85&s=9d3b42e5c72ef6c6e7723f5f3217be22" alt="PRB utilization and handover failures — downstream service degradation" width="2084" height="1181" data-path="images/dla-3gpp-prb-ho-failures.png" />

**"Was there a problem with RRH:1?"** — Side-by-side BER comparison of RRH:1 (healthy, green) vs RRH:2 (root cause, escalating orange/red) confirms the fault is isolated to RRH:2:

<img src="https://mintcdn.com/contextualai/9uA4KMg-lEwT3v8u/images/dla-3gpp-ber-timeline.png?fit=max&auto=format&n=9uA4KMg-lEwT3v8u&q=85&s=3db39c33ddcad5c14bffaba4b6c1595d" alt="CPRI BER timeline — RRH:1 healthy vs RRH:2 root cause comparison" width="2683" height="1770" data-path="images/dla-3gpp-ber-timeline.png" />

BLER and HARQ comparison reinforces that RRH:1 operated normally while RRH:2 degraded:

<img src="https://mintcdn.com/contextualai/9uA4KMg-lEwT3v8u/images/dla-3gpp-bler-harq-comparison.png?fit=max&auto=format&n=9uA4KMg-lEwT3v8u&q=85&s=ffa4b94001c3f33dae976529f871255a" alt="BLER and HARQ comparison — RRH:1 vs RRH:2" width="2684" height="1476" data-path="images/dla-3gpp-bler-harq-comparison.png" />

The **final RCA report** includes:

* **Executive summary** — Root cause (e.g. CPRI fronthaul degradation on RRH:2), secondary factors (DRX misalignment, SCTP/MME, backhaul jitter), and impact (UE counts by failure type: RLF, RRC reject, NAS attach reject)
* **Detailed timeline** — Phased chronology with decoded log lines (early degradation → threshold breach → handover failures → thermal throttle → congestion and rejects), so reviewers can follow the sequence event-by-event
* **Error analysis by UE** — Grouped tables (e.g. handover failure → RLF call drops, RRC reject due to congestion, NAS attach reject with cause codes) with timestamps and preceding causes
* **Technical explanation** — Root cause deep dive and cascade effects (e.g. CPRI BER progression, RF/UL BLER, thermal throttle, ANR staleness and HO prep failure, SCTP/MME overload) with supporting tables
* **Answer to original question** — Direct answer to the query (e.g. call drop mechanism: CPRI → RF degradation → thermal throttle → HO failures → T304 expiry → RLF) and optional mechanism diagram
* **Attached visualizations** — References to the generated timeline visuals (system health, call drop causality)
* **Recommended actions** — Prioritized table (e.g. CRITICAL / HIGH / MEDIUM) with action and rationale for each

## 3GPP Wireless sample files in the demo

* **Device log** (`3gpp_wireless_device_log.txt`) — eNB/UE failure log (eNB-SYS, eNB-MAC, eNB-PHY, eNB-RRC, eNB-S1AP, eNB-X2AP, UE-MAC/UE-RRC); severity, tags, codes (e.g. `RACH_INIT`, `RRC_CONN_REQ`, `CPRI_LINK_DEGRADED_0xE1`, `VNDR_THERMAL_0x4F2A`) decoded against the matching reference.
* **Debug reference guide** (`3gpp_wireless_debug_rules.txt`) — eNB debug reference ("3GPP LTE eNB Debug Reference Guide"): RRC/NAS, EMM/ESM, S1AP/X2AP, timers, RSRP/RSRQ, vendor diagnostics—paired with the log above.

## Learn More

* [Device Log Analysis (overview)](/examples/device-log-analysis) — General DLA template and all three sample datasets
* [ATE Board Validation](/examples/ate-log-analysis) — Board validation / tester logs
* [Mazda Infotainment](/examples/mazda-infotainment-log-analysis) — Infotainment crash logs
* [Getting Started with the Contextual AI Platform](/quickstarts/getting-started)
* [Agent Composer Templates](/how-to-guides/agent-composer-templates) — Basic Search, Agentic Search, and Device Log Analysis (Enterprise)
* [Request a demo](https://contextual.ai/request-a-demo)
