Movatterモバイル変換


[0]ホーム

URL:


CN112583873B - Service discovery method, device and functional network element - Google Patents

Service discovery method, device and functional network element
Download PDF

Info

Publication number
CN112583873B
CN112583873BCN201910940254.4ACN201910940254ACN112583873BCN 112583873 BCN112583873 BCN 112583873BCN 201910940254 ACN201910940254 ACN 201910940254ACN 112583873 BCN112583873 BCN 112583873B
Authority
CN
China
Prior art keywords
service discovery
service
discovery
processes
different
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.)
Active
Application number
CN201910940254.4A
Other languages
Chinese (zh)
Other versions
CN112583873A (en
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 LtdfiledCriticalChina Mobile Communications Group Co Ltd
Priority to CN201910940254.4ApriorityCriticalpatent/CN112583873B/en
Priority to PCT/CN2020/116459prioritypatent/WO2021063204A1/en
Publication of CN112583873ApublicationCriticalpatent/CN112583873A/en
Application grantedgrantedCritical
Publication of CN112583873BpublicationCriticalpatent/CN112583873B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention provides a service discovery method, a service discovery device and a functional network element. The method comprises the following steps: sending a service discovery request to a service discovery function; the service discovery request comprises service discovery parameters and service discovery judgment conditions used for at least two service discovery processes; and receiving a service discovery response returned by the service discovery function. In the method, the service user network function sends the service discovery parameters and the service discovery judgment conditions of at least two service discovery processes to the service discovery function through one service discovery request, so that interaction can be carried out between the one service discovery request and the service discovery function to determine the target network function, and the problems of low efficiency and processing delay caused by the fact that multiple request interaction between the service user network function and the service discovery function is usually required in the conventional service discovery process are solved.

Description

Translated fromChinese
服务发现方法、装置及功能网元Service discovery method, device and functional network element

技术领域technical field

本发明涉及无线技术领域,尤其是指一种服务发现方法、装置及功能网元。The present invention relates to the field of wireless technology, and in particular, to a service discovery method, device and functional network element.

背景技术Background technique

目前无线通讯技术中,常规的服务发现过程通常需要服务使用者网络功能与服务发现功能之间的多次请求交互,造成效率低下和处理延时。In the current wireless communication technology, the conventional service discovery process usually requires multiple request interactions between the service user's network function and the service discovery function, resulting in low efficiency and processing delay.

举例说明,省间漫游场景下的会话管理功能(Session Management Function,SMF)选择过程中,省间漫游会发生跨接入和移动性管理功能(Core Access and MobilityManagement Function,AMF)的用户位置更新,不同省的跟踪区标识列表(Tracking Areaidentity list,TAI list)不同,省际漫游场景下,用户的TAI改变,登记的AMF改变。此外,归属省的SMF不能继续为用户服务,需要在漫游省为用户选择一个新的SMF。For example, in the process of selecting the Session Management Function (SMF) in the inter-provincial roaming scenario, the user location update across the Core Access and Mobility Management Function (AMF) will occur in inter-provincial roaming. Different provinces have different Tracking Areaidentity lists (TAI lists). In the inter-provincial roaming scenario, the user's TAI changes and the registered AMF changes. In addition, the SMF in the home province cannot continue to serve the user, and a new SMF needs to be selected for the user in the roaming province.

现有技术新AMF需要进行两次服务发现才能选择新的SMF,第一次服务发现获取为用户提供服务的归属地SMF的网络功能文件(Network Function,NF)profile,将NFprofile中的TAI list与用户所在跟踪区(Tracking Area,TA)进行比对,从而发起第二次服务发现。通过第二次服务发现才能在漫游省为用户选择一个新的SMF。In the prior art, a new AMF needs to perform two service discoveries to select a new SMF. The first service discovery obtains the network function file (Network Function, NF) profile of the home SMF that provides services for the user, and compares the TAI list in the NFprofile with the The tracking area (TA) where the user is located is compared to initiate a second service discovery. Only through the second service discovery can a new SMF be selected for the user in the roaming province.

上述过程使得SMF的发现过程效率较低,造成时延增加。The above process makes the SMF discovery process inefficient, resulting in increased delay.

发明内容SUMMARY OF THE INVENTION

本发明技术方案的目的在于提供一种服务发现方法、装置及功能网元,用于解决常规的服务发现过程通常需要服务使用者网络功能与服务发现功能之间的多次请求交互,造成效率低下和处理延时的问题。The purpose of the technical solution of the present invention is to provide a service discovery method, device and functional network element, which are used to solve the problem that the conventional service discovery process usually requires multiple request interactions between the service user network function and the service discovery function, resulting in low efficiency. and dealing with delays.

本发明实施例提供一种服务发现方法,应用于服务使用者网络功能,其中,所述方法包括:An embodiment of the present invention provides a service discovery method, which is applied to a service user network function, wherein the method includes:

向服务发现功能发送服务发现请求;Send a service discovery request to the service discovery function;

其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

接收服务发现功能返回的服务发现响应。Receive the service discovery response returned by the service discovery function.

可选地,所述的服务发现方法,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, in the service discovery method, the at least two service discovery processes are both discovery processes for the service provider network function of the same service, and the at least two service discovery processes are respectively different services In the discovery process, the service discovery parameters of different service discovery processes are different.

可选地,所述的服务发现方法,其中,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the service discovery method, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

可选地,所述的服务发现方法,其中,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, the service discovery method, wherein when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所述的服务发现方法,其中,所述服务发现判断条件为条件语句或条件表达式。Optionally, in the service discovery method, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,所述的服务发现方法,其中,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the service discovery method, the conditional statement and/or the conditional expression are logically nested.

本发明实施例还提供一种服务发现方法,应用于服务发现功能,其中,所述方法包括:An embodiment of the present invention further provides a service discovery method, which is applied to a service discovery function, wherein the method includes:

接收服务使用者网络功能发送的服务发现请求;其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Receive a service discovery request sent by a service user network function; wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

向所述服务使用者网络功能返回所述服务发现请求的服务发现响应。A service discovery response to the service discovery request is returned to the service consumer network function.

可选地,所述的服务发现方法,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, in the service discovery method, the at least two service discovery processes are both discovery processes for the service provider network function of the same service, and the at least two service discovery processes are respectively different services In the discovery process, the service discovery parameters of different service discovery processes are different.

可选地,所述的服务发现方法,其中,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the service discovery method, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

可选地,所述的服务发现方法,其中,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, the service discovery method, wherein when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所述的服务发现方法,其中,所述服务发现判断条件为条件语句或条件表达式。Optionally, in the service discovery method, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,所述的服务发现方法,其中,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the service discovery method, the conditional statement and/or the conditional expression are logically nested.

本发明实施例还提供一种功能网元,用于服务使用者网络功能,包括收发器,其中,所述收发器用于:An embodiment of the present invention further provides a functional network element for serving user network functions, including a transceiver, wherein the transceiver is used for:

向服务发现功能发送服务发现请求;Send a service discovery request to the service discovery function;

其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

接收服务发现功能返回的服务发现响应。Receive the service discovery response returned by the service discovery function.

可选地,所述的功能网元,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, in the functional network element, the at least two service discovery processes are both discovery processes of service provider network functions for the same service, and the at least two service discovery processes are respectively different services In the discovery process, the service discovery parameters of different service discovery processes are different.

可选地,所述的功能网元,其中,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the functional network element, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

可选地,所述的功能网元,其中,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, in the functional network element, when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所述的功能网元,其中,所述服务发现判断条件为条件语句或条件表达式。Optionally, in the functional network element, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,所述的功能网元,其中,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the functional network element, the conditional statement and/or the conditional expression is logically nested.

本发明实施例还提供一种功能网元,用于服务发现功能,包括收发器,其中,所述收发器用于:An embodiment of the present invention further provides a functional network element for a service discovery function, including a transceiver, wherein the transceiver is used for:

接收服务使用者网络功能发送的服务发现请求;其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Receive a service discovery request sent by a service user network function; wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

向所述服务使用者网络功能返回所述服务发现请求的服务发现响应。A service discovery response to the service discovery request is returned to the service consumer network function.

可选地,所述的功能网元,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, in the functional network element, the at least two service discovery processes are both discovery processes of service provider network functions for the same service, and the at least two service discovery processes are respectively different services In the discovery process, the service discovery parameters of different service discovery processes are different.

可选地,所述的功能网元,其中,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the functional network element, the service discovery judgment condition is used to indicate a logical rule for the service discovery function to analyze the service discovery parameter.

可选地,所述的功能网元,其中,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, in the functional network element, when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所述的功能网元,其中,所述服务发现判断条件为条件语句或条件表达式。Optionally, in the functional network element, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,所述的功能网元,其中,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the functional network element, the conditional statement and/or the conditional expression is logically nested.

本发明实施例还提供一种服务发现装置,应用于服务使用者网络功能,其中,所述装置包括:An embodiment of the present invention further provides a service discovery apparatus, which is applied to a service user network function, wherein the apparatus includes:

请求发送模块,用于向服务发现功能发送服务发现请求;The request sending module is used to send a service discovery request to the service discovery function;

其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

响应接收模块,用于接收服务发现功能返回的服务发现响应。The response receiving module is used to receive the service discovery response returned by the service discovery function.

本发明实施例还提供一种服务发现装置,应用于服务发现功能,其中,所述装置包括:An embodiment of the present invention further provides a service discovery apparatus, which is applied to a service discovery function, wherein the apparatus includes:

请求接收模块,用于接收服务使用者网络功能发送的服务发现请求;其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;a request receiving module, configured to receive a service discovery request sent by a service user network function; wherein the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

响应发送模块,用于向所述服务使用者网络功能返回所述服务发现请求的服务发现响应。A response sending module, configured to return a service discovery response of the service discovery request to the service user network function.

本发明实施例还提供一种功能网元,其中,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如上任一项所述的服务发现方法。An embodiment of the present invention further provides a functional network element, including: a processor, a memory, and a program stored in the memory and executable on the processor, and the program is implemented when executed by the processor The service discovery method as described in any of the above.

本发明实施例还提供一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一项所述的服务发现方法中的步骤。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements any of the service discovery methods described above. A step of.

本发明上述技术方案中的至少一个具有以下有益效果:At least one of the above-mentioned technical solutions of the present invention has the following beneficial effects:

本发明实施例所述服务发现方法,服务使用者网络功能将至少两次服务发现过程的服务发现参数和服务发现判断条件,通过一次服务发现请求发送至服务发现功能,以能够通过一次服务发现请求与服务发现功能进行交互,确定出目标网络功能,解决常规的服务发现过程通常需要服务使用者网络功能与服务发现功能之间的多次请求交互,造成效率低下和处理延时的问题。In the service discovery method according to the embodiment of the present invention, the service user network function sends the service discovery parameters and service discovery judgment conditions of at least two service discovery processes to the service discovery function through a service discovery request, so as to be able to pass a service discovery request Interact with the service discovery function to determine the target network function, and solve the problem of low efficiency and processing delay that the conventional service discovery process usually requires multiple request interactions between the service user network function and the service discovery function.

附图说明Description of drawings

图1为本发明实施例所述服务发现方法所应用无线通讯系统的交互流程图;1 is an interaction flow diagram of a wireless communication system to which the service discovery method according to an embodiment of the present invention is applied;

图2为本发明其中一实施例所述服务发现方法的流程示意图;FIG. 2 is a schematic flowchart of a service discovery method according to an embodiment of the present invention;

图3为采用本发明实施例第一实施方式所述服务发现方法的交互流程示意图;3 is a schematic diagram of an interaction flow using the service discovery method according to the first embodiment of the embodiment of the present invention;

图4为图3中其中一实施过程的详细流程图;Fig. 4 is a detailed flow chart of one of the implementation processes in Fig. 3;

图5为图3中另一实施过程的详细流程图;Fig. 5 is a detailed flow chart of another implementation process in Fig. 3;

图6为图4或图5实施例的现有技术流程示意图;FIG. 6 is a schematic flowchart of the prior art of the embodiment of FIG. 4 or FIG. 5;

图7为本发明另一实施例所述服务发现方法的流程示意图;7 is a schematic flowchart of a service discovery method according to another embodiment of the present invention;

图8为本发明其中一实施例所述功能网元的结构示意图;FIG. 8 is a schematic structural diagram of a functional network element according to an embodiment of the present invention;

图9为本发明另一实施例所述功能网元的结构示意图;FIG. 9 is a schematic structural diagram of a functional network element according to another embodiment of the present invention;

图10为本发明其中一实施例所述服务发现装置的结构示意图;FIG. 10 is a schematic structural diagram of the service discovery apparatus according to an embodiment of the present invention;

图11为本发明另一实施例所述服务发现装置的结构示意图;FIG. 11 is a schematic structural diagram of a service discovery apparatus according to another embodiment of the present invention;

图12为本发明其中一实施例所述功能网元的结构示意图;FIG. 12 is a schematic structural diagram of a functional network element according to an embodiment of the present invention;

图13为本发明另一实施例所述功能网元的结构示意图;13 is a schematic structural diagram of a functional network element according to another embodiment of the present invention;

图14为本发明实施例第二实施方式所述服务发现方法的交互流程示意图;14 is a schematic diagram of an interaction flow of the service discovery method according to the second embodiment of the embodiment of the present invention;

图15为图14所示实施方式的现有技术流程示意图。FIG. 15 is a schematic flowchart of the prior art of the embodiment shown in FIG. 14 .

具体实施方式Detailed ways

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, detailed description will be given below with reference to the accompanying drawings and specific embodiments.

本发明实施例所述服务发现方法,应用于5GC的服务化架构中的服务注册和发现机制。如图1所示,采用本发明实施例所服务发现方法的无线通讯系统的交互流程图,该无线通讯系统可以包括服务使用者网络功能(Network Function,NF)和服务发现功能。其中,服务发现功能通常称之为网络仓储功能(Network Repository Function,NRF)。其中,服务使用者NF向服务发现功能进行服务注册,登记自己提供的所有服务以及相关信息,其中包含服务使用者发现该NF所需要的信息;进一步,结合图1所示,服务使用者NF向服务发现功能发送NF服务发现请求,通过服务发现功能(也即为NRF)确认需要调用的具体服务(与上层应用的业务流程相关)的服务提供者NF,并向服务使用者NF返回NF服务发现响应消息。The service discovery method according to the embodiment of the present invention is applied to the service registration and discovery mechanism in the service-oriented architecture of 5GC. As shown in FIG. 1 , an interaction flowchart of a wireless communication system using a service discovery method according to an embodiment of the present invention, the wireless communication system may include a service user network function (Network Function, NF) and a service discovery function. Among them, the service discovery function is usually referred to as a network repository function (Network Repository Function, NRF). Among them, the service user NF performs service registration with the service discovery function, and registers all the services provided by itself and related information, which includes the information required by the service user to discover the NF; further, as shown in Figure 1, the service user NF to The service discovery function sends the NF service discovery request, confirms the service provider NF of the specific service to be called (related to the business process of the upper-layer application) through the service discovery function (that is, NRF), and returns the NF service discovery to the service user NF response message.

为解决一目标网络功能的服务发现过程通常需要服务使用者NF与NRF之间的多次请求交互,造成效率低下处理延时的问题,本发明实施例提供一种服务发现方法。In order to solve the problem that the service discovery process of a target network function usually requires multiple request interactions between the service user NF and the NRF, resulting in inefficient processing and delay, the embodiment of the present invention provides a service discovery method.

如图2所示,本发明其中一实施例所述服务发现方法,应用于服务使用者网络功能,包括:As shown in FIG. 2 , the service discovery method according to an embodiment of the present invention is applied to a service user network function, including:

S210,向服务发现功能发送服务发现请求;S210, sending a service discovery request to the service discovery function;

其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

S220,接收服务发现功能返回的服务发现响应。S220: Receive a service discovery response returned by the service discovery function.

本发明实施例所述服务发现方法,服务使用者网络功能NF将至少两次服务发现过程的服务发现参数和服务发现判断条件,通过一次服务发现请求发送至服务发现功能,以能够通过一次服务发现请求与服务发现功能进行交互,确定出目标网络功能,解决常规的服务发现过程通常需要服务使用者网络功能与服务发现功能之间的多次请求交互,造成效率低下和处理延时的问题。In the service discovery method according to the embodiment of the present invention, the service user network function NF sends the service discovery parameters and service discovery judgment conditions of at least two service discovery processes to the service discovery function through a service discovery request, so as to be able to pass a service discovery The request interacts with the service discovery function, determines the target network function, and solves the problem of low efficiency and processing delay that the conventional service discovery process usually requires multiple request interactions between the service user network function and the service discovery function.

可选地,本发明实施例中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, in this embodiment of the present invention, the at least two service discovery processes are both discovery processes for the service provider network function of the same service, and the at least two service discovery processes are respectively different service discovery processes, Different service discovery processes have different service discovery parameters.

采用本发明实施例所述服务发现方法,将针对同一服务的服务提供者网络功能的至少两次服务发现过程合并,并将用于获取该服务提供者网络功能的服务发现判断条件发送至服务发现功能,以使服务发现功能利用该至少两次服务发现过程的服务发现参数和服务发现判断条件进行分析判断,通过一次处理能够返回服务提供者网络功能的发现结果,从而避免多次请求交互的过程。By adopting the service discovery method according to the embodiment of the present invention, at least two service discovery processes for the service provider network function of the same service are combined, and the service discovery judgment condition for acquiring the service provider network function is sent to the service discovery Function, so that the service discovery function uses the service discovery parameters and service discovery judgment conditions of the at least two service discovery processes to analyze and judge, and can return the discovery result of the service provider network function through one processing, thereby avoiding the process of multiple requests for interaction .

具体地,采用本发明实施例所述服务发现方法,结合图1,对于服务使用者网络功能NF,在通过服务发现请求向服务发现功能请求一服务的服务提供者网络功能时,若确定该服务提供者网络功能的请求需要至少两次的服务发现过程,且每次服务发现过程所需要发送的服务发现参数不同时,则将该至少两次的服务发现过程所需要的服务发现参数一起写入服务发现请求,并确定通过该些服务发现参数获取服务提供者网络功能所需要满足的服务发现判断条件,一并写入服务发现请求后发送至服务发现功能20。Specifically, using the service discovery method described in the embodiment of the present invention, with reference to FIG. 1 , for a service user network function NF, when a service provider network function of a service is requested to the service discovery function through a service discovery request, if the service The request of the provider's network function requires at least two service discovery processes, and when the service discovery parameters required by each service discovery process are different, the service discovery parameters required by the at least two service discovery processes are written together. The service discovery request is determined, and the service discovery judgment conditions that need to be satisfied by the network function of the service provider are obtained through these service discovery parameters, and the service discovery request is written together and sent to the service discovery function 20 .

本发明实施例中,可选地,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。In this embodiment of the present invention, optionally, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

通过服务发现请求中包括该服务发现判断条件,使服务发现功能依据服务发现判断条件中的逻辑规则对至少两次服务发现过程的服务发现参数进行分析,获取用于服务提供者网络功能提供的返回结果。By including the service discovery judgment condition in the service discovery request, the service discovery function analyzes the service discovery parameters of at least two service discovery processes according to the logic rules in the service discovery judgment condition, and obtains the response provided by the network function of the service provider. result.

通过该方式,相较于常规技术逻辑分析功能通常通过功能实体中的软件模块实现的方式,本发明实施例中,用于逻辑分析功能的服务发现判断条件可以通过服务化接口的服务发现请求中携带并发送至服务发现功能,以使服务发现功能能够利用该服务发现判断条件直接进行分析处理,获得用于服务提供者网络功能的提供结果,达到简化处理过程的效果。In this way, compared with the way in which the logic analysis function of the conventional technology is usually realized by a software module in the functional entity, in the embodiment of the present invention, the service discovery judgment condition for the logic analysis function can be used in the service discovery request of the service interface. It is carried and sent to the service discovery function, so that the service discovery function can directly analyze and process by using the service discovery judgment condition, obtain the provision result for the service provider's network function, and achieve the effect of simplifying the processing process.

本发明实施例中,可选地,所述服务发现判断条件为条件语句或条件表达式。In this embodiment of the present invention, optionally, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,该条件语句和/或条件表达式为逻辑嵌套。Optionally, the conditional statements and/or conditional expressions are logically nested.

本发明实施例中,服务发现请求中所包括的服务发现参数不同时,在步骤S220中,所述服务发现响应中的服务发现结果不同;以及In the embodiment of the present invention, when the service discovery parameters included in the service discovery request are different, in step S220, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,在步骤S220中,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, in step S220, the service discovery results in the service discovery response are different.

进一步,对于相同的服务发现参数,当服务发现请求中的服务发现判断条件不同时,步骤S220中,服务发现响应中的服务发现结果也不同。Further, for the same service discovery parameter, when the service discovery judgment conditions in the service discovery request are different, in step S220, the service discovery results in the service discovery response are also different.

本发明实施例所述服务发现方法的第一实施方式,所述服务提供者网络功能为会话管理功能SMF,所述服务使用者网络功能网元为接入和移动性管理功能AMF,所述服务发现功能网元为网络仓储功能NRF。In the first implementation manner of the service discovery method according to the embodiment of the present invention, the service provider network function is a session management function SMF, the service user network function network element is an access and mobility management function AMF, and the service The discovery function network element is the network warehousing function NRF.

其中,该实施方式中,所述服务发现参数包括SMF实例地址ID和用户所在跟踪区TA的跟踪区标识TAI。Wherein, in this embodiment, the service discovery parameter includes the SMF instance address ID and the tracking area identifier TAI of the tracking area TA where the user is located.

本发明实施例所述服务发现方法的第二实施方式,所述服务提供者网络功能为策略控制功能实体(Policy Control Function,PCF)服务;In the second implementation manner of the service discovery method according to the embodiment of the present invention, the service provider network function is a Policy Control Function (Policy Control Function, PCF) service;

所述服务使用者网络功能为SMF,所述服务发现功能为NRF。The service user network function is SMF, and the service discovery function is NRF.

其中,该实施方式中,所述服务发现参数包括数据业务参数和语音业务参数。Wherein, in this embodiment, the service discovery parameters include data service parameters and voice service parameters.

以下,以本发明实施例所述服务发现方法,在应用于上述第一实施方式和第二实施方式时的发现过程为例,对本发明实施例所述方法的具体过程进行详细说明。Hereinafter, the specific process of the method according to the embodiment of the present invention will be described in detail by taking the discovery process when the service discovery method according to the embodiment of the present invention is applied to the above-mentioned first embodiment and the second embodiment as an example.

其中一实施方式中,在应用于省间漫游场景下的SMF发现过程时,所述服务发现请求的服务提供者网络功能为会话管理功能SMF;In one embodiment, when applied to an SMF discovery process in an inter-provincial roaming scenario, the service provider network function of the service discovery request is a session management function SMF;

其中,在步骤S210中,服务发现请求中的服务发现参数包括SMF实例地址ID和用户所在跟踪区TA的跟踪区标识TAI。Wherein, in step S210, the service discovery parameter in the service discovery request includes the SMF instance address ID and the tracking area identifier TAI of the tracking area TA where the user is located.

在用户发生省间漫游时,会发生跨AMF的用户位置更新,在位置更新流程中,如图3至图5所示,位置更新前第一位置所属的第一AMF(旧old AMF)会将用户上下文发送至位置更新后第二位置所属的第二AMF(新new AMF),用户上下文包括用户进行会话管理的SMF的实例ID。该实例ID仅为SMF的一个标识,不能用于AMF调用SMF的服务,因此第二AMF(对应本发明实施例中的服务使用者网络功能)必须向网络仓储功能(Network RepositoryFunction,NRF)(对应本发明实施例中的服务发现功能)请求发现服务,以获取能够为用户在第二位置提供服务的SMF。When the user roams between provinces, the user location update across AMF will occur. In the location update process, as shown in Figure 3 to Figure 5, the first AMF (old AMF) to which the first location belongs before the location update will update the location. The user context is sent to the second AMF (new AMF) to which the second location belongs after the location update, and the user context includes the instance ID of the SMF where the user performs session management. The instance ID is only an identifier of the SMF and cannot be used by the AMF to invoke the service of the SMF. Therefore, the second AMF (corresponding to the service user network function in the embodiment of the present invention) must report to the Network Repository Function (NRF) (corresponding to The service discovery function in the embodiment of the present invention) requests a discovery service to obtain an SMF that can provide services for the user at the second location.

基于以上,在该实施方式中,目标服务请求的服务使用者网络功能为AMF,目标服务请求的服务发现功能为NRF。Based on the above, in this embodiment, the service user network function of the target service request is AMF, and the service discovery function of the target service request is NRF.

具体地,结合图3所示,在用户从第一位置漫游至第二位置时,各个功能之间的交互过程,可以包括:Specifically, with reference to FIG. 3 , when the user roams from the first location to the second location, the interaction process between the various functions may include:

S310,用户处于第一位置,向第一位置所属的第一AMF注册;S310, the user is in the first position, and registers with the first AMF to which the first position belongs;

S320,通过第一AMF,用户与能够为用户提供服务的SMF建立会话;S320, through the first AMF, the user establishes a session with an SMF capable of providing services for the user;

S330,第一AMF保存用户上下文,其中该用户上下文中包括能够为用户提供服务的该SMF的实例ID;S330, the first AMF saves the user context, wherein the user context includes the instance ID of the SMF that can provide services for the user;

S340,用户由第一位置漫游至第二位置,用户所在跟踪区TA与AMF发生改变;S340, the user roams from the first location to the second location, and the tracking area TA and AMF where the user is located are changed;

S350,用户向第二位置所属的第二AMF注册;S350, the user registers with the second AMF to which the second location belongs;

S360,第二AMF保存用户所在TA的TAI;S360, the second AMF saves the TAI of the TA where the user is located;

S370,第二AMF与第一AMF之间进行用户上下文传递;S370, user context transfer is performed between the second AMF and the first AMF;

S380,第二AMF获取SMF的实例ID;S380, the second AMF obtains the instance ID of the SMF;

S390,第二AMF向NRF发送服务发现请求;S390, the second AMF sends a service discovery request to the NRF;

S391,NRF根据服务发现请求,确定响应信息;S391, the NRF determines the response information according to the service discovery request;

S392,NRF向第二AMF返回服务发现请求的服务发现响应;S392, the NRF returns a service discovery response of the service discovery request to the second AMF;

S393,第二AMF获取NRF发送的响应信息。S393, the second AMF acquires the response information sent by the NRF.

采用上述的过程,通过步骤S350至S380,第二AMF能够获取SMF的实例ID和用户所在TA的TAI。另外,在步骤S390之前,也即第二AMF向NRF发送服务发现请求之前,第二AMF确定当发生跨AMF的用户位置更新时,为了获取能够向用户在第二位置提供服务的SMF,需要有两次服务发现过程,一次服务发现过程为通过SMF实例ID向NRF获取该SMF的NF profile,另一次服务发现过程为通过用户所在TA的TAI,获取能够为用户提供服务的SMF列表list。因此,获取能够为用户提供服务的SMF需要两次的服务发现过程,基于此,其中一实施方式,在步骤S390,结合图4所示,第二AMF同时将SMF的实例ID和用户所在TA的TAI写入服务发现请求中,其中该服务发现请求中还包括用于SMF发现的服务发现判断条件。Using the above process, through steps S350 to S380, the second AMF can obtain the instance ID of the SMF and the TAI of the TA where the user is located. In addition, before step S390, that is, before the second AMF sends a service discovery request to the NRF, the second AMF determines that when a cross-AMF user location update occurs, in order to obtain an SMF that can provide services to the user at the second location, it needs to have Two service discovery processes, one is to obtain the NF profile of the SMF from the NRF through the SMF instance ID, and the other is to obtain the list of SMFs that can provide services to the user through the TAI of the TA where the user is located. Therefore, obtaining an SMF that can provide services to users requires two service discovery processes. Based on this, in one embodiment, in step S390, as shown in FIG. 4 , the second AMF simultaneously compares the instance ID of the SMF and the TA of the TA where the user is located. The TAI is written into the service discovery request, wherein the service discovery request further includes service discovery judgment conditions for SMF discovery.

其中,该服务发现判断条件用于向NRF指示采用该两个服务发现参数进行分析的逻辑规则,以使NRF能够根据该服务发现判断条件对该两个服务发现参数进行分析处理后,确定SMF发现的响应结果信息。Wherein, the service discovery judgment condition is used to indicate to the NRF a logic rule for analyzing the two service discovery parameters, so that the NRF can determine the SMF discovery after analyzing and processing the two service discovery parameters according to the service discovery judgment condition response result information.

本发明实施例中,可选地,所述服务发现判断条件为包括多层逻辑的条件语句或条件表达式,具体地可以形成为如下其中一条件语句(或者为条件表达式):In this embodiment of the present invention, optionally, the service discovery judgment condition is a conditional statement or a conditional expression including multiple layers of logic, and may be specifically formed as one of the following conditional statements (or a conditional expression):

第一条件语句:根据所述TAI匹配SMF列表的第一功能语句;所述第一功能语句所匹配的SMF列表是否包含SMF实例ID的第二功能语句;所述第二功能语句的判断结果为是时,返回所请求SMF的网络功能NF文件的第三功能语句;以及所述第二功能语句的判断结果为否时,返回符合条件的SMF列表的第四功能语句;The first conditional statement: matches the first functional statement of the SMF list according to the TAI; whether the SMF list matched by the first functional statement contains the second functional statement of the SMF instance ID; the judgment result of the second functional statement is: If yes, return the third function statement of the network function NF file of the requested SMF; and when the judgment result of the second function statement is no, return the fourth function statement of the SMF list that meets the conditions;

第二条件语句:根据SMF实例ID查询所请求SMF能够服务的TAI列表的第五功能语句;判断所述第五功能语句所查询的TAI列表是否包含用户所在TA的第六功能语句;所述第六功能语句的判断结果为是时,返回所请求SMF的网络功能NF文件的第七功能语句;以及所述第六语句的判断结果为否时,返回符合条件的SMF列表的第八功能语句。The second conditional statement: query the fifth functional statement of the TAI list that the requested SMF can serve according to the SMF instance ID; determine whether the TAI list queried by the fifth functional statement contains the sixth functional statement of the TA where the user is located; When the judgment result of the six-function statement is yes, the seventh function statement of the network function NF file of the requested SMF is returned; and when the judgment result of the sixth statement is No, the eighth function statement of the qualified SMF list is returned.

采用上述的第一条件语句,NRF先根据服务发现请求中的TAI匹配SMF列表list,判断匹配所获得的SMF list中是否包含服务发现请求中的SMF实例ID;若包括该SMF实例ID,则确定原SMF能够继续为用户提供服务,确定向第二AMF返回的响应信息中包括该SMF的NFprofile;若不包括该SMF实例ID,则根据服务发现请求中的TAI,查询符合条件的SMF list,确定向第二AMF返回的响应信息中包括所查询到的SMF list;Using the above-mentioned first conditional statement, NRF first matches the SMF list list according to the TAI in the service discovery request, and determines whether the SMF list obtained by matching contains the SMF instance ID in the service discovery request; if the SMF instance ID is included, then determine The original SMF can continue to provide services for the user, and it is determined that the response information returned to the second AMF includes the NFprofile of the SMF; if the SMF instance ID is not included, query the eligible SMF list according to the TAI in the service discovery request, and determine The response information returned to the second AMF includes the queried SMF list;

采用上述的第二条件语句,NRF先根据服务发现请求中的SMF实例ID查询SMF可以服务的TAI list,判断查询所获得的TAI list中是否包括用户所在TA;若包括该TA,则确定原SMF能够继续为用户提供服务,确定向第二AMF返回的响应信息中包括该SMF的NFprofile;若不包括该TA,则根据服务发现请求中的TAI,查询符合条件的SMF list,确定向第二AMF返回的响应信息中包括所查询到的SMF list。Using the second conditional statement above, the NRF first queries the TAI list that the SMF can serve according to the SMF instance ID in the service discovery request, and determines whether the TAI list obtained by the query includes the TA where the user is located; if the TA is included, the original SMF is determined. It can continue to provide services for users, and it is determined that the response information returned to the second AMF includes the NFprofile of the SMF; if the TA is not included, query the qualified SMF list according to the TAI in the service discovery request, and determine to the second AMF The returned response information includes the queried SMF list.

其中,NRF根据上述第一条件语句或第二条件语句确定响应结果信息时,不需要配置判断逻辑,只需要根据服务发现请求中所指示的服务发现判断条件中的执行信息,进行数据查询,相较于通过服务发现请求中仅包括用于SMF发现的SMF的实例ID和用户所在TA的TAI的方式,能够大大降低NRF进行数据处理的复杂度,以进一步达到提高处理效率,降低时延的效果。When the NRF determines the response result information according to the first conditional statement or the second conditional statement, it does not need to configure the judgment logic, but only needs to perform data query according to the execution information in the service discovery judgment condition indicated in the service discovery request. Compared with the way that the service discovery request only includes the instance ID of the SMF used for SMF discovery and the TAI of the TA where the user is located, the complexity of data processing by NRF can be greatly reduced, so as to further improve the processing efficiency and reduce the effect of delay. .

具体地,上述的服务发现判断条件可以为嵌套式条件语句,如该嵌套式条件语句可以为“If SMF.instance ID==instance ID and SMF.instance ID.TAI==TAI,Then:return SMF.instance ID.NFprofile;else:return SMF list(SMF.instance ID.TAI==TAI)”。Specifically, the above-mentioned service discovery judgment condition may be a nested conditional statement, for example, the nested conditional statement may be "If SMF.instance ID==instance ID and SMF.instance ID.TAI==TAI, Then:return SMF.instance ID.NFprofile; else: return SMF list(SMF.instance ID.TAI==TAI)".

根据以上,在步骤S392,NRF向第二AMF返回服务发现请求的服务发现响应时,该服务发现响应中包括SMF的NF profile,或者包括所查询到的SMF list。According to the above, in step S392, when the NRF returns a service discovery response of the service discovery request to the second AMF, the service discovery response includes the NF profile of the SMF, or includes the queried SMF list.

其中,当服务发现响应中包括SMF list时,在步骤S393,第二AMF接收NRF发送的服务发现响应之后,从SMF list列表中选择其中一SMF,用于为用户提供服务。Wherein, when the service discovery response includes the SMF list, in step S393, after receiving the service discovery response sent by the NRF, the second AMF selects one of the SMFs from the SMF list to provide services for the user.

根据以上,本发明实施例中,服务发现请求中的服务发现参数为至少两个,且不同服务发现过程相对应的服务发现参数不同。另外,当服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的响应结果信息不同,以及当所述服务发现请求中所包括同一服务发现参数为不同数值时,所述服务发现响应中的响应结果信息不同。According to the above, in the embodiment of the present invention, there are at least two service discovery parameters in the service discovery request, and the service discovery parameters corresponding to different service discovery processes are different. In addition, when the service discovery parameters included in the service discovery request are different, the response result information in the service discovery response is different, and when the same service discovery parameter included in the service discovery request has different values, the service discovery The response result information in the found response is different.

例如,当SMF的实例ID和用户所在TA的TAI为不同参数值时,该服务发现响应中包括SMF的NF profile,或者包括所查询到的SMF list,因此获得的响应结果信息不同。For example, when the instance ID of the SMF and the TAI of the TA where the user is located are different parameter values, the service discovery response includes the NF profile of the SMF or the queried SMF list, so the obtained response result information is different.

需要说明的是,本发明实施例的另一实施方式,在步骤S390,第二AMF向NRF发送服务发现请求时,该服务发现请求中也可以仅包括SMF的实例ID和用户所在TA的TAI,也即不包括服务发现判断条件,如图5所示。基于该实施方式,NRF可以具有逻辑判断功能,能够根据该服务发现请求中的服务发现参数,确定服务发现判断条件,并进行数据查询,确定第二AMF所请求新的SMF的响应信息。It should be noted that, in another implementation of the embodiment of the present invention, in step S390, when the second AMF sends a service discovery request to the NRF, the service discovery request may also only include the instance ID of the SMF and the TAI of the TA where the user is located, That is, the service discovery judgment condition is not included, as shown in FIG. 5 . Based on this embodiment, the NRF may have a logical judgment function, which can determine the service discovery judgment conditions according to the service discovery parameters in the service discovery request, and perform data query to determine the response information of the new SMF requested by the second AMF.

具体地,NRF根据包括SMF的实例ID和用户所在TA的TAI所确定的服务发现判断条件,可以分别执行上述的第一条件语句或者第二条件语句的功能,在此不再详细说明。Specifically, the NRF can respectively execute the functions of the first conditional statement or the second conditional statement according to the service discovery judgment condition including the instance ID of the SMF and the TAI of the TA where the user is located, which will not be described in detail here.

常规技术中,在上述的SMF发现过程,在步骤S380之后,结合图3和图6所示,第二AMF需要先向NRF发送第一次请求,该第一次请求中包括SMF实例ID,以获取该SMF的NFprofile;需要说明的是,NF profile中包括位置区信息:TAI list,用于标示该SMF可以为哪些位置区范围内的用户提供会话管理。获取该NF profile的第二AMF需要判断该SMF的TAI list是否包含用户当前所在TA,如不包含,则确定该SMF不能再为用户服务,需要向NRF发送第二次请求,携带用户当前所在TA的TAI,使NRF能够根据TAI查询符合条件的SMFlist。因此,常规技术的SMF发现过程中,对于新的SMF发现,需要AMF与NRF之间进行两次的请求交互,造成服务发现过程的效率低下,使处理时延增加。In the conventional technology, in the above-mentioned SMF discovery process, after step S380, as shown in FIG. 3 and FIG. 6, the second AMF needs to first send a first request to the NRF, and the first request includes the SMF instance ID to Obtain the NF profile of the SMF; it should be noted that the NF profile includes location area information: TAI list, which is used to indicate which location area users the SMF can provide session management for. To obtain the second AMF of the NF profile, it is necessary to determine whether the TAI list of the SMF contains the current TA of the user. If not, it is determined that the SMF can no longer serve the user, and a second request needs to be sent to the NRF, carrying the current TA of the user. The TAI enables NRF to query the eligible SMFlist based on the TAI. Therefore, in the SMF discovery process of the conventional technology, for new SMF discovery, two request interactions are required between the AMF and the NRF, resulting in low efficiency of the service discovery process and increased processing delay.

然而,采用本发明实施例所述服务发现方法,通过使服务发现请求中包括用于SMF发现的SMF的实例ID、用户所在TA的TAI以及指示该两个服务发现参数之间需要满足的逻辑规则的服务发现判断条件,通过与AMF之间的一次交互,NRF即能够向AMF返回服务发现结果。However, by using the service discovery method described in the embodiment of the present invention, the service discovery request includes the instance ID of the SMF used for SMF discovery, the TAI of the TA where the user is located, and the logic rules indicating the two service discovery parameters that need to be satisfied. The NRF can return the service discovery result to the AMF through one interaction with the AMF.

需要说明的是,本发明实施例所述服务发现请求不限于仅能够应用于上述SMF的发现过程。It should be noted that, the service discovery request described in this embodiment of the present invention is not limited to being applicable only to the discovery process of the above-mentioned SMF.

本发明实施例所述服务发现方法的第二实施方式中,所述服务发现请求的服务提供者网络功能还可以为策略控制功能实体PCF服务,所述服务使用者网络功能为SMF,所述服务发现功能为NRF。In the second implementation of the service discovery method according to the embodiment of the present invention, the service provider network function of the service discovery request may also be a policy control function entity PCF service, the service user network function is SMF, and the service The discovery function is NRF.

需要说明的是,当用户附着网络时,会请求网络分别建立不同的协议数据单元(Protocol Data Unit,PDU)会话session,在PDU session建立过程中涉及SMF进行策略控制功能实体(Policy Control Function,PCF)服务发现和选择。语音业务PDU session建立过程中,SMF根据语音业务数据网络名称(Data Network Name,DNN)等参数去发现语音业务策略控制的PCF;数据业务PDU session建立过程中,SMF根据数据业务DNN、用户码号等参数去发现数据业务策略控制的PCF。二者的服务发现策略不同,此外,语音业务策略控制PCF和数据业务策略控制PCF的服务范围不同,语音业务策略控制PCF在拜访地,为非漫游用户和漫游入用户服务;数据业务策略控制PCF在归属地,为非漫游用户和漫游出用户服务。It should be noted that when the user attaches to the network, the network will be requested to establish different Protocol Data Unit (PDU) session sessions respectively. During the establishment of the PDU session, the SMF is involved in the Policy Control Function (PCF) process. ) service discovery and selection. During the establishment of the voice service PDU session, the SMF discovers the PCF controlled by the voice service policy according to parameters such as the voice service Data Network Name (DNN). and other parameters to discover the PCF controlled by the data service policy. The service discovery policies of the two are different. In addition, the voice service policy controls the PCF and the data service policy controls the PCF's service scope. The voice service policy controls the PCF to serve non-roaming users and roaming inbound users in the visited place; the data service policy controls the PCF. At home, it serves non-roaming users and outgoing users.

