百科全书
2026-08-11 16:56:03
NEF如何在5GC中开放网络能力
NEF如何连接5G核心网与外部应用,通过受控方式开放QoS、事件订阅、流量影响、参数配置和PFD管理能力,为B2B2X业务提供标准化网络能力开放接口。

贝克电信

NEF如何在5GC中开放网络能力

5G核心网早已不再只面向人与人之间的通信。车联网、智能工厂、智慧园区、远程医疗、无人机等各类垂直行业应用,越来越希望根据业务状态动态影响网络资源,或从运营商处获取经过授权的网络状态信息。如果每出现一个新需求,都需要运营商手工修改AMF、SMF、PCF、UDM等网络功能的配置,那么5G在垂直行业中的大规模部署将非常困难。

这正是NEF(Network Exposure Function,网络开放功能)发挥作用的地方。它位于5GC与应用功能AF之间,将核心网内部能力转换成外部应用可以使用的标准化接口,同时负责安全控制、信息转换和参数传递。对于第三方应用而言,NEF并不是一个简单的API网关,而是进入运营商5G核心网能力体系的受控入口。

为什么5GC需要NEF

4G的商业模式主要面向B2C:网络提供连接,用户通过移动互联网访问各种应用。进入5G后,模式进一步扩展到B2B2X。网络不仅要服务个人用户,还需要与制造、交通、园区、医疗等垂直行业平台进行更深入、更自动化的交互。

这就带来了一个重要问题:行业应用如何在保证安全和标准化的前提下使用运营商的网络能力?

例如,一家工业企业希望特定区域内的生产终端获得更可预测的QoS,或者希望把应用流量引导到更靠近工厂的本地数据网络。如果没有统一的能力开放机制,应用平台可能不得不直接连接多个核心网功能,并针对不同厂商实现不同配置。这不仅会增加集成复杂度,还会暴露更多核心网内部接口。

NEF在行业应用与5GC之间建立了统一边界。外部AF无需了解AMF、SMF、PCF、UDM或UPF的每一个内部细节,只需通过NEF提交符合标准的服务请求。随后,NEF与合适的5GC网络功能交互,并把结果返回给应用侧。

这种方式把原本依赖人工协调和静态配置的一部分需求转换为标准化服务调用,使运营商能够以更自动化的方式向合作伙伴开放网络能力。

NEF在5GC中的位置

NEF部署在5GC网络功能与AF之间。AF是负责业务逻辑的应用层功能实体,既可以是运营商拥有或管理的可信应用,也可以是位于运营商信任域之外的第三方应用平台。第三方应用不能被授予对核心网内部功能的无限制访问,因此受控交互需要通过NEF完成。

从接口角度看,NEF实际上连接了两个不同的环境。北向面向视频平台、车联网平台和工业控制系统等AF;南向连接5GC内部网络功能,并根据所请求的服务与SMF、PCF、UDM等实体进行通信。

NEF由4G中的SCEF演进而来,但覆盖范围明显更广。SCEF主要与特定IoT场景相关,而5GC中的NEF支持更广泛的面向人员和面向机器的应用,已经成为基于服务的能力开放框架中的重要组成部分。

从设计上看,NEF远不只是转发消息。其核心职责包括开放网络能力与事件,将外部应用提供的信息安全地配置到3GPP网络中,在外部格式与内部格式之间进行信息转换,并在需要时接收其他网络功能的数据,用于存储或后续再次开放。

NEF接收到的部分信息可以存储在UDR中,因此不必与某一个NEF实例长期绑定。NEF还可支持PFD功能,为更准确的应用识别和策略处理提供基础。

5GC中NEF位于外部应用功能与PCF、SMF、UDM和UDR等核心网功能之间的网络位置示意图
NEF位于外部AF与5GC网络功能之间,将外部服务请求转换为核心网能够处理的标准化交互。

五项关键能力如何开放

NEF的价值最终体现在它能够开放的服务上。在实际5GC部署中,其主要能力可以归纳为五类:QoS开放、网络事件订阅、流量引导、参数配置和PFD管理。这些功能对应了行业应用与运营商网络之间最常见的一些交互需求。

QoS能力开放

QoS能力开放允许合作伙伴应用针对特定业务流请求指定的服务质量。例如,一个视频应用可能已经运行在现有PDU会话上。当用户选择更高质量的视频服务时,AF可以通过NEF为该业务流申请增强的QoS。

NEF接收到请求后,会与PCF等核心网功能协调。PCF随后执行策略逻辑,并与SMF及其他网络资源配合,为该业务流建立合适的QoS处理。

关键并不是简单地给设备增加带宽,而是让应用通过标准化接口表达业务需求,同时仍由5GC控制策略决策和网络资源执行。

移动性与网络事件订阅

第三方AF还可以通过NEF订阅与UE相关的网络事件,例如UE是否失去连接、是否重新可达、当前或最后已知位置、漫游状态、通信失败原因以及下行数据投递状态等。

