百科全書
2026-08-17 16:25:23
AMF 如何開放 UE 事件?
Namf_EventExposure 讓 5G AMF 能透過訂閱與通知機制開放 UE 位置、可達性、註冊狀態和連線狀態等行動性相關事件。

貝克電信

AMF 如何開放 UE 事件?

在 5G 核心網路中,AMF 掌握 UE 的第一手行動性資訊,包括目前的追蹤區、可達狀態、註冊變化、CM 狀態以及接入類型變化。當 SMF、NEF 或 UDM 等網路功能需要這些資訊時,反覆查詢 AMF 只能取得某一時刻的狀態快照,無法有效掌握狀態變化。Namf_EventExposure 透過把 AMF 管理的行動性資訊轉化為其他網路功能可訂閱並持續接收通知的事件服務來解決這個問題。

  • 服務名稱: Namf_EventExposure

    核心模式: 事件訂閱 + 狀態變化通知

    典型消費者: SMF、NEF、UDM

    版本背景: 依據相關 3GPP Release 15.6 定義

服務角色與邊界

Namf_EventExposure 是 AMF 向其他網路功能開放行動性相關事件的一項服務。由於 AMF 負責接入與行動性管理,它直接維護 UE 位置、註冊狀態和連線管理狀態等資訊。其他網路功能不需要重新建立相同的狀態判斷邏輯,而是可透過此服務宣告自己關注的事件,由 AMF 判斷事件何時發生,並在符合已設定條件時傳送通知。

事件訂閱與傳統狀態查詢有本質上的不同。查詢回答的是「目前狀態是什麼?」,事件訂閱回答的是「狀態何時改變?」。例如,SMF 不必持續查詢某個 UE 是否可達,它可能只需要在 UE 從可達變成不可達時收到通知。NEF 可能只關心 UE 是否進入某個指定區域,而 UDM 可能關注註冊或可達性變化。因此,事件開放提供一種非同步、由條件驅動的資訊交換方式,只在需要時傳遞資訊。

AMF 不會不加區分地廣播所有內部資訊。事件依照已建立的訂閱關係進行開放。消費者、目標 UE、事件類型與通知 URI 共同界定訂閱範圍。這種方式可減少不必要的信令,同時讓各網路功能只訂閱與自身服務邏輯相關的行動性資訊。

Namf EventExposure 服務架構圖,顯示 AMF 透過訂閱關係向 SMF、NEF 與 UDM 開放行動性事件
Namf_EventExposure 將 AMF 維護的行動性資訊轉換為供其他網路功能使用的事件訂閱與通知能力。

事件類型與關鍵參數

AMF 可開放涵蓋 UE 行動性、註冊、連線與可達性等多個面向的事件。與其逐一記憶每種事件,更實用的方式是分成三類理解:位置與區域事件、註冊與接入狀態事件,以及可達性或異常事件。

位置與區域事件

UE 位置報告是最直接的事件類型之一。消費者可訂閱單一 UE 或一組 UE 的位置變化,通知中可攜帶 TAI 與小區識別碼等資訊。AOI(關注區域)報告則著重 UE 與預先定義區域之間的關係,例如 UE 是否進入該區域、離開該區域,或處於未知狀態。

當應用不需要持續取得精確位置更新,只需要知道 UE 是否位於某個定義區域內時,AOI 報告特別實用。例如,如果應用只需判斷 UE 是否進入由 TA1 與 TA2 組成的區域,那麼在 UE 持續停留於該區域內時,就沒有必要不斷產生位置通知;只有 UE 進入或離開已設定區域時才需要上報。

註冊、接入與連線狀態

註冊狀態報告區分 REGISTERED 與 DEREGISTERED,而連線管理報告指出 UE 處於 CM-IDLE 還是 CM-CONNECTED。對需要判斷使用者平面或信令通訊能否立即建立的網路功能而言,這兩種狀態具有不同意義。

AMF 也可以開放 UE 接入網路類型的變化,例如在 3GPP 與非 3GPP 接入之間切換,以及 UE 目前時區的變化。這些參數通常不需要高頻輪詢,但一旦發生變化,可能影響策略判斷或服務處理,因此很適合採用事件訂閱模式。

可達性與異常事件

可達性報告用於說明 AMF 是否認為網路可以到達該 UE。可能的結果包括 可達、不可達與 REGULATORY-ONLY。REGULATORY-ONLY 表示 UE 只對法規優先服務可達。可達性不應與連線狀態混淆:處於 CM-IDLE 的 UE 仍可能可達,只是在重新建立連線前可能需要先進行尋呼。

異常事件描述通訊失敗或通訊中斷。通訊失敗報告可包含 RAN 或 NAS 連線釋放原因值。當 AMF 判定與 UE 的通訊已中斷時,例如行動可達性計時器到期,就可以產生通訊中斷報告,讓訂閱方收到相關 UE 識別資訊。

除了與單一 UE 或一組 UE 相關的事件外,AMF 也可以開放特定區域內 UE 數量的統計資訊。在這種情況下,消費者關心的是區域內 UE 總數,而不是特定訂閱者的狀態。這表示 事件開放 不只限於逐 UE 通知,也能提供與行動性相關的統計資訊。

AMF 事件開放分類圖,顯示 UE 位置、AOI、註冊、連線、可達性、接入類型與通訊失敗報告
AMF 事件開放涵蓋位置、區域、註冊、連線、可達性、接入類型與通訊異常等資訊。

訂閱、更新與通知

Namf_EventExposure 以完整訂閱生命週期來管理狀態變化。網路功能消費者先建立訂閱,由 AMF 保存訂閱關係。若消費者之後需要變更事件條件,可以更新訂閱;不再需要該事件時,則可以刪除訂閱。實際事件結果之後由 AMF 傳送到已設定的通知位址。

建立訂閱時,消費者以 POST 請求提交新訂閱。若請求成功,AMF 會回傳已建立的訂閱資訊,以及後續操作可引用的識別碼。若消費者需要修改事件條件,可對相關訂閱使用 PATCH,而不必先刪除再重建。當事件不再需要時,消費者傳送 DELETE 移除訂閱關係,此後 AMF 不再針對該訂閱傳送通知。

Notify 是傳送實際狀態變化的關鍵步驟。當訂閱的事件條件成立時,AMF 透過 POST 將事件通知傳送到訂閱中保存的 eventNotificationUri。消費者處理通知並回傳回應後,該次通知交易即完成。典型流程可概括如下:

  1. 消費者確認希望監控的 UE 與事件;

  2. AMF 建立並維護訂閱上下文;

  3. AMF 持續追蹤相關行動性狀態;

  4. 當事件條件成立時,AMF 傳送通知;

  5. 消費者處理事件並執行所需的服務邏輯;

  6. 當服務需求改變時,更新或刪除訂閱。

Namf EventExposure 信令流程圖,顯示 NF 服務消費者與 AMF 之間的訂閱建立、更新、刪除與事件通知
Namf_EventExposure 透過訂閱建立、更新、刪除與 Notify 程序管理完整事件生命週期。

報告可設定為一次性或連續模式。一次性報告適用於消費者只需要目前結果或單次事件發生結果的情況。採用連續報告時,訂閱會維持有效,之後符合設定條件的狀態變化仍可觸發額外通知。因此從工程角度來看,「訂閱哪個事件」與「需要多少次報告」應視為兩個獨立的設定考量。

工程觀點與結論

從 5GC 服務化架構的觀點來看,Namf_EventExposure 處理的是職責邊界:哪個網路功能負責偵測狀態,哪個網路功能負責使用狀態。由於 AMF 已經掌握行動性管理資訊,相較於讓 SMF、NEF 或 UDM 透過額外信令反覆推斷同一 UE 狀態,由 AMF 透過標準化事件機制開放資訊更有效率。

這也是訂閱模式特別適合事件開放的原因。UE 位置、註冊、連線狀態與可達性都屬於狀態型資訊。大多數時間這些值不會改變,但一旦發生變化,就可能立即影響其他網路功能的行為。持續輪詢會產生大量實際運作價值不高的信令,而訂閱與通知則能只在真正發生事件時傳遞資訊。

實務分析 Namf_EventExposure 信令時,有四個要素特別重要:哪個 NF 建立訂閱、要求哪個事件、正在監控哪個 UE 或區域,以及通知傳送到哪裡。將訂閱 ID 與 eventNotificationUri 一起追蹤,通常就能還原從訂閱建立、修改到最終 Notify 訊息的完整互動。

理解 Namf_EventExposure 最有效的方法,是建立一個簡單模型:AMF 維護行動性狀態,消費者宣告關注內容,訂閱建立關係,狀態改變時由 Notify 傳送結果。掌握這個模型後,位置、AOI、註冊、連線狀態與可達性等具體事件就更容易理解。

FAQ

Namf_EventExposure 與直接查詢 AMF 的根本差異是什麼?

直接查詢取得的是特定時刻的狀態。事件開放 則預先建立關注關係,讓 AMF 在相關狀態發生變化時通知消費者。前者適合單一時間點查詢,後者更適合持續事件監控。

一個消費者可以訂閱多個 UE 的事件嗎?

可以。支援的目標範圍取決於事件類型。有些事件可套用於單一 UE 或一組 UE,而指定區域內 UE 數量等統計資訊則可涵蓋任意數量的 UE。

CM-IDLE 是否表示 UE 不可達?

不是。CM 狀態描述 UE 的連線管理狀態,而可達性描述網路是否能到達 UE。處於 CM-IDLE 的 UE 仍可能可達,只是進行通訊前通常需要先恢復連線。

為什麼事件通知需要獨立的 回呼 URI?

訂閱建立與事件發生不一定在同一時間。消費者在建立訂閱時提供通知 URI,讓 AMF 之後在符合已設定事件條件時可以傳送 Notify 訊息,而不必持續維持原始請求連線。

推薦產品
目錄
客服 電話
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 .