百科全书
2026-08-19 18:24:27
AMF Pool如何实现负载均衡与容灾?
在5G核心网中,AMF Pool将多台AMF组成共享服务集群,并通过GUAMI层级、AMF Set架构、权重选择和N2全连接,实现负载均衡、故障容灾、移动性信令优化与无中断维护。

贝克电信

AMF Pool如何实现负载均衡与容灾?

在5G核心网控制面中,AMF负责UE接入管理、移动性管理和NAS信令等关键功能,因此AMF架构的可靠性会直接影响整体业务连续性。传统部署中,gNB可能静态关联到某一台AMF。网络规模较小时这种方式较为简单,但随着用户规模增长、流量分布更加动态以及云化部署日益普及,其局限性会越来越明显。服务繁忙商业区的AMF在高峰时段可能长期处于高负载,而相邻资源却没有得到充分利用。如果单台AMF发生软件或硬件故障,其服务区域内的用户可能受到影响。软件升级、配置变更等日常运维也往往需要精心规划维护窗口。

AMF Pool在3GPP架构中以AMF Set概念体现,通过多AMF共享部署模式解决上述问题。多台AMF组成一个逻辑服务组,gNB可与池中的AMF建立N2连接。结合GUAMI层级标识结构、基于权重的AMF选择以及UE上下文连续性,该架构能够实现负载分担、故障容灾、降低移动过程中的信令量,并提升维护灵活性。控制面节点池化并非5G独有,GPRS的SGSN Pool和4G的MME Pool都采用了相同思路:以共享网络资源替代刚性的节点绑定。在5G中,AMF池化进一步与云原生部署和弹性资源管理相结合。

为什么AMF池化很重要

部署AMF Pool的首要原因之一,是解决用户分布不断变化与节点固定容量之间的不匹配。移动业务天然具有动态性。工作时间大量用户可能聚集在商业区,到了晚间流量又向住宅区转移;演唱会、体育赛事和节假日出行也可能形成突发的临时流量高峰。如果某个地理区域只依赖少量静态分配的AMF,就可能出现部分节点严重过载、其他节点却利用不足的情况。

当多台AMF在同一个池中运行时,gNB可以与所有相关AMF实例保持连接,新接入的UE则可按照配置的AMF权重进行分配。例如,同一区域由三台处理能力相同的AMF提供服务时,可以配置相同权重,使新的UE注册和移动性上下文较均匀地分布到各实例,从而提高整体资源利用率。

第二个重要优势是容灾能力。如果某台AMF发生软件故障或硬件故障,池中的其他AMF仍可继续处理后续的接入和移动性请求。对于5G核心网控制面而言,这种多节点模式减少了对单台AMF的过度依赖,为高可用运行提供了更坚实的基础。

池化还提升了运维灵活性。在升级软件、修改配置或扩容某台AMF之前,运营人员可以先降低或迁移该节点承担的活动负载,并让池中的其他AMF接管新的或重新分配的流量。待该AMF不再承载活动用户后,再执行维护,对在线业务的影响更小,维护窗口也更容易安排。

AMF Pool架构示意,多台AMF通过N2连接多台gNB,在共同服务区域内实现负载分担、故障容灾与维护迁移
通过将多台AMF组成共享服务池,网络可以在各实例之间分配用户,同时为故障恢复和维护操作保留可用容量。

池内移动性优化

AMF Pool的价值不仅体现在多节点冗余上,另一个重要优势是UE在网络中移动时能够减少信令。一个池可以覆盖多个Tracking Area,而该服务域中的gNB可以与属于同一AMF Set的AMF保持N2连接。

假设某UE最初在TA1注册,由AMF1创建UE上下文;之后UE移动到同一池内的TA2,新gNB仍可继续选择AMF1处理该UE的NAS信令。只要UE仍位于同一个AMF Pool的服务范围内,网络就可以尽量保持原有AMF关联。

这种设计减少了不必要的移动性信令。如果没有池化,UE跨服务区域移动可能要求更换服务AMF,从而引入额外的上下文转移和注册相关流程。池化将无线侧位置变化与控制面节点必须变化解耦,使UE在gNB和Tracking Area之间移动时,不必自动更换其服务AMF。

从工程角度看,池化实际上扩大了AMF上下文可以稳定保持的地理范围。只要UE仍处于适用AMF Set的服务区域内,就可以跨多个gNB和TA移动,同时保持同一个AMF锚点,从而减少控制面交互并提升移动性管理连续性。

在3GPP架构中,这一逻辑通过层级结构表示。一个AMF Set包含多台AMF,它们服务于指定区域并支持相同的Network Slice或切片。一个AMF Region内可以存在多个AMF Set,使大型网络能够将控制面划分为更易管理的服务域。

GUAMI如何标识AMF

当控制面从单节点架构演进到池化架构后,网络需要一种结构化方式来标识区域、集合以及具体AMF实例。GUAMI,即全球唯一AMF标识符,提供了这一层级体系。

一个GUAMI由MCC、MNC、AMF Region ID、AMF Set ID和AMF Pointer组成。这些字段共同形成跨PLMN、AMF Region、AMF Set到具体AMF实例的层级寻址模型。其中AMF Region ID用于标识更大的AMF区域,AMF Set ID用于标识该区域中的某个AMF Set,而AMF Pointer则区分集合中的具体AMF实例。

相同的层级也体现在UE临时标识中。5G-GUTI由GUAMI和5G-TMSI组成,因此UE临时身份中包含的信息可以指示之前为该UE提供服务的AMF。5G-S-TMSI包含AMF Set ID、AMF Pointer和5G-TMSI,可为寻呼等流程提供所需信息。

这也是GUAMI会直接影响AMF选择的原因。如果UE在RRC建立过程中提供了能够标识原服务AMF的信息,gNB就不一定需要重新执行一次完全基于负载的选择,而可以尝试选择原AMF,从而保持已有服务关系。

除了二进制标识外,AMF发现还可以使用FQDN和DNS机制。gNB可以构造AMF Set-FQDN并查询DNS,获取属于特定集合的AMF信息,为后续建立N2关联提供输入。AMF Instance-FQDN用于标识具体AMF实例,在适用的移动性或互操作场景中可帮助定位之前的服务AMF。

GUAMI层级结构示意,MCC、MNC、AMF Region ID、AMF Set ID和AMF Pointer共同标识5G核心网中的AMF实例
GUAMI将PLMN、AMF Region、AMF Set以及具体AMF信息组织成层级标识结构,为AMF定位和UE上下文连续性提供支持。

gNB如何选择AMF

AMF Pool投入运行后,gNB需要处理两类本质不同的UE情况。一类是新接入UE,没有可用信息指示之前的服务AMF;另一类UE携带了能够标识之前AMF的信息。两种情况对应不同的选择优先级。

如果UE在RRC建立过程中没有提供GUAMI或其他可用于识别原AMF的信息,gNB会根据配置的权重值从AMF Set中选择AMF。每台AMF可根据处理能力配置0到255范围内的权重。处理能力更强的AMF可以设置更高权重,从而接收更多新用户;能力较低的实例则可以配置较低权重。

例如,三台AMF的权重分别配置为100、50和50,在其他条件相近时,第一台AMF大约可以获得一半的新分配用户。这些权重并不需要保持固定。如果某台AMF扩容、缩容或处理能力发生其他变化,可以通过N2配置更新流程将新的权重信息下发给已连接的gNB,使后续UE分配反映新的容量分布。

但如果UE提供了有效GUAMI,选择目标就会发生变化。gNB不会立即为了重新均衡负载而把UE转移到其他AMF,而是尝试识别并选择之前提供服务的AMF。保持原AMF有助于维持上下文连续性,并避免不必要的控制面变化。

因此,池内AMF选择可以概括为两个原则:没有历史AMF关联时,优先负载分配;已知之前的AMF关联时,优先业务连续性。前者提高资源利用率,后者减少移动性信令。高效的AMF Pool并不是把每个UE都迁移到当前负载最低的AMF,而是在资源分布与上下文稳定性之间取得平衡。

gNB选择AMF流程:UE无GUAMI时按权重进行负载分配,存在有效GUAMI时优先选择之前的服务AMF
AMF选择并非只依据负载:新UE按权重分配,而已有上下文的UE更可能继续关联之前的AMF。

从初始部署到弹性扩缩容

一个AMF Set投入服务需要经历多个阶段。首先,通过MANO编排系统或网络管理平台创建多台AMF实例,并配置建立N2连接所需的SCTP关联地址。

随后,gNB与池中的AMF建立SCTP关联,并分别与相关AMF执行N2 Setup流程。N2 Setup不只是建立连接,还允许gNB获取与AMF运行和选择有关的参数,包括相对容量或权重、支持的切片以及服务区域信息等。完成这些关系建立后,AMF Set即可开始为UE提供服务。

新UE到来时,gNB会判断应保持之前的AMF关联,还是根据可用的池信息和配置权重选择AMF。如果所有AMF处理能力相近且权重相同,随着时间推移,其用户负载通常会趋向较均衡的分布。

从架构上看,AMF Pool不应被理解为传统的主备方案。在active-standby设计中,备节点可能在故障发生前长期处于基本空闲状态;而在AMF Pool中,多台AMF可以同时主动服务用户。容灾只是池化带来的结果之一,更广泛的目标是让多台AMF实例以一个逻辑服务组的方式协同运行。

这一特性也使AMF Pooling成为云化5GC部署的重要基础。在云原生环境中,可以通过编排对AMF实例进行扩缩容。实例数量、处理能力和选择权重都可能随时间变化,但呈现给gNB和UE的逻辑AMF Set仍保持稳定。因此,池化在动态变化的核心网资源之上提供一致的服务边界,并支持面向云的5G核心网所需要的弹性能力。

常见问题

一个AMF Region可以包含多个AMF Set吗?

可以。一个AMF Region可以包含多个AMF Set。不同集合可以服务不同区域,而同一集合内的AMF支持该集合所需的相同Network Slice或多个切片。

一个Tracking Area只对应一个gNB吗?

不是。Tracking Area与gNB之间不存在一一对应关系。一个TA可以包含多个小区,而一个gNB也可以包含多个小区,这些小区可能属于一个或多个Tracking Area。

AMF Pointer与AMF Set ID有什么区别?

AMF Set ID用于标识一个AMF Set,而AMF Pointer用于区分该集合中的具体AMF实例。它们与AMF Region ID一起,构成GUAMI层级寻址信息的重要部分。

修改AMF权重是否需要重新建立所有N2连接?

不需要。当AMF容量发生变化时,可以通过相应的N2配置更新流程把新的权重或相对容量信息通知给已经连接的gNB。更新后的值随后即可影响新UE的分配,无需重建现有N2连接。

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