行业洞察
2026-09-20 17:47:03

5GC PDU会话建立流程

5GC PDU会话建立连接UE的NAS请求、SMF选择、订阅检查、PFCP规则与N3配置。信令跟踪检查点用于区分信令成功与真正可用的用户面连接。

贝克电信

5GC PDU会话建立流程

UE完成5G注册后,应用程序仍可能无法访问互联网。注册建立接入与移动性上下文;PDU会话建立则创建连接UE与数据网络的会话。仅有5G图标或Registration Accept,既不能证明会话已经建立,也不能证明数据包能够正常转发。

本文以非漫游或本地疏导流程为参考,说明UE通过3GPP接入请求新建会话的过程。归属路由漫游、紧急会话、接入转移以及控制面CIoT优化包含额外或不同的分支。下述常规N3用户面流程并不是适用于所有部署的统一流程。

注册与PDU会话承担不同任务

AMF协调身份处理、认证、NAS安全与注册管理上下文。PDU会话增加数据业务所需的DNN、S-NSSAI、服务SMF、用户面锚点及获准的会话参数。互联网、IMS与企业网络连接可以使用不同会话。

在EPC术语中,一个PDN连接包含EPS承载。在5GS中,对应的理解模型是包含QoS流的PDU会话;默认QoS规则并不会创建LTE默认EPS承载。已注册UE可以没有PDU会话,也可以为不同业务维持多个会话。会话可以在注册完成后不久建立,也可以在之后需要连接时建立。

对于IP类型的PDU会话,地址分配或配置属于连接建立的一部分。PDU会话还有Ethernet和Unstructured类型,因此获得IP地址并不是所有会话的共同结果。本文中的IP地址示例适用于IP会话。

办公场景插图,对比注册、认证、NAS安全与PDU会话数据连接
说明注册与PDU会话连接之间边界的概念插图。

分别阅读NAS传输层与内部会话请求

UE将PDU Session Establishment Request放入N1 SM容器,通过UL NAS TRANSPORT发送。AMF用于路由的DNN、S-NSSAI、Request Type和PDU Session ID,需要与内部5GSM消息区分。内部请求标识会话并请求PDU Session Type、SSC Mode等参数;外层传输提供路由上下文。

  • PDU Session ID区分同一UE的多个会话。SUPI标识订户,而不是某一个会话。

  • DNN标识目标数据网络,并参与SMF选择、UPF选择及策略决策。

  • S-NSSAI标识网络切片。请求的组合必须与允许的切片、订阅及网络能力兼容。

  • Request Type区分初始请求、已有会话或紧急业务相关场景。不能只凭消息名称就认定是在新建会话。

请求参数是授权判断的输入,并非有保证的结果。应检查实际选择的DNN和S-NSSAI,以及允许的PDU会话类型和SSC模式是否符合预期业务。

AMF选择SMF并创建SM上下文

gNB通过NGAP把NAS信令转发至AMF,并附带TAI、NR-CGI等接入及位置信息。它不负责选择会话策略或UPF转发规则,而是在后续控制所需无线资源。

AMF选择能够服务相应DNN与S-NSSAI的SMF。NRF发现可以根据切片、DNN与服务网络信息,返回Nsmf_PDUSession服务的候选实例。选择还取决于部署策略。发现缓存、本地配置或SCP路由会改变跟踪中出现的发现交互。

AMF调用Nsmf_PDUSession_CreateSMContext,携带订户与会话标识、选定的路由信息及N1 SM容器。SMF接管会话控制,AMF则继续管理接入与移动性并传输N1/N2信息。

平板电脑插图,将PDU会话请求及DNN/S-NSSAI与SMF选择和SM上下文相连
请求路由、SMF选择与SM上下文创建的概念视图。

订阅数据与策略限定会话范围

SMF在需要时从UDM获取相关会话管理订阅数据,并可订阅数据变更。与DNN及S-NSSAI关联的数据可以限制PDU Session Type、SSC Mode、Session-AMBR和默认QoS。例如,IPv4请求仍需要获准且兼容的会话类型。

SMF也会在相应阶段向UDM注册其对订户和会话的服务关系。数据获取、变更订阅与注册是不同操作;其顺序和复用取决于流程及已有上下文。不应把它们视为每次请求都必须重复的一笔固定事务。

部署动态SM策略控制时,SMF选择PCF并建立SM策略关联。订户身份、DNN、S-NSSAI、位置和订阅QoS都可作为授权策略的依据。适用时,外部数据网络的认证或授权也是一个有条件的检查环节。

SMF在配置用户面处理之前,协调UE请求、订阅限制与适用策略。PCF是否参与以及具体规则取决于业务与部署;缺少某个可选交互本身并不能证明故障。

N4将会话要求转化为UPF规则