常规技术中,如图14所示,SMF将至少两次的PCF服务发现策略发送至NRF,服务策略可以是对不同业务策略控制PCF分别进行服务发现,由NRF返回不同的PCFlist(语音业务策略控制PCF list和数据业务策略控制PCF list),或者服务策略为对同时支持语音业务和数据策略控制的PCF进行服务发现,由NRF选择同时支持语音业务和数据策略控制的PCF为同一用户服务(用户非漫游场景)。In the conventional technology, as shown in FIG. 14 , the SMF sends at least two PCF service discovery policies to the NRF. The service policy may be to control the PCF for different service policies to perform service discovery respectively, and the NRF returns different PCFlists (voice service policy control). PCF list and data service policy control PCF list), or the service policy is to perform service discovery on PCFs that support voice service and data policy control at the same time, and the PCF that supports both voice service and data policy control is selected by the NRF to serve the same user. roaming scene).

采用本发明实施例所述服务发现方法,如图15所示,服务使用者网络功能SMF可以向NRF发送一次服务发现请求,该服务发现请求中包括用于请求策略控制功能实体PCF服务所需要的全部条件参数,可选地还包括用于请求PCF服务的服务发现判断条件,用于说明PCF服务发现的服务发现策略。Using the service discovery method described in the embodiment of the present invention, as shown in FIG. 15 , the service user network function SMF can send a service discovery request to the NRF, and the service discovery request includes the service discovery request for requesting the policy control function entity PCF service. All the condition parameters optionally also include service discovery judgment conditions for requesting PCF services, which are used to describe the service discovery policy of PCF service discovery.

