行業洞察
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 .