SMF依据DNN、切片、拓扑与UE位置等因素选择合适的UPF。在N4上,它使用PFCP建立或修改所需用户面会话。对于常规新建会话,PFCP Session Establishment Request安装初始规则。

  • PDR识别属于某个会话或业务流的数据包,并引用适用的处理规则。

  • FAR规定对匹配数据包进行转发、丢弃、缓存或其他受支持的处理。

  • QER执行相应QoS控制,包括门控或速率控制。

  • URR定义适用的用量测量与报告。

这些规则协同工作;并非所有会话都需要相同的规则组合。除规则内容外,还要检查PDR的引用关系。即使FAR本身正确,关联到错误PDR仍会造成转发错误。

UPF响应使用F-SEID标识其PFCP会话,并在适用时返回分配的用户面隧道信息。PFCP F-SEID标识控制面会话状态;N3 F-TEID标识GTP-U隧道端点。两者不能互换。隧道信息可以按所支持的流程分配,而不是总以某一种固定方式生成。

此时,UPF侧N3信息可能已经就绪,但gNB侧下行端点仍未知。因此,初始PFCP交互成功并不代表整条数据路径已经完成。

N1与N2协调无线资源及N3隧道

SMF调用Namf_Communication_N1N2MessageTransfer,提供两类不同载荷。N1 SM信息向UE传递PDU Session Establishment Accept,并在适用时包含协商参数和获准的QoS规则。N2 SM信息向RAN提供会话、QoS流及UPF侧上行隧道端点信息。

检查DNN、S-NSSAI与地址信息时,应区分消息层次。与整个流程相关的参数并不全是内部Accept中的信息元素。IPv6会话还可能需要后续IPv6地址配置。

AMF发送NGAP的PDU Session Resource Setup Request。gNB分配相应无线与N3资源,并向UE交付NAS Accept。其PDU Session Resource Setup Response报告接受或失败的资源,以及gNB侧下行隧道信息。

AMF通过Nsmf_PDUSession_UpdateSMContext转发N2结果。随后SMF按需使用PFCP Session Modification提供gNB端点并更新下行转发。必须同时检查IP地址与TEID:某一方向所用的TEID由该方向的接收端点分配。

常规用户路径为UE → gNB → N3 GTP-U → UPF → N6 → 数据网络,下行沿反向路径传输。多个UPF或部署特定路由可以扩展这一模型。NAS接受、RAN资源配置与实际端到端流量是不同的证据检查点。

服务器机房插图,展示PFCP、UPF的PDR/FAR/QER规则、N3隧道、QoS流与gNB
UPF规则安装与N3连接的概念插图

排查第一个失败的检查点

  1. 确认注册,并在AMF处捕获UE请求。比较外层路由参数与内部5GSM请求,包括会话ID、Request Type、DNN、S-NSSAI、PDU Session Type和SSC Mode。

  2. 检查SMF选择与SM上下文创建。关联NAS和基于服务的信令中的订户与会话标识,然后检查拒绝原因或服务错误。

  3. 检查订阅授权、适用PCF策略及必要的外部认证。区分业务拒绝与传输故障。

  4. 检查PFCP结果、PDR/FAR/QER/URR关系及各方向隧道端点。确认gNB结果和任何后续N4修改。

  5. 观察N3上的上下行GTP-U,再检查N6流量。按需检查路由、返回路径、地址配置与DNS。隧道正常并不能证明目标应用可达。

利用第一个失败点,将故障范围缩小到NAS、基于服务的信令、N4、RAN/N3或数据网络。收到有效的会话Accept后,除非跟踪指向注册或安全问题,否则反复检查认证通常没有帮助。

常见问题

注册是否会自动建立PDU会话?

不会。这是两个独立流程。UE可以在没有会话的情况下保持已注册,并在之后请求会话。时间取决于UE行为、配置的业务与网络策略。

Accept是否证明互联网业务正常?

不能。应验证RAN资源、N3双向路径、UPF规则与N6可达性。对于IP会话,还要检查地址配置和预期数据网络;并非每个DNN都提供公共互联网接入。

为什么建立之后还会出现N4修改?

gNB端点可能只有在RAN资源建立后才可用。SMF随后更新UPF,使下行数据包使用该端点。应阅读实际变更的规则,而不是把每次修改都视为新会话。

QFI与QER是否相同?

不同。QFI标识5GS中的QoS流。QER是UPF中的PFCP QoS执行规则,可携带适用QFI。标识符与执行规则承担不同作用。

相关流程与标准

前置接入流程可参阅5G初始注册。删除已有会话可参阅PDU会话释放;释放一个会话不一定需要将UE去注册。

参考流程见3GPP TS 23.502第4.3.2.2.1节。消息内容与NAS传输由3GPP TS 24.501定义,PFCP规则与隧道参数由3GPP TS 29.244定义。

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