根据以上,服务请求端SMF向服务提供端发送服务发现请求,该服务发现请求中的所述服务发现参数包括数据业务参数和语音业务参数。According to the above, the service requester SMF sends a service discovery request to the service provider, and the service discovery parameters in the service discovery request include data service parameters and voice service parameters.

另外,需要说明的是,服务发现请求中的服务发现判断条件具体可以根据所需求的服务发现策略不同而具体确定,在此不再详细举例说明。In addition, it should be noted that the service discovery judgment condition in the service discovery request may be specifically determined according to different required service discovery policies, and will not be described in detail here.

可以理解的是,上述的服务发现请求所请求的服务提供者网络功能为PCF服务,当服务发现请求中包括的数据业务参数和语音业务参数不同时,所获取的PCF服务的服务发现响应不同,如可以为语音PCF list或者为数据PCF list,或者同时包括语音PCF list和数据PCF list。It can be understood that the service provider network function requested by the above-mentioned service discovery request is a PCF service, and when the data service parameters and voice service parameters included in the service discovery request are different, the service discovery responses of the obtained PCF service are different, For example, it can be a voice PCF list or a data PCF list, or it can include both a voice PCF list and a data PCF list.

举例说明,服务发现请求中所包括的服务发现策略示例可以为如下:For example, an example of the service discovery policy included in the service discovery request may be as follows:

