百科
2026-09-22 17:30:47

5GC核心网PDU会话修改流程

5GC PDU会话修改通过有条件执行的NAS、NGAP和PFCP流程更新现有会话。核查时需区分UE请求、策略变更、QoS限制,以及能够证明变更已落实的证据。

贝克电信

5GC核心网PDU会话修改流程

5G设备可以在授权服务发生变化时保持连接。应用可能需要不同的QoS处理,订阅数据更新可能改变聚合速率限制,无线接入网也可能报告某个现有QoS流已无法获得其授权资源。工程核查的重点,是确定现有会话中哪些部分必须改变,以及如何证明这些部分已得到一致更新。

PDU会话修改用于更新已存在的PDU会话。SMF负责协调受影响的UE参数、接入资源和用户面规则。策略决策、服务API的成功响应和可用的数据连接,是不同层面的观察结果;单独任何一项都不能证明预期变更已完整生效。

适用范围:现有会话及有条件的资源更新

会话必须已经存在,但并非每次修改开始时都要求用户面连接处于活动状态。UE的连接状态和可达性会影响消息下发。例如,处于CM-IDLE状态的UE可能需要先执行Service Request,再发送会话管理请求。网络发起的处理同样取决于适用的可达性流程。

下文以3GPP TS 23.502 Release 18第4.3.3.2节中的非漫游及本地疏导流程为范围。归属地路由漫游、中间SMF、多接入操作和其他扩展会引入额外路径。分析跟踪记录时,应与实际部署的版本和架构对照。

修改可以改变QoS规则或流参数、增加或删除QoS流,以及承载某些其他会话更新。它不同于创建会话上下文的PDU会话建立,也不同于删除上下文的PDU会话释放。因此,常规QoS变更应围绕现有会话上下文排查,不应当作新的注册问题处理。

识别触发修改的事件

应从最早的原因事件入手,而不是仅从不完整抓包中首先出现的Modification Command开始。下发命令表明SMF已开始传递变更,但不能说明策略为何改变。

触发来源应查找的证据需要明确的边界
UE请求经AMF转发的PDU SESSION MODIFICATION REQUEST及其中请求的变更。请求须经网络授权;应用不会自动获得其期望的QoS。
PCF策略变更携带相关会话修订后决策的策略关联通知。收到策略通知与执行其内容是两件事。
UDM订阅数据更新订阅数据通知,以及SMF据此作出的决策。数据更新并不意味着UE、RAN和UPF的所有参数都会改变。
SMF决策要求更新的本地策略、会话状态或其他有记录的流程。动态PCC仅在适用条件下使用;某些部署采用本地策略。
RAN相关事件由AMF转送的N2会话信息,例如资源释放或适用的QoS通知。gNB不会直接调用SMF上的会话管理API。

应将会话标识、相关上下文引用与时间戳一并记录。否则,在繁忙网络中,不同会话的两个相似策略事件可能被误认为同一个流程。还存在AMF相关触发及Release 18的专项功能;表中列出的是常见排查起点,并非全部触发条件。

UE、PCF、UDM、SMF和RAN事件触发PDU会话修改的概念示意图
触发关系仅作概念说明。UE和RAN信息通过适用的AMF流程到达SMF;箭头不表示每个来源都与SMF存在直接接口。

UE发起的修改:请求、授权与下发

以一个ID为5的现有PDU会话为例。UE请求为指定流量采用不同处理方式,内容包括适用的包过滤器操作和所请求的QoS信息。该会话ID只是示例,并非保留标识。发出请求既不代表建立新会话,也不能证明无线接入网能够接纳所请求的资源。

  1. 接收请求。UE的会话管理消息通过接入网和AMF传递。AMF针对现有SM上下文调用Nsmf_PDUSession_UpdateSMContext。

  2. 确定获准的变更。SMF结合订阅信息、适用策略和部署中的控制流程评估请求。动态策略流程有要求时,SMF与PCF交互。

  3. 准备受影响部分的更新。SMF判断是否需要修改UE的QoS信息、接入资源和UPF规则。记录中必须能够区分请求值与最终授权值。

  4. 下发并协调处理结果。AMF传递适用的N1和N2信息。SMF处理返回结果,并执行必要的后续更新。

检查服务接口跟踪记录时,可参考TS 29.502在Nsmf_PDUSession API根路径下定义的以下修改资源。这是路径模板,并非可直接执行的完整请求;API版本、服务地址、授权及请求体取决于具体部署。

更新现有SM上下文
POST {apiRoot}/nsmf-pdusession/{apiVersion}/sm-contexts/{smContextRef}/modify

网络发送PDU SESSION MODIFICATION COMMAND后,接受该命令的UE以PDU SESSION MODIFICATION COMPLETE响应。TS 23.502的阶段2图使用描述性标签“Command Ack”;解码报文时,应采用TS 24.501规定的实际5GSM NAS消息类型。上下文更新服务的HTTP响应不能替代这项NAS证据。

UE请求QoS修改的示意图,展示UE、gNB、AMF、SMF和PCF的角色
屏幕与箭头用于说明概念,并非标准化的手机操作界面或完整报文时序。N1会话管理内容和N2信息通过AMF传递;PCF是否参与取决于策略流程。

PCF触发的修改:明确速率限制的含义

网络策略变更可以在没有UE请求的情况下开始。例如,某运营商策略可能在满足用量条件后,将授权的下行Session-AMBR降至10 Mbps。这是假设的策略示例,并非3GPP默认值,也不是网络实测结果。用量检测和报告机制需要另外明确。

