[go: up one dir, main page]

CN115334493A - Method, device and device for status subscription notification - Google Patents

Method, device and device for status subscription notification Download PDF

Info

Publication number
CN115334493A
CN115334493A CN202110866888.7A CN202110866888A CN115334493A CN 115334493 A CN115334493 A CN 115334493A CN 202110866888 A CN202110866888 A CN 202110866888A CN 115334493 A CN115334493 A CN 115334493A
Authority
CN
China
Prior art keywords
user
information
pdu session
notification
service flow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110866888.7A
Other languages
Chinese (zh)
Inventor
陈旭
王丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, Research Institute of China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Publication of CN115334493A publication Critical patent/CN115334493A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method, a device and equipment for state subscription notification, wherein the method comprises the following steps: a first network function NF triggers and detects service flow according to strategy information, wherein the first NF is relevant to session management; the first NF informs a second NF of the start and the end of the service flow; the second NF is associated with access management. The scheme of the invention avoids the flow of the second NF accessing the session binding support function BSF and the first NF, and reduces the signaling overhead.

Description

一种状态订阅通知的方法、装置及设备Method, device and equipment for status subscription notification

技术领域technical field

本发明涉及通信技术领域,特别是指一种状态订阅通知的方法、装置及设备。The present invention relates to the field of communication technology, in particular to a method, device and equipment for status subscription notification.

背景技术Background technique

目前,考虑对5G网络引入接入管理策略(AM Policies)动态控制,动态下发接入技术/频率选择优先级参数,实现容量管理、增强覆盖等,需要考虑基于第三方或应用检测触发AM策略动态改变的场景。At present, it is considered to introduce dynamic control of access management policies (AM Policies) to 5G networks, and dynamically issue access technology/frequency selection priority parameters to achieve capacity management and enhanced coverage. It is necessary to consider triggering AM policies based on third-party or application detection. Dynamically changing scenes.

现有技术方案要求通过用户码号寻址负责会话绑定的BSF(用户会话绑定功能),这样会导致BSF冗余部署;另外,现有的会话绑定BSF部署在拜访地,独立或与SMF(会话管理功能)合设,服务于不同IP地址段,针对每一个PDU Session(协议数据单元会话)存储用户标识、DNN(内容管理系统)、UE地址(IP地址或MAC地址等)、SMF已选择的PCF(策略控制功能)的地址等会话绑定信息,以确保AF(接入功能)基于UE地址识别UE的业务发送策略时,为AF或NEF(网络开放功能)提供PCF地址查询服务,实现N5/Rx接口寻址到该UE业务的PDUsession(协议数据单元会话)对应的PCF。The existing technical solution requires addressing the BSF (User Session Binding Function) responsible for session binding through the user code number, which will lead to redundant deployment of the BSF; in addition, the existing session binding BSF is deployed in the visiting place, independently or in conjunction with SMF (session management function) is set up together to serve different IP address segments, and stores user ID, DNN (content management system), UE address (IP address or MAC address, etc.), SMF for each PDU Session (protocol data unit session) Session binding information such as the address of the selected PCF (Policy Control Function) to ensure that the AF (Access Function) provides PCF address query services for the AF or NEF (Network Opening Function) when identifying the UE's service transmission policy based on the UE address , realizing that the N5/Rx interface is addressed to the PCF corresponding to the PDUsession (protocol data unit session) of the UE service.

通过用户码号寻址会话绑定BSF,需要BSF去NRF(NR存储功能)注册用户号段,而且用户号段不能重复。这样BSF在拜访地且与SMF合设无法满足需求。存在按用户号段部署BSF且由服务于IP地址段BSF向按用户号段部署的BSF进行会话绑定信息同步的需求。带来BSF冗余部署和拜访地至归属地、多对多BSF之间的大量会话绑定信息实时同步的数据一致性问题。To bind the BSF through the user code number addressing session, the BSF needs to go to the NRF (NR storage function) to register the user number segment, and the user number segment cannot be repeated. In this way, BSF is in the visiting place and co-established with SMF cannot meet the demand. There is a requirement that BSFs are deployed by user number segment and that the BSF serving the IP address segment performs session binding information synchronization with the BSF deployed by user number segment. This brings about the data consistency problem of BSF redundant deployment and real-time synchronization of a large number of session binding information between visiting site and home site, and many-to-many BSFs.

此外,AM PCF(接入管理的策略控制功能)基于DNN和S-NSSAI(网络切片选择辅助信息)通过NRF进行BSF发现的BSF数量在SMF/BSF合设的情况数量非常多(上百个),AM PCF维护的BSF的profile(文档)以及去BSF进行订阅的订阅资源地址很庞大,但是只有一个BSF才能匹配上订阅,其他的订阅和BSF处理都是无效的。In addition, AM PCF (policy control function of access management) is based on DNN and S-NSSAI (network slice selection auxiliary information) and the number of BSFs discovered by BSF through NRF is very large (hundreds) in the case of SMF/BSF co-establishment , the profile (document) of BSF maintained by AM PCF and the subscription resource address to subscribe to BSF are huge, but only one BSF can match the subscription, and other subscriptions and BSF processing are invalid.

发明内容Contents of the invention

本发明要解决的技术问题是如何提供一种状态订阅通知的方法。避免了接入管理PCF访问BSF和会话管理PCF的流程,减少信令开销。The technical problem to be solved by the present invention is how to provide a method for status subscription notification. The process of accessing the PCF for access management to the BSF and PCF for session management is avoided, and signaling overhead is reduced.

为解决上述技术问题,本发明的技术方案如下:In order to solve the problems of the technologies described above, the technical solution of the present invention is as follows:

一种状态订阅通知的方法,包括:A method for status subscription notifications, comprising:

第一网络功能NF根据策略信息触发对业务流进行检测;The first network function NF triggers the detection of the service flow according to the policy information;

所述第一NF向第二NF通知业务流起始和结束。The first NF notifies the second NF of the start and end of the service flow.

可选的,所述第一NF根据策略信息触发对业务流进行检测,包括:Optionally, the first NF triggers detection of service flows according to policy information, including:

第一NF向统一数据仓库功能UDR订阅策略信息,接收到UDR通知的策略信息后,对用户的协议数据单元PDU会话的业务流进行检测。The first NF subscribes policy information to the unified data warehouse function UDR, and after receiving the policy information notified by the UDR, detects the service flow of the user's protocol data unit PDU session.

可选的,第一NF在用户的协议数据单元PDU会话建立后,第一NF向UDR订阅策略信息,接收到UDR通知的策略信息后,对用户的PDU会话的业务流进行检测。可选的,所述第一PCF根据策略信息触发对业务流进行检测,包括:Optionally, after the user's protocol data unit PDU session is established, the first NF subscribes to the policy information from the UDR, and detects the service flow of the user's PDU session after receiving the policy information notified by the UDR. Optionally, the first PCF triggers detection of service flows according to policy information, including:

所述第一NF接收第二NF发送的订阅请求,所述订阅请求用于订阅用户的PDU会话建立;The first NF receives the subscription request sent by the second NF, and the subscription request is used for establishing a PDU session of the subscribing user;

所述第一NF根据所述订阅请求,获得策略信息,根据策略信息对用户的协议数据单元PDU会话的业务流进行检测。The first NF obtains policy information according to the subscription request, and detects the service flow of the user's protocol data unit PDU session according to the policy information.

可选地,所述第一NF根据策略信息触发对业务流进行检测,包括:Optionally, the first NF triggers detection of service flows according to policy information, including:

第一NF接收第二NF发送的第二订阅请求,所述第二订阅请求用于订阅业务流状态;The first NF receives a second subscription request sent by the second NF, and the second subscription request is used for subscribing to a service flow state;

第一NF在接收到所述第二订阅请求的情况下,触发对业务流进行检测;In the case of receiving the second subscription request, the first NF triggers detection of the service flow;

其中,所述第二订阅请求是第二NF确认用户的PDU会话建立的之后发送的。Wherein, the second subscription request is sent after the second NF confirms that the user's PDU session is established.

可选地,在所述第二NF接收到用户的PDU会话建立的通知,或者所述第二NF接收到第一NF的相关信息的情况下,确认用户的PDU会话建立;Optionally, when the second NF receives the notification of the establishment of the user's PDU session, or the second NF receives the relevant information of the first NF, confirming the establishment of the user's PDU session;

其中,所述第一NF的相关信息包括:第一NF的标识、地址以及会话绑定信息中的至少一项。Wherein, the relevant information of the first NF includes: at least one item of the identifier, address and session binding information of the first NF.

可选地,所述第二NF接收到的用户的PDU会话建立的通知,为所述第一NF发送或者为第三NF发送。Optionally, the notification of establishment of the user's PDU session received by the second NF is sent by the first NF or sent by the third NF.

可选地,所述第二NF接收到第一NF的相关信息,为所述第一NF或第三NF发送。Optionally, the second NF receives relevant information of the first NF and sends it for the first NF or the third NF.

可选的,所述第一NF根据策略信息触发对业务流进行检测,包括:Optionally, the first NF triggers detection of service flows according to policy information, including:

第一NF接收第二NF发送的第一订阅请求,所述第一订阅请求用于订阅用户的PDU会话建立;The first NF receives the first subscription request sent by the second NF, and the first subscription request is used for establishing a PDU session of the subscribing user;

或者,第一NF接收第二NF发送的第一指示,所述第一指示用于请求或指示:所述第一NF在PDU会话建立后通知所述第二NF用户的PDU会话建立;Or, the first NF receives the first indication sent by the second NF, and the first indication is used for requesting or indicating: the first NF notifies the second NF of the user's PDU session establishment after the PDU session is established;

所述第一NF在用户的PDU会话建立时,通知第二NF,由第二NF向第一NF发送第二订阅请求,所述第二订阅请求用于订阅所述PDU会话的业务流状态,所述第一NF根据所述第二个订阅请求对用户的PDU会话的业务流进行检测。The first NF notifies the second NF when the user's PDU session is established, and the second NF sends a second subscription request to the first NF, the second subscription request is used to subscribe to the service flow status of the PDU session, The first NF detects the service flow of the user's PDU session according to the second subscription request.

可选地,所述第一订阅请求或者所述第一指示携带DNN和/或切片标识。Optionally, the first subscription request or the first indication carries a DNN and/or a slice identifier.

可选地,所述第一订阅请求携带第二NF的相关信息;Optionally, the first subscription request carries related information of the second NF;

或者or

所述第一指示携带第二NF的相关信息;The first indication carries related information of the second NF;

其中,所述第二NF的相关信息包括:、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of the second NF identifier and the second NF address.

可选地,所述方法还包括:Optionally, the method also includes:

第一NF在用户的PDU会话建立后,向UDR订阅策略信息;After the user's PDU session is established, the first NF subscribes the policy information to the UDR;

第一NF在用户的PDU会话建立后,通知第二NF,包括:After the user's PDU session is established, the first NF notifies the second NF, including:

在接收到UDR通知的策略信息后,向所述第二NF发送通知消息,所述通知消息用于通知所述第二NF用户的PDU会话建立。After receiving the policy information notified by the UDR, send a notification message to the second NF, where the notification message is used to notify the second NF of the establishment of the PDU session of the user.

可选地,在接收到UDR通知的策略信息后,向所述第二NF发送通知消息之前,所述方法还包括:Optionally, after receiving the policy information notified by the UDR, before sending the notification message to the second NF, the method further includes:

确定第二NF。Determine the second NF.

可选地,所述确定第二NF,包括:Optionally, the determining the second NF includes:

第一NF根据用户的信息或标识,查询具有第二NF的相关信息的绑定支持功能BSF,确定第二NF;The first NF queries the binding support function BSF with the relevant information of the second NF according to the user's information or identification, and determines the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选地,所述确定第二NF,包括:Optionally, the determining the second NF includes:

第一NF根据用户的信息或标识,从UDR获取所述第二NF的相关信息,确定所述第二NF;The first NF obtains the relevant information of the second NF from the UDR according to the user's information or identifier, and determines the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选地,所述确定第二NF,包括:Optionally, the determining the second NF includes:

接收UDR通知策略信息时携带的所述第二NF的相关信息,确定所述第二NF;receiving the relevant information of the second NF carried when the UDR notifies the policy information, and determining the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选地,在所述第二NF接收到的用户的PDU会话建立的通知为所述第三NF发送的情况下,所述用户的PDU会话建立的通知为所述第二NF向所述第三NF订阅。Optionally, in the case where the notification of the establishment of the user's PDU session received by the second NF is sent by the third NF, the notification of the establishment of the user's PDU session is sent by the second NF to the third NF. Three NF subscriptions.

可选的,所述第一NF向第二NF通知业务流起始和结束,包括:Optionally, the first NF notifies the second NF of the start and end of the service flow, including:

第一NF根据用户的信息/标识,查询有第二NF信息/标识/地址的会话绑定支持功能BSF,确定第二NF;According to the information/identification of the user, the first NF queries the session binding support function BSF with the information/identification/address of the second NF, and determines the second NF;

所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end.

可选的,所述第一NF向第二NF通知业务流起始和结束,包括:Optionally, the first NF notifies the second NF of the start and end of the service flow, including:

第一NF根据用户的信息/标识,查询有第二NF信息/标识/地址的存储功能NRF,确定第二NF;According to the information/identification of the user, the first NF queries the storage function NRF with the information/identification/address of the second NF, and determines the second NF;

所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end.

可选的,所述第一NF向第二NF通知业务流起始和结束,包括:Optionally, the first NF notifies the second NF of the start and end of the service flow, including:

第一NF根据第二NF的订阅请求确定第二NF;The first NF determines the second NF according to the subscription request of the second NF;

所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end.

可选的,所述第一NF向第二NF通知业务流起始和结束,包括:Optionally, the first NF notifies the second NF of the start and end of the service flow, including:

第一NF根据所述第二订阅请求,确定第二NF;The first NF determines a second NF according to the second subscription request;

所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end.

可选的,针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;Optionally, all the policy information for the preset application is created in batches by the AF in the UDR as application data, and the preset application is associated with a specified DNN and a slice identifier;

第一NF针对预设应用的所有用户向UDR订阅策略信息;The first NF subscribes policy information to the UDR for all users of the preset application;

根据策略信息对指定DNN和切片标识关联的应用的会话的业务流进行检测。Detect the service flow of the session of the application associated with the specified DNN and the slice identifier according to the policy information.

可选的,针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;Optionally, all the policy information for the preset application is created in batches by the AF in the UDR as application data, and the preset application is associated with a specified DNN and a slice identifier;

第PDU会话的业务流状态为所述第二NF根据策略信息批量向所述第一NF订阅,所述第一NF根据策略信息对指定DNN和切片标识关联的应用的会话的业务流进行检测;The service flow state of the PDU session is that the second NF subscribes to the first NF in batches according to the policy information, and the first NF detects the service flow of the session of the application associated with the designated DNN and the slice identifier according to the policy information;

其中,所述策略信息为所述第二NF针对预设应用的所有用户向UDR订阅的策略信息。Wherein, the policy information is the policy information that the second NF subscribes to the UDR for all users of the preset application.

可选的,所述第一NF以及第二NF均为策略控制功能PCF,所述第一NF与会话管理相关,所述第二NF与接入管理相关。Optionally, both the first NF and the second NF are policy control functions PCF, the first NF is related to session management, and the second NF is related to access management.