这些事件由不同的核心网功能检测。AMF可检测UE可达性、连接丢失和部分通信故障;UDM可提供漫游状态或特定身份关联变化等信息;SMF则可上报与下行数据投递相关的状态。

AF无需直接连接每一个网络功能,而是通过NEF创建事件订阅。NEF再与相关网络功能建立所需的内部订阅。当目标事件发生时,核心网通知NEF,NEF再根据订阅把事件通知转发给外部AF。

这种机制特别适合需要根据设备状态触发自动化业务逻辑的行业应用。外部平台无需持续轮询网络查询UE状态,而可以在相关事件真正发生时接收通知。

流量引导

NEF还可以接收AF发起的Traffic Influence请求,将特定UE或业务的流量引导到Local DN(Local Data Network,本地数据网络)。Local DN通过DNAI标识,通常与边缘计算或区域化部署的服务相关。

例如在自动化工厂中,工业控制服务器可能部署在靠近生产现场的本地网络内。应用平台可以通过NEF请求5GC调整用户面路径,使相关设备流量被路由到合适的Local DN。

NEF并不直接控制UPF,而是把需求送入策略控制流程。随后由PCF和SMF处理策略及用户面配置。根据实际情况,SMF可以重新选择UPF,或在现有路径中增加、替换、移除UPF,从而完成流量引导。

安全参数配置

外部AF还可以通过NEF向5GC提供某些与用户相关的参数,但这并不意味着应用可以自由修改核心网参数。可配置的信息范围受到严格控制。

典型例子包括Expected UE Behaviour(预期UE行为)和选定的Network Configuration Parameters(网络配置参数)。预期UE行为可以描述设备预计的移动特征;网络配置参数则可能包含最大响应时间、可接受的下行数据传输时延,或UE不可达时建议缓存的下行数据包数量等信息。

NEF把经过授权的参数请求转发给UDM,UDM与UDR配合读取和更新相关数据。已经订阅这些数据变化的AMF或其他网络功能,随后可以接收更新后的参数,用于后续网络处理。

PFD管理

PFD(Packet Flow Description,分组流描述)可以理解为一组用于应用识别的规则。第三方AF可以通过NEF创建应用识别信息,生成的规则可以存储在UDR中,由SMF通过NEF获取,再下发给UPF用于应用检测。

相比只依靠基础端口或地址识别流量,PFD可以描述更具体的应用特征。例如,某个视频业务可以通过特定URL模式或其他流量特征识别,使网络能够更准确地把流量映射到相应的策略处理规则。

5GC NEF能力开放示意图,涵盖QoS、事件订阅、流量影响、参数配置和PFD管理
NEF把QoS控制、事件上报、流量引导、参数配置和PFD管理等5GC内部能力,以受控服务的形式开放给外部应用。

NEF真正的技术价值

从架构角度看,NEF最重要的作用并不是增加一个新的转发节点,而是建立一个可管理的能力开放层。外部AF看到的是面向服务的接口,而5GC内部的实际工作仍由PCF策略控制、SMF会话管理、UDM数据管理和UPF用户面处理等功能完成。

因此,NEF不能被简单理解为普通API网关。它必须理解外部业务请求与3GPP核心网能力之间的关系,同时处理两侧之间的安全控制、信息转换和流程协调。

NEF也不会替代其他网络功能。QoS执行仍依赖策略控制和会话资源配置;网络事件仍由相应NF检测;用户面路径仍由SMF等功能调整;用户相关数据仍由UDM和UDR维护。NEF的职责是以受控、标准化的方式开放这些内部能力。

这种能力对于5G B2B2X业务尤其重要。行业应用无需理解5GC完整的内部拓扑,也无需为每一个网络功能建设私有接口,只需通过标准化开放机制提交网络需求。同时,运营商仍然掌握核心网边界控制权,并把选定的网络能力转化为可信合作伙伴可以使用的服务。

从实际效果看,NEF帮助5G核心网从主要提供连接的网络,演进为能够直接向行业应用开放网络能力的平台。

常见问题

所有AF都必须部署在运营商网络之外吗?

不是。AF既可以是运营商拥有或管理的可信应用,也可以是运营商信任域之外的第三方应用。不同类型的AF,其接入方式和安全处理机制可能不同。

业务数据是否总是保存在NEF本地?

不是。NEF接收的部分信息可以存储在UDR中,并在之后由其他网络功能或后续流程使用。因此,数据存储并不需要始终绑定在单个NEF实例上。

Local DN与UPF是同一个概念吗?

不是。Local DN是承载特定应用或数据服务的本地数据网络,而UPF是5GC中的用户面网络功能。流量可以通过合适的UPF路径到达指定Local DN,但二者承担不同角色。

UPF会自行创建PFD规则吗?

不会。PFD规则可以由AF提供并通过NEF管理。SMF获取相关规则后,将其下发给UPF,用于在用户面中进行更准确的应用检测。

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