百科全書
2026-08-05 17:37:32
5GC為什麼要將運算與儲存解耦?
透過無狀態網路功能、UDSF、UE上下文儲存、AMF自動復原、4G MME故障限制,以及韌性核心網路的工程價值,說明5GC為何將運算與儲存解耦。

貝克電信

5GC為什麼要將運算與儲存解耦?

核心網路故障並不一定是由處理能力不足引起。很多時候,真正的問題在於狀態。如果某個網路功能發生故障,但使用者上下文仍保存在可靠位置,其他功能就可能繼續提供服務。如果上下文隨故障節點一同消失,復原就會困難得多。這正是5GC一項重要設計理念背後的邏輯:將運算資源與儲存資源分離。

在行動核心網路中,使用者上下文可能包含註冊狀態、移動性資訊、暫時識別碼、工作階段相關資料、位置參照以及其他服務狀態。這些資訊協助網路辨識UE是誰、位於何處、正在使用哪個工作階段,以及後續訊號應如何處理。當這些上下文與單一本地網路功能執行個體緊密綁定時,該執行個體就不再只是處理節點,而會成為服務連續性的單點風險。

5GC透過支援更多無狀態網路功能來降低這項風險。這並不代表網路功能在運作過程中完全不使用狀態。關鍵在於,長期存在或可復原的狀態不應被困在單一本地運算執行個體中。藉由允許UE上下文等非結構化資料透過UDSF儲存與讀取,5GC為AMF及其他網路功能提供更具彈性的復原模式。

5GC運算與儲存解耦架構,顯示無狀態網路功能透過UDSF儲存及讀取非結構化UE上下文
5GC利用UDSF將服務處理與非結構化資料儲存分離,使網路功能更具韌性,也更容易復原。

本地狀態為何會帶來風險

4G MME的例子很容易說明這項問題。在LTE/EPC網路中,UE透過MME1完成附著後,該MME會建立UE上下文並將其儲存在本地。上下文可能包含移動性管理與工作階段管理資訊,例如UE位置、GUTI以及與UE IP相關的參數。

如果MME1意外故障,MME集區中的MME2在實體上可能仍然可用。然而,存在另一個MME並不代表服務會自動延續。如果UE上下文只儲存在MME1上,MME2就沒有足夠資訊繼續順暢地服務該UE。使用者可能需要重新啟動裝置或重新執行附著,服務才能恢復。從使用者體驗角度來看,這是一種較差的復原模式。

一種傳統解決方式是採用具有主備同步的MME叢集。在這種設計中,UE上下文會在主用MME與備用MME之間即時同步。如果主用MME故障,備用節點可以使用已同步的上下文接手服務。這種方式能減少服務中斷,但也有其限制。它可能依賴供應商專有實作,缺少廣泛標準支援,增加成本,並降低不同系統環境之間的可移植性。

更深層的問題在於,本地狀態會讓服務執行個體與其資料緊密耦合。一旦運算節點成為使用者上下文唯一實際可用的持有者,故障切換就會更複雜。5GC採用更清楚的模式,將可復原狀態放入獨立的儲存功能中,並允許獲得授權的網路功能存取。

UDSF帶來了什麼改變

UDSF是非結構化資料儲存功能。它允許任何5GC網路功能儲存與讀取本身的非結構化資料,包括UE上下文等資料。在這種模式下,AMF或其他NF可作為運算功能處理訊號,而UDSF則提供獨立位置,用來保存選定的狀態資訊。

這個概念類似無碟工作站。無碟工作站具有CPU、記憶體、網路介面及其他執行硬體,但不會把工作資料保存在本地硬碟上。它從網路伺服器啟動並取得資料。工作站負責執行運算,而儲存則被獨立出來。在5GC中,網路功能也可採用類似設計:NF負責處理訊號與服務邏輯,上下文資料則保存在本地執行個體之外。

UDSF的價值並不只是充當資料庫。它的架構價值在於支援無狀態NF設計、AMF復原,以及更具彈性的雲端原生部署。當狀態能透過UDSF存取時,某個AMF執行個體發生故障並不一定會造成UE上下文永久遺失。新選定的AMF可以讀取所需上下文,並在下一次交易發生時繼續處理。

UDSF也符合核心網路虛擬化與雲端原生化的發展方向。在雲端部署環境中,網路功能執行個體可能擴充、縮減、重新啟動或在基礎設施之間移動。如果每個執行個體都牢牢占有自身的本地狀態,自動化就會變得困難。運算與儲存解耦可讓擴縮與復原更容易管理。

不同資料類型有何差異

要正確理解UDSF,必須區分結構化資料與非結構化資料。在5GC術語中,結構化資料是指其結構由3GPP規範定義的資料。訂閱資料就是典型範例,因為其資源結構與存取模式都有明確說明。

非結構化資料是指內部結構未由3GPP規範定義的資料。UE上下文就是典型範例。它對服務連續性非常重要,但其具體內部組織方式並不像訂閱資料那樣被標準化。因此,它適合透過UDSF儲存。

這項差異會影響工程設計。結構化資料可透過具有明確資源模型的標準化資料服務進行管理。非結構化資料通常由負責服務邏輯的網路功能產生並解讀。UDSF為該網路功能提供保存與讀取資料的位置,而不必強制將整個內部格式轉換為標準化資料樹。

在部署規劃中,工程師不應把所有5GC資料視為同一類別。訂閱資料、政策資料、工作階段狀態、暫時使用者上下文及復原相關資訊,在存取頻率、延遲敏感度、結構、歸屬與復原需求方面都可能不同。UDSF主要用於儲存網路功能為實現韌性與連續性所需的非結構化狀態。

5GC AMF自動復原流程,顯示AMF1故障、5G接取網路重新選擇、AMF2從UDSF讀取UE上下文並繼續提供服務
藉助UDSF,新選定的AMF可以在AMF故障後讀取UE上下文,並以較小的使用者影響繼續提供服務。

AMF復原如何運作

採用UDSF的典型AMF復原程序遵循清楚的順序。首先,5G UE透過AMF1完成註冊。AMF1建立接取與移動性管理所需的UE上下文。之後,AMF1將UE上下文儲存到UDSF。此時,使用者狀態不再只被限制在本地AMF執行個體內部。

如果AMF1發生故障,5G接取網路或對等控制平面功能會偵測到故障。故障AMF將不再參與選擇。當網路需要從相同AMF集合中選擇另一個AMF時,可以選擇AMF2。此時,UDSF會改變復原行為。

AMF2不需要把UE當成完全未知的裝置處理。當UE發生交易時,AMF2可以從UDSF讀取UE上下文。讀取過程可使用SUPI、5G-GUTI或AMF UE NGAP ID等識別碼。取得上下文後,AMF2可處理UE訊息,並在需要時向UE更新5G-GUTI。

實際結果是服務連續性獲得改善。網路仍需要正確的故障偵測、AMF重新選擇和上下文讀取邏輯,但與所有使用者上下文只儲存在故障節點內部的模式相比,復原基礎更加穩固。從使用者端來看,理想結果是復原程序不需要重新啟動裝置、不需要手動重新附著,也不會產生明顯的服務中斷。

工程價值與限制

運算與儲存解耦的首要工程價值是韌性。如果某個AMF執行個體故障,服務狀態仍可能透過UDSF保持可用。這可減少對本地節點狀態的依賴,並協助網路以較小影響完成復原。它也支援彈性擴充,因為新網路功能執行個體可直接加入,而不需要預先在本地同步全部歷史狀態。

第二項價值是架構可移植性。與供應商專有的主備同步相比,UDSF屬於5GC架構的一部分,也更符合標準化的雲端原生核心網路設計。它支援以更開放的方式考量狀態儲存與復原,而不是把高可用能力鎖定在私有叢集機制中。

不過,UDSF並不會消除所有複雜性。它本身會成為復原鏈路中的關鍵元件。如果UDSF速度過慢、無法使用、資料不一致或保護不足,就可能形成新的瓶頸。因此,UDSF本身必須具備高可用、快速讀寫、可靠複製、安全存取控制與災難復原能力。

資料庫選擇同樣重要。根據供應商實作與系統需求,UDSF相關設計中可能採用關聯式資料庫,也可能採用非關聯式資料庫。關鍵問題不只是使用哪種資料庫,而是整體儲存層能否滿足電信等級的延遲、可靠性、一致性與復原要求。

對工程師而言,最重要的檢查項目包括:UE上下文是否在正確時間寫入UDSF,新選定的AMF能否正確讀取,AMF集合選擇是否按照預期運作,識別碼是否獲得一致處理,以及故障切換對使用者而言是否真正無感或接近無感。只有對完整復原路徑進行端到端測試,解耦設計才具有實際價值。

常見問題

UDSF只供AMF使用嗎?

不是。UDSF面向任何需要儲存和讀取非結構化資料的網路功能。利用UE上下文實現AMF復原只是其中最容易理解的範例之一。

為什麼UE上下文被視為非結構化資料?

UE上下文很重要,但其內部結構並未被完整定義為標準化的3GPP資料結構。因此,它適合以非結構化資料形式儲存。

UDSF會取代網路功能內部的所有本地狀態嗎?

不會完全取代。網路功能在處理過程中仍可能使用暫時本地狀態。UDSF主要用於保留可復原的非結構化資料,避免這些資料隨單一運算執行個體故障而遺失。

UDSF能夠保證服務完全不中斷嗎?

僅靠UDSF不能保證。它能改善復原基礎,但實際連續性還取決於故障偵測、AMF重新選擇、資料新鮮度、訊號行為以及UDSF可用性。

UDSF投入正式環境前應測試哪些內容?

測試應涵蓋上下文寫入時機、上下文讀取、AMF故障偵測、AMF集合重新選擇、資料庫故障切換、讀寫延遲、存取安全,以及復原過程中UE的實際體驗。

5GC運算與儲存解耦不只是一次資料庫調整。它改變了核心網路看待狀態、故障與復原的方式。透過UDSF保存UE上下文等非結構化資料,網路功能可以減少對本地儲存的依賴,並更適合具韌性的雲端原生部署。核心理念很簡單:運算執行個體可以故障或變更,但使用者狀態必須始終能夠復原。

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