本发明的实施例还提供一种状态订阅通知的方法,包括:Embodiments of the present invention also provide a method for status subscription notification, including:

第二NF接收第一NF发送的业务流起始和结束的通知;第一NF根据策略信息触发对业务流进行检测。The second NF receives the notification of the start and end of the service flow sent by the first NF; the first NF triggers the detection of the service flow according to the policy information.

可选的,所述方法还包括:Optionally, the method also includes:

第二NF向UDR订阅策略信息;The second NF subscribes policy information to the UDR;

在接收到UDR通知的策略信息后,将所述第二NF的相关信息写入所述UDR;After receiving the policy information notified by the UDR, write the relevant information of the second NF into the UDR;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选地,所述方法还包括:Optionally, the method also includes:

向第一NF发送订阅请求,所述订阅请求用于订阅用户的PDU会话建立。A subscription request is sent to the first NF, where the subscription request is used for establishing a PDU session of the subscribing user.

可选地,所述方法还包括:Optionally, the method also includes:

第二NF在确认用户的PDU会话建立之后,向第一NF发送第二订阅请求,所述第二订阅请求用于订阅业务流状态。After confirming that the PDU session of the user is established, the second NF sends a second subscription request to the first NF, where the second subscription request is used for subscribing to a service flow state.

可选地,在所述第二NF接收到用户的PDU会话建立的通知,或者所述第二NF接收到第一NF的标识或地址或会话绑定信息的情况下,确认用户的PDU会话建立。Optionally, when the second NF receives the notification of the establishment of the user's PDU session, or the second NF receives the identification or address of the first NF or session binding information, confirm the establishment of the user's PDU session .

可选地,所述第二NF接收到的用户的PDU会话建立的通知,为所述第一NF发送或者为第三NF发送。Optionally, the notification of establishment of the user's PDU session received by the second NF is sent by the first NF or sent by the third NF.

可选地,所述第二NF接收到第一NF的相关信息,为所述第一NF或第三NF发送;Optionally, the second NF receives relevant information of the first NF and sends it for the first NF or the third NF;

其中,所述第一NF的相关信息包括:第一NF的标识、地址以及会话绑定信息中的至少一项。Wherein, the relevant information of the first NF includes: at least one item of the identifier, address and session binding information of the first NF.

可选地,所述方法还包括:Optionally, the method also includes:

第二NF向第一NF发送第一订阅请求,所述第一订阅请求用于订阅用户的PDU会话建立;或者,第二NF向第一NF发送第一指示,所述第一指示用于请求或指示:所述第一NF在PDU会话建立后通知所述第二NF用户的PDU会话建立;The second NF sends a first subscription request to the first NF, and the first subscription request is used to establish a PDU session of the subscribing user; or, the second NF sends a first indication to the first NF, and the first indication is used to request Or indicate: the first NF notifies the second NF of the user's PDU session establishment after the PDU session is established;

第二NF接收第一NF发送的用户的PDU会话建立的通知;The second NF receives the notification of the establishment of the user's PDU session sent by the first NF;

第二NF在接收到用户的PDU会话建立的通之后,向所述第一NF发送第二订阅请求。The second NF sends a second subscription request to the first NF after receiving the user's PDU session establishment notification.

可选地,所述第一订阅请求或者所述第一指示携带DNN和/或切片标识。Optionally, the first subscription request or the first indication carries a DNN and/or a slice identifier.

可选地,所述第一订阅请求携带第二NF的相关信息;Optionally, the first subscription request carries related information of the second NF;

或者or

所述第一指示携带第二NF的相关信息;The first indication carries related information of the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选地,在所述第二NF接收到的用户的PDU会话建立的通知为所述第三NF发送的情况下,所述方法还包括:Optionally, when the notification of establishment of the user's PDU session received by the second NF is sent by the third NF, the method further includes:

第二NF向所述第三NF发送第三订阅请求,所述第三订阅请求用于订阅用户的PDU会话建立;The second NF sends a third subscription request to the third NF, and the third subscription request is used to establish a PDU session of the subscribing user;

第二NF接收所述第三NF发送的用户的PDU会话建立的通知。The second NF receives the notification of establishment of the user's PDU session sent by the third NF.

可选地,针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;Optionally, all the policy information for the preset application is created in batches by the AF in the UDR as application data, and the preset application is associated with a specified DNN and a slice identifier;

第二NF针对预设应用的所有用户向UDR订阅策略信息;The second NF subscribes policy information to the UDR for all users of the preset application;

第二NF根据策略信息向第一NF批量订阅PDU会话的业务流状态。The second NF subscribes to the first NF in batches for the service flow status of the PDU session according to the policy information.

本发明的实施例还提供一种状态订阅通知的装置,应用于第一网络功能NF,包括:An embodiment of the present invention also provides an apparatus for status subscription notification, which is applied to the first network function NF, including:

处理模块,用于根据策略信息触发对业务流进行检测;A processing module, configured to trigger detection of service flows according to policy information;

收发模块,用于向第二NF通知业务流起始和结束。The transceiver module is configured to notify the second NF of the start and end of the service flow.

本发明的实施例还提供一种网络功能NF,包括如上所述的装置。An embodiment of the present invention also provides a network function NF, including the above-mentioned apparatus.

本发明的实施例还提供一种状态订阅通知的装置,应用于第二网络功能NF,包括:An embodiment of the present invention also provides an apparatus for status subscription notification, which is applied to the second network function NF, including:

收发模块,用于接收第一NF发送的业务流起始和结束的通知;第一NF根据策略信息触发对业务流进行检测。The transceiver module is configured to receive the notification of the start and end of the service flow sent by the first NF; the first NF triggers the detection of the service flow according to the policy information.

本发明的实施例还提供一种网络功能NF,包括如所述的装置。An embodiment of the present invention also provides a network function NF, including the device as described above.

本发明的实施例还提供一种通信设备,包括:处理器、存储有计算机程序的存储器,所述计算机程序被处理器运行时,执行如上所述的方法。An embodiment of the present invention also provides a communication device, including: a processor, and a memory storing a computer program, and when the computer program is run by the processor, the above-mentioned method is executed.

本发明的实施例还提供一种计算机可读存储介质,存储指令,当所述指令在计算机上运行时,使得计算机执行如上所述的方法。An embodiment of the present invention also provides a computer-readable storage medium storing instructions, and when the instructions are run on a computer, the computer is made to execute the above-mentioned method.

本发明的上述方案至少包括以下有益效果:Above-mentioned scheme of the present invention comprises following beneficial effect at least:

通过第一NF根据策略信息触发对业务流进行检测,所述第一NF与会话管理相关;所述第一NF向第二NF通知业务流起始和结束;所述第二NF与接入管理相关。采用会话管理相关的网络功能NF根据策略信息触发对业务流进行检测,避免了与接入管理相关的网络功能NF访问会话绑定功能BSF和相关的网络功能NF的流程,减少信令开销。The first NF is triggered to detect the service flow according to policy information, and the first NF is related to session management; the first NF notifies the second NF of the start and end of the service flow; the second NF is related to access management relevant. The network function NF related to session management is used to trigger the detection of the service flow according to the policy information, avoiding the process of the network function NF related to access management accessing the session binding function BSF and the related network function NF, and reducing signaling overhead.

附图说明Description of drawings

图1是本发明实施例的应用数据状态订阅的方法的流程示意图;FIG. 1 is a schematic flow diagram of a method for subscribing to an application data status according to an embodiment of the present invention;

图2是本发明实施例的基于会话管理SM PCF实现应用数据状态订阅的方法流程示意图;FIG. 2 is a schematic flow diagram of a method for implementing application data status subscription based on a session management SM PCF according to an embodiment of the present invention;

图3是本发明实施例的基于会话管理SM PCF实现应用数据状态订阅的方法另一流程示意图;FIG. 3 is another schematic flowchart of a method for implementing application data status subscription based on a session management SM PCF according to an embodiment of the present invention;

图4是本发明实施例的AM PCF订阅一次的流程图;Fig. 4 is the flow chart of AM PCF subscribing once in the embodiment of the present invention;

图5是本发明实施例的基于会话管理SM PCF实现应用数据状态订阅的方法另一流程示意图;5 is another schematic flow diagram of a method for implementing application data status subscription based on a session management SM PCF according to an embodiment of the present invention;

图6是本发明实施例的AM PCF订阅2次的流程图;Fig. 6 is the flow chart of the AM PCF subscription 2 times of the embodiment of the present invention;

图7是本发明实施例的第二NF项第一NF发送第一指示时的流程示意图;FIG. 7 is a schematic flow diagram of the second NF item and the first NF sending the first indication according to the embodiment of the present invention;

图8是本发明实施例的AMF向第二NF发送用户的PDU会话建立的通知的流程示意图;FIG. 8 is a schematic flow diagram of an AMF sending a notification of establishment of a user's PDU session to a second NF according to an embodiment of the present invention;

图9是本发明实施例的SM PCF去UDR批量订阅的示意图;Fig. 9 is the schematic diagram that the SM PCF of the embodiment of the present invention removes the UDR batch subscription;

图10是本发明实施例的AM PCF去SM PCF订阅2次,第一次是批量订阅的流程示意图;Fig. 10 is a schematic flow diagram of AM PCF subscribing to SM PCF twice in the embodiment of the present invention, and the first time is a batch subscription;

图11是本发明实施例的应用数据状态订阅的装置的模块框示意图。Fig. 11 is a block diagram of a device for subscribing to application data status according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

如图1所示,本发明的实施例提供一种应用数据状态订阅的方法,包括:As shown in Figure 1, an embodiment of the present invention provides a method for subscribing to an application data state, including:

步骤11,第一NF(网络功能)根据策略信息触发对业务流进行检测,所述第一NF与会话管理相关,第一NF可以是策略控制功能PCF;Step 11, the first NF (network function) triggers the detection of the service flow according to the policy information, and the first NF is related to session management, and the first NF may be a policy control function PCF;

步骤12,所述第一NF向第二NF通知业务流起始和结束;所述第二NF与接入管理相关,第二NF可以是策略控制功能PCF。Step 12, the first NF notifies the second NF of the start and end of the service flow; the second NF is related to access management, and the second NF may be a policy control function PCF.

该实施例,第一策略控制功能PCF根据策略信息触发对业务流进行检测,所述第一PCF与会话管理相关;所述第一PCF向第二PCF通知业务流起始和结束;所述第二PCF与接入管理相关。这里,策略信息可以是用户的策略信息,用户的策略信息包括:接入管理策略影响信息或接入管理影响信息(AM influence information);采用会话管理PCFF根据策略信息触发对业务流进行检测,避免了接入管理PCF访问会话绑定功能BSF和会话管理PCF的流程,减少信令开销。In this embodiment, the first policy control function PCF triggers the detection of the service flow according to the policy information, and the first PCF is related to session management; the first PCF notifies the second PCF of the start and end of the service flow; the second PCF The second PCF is related to access management. Here, the policy information may be the user's policy information, and the user's policy information includes: access management policy influence information or access management influence information (AM influence information); the session management PCFF is used to trigger the detection of the service flow according to the policy information, to avoid The process of accessing the session binding function BSF and the session management PCF by the access management PCF is simplified, and signaling overhead is reduced.

本发明的实施例中,所述第一NF向第二NF通知业务流起始和结束之前,第一NF确定第二NF,第一NF向确定的第二NF通知业务流起始和结束;第一NF确定第二NF可以在触发对业务流进行检测之前,也可以在触发对业务流检测时,也可以在触发对业务流检测之后。In an embodiment of the present invention, before the first NF notifies the second NF of the start and end of the service flow, the first NF determines the second NF, and the first NF notifies the determined second NF of the start and end of the service flow; The determination of the second NF by the first NF may be before triggering the detection of the service flow, or when the detection of the service flow is triggered, or after the detection of the service flow is triggered.

本发明的一可选的实施例中,以NF为PCF为例,步骤11可以包括:In an optional embodiment of the present invention, taking NF as an example of PCF, step 11 may include:

步骤111,第一PCF向统一数据仓库功能UDR订阅策略信息,接收到UDR通知的策略信息后,对用户的协议数据单元PDU会话的业务流进行检测。Step 111 , the first PCF subscribes to the unified data warehouse function UDR for policy information, and detects the service flow of the user's protocol data unit PDU session after receiving the policy information notified by the UDR.

其中,第一PCF在用户的协议数据单元PDU会话建立后,第一PCF向UDR订阅策略信息,接收到UDR通知的策略信息后,对用户的PDU会话的业务流进行检测。需要说明的是,在该实施例中,所述用户的PDU会话建立也可以替换为会话管理策略关联(SessionManagement Policy Association established)的建立,即在第一PCF在会话管理策略关联关联的建立后,对用户的协议数据单元PDU会话的业务流进行检测。Wherein, after the user's protocol data unit PDU session is established, the first PCF subscribes to the policy information from the UDR, and after receiving the policy information notified by the UDR, detects the service flow of the user's PDU session. It should be noted that, in this embodiment, the establishment of the user's PDU session can also be replaced by the establishment of a session management policy association (Session Management Policy Association established), that is, after the first PCF establishes the session management policy association, Detect the service flow of the user's protocol data unit PDU session.

具体的,向UDR订阅策略信息,包括:Specifically, subscribe policy information to UDR, including:

策略信息在UDR被接入功能AF创建,所述第一PCF接收到所述UDR的通之后,生成用于订阅策略信息的订阅信息。这里,所述订阅信息订阅用户的协议数据单元PDU会话在用户面的业务流(Application traffic)的开始/结束和/或所述第二PCF的地址。The policy information is created by the access function AF after the UDR, and the first PCF generates subscription information for subscribing to the policy information after receiving the notification of the UDR. Here, the subscription information subscribes to the beginning/end of a service flow (Application traffic) of the user's PDU session on the user plane and/or the address of the second PCF.

本发明的一可选的实施例中,第一PCF在用户的协议数据单元PDU会话建立后,第一PCF向UDR订阅策略信息,接收到UDR通知的策略信息后,对用户的PDU会话的业务流进行检测。In an optional embodiment of the present invention, after the first PCF establishes the protocol data unit PDU session of the user, the first PCF subscribes to the policy information from the UDR, and after receiving the policy information notified by the UDR, the service of the user's PDU session Flow is checked.

本发明的一可选的实施例中,以NF为PCF为例,步骤12可以包括:In an optional embodiment of the present invention, taking NF as an example of PCF, step 12 may include:

步骤121,第一PCF根据用户的信息/标识,查询有第二PCF信息/标识/地址的会话绑定支持功能BSF,确定第二PCF;所述第一PCF向所述第二PCF通知业务流起始和结束。需要说明的是,该步骤121中确定的第二PCF为所述第一PCF需要通知业务流起始和结束的状态的第二PCF。Step 121, the first PCF queries the session binding support function BSF with the information/identity/address of the second PCF according to the information/identification of the user, and determines the second PCF; the first PCF notifies the second PCF of the service flow start and end. It should be noted that the second PCF determined in step 121 is the second PCF for which the first PCF needs to notify the start and end states of the service flow.

本发明的一可选的实施例中,步骤12也可以包括:In an optional embodiment of the present invention, step 12 may also include:

步骤122,第一PCF根据用户的信息/标识,查询第二PCF信息/标识/地址的存储功能NRF,确定第二PCF;所述第一PCF向所述第二PCF通知业务流起始和结束。需要说明的是,该步骤122中确定的第二PCF为所述第一PCF需要通知业务流起始和结束的状态的第二PCF。Step 122, the first PCF queries the storage function NRF of the second PCF information/identity/address according to the user information/identification, and determines the second PCF; the first PCF notifies the second PCF of the start and end of the service flow . It should be noted that the second PCF determined in step 122 is the second PCF that the first PCF needs to notify of the start and end states of the service flow.

具体的实现流程如图2所示,包括:The specific implementation process is shown in Figure 2, including:

1,会话管理相关的PCF(SM PCF,即第一PCF)在一个用户的会话建立后去UDR订阅这个策略信息(这个策略信息由AF创建/修改/删除,这个策略信息是接入管理AM策略影响请求信息)。1. The PCF (SM PCF, the first PCF) related to session management goes to UDR to subscribe to this policy information after a user's session is established (this policy information is created/modified/deleted by AF, and this policy information is access management AM policy Affect request information).

2,策略信息在UDR被AF创建后,会话管理的PCF会收到UDR的通知(一个用户的AM策略影响请求信息被创建)。2. Policy information After the UDR is created by the AF, the PCF of the session management will receive the notification of the UDR (a user's AM policy impact request information is created).

3,收到通之后,SM PCF根据这个通知生成一个订阅信息。订阅信息有关订阅这个用户的这个PDU会话在用户面的Application traffic(业务流)的start/stop。订阅信息也有通知方的地址,即对用户进行接入管理的AM PCF的地址。3. After receiving the notification, the SM PCF generates a subscription message according to the notification. Subscription information is related to the start/stop of the Application traffic (service flow) on the user plane for this PDU session subscribed to this user. The subscription information also has the address of the notifying party, that is, the address of the AM PCF that performs access management for the user.

4,订阅信息的通知方的地址可以通过SM PCF查询BSF或者查询NRF获取。AM PCF在服务注册时会注册一个默认通知地址。4. The address of the notifier of subscription information can be obtained by querying BSF or NRF through SM PCF. AM PCF will register a default notification address during service registration.

5,PCF启动业务流的检测,或者向SMF指示检测,或者订阅业务流的start/stop状态。5. The PCF starts the detection of the service flow, or indicates the detection to the SMF, or subscribes to the start/stop state of the service flow.

6,当检测到订阅信息相关的事件(用户的PDU会话在用户面的应用数据start/stop状态)后,SM PCF根据订阅信息的通知方地址向AM PCF进行通知。6. When an event related to the subscription information is detected (the application data start/stop status of the user's PDU session on the user plane), the SM PCF notifies the AM PCF according to the notifier address of the subscription information.

另一种具体的实现流程如图3所示,包括:Another specific implementation process is shown in Figure 3, including:

1,会话管理相关的PCF(SM PCF,即第一PCF)在一个用户的会话建立后去UDR订阅这个策略信息(这个策略信息由AF创建/修改/删除,这个策略信息是接入管理AM策略影响请求信息)。1. The PCF (SM PCF, the first PCF) related to session management goes to UDR to subscribe to this policy information after a user's session is established (this policy information is created/modified/deleted by AF, and this policy information is access management AM policy Affect request information).

2,策略信息在UDR被AF创建后,会话管理的PCF会收到UDR的通知(一个用户的AM策略影响请求信息被创建)。2. Policy information After the UDR is created by the AF, the PCF of the session management will receive the notification of the UDR (a user's AM policy impact request information is created).

3,收到通之后,PCF启动业务流的检测,或者向SMF指示检测,或者订阅业务流的start/stop状态。3. After receiving the notification, the PCF starts the detection of the service flow, or indicates the detection to the SMF, or subscribes to the start/stop state of the service flow.

4,当检测到订阅信息相关的事件(用户的PDU会话在用户面的应用数据start/stop状态)后,SM PCF确定AM PCF后向AM PCF进行通知。SM PCF可以通过查询有第二PCF信息/标识/地址的会话绑定支持功能BSF或者查询NRF确定AM PCF。4. After detecting an event related to the subscription information (the application data start/stop state of the user's PDU session in the user plane), the SM PCF determines the AM PCF and then notifies the AM PCF. The SM PCF may determine the AM PCF by querying the session binding support function BSF having the information/identity/address of the second PCF or querying the NRF.

本发明的一可选的实施例中,以所述NF为PCF为例,上述步骤11可以包括:In an optional embodiment of the present invention, taking the NF as an example of PCF, the above step 11 may include:

步骤112,所述第一PCF接收第二PCF发送的订阅请求,所述订阅请求用于订阅用户的PDU会话建立(或者会话管理策略关联(SM policy association)的建立);Step 112, the first PCF receives a subscription request sent by the second PCF, and the subscription request is used for establishing a PDU session of a subscribing user (or establishing a session management policy association (SM policy association));

步骤113,所述第一PCF根据所述订阅请求,获得策略信息,根据策略信息对用户的协议数据单元PDU会话的业务流进行检测。Step 113, the first PCF obtains policy information according to the subscription request, and detects the service flow of the user's protocol data unit PDU session according to the policy information.

这里的策略信息包括:与PDU会话相关的DNN和切片信息。The policy information here includes: DNN and slice information related to the PDU session.

相应的,上述步骤12可以包括:Correspondingly, the above step 12 may include:

第一PCF根据第二PCF的订阅请求确定第二PCF;所述第一PCF向所述第二PCF通知业务流起始和结束。The first PCF determines the second PCF according to the subscription request of the second PCF; the first PCF notifies the second PCF of the start and end of the service flow.

具体的流程如图4所示,1,会话管理相关的PCF(SM PCF,即第一PCF)在一个用户的会话建立后去UDR订阅这个策略信息(这个策略信息由AF创建/修改/删除,这个策略信息是接入管理AM策略影响请求信息)。The specific process is shown in Figure 4. 1. The PCF (SM PCF, i.e. the first PCF) related to session management goes to UDR to subscribe to this policy information after a user's session is established (this policy information is created/modified/deleted by AF, This policy information is Access Management AM Policy Impact Request Information).

2,策略信息在UDR被AF创建后,会话管理的PCF会收到UDR的通知(一个用户的AM策略影响请求信息被创建)。2. Policy information After the UDR is created by the AF, the PCF of the session management will receive the notification of the UDR (a user's AM policy impact request information is created).

3,所述第一PCF接收第二PCF发送的订阅请求。3. The first PCF receives the subscription request sent by the second PCF.

4,所述第一PCF根据所述订阅请求,获得策略信息,根据策略信息对用户的协议数据单元PDU会话的业务流进行检测。4. The first PCF obtains policy information according to the subscription request, and detects the service flow of the user's protocol data unit PDU session according to the policy information.

作为一个可选实施例,所述步骤11包括:As an optional embodiment, the step 11 includes:

第一NF接收第二NF发送的第二订阅请求,所述第二订阅请求用于订阅业务流状态;第一NF在接收到所述第二订阅请求的情况下,触发对业务流进行检测;其中,所述第二订阅请求是第二NF确认用户的PDU会话建立的之后发送的。The first NF receives the second subscription request sent by the second NF, and the second subscription request is used for subscribing to the status of the service flow; when the first NF receives the second subscription request, it triggers the detection of the service flow; Wherein, the second subscription request is sent after the second NF confirms that the user's PDU session is established.

该实施例中,第二NF在确认用户的PDU会话建立的情况下,向第一NF发送第二订阅请求,用于向第一NF订阅业务流状态;第一NF接收到该第二订阅请求,触发对业务流进行检测。其中,在所述第二NF接收到用户的PDU会话建立的通知,或者所述第二NF接收到第一NF的相关信息的情况下,确认用户的PDU会话建立;所述第一NF的相关信息包括:第一NF的标识、地址以及会话绑定信息中的至少一项。In this embodiment, when the second NF confirms that the user's PDU session is established, it sends a second subscription request to the first NF for subscribing to the service flow status to the first NF; the first NF receives the second subscription request , to trigger the detection of the service flow. Wherein, when the second NF receives the notification of the establishment of the user's PDU session, or the second NF receives the relevant information of the first NF, it confirms the establishment of the user's PDU session; the correlation of the first NF The information includes: at least one of the identifier, address and session binding information of the first NF.

需要说明的是,在该实施例中,所述用户的PDU会话建立也可以替换为会话管理策略关联的建立,即第二NF在确认会话管理策略关联建立的情况下,向第一NF发送第二订阅请求。其中,在所述第二NF接收到会话管理策略关联建立的通知,或者所述第二NF接收到第一NF的相关信息的情况下,确认会话管理策略关联建立。It should be noted that, in this embodiment, the establishment of the user's PDU session can also be replaced by the establishment of the session management policy association, that is, the second NF sends the first NF to the first NF after confirming the establishment of the session management policy association. Two subscription requests. Wherein, when the second NF receives the notification of establishing the session management policy association, or the second NF receives relevant information of the first NF, confirming the establishment of the session management policy association.

需要说明的是,所述第二NF接收到的用户的PDU会话建立(或者会话管理策略关联建立)的通知,可以为所述第一NF发送或者为第三NF发送。所述第二NF接收到第一NF的相关信息,可以为所述第一NF或第三NF发送。所述第三NF可以为除所述第一NF、第二NF外的其他NF。例如接入和移动管理功能AMF。It should be noted that the notification of establishment of the user's PDU session (or session management policy association establishment) received by the second NF may be sent by the first NF or by the third NF. The second NF receives the relevant information of the first NF, and may send it for the first NF or the third NF. The third NF may be other NFs except the first NF and the second NF. For example Access and Mobility Management Function AMF.

具体实现流程如图5所示,以NF为PCF为例,包括:The specific implementation process is shown in Figure 5, taking NF as an example of PCF, including:

1、会话管理相关的PCF(SM PCF,即第一PCF)在一个用户的会话建立后去UDR订阅这个策略信息(这个策略信息由AF创建/修改/删除,这个策略信息是接入管理AM策略影响请求信息)。1. The PCF (SM PCF, the first PCF) related to session management goes to UDR to subscribe to this policy information after a user's session is established (this policy information is created/modified/deleted by AF, and this policy information is access management AM policy Affect request information).

2、当一个用户的PDU会话的建立时,AM PCF(即第二PCF)接收到该用户的PDU会话通知,该会话通知可以由SM PCF发送也可以由AMF发送。2. When a user's PDU session is established, the AM PCF (that is, the second PCF) receives the user's PDU session notification, and the session notification can be sent by the SM PCF or by the AMF.

3,收到用户的PDU会话建立的通之后,AM PCF(即第二PCF)向SM PCF(第一PCF)订阅用户的PDU session的应用traffic的状态(即发送所述第二订阅请求);3. After receiving the notification that the user's PDU session is established, the AM PCF (ie, the second PCF) subscribes to the SM PCF (the first PCF) for the status of the application traffic of the user's PDU session (ie, sends the second subscription request);

4,SM PCF(第一PCF)对业务流进行检测(Application traffic detection)。4. The SM PCF (the first PCF) detects the service flow (Application traffic detection).

5,SM PCF向AM PCF发送通知(通知检测到用户的PDU会话的应用traffic的状态)。5. The SM PCF sends a notification to the AM PCF (notifying the status of the application traffic of the user's PDU session detected).

需要说明的是,在该实施例中,所述用户的PDU会话建立也可以替换为会话管理策略关联的建立,具体实现流程与图5类似,在此不做赘述。下面以所述第一NF项第二NF发送用户的PDU会话建立通知为例说明本发明实施例的状态订阅通知的方法。It should be noted that, in this embodiment, the establishment of the user's PDU session can also be replaced by the establishment of session management policy association, and the specific implementation process is similar to that in FIG. 5 , which will not be repeated here. The method for status subscription notification in the embodiment of the present invention will be described below by taking the first NF item and the second NF sending the user's PDU session establishment notification as an example.

本发明的一可选的实施例中,以NF为PCF为例,上述步骤11可以包括:In an optional embodiment of the present invention, taking NF as an example of PCF, the above step 11 may include:

步骤114,第一NF接收第二NF发送的第一订阅请求,即第二PCF向第一PCF发送第一订阅请求,所述第一订阅请求用于订阅用户的PDU会话建立;或者,第一NF接收第二NF发送的第一指示,所述第一指示用于请求或指示:所述第一NF在PDU会话建立后通知所述第二NF用户的PDU会话建立;Step 114, the first NF receives the first subscription request sent by the second NF, that is, the second PCF sends the first subscription request to the first PCF, and the first subscription request is used to establish a PDU session of the subscribing user; or, the first The NF receives the first indication sent by the second NF, where the first indication is used to request or indicate: the first NF notifies the second NF of the user's PDU session establishment after the PDU session is established;

步骤115,所述第一PCF在用户的PDU会话建立时,通知第二PCF,由第二PCF向第一PCF发送第二订阅请求,所述第二订阅请求用于订阅所述PDU会话的业务流状态,所述第一PCF根据所述第二个订阅请求对用户的PDU会话的业务流进行检测。Step 115, the first PCF notifies the second PCF when the user's PDU session is established, and the second PCF sends a second subscription request to the first PCF, and the second subscription request is used to subscribe to the service of the PDU session flow state, the first PCF detects the service flow of the user's PDU session according to the second subscription request.

该实施例中,所述第二NF可以向所述第一NF发送第一订阅请求或者第一指示,所述第一订阅请求用于向第一NF订阅PDU会话的建立;所述第一指示用于向第一NF请求或指示在PDU会话建立后通知所述第二NF用户的PDU会话建立。In this embodiment, the second NF may send a first subscription request or a first indication to the first NF, and the first subscription request is used to subscribe to the first NF for establishing a PDU session; the first indication It is used to request or instruct the first NF to notify the second NF of the user's PDU session establishment after the PDU session is established.

可选地,在该实施例中,所述第一订阅请求也可以用于订阅会话管理策略关联的建立;所述第一指示也可以用于请求或指示第一NF会话管理策略关联建立后通知所述第二NF。所述第一指示为PDU会话相关的指示或者会话管理策略关联相关的指示。Optionally, in this embodiment, the first subscription request may also be used to subscribe to the establishment of the session management policy association; the first indication may also be used to request or instruct the first NF to subscribe to the establishment of the session management policy association The second NF is notified. The first indication is an indication related to a PDU session or an indication related to session management policy association.

可选地,所述第一订阅请求或者所述第一指示携带DNN和/或切片标识。即所述第二NF在发送所述第一订阅请求时,携带DNN和/或切片标识,用于向第一NF订阅用户的指定DNN和/或切片标识的PDU会话建立。或者,所述第二NF在发送所述第一指示时,携带DNN和/或切片标识,用于向第一NF指示或请求用户的指定DNN和/或切片标识的PDU会话建立。Optionally, the first subscription request or the first indication carries a DNN and/or a slice identifier. That is, when the second NF sends the first subscription request, it carries the DNN and/or the slice identifier, and is used for establishing a PDU session to subscribe to the user's specified DNN and/or slice identifier to the first NF. Alternatively, when the second NF sends the first indication, it carries a DNN and/or a slice identifier, and is used to indicate to the first NF or request the establishment of a PDU session of the user's specified DNN and/or slice identifier.

需要说明的是,所述PDU会话建立或所述PDU会话相关的会话管理策略关联建立,第一NF中都会获得所述用户的PDU会话信息。It should be noted that the PDU session information of the user will be obtained in the first NF when the PDU session is established or the session management policy association related to the PDU session is established.

相应的,上述步骤12可以包括:Correspondingly, the above step 12 may include:

第一PCF根据所述第二订阅请求,确定第二PCF;所述第一PCF向所述第二PCF通知业务流起始和结束。The first PCF determines the second PCF according to the second subscription request; the first PCF notifies the second PCF of the start and end of the service flow.

具体的实现流程如图6所示,以NF为PCF为例,包括:The specific implementation process is shown in Figure 6, taking NF as an example of PCF, including:

1,AM PCF(即第二PCF)向SM PCF(即第一PCF)进行针对PDU会话信息的订阅(可以针对对应与一个DNN和切片的一组用户或所有用户)。AM PCF发送订阅请求的触发条件是收到UDR发送的通知,告知AF针对一个DNN和一个切片有哪些用户创建了一个应用数据——AM策略影响请求信息;即第二NF向第一NF订阅用户的PDU会话建立(也可以替换为订阅会话管理策略关联的建立)。1. The AM PCF (that is, the second PCF) subscribes to the SM PCF (that is, the first PCF) for the PDU session information (for a group of users or all users corresponding to a DNN and a slice). The trigger condition for AM PCF to send a subscription request is to receive a notification sent by UDR, informing AF which users have created an application data for a DNN and a slice—the AM policy affects the request information; that is, the second NF subscribes users to the first NF PDU session establishment (can also be replaced by the establishment of subscription session management policy association).

2,当一个用户的PDU会话的建立(或者会话管理策略关联建立)时,SM PCF(即第一PCF)通知AM PCF(即第二PCF)该用户的PDU会话信息。2. When a user's PDU session is established (or a session management policy association is established), the SM PCF (ie, the first PCF) notifies the AM PCF (ie, the second PCF) of the user's PDU session information.

3,收到通之后,AM PCF向SM PCF发送的针对一个PDU会话在用户面的应用数据start/stop状态的请求。3. After receiving the notification, the AM PCF sends to the SM PCF a request for the start/stop state of the application data of a PDU session on the user plane.

4,SM PCF检测(Application traffic detection)。4. SM PCF detection (Application traffic detection).

5,SM PCF(即第一PCF)向AM PCF(即第二PCF)发送通知(通知检测到用户的PDU会话的应用traffic的状态)。5. The SM PCF (that is, the first PCF) sends a notification to the AM PCF (that is, the second PCF) (notifying that the state of the application traffic of the user's PDU session is detected).

可选地,所述第一订阅请求携带第二NF的相关信息;Optionally, the first subscription request carries related information of the second NF;

或者,所述第一指示携带第二NF的相关信息;Or, the first indication carries related information of the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

该实施例中,在第二NF向第一NF发送第一订阅请求或者第一指示时,可以在所述第一订阅请求或者第一指示中携带第二NF的相关信息,则所述第一NF可以根据第一订阅请求获得第二NF的地址、标识、绑定信息等;或者,所述第一NF可以在获得第一指示的同时,获得第二NF的地址、标识、绑定信息等。In this embodiment, when the second NF sends the first subscription request or the first indication to the first NF, relevant information of the second NF may be carried in the first subscription request or the first indication, and the first The NF may obtain the address, identifier, binding information, etc. of the second NF according to the first subscription request; or, the first NF may obtain the address, identifier, binding information, etc. of the second NF while obtaining the first indication .

具体的实现流程如图7所示,以所述第一NF接收第二NF发送的第一指示,NF为PCF为例,包括:The specific implementation process is shown in Figure 7, taking the first NF receiving the first indication sent by the second NF, and the NF being PCF as an example, including:

0、AM PCF(即第二PCF)在AM策略关联建立或修改过程中,携带一个指示,用于请求或指示PCF for the PDU session(第一PCF)在PDU会话建立后向PCF for the UE(第二PCF)发送通知。0. The AM PCF (that is, the second PCF) carries an indication during the establishment or modification of the AM policy association, which is used to request or instruct the PCF for the PDU session (the first PCF) to send the PCF for the UE ( The second PCF) sends a notification.

1、在PDU会话建立过程中,在AMF->SMF和SMF->PCF的消息中携带请求用户的PDUsession信息的指示信息(即所述第一指示),用于请求或指示PCF for the PDU session(第一PCF)在PDU会话建立后向PCF for the UE(第二PCF)发送通知。1. During the establishment of the PDU session, the AMF->SMF and SMF->PCF messages carry the indication information (that is, the first indication) requesting the user's PDU session information, which is used to request or indicate PCF for the PDU session (the first PCF) sends a notification to the PCF for the UE (the second PCF) after the PDU session is established.

2、第一PCF向第二PCF发送有关PDU session信息的通知。2. The first PCF sends a notification about the PDU session information to the second PCF.

3、第二PCF确认PDU会话建立后,向第一PCF订阅用户的PDU session的应用traffic的状态3. After the second PCF confirms that the PDU session is established, it subscribes to the first PCF to subscribe to the status of the application traffic of the user's PDU session

4,SM PCF检测(Application traffic detection)。4. SM PCF detection (Application traffic detection).

5,SM PCF(即第一PCF)向AM PCF(即第二PCF)发送通知(通知检测到用户的PDU会话的应用traffic的状态)。5. The SM PCF (that is, the first PCF) sends a notification to the AM PCF (that is, the second PCF) (notifying that the state of the application traffic of the user's PDU session is detected).

需要说明的是,在该实施例中,所述用户的PDU会话建立也可以替换为会话管理策略关联建立,即订阅用户的PDU会话建立可以替换为订阅会话管理策略关联建立;在用户的PDU会话建立后发送通知可以替换为在会话管理策略关联建立后发送通知;确认PDU会话建立可以替换为确认会话管理策略关联建立。具体实现流程与图7类似,在此不做赘述。可选地,所述方法还包括:It should be noted that, in this embodiment, the user's PDU session establishment can also be replaced by session management policy association establishment, that is, the subscription user's PDU session establishment can be replaced by subscription session management policy association establishment; Sending notification after establishment can be replaced by sending notification after session management policy association is established; confirming PDU session establishment can be replaced by confirming session management policy association establishment. The specific implementation process is similar to that in FIG. 7 , and details are not repeated here. Optionally, the method also includes:

第一NF在用户的PDU会话建立(或者会话管理策略关联建立)后,向UDR订阅策略信息;After the user's PDU session is established (or the session management policy association is established), the first NF subscribes to the policy information to the UDR;

第一NF在用户的PDU会话建立(或者会话管理策略关联建立)后,通知第二NF,包括:After the user's PDU session is established (or session management policy association is established), the first NF notifies the second NF, including:

在接收到UDR通知的策略信息后,向所述第二NF发送通知消息,所述通知消息用于通知所述第二NF用户的PDU会话建立(或者会话管理策略关联建立)。After receiving the policy information notified by the UDR, a notification message is sent to the second NF, where the notification message is used to notify the second NF of the user's PDU session establishment (or session management policy association establishment).

该实施例中,第一NF在监测到用户的PDU会话建立(或者会话管理策略关联建立)后,可以向UDR订阅策略信息,由于接收到第二NF发送的第一订阅请求,则可以在接收到UDR的策略信息后,通知第二NF用户的PDU会话建立(或者会话管理策略关联建立)。In this embodiment, after the first NF monitors that the user's PDU session is established (or session management policy association is established), it can subscribe to the policy information to the UDR. Since it receives the first subscription request sent by the second NF, it can receive After receiving the policy information of the UDR, the second NF is notified of the establishment of the PDU session of the user (or the establishment of session management policy association).

该实施例中,所述第一NF可以为第一PCF,第二NF可以为第二PCF。以NF为PCF为例,第一PCF向UDR订阅策略信息,第一PCF在PDU会话建立后向UDR订阅策略信息,接收到UDR通知的策略信息后,向所述第二PCF发送用户的PDU会话建立的通知消息,通知所述第二PCF所述PDU会话建立。所述第二PCF接收到所述通知消息后,向所述第一PCF发送第一请求消息,所述第一请求消息用于订阅所述业务流状态;所述第一PCF接收到所述第一请求消息,则根据所述第一请求消息对所述业务流进行检测,并向所述第二PCF反馈所述业务流状态,即所述业务流起始和结束。In this embodiment, the first NF may be a first PCF, and the second NF may be a second PCF. Taking the NF as the PCF as an example, the first PCF subscribes the policy information to the UDR, the first PCF subscribes to the policy information to the UDR after the PDU session is established, and after receiving the policy information notified by the UDR, sends the user’s PDU session to the second PCF The establishment notification message notifies the second PCF that the PDU session is established. After receiving the notification message, the second PCF sends a first request message to the first PCF, where the first request message is used to subscribe to the service flow status; the first PCF receives the first When a request message is received, the service flow is detected according to the first request message, and the state of the service flow is fed back to the second PCF, that is, the start and end of the service flow.

需要说明的是,所述第一NF还可以向所述UDR发送用于请求获取策略信息的请求消息,所述UDR根据所述请求消息向所述第一NF反馈策略信息(例如:所述第一NF向第二NF查询策略信息,则可以直接获得第二NF返回的查询结果);所述第一NF接收到所述策略信息后,向第二NF发送用户的PDU会话建立的通知消息;所述第二NF接收到通知消息后,向所述第一NF发送请求消息,用于订阅业务流状态;所述第一NF根据所述请求消息对业务流进行检测,并向所述第二NF通知业务流起始和结束。在该实施例中,第一NF在用户的PDU会话建立后,向UDR发送用于请求获取策略信息的请求消息。It should be noted that, the first NF may also send a request message to the UDR for requesting to obtain policy information, and the UDR feeds back policy information to the first NF according to the request message (for example: the first NF An NF queries the policy information from the second NF, and then can directly obtain the query result returned by the second NF); after the first NF receives the policy information, it sends a notification message of establishing the user's PDU session to the second NF; After receiving the notification message, the second NF sends a request message to the first NF for subscribing to the status of the service flow; the first NF detects the service flow according to the request message, and sends a request message to the second NF NF notifies the start and end of a service flow. In this embodiment, after the user's PDU session is established, the first NF sends a request message for requesting to obtain policy information to the UDR.

需要说明的是,在该实施例中,所述用户的PDU会话建立也可以替换为会话管理策略关联建立,例如:订阅用户的PDU会话建立可以替换为订阅会话管理策略关联建立,确认PDU会话建立可以替换为确认会话管理策略关联建立。具体实现流程在此不做赘述。It should be noted that in this embodiment, the user's PDU session establishment can also be replaced by session management policy association establishment, for example: the subscription user's PDU session establishment can be replaced by subscription session management policy association establishment, confirming the PDU session establishment Can be replaced by confirm session management policy association establishment. The specific implementation process will not be repeated here.

可选地,在第一NF在接收到UDR通知的策略信息后,向第二NF发送通知消息之前,所述方法还包括:确定第二NF。该实施例中,所述确定第二NF为:确定所述第一NF需要通知用户的PDU会话建立(或者会话管理策略关联建立)的第二NF。在确定所述第二NF后,所述第一NF向所述第二NF发送通知消息。Optionally, before the first NF sends the notification message to the second NF after receiving the policy information notified by the UDR, the method further includes: determining the second NF. In this embodiment, the determining the second NF is: determining the second NF that the first NF needs to notify the user of PDU session establishment (or session management policy association establishment). After determining the second NF, the first NF sends a notification message to the second NF.

具体地,所述确定第二NF可以包括但不限于以下方式:Specifically, the determining the second NF may include but not limited to the following methods:

方式一:第一NF根据用户的信息或标识,查询具有第二NF的相关信息的会话绑定支持功能BSF,确定第二NF;其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Mode 1: The first NF queries the session binding support function BSF with the relevant information of the second NF according to the user's information or identification, and determines the second NF; wherein, the relevant information of the second NF includes: information of the second NF , at least one item of the second NF identifier and the second NF address.

该方式一中,所述第一NF可以根据用户信息或者标识查询BSF,该BSF具有所述第二NF的相关信息,从而确定所述第二NF,所述第一NF向确定的所述第二NF发送用于通知PDU建立(或者会话管理策略关联建立)的通知消息。In the first method, the first NF may query the BSF according to the user information or the identifier, and the BSF has relevant information about the second NF, so as to determine the second NF, and the first NF sends the determined second NF to the BSF. Two NFs send notification messages for notifying PDU establishment (or session management policy association establishment).

方式二:第一NF根据用户的信息或标识,从UDR获取所述第二NF的相关信息,确定所述第二NF;其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Method 2: The first NF obtains the relevant information of the second NF from the UDR according to the user's information or identifier, and determines the second NF; wherein, the relevant information of the second NF includes: information of the second NF, information of the second NF, At least one item of the second NF identifier and the second NF address.

该方式二中,所述第一NF根据用户的信息或者标识,可以由UDR获取所述第二NF的相关信息,从而确定第二NF,所述第一NF向确定的所述第二NF发送用于通知PDU建立(或者会话管理策略关联建立)的通知消息。In the second method, the first NF can obtain the relevant information of the second NF through the UDR according to the user's information or identification, so as to determine the second NF, and the first NF sends a message to the determined second NF. Notification message for notifying PDU establishment (or session management policy association establishment).

方式三:接收UDR通知策略信息时携带的所述第二NF的相关信息,确定所述第二NF;其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Method 3: The relevant information of the second NF carried when receiving the UDR notification policy information, and determining the second NF; wherein, the relevant information of the second NF includes: information about the second NF, the identifier of the second NF, and the second NF. At least one of the two NF addresses.

该方式三中,所述第一NF向UDR订阅策略信息,可以接收到UDR通知的策略信息和第二NF的相关信息,即所述UDR通知所述策略信息时携带所述第二NF的相关信息。In the third method, the first NF subscribes to the UDR for policy information, and can receive the policy information notified by the UDR and the relevant information of the second NF, that is, the UDR notifies the policy information with the relevant information of the second NF. information.

作为一个可选实施例,所述第一NF对所述业务流进行检测后,所述第一NF可以根据第二NF的订阅请求确定第二NF,所述第二NF的订阅请求为业务流状态(即业务流起始和结束)的订阅请求,该实施例中的确定第二NF为确定需要发送业务流状态的第二NF。在确定第二NF后,所述第一NF向所述第二NF通知业务流起始和结束。As an optional embodiment, after the first NF detects the service flow, the first NF may determine the second NF according to the subscription request of the second NF, and the subscription request of the second NF is a service flow A subscription request for a state (that is, the start and end of a service flow), the second NF for determining in this embodiment is the second NF for determining that the state of the service flow needs to be sent. After determining the second NF, the first NF notifies the second NF of the start and end of the service flow.

以上为第一NF向第二NF发送用户的PDU会话建立(或者会话管理策略关联建立)的通知的实施例,下面通过具体实施例说明第三NF向第二NF发送用户的PDU会话建立(或者会话管理策略关联建立)的通知。The above is an embodiment in which the first NF sends the notification of the user's PDU session establishment (or session management policy association establishment) to the second NF. The following describes the third NF sending the user's PDU session establishment (or session management policy association establishment) to the second NF through specific embodiments. session management policy association establishment).

可选地,在所述第二NF接收到的用户的PDU会话建立的通知为所述第三NF发送的情况下,所述用户的PDU会话建立(或者会话管理策略关联建立)的通知为所述第二NF向所述第三NF订阅。所述第三NF可以为除所述第一NF和第二NF外的其他NF,例如AMF。Optionally, when the notification of the user's PDU session establishment received by the second NF is sent by the third NF, the notification of the user's PDU session establishment (or session management policy association establishment) is the The second NF subscribes to the third NF. The third NF may be other NFs except the first NF and the second NF, such as AMF.

具体地,实现流程如图8所示,以AMF向第二NF发送用户的PDU会话建立的通知为例,包括:Specifically, the implementation process is shown in Figure 8, taking the AMF sending the notification of the establishment of the user's PDU session to the second NF as an example, including:

1,AM PCF(即第二PCF)向AMF进行针对PDU会话信息的订阅(订阅用户的PDUsession信息)。1. The AM PCF (that is, the second PCF) subscribes to the AMF for the PDU session information (subscribing to the user's PDU session information).

2,当一个用户的PDU会话的建立时,AMF通知AM PCF(即第二PCF)该用户的PDU会话信息。2. When a user's PDU session is established, the AMF notifies the AM PCF (that is, the second PCF) of the user's PDU session information.

3,收到通之后,AM PCF向SM PCF发送的针对一个PDU会话在用户面的应用数据start/stop状态的请求(即订阅用户的PDU session的应用traffic的状态)。3. After receiving the notification, the AM PCF sends to the SM PCF a request for the start/stop state of the application data of a PDU session on the user plane (that is, the state of the application traffic of the PDU session of the subscribed user).

4,SM PCF检测(Application traffic detection)。4. SM PCF detection (Application traffic detection).

5,SM PCF(即第一PCF)向AM PCF(即第二PCF)发送通知(通知检测到用户的PDU会话的应用traffic的状态)。5. The SM PCF (that is, the first PCF) sends a notification to the AM PCF (that is, the second PCF) (notifying that the state of the application traffic of the user's PDU session is detected).

需要说明的是,在该实施例中,所述用户的PDU会话建立也可以替换为会话管理策略关联的建立,例如:订阅用户的PDU会话建立可以替换为订阅会话管理策略关联建立,确认PDU会话建立可以替换为确认会话管理策略关联建立。具体实现流程与图8类似,在此不做赘述。本发明的一可选的实施例中,第一PCF向UDR订阅策略信息,包括:It should be noted that, in this embodiment, the establishment of the user's PDU session can also be replaced by the establishment of the session management policy association, for example: the establishment of the subscription user's PDU session can be replaced by the establishment of the subscription session management policy association, and the confirmation of the PDU session Establishment may be replaced by confirming session management policy association establishment. The specific implementation process is similar to that in FIG. 8 , and details are not repeated here. In an optional embodiment of the present invention, the first PCF subscribes policy information to the UDR, including:

针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;All policy information for the preset application is created in batches by AF in UDR as application data, and the preset application is associated with a specified DNN and a slice identifier;

第一NF针对预设应用的所有用户向UDR订阅策略信息;The first NF subscribes policy information to the UDR for all users of the preset application;

根据策略信息对指定DNN和切片标识关联的应用的会话的业务流进行检测。Detect the service flow of the session of the application associated with the specified DNN and the slice identifier according to the policy information.

策略信息在UDR被AF批量创建,第一PCF针对预定DNN和切片的会话信息,所有用户的业务流的开始/结束状态或者业务流的开始/结束状态的订阅的批量订阅。The policy information is created in batches by the AF in the UDR, and the first PCF batch subscribes to the session information of the predetermined DNN and slice, the start/end status of the service flow of all users or the subscription of the start/end status of the service flow.

具体的实现流程如图9所示,包括:The specific implementation process is shown in Figure 9, including:

AF在UDR中批量创建应用数据(针对特定DNN和特定切片的所有用户/一组用户)AF creates application data in batches in UDR (all users/group of users for a specific DNN and a specific slice)

1,开启AM policy(接入策略)控制功能后,AM PCF向SM PCF进行特定DNN和特定切片的所有用户的应用数据的批量订阅。1. After the AM policy (access policy) control function is enabled, the AM PCF performs batch subscription of application data of all users of a specific DNN and a specific slice to the SM PCF.

2,AM PCF接收到UDR的通知,收到批量用户的应用数据(应用策略影响请求)。2. The AM PCF receives the notification of the UDR and receives the application data of batch users (application policy impact request).

3,AM PCF向SM PCF批量订阅用户的针对特定DNN和特定切片的PDU会话信息和应用数据start/stop状态的订阅(二合一事件订阅)或者应用数据start/stop状态的订阅(可以是能力开放服务)。3. The AM PCF subscribes to the SM PCF in batches for the subscription of the user's PDU session information and application data start/stop status for a specific DNN and a specific slice (two-in-one event subscription) or application data start/stop status subscription (can be a capability open service).

4,当某个用户针对指定DNN和切片的PDU会话建立后,并且SM PCF检测到用户面的应用数据start/stop状态后,SM PCF向AM PCF发送通知(针对特定切片和特定PDU会话的每个用户每个PDU会话发送通知)。4. When a user establishes a PDU session for a specified DNN and slice, and the SM PCF detects the start/stop status of the application data on the user plane, the SM PCF sends a notification to the AM PCF (for each session of a specific slice and a specific PDU session) users to send notifications per PDU session).

本发明的上述实施例,采用会话管理PCF去UDR订阅用户策略信息,避免了接入管理PCF访问BSF和会话管理PCF的流程,减少信令开销。In the above embodiments of the present invention, the session management PCF is used to subscribe user policy information to the UDR, which avoids the process of the access management PCF accessing the BSF and the session management PCF, and reduces signaling overhead.

本发明的一可选的实施例中,针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;In an optional embodiment of the present invention, all policy information for a preset application is created in batches by AF in UDR as application data, and the preset application is associated with a specified DNN and a slice identifier;

其中,所述策略信息为所述第二NF针对预设应用的所有用户向UDR订阅的策略信息,即第二NF针对预设应用的所有用户向UDR订阅策略信息;Wherein, the policy information is the policy information that the second NF subscribes to the UDR for all users of the preset application, that is, the second NF subscribes the policy information to the UDR for all users of the preset application;

PDU会话的业务流状态为所述第二NF根据策略信息批量向所述第一NF订阅,即第二NF根据策略信息向第一NF批量订阅所述PDU会话的业务流状态,所述第一NF根据策略信息对指定DNN和切片标识关联的应用的会话的业务流进行检测。The service flow state of the PDU session is that the second NF subscribes to the first NF in batches according to the policy information, that is, the second NF subscribes to the first NF in batches to the service flow state of the PDU session according to the policy information, and the first NF The NF detects the service flow of the session of the application associated with the specified DNN and the slice identifier according to the policy information.

如图10所示,AM PCF(即第二PCF)去SM PCF(即第一PCF)订阅2次,第一次是批量订阅。包括:As shown in FIG. 10 , the AM PCF (that is, the second PCF) subscribes twice to the SM PCF (that is, the first PCF), and the first time is a batch subscription. include:

1、针对切片和DNN的所有用户批量订阅UE的应用数据;1. Subscribe UE application data in batches for all users of slices and DNN;

2、第二PCF接收到批量用户的应用数据;2. The second PCF receives application data of a batch of users;

3、第二PCF根据UDR通知的批量用户的应用数据信息,批量订阅用户的PDUsession的应用traffic状态或PDU session的应用traffic和PDU session信息;3. The second PCF subscribes to the application traffic status of the user's PDU session or the application traffic and PDU session information of the PDU session in batches according to the application data information of the batch user notified by the UDR;

4、PDU会话建立(PDU session Establishment)后,SM PCF(即第一PCF)进行业务流检测(Application traffic detection);4. After the PDU session establishment (PDU session Establishment), the SM PCF (that is, the first PCF) performs service flow detection (Application traffic detection);

SM PCF(即第一PCF)针对某个用户的PDU会话的应用traffic的状态,向AM PCF(即第二PCF)独立发送通知。The SM PCF (that is, the first PCF) independently sends a notification to the AM PCF (that is, the second PCF) regarding the application traffic status of the PDU session of a certain user.

需要说明的是,在该实施例中,所述用户的PDU会话建立也可以替换为会话管理策略关联建立,例如:订阅用户的PDU会话建立可以替换为订阅会话管理策略关联,确认PDU会话建立可以替换为确认会话管理策略关联建立。具体实现流程与图10类似,在此不做赘述。It should be noted that, in this embodiment, the user's PDU session establishment can also be replaced by session management policy association establishment, for example: the subscription user's PDU session establishment can be replaced by subscription session management policy association, confirming that PDU session establishment Replaced with Confirm Session Management Policy Association Establishment. The specific implementation process is similar to that in FIG. 10 , and details are not repeated here.

本发明的实施例还提供一种状态订阅通知的方法,包括:Embodiments of the present invention also provide a method for status subscription notification, including:

第二网络功能NF接收第一NF发送的业务流起始和结束的通知;所述第二NF与接入管理相关;其中,所述第一NF根据策略信息触发对业务流进行检测,所述第一NF与会话管理相关。这里的NF可以是策略控制功能PCF。The second network function NF receives the notification of the start and end of the service flow sent by the first NF; the second NF is related to access management; wherein, the first NF triggers the detection of the service flow according to the policy information, and the The first NF is related to session management. The NF here may be a policy control function PCF.

可选地,所述方法还包括:第二NF向UDR订阅策略信息;Optionally, the method further includes: the second NF subscribes the policy information to the UDR;

在接收到UDR通知的策略信息后,将所述第二NF的相关信息写入所述UDR;其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。After receiving the policy information notified by the UDR, write the relevant information of the second NF into the UDR; where the relevant information of the second NF includes: the second NF information, the second NF identifier, and the second NF At least one of the addresses.

该实施例中,第二NF向UDR订阅策略信息,接收到UDR通知的策略信息后,将自己的相关信息(即所述第二NF的相关信息)写入UDR;其中,所述相关信息包括标识、地址、信息中的至少一项。所述第二NF将相关信息将写入UDR时,所述第二NF的相关信息(标识、地址、信息中的至少一项)需要与用户的信息/标识相关联。第二NF的标识/地址/信息可以写入UDR的策略信息或应用数据中。In this embodiment, the second NF subscribes to the UDR for policy information, and after receiving the policy information notified by the UDR, writes its own relevant information (that is, the relevant information of the second NF) into the UDR; wherein, the relevant information includes At least one of identification, address, information. When the second NF writes the relevant information into the UDR, the relevant information (at least one of identification, address, and information) of the second NF needs to be associated with the user's information/identification. The identifier/address/information of the second NF can be written into the policy information or application data of the UDR.

可选地,所述方法还包括:Optionally, the method also includes:

向第一NF发送订阅请求,所述订阅请求用于订阅用户的PDU会话建立。A subscription request is sent to the first NF, where the subscription request is used for establishing a PDU session of the subscribing user.

可选地,所述方法还包括:Optionally, the method also includes:

第二NF在确认用户的PDU会话建立之后,向第一NF发送第二订阅请求,所述第二订阅请求用于订阅业务流状态。After confirming that the PDU session of the user is established, the second NF sends a second subscription request to the first NF, where the second subscription request is used for subscribing to a service flow state.

可选地,在所述第二NF接收到用户的PDU会话建立的通知,或者所述第二NF接收到第一NF的标识或地址或会话绑定信息的情况下,确认用户的PDU会话建立。Optionally, when the second NF receives the notification of the establishment of the user's PDU session, or the second NF receives the identification or address of the first NF or session binding information, confirm the establishment of the user's PDU session .

可选地,所述第二NF接收到的用户的PDU会话建立的通知,为所述第一NF发送或者为第三NF发送。Optionally, the notification of establishment of the user's PDU session received by the second NF is sent by the first NF or sent by the third NF.

可选地,所述第二NF接收到第一NF的相关信息,为所述第一NF或第三NF发送;Optionally, the second NF receives relevant information of the first NF and sends it for the first NF or the third NF;

其中,所述第一NF的相关信息包括:第一NF的标识、地址以及会话绑定信息中的至少一项。Wherein, the relevant information of the first NF includes: at least one item of the identifier, address and session binding information of the first NF.

可选地,所述方法还包括:Optionally, the method also includes:

第二NF向第一NF发送第一订阅请求,所述第一订阅请求用于订阅用户的PDU会话建立;或者,第二NF向第一NF发送第一指示,所述第一指示用于请求或指示:所述第一NF在PDU会话建立后通知所述第二NF用户的PDU会话建立;The second NF sends a first subscription request to the first NF, and the first subscription request is used to establish a PDU session of the subscribing user; or, the second NF sends a first indication to the first NF, and the first indication is used to request Or indicate: the first NF notifies the second NF of the user's PDU session establishment after the PDU session is established;

第二NF接收第一NF发送的用户的PDU会话建立的通知;The second NF receives the notification of the establishment of the user's PDU session sent by the first NF;

第二NF在接收到用户的PDU会话建立的通之后,向所述第一NF发送第二订阅请求。The second NF sends a second subscription request to the first NF after receiving the user's PDU session establishment notification.

可选地,所述第一订阅请求或者所述第一指示携带DNN和/或切片标识。Optionally, the first subscription request or the first indication carries a DNN and/or a slice identifier.

可选地,所述第一订阅请求携带第二NF的相关信息;Optionally, the first subscription request carries related information of the second NF;

或者or

所述第一指示携带第二NF的相关信息;The first indication carries related information of the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选地,在所述第二NF接收到的用户的PDU会话建立的通知为所述第三NF发送的情况下,所述方法还包括:Optionally, when the notification of establishment of the user's PDU session received by the second NF is sent by the third NF, the method further includes:

第二NF向所述第三NF发送第三订阅请求,所述第三订阅请求用于订阅用户的PDU会话;The second NF sends a third subscription request to the third NF, and the third subscription request is used to subscribe to the user's PDU session;

第二NF接收所述第三NF发送的用户的PDU会话建立的通知。The second NF receives the notification of establishment of the user's PDU session sent by the third NF.

可选地,针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;Optionally, all the policy information for the preset application is created in batches by the AF in the UDR as application data, and the preset application is associated with a specified DNN and a slice identifier;

第二NF针对预设应用的所有用户向UDR订阅策略信息;The second NF subscribes policy information to the UDR for all users of the preset application;

第二NF根据策略信息向第一NF批量订阅PDU会话的业务流状态。The second NF subscribes to the first NF in batches for the service flow status of the PDU session according to the policy information.

需要说明的是,在本发明的实施例中,所述用户的PDU会话建立也可以替换为会话管理策略关联建立,例如:订阅用户的PDU会话建立可以替换为订阅会话管理策略关联,确认PDU会话建立可以替换为确认会话管理策略关联建立。具体实现流程在此不做赘述。It should be noted that, in the embodiment of the present invention, the user's PDU session establishment can also be replaced by session management policy association establishment, for example: the subscription user's PDU session establishment can be replaced by subscription session management policy association, confirming the PDU session Establishment may be replaced by confirming session management policy association establishment. The specific implementation process will not be repeated here.

需要说明的是,上述图1至图10中的所有方法均适用该方法的实施例中,也能达到相同的技术效果。It should be noted that all the methods in the above-mentioned Fig. 1 to Fig. 10 are applicable to the embodiment of the method, and the same technical effect can also be achieved.

如图11所示,本发明的实施例还提供一种状态订阅通知的装置110,应用于第一网络功能NF,包括:As shown in FIG. 11 , an embodiment of the present invention also provides an apparatus 110 for status subscription notification, which is applied to the first network function NF, including:

处理模块111,用于根据策略信息触发对业务流进行检测;A processing module 111, configured to trigger detection of service flows according to policy information;

收发模块112,用于向第二NF通知业务流起始和结束;所述第二NF与接入管理相关。The transceiver module 112 is configured to notify the second NF of the start and end of the service flow; the second NF is related to access management.

可选的,所述第一NF根据策略信息触发对业务流进行检测,包括:Optionally, the first NF triggers detection of service flows according to policy information, including:

第一NF向统一数据仓库功能UDR订阅策略信息,接收到UDR通知的策略信息后,对用户的协议数据单元PDU会话的业务流进行检测。The first NF subscribes policy information to the unified data warehouse function UDR, and after receiving the policy information notified by the UDR, detects the service flow of the user's protocol data unit PDU session.

可选的,第一NF在用户的协议数据单元PDU会话建立后,第一NF向UDR订阅策略信息,接收到UDR通知的策略信息后,对用户的PDU会话的业务流进行检测。Optionally, after the user's protocol data unit PDU session is established, the first NF subscribes to the policy information from the UDR, and detects the service flow of the user's PDU session after receiving the policy information notified by the UDR.

可选的,所述第一NF根据策略信息触发对业务流进行检测,包括:Optionally, the first NF triggers detection of service flows according to policy information, including:

所述第一NF接收第二NF发送的订阅请求,所述订阅请求用于订阅用户的PDU会话建立;The first NF receives the subscription request sent by the second NF, and the subscription request is used for establishing a PDU session of the subscribing user;

所述第一NF根据所述订阅请求,获得策略信息,根据策略信息对用户的协议数据单元PDU会话的业务流进行检测。The first NF obtains policy information according to the subscription request, and detects the service flow of the user's protocol data unit PDU session according to the policy information.

可选地,所述第一NF根据策略信息触发对业务流进行检测,包括:Optionally, the first NF triggers detection of service flows according to policy information, including:

第一NF接收第二NF发送的第二订阅请求,所述第二订阅请求用于订阅业务流状态;The first NF receives a second subscription request sent by the second NF, and the second subscription request is used for subscribing to a service flow state;

第一NF在接收到所述第二订阅请求的情况下,触发对业务流进行检测;In the case of receiving the second subscription request, the first NF triggers detection of the service flow;

其中,所述第二订阅请求是第二NF确认用户的PDU会话建立的之后发送的。Wherein, the second subscription request is sent after the second NF confirms that the user's PDU session is established.

可选地,在所述第二NF接收到用户的PDU会话建立的通知,或者所述第二NF接收到第一NF的相关信息的情况下,确认用户的PDU会话建立;Optionally, when the second NF receives the notification of the establishment of the user's PDU session, or the second NF receives the relevant information of the first NF, confirming the establishment of the user's PDU session;

其中,所述第一NF的相关信息包括:第一NF的标识、地址以及会话绑定信息中的至少一项。Wherein, the relevant information of the first NF includes: at least one item of the identifier, address and session binding information of the first NF.

可选地,所述第二NF接收到的用户的PDU会话建立的通知,为所述第一NF发送或者为第三NF发送。Optionally, the notification of establishment of the user's PDU session received by the second NF is sent by the first NF or sent by the third NF.

可选地,所述第二NF接收到第一NF的相关信息,为所述第一NF或第三NF发送。Optionally, the second NF receives relevant information of the first NF and sends it for the first NF or the third NF.

可选的,所述第一NF根据策略信息触发对业务流进行检测,包括:Optionally, the first NF triggers detection of service flows according to policy information, including:

第一NF接收第二NF发送的第一订阅请求,所述第一订阅请求用于订阅用户的PDU会话建立;The first NF receives the first subscription request sent by the second NF, and the first subscription request is used for establishing a PDU session of the subscribing user;

或者,第一NF接收第二NF发送的第一指示,所述第一指示用于请求或指示:所述第一NF在PDU会话建立后通知所述第二NF用户的PDU会话建立;Or, the first NF receives the first indication sent by the second NF, and the first indication is used for requesting or indicating: the first NF notifies the second NF of the user's PDU session establishment after the PDU session is established;

所述第一NF在用户的PDU会话建立时,通知第二NF,由第二NF向第一NF发送第二订阅请求,所述第二订阅请求用于订阅所述PDU会话的业务流状态,所述第一NF根据所述第二订阅请求对用户的PDU会话的业务流进行检测。The first NF notifies the second NF when the user's PDU session is established, and the second NF sends a second subscription request to the first NF, the second subscription request is used to subscribe to the service flow status of the PDU session, The first NF detects the service flow of the user's PDU session according to the second subscription request.

可选地,所述第一订阅请求或者所述第一指示携带DNN和/或切片标识。Optionally, the first subscription request or the first indication carries a DNN and/or a slice identifier.

可选地,所述第一订阅请求携带第二NF的相关信息;Optionally, the first subscription request carries related information of the second NF;

或者or

所述第一指示携带第二NF的相关信息;The first indication carries related information of the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选的,所述方法还包括:Optionally, the method also includes:

第一NF在用户的PDU会话建立后,向UDR订阅策略信息;After the user's PDU session is established, the first NF subscribes the policy information to the UDR;

第一NF在用户的PDU会话建立后,通知第二NF,包括:After the user's PDU session is established, the first NF notifies the second NF, including:

在接收到UDR通知的策略信息后,向所述第二NF发送通知消息,所述通知消息用于通知所述第二NF用户的PDU会话建立。After receiving the policy information notified by the UDR, send a notification message to the second NF, where the notification message is used to notify the second NF of the establishment of the PDU session of the user.

可选的,在接收到UDR通知的策略信息后,向所述第二NF发送通知消息之前,所述方法还包括:Optionally, after receiving the policy information notified by the UDR, before sending the notification message to the second NF, the method further includes:

确定第二NF。Determine the second NF.

可选的,所述确定第二NF,包括:Optionally, the determining the second NF includes:

第一NF根据用户的信息或标识,查询具有第二NF的相关信息的绑定支持功能BSF,确定第二NF;The first NF queries the binding support function BSF with the relevant information of the second NF according to the user's information or identification, and determines the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选的,所述确定第二NF,包括:Optionally, the determining the second NF includes:

第一NF根据用户的信息或标识,从UDR获取所述第二NF的相关信息,确定所述第二NF;The first NF obtains the relevant information of the second NF from the UDR according to the user's information or identifier, and determines the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选的,所述确定第二NF,包括:Optionally, the determining the second NF includes:

接收UDR通知策略信息时携带的所述第二NF的相关信息,确定所述第二NF;receiving the relevant information of the second NF carried when the UDR notifies the policy information, and determining the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选的,在所述第二NF接收到的用户的PDU会话建立的通知为所述第三NF发送的情况下,所述用户的PDU会话建立的通知为所述第二NF向所述第三NF订阅。Optionally, in the case where the notification of the establishment of the user's PDU session received by the second NF is sent by the third NF, the notification of the establishment of the user's PDU session is sent by the second NF to the third NF. Three NF subscriptions.

可选的,所述第一NF向第二NF通知业务流起始和结束,包括:Optionally, the first NF notifies the second NF of the start and end of the service flow, including:

第一NF根据用户的信息/标识,查询保存有第二NF信息/标识/地址的会话绑定支持功能BSF,确定第二NF;According to the information/identification of the user, the first NF queries the session binding support function BSF that stores the information/identification/address of the second NF, and determines the second NF;

所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end.

可选的,所述第一NF向第二NF通知业务流起始和结束,包括:Optionally, the first NF notifies the second NF of the start and end of the service flow, including:

第一NF根据用户的信息/标识,查询保存有第二NF信息/标识/地址的存储功能NRF,确定第二NF;According to the information/identification of the user, the first NF queries the storage function NRF storing the information/identification/address of the second NF, and determines the second NF;

所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end.

可选的,所述第一NF向第二NF通知业务流起始和结束,包括:Optionally, the first NF notifies the second NF of the start and end of the service flow, including:

第一NF根据第二NF的订阅请求确定第二NF;The first NF determines the second NF according to the subscription request of the second NF;

所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end.

可选的,所述第一NF向第二NF通知业务流起始和结束,包括:Optionally, the first NF notifies the second NF of the start and end of the service flow, including:

第一NF根据所述第二订阅请求,确定第二NF;The first NF determines a second NF according to the second subscription request;

所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end.

可选的,针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;Optionally, all the policy information for the preset application is created in batches by the AF in the UDR as application data, and the preset application is associated with a specified DNN and a slice identifier;

第一NF针对预设应用的所有用户向UDR订阅策略信息;The first NF subscribes policy information to the UDR for all users of the preset application;

根据策略信息对指定DNN和切片标识关联的应用的会话的业务流进行检测。Detect the service flow of the session of the application associated with the specified DNN and the slice identifier according to the policy information.

可选的,针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;Optionally, all the policy information for the preset application is created in batches by the AF in the UDR as application data, and the preset application is associated with a specified DNN and a slice identifier;

PDU会话的业务流状态为所述第二NF根据策略信息批量向所述第一NF订阅,所述第一NF根据策略信息对指定DNN和切片标识关联的应用的会话的业务流进行检测;The service flow state of the PDU session is that the second NF subscribes to the first NF in batches according to the policy information, and the first NF detects the service flow of the session of the application associated with the specified DNN and the slice identifier according to the policy information;

其中,所述策略信息为所述第二NF针对预设应用的所有用户向UDR订阅的策略信息。Wherein, the policy information is the policy information that the second NF subscribes to the UDR for all users of the preset application.

可选的,所述第一NF以及第二NF均为策略控制功能PCF,所述第一NF与会话管理相关,所述第二NF与接入管理相关。Optionally, both the first NF and the second NF are policy control functions PCF, the first NF is related to session management, and the second NF is related to access management.

需要说明的是,该装置是与上述方法对应的装置,上述方法的所有实现方式均适用于该装置的实施例中,也能达到相同的技术效果。It should be noted that the device is a device corresponding to the above-mentioned method, and all implementation modes of the above-mentioned method are applicable to the embodiments of the device, and can also achieve the same technical effect.

本发明的实施例还提供一种网络功能NF,包括如上所述的装置。An embodiment of the present invention also provides a network function NF, including the above-mentioned apparatus.

本发明的实施例还提供一种状态订阅通知的装置,应用于第二网络功能NF,包括:An embodiment of the present invention also provides an apparatus for status subscription notification, which is applied to the second network function NF, including:

收发模块,用于接收第一NF发送的业务流起始和结束的通知;所述第二NF与接入管理相关;其中,所述第一NF根据策略信息触发对业务流进行检测,所述第一NF与会话管理相关。The transceiver module is configured to receive the notification of the start and end of the service flow sent by the first NF; the second NF is related to access management; wherein, the first NF triggers the detection of the service flow according to the policy information, and the The first NF is related to session management.

可选地,所述装置还包括:Optionally, the device also includes:

订阅模块,用于第二NF向UDR订阅策略信息;The subscription module is used for the second NF to subscribe policy information to the UDR;

信息写入模块,用于在接收到UDR通知的策略信息后,将所述第二NF的相关信息写入所述UDR;An information writing module, configured to write the relevant information of the second NF into the UDR after receiving the policy information notified by the UDR;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选地,所述装置还包括:Optionally, the device also includes:

第一发送模块,用于向第一NF发送订阅请求,所述订阅请求用于订阅用户的PDU会话建立。The first sending module is configured to send a subscription request to the first NF, where the subscription request is used for establishing a PDU session of a subscribing user.

可选地,所述装置还包括:Optionally, the device also includes:

第二发送模块,用于在确认用户的PDU会话建立之后,向第一NF发送第二订阅请求,所述第二订阅请求用于订阅业务流状态。The second sending module is configured to send a second subscription request to the first NF after confirming that the user's PDU session is established, and the second subscription request is used for subscribing to a service flow state.

可选地,在所述第二NF接收到用户的PDU会话建立的通知,或者所述第二NF接收到第一NF的标识或地址或会话绑定信息的情况下,确认用户的PDU会话建立。Optionally, when the second NF receives the notification of the establishment of the user's PDU session, or the second NF receives the identification or address of the first NF or session binding information, confirm the establishment of the user's PDU session .

可选地,所述第二NF接收到的用户的PDU会话建立的通知,为所述第一NF发送或者为第三NF发送。Optionally, the notification of establishment of the user's PDU session received by the second NF is sent by the first NF or sent by the third NF.

可选地,所述第二NF接收到第一NF的相关信息,为所述第一NF或第三NF发送;Optionally, the second NF receives relevant information of the first NF and sends it for the first NF or the third NF;

其中,所述第一NF的相关信息包括:第一NF的标识、地址以及会话绑定信息中的至少一项。Wherein, the relevant information of the first NF includes: at least one item of the identifier, address and session binding information of the first NF.

可选地,所述装置还包括:Optionally, the device also includes:

第三发送模块,用于向第一NF发送第一订阅请求,所述第一订阅请求用于订阅用户的PDU会话建立;或者,第二NF向第一NF发送第一指示,所述第一指示用于请求或指示:所述第一NF在PDU会话建立后通知所述第二NF用户的PDU会话建立;The third sending module is configured to send a first subscription request to the first NF, and the first subscription request is used to establish a PDU session of the subscribing user; or, the second NF sends a first indication to the first NF, and the first The indication is used to request or indicate: the first NF notifies the second NF of the user's PDU session establishment after the PDU session is established;

第一接收模块,用于接收第一NF发送的用户的PDU会话建立的通知;The first receiving module is configured to receive the notification of establishment of the user's PDU session sent by the first NF;

第四发送模块,用于在接收到用户的PDU会话建立的通之后,向所述第一NF发送第二订阅请求。The fourth sending module is configured to send a second subscription request to the first NF after receiving the user's PDU session establishment notification.

可选地,所述第一订阅请求或者所述第一指示携带DNN和/或切片标识。Optionally, the first subscription request or the first indication carries a DNN and/or a slice identifier.

可选地,所述第一订阅请求携带第二NF的相关信息;Optionally, the first subscription request carries related information of the second NF;

或者or

所述第一指示携带第二NF的相关信息;The first indication carries related information of the second NF;

其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address.

可选地,在所述第二NF接收到的用户的PDU会话建立的通知为所述第三NF发送的情况下,所述装置还包括:Optionally, when the notification of establishment of the user's PDU session received by the second NF is sent by the third NF, the device further includes:

第五发送模块,用于向所述第三NF发送第三订阅请求,所述第三订阅请求用于订阅用户的PDU会话;A fifth sending module, configured to send a third subscription request to the third NF, where the third subscription request is used to subscribe to the user's PDU session;

第二接收模块,用于接收所述第三NF发送的用户的PDU会话建立的通知。The second receiving module is configured to receive the notification of establishment of the user's PDU session sent by the third NF.

可选地,针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;Optionally, all the policy information for the preset application is created in batches by the AF in the UDR as application data, and the preset application is associated with a specified DNN and a slice identifier;

第二NF针对预设应用的所有用户向UDR订阅策略信息;The second NF subscribes policy information to the UDR for all users of the preset application;

第二NF根据策略信息向第一NF批量订阅PDU会话的业务流状态。The second NF subscribes to the first NF in batches for the service flow status of the PDU session according to the policy information.

需要说明的是,该装置是与上述方法对应的装置,上述方法的所有实现方式均适用于该装置的实施例中,也能达到相同的技术效果。It should be noted that the device is a device corresponding to the above-mentioned method, and all implementation modes of the above-mentioned method are applicable to the embodiments of the device, and can also achieve the same technical effect.

需要说明的是,在本发明的实施例中,订阅用户的PDU会话建立的同时也可以订阅PDU会话的释放和修改。指示用户的PDU会话建立后发送通知的同时也可以指示用户的PDU会话的释放和修改后发送通知。It should be noted that, in the embodiment of the present invention, when the PDU session of the subscribing user is established, the release and modification of the PDU session can also be subscribed to. While instructing the user to send a notification after the PDU session is established, it may also instruct the user to send a notification after the PDU session is released and modified.

订阅用户的SM policy关联建立的同时也可以订阅SM policy关联的释放和修改。指示SM policy关联建立后发送通知的同时也可以指示SM policy关联释放和修改后发送通知。When the SM policy association of the subscribing user is established, the release and modification of the SM policy association can also be subscribed. When instructing the SM policy to send a notification after the association is established, it can also instruct the SM policy to send a notification after the association is released and modified.

本发明的上述实施例中,用户的AM PCF(与接入管理相关的网络功能NF)和SM PCF(与会话管理相关的网络功能NF)都可以访问UDR。AM PCF去SM PCF订阅的信息来自于AMPCF去UDR订阅的AM policy influence request information(属于UDR存储的应用数据,由AF向UDR创建/修改)。SM PCF也同样可以去UDR订阅AM policy influence requestinformation。收到UDR的通之后,生成AM PCF->SM PCF的隐式订阅。由SM PCF向AM PCF发送PDU会话建立的通知,之后由AM PCF向SM PCF订阅业务流状态。当检测到应用数据流的状态后,SM PCF向AM PCF发送通知。AM PCF的通知地址可以是一个默认通知地址,由AM PCF注册给NRF,SM PCF通过去NRF发现获取;也可以SM PCF去UDR订阅(订阅AM PCF订阅事件。)。此外,用户的AM PCF(与接入管理相关的网络功能NF)和SM PCF(与会话管理相关的网络功能NF)之间可以直接交互PCF绑定信息或订阅PDU会话建立或指示SM PCF在PDU会话建立后发送通知。In the above embodiments of the present invention, both the user's AM PCF (network function NF related to access management) and SM PCF (network function NF related to session management) can access the UDR. The information subscribed by AM PCF to SM PCF comes from the AM policy influence request information subscribed by AMPCF to UDR (belonging to the application data stored in UDR, created/modified by AF to UDR). SM PCF can also go to UDR to subscribe to AM policy influence request information. After receiving the UDR notification, an implicit subscription of AM PCF->SM PCF is generated. The SM PCF sends a PDU session establishment notification to the AM PCF, and then the AM PCF subscribes to the SM PCF for service flow status. After detecting the state of the application data flow, the SM PCF sends a notification to the AM PCF. The notification address of the AM PCF can be a default notification address, which is registered by the AM PCF to the NRF, and the SM PCF obtains it by going to the NRF to find out; or the SM PCF can go to the UDR to subscribe (subscribe to AM PCF subscription events.). In addition, the user's AM PCF (network function NF related to access management) and SM PCF (network function NF related to session management) can directly exchange PCF binding information or subscribe to PDU session establishment or instruct SM PCF in PDU Send a notification when a session is established.

通过SM PCF去UDR订阅策略数据后生成隐式订阅,或AM PCF和SM PCF之间的交互避免了接入管理PCF访问BSF和会话管理PCF的流程,减少信令开销。Implicit subscription is generated after the SM PCF removes the UDR subscription policy data, or the interaction between the AM PCF and the SM PCF avoids the process of the access management PCF accessing the BSF and the session management PCF, reducing signaling overhead.

本发明的实施例还提供一种通信设备,包括:处理器、存储有计算机程序的存储器,所述计算机程序被处理器运行时,执行如上所述的方法。上述方法实施例中的所有实现方式均适用于该实施例中,也能达到相同的技术效果。An embodiment of the present invention also provides a communication device, including: a processor, and a memory storing a computer program, and when the computer program is run by the processor, the above-mentioned method is executed. All the implementation manners in the foregoing method embodiments are applicable to this embodiment, and can also achieve the same technical effect.

本发明的实施例还提供一种计算机可读存储介质,包括指令,当所述指令在计算机上运行时,使得计算机执行如上所述的方法。上述方法实施例中的所有实现方式均适用于该实施例中,也能达到相同的技术效果。An embodiment of the present invention also provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the method described above. All the implementation manners in the foregoing method embodiments are applicable to this embodiment, and can also achieve the same technical effect.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本发明所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

此外,需要指出的是,在本发明的装置和方法中,显然,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本发明的等效方案。并且,执行上述系列处理的步骤可以自然地按照说明的顺序按时间顺序执行,但是并不需要一定按照时间顺序执行,某些步骤可以并行或彼此独立地执行。对本领域的普通技术人员而言,能够理解本发明的方法和装置的全部或者任何步骤或者部件,可以在任何计算装置(包括处理器、存储介质等)或者计算装置的网络中,以硬件、固件、软件或者它们的组合加以实现,这是本领域普通技术人员在阅读了本发明的说明的情况下运用他们的基本编程技能就能实现的。In addition, it should be pointed out that in the device and method of the present invention, obviously, each component or each step can be decomposed and/or reassembled. These decompositions and/or recombinations should be considered equivalents of the present invention. Also, the steps for executing the above series of processes can naturally be executed in chronological order according to the illustrated order, but they are not necessarily executed in chronological order, and some steps can be executed in parallel or independently of each other. For those of ordinary skill in the art, it can be understood that all or any steps or components of the method and device of the present invention can be implemented in any computing device (including a processor, storage medium, etc.) or a network of computing devices in the form of hardware or firmware , software or a combination thereof, which can be realized by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

因此,本发明的目的还可以通过在任何计算装置上运行一个程序或者一组程序来实现。所述计算装置可以是公知的通用装置。因此,本发明的目的也可以仅仅通过提供包含实现所述方法或者装置的程序代码的程序产品来实现。也就是说,这样的程序产品也构成本发明,并且存储有这样的程序产品的存储介质也构成本发明。显然,所述存储介质可以是任何公知的存储介质或者将来所开发出来的任何存储介质。还需要指出的是,在本发明的装置和方法中,显然,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本发明的等效方案。并且,执行上述系列处理的步骤可以自然地按照说明的顺序按时间顺序执行,但是并不需要一定按照时间顺序执行。某些步骤可以并行或彼此独立地执行。Therefore, the object of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device may be a known general-purpose device. Therefore, the object of the present invention can also be achieved only by providing a program product including program codes for realizing the method or device. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium may be any known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, obviously, each component or each step can be decomposed and/or reassembled. These decompositions and/or recombinations should be considered equivalents of the present invention. Also, the steps for performing the above series of processes may naturally be performed in chronological order in the order described, but need not necessarily be performed in chronological order. Certain steps may be performed in parallel or independently of each other.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (42)

1.一种状态订阅通知的方法,其特征在于,包括:1. A method for status subscription notification, comprising: 第一网络功能NF根据策略信息触发对业务流进行检测;The first network function NF triggers the detection of the service flow according to the policy information; 所述第一NF向第二NF通知业务流起始和结束。The first NF notifies the second NF of the start and end of the service flow. 2.根据权利要求1所述的状态订阅通知的方法,其特征在于,所述第一NF根据策略信息触发对业务流进行检测,包括:2. The method for status subscription notification according to claim 1, wherein the first NF triggers detection of service flow according to policy information, including: 第一NF向统一数据仓库功能UDR订阅策略信息,接收到UDR通知的策略信息后,对用户的协议数据单元PDU会话的业务流进行检测。The first NF subscribes policy information to the unified data warehouse function UDR, and after receiving the policy information notified by the UDR, detects the service flow of the user's protocol data unit PDU session. 3.根据权利要求2所述的状态订阅通知的方法,其特征在于,3. The method for status subscription notification according to claim 2, characterized in that, 第一NF在用户的协议数据单元PDU会话建立后,第一NF向UDR订阅策略信息,接收到UDR通知的策略信息后,对用户的PDU会话的业务流进行检测。After the user's protocol data unit PDU session is established, the first NF subscribes to the UDR for policy information, and after receiving the policy information notified by the UDR, detects the service flow of the user's PDU session. 4.根据权利要求1所述的状态订阅通知的方法,其特征在于,所述第一NF根据策略信息触发对业务流进行检测,包括:4. The method for status subscription notification according to claim 1, wherein the first NF triggers the detection of service flows according to policy information, including: 所述第一NF接收第二NF发送的订阅请求,所述订阅请求用于订阅用户的PDU会话建立;The first NF receives the subscription request sent by the second NF, and the subscription request is used for establishing a PDU session of the subscribing user; 所述第一NF根据所述订阅请求,获得策略信息,根据策略信息对用户的协议数据单元PDU会话的业务流进行检测。The first NF obtains policy information according to the subscription request, and detects the service flow of the user's protocol data unit PDU session according to the policy information. 5.根据权利要求1所述的状态订阅通知的方法,其特征在于,所述第一NF根据策略信息触发对业务流进行检测,包括:5. The method for status subscription notification according to claim 1, wherein the first NF triggers the detection of service flows according to policy information, comprising: 第一NF接收第二NF发送的第二订阅请求,所述第二订阅请求用于订阅业务流状态;The first NF receives a second subscription request sent by the second NF, and the second subscription request is used for subscribing to a service flow state; 第一NF在接收到所述第二订阅请求的情况下,触发对业务流进行检测;In the case of receiving the second subscription request, the first NF triggers detection of the service flow; 其中,所述第二订阅请求是第二NF确认用户的PDU会话建立的之后发送的。Wherein, the second subscription request is sent after the second NF confirms that the user's PDU session is established. 6.根据权利要求5所述的状态订阅通知的方法,其特征在于,在所述第二NF接收到用户的PDU会话建立的通知,或者所述第二NF接收到第一NF的相关信息的情况下,确认用户的PDU会话建立;6. The method for status subscription notification according to claim 5, characterized in that, when the second NF receives the notification of the establishment of the user's PDU session, or the second NF receives the relevant information of the first NF In the case, confirm that the user's PDU session is established; 其中,所述第一NF的相关信息包括:第一NF的标识、地址以及会话绑定信息中的至少一项。Wherein, the relevant information of the first NF includes: at least one item of the identifier, address and session binding information of the first NF. 7.根据权利要求6所述的状态订阅通知的方法,其特征在于,所述第二NF接收到的用户的PDU会话建立的通知,为所述第一NF发送或者为第三NF发送。7. The method for status subscription notification according to claim 6, characterized in that, the notification of establishment of the user's PDU session received by the second NF is sent by the first NF or by a third NF. 8.根据权利要求6所述的状态订阅通知的方法,其特征在于,所述第二NF接收到第一NF的相关信息,为所述第一NF或第三NF发送。8. The method for status subscription notification according to claim 6, wherein the second NF receives the relevant information of the first NF and sends it for the first NF or the third NF. 9.根据权利要求1或7所述的状态订阅通知的方法,其特征在于,所述第一NF根据策略信息触发对业务流进行检测,包括:9. The method for status subscription notification according to claim 1 or 7, wherein the first NF triggers detection of service flows according to policy information, including: 第一NF接收第二NF发送的第一订阅请求,所述第一订阅请求用于订阅用户的PDU会话建立;The first NF receives the first subscription request sent by the second NF, and the first subscription request is used for establishing a PDU session of the subscribing user; 或者,第一NF接收第二NF发送的第一指示,所述第一指示用于请求或指示:所述第一NF在PDU会话建立后通知所述第二NF用户的PDU会话建立;Or, the first NF receives the first indication sent by the second NF, and the first indication is used for requesting or indicating: the first NF notifies the second NF of the user's PDU session establishment after the PDU session is established; 所述第一NF在用户的PDU会话建立后,通知第二NF,由第二NF向第一NF发送第二订阅请求,所述第二订阅请求用于订阅所述PDU会话的业务流状态,所述第一NF根据所述第二订阅请求对用户的PDU会话的业务流进行检测。After the user's PDU session is established, the first NF notifies the second NF, and the second NF sends a second subscription request to the first NF, and the second subscription request is used to subscribe to the service flow status of the PDU session, The first NF detects the service flow of the user's PDU session according to the second subscription request. 10.根据权利要求9所述的状态订阅通知的方法,其特征在于,所述第一订阅请求或者所述第一指示携带DNN和/或切片标识。10. The method for status subscription notification according to claim 9, wherein the first subscription request or the first indication carries a DNN and/or a slice identifier. 11.根据权利要求9所述的状态订阅通知的方法,其特征在于,11. The method for status subscription notification according to claim 9, characterized in that, 所述第一订阅请求携带第二NF的相关信息;The first subscription request carries relevant information of the second NF; 或者or 所述第一指示携带第二NF的相关信息;The first indication carries related information of the second NF; 其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address. 12.根据权利要求9所述的状态订阅通知的方法,其特征在于,所述方法还包括:12. The method for status subscription notification according to claim 9, wherein the method further comprises: 第一NF在用户的PDU会话建立后,向UDR订阅策略信息;After the user's PDU session is established, the first NF subscribes the policy information to the UDR; 第一NF在用户的PDU会话建立后,通知第二NF,包括:After the user's PDU session is established, the first NF notifies the second NF, including: 在接收到UDR通知的策略信息后,向所述第二NF发送通知消息,所述通知消息用于通知所述第二NF用户的PDU会话建立。After receiving the policy information notified by the UDR, send a notification message to the second NF, where the notification message is used to notify the second NF of the establishment of the PDU session of the user. 13.根据权利要求12所述的状态订阅通知的方法,其特征在于,在接收到UDR通知的策略信息后,向所述第二NF发送通知消息之前,所述方法还包括:13. The method for status subscription notification according to claim 12, characterized in that, after receiving the policy information of the UDR notification, before sending a notification message to the second NF, the method further comprises: 确定第二NF。Determine the second NF. 14.根据权利要求13所述的状态订阅通知的方法,其特征在于,所述确定第二NF,包括:14. The method for status subscription notification according to claim 13, wherein said determining the second NF comprises: 第一NF根据用户的信息或标识,查询具有第二NF的相关信息的绑定支持功能BSF,确定第二NF;The first NF queries the binding support function BSF with the relevant information of the second NF according to the user's information or identification, and determines the second NF; 其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address. 15.根据权利要求13所述的状态订阅通知的方法,其特征在于,所述确定第二NF,包括:15. The method for status subscription notification according to claim 13, wherein said determining the second NF comprises: 第一NF根据用户的信息或标识,从UDR获取所述第二NF的相关信息,确定所述第二NF;The first NF obtains the relevant information of the second NF from the UDR according to the user's information or identifier, and determines the second NF; 其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address. 16.根据权利要求13所述的状态订阅通知的方法,其特征在于,所述确定第二NF,包括:16. The method for status subscription notification according to claim 13, wherein said determining the second NF comprises: 接收UDR通知策略信息时携带的所述第二NF的相关信息,确定所述第二NF;receiving the relevant information of the second NF carried when the UDR notifies the policy information, and determining the second NF; 其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address. 17.根据权利要求7所述的状态订阅通知的方法,其特征在于,在所述第二NF接收到的用户的PDU会话建立的通知为所述第三NF发送的情况下,所述用户的PDU会话建立的通知为所述第二NF向所述第三NF订阅。17. The method for state subscription notification according to claim 7, characterized in that, when the notification of the user's PDU session establishment received by the second NF is sent by the third NF, the user's The notification of PDU session establishment is that the second NF subscribes to the third NF. 18.根据权利要求2所述的状态订阅通知的方法,其特征在于,所述第一NF向第二NF通知业务流起始和结束,包括:18. The method for status subscription notification according to claim 2, wherein the first NF notifies the second NF of the start and end of the service flow, comprising: 第一NF根据用户的信息/标识,查询有第二NF信息/标识/地址的会话绑定支持功能BSF,确定第二NF;According to the information/identification of the user, the first NF queries the session binding support function BSF with the information/identification/address of the second NF, and determines the second NF; 所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end. 19.根据权利要求2所述的状态订阅通知的方法,其特征在于,所述第一NF向第二NF通知业务流起始和结束,包括:19. The method for status subscription notification according to claim 2, wherein the first NF notifies the second NF of the start and end of the service flow, comprising: 第一NF根据用户的信息/标识,查询有第二NF信息/标识/地址的存储功能NRF,确定第二NF;According to the information/identification of the user, the first NF queries the storage function NRF with the information/identification/address of the second NF, and determines the second NF; 所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end. 20.根据权利要求4所述的状态订阅通知的方法,其特征在于,所述第一NF向第二NF通知业务流起始和结束,包括:20. The method for status subscription notification according to claim 4, wherein the first NF notifies the second NF of the start and end of the service flow, comprising: 第一NF根据第二NF的订阅请求确定第二NF;The first NF determines the second NF according to the subscription request of the second NF; 所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end. 21.根据权利要求9所述的状态订阅通知的方法,其特征在于,所述第一NF向第二NF通知业务流起始和结束,包括:21. The method for status subscription notification according to claim 9, wherein the first NF notifies the second NF of the start and end of the service flow, comprising: 第一NF根据所述第二订阅请求,确定第二NF;The first NF determines a second NF according to the second subscription request; 所述第一NF向所述第二NF通知业务流起始和结束。The first NF notifies the second NF of a service flow start and end. 22.根据权利要求1所述的状态订阅通知的方法,其特征在于,22. The method for status subscription notification according to claim 1, characterized in that, 针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;All policy information for the preset application is created in batches by AF in UDR as application data, and the preset application is associated with a specified DNN and a slice identifier; 第一NF针对预设应用的所有用户向UDR订阅策略信息;The first NF subscribes policy information to the UDR for all users of the preset application; 根据策略信息对指定DNN和切片标识关联的应用的会话的业务流进行检测。Detect the service flow of the session of the application associated with the specified DNN and the slice identifier according to the policy information. 23.根据权利要求1所述的状态订阅通知的方法,其特征在于,23. The method for status subscription notification according to claim 1, wherein: 针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;All policy information for the preset application is created in batches by AF in UDR as application data, and the preset application is associated with a specified DNN and a slice identifier; PDU会话的业务流状态为所述第二NF根据策略信息批量向所述第一NF订阅,所述第一NF根据策略信息对指定DNN和切片标识关联的应用的会话的业务流进行检测;The service flow state of the PDU session is that the second NF subscribes to the first NF in batches according to the policy information, and the first NF detects the service flow of the session of the application associated with the specified DNN and the slice identifier according to the policy information; 其中,所述策略信息为所述第二NF针对预设应用的所有用户向UDR订阅的策略信息。Wherein, the policy information is the policy information that the second NF subscribes to the UDR for all users of the preset application. 24.根据权利要求1至23任一项所述的状态订阅通知的方法,其特征在于,所述第一NF以及第二NF均为策略控制功能PCF,所述第一NF与会话管理相关,所述第二NF与接入管理相关。24. The method for status subscription notification according to any one of claims 1 to 23, wherein the first NF and the second NF are policy control functions (PCFs), and the first NF is related to session management, The second NF is related to access management. 25.一种状态订阅通知的方法,其特征在于,包括:25. A method for status subscription notification, comprising: 第二NF接收第一NF发送的业务流起始和结束的通知;The second NF receives the notification of the start and end of the service flow sent by the first NF; 其中,所述第一NF根据策略信息触发对业务流进行检测。Wherein, the first NF triggers the detection of the service flow according to the policy information. 26.根据权利要求25所述的状态订阅通知的方法,其特征在于,所述方法还包括:26. The method for status subscription notification according to claim 25, wherein the method further comprises: 第二NF向UDR订阅策略信息;The second NF subscribes policy information to the UDR; 在接收到UDR通知的策略信息后,将所述第二NF的相关信息写入所述UDR;After receiving the policy information notified by the UDR, write the relevant information of the second NF into the UDR; 其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address. 27.根据权利要求25所述的状态订阅通知的方法,其特征在于,所述方法还包括:27. The method for status subscription notification according to claim 25, further comprising: 向第一NF发送订阅请求,所述订阅请求用于订阅用户的PDU会话建立。A subscription request is sent to the first NF, where the subscription request is used for establishing a PDU session of the subscribing user. 28.根据权利要求25所述的状态订阅通知的方法,其特征在于,所述方法还包括:28. The method for status subscription notification according to claim 25, further comprising: 第二NF在确认用户的PDU会话建立之后,向第一NF发送第二订阅请求,所述第二订阅请求用于订阅业务流状态。After confirming that the PDU session of the user is established, the second NF sends a second subscription request to the first NF, where the second subscription request is used for subscribing to a service flow state. 29.根据权利要求28所述的状态订阅通知的方法,其特征在于,29. The method for status subscription notification according to claim 28, characterized in that, 在所述第二NF接收到用户的PDU会话建立的通知,或者所述第二NF接收到第一NF的标识或地址或会话绑定信息的情况下,确认用户的PDU会话建立。When the second NF receives the notification of the establishment of the user's PDU session, or the second NF receives the identifier or address of the first NF or the session binding information, confirm the establishment of the user's PDU session. 30.根据权利要求29所述的状态订阅通知的方法,其特征在于,所述第二NF接收到的用户的PDU会话建立的通知,为所述第一NF发送或者为第三NF发送。30. The method for status subscription notification according to claim 29, wherein the notification of establishment of the user's PDU session received by the second NF is sent by the first NF or by a third NF. 31.根据权利要求29所述的状态订阅通知的方法,其特征在于,所述第二NF接收到第一NF的相关信息,为所述第一NF或第三NF发送;31. The method for status subscription notification according to claim 29, wherein the second NF receives the relevant information of the first NF and sends it for the first NF or the third NF; 其中,所述第一NF的相关信息包括:第一NF的标识、地址以及会话绑定信息中的至少一项。Wherein, the relevant information of the first NF includes: at least one item of the identifier, address and session binding information of the first NF. 32.根据权利要求25或30所述的状态订阅通知的方法,其特征在于,所述方法还包括:32. The method for status subscription notification according to claim 25 or 30, wherein the method further comprises: 第二NF向第一NF发送第一订阅请求,所述第一订阅请求用于订阅用户的PDU会话建立;或者,第二NF向第一NF发送第一指示,所述第一指示用于请求或指示:所述第一NF在PDU会话建立后通知所述第二NF用户的PDU会话建立;The second NF sends a first subscription request to the first NF, and the first subscription request is used to establish a PDU session of the subscribing user; or, the second NF sends a first indication to the first NF, and the first indication is used to request Or indicate: the first NF notifies the second NF of the user's PDU session establishment after the PDU session is established; 第二NF接收第一NF发送的用户的PDU会话建立的通知;The second NF receives the notification of the establishment of the user's PDU session sent by the first NF; 第二NF在接收到用户的PDU会话建立的通之后,向所述第一NF发送第二订阅请求。The second NF sends a second subscription request to the first NF after receiving the user's PDU session establishment notification. 33.根据权利要求32所述的状态订阅通知的方法,其特征在于,所述第一订阅请求或者所述第一指示携带DNN和/或切片标识。33. The method for status subscription notification according to claim 32, wherein the first subscription request or the first indication carries a DNN and/or a slice identifier. 34.根据权利要求32所述的状态订阅通知的方法,其特征在于,所述第一订阅请求携带第二NF的相关信息;34. The method for status subscription notification according to claim 32, wherein the first subscription request carries relevant information of the second NF; 或者or 所述第一指示携带第二NF的相关信息;The first indication carries related information of the second NF; 其中,所述第二NF的相关信息包括:第二NF信息、第二NF标识以及第二NF地址中的至少一项。Wherein, the relevant information of the second NF includes: at least one item of second NF information, second NF identifier, and second NF address. 35.根据权利要求30所述的状态订阅通知的方法,其特征在于,在所述第二NF接收到的用户的PDU会话建立的通知为所述第三NF发送的情况下,所述方法还包括:35. The method for status subscription notification according to claim 30, characterized in that, when the notification of the user's PDU session establishment received by the second NF is sent by the third NF, the method further includes include: 第二NF向所述第三NF发送第三订阅请求,所述第三订阅请求用于订阅用户的PDU会话建立;The second NF sends a third subscription request to the third NF, and the third subscription request is used to establish a PDU session of the subscribing user; 第二NF接收所述第三NF发送的用户的PDU会话建立的通知。The second NF receives the notification of establishment of the user's PDU session sent by the third NF. 36.根据权利要求25所述的状态订阅通知的方法,其特征在于,36. The method for status subscription notification according to claim 25, wherein: 针对预设应用的所有策略信息作为应用数据在UDR被AF批量创建,所述预设应用用指定DNN和切片标识关联;All policy information for the preset application is created in batches by AF in UDR as application data, and the preset application is associated with a specified DNN and a slice identifier; 第二NF针对预设应用的所有用户向UDR订阅策略信息;The second NF subscribes policy information to the UDR for all users of the preset application; 第二NF根据策略信息向第一NF批量订阅PDU会话的业务流状态。The second NF subscribes to the first NF in batches for the service flow status of the PDU session according to the policy information. 37.一种状态订阅通知的装置,其特征在于,应用于第一网络功能NF,包括:37. A device for status subscription notification, characterized in that it is applied to the first network function NF, comprising: 处理模块,用于根据策略信息触发对业务流进行检测;A processing module, configured to trigger detection of service flows according to policy information; 收发模块,用于向第二NF通知业务流起始和结束。The transceiver module is configured to notify the second NF of the start and end of the service flow. 38.一种网络功能NF,其特征在于,包括如权利要求37所述的装置。38. A network function NF, comprising the device according to claim 37. 39.一种状态订阅通知的装置,其特征在于,应用于第二网络功能NF,包括:39. A device for status subscription notification, characterized in that it is applied to the second network function NF, comprising: 收发模块,用于接收第一NF发送的业务流起始和结束的通知;A transceiver module, configured to receive the notification of the start and end of the service flow sent by the first NF; 其中,所述第一NF根据策略信息触发对业务流进行检测。Wherein, the first NF triggers the detection of the service flow according to the policy information. 40.一种网络功能NF,其特征在于,包括如权利要求39所述的装置。40. A network function NF, comprising the device according to claim 39. 41.一种通信设备,其特征在于,包括:处理器、存储有计算机程序的存储器,所述计算机程序被处理器运行时,执行如权利要求1至36任一项所述的方法。41. A communication device, characterized by comprising: a processor and a memory storing a computer program, and when the computer program is run by the processor, the method according to any one of claims 1 to 36 is executed. 42.一种计算机可读存储介质,其特征在于,存储指令,当所述指令在计算机上运行时,使得计算机执行如权利要求1至36任一项所述的方法。42. A computer-readable storage medium, characterized by storing instructions, and when the instructions are run on a computer, the computer is made to execute the method according to any one of claims 1 to 36.
CN202110866888.7A 2021-05-10 2021-07-29 Method, device and device for status subscription notification Pending CN115334493A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110507876 2021-05-10
CN2021105078765 2021-05-10

Publications (1)

Publication Number Publication Date
CN115334493A true CN115334493A (en) 2022-11-11

Family

ID=83912280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110866888.7A Pending CN115334493A (en) 2021-05-10 2021-07-29 Method, device and device for status subscription notification

Country Status (1)

Country Link
CN (1) CN115334493A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116347467A (en) * 2023-03-03 2023-06-27 广州爱浦路网络技术有限公司 Method and system for user data management by UDR in 5G network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951824A (en) * 2018-04-09 2019-06-28 华为技术有限公司 Communication means and device
CN110831070A (en) * 2018-08-13 2020-02-21 华为技术有限公司 Method for processing service flow, communication method and device
CN111726839A (en) * 2019-03-19 2020-09-29 华为技术有限公司 A method and device for network slice selection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951824A (en) * 2018-04-09 2019-06-28 华为技术有限公司 Communication means and device
CN110831070A (en) * 2018-08-13 2020-02-21 华为技术有限公司 Method for processing service flow, communication method and device
CN111726839A (en) * 2019-03-19 2020-09-29 华为技术有限公司 A method and device for network slice selection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NOKIA: "用于5GC中动态改变AM策略的多PCF架构", 《SA WG2 MEETING#S2-138E S2-2003140》, 11 April 2020 (2020-04-11), pages 3 - 6 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116347467A (en) * 2023-03-03 2023-06-27 广州爱浦路网络技术有限公司 Method and system for user data management by UDR in 5G network
CN116347467B (en) * 2023-03-03 2023-12-15 广州爱浦路网络技术有限公司 UDR user data management method and system in 5G network

Similar Documents

Publication Publication Date Title
CN109548098B (en) Session processing method and related equipment
US20240422520A1 (en) Event notification method, apparatus and storage medium
JP5714662B2 (en) Diagnostic monitoring with wireless devices
CN112788085B (en) Data caching method and device
US11251981B2 (en) Communication method and apparatus
CN112600693B (en) Service request processing method, system, electronic equipment and computer storage medium
AU2021383892B2 (en) Switching processing method and apparatus, and communication device
CN115299021B (en) Exposure and discovery of distributed network functions serving user equipment or PDU sessions
WO2019042321A1 (en) Method and apparatus for separating management data of network section sub-network instances
EP4030795A1 (en) Method for reporting network api capabilities, apparatus and system
US20220329986A1 (en) Multicast service implementation method and apparatus, and communications device
CN115334493A (en) Method, device and device for status subscription notification
US20240298196A1 (en) Methods and Apparatuses for Enhanced 5GC Restoration When a Network Function (NF) Set is Deployed in the Network
CN101686223B (en) Feedback method of content filtering and device
EP3570585B1 (en) Stickiness removal of transactions in a 5g network
CN112584448A (en) Method, device, terminal, system and readable storage medium for keeping resource consistency
CN116321110B (en) Service subscription method, device, service providing network element and storage medium
KR102835676B1 (en) Event notification method and device, and storage medium
WO2023066398A1 (en) Session information subscription method and apparatus, and device
CN116033593A (en) A method, device and equipment for subscribing to session information
WO2024055815A1 (en) Edge psa management method, and electronic device and computer-readable medium
CN117528482A (en) Session binding information acquisition method, system and storage medium
CN117460006A (en) Session establishment method, terminal device, network side device and storage medium
CN119255362A (en) A communication method and device, separation architecture, network equipment, computer medium and program product
CN119012367A (en) Method and device for matching terminal capability with frequency selection service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination