1. Why authentication success is insufficient
A gateway operator reports AAA success, yet the subscriber still cannot use data or calls. Treating everything as one success/failure flag hides the fault boundary. Determine exactly which milestone each observation establishes. This lesson teaches timeline construction, nested message interpretation and selection of the next diagnostic evidence.
Essential prerequisite: distinguish UE/USIM, ePDG, AAA and HSS, and understand that EAP-Success does not finish every procedure. Repair these in the authentication lesson. The scenario is EPC/ePDG/EAP-AKA; N3IWF requires the separate 5G procedure.
2. Separate semantic milestones
This is an educational observability model, not mandatory product-state names:
LOCAL_IP_READY
↓
IKE_INITIAL_EXCHANGE
↓
SUBSCRIBER_EAP_VERIFIED
↓
IKE_AUTHENTICATED_AND_CHILD_READY
↓
CORE_SESSION_AND_FORWARDING_READY
↓
SERVICE_WORKING
Exact timing of inner IP allocation, session establishment and tunnel readiness depends on the profile/procedure. This dependency model does not replace a standard call flow. Evidence has boundaries: an AAA success log helps establish EAP completion, but does not establish routing, SAs or IMS service by itself.
IKE SA protects IKE exchanges; Child SA concerns IPsec traffic. Neither equals a PGW session or IMS registration. Initial exchanges/EAP appear in RFC 7296 §§1.2 and 2.16; match them to the ePDG profile in TS 33.402 §8.2. IKEv2, ePDG security profile
3. Read messages inside messages
An illustrative challenge can be carried as:
AAA → ePDG:
Diameter-EAP-Answer
EAP-Payload
EAP-Request / AKA-Challenge
ePDG → UE:
IKE_AUTH response
encrypted IKE payloads
EAP-Request / AKA-Challenge
EAP-AKA and Diameter are not competing authentication methods. One is the method; the other carries information on this hop. IKEv2 supplies the relevant carriage/protection on another hop. SWm DER/DEA and AVPs are specified in TS 29.273 §7; SWx and authentication-data retrieval in §8. TS 29.273 v18.6.0
A home-AP capture does not automatically expose the challenge plaintext: IKE_AUTH is protected. Failure to display EAP does not prove its absence. Authorized endpoint logs or laboratory diagnostics may be needed. The accompanying tool performs no decryption.
4. Correlate identifiers within their scope
| Scope | Useful evidence | Common error |
|---|---|---|
| Local connectivity | Address/interface, time, NAT changes | IP equals proven subscription identity |
| IKE | IKE SPI pair, Message ID, request/response direction | Message ID without SA context |
| EAP | Identifier/method within the conversation | Globally unique EAP Identifier |
| Diameter | Session-Id and corresponding request/answer identifiers | Same identifier as IKE SPI |
| IPsec | Appropriate SA SPI and direction | One SPI necessarily represents both directions |
| Service | Service-specific transaction/time | Every failure is a USIM failure |
This is an analysis guide. IKE header and Message ID rules are in RFC 7296 §§2.2 and 3.1. Diameter base identifiers are explained in RFC 6733 §3. A correlation tool must record protocol and identifier scope, not put every identifier in one numeric field. RFC 6733
5. Repeated messages and time
Three similar requests need not represent three independent authentications; they can be retransmissions. Examine SA, Message ID, direction, intervals and answers. A timeout observed at one capture point does not prove a server is down: the return path or observation point can lose the answer. IKE retransmission rules are in RFC 7296 §2.1; arbitrary tool timeouts are not normative requirements.
Original example: UE-side requests appear at 0, 1 and 3 seconds without answers, while ePDG-side evidence shows requests and responses. Return-path, NAT and capture-location hypotheses fit this evidence better than “USIM computed a bad answer.” No final cause is established yet; investigate the next boundary.
6. Offline laboratory: synthetic data, real sequencing reasoning
The package includes synthetic JSON cases and a Python reader. These are not PCAPs, a standard simulator, AKA implementation or conformance test. Original events implement only this lesson's limited dependency model. No network, SIM or administrator privileges are required.
After extracting the archive, run from the course root:
python examples/trace_lab.py --list
python examples/trace_lab.py success
python examples/trace_lab.py aaa-success-no-data
python examples/trace_lab.py ike-no-response
Input is a scenario name from the JSON. The program reads its companion file, prints time-ordered observations, then reports the highest evidenced model milestone and the next needed evidence. It writes no files and creates no real session. Do not transfer these teaching state names into a product as normative states.
7. Worked example: AAA success without data evidence
Scenario aaa-success-no-data contains:
| Teaching time | Observation |
|---|---|
| 0 ms | Local IP ready |
| 30 ms | Initial IKE exchange received an answer |
| 70 ms | AAA challenge observed toward UE |
| 120 ms | Authorized endpoint records EAP success |
| 160 ms | IKE authentication and Child SA readiness recorded |
| 210 ms | Capture ends without core session/forwarding readiness evidence |
First, the highest model milestone is IKE_AUTHENTICATED_AND_CHILD_READY. Second, report success only through that boundary. Third, request correlated ePDG/PGW session state/responses, installed routes and counters. Fourth, do not turn “no evidence” into “session definitely failed”: capture may have ended early. The tool preserves this limitation.
If core connectivity/data delivery are established but calls fail, IMS/DNS/SIP becomes the next investigation. This lesson does not simulate an entire call flow.
8. Write a useful failure report
Instead of “Wi-Fi Calling fails because WAG is broken,” write:
Profile: EPC / untrusted WLAN / ePDG / EAP-AKA
Observation window: lab-relative 0..210 ms
Verified: local IP, initial IKE response, EAP success, Child SA readiness
Not yet evidenced: core session/forwarding readiness
Next evidence: correlated gateway/core session state and packet counters
Conclusion: authentication success alone does not localize the remaining failure
Times and findings belong to the synthetic example. In real work record clock alignment and capture location; do not substitute a product name for its logical role. Do not publish logs containing real keys or subscriber identities as public examples. These lesson files contain no real credentials.
9. Practice, retrieval and continuation
- Run
ike-no-response. Why is K correctness still undecidable? - Run
eap-rejected. How does explicit rejection differ from absent success evidence? - In a copy of the JSON, extend capture duration. Does extra time create success evidence?
- Two conversations reuse an EAP Identifier. What other correlation context do you need?
- Write a five-line report for a ready session without service-success evidence.
Reveal answers after your attempt
- No stage verifying a K-based answer has been observed; missing initial IKE response does not establish a credential fault.
- Rejection is explicit negative evidence for that stage. Missing success can result from early capture termination or incomplete logs. Rejection still does not uniquely identify a K fault.
- No: more time without an event is not success evidence.
- Conversation/endpoints, time, EAP context and carrying SA/session identifiers are needed; Identifier alone is insufficient.
- Record profile, observation window, confirmed session/forwarding, unevidenced service success and requested service logs/trace. Reserve definitive cause for adequate evidence.
Repair: label each report sentence observation, hypothesis or evidence needed, then rewrite conclusions that confuse them.
Continue when you distinguish observation, inference and confirmed cause and can request evidence for the first unknown boundary. Repair protocol-name errors in §3 and overgeneralized success in §2/§7. After a gap, analyze the example without the program's output.
Sources and limits
Related continuation: SIM and SIM-less method selection and messages.
Checked 2026-10-17. Examples/tool are original educational material, without real operator captures or hardware-validation claims.