If PCF.DNN==IMS and PCF.DNN==DNNx and PCF.DNN==DNNy andPCF.SUPI range MAPPING UE ID1 and PCF.GPSI range MAPPING UE ID2If PCF.DNN==IMS and PCF.DNN==DNNx and PCF.DNN==DNNy and PCF.SUPI range MAPPING UE ID1 and PCF.GPSI range MAPPING UE ID2

Then:return PCF list(PCF.DNN==[IMS、DNNx、DNNy]and PCF.SUPI rangeMAPPING UE ID1 and PCF.GPSI range MAPPING UE ID2);Then: return PCF list (PCF.DNN==[IMS, DNNx, DNNy] and PCF.SUPI rangeMAPPING UE ID1 and PCF.GPSI range MAPPING UE ID2);

else:returnelse: return

IMS-PCF list1(PCF.DNN==[IMS]),IMS-PCF list1 (PCF.DNN==[IMS]),

DNNx-PCF list2(PCF.DNN==[DNNx]and PCF.SUPI range MAPPING UE ID1),DNNx-PCF list2(PCF.DNN==[DNNx]and PCF.SUPI range MAPPING UE ID1),

DNNy-PCF list3(PCF.DNN==[DNNy]and PCF.GPSI range MAPPING UE ID2)。DNNy-PCF list3 (PCF.DNN==[DNNy]and PCF.GPSI range MAPPING UE ID2).

当然,当服务发现请求中的服务发现策略不同时,NRF所返回的服务发现响应也可以为不同。Of course, when the service discovery policies in the service discovery requests are different, the service discovery responses returned by the NRF may also be different.

需要说明的是,在无线通讯技术中,本发明实施例所述服务发现方法,不限于仅能够应用于上述的两个实施方式的实施场景,该方法可以应用于服务注册和发现机制的包括至少两次服务发现过程的任一服务发现请求过程。采用该服务发现方法,服务使用者网络功能NF将至少两次服务发现过程的服务发现参数和服务发现判断条件,通过一次服务发现请求发送至服务发现功能,以能够通过一次服务发现请求与服务发现功能进行交互,确定出服务提供者网络功能,解决常规的服务发现过程通常需要服务使用者网络功能与服务发现功能之间的多次请求交互,造成效率低下和处理延时的问题。It should be noted that, in the wireless communication technology, the service discovery method described in the embodiments of the present invention is not limited to being applicable to the implementation scenarios of the above two implementation manners. The method can be applied to service registration and discovery mechanisms including at least Any service discovery request process of two service discovery processes. With this service discovery method, the service user network function NF sends the service discovery parameters and service discovery judgment conditions of at least two service discovery processes to the service discovery function through a service discovery request, so that the service discovery request and service discovery can be passed through a single service discovery request. The functions interact to determine the service provider network function, and the conventional service discovery process usually requires multiple request interactions between the service user network function and the service discovery function, resulting in low efficiency and processing delay.

本发明实施例还提供一种服务发现方法,应用于服务发现功能,如图7所示,所述方法包括:An embodiment of the present invention further provides a service discovery method, which is applied to a service discovery function. As shown in FIG. 7 , the method includes:

S710,接收服务使用者网络功能发送的服务发现请求;其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;S710, receiving a service discovery request sent by the service user network function; wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions used for at least two service discovery processes;

S720,向所述服务使用者网络功能返回所述服务发现请求的服务发现响应。S720. Return a service discovery response of the service discovery request to the service user network function.

采用本发明实施例所述服务发现方法,服务使用者网络功能NF将至少两次服务发现过程的服务发现参数和服务发现判断条件,通过一次服务发现请求发送至服务发现功能,以能够通过一次服务发现请求与服务发现功能进行交互,确定出所提供的服务提供者网络功能,解决常规的服务发现过程通常需要服务使用者网络功能与服务发现功能之间的多次请求交互,造成效率低下和处理延时的问题。By adopting the service discovery method described in the embodiment of the present invention, the service user network function NF sends the service discovery parameters and service discovery judgment conditions of at least two service discovery processes to the service discovery function through a service discovery request, so as to be able to pass a service discovery request once. The discovery request interacts with the service discovery function to determine the provided service provider network function. Solving the conventional service discovery process usually requires multiple request interactions between the service user network function and the service discovery function, resulting in low efficiency and processing delays. time problem.

可选地,所的服务发现方法,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, the service discovery method, wherein the at least two service discovery processes are both discovery processes for the service provider network function of the same service, and the at least two service discovery processes are respectively different service discovery processes process, the service discovery parameters of different service discovery processes are different.

采用本发明实施例所述服务发现方法,服务发现功能能够利用该至少两次服务发现过程的服务发现参数和服务发现判断条件进行分析判断,通过一次处理能够返回针对同一服务的服务提供者网络功能的发现结果,从而避免多次请求交互的过程。Using the service discovery method described in the embodiment of the present invention, the service discovery function can use the service discovery parameters and service discovery judgment conditions of the at least two service discovery processes to perform analysis and judgment, and can return the service provider network function for the same service through one processing. The discovery result, thereby avoiding the process of multiple request interactions.

可选地,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

其中,通过服务发现请求中包括服务发现判断条件,服务发现功能能够依据服务发现判断条件中的逻辑规则对至少两次服务发现过程的服务发现参数进行分析,获取用于服务提供者网络功能发现的返回结果。Wherein, by including the service discovery judgment condition in the service discovery request, the service discovery function can analyze the service discovery parameters of at least two service discovery processes according to the logic rules in the service discovery judgment condition, and obtain the service provider network function discovery data. Return the result.

可选地,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所述服务发现判断条件为包括多层逻辑的条件语句或条件表达式。Optionally, the service discovery judgment condition is a conditional statement or conditional expression including multiple layers of logic.

可选地,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, the conditional statement and/or the conditional expression is logically nested.

其中,需要说明的是,形成为逻辑嵌套的条件语句或条件表达式包括多个层级条件,在形式上可以表现为包括多个层叠的if函数。It should be noted that the conditional statement or conditional expression formed as logical nesting includes multiple hierarchical conditions, which can be expressed as including multiple stacked if functions in form.

本发明实施例所述服务发现方法的第一实施方式,所述服务提供者网络功能为会话管理功能SMF,所述服务使用者网络功能为接入和移动性管理功能AMF,所述服务发现功能网元为网络仓储功能NRF。In the first implementation manner of the service discovery method according to the embodiment of the present invention, the service provider network function is a session management function SMF, the service user network function is an access and mobility management function AMF, and the service discovery function The network element is the network storage function NRF.

其中,该实施方式中,所述服务发现参数包括SMF实例地址ID和用户所在跟踪区TA的跟踪区标识TAI。Wherein, in this embodiment, the service discovery parameter includes the SMF instance address ID and the tracking area identifier TAI of the tracking area TA where the user is located.

本发明实施例所述服务发现方法的第二实施方式,所述服务提供者网络功能为策略控制功能实体PCF服务;In the second implementation manner of the service discovery method according to the embodiment of the present invention, the service provider network function is a policy control function entity PCF service;

所述服务使用者网络功能为SMF,所述服务发现功能为NRF。The service user network function is SMF, and the service discovery function is NRF.

其中,该实施方式中,所述服务发现参数包括数据业务参数和语音业务参数。Wherein, in this embodiment, the service discovery parameters include data service parameters and voice service parameters.

具体地,采用本发明实施例所述服务发现方法的第一实施方式和第二实施方式的详细说明,可以参阅上述的描述,在此不再赘述。Specifically, for the detailed description of the first implementation manner and the second implementation manner of the service discovery method according to the embodiment of the present invention, reference may be made to the above description, which will not be repeated here.

可选地,所述的服务发现方法,其中,当所述服务发现请求中包括至少两次服务发现过程的服务发现参数和服务发现判断条件时,在步骤S420,向所述服务使用者网络功能返回所述服务发现请求的服务发现响应,包括:Optionally, in the service discovery method, when the service discovery request includes service discovery parameters and service discovery judgment conditions of at least two service discovery processes, in step S420, the service user network function is sent to the service user network function. Returns a service discovery response to the service discovery request, including:

根据所述服务发现参数和所述服务发现判断条件,获取用于服务提供者网络功能的服务发现结果;According to the service discovery parameter and the service discovery judgment condition, obtain the service discovery result used for the network function of the service provider;

向所述服务请求端发送所述服务提供者网络功能的服务发现响应,其中所述服务发现响应中包括所述服务发现结果。A service discovery response of the service provider network function is sent to the service requester, wherein the service discovery response includes the service discovery result.

可选地,另一方面,当服务发现请求中仅包括至少两次服务发现过程的服务发现参数时,所述服务发现方法还包括:Optionally, on the other hand, when the service discovery request only includes service discovery parameters of at least two service discovery processes, the service discovery method further includes:

根据所述服务发现参数,确定用于获取服务提供者网络功能的服务发现判断条件;According to the service discovery parameter, determine the service discovery judgment condition for obtaining the network function of the service provider;

根据所述服务发现判断条件,确定服务提供者网络功能的服务发现结果;Determine the service discovery result of the service provider network function according to the service discovery judgment condition;

向所述服务请求端发送所述服务提供者网络功能的服务发现响应,其中所述服务发现响应中包括所述服务发现结果。A service discovery response of the service provider network function is sent to the service requester, wherein the service discovery response includes the service discovery result.

其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且不同服务发现过程的服务发现参数不同,所述服务发现请求为用于获取所述服务提供者网络功能。Wherein, the at least two service discovery processes are all discovery processes for the service provider network function of the same service, and the service discovery parameters of different service discovery processes are different, and the service discovery request is used to obtain the service provider Network features.

本发明其中一实施例还提供一种功能网元,其中所述功能网元用于服务使用者网络功能,包括收发器,如图8所示,该功能网元包括收发器810,其中,收发器810用于:An embodiment of the present invention further provides a functional network element, wherein the functional network element is used to serve user network functions, and includes a transceiver. As shown in FIG. 8 , the functional network element includes atransceiver 810, wherein thetransceiver 810 Thedevice 810 is used to:

向服务发现功能发送服务发现请求;Send a service discovery request to the service discovery function;

其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

接收服务发现功能返回的服务发现响应。Receive the service discovery response returned by the service discovery function.

可选地,所述的功能网元,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, for the functional network element, the at least two service discovery processes are both discovery processes for the service provider network function of the same service, and the at least two service discovery processes are respectively different service discovery processes. , the service discovery parameters of different service discovery processes are different.

可选地,所述的功能网元,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the functional network element, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

可选地,所述的功能网元,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, for the functional network element, when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所述的功能网元,所述服务发现判断条件为条件语句或条件表达式。Optionally, for the functional network element, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,所述的功能网元,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the functional network element, the conditional statement and/or the conditional expression are logically nested.

可选地,所述功能网元的其中一实施方式中,所述服务提供者网络功能为会话管理功能SMF,所述服务使用者网络功能为接入和移动性管理功能AMF,所述服务发现功能网元为网络仓储功能NRF。Optionally, in one embodiment of the functional network element, the service provider network function is a session management function SMF, the service user network function is an access and mobility management function AMF, and the service discovery The functional network element is the network storage function NRF.

其中,该实施方式中,所述服务发现参数包括SMF实例地址ID和用户所在跟踪区TA的跟踪区标识TAI。Wherein, in this embodiment, the service discovery parameter includes the SMF instance address ID and the tracking area identifier TAI of the tracking area TA where the user is located.

可选地,所述功能网元的另一实施方式中,所述服务提供者网络功能为策略控制功能实体PCF服务;Optionally, in another implementation manner of the functional network element, the service provider network function is a policy control function entity PCF service;

所述服务使用者网络功能为SMF,所述服务发现功能为NRF。The service user network function is SMF, and the service discovery function is NRF.

其中,该实施方式中,所述服务发现参数包括数据业务参数和语音业务参数。Wherein, in this embodiment, the service discovery parameters include data service parameters and voice service parameters.

本发明实施例还提供一种功能网元,其中所述功能网元用于服务发现功能,如图9所示,包括收发器910,其中,所述收发器910用于:An embodiment of the present invention further provides a functional network element, wherein the functional network element is used for a service discovery function, as shown in FIG. 9 , and includes atransceiver 910, where thetransceiver 910 is used for:

接收服务使用者网络功能发送的服务发现请求;其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Receive a service discovery request sent by a service user network function; wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

向所述服务使用者网络功能返回所述服务发现请求的服务发现响应。A service discovery response to the service discovery request is returned to the service consumer network function.

可选地,所述的功能网元,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, in the functional network element, the at least two service discovery processes are both discovery processes of service provider network functions for the same service, and the at least two service discovery processes are respectively different services In the discovery process, the service discovery parameters of different service discovery processes are different.

可选地,所述的功能网元,其中,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the functional network element, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

可选地,所述的功能网元,其中,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, in the functional network element, when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所述的功能网元,其中,所述服务发现判断条件为条件语句或条件表达式;Optionally, the functional network element, wherein the service discovery judgment condition is a conditional statement or a conditional expression;

可选地,所述的功能网元,其中,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the functional network element, the conditional statement and/or the conditional expression is logically nested.

可选地,所述功能网元的其中一实施方式中,所述服务提供者网络功能为会话管理功能SMF,所述服务使用者网络功能为接入和移动性管理功能AMF,所述服务发现功能网元为网络仓储功能NRF。Optionally, in one embodiment of the functional network element, the service provider network function is a session management function SMF, the service user network function is an access and mobility management function AMF, and the service discovery The functional network element is the network storage function NRF.

其中,该实施方式中,所述服务发现参数包括SMF实例地址ID和用户所在跟踪区TA的跟踪区标识TAI。Wherein, in this embodiment, the service discovery parameter includes the SMF instance address ID and the tracking area identifier TAI of the tracking area TA where the user is located.

可选地,所述功能网元的另一实施方式中,所述服务提供者网络功能为策略控制功能实体PCF服务;Optionally, in another implementation manner of the functional network element, the service provider network function is a policy control function entity PCF service;

所述服务使用者网络功能为SMF,所述服务发现功能为NRF。The service user network function is SMF, and the service discovery function is NRF.

其中,该实施方式中,所述服务发现参数包括数据业务参数和语音业务参数。Wherein, in this embodiment, the service discovery parameters include data service parameters and voice service parameters.

本发明其中一实施例还提供一种服务发现装置,应用于服务使用者网络功能,如图10所示,所述装置包括:An embodiment of the present invention also provides a service discovery device, which is applied to service user network functions. As shown in FIG. 10 , the device includes:

请求发送模块1010,用于向服务发现功能发送服务发现请求;arequest sending module 1010, configured to send a service discovery request to the service discovery function;

其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

响应接收模块1020,用于接收服务发现功能返回的服务发现响应。Theresponse receiving module 1020 is configured to receive a service discovery response returned by the service discovery function.

可选地,所述的服务发现装置,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, in the service discovery apparatus, wherein, the at least two service discovery processes are both discovery processes of service provider network functions for the same service, and the at least two service discovery processes are respectively different services In the discovery process, the service discovery parameters of different service discovery processes are different.

可选地,所述的服务发现装置,其中,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the service discovery apparatus, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

可选地,所述的服务发现装置,其中,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, the service discovery apparatus, wherein when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所述的服务发现装置,其中,所述服务发现判断条件为条件语句或条件表达式。Optionally, in the service discovery apparatus, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,所述的服务发现装置,其中,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the service discovery apparatus, the conditional statement and/or the conditional expression is logically nested.

本发明另一实施例还提供一种服务发现装置,应用于服务发现功能网元,如图11所示,所述装置包括:Another embodiment of the present invention further provides a service discovery apparatus, which is applied to a service discovery function network element. As shown in FIG. 11 , the apparatus includes:

请求接收模块1110,用于接收服务使用者网络功能发送的服务发现请求;其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Therequest receiving module 1110 is configured to receive the service discovery request sent by the service user network function; wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

响应发送模块1120,用于向所述服务使用者网络功能返回所述服务发现请求的服务发现响应。Theresponse sending module 1120 is configured to return a service discovery response of the service discovery request to the service user network function.

可选地,所的服务发现装置,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, the service discovery apparatus, wherein the at least two service discovery processes are both discovery processes of the service provider network function for the same service, and the at least two service discovery processes are respectively different service discovery processes. process, the service discovery parameters of different service discovery processes are different.

可选地,所的服务发现装置,其中,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the service discovery apparatus, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

可选地,所的服务发现装置,其中,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, the service discovery apparatus, wherein when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所的服务发现装置,其中,所述服务发现判断条件为条件语句或条件表达式。Optionally, in the service discovery apparatus, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,所述的服务发现装置,其中,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the service discovery apparatus, the conditional statement and/or the conditional expression is logically nested.

本发明实施例另一方面还提供一种功能网元,如图12所示,包括:处理器1201;以及通过总线接口1202与所述处理器1201相连接的存储器1203,所述存储器1203用于存储所述处理器1201在执行操作时所使用的程序和数据,处理器1201调用并执行所述存储器1203中所存储的程序和数据。Another aspect of the embodiment of the present invention further provides a functional network element, as shown in FIG. 12 , including: aprocessor 1201; and amemory 1203 connected to theprocessor 1201 through abus interface 1202, and thememory 1203 is used for Programs and data used by theprocessor 1201 when performing operations are stored, and theprocessor 1201 calls and executes the programs and data stored in thememory 1203 .

其中,收发机1204与总线接口1202连接,用于在处理器1201的控制下接收和发送数据,具体地,处理器1201用于读取存储器1203中的程序,执行下列过程:Wherein, thetransceiver 1204 is connected to thebus interface 1202 for receiving and transmitting data under the control of theprocessor 1201. Specifically, theprocessor 1201 is used to read the program in thememory 1203 and perform the following processes:

向服务发现功能发送服务发现请求;Send a service discovery request to the service discovery function;

其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

接收服务发现功能返回的服务发现响应。Receive the service discovery response returned by the service discovery function.

可选地,所述的功能网元,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, in the functional network element, the at least two service discovery processes are both discovery processes of service provider network functions for the same service, and the at least two service discovery processes are respectively different services In the discovery process, the service discovery parameters of different service discovery processes are different.

可选地,所述的功能网元,其中,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the functional network element, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

可选地,所述的功能网元,其中,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, in the functional network element, when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different.

可选地,所述的功能网元,其中,所述服务发现判断条件为条件语句或条件表达式。Optionally, in the functional network element, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,所述的功能网元,其中,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the functional network element, the conditional statement and/or the conditional expression is logically nested.

另外,在图12中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1201代表的一个或多个处理器和存储器1203代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机1204可以是多个元件,即包括发送机和收发器,提供用于在传输介质上与各种其他装置通信的单元。处理器1201负责管理总线架构和通常的处理,存储器1203可以存储处理器1201在执行操作时所使用的数据。12, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented byprocessor 1201 and various circuits of memory represented bymemory 1203 linked together. The bus architecture may also link together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be described further herein. The bus interface provides the interface.Transceiver 1204 may be a number of elements, including transmitters and transceivers, that provide a means for communicating with various other devices over a transmission medium. Theprocessor 1201 is responsible for managing the bus architecture and general processing, and thememory 1203 may store data used by theprocessor 1201 in performing operations.

本发明实施例还提供另一种功能网元,如图13所示,包括:处理器1301;以及通过总线接口1302与所述处理器1301相连接的存储器1303,所述存储器1303用于存储所述处理器1301在执行操作时所使用的程序和数据,处理器1301调用并执行所述存储器1303中所存储的程序和数据。An embodiment of the present invention further provides another functional network element, as shown in FIG. 13 , including: aprocessor 1301; and amemory 1303 connected to theprocessor 1301 through abus interface 1302, where thememory 1303 is used to store all The program and data used by theprocessor 1301 when performing operations, theprocessor 1301 calls and executes the programs and data stored in thememory 1303 .

其中,收发机1304与总线接口1302连接,用于在处理器1301的控制下接收和发送数据,具体地,处理器1301用于读取存储器1303中的程序,执行下列过程:Thetransceiver 1304 is connected to thebus interface 1302 for receiving and transmitting data under the control of theprocessor 1301. Specifically, theprocessor 1301 is used to read the program in thememory 1303 and perform the following processes:

接收服务使用者网络功能发送的服务发现请求;其中,所述服务发现请求中包括用于至少两次服务发现过程的服务发现参数和服务发现判断条件;Receive a service discovery request sent by a service user network function; wherein, the service discovery request includes service discovery parameters and service discovery judgment conditions for at least two service discovery processes;

向所述服务使用者网络功能返回所述服务发现请求的服务发现响应。A service discovery response to the service discovery request is returned to the service consumer network function.

可选地,所述的功能网元,其中,所述至少两次服务发现过程均为针对同一服务的服务提供者网络功能的发现过程,且所述至少两次服务发现过程分别为不同的服务发现过程,不同的服务发现过程的服务发现参数不同。Optionally, in the functional network element, the at least two service discovery processes are both discovery processes of service provider network functions for the same service, and the at least two service discovery processes are respectively different services In the discovery process, the service discovery parameters of different service discovery processes are different.

可选地,所述的功能网元,其中,所述服务发现判断条件用于指示所述服务发现功能对所述服务发现参数进行分析的逻辑规则。Optionally, in the functional network element, the service discovery judgment condition is used to indicate a logic rule for the service discovery function to analyze the service discovery parameter.

可选地,所述的功能网元,其中,所述服务发现请求中所包括的服务发现参数不同时,所述服务发现响应中的服务发现结果不同;以及Optionally, in the functional network element, when the service discovery parameters included in the service discovery request are different, the service discovery results in the service discovery response are different; and

所述服务发现请求中所包括同一服务发现参数取值不同时,所述服务发现响应中的服务发现结果不同。可选地,所述的功能网元,其中,所述服务发现判断条件为条件语句或条件表达式。When the value of the same service discovery parameter included in the service discovery request is different, the service discovery result in the service discovery response is different. Optionally, in the functional network element, the service discovery judgment condition is a conditional statement or a conditional expression.

可选地,所述的功能网元,其中,所述条件语句和/或所述条件表达式为逻辑嵌套。Optionally, in the functional network element, the conditional statement and/or the conditional expression is logically nested.

另外,在图13中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1301代表的一个或多个处理器和存储器1303代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机1304可以是多个元件,即包括发送机和收发器,提供用于在传输介质上与各种其他装置通信的单元。处理器1301负责管理总线架构和通常的处理,存储器1303可以存储处理器1301在执行操作时所使用的数据。13, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented byprocessor 1301 and various circuits of memory represented bymemory 1303 linked together. The bus architecture may also link together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be described further herein. The bus interface provides the interface.Transceiver 1304 may be a number of elements, including transmitters and transceivers, that provide a means for communicating with various other devices over a transmission medium. Theprocessor 1301 is responsible for managing the bus architecture and general processing, and thememory 1303 may store data used by theprocessor 1301 when performing operations.

本领域技术人员可以理解,实现上述实施例的全部或者部分步骤可以通过硬件来完成,也可以通过程序来指示相关的硬件来完成,所述程序包括执行上述方法的部分或者全部步骤的指令;且该程序可以存储于一可读存储介质中,存储介质可以是任何形式的存储介质。Those skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program includes instructions for executing part or all of the steps of the above method; and The program may be stored in a readable storage medium, which may be any form of storage medium.

另外,本发明具体实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如上中任一项所述的服务发现方法中的步骤。In addition, a specific embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the steps in any one of the above service discovery methods are implemented.

在本申请所提供的几个实施例中,应该理解到,所揭露方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the apparatus 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 may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included individually, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.

上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述收发方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute part of the steps of the transceiving method described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM for short), Random Access Memory (RAM for short), magnetic disk or CD, etc. that can store program codes medium.

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

Claims (16)

CN201910940254.4A2019-09-302019-09-30 Service discovery method, device and functional network elementActiveCN112583873B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201910940254.4ACN112583873B (en)2019-09-302019-09-30 Service discovery method, device and functional network element
PCT/CN2020/116459WO2021063204A1 (en)2019-09-302020-09-21Service discovery method and apparatus, and function network element

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910940254.4ACN112583873B (en)2019-09-302019-09-30 Service discovery method, device and functional network element

Publications (2)

Publication NumberPublication Date
CN112583873A CN112583873A (en)2021-03-30
CN112583873Btrue CN112583873B (en)2022-07-19

Family

ID=75116206

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910940254.4AActiveCN112583873B (en)2019-09-302019-09-30 Service discovery method, device and functional network element

Country Status (2)

CountryLink
CN (1)CN112583873B (en)
WO (1)WO2021063204A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115243228B (en)*2021-04-022025-08-05华为技术有限公司 Communication method and device
CN114205902B (en)*2021-12-162024-12-13中国电信股份有限公司 Method, device, electronic device and medium for responding to discovery request in 5G network
CN118382062A (en)*2023-01-202024-07-23华为技术有限公司 A communication method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2018171316A1 (en)*2017-03-202018-09-27中国移动通信有限公司研究院Network function information interaction method and device, and computer storage medium
CN108989372A (en)*2017-06-022018-12-11华为技术有限公司 Method, Registry and Device for Service Discovery
CN109803242A (en)*2017-11-172019-05-24中兴通讯股份有限公司Method, equipment and the readable storage medium storing program for executing of NF discovery are carried out by NRF

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109041136B (en)*2017-06-122020-07-03电信科学技术研究院Method for inserting SMF and AMF entity
US10660016B2 (en)*2017-11-082020-05-19Ofinno, LlcLocation based coexistence rules for network slices in a telecommunication network
CN109995844B (en)*2018-01-032021-11-09中兴通讯股份有限公司Method and device for realizing control plane resource migration and network function entity
US10708318B2 (en)*2018-03-212020-07-07Ofinno, LlcSupporting termination access domain selection for a dual registered wireless device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2018171316A1 (en)*2017-03-202018-09-27中国移动通信有限公司研究院Network function information interaction method and device, and computer storage medium
CN108632312A (en)*2017-03-202018-10-09中国移动通信有限公司研究院Network function information interacting method and device
CN108989372A (en)*2017-06-022018-12-11华为技术有限公司 Method, Registry and Device for Service Discovery
CN109803242A (en)*2017-11-172019-05-24中兴通讯股份有限公司Method, equipment and the readable storage medium storing program for executing of NF discovery are carried out by NRF

Also Published As

Publication numberPublication date
CN112583873A (en)2021-03-30
WO2021063204A1 (en)2021-04-08

Similar Documents

PublicationPublication DateTitle
US11743699B2 (en)Method of discovering services provided by a network repository function
CN116057924B (en) Method, system and computer readable medium for providing network function discovery service enhancement
CN111278031B (en) PDU type setting method, UE policy setting method, entity and storage medium
WO2018153346A1 (en)Network slice selection method and device
CN112583873B (en) Service discovery method, device and functional network element
US11750708B2 (en)Method and device for proxy between different architectures
CN116827790A (en)Method for accessing network slice, electronic equipment and storage medium
WO2021027450A1 (en)Method and device for registering ims terminal, location information server, and storage medium
CN116669061A (en)User plane function selection method and device
CN110035040A (en)Method and device for signaling addressing
CN110740464A (en)NF service discovery method and device
CN114221959B (en) Service sharing method, device and system
CN115136546B (en) Method and network node for home charging of offload services at a visited network
WO2022111356A1 (en)Data migration method and system, and server and storage medium
CN118921404A (en)Distributed network selection method and device based on calculation force and readable storage medium
US20250150955A1 (en)Methods, apparatuses, and computer program products for enhancing local breakout sessions in roaming scenarios
CN118317281B (en)Network element discovery method, terminal registration method and related equipment
CN112153756B (en) A data processing method and communication device based on tunnel establishment service
CN110071945B (en)Subscription method and device for user data and computer readable storage medium
CN119544677A (en) Session establishment method, device, equipment and storage medium
JP2025519927A (en) Communication method and apparatus
WO2025214043A1 (en)Service session establishment method and apparatus, device, and storage medium
CN113709749A (en)Service processing method, device, system and computing equipment
CN118509836A (en)Method for selecting network function, and related device and system
CN118042646A (en)Data communication method, device, communication equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp