NAS Message Decoder for 4G LTE & 5G
Decode Non-Access Stratum messages from your network captures. Identify attach failures, authentication issues and session setup problems by reading the exact NAS cause codes from the raw hex frames.
What is NAS?
NAS (Non-Access Stratum) is the signaling protocol between your phone and the mobile core network. Unlike RRC which manages the radio link, NAS handles identity verification, network registration, IP session establishment and mobility between tracking areas.
For LTE, NAS is defined in 3GPP TS 24.301 and splits into EMM (mobility) and ESM (session). For 5G, NAS is defined in 3GPP TS 24.501 and splits into 5GMM and 5GSM.
NAS in the Protocol Stack
Attach, Auth, TAU, Detach
PDN, Bearer, QoS
Registration, Auth, Service
PDU Session, QoS Flow
Key NAS Messages for Troubleshooting
Initial registration to the network. Contains IMSI/GUTI, requested PDN type, APN, UE security capabilities and supported codecs. Decoding this message reveals what the phone is requesting and which capabilities it advertises.
Mutual authentication between the USIM and the network. The request carries the RAND and AUTN challenges. A failed authentication (Authentication Failure) with cause "MAC failure" or "SYNCH failure" indicates a SIM/HSS synchronization issue.
Activates NAS encryption and integrity protection. The command specifies the selected EEA/EIA (LTE) or NEA/NIA (5G) algorithms. After this exchange, subsequent NAS messages are encrypted.
IP session setup. The request specifies the APN/DNN, PDN/PDU type (IPv4, IPv6, IPv4v6) and requested QoS. The response carries the assigned IP address, default bearer QoS and protocol configuration options (DNS, MTU).
Common NAS Reject Cause Codes
When a NAS procedure fails, the reject message carries a cause code that pinpoints the problem.
| Code | Cause (EMM / 5GMM) | What it means |
|---|---|---|
| #2 | IMSI unknown in HSS | SIM not provisioned in the core network |
| #3 | Illegal UE | UE identity rejected by network |
| #7 | EPS/5GS services not allowed | Subscription does not include data services |
| #11 | PLMN not allowed | Roaming to this network is forbidden |
| #17 | Network failure | Internal core network error |
| #22 | Congestion | Network overloaded, retry with back-off timer |
Related Protocol Decoders
Frequently Asked Questions
What is NAS in LTE and 5G?
What is the difference between NAS and RRC?
What are the most important NAS messages?
How do I decode a NAS message?
Can NAS messages be encrypted?
What is the difference between EMM and ESM in LTE NAS?
Why does an Attach Request fail?
Go deeper with real-time L3 analysis
HiCellTek decodes RRC, NAS and IMS/SIP directly on your smartphone. Identify root causes in seconds.
- β Full ASN.1 decoding
- β Real-time filters and search
- β Wireshark PCAP export