PCF通过现有策略关联将决策传递给SMF,随后SMF将其转化为适用的会话参数和执行规则。检查报文前,应先明确具体参数:如果没有说明方向、适用范围和流量类别,“将速率降至10 Mbps”并不是完整要求。

项目在修改排查中的含义常见误区
QFI标识PDU会话内的一个QoS流。将该标识本身视为优先级或比特率。
5QI标识一组QoS特性。将5QI值理解为数值形式的吞吐量上限。
GFBR和MFBRGBR QoS流按方向区分的流比特率参数。不加区分地将这些参数用于所有非GBR流。
Session-AMBR会话内非GBR QoS流共享的聚合限制,上行和下行分别设值。将其视为每个流各自享有的额度,或在同一比较中计入GBR流量。
QERUPF用于执行适用QoS控制的PFCP规则。认为QER ID就是QFI,或认为修改一个QER就会自动覆盖所有目标流量。

在上述示例中,应将授权的下行Session-AMBR与已安装的相关执行规则及非GBR下行聚合流量对照。单个应用的网速显示不足以作为证据。报文分类、会话中的其他流量、平均速率计算方式和测量位置都会影响比较结果。

SMF通过适用的策略控制流程报告策略执行结果。不能把通知已被接收的确认,记录为UE、RAN和UPF均已落实该决策的证明。

分别分析N1、N2和N4执行路径

N1:UE会话管理参数

N1是UE与AMF之间的参考点;会话管理NAS内容由UE和SMF处理,AMF负责转送。应检查命令中的实际QoS规则操作和流描述,再检查UE响应。图中从SMF指向UE的箭头通常表示逻辑上的会话管理通信,并非直接传输连接。

N2:接入网资源

N2连接AMF与接入网。SMF提供会话相关信息,由AMF传递。涉及接入资源变更时,应检查相关NGAP流程及其中获准或被拒绝的QFI。某个流成功,不能掩盖另一个流被拒绝。如果整个N2请求失败,其处理与部分成功不同;应沿原因值及SMF的后续动作继续分析。

N4:UPF规则

N4在SMF与UPF之间使用PFCP。应检查所请求的规则变更和PFCP响应中的Cause,包括适用情况下的拒绝或部分接受。有效排查应沿着目标流量的报文检测规则及其关联的执行、转发规则展开,而不是孤立检查无关的QER。

PFCP会话修改与PDU会话修改是不同流程。N4规则更新可以是更广泛会话变更的一部分,也可能出于其他用户面控制原因发生。并非每次修改都要在这三条路径上进行新的交互。TS 23.502包含有条件的更新和多个可能的N4更新时点;“先N4、再N2、后N1”的简化顺序不是通用时序。

UE参数更新、gNB资源变更和UPF规则执行的概念对比图
图中归纳了三类职责。AMF转送N1会话管理内容和N2信息;PFCP仅适用于N4。箭头既不规定强制顺序,也不表示每次都要修改全部三条路径。

通过关联跟踪记录和流量测试验证结果

QoS更新不完整时,会话仍可能传输数据。因此,连接持续可用,并不能充分说明新策略是否已正确安装。应先记录预期的变更前后数值,再找出预期与执行首次出现偏差的位置。

核查点应保留的证据结果不一致时的下一步排查
触发与授权原始请求或通知;会话引用;请求值和授权值。错误的策略关联、过时的订阅信息或被拒绝的授权。
SMF转换SMF计划修改的UE、RAN和UPF参数。缺失的参数转换、错误的适用范围,或本应生成却未生成的更新。
UPF执行(如需要)PFCP事务和Cause;受影响的规则ID;已安装的分类与执行规则。规则更新被拒绝、UPF选择错误、流量未匹配或规则关联错误。
接入侧执行(如需要)NGAP结果及获准或被拒绝的QFI与原因。接纳或资源限制,以及部分失败处理不完整。
UE同步(如需要)已下发的命令、NAS响应、重传和更新后的UE上下文。下发失败、参数被拒绝或尚未消除的上下文差异。
实际服务表现变更前后的受控流量,并记录方向、分类、负载及时间信息。测量口径不一致、其他瓶颈,或策略实际上作用于不同的流量集合。

执行限速测试时,应提供足够的输入负载,并记录流量统计方法。将GBR与非GBR流量分开,不混合无关会话,并选择适合相应速率控制机制的观察时段。短暂突发超过目标值与聚合流量持续超限,是不同的结果。同样,无线条件较差时出现低吞吐量,也不能证明预期的限速机制已生效。

当RAN拒绝部分QFI时,应检查SMF如何协调剩余会话与UE上下文。不要把部分失败视为整个PDU会话必然失败,也不要把笼统的成功指示视为所有请求的流均已获准。重试前应保留事务证据,避免恢复尝试掩盖原始故障。

常见问题

常规QoS修改是否需要新的IP地址?

仅涉及QoS规则或比特率参数的变更,本身不要求为现有IP PDU会话分配新的IP地址。如果地址发生变化,应核查是否同时执行了其他流程,例如重新建立会话或会话连续性操作。

获准的5QI能否保证应用响应时间?

不能。QoS特性描述的是相关5G路径上的处理方式。应用处理和UPF之外的网络也会增加时延。如果会话变更已验证生效,但应用仍然缓慢,应测量这些额外环节,而不是反复修改该流的QoS。

测试时应如何处理短时间内连续发生的策略更新?

保留每次预期值及其实际事务时间线。较晚的决策可能取代先前测试所依据的值。在受控复现中,条件允许时先隔离单项变更,再重复约定的重叠更新场景。不要用当前流量结果与过时的策略快照比较。

标准参考资料

推荐产品
目录
客服 电话
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 .