← Previous lessonFree lesson 3 of 3 · lesson 3 of 9

Unlock all 9 lessons of 5G TestingFull course ₹40,000 · paid

Price & syllabus
Free lesson · 21 min · no payment

NGAP and 5G NAS Procedures, Message Structure and Week Recap

A free lesson from Skill-Lync's 5G Testing course, on Grow by Skill-Lync · Last updated 16 Nov 2026 · Session: “Week 1 Session 3”

What will you learn in this free 5G Testing lesson?

The lesson explains NGAP and its procedures, message structure, security and edge computing support. It then covers 5G NAS mobility management such as registration, authentication, paging and handover, looks at NAS message fields, and recaps the week.

  • NGAP features: procedures, flexible messages and security
  • NAS registration, authentication and location management
  • How the SMF delivers the UE IP address through NAS
  • Week one recap of deployment scenarios, components and protocols

What comes after lesson 3?

Later in Skill-Lync's 5G Testing course (paid): lesson 4, Week 2 Session 1; lesson 5, Week 2 Session 2; lesson 6, Week 2 Session 3. The full course has 9 lessons (4 h 10 min of video); see the course overview or its price and syllabus.

Lesson transcript

Machine transcript of the lesson audio (lightly cleaned). Technical terms may contain errors; the video is the reference.

Well, next up, we have the NG Application Protocol, or commonly known as the NGAP. Well, NGAP is a protocol used in 5G core network for communication between the Access and Mobility Management Function, or AMF, and the User Plane Function, UPF. It is used for control plane signaling for a variety of functions, including Mobility Management, Session Management, and Authentication. Here are some of the features of NGAP that I am going to narrate. First is, NGAP supports multiple procedures. NGAP has flexible message structure. It provides end-to-end security.

And it supports for MEC, or Multi-Access Edge Computing. To start with, the support for multiple procedures. NGAP supports multiple procedures that are used in the 5G core network, including registration, session management, mobility management, and authentication. This enables the network to support a variety of services and use cases. Next, with respect to the flexible message structure, NGAP has a flexible message structure that can be used to support a variety of messages and parameters, which allows the protocol to be customized to support specific use cases. Then we have end-to-end security.

NGAP provides end-to-end security for signaling messages between AMF and UPF. This includes the use of encryption and digital certificates to prevent any sort of unauthorized access to the network. When it comes to support for Multi-Access Edge Computing, or MEC, NGAP has a support for MEC as well, which enables the processing of application data at the edge of the network. This can reduce latency and improve overall user experience. When it comes to MEC, it will be something like the Gnode B, followed by an MEC, or the edge computing server that will be sitting between the UPF and the Gnode.

So, in conclusion, NGAP is a very critical protocol in 5G, which provides control plane signaling for a variety of functions. It's support for multiple procedures, flexible message structure, end-to-end security, and support from MEC makes it a powerful tool. Now, as we can see, NGAP also is referred to as the NG application protocol. It is designed for the use on the end-to-interface between the RAN, in this case Gnode B and AMF. It offers end-to-interface management functions, such as the initial NG interface setup, reset, any sort of error indication, then overload indication and load balancing.

If we can see that NGAP is built on SCTP, right? So, what does it mean by the, you know, SCTP in short? I mean, we have definitely discussed about SCTP in our previous lectures. But SCTP or the Stream Control Transmission Protocol is a transport-led protocol that is designed to provide reliable and ordered delivery of data packets between two endpoints over the IP networks. SCTP is a protocol that is typically used for signaling transport and other applications that require reliable transmission of data. The features of SCTP include reliability, order delivery, flow control, multi-homing, and it is message-oriented.

When it comes to reliability, SCTP provides reliable delivery of data by retransmitting lost packets and detecting any sort of duplicate packets in the network. SCTP ensures that the packets are delivered to the receiver in the order they were sent. So, whenever an entity sends out packets within the SCTP protocol, it will be framing the packets. I mean, data framing will happen. And then, whenever these fragmented packets will be reassembled, it will be in the same order that they were transmitted so that the packet reconstruction is proper.

Then we have flow control. SCTP provides flow control to prevent the receiver from being overwhelmed by too much of data. That means, it should not be the case that too many SCTP packets are flooding the network and the network shuts itself down. Sort of DDoS attack or any kind of DDoS attack that happens on the system, right? It kind of protects the system for any kind of attacks like that. Then we have multi-homing support. SCTP allows endpoints to have multiple IP addresses, which increases the network resiliency and availability.

And again, SCTP is message-oriented. And that means that it provides the ability to send and receive messages instead of just sending the data packets. So, SCTP uses the concept of streams to provide order delivery of packets. A stream is a logical channel between two endpoints over which data can be transmitted. Each stream can have its own characteristics, such as message size, reliability, and priority. Then, SCTP can also provide support for several congestion control mechanisms to ensure that the network does not become congested with traffic. These mechanisms include slow start, congestion window, and fast recovery.

SCTP is widely used in telecom, and it is used for signaling transport, such as SIP that we discussed in 4G. Then we have diameter protocol. Now, in NGAP, we have SCTP. So, in short, SCTP is reliable, and it ensures order delivery of the packets. And it has several other features like flow control, multi-homing, congestion control, etc. The concept of streams in SCTP provides a logical channel between two endpoints over which data can be transmitted. SCTP is widely used, again, in telecom. So, just to say, why NGAP is built on SCTP is so that multiple connections, multi-homing support is there.

So, ultimately, the connection between any kind of control plane signaling that happens between the AMF and GnodeB is protected, because that interface is really, really important, because after the GnodeB, it's the air interface, right? So, anything should not break with respect to control plane between the GnodeB and the AMF. Well, with respect to the functionalities, with respect to messages, NGAP facilitates the establishment of initial UV context in RAN node through the initial UV context set of functionality. Again, it supports transport of NAS signaling between user equipment or UV and the AMF.

So, next up, we will be talking about the 5G NAS. As we can see here, that we have our UV, and then we have the NAS transport between the AMF, right? And then this is extended towards LCS, all this connectivity is there. Then we have 5G NAS between SMF, right? That is GSM, that is, SMF inherently connects with UV via AMF on the NAS transport. And this communication is on top of our NGAP, because UV has to communicate via the GnodeB, radio node to AMF. So, NAS implements mobility and session management procedures.

So, what do we mean by mobility and session management procedures when we talk about that? So, the first thing that it comes to our mind is, you know, the session management and the mobility management procedures. So, let's talk about the mobility management procedures in NAS. The mobility management in 5G NAS is responsible for managing the UV's mobility, which includes attaching to and detaching from the network and changing the serving cell. Mobility management procedures in 5G NAS are used to ensure that the UV's connection is maintained while it moves across different cells in the network.

The mobility management function in 5G NAS includes the following procedures. First up is attach or registration, authentication and security. Then we have the registration, location management, detached procedure, handover. Then we have paging. Then that's it. So, these are the commonly used procedures when it comes to, you know, mobility management. Then we have 5G GUTI reallocation, tire list update, etc. When it comes to attach procedure, when the UV is turned on or it moves to a new area, it needs to attach to the network. The attach procedure involves the UV sending an initial attached request or an attached request to the core network, which includes information such as UV's identity, capabilities, and network preferences.

Next we have authentication. Then, end security. The core network performs authentication and security checks to verify UV's identity and ensure the security of the communication between the UV and the network. Then it comes to registration and deregistration. When it comes to registration, once the UV is authenticated and authorized, it registers itself with the core network. The registration procedure, however, involves the core network. Assigning the UE with an IP address and establishing a session context. So we should keep in mind that whenever an IP address is allocated by SMF, it is allocated to UE via the NAS.

I mean, there is no other way of means of communication how SMF can inform this message to UE. So it sends the UE IP address via N1 and 2 messages directly to the UE. Then we have, let's say, location management. When the core network tries to keep track of UE's location and maintains information about the cell or the serving cell and the neighboring cell, the information is used to hand over the UE to a new cell when it moves out of the serving cell. So whenever an UE is moving out of a current cell or a serving cell to a neighboring cell, those kind of information like, you know, neighboring cell information is used.

So for that also, we need NAS signaling because AMF needs the mobility, AMF needs those information for mobility, right? Then we have detached procedure. When UE is turned off or moves out of the network coverage, it needs itself to detach from the network. The detached procedure involves UE sending a detached request to the core network. Similar things or similar sort of messaging happens in case of deregistration. Detach and deregistration is almost all the same thing. So just like detached procedure, UE moves, turns it off and moves out of the network coverage.

Detach request sends to the UE or UE sends detached request to the core network. Anything, I mean, either way, it is via NAS. So in the case of deregistration also, similar message exchange happens. Then we have handover. So when UE moves from one cell to another, a handover procedure is initiated. The core network determines the best cell for UE on the signal quality based on the signal quality, load and other factors. The handover procedure involves transferring the UE session context from the old cell to the new cell.

Then we have paging. Core network sends paging messages to UE to notify it of incoming calls or messages. In conclusion, mobility management in 5G NAS is responsible for managing UE's mobility, including attaching to and detaching from the network, changing the serving cell. And mobility management procedures ensure that UE's connection is maintained while it moves across different cells in the network. The core functions of mobility management in 5G NAS includes attach, authentication, security, registration, location management, detach, deregistration, handover, paging, goodie relocation, and the like. Next up, we have session management procedures.

So session management in 5G NAS is responsible for managing the UE session, which includes modifying and terminating, establishing session session services such as voice, video, and data. Session management function in 5G NAS is responsible for setting up and maintaining the connection between UE and the core network. The session management function in 5G NAS includes the following procedures. One is the service request, authentication and security, session establishment, session modification, session termination, QOS management. So to start with, service request, when an UE wants to initiate a service, such as making a voice call or sending a message, it sends a service request to the core network that happens over NAS.

Then we have authentication and security. The core network performs authentication and security checks to verify UE's identity and ensure security of communication. Then comes to session establishment, once the UE is authenticated and authorized, the core network establishes a session for the requested service. Session establishment involves the core network allocating resources for the session and establishing a session context. This session context is important. Why? Because this session context is maintained across the network elements. And then we have session modification. In case of any change of PDRs, any change of FARs is due, then session modification happens.

What happens during session modification? During a session when the UE is requesting to modify a session, such as changing the service parameters or adding new services, the core network processes the session modification request and updates the session context accordingly. When it comes to QoS management, when it comes to QoS management, the core network provides QoS management to ensure that the requested services are delivered with required performance characteristics such as bandwidth, latency, and packet loss. When it comes to QoS management, the core network features are delivered with required performance.

In addition to these above procedures, session management in 5G for NAS also includes support for features such as group communication, emergency services, and multicast services. So, to conclude with respect to session management, 5G is responsible for managing the UE session, including establishment, modification, terminating sessions for voice, video, and data. Now, session management procedures also ensure that the connection between UE and the core network is established and maintained for the requested service. Core functions of session management in 5G NAS include service request, authentication, security, session management, establishment, and termination.

Now, we will talk about this 5G protocol for NAS, like the protocol structure, right? So, how the protocol structure looks like? So, this is a quick overview of the protocol structure that we see on screen. But to detail it, the NAS packet in 5G contains several octets, and octets are of 8-bit bytes, and they contain information such as message types, security parameters, and user data. When it comes to octet type 1, the first octet contains the security header type and the protocol discriminator. The security header type specifies whether the message is protected by, let's say, algorithms, like what kind of NAS security algorithms are protected in the message, and then the protocol discriminator identifies the NAS protocol.

Then for octet 2, the second octet contains the message type, right? And the message type identifies the type of NAS message, such as attached request or service request. It also holds the PDU session identity. Octet 3 and 4, or 3 to 4, contains the message authentication code, or MAC, right? Which is used to ensure the integrity of the message. Octet 5 to 8, these octets contain the sequence number, which is used to ensure the order of the messages. Octet 9, this is the 9th octet, and it contains the security header type, which specifies whether the message is protected by security algorithms.

Octet 10 to 11, these octets contain the security capability of UE, which is used to negotiate the security parameters for UE. Octet 12 to 13, these octets contain the NAS key set identifier, or the NAS KSI, which is used to identify the keys for the UE. Octet 14, the 14th octet contains the protocol configuration options, or the PCO options, which are used to negotiate the network configuration options for the UE. Octet 15 to 16, these octets contain the mobility management context, or the MM context, which is used to manage the mobility for UE.

Octet 17 to 18, they contain the session management context, just like we had 15 to 16 for mobility management context, and it is used to manage the sessions for UE. Octet 19 to 20, these octets contain the user data, which is the payload of the NAS message. In conclusion, NAS packet in 5G is a fragmented or structured message used for communication between UE and the core network. Each NAS message consists of several octets containing information such as message type, security parameters, and user data. Understanding the structure and function of the NAS packet is crucial.

Why? Because it ensures smooth operations of the 5G network. So, this week, we learned about different 5G deployment scenarios, understanding on different 5G core components, and commonly used 5G protocols. So, as a part of summary, this week, we learned about different 5G deployment scenarios. We saw that there are non-standard deployment scenarios, then we have standalone deployment scenarios, then there are dual connectivity deployment scenarios. We saw about different 5G SSC modes, SSC mode 1, 2, and 3, wherein SSC mode 3 will ensure that an existing PDU session is contained, unless when a new session comes in, the old session is retained, and when the existing new session is continued, the old session is cut off.

Then we talked, We talked about different 5G core components like AMF, PCF, SMF, UDM and the like. Then we discussed about their functionalities. We saw that how different 5G core components interact with each other. We understood their functionalities and importance of their existence on the 5G core network. Then we talked about commonly used 5G protocols. We talked about 5G NAS. We talked about NGAP. We talked about HTTP2. We then talked about PFCP, right? So we understood how these protocols ensure the interaction between different network elements and their importance in the 5G core network.

So to end this session, there will be some challenges that comes as a part of this lecture. So we will talk about probably some deployment scenarios. We will talk about different functionalities. There could be some, you know, pop quizzes or something. So we will see what comes in our way. With this, I would like to end this session. Thank you.

Want the rest of 5G Testing?

Get the full course syllabus and fees.

The full course is paid (₹40,000). We'll send the syllabus and call you back within one working day.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Full course · paid

Unlock the full 5G Testing course

The remaining 6 lessons, mentor-reviewed projects and a certificate come with the paid course (₹40,000). Leave your details: we'll send the syllabus and fees and call you back.

Get the syllabus and fees

A counsellor calls you back within one working day.

By submitting you agree to our Terms and Privacy Policy.

Grow by Skill-Lync · free lesson

Start watching

Free, no payment. Leave your details once and every free lesson on Grow plays straight away. A Skill-Lync counsellor may call you about the full 5G Testing course.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.