行业洞察
2026-10-19 16:34:00

5GC核心网PDU会话释放流程

5GC PDU会话释放在SMF控制下移除会话资源。UE及网络触发、N1/N2信令条件、N4 PFCP删除和信令跟踪检查,可区分会话终止与接入释放。

贝克电信

5GC核心网PDU会话释放流程

当UE请求断开或网络决定终止会话时,已建立的PDU会话可能正通过gNB和UPF承载流量。PDU会话释放会移除该会话及其相关资源。对于基于IP的会话,这些资源包括已分配的IP地址或前缀;接入资源、UPF状态和策略关联也需要执行适用的清理。

SMF协调会话释放,AMF处理接入与移动性信令,并转发会话管理信息。单独释放一个PDU会话,本身不会使UE去注册,也不会释放其其他会话。因此,分析信令跟踪时应关注:哪个会话正在结束、为何结束,以及该会话还存在哪些资源。

以下主要示例采用非漫游或本地疏导部署中,经3GPP接入的单接入PDU会话,依据3GPP TS 23.502 V18.9.0第4.3.4.1和4.3.4.2条。归属路由漫游、多接入会话和特殊接入安排另有规则。即使在本例范围内,用户面连接不活动或UE不可达,也会改变预期信令。

会话释放、接入释放与去注册

流程目的结果含义
PDU会话建立在初始建立情况下创建新会话UE获得通向数据网络的会话。
PDU会话修改更改已有会话,例如其QoS规则或流会话以更新后的参数继续运行。
PDU会话释放终止选定会话该会话资源被释放;其他会话可能继续存在。
AN释放或用户面去激活释放接入连接,或去激活该会话的接入用户面PDU会话可在核心网中保持已建立状态。
5GS去注册结束适用接入范围内的注册注册和相关会话处理遵循去注册分支。

因此,RRC Release或NGAP UE Context Release不足以证明PDU会话已终止。同样,RAN报告会话资源已释放,也不强制SMF删除会话:SMF可以保留会话,仅将用户面连接去激活。

关于此前的生命周期阶段,请参阅PDU会话建立流程和PDU会话修改流程。它们关注创建或改变连接;释放分析则跟踪已有会话的移除。

一个企业PDU会话被释放,而UE仍保持注册且其他会话继续活动的概念图
一个会话可以结束,而注册和其他会话继续保留。下方图为概念示意,其连线并非准确的接口或数据包路由图。普通用户流量经gNB和UPF前往数据网络,不经过AMF、SMF或PCF。

谁控制N1、N2与N4?

多种消息名称包含“PDU Session Release”,但其端点不同,确认的动作也不同。应区分会话管理载荷及承载该载荷的传输。

路径端点与处理释放证据
N1与N1 SMN1连接UE与AMF。5GSM会话管理消息由UE和SMF生成、处理;AMF转发其容器。适用显式NAS交互时的PDU Session Release Request、Command及Complete。
N2AMF与NG-RAN交换NGAP信令。SMF生成的N2 SM信息通过AMF送达RAN。针对需要释放的接入资源,使用PDU Session Resource Release Command及Response。
N4SMF使用PFCP控制UPF。针对对应UPF会话的PFCP Session Deletion Request及Response。

N3是gNB与UPF之间的用户面路径。移除其会话专属隧道资源,不同于在N2上交换释放命令,或在N4上删除PFCP会话。AMF不会向UPF发送PFCP命令。

什么会触发PDU会话释放?

UE请求只是一个入口。最初事件也可能是策略决策、状态不匹配或其他网络条件:

  • UE请求:UE针对选定的PDU Session ID发送PDU Session Release Request。

  • PCF触发:SM Policy Association Termination通过SMF请求释放会话。

  • SMF决策:本地策略或DN、UDM、CHF等功能提供的信息要求结束会话。

  • AMF请求:会话状态不匹配或适用的切片相关条件要求清理。所用服务操作取决于是否还需要N1/N2信令。

  • RAN资源报告:RAN报告已释放的资源,例如所有关联QoS流释放之后。SMF决定去激活用户面,还是释放会话。

PDU Session Release Command表示向UE发送的指令,不一定是最初触发因素。要区分UE请求与网络请求情形,应检查该命令之前的事件,以及相关功能之间携带的原因信息。

接入资源活动时由UE发起的释放

假设PDU Session ID 5具有活动用户面连接、UE可达,且SMF接受其释放请求。这是有用的参考案例,而不是每次释放都必须出现的数据包清单。

  1. UE请求释放。它在NAS传输过程中发送PDU Session Release Request。在NG-RAN上,gNB通过NGAP上行传输将NAS消息送至AMF。NAS的UL NAS Transport消息与NGAP的Uplink NAS Transport属于不同协议层。

  2. AMF将请求转发给服务SMF。它针对现有上下文调用Nsmf_PDUSession_UpdateSMContext,携带N1 SM信息,不会创建新的SM上下文。

  3. SMF释放会话的用户面资源。在这一参考流程中,N4释放阶段先于N1/N2释放信息。SMF向涉及的UPF发起PFCP Session Deletion,UPF返回结果。若涉及多个UPF,一次交互不足以说明所有受影响N4会话的情况。

  4. SMF向AMF提供N1和N2信息。其UpdateSMContext响应携带发往UE的PDU Session Release Command,并且由于本例用户面连接处于活动状态,还携带N2 SM资源释放信息。

  5. AMF请求释放接入资源。它向gNB发送NGAP PDU Session Resource Release Command。命令包含NAS PDU时,gNB将其传递给UE。gNB释放指定接入资源并返回PDU Session Resource Release Response。

  6. UE确认NAS释放。收到单接入PDU Session Release Command后,UE认为会话已释放,并发送PDU Session Release Complete。AMF将这一N1 SM响应转发给SMF。

  7. SMF完成相关上下文清理。收到所需回复后,它通知AMF,说明SM上下文已释放,并执行适用的策略与签约相关清理。

UE确认可能先于RAN资源释放确认到达核心网。TS 23.502明确允许这些响应阶段以任一顺序发生。因此,不能仅因Release Complete早于N2响应出现,就将信令跟踪判为异常。

实际NAS确认消息的名称是PDU Session Release Complete。部分第二阶段流程图将其标为“PDU Session Release Ack”。TS 24.501 V17.7.1第6.3.3和6.4.3条规定NAS消息行为,包括接受、拒绝和异常情况。已获接受的UE请求会进入网络请求的NAS释放流程,因此Request之后会出现Release Command。

原始释放概念图,显示UE、gNB、AMF、SMF和UPF,但PFCP箭头位置不准确
这张原始图并非符合标准的准确时序图。其PFCP箭头错误地与AMF对齐:PFCP Session Deletion发生在SMF与UPF之间。N2位于AMF与gNB之间,UE与SMF的NAS交互则经AMF转发。消息路径与条件应以上述明确范围的流程为准。

网络采用不同释放分支时

SMF或PCF发起

由SMF或PCF开始释放时,不存在最初的UE Release Request。SMF通常使用Namf_Communication_N1N2MessageTransfer,经AMF传递释放信息。会话用户面连接活动时包含N2资源释放信息;该连接已去激活时则省略。

若CM-IDLE状态的UE需要接收NAS命令,AMF可发起网络触发的Service Request流程。不过,适用的跳过投递条件或此前UE不可达的指示,允许网络在不执行通常面向UE的交互情况下继续。后续Service Request或Registration信令可同步会话状态。因此,只有明确预期分支及投递结果后,缺少Release Complete才可能是故障指示。

AMF发起的上下文清理

Nsmf_PDUSession_ReleaseSMContext适用于UE与网络会话状态不匹配等情况,且上下文释放前无需N1或N2 SM信令。它并非每次会话释放都使用的通用AMF操作。若仍需信令,AMF可改用Nsmf_PDUSession_UpdateSMContext并携带释放指示。

这些操作针对会话上下文。独立的AMF清除流程针对去注册后保留的用户及移动性管理上下文。AMF清除结果不能证明某个特定UPF会话已被删除。

资源清理必须涵盖什么?

UPF会话与转发规则

PFCP Session Deletion移除选定PFCP会话及其相关规则,例如适用的PDR、FAR、QER和URR。成功的Response还可携带待提交的用量报告。应检查响应原因:仅出现响应,并不能证明删除成功。

TS 29.244 V18.7.0第6.3.4条区分删除成功与“Session context not found”。出现后者时,应先比较PFCP标识、先前事务及UPF重启历史,再判断记录是否已删除,或请求是否指向错误上下文。

多个UPF服务同一PDU会话时,应跟踪每个相关N4会话。共享基础设施不会仅因一个会话结束就消失:释放针对关联资源,而其他会话仍需要的共享资源可以继续保留。

接入、UE与核心网会话状态

RAN释放适用N2流程所请求的资源。如果这些资源此前已不存在,可能无需新的N2释放交互。在显式NAS路径上,通过Release Command与Complete交互更新UE状态。在跳过投递或UE不可达路径上,UE即时确认不是网络侧清理的前提。

在使用该操作的分支中,Nsmf_PDUSession_SMContextStatusNotify向AMF通知SM上下文已释放。AMF移除该会话与服务SMF的关联及相关会话信息;这并不意味着移除UE整个注册上下文。

动态策略控制需要终止相关SM Policy Association。UDM清理也有不同范围:删除SMF对已释放会话的注册,与取消订阅签约数据变更不同。在引用的释放流程中,取消订阅条件是该会话为此SMF针对该UE及相关DNN/S-NSSAI组合处理的最后一个PDU会话。这并不是任何会话结束时都删除全部用户数据的规则。

跨UE、RAN、SMF、UPF及策略关联的PDU会话状态清理概念检查表
清理检查表适用于选定会话。此处“UE上下文”指其会话管理状态,而非整个UE注册或用户账号。N1、N2、N4检查取决于实际分支;图示并不要求每种情况都出现三项可见的成功交互。

在信令跟踪中验证释放

从UE身份和会话生命周期开始,将PDU Session ID与SM上下文引用、NAS事务信息及相关UPF的PFCP标识关联。仅有PDU Session ID并不是全网唯一键。判断缺失数据包前,应记录触发原因、接入状态及抓取覆盖范围。

观察结果下一步检查
UE已停止传送数据检查是会话结束、用户面被去激活,还是转发故障。仅凭流量消失无法区分。
出现Release Complete,但UPF状态仍保留匹配准确的PFCP会话、删除响应原因及所有涉及的UPF。检查是否存在先前失败请求或新建立的会话。
PFCP删除成功,但RAN资源仍保留确定是否需要N2释放,再检查投递、RAN响应及当前资源状态。
缺少Release Command或Complete判定NAS故障前,检查UE可达性、跳过投递指示、AMF操作及跟踪可见范围。
反复出现Release Request或Command将NAS流程事务标识和定时器与投递结果关联。区分重传与新的释放尝试。
策略或UDM状态仍保留检查哪个关联或订阅属于此会话,以及其他有效会话是否仍需要它。

单项成功响应只确认其自身协议操作。端到端验证需要结合这些结果及实际存在资源的最终状态。若抓取未覆盖某接口,应将该部分报告为未观察,并使用对应功能的日志或状态检查补足信息。

常见问题

网络能拒绝UE请求的PDU会话释放吗?

可以。SMF不接受请求时,TS 24.501规定使用PDU Session Release Reject。应检查其5GSM原因及相应UE处理;发送Release Request并不保证之后会进行正常Command/Complete交互。

为什么释放后立即出现新会话?

检查Release Command是否携带5GSM原因#39,即“请求重新激活”。此时,UE应根据已释放会话的适用特征重新发起建立。新的建立是独立的生命周期事件,并不能证明旧会话删除必然失败。

删除PFCP会话是否也会断开SMF与UPF?

不会。PFCP Session Deletion针对单个会话。节点级PFCP关联是独立的,可继续支持同一控制面与用户面功能之间的其他会话。

推荐产品
目录
客服 电话
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .