CN114039874B - Network function query method and device - Google Patents

Network function query method and device Download PDF

Info

Publication number
CN114039874B
CN114039874B CN202010706262.5A CN202010706262A CN114039874B CN 114039874 B CN114039874 B CN 114039874B CN 202010706262 A CN202010706262 A CN 202010706262A CN 114039874 B CN114039874 B CN 114039874B
Authority
CN
China
Prior art keywords
query
producer
description information
nrf
information set
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
CN202010706262.5A
Other languages
Chinese (zh)
Other versions
CN114039874A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN202010706262.5A priority Critical patent/CN114039874B/en
Publication of CN114039874A publication Critical patent/CN114039874A/en
Application granted granted Critical
Publication of CN114039874B publication Critical patent/CN114039874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5058Service discovery by the service manager
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Abstract

The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for querying a network function, which solve the problem of redundancy of querying steps caused by repeatedly sending a service discovery request when querying the network function, and the method includes: receiving an NF producer service discovery request carrying a parameter group, generating at least one description information set after querying, sending an NF producer service discovery response carrying at least one description information set to the NF consumer, and enabling the NF consumer to directly select the NF producer based on the description information set at least once when a target query basis when the NF producer is continuously queried is determined and the query basis corresponding to the description information set determined by the parameter group is the same. Therefore, when the query is carried out based on the query condition and the query range determined by the parameter group, the query operation with the same query basis is saved, the query process is simplified, the interaction burden of the process is reduced, and the interaction efficiency of the process is improved.

Description

Network function query method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for querying a network function.
Background
A fifth generation mobile communication system (5G) core Network based on a service architecture includes a plurality of Network Functions (NFs) capable of providing different services, respectively, and the NFs allow other NFs to call or use their own services by means of a service interface, and each NF must complete registration at a Network Registration Function (NRF) when starting up.
In the prior art, when a certain NF wants to query information of the certain NF, firstly, a function discovery request needs to be sent to the NRF, and a query to another NF is realized by means of the NRF, so as to realize interaction with the other NF, wherein the other NF providing a service is called "NF producer", and the certain NF accessing or calling the service is called "NF service consumer".
Referring to fig. 1, taking a scenario in which an Access and Mobility Management Function network element (Core Access and Mobility Management Function, AMF) requests to obtain a context created in a Session Management Function network element (SMF) as an example, a process of determining an available target SMF in an existing protocol is described:
s1: and the AMF sends an Nnrf _ NFdiscovery Request to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN and TAI.
The AMF sends a service discovery request Nnrf _ NFdiscovery requests to the NRF, wherein the service discovery request comprises Network fragmentation Information (S-NSSAI), a Data Network Name (DNN) and Tracking Area Identity (TAI) Information;
s2: and the NRF sends the Nnrf _ NFdiscovery Request carrying the query result to the AMF.
The NRF queries SMFs which can complete matching with S-NSSAI, DNN and TAI, and returns a query result to the AMF through service discovery response information, wherein the query result comprises description information of the SMFs which determine matching is completed.
S3: AMF determines that the SMF which is matched with S-NSSAI, DNN and TAI is not found based on the obtained query result.
S4: and the AMF sends an Nnrf _ NFdiscovery Request to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN and max number of SMF instances.
S5: the NRF sends the Nnrf _ NFdiscovery Response carrying the query result to the AMF.
The NRF determines SMF which can complete matching with S-NSSAI and DNN, and feeds back the query result to the AMF through the Nnrf _ NFdiscovery Response information.
S6: and the AMF selects a target SMF according to the obtained feedback result.
S7: the AMF sends an Nnrf _ NFdiscovery Request to the NRF.
The AMF sends an Nnrf _ NFDiscovery Request to the NRF, wherein the Nnrf _ NFDiscovery Request comprises S-NSSAI, DNN and SMF instance maximum value max number of SMF instance, so as to Request the NRF to query an intermediate SMF, namely I-SMF.
S8: the NRF sends the Nnrf _ NFdiscovery Response carrying the query result to the AMF.
S9: AMF determines I-SMF.
It can be seen that, in the process of one network function requesting to find another network function capable of meeting the service requirement, nrrf _ NFDiscovery Request service operation needs to be called to the NRF many times, which causes repetition of steps and query redundancy in the NRF query process, increases interaction burden of the process, and greatly affects interaction efficiency of the process.
In view of the above, a new query method is needed to overcome the above-mentioned drawbacks.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for querying a network function, which are used for solving the problem that query steps are redundant due to the fact that a service discovery request is repeatedly sent when the network function is queried in the prior art.
The embodiment of the present disclosure provides the following specific technical solutions:
in a first aspect, a method for querying a network function is provided, including:
a network registration storage function network element NRF receives a network function NF producer service discovery request sent by an NF consumer, wherein the NF producer service discovery request carries a parameter group used for limiting the NF producer query basis;
the NRF determines a query condition and at least one query range corresponding to the parameter group, completes query in the at least one query range based on the query condition, and generates at least one description information set containing query results corresponding to the at least one query range;
the NRF sends a NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the at least one description information set, so that the NF consumer can select the NF producer directly at least once based on the description information set when determining a target query basis when continuously querying the NF producer and the query basis corresponding to the description information set determined by the parameter set is the same.
Optionally, the NF consumer includes any of:
NF requesting to provide service;
a service communication proxy SCP requesting NF authorization to provide the service.
Optionally, the parameter set for defining the NF producer query condition includes any one of:
network fragmentation information S-NSSAI, data network name DNN and tracking area identification TAI;
network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI and NF producer instance maximum value;
the Target public land mobile network identifies a Target PLMN ID, a maximum number of instances of NF producers within the range of said Target PLMN, and a maximum number of instances of NF producers under the current PLMN.
Optionally, the parameter group is network fragmentation information S-NSSAI and a data network name DNN, and when the tracking area identifier TAI is used, the NRF determines a query condition and at least one query range corresponding to the parameter group, where the query condition and the at least one query range include:
the NRF determines a tracking area defined by the TAI as a query range and determines a match with the S-NSSAI and the DNN as corresponding query conditions.
Optionally, when the parameter group is S-NSSAI, DNN, TAI, and NF producer instance maximum, the NRF determines a query condition and at least one query range corresponding to the parameter group, including:
the NRF determines a matching with the S-NSSAI and the DNN as corresponding query conditions, determines a tracking area defined by the TAI as a query range, and determines an area governed by the NRF as a query range based on NF producer instance maximum values.
Optionally, when the parameter group is a Target public mobile network identifier, Target PLMN ID, a maximum number of instances of an NF producer within a range of the Target PLMN, and a maximum number of instances of an NF producer under a current PLMN, the NRF determines a query condition and at least one query range corresponding to the parameter group, including:
the NRF determines all NF producers that can provide services within the jurisdiction as corresponding query conditions, determines a jurisdiction under the network defined by the Target PLMN ID as a query scope, and determines a jurisdiction under the current network as a query scope.
Optionally, the generating at least one description information set containing query results corresponding to the at least one query range includes:
and the NRF obtains a query result of an NF producer which is matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, and generates a description information set containing the query result.
Optionally, after the NRF sends a NF producer service discovery response to the NF consumer, the NRF determines a target query basis for the NF consumer to determine to continue querying the NF producer, and when the query basis corresponding to the description information set determined by the parameter group is different from the query basis, further includes:
the NRF receives a NF producer service discovery request sent by the NF consumer again, wherein the NF producer service discovery request carries a reconfigured parameter group;
the NRF determines a target query range and a target query condition based on a target query basis corresponding to the reconfigured parameter group, completes query in the target query range based on the target query condition, and generates a target description information set which corresponds to the target query range and contains a query result;
the NRF sends a NF producer service discovery response to the NF consumer, the NF producer service discovery response carries the target description information set, and the NF consumer selects the NF producer based on the target description information set.
Optionally, the generating at least one description information set containing query results corresponding to the at least one query range includes:
the NRF obtains a first query result of an NF producer which is matched with the S-NSSAI and the DNN in a completion way in a tracking area defined by the TAI, and generates a first description information set containing the first query result;
and the NRF obtains a second query result of the NF producer matched with the S-NSSAI and the DNN in a managed area, and generates a second description information set containing the second query result.
Optionally, the generating at least one description information set containing query results corresponding to the at least one query range includes:
the NRF generates a third description information set containing a third query result obtained under the network defined by the Target PLMN ID based on the obtained third query result;
the NRF generates a fourth description information set containing a fourth query result based on the fourth query result obtained by querying in the jurisdiction area.
In a second aspect, a method for querying a network function is provided, including:
an NF consumer sends an NF producer service discovery request to an NRF, the NRF determines a query condition and at least one query range corresponding to the parameter group according to the parameter group carried in the NF producer service discovery request, completes the query in the at least one query range based on the query condition, and generates at least one description information set which corresponds to the at least one query range and contains the query result;
the NF consumer receives the NF producer service discovery response fed back by the NRF, and obtains at least one description information set carried in the NF producer service discovery response;
and when the NF consumer determines that the NF producer cannot be selected, continuously requesting to inquire the NF producer from the NRF based on the reconfigured parameter group, determining a query basis corresponding to the reconfigured parameter group, and directly selecting the NF producer based on the description information set at least once when the query basis corresponding to the received description information set is the same.
Optionally, the NF consumer includes any of:
NF requesting to provide service;
a service communication proxy SCP requesting NF authorization to provide the service.
Optionally, the parameter set for defining the NF producer query condition includes any one of:
network fragmentation information S-NSSAI, data network name DNN and tracking area identification TAI;
network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI and NF producer instance maximum value;
the Target public land mobile network identifies a Target PLMN ID, a maximum number of instances of NF producers within the range of said Target PLMN, and a maximum number of instances of NF producers under the current PLMN.
Optionally, the determining a query basis corresponding to the reconfigured parameter group and a query basis corresponding to the received description information set are different, further includes:
the NF consumer sends a NF producer service discovery request to the NRF again, wherein the NF producer service discovery request carries a reconfigured parameter group;
the NF consumer receives an NF producer service discovery response sent by the NRF, and the NF producer service discovery influence carries a target description information set which is inquired and generated by the NRF based on the reconfigured parameter group;
the NF consumer selects an NF producer based on the set of target description information.
In a third aspect, an apparatus for querying a network function is provided, which includes at least a memory and a processor, where the processor is configured to read a program in the memory and perform the following operations:
receiving a network function NF producer service discovery request sent by an NF consumer, wherein the NF producer service discovery request carries a parameter group used for limiting the NF producer query basis;
determining a query condition and at least one query range corresponding to the parameter group, completing query in the at least one query range based on the query condition, and generating at least one description information set containing query results corresponding to the at least one query range;
and sending an NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the at least one description information set, so that the NF consumer directly selects the NF producer based on the description information set at least once when determining a target query basis when continuously querying the NF producer and when the query basis corresponding to the description information set determined by the parameter group is the same.
Optionally, the NF consumer includes any of:
NF requesting to provide service;
a service communication proxy SCP requesting NF authorization to provide the service.
Optionally, the parameter set for defining the NF producer query condition includes any one of:
network fragmentation information S-NSSAI, data network name DNN and tracking area identification TAI;
network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI and NF producer instance maximum value;
the Target public land mobile network identifies a Target PLMN ID, a maximum number of instances of NF producers within the range of said Target PLMN, and a maximum number of instances of NF producers under the current PLMN.
Optionally, the parameter group includes network fragmentation information S-NSSAI, a data network name DNN, and a tracking area identifier TAI, and when the NRF determines a query condition and at least one query range corresponding to the parameter group, the processor is configured to:
and determining the tracking area defined by the TAI as a query range, and determining the matching with the S-NSSAI and the DNN as corresponding query conditions.
Optionally, the parameter group is S-NSSAI, DNN, TAI, and NF producer instance maximum, and when the NRF determines the query condition and at least one query range corresponding to the parameter group, the processor is configured to:
determining a query condition corresponding to the S-NSSAI and the DNN match, and determining a tracking area defined by the TAI as a query scope, and determining a region governed by the NRF as a query scope based on NF producer instance maximum.
Optionally, the parameter set is a Target public mobile network identifier, Target PLMN ID, a maximum number of instances of the NF producer within a range of the Target PLMN, and a maximum number of instances of the NF producer under a current PLMN, and when the NRF determines a query condition and at least one query range corresponding to the parameter set, the processor is configured to:
all NF producers which can provide service in the jurisdiction are determined as corresponding query conditions, the area which is governed under the network defined by the Target PLMN ID is determined as a query range, and the area which is governed under the current network is determined as a query range.
Optionally, when generating at least one set of description information including query results corresponding to the at least one query range, the processor is configured to:
and obtaining the query result of the NF producer which is matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, and generating a description information set containing the query result.
Optionally, after the NRF sends an NF producer service discovery response to the NF consumer, the NRF determines a target query criterion when the NF consumer determines to continue querying the NF producer, and when the query criterion corresponding to the description information set determined by the parameter group is different, the processor is further configured to:
receiving a service discovery request of the NF producer sent by the NF consumer again, wherein the service discovery request of the NF producer carries a reconfigured parameter group;
determining a target query range and a target query condition based on a target query basis corresponding to the reconfigured parameter group, completing query in the target query range based on the target query condition, and generating a target description information set containing a query result corresponding to the target query range;
and sending an NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the target description information set, and the NF consumer selects an NF producer based on the target description information set.
Optionally, when generating at least one set of description information including query results corresponding to the at least one query range, the processor is configured to:
obtaining a first query result of an NF (noise root) producer which is matched with the S-NSSAI and the DNN completely in a tracking area defined by the TAI, and generating a first description information set containing the first query result;
and the NRF obtains a second query result of the NF producer matched with the S-NSSAI and the DNN in a managed area, and generates a second description information set containing the second query result.
Optionally, when generating at least one set of description information including query results corresponding to the at least one query range, the processor is configured to:
generating a third description information set containing a third query result obtained under the network defined by the Target PLMN ID based on the obtained third query result;
the NRF generates a fourth description information set containing a fourth query result based on the fourth query result obtained by querying in the governed area.
In a fourth aspect, an apparatus for querying a network function at least includes a processor and a memory, where the processor is configured to read a program in the processor and perform the following operations:
sending a NF producer service discovery request to an NRF, enabling the NRF to determine a query condition and at least one query range corresponding to the parameter group according to the parameter group carried in the NF producer service discovery request, completing query in the at least one query range based on the query condition, and generating at least one description information set which corresponds to the at least one query range and contains a query result;
receiving NF producer service discovery response fed back by the NRF, and acquiring at least one description information set carried in the NF producer service discovery response;
and when determining that the NF producer cannot be selected, continuously requesting to query the NF producer from the NRF based on the reconfigured parameter group, determining a query basis corresponding to the reconfigured parameter group, and directly selecting the NF producer based on the description information set at least once when the query basis corresponding to the received description information set is the same.
Optionally, the NF consumer comprises any one of:
NF requesting to provide service;
a service communication proxy SCP requesting NF authorization to provide the service.
Optionally, the parameter set for defining the NF producer query condition includes any one of:
network fragmentation information S-NSSAI, data network name DNN and tracking area identification TAI;
network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI and NF producer instance maximum value;
the Target public land mobile network identifies a Target PLMN ID, a maximum number of instances of NF producers within the range of said Target PLMN, and a maximum number of instances of NF producers under the current PLMN.
Optionally, when determining the query basis corresponding to the reconfigured parameter group is different from the query basis corresponding to the received description information set, the processor is further configured to:
sending a NF producer service discovery request to the NRF again, wherein the NF producer service discovery request carries a reconfigured parameter group;
receiving a NF producer service discovery response sent by the NRF, wherein the NF producer service discovery influence carries a target description information set generated by the NRF based on the reconfigured parameter group;
based on the set of target description information, an NF producer is selected.
In a fifth aspect, an apparatus for querying a network function is provided, including:
the NF producer service discovery system comprises a receiving unit, a service discovery unit and a service discovery unit, wherein the receiving unit receives a network function NF producer service discovery request sent by an NF consumer, and the NF producer service discovery request carries a parameter group used for limiting the inquiry basis of an NF producer;
the query unit is used for determining a query condition and at least one query range corresponding to the parameter group, completing query in the at least one query range based on the query condition, and generating at least one description information set containing a query result corresponding to the at least one query range;
and the sending unit is used for sending an NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the at least one description information set, so that the NF consumer can directly select the NF producer based on the description information set at least once when a target query basis is determined when the NF consumer continuously queries the NF producer and the query basis corresponding to the description information set determined by the parameter group is the same.
In a sixth aspect, an apparatus for querying a network function is provided, including:
a sending unit, configured to send an NF producer service discovery request to an NRF, enable the NRF to determine, according to a parameter group carried in the NF producer service discovery request, a query condition and at least one query range corresponding to the parameter group, complete a query within the at least one query range based on the query condition, and generate at least one description information set containing a query result corresponding to the at least one query range;
the receiving unit is used for receiving NF producer service discovery response fed back by the NRF and acquiring at least one description information set carried in the NF producer service discovery response;
and the determining unit is used for continuously requesting to inquire the NF producers from the NRF based on the reconfigured parameter group when determining that the NF producers cannot be selected, determining inquiry bases corresponding to the reconfigured parameter group, and directly selecting the NF producers based on the description information set at least once when the inquiry bases corresponding to the received description information set are the same.
In a seventh aspect, a storage medium is proposed, in which instructions are executed by a processor, so as to perform the query method of the network function according to any one of the above first aspect.
In an eighth aspect, a storage medium is proposed, in which instructions that, when executed by a processor, enable execution of the query method of the network function of any one of the above second aspects.
The beneficial effects of this disclosure are as follows:
the invention provides a method and a device for inquiring network functions, wherein an NRF receives an NF producer service discovery request sent by an NF consumer, wherein the NF service discovery request carries a parameter group for limiting the NF producer inquiry basis, further determines an inquiry condition and at least one inquiry range corresponding to the parameter group, completes inquiry in the at least one inquiry range based on the inquiry condition, generates at least one description information set containing inquiry results corresponding to the at least one inquiry range, and then sends an NF producer service discovery response to the NF consumer, the NF producer service discovery response carries the at least one description information set, so that the NF consumer can continuously inquire the NF producer according to a target inquiry basis when determining that the NF producer is inquired continuously, and the inquiry basis corresponding to the description information set determined by the parameter group is the same, at least once, selecting an NF producer based directly on the one set of descriptive information. Therefore, when the query is carried out based on the query condition and the query range determined by the parameter group, the query operation with the same query range is saved, the query process is simplified, the interaction burden of the process is reduced, and the interaction efficiency of the process is improved.
Drawings
FIG. 1 is a schematic diagram of a query flow in the prior art in an embodiment of the present disclosure;
FIG. 2 is a diagram of a 5G services system architecture involved in an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a query flow of NRF-side network functions in an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating a query flow of network functions involved by NF consumers in an embodiment of the present disclosure;
fig. 5 is a schematic diagram of an interaction flow involved in embodiment 1 of the present disclosure;
fig. 6 is a schematic diagram of an interaction flow involved in embodiment 2 of the present disclosure;
fig. 7 is a schematic diagram of an interaction flow involved in embodiment 3 of the present disclosure;
FIG. 8 is a schematic diagram of an interaction flow involved in embodiment 4 of the present disclosure;
fig. 9 is a schematic diagram of an interaction flow involved in embodiment 5 of the present disclosure;
FIG. 10 is a schematic diagram of an interaction flow involved in embodiment 6 of the present disclosure;
fig. 11 is a schematic diagram of an interaction flow involved in embodiment 7 of the present disclosure;
FIG. 12 is a schematic diagram illustrating an interaction flow involved in embodiment 8 of the present disclosure;
fig. 13 is a schematic physical structure diagram of an NRF-side network function query apparatus according to an embodiment of the present disclosure;
fig. 14 is a schematic logical structure diagram of an apparatus for querying a NRF-side network function according to an embodiment of the present disclosure;
FIG. 15 is a block diagram illustrating an exemplary physical structure of an exemplary query device for NF consumer network functions in accordance with an embodiment of the present disclosure;
fig. 16 is a schematic logical structure diagram of an inquiry apparatus for NF consumer network functions in the embodiment of the present disclosure.
Detailed Description
In order to solve the problem of redundant query steps caused by repeatedly sending service discovery requests when a NF consumer sends a NF producer service discovery request to an NRF for the first time, the present disclosure proposes that when the NF consumer sends a NF producer service discovery request to the NRF, a parameter group for defining a basis for querying the NF producer is carried in the NF producer service discovery request, then the NRF determines a query condition and at least one query range corresponding to the parameter group, completes querying in the at least one query range based on the query condition, generates at least one description information set containing query results corresponding to the at least one query range, then the NRF sends a NF producer service discovery response to the NF consumer, the service discovery response carries the at least one description information set, and enables the NF consumer to determine a target query range when continuing to query the NF producer, and when one query range determined by the parameter group is the same, selecting the NF producer at least once based on the description information set corresponding to the query range.
Therefore, at least one description information set can be determined based on at least one query range in the initial query, and when the subsequent NF consumer intends to query the NF producer again and the target query range is one of the at least one query range, the NF producer is selected at least once based on the description information set corresponding to the query range obtained in the initial query, so that the combination and simplification of query operation are realized, and the redundancy of query steps is avoided.
Referring to fig. 2, in the current 5G core network, a Service-based Architecture (SBA) is proposed, and services communicate with each other through a lightweight interface, as illustrated in fig. 2: the Namf interface is a light weight interface based on service shown by AMF, the Nsmf interface is a light weight interface based on service shown by SMF, and the Nnrf interface is a light weight interface based on service shown by NRF.
It should be noted that, in the existing 5G-serviced network architecture, each NF needs to complete registration authorization at the NRF, and is managed by the NRF, allowing the NRF to query the current state, and can be used as an NF consumer and an NF producer to complete a service establishment request. Further, the NRF receives a service discovery request for the NF producer sent by the NF consumer, where the service discovery request carries a parameter group required for characterizing the query, and further, the NRF carries a description information set of the query result in the fed back service discovery response, so that the NF consumer can determine a target NF producer, and further send a service establishment request to the determined target NF service provider.
In the disclosed embodiment, the NF consumer is a network element capable of invoking a request for NF discovery Service, including but not limited to an NF that requests to provide Service and an NF Communication Proxy (SCP) authorized by the NF that requests to provide Service, where the NF consumer is capable of invoking a request for NF discovery Service, and the NF producer is specifically an NF Service provider capable of providing corresponding Service.
Preferred embodiments of the present disclosure are described in further detail below with reference to fig. 3:
step 301: and receiving an NF producer service discovery request sent by an NF consumer, wherein the NF service discovery request carries a parameter group for limiting the NF producer query basis.
Specifically, the NRF receives an NF producer service discovery request sent by an NF consumer, and obtains a parameter set carried in the NF producer service discovery request and used for defining an NF producer query basis, where the query basis specifically includes a query condition and a query range, where a combination manner of the query condition and the query range may be configured by itself according to actual needs, which is not described herein again.
In the embodiment of the present disclosure, there are two cases for the NF consumer, in one case, the NF directly sends the NF producer service discovery request to the NRF, and in another case, the SCP sends the NF producer service discovery request to the NRF because the NF establishes a relationship with the SCP in advance to delegate discovery.
In case one, the NRF receives a NF producer service discovery request sent by a NF consumer requesting SCP.
After the NRF determines to receive the NF producer service discovery request sent by the SCP, the NRF determines the parameter group carried in the NF service discovery request and used for limiting the NF producer query basis, wherein the parameter group comprises but is not limited to any one group of the following groups:
a1, network fragmentation information S-NSSAI, data network name DNN and tracking area identification TAI;
a2, network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI, and NF producer instance maximum;
a3, Target public mobile network identity Target PLMN ID, maximum number of instances of NF producers within said Target PLMN range, and maximum number of instances of NF producers under the current PLMN.
Specifically, the NRF determines that the received parameter set is specifically a Target Public Land mobile network Identity (Target PLMN ID), a maximum number of instances of the NF producers within the range of the Target PLMN, and a maximum number of instances of the NF producer under the current PLMN.
For example, if the Target network is a Home network, the current network is a VPMN network, and the NF producer is specifically an SMF, the current Target PLMN ID is specifically a Target PLMN ID of the H-SMF, the maximum number of instances of the NF producer is denoted as max number of H-SMF instances, and the maximum number of instances of the NF producer under the current PLMN is denoted as max number of V-SMF instances.
In case two, the NRF receives an NF producer service discovery request directly sent by the NF requesting to provide the service.
After receiving the NF producer service discovery request, the NRF determines a parameter group carried in the NF service discovery request and used for defining the NF producer query basis, where parameters included in the parameter group are the same as those in the first case, and are not described herein again.
It should be noted that, after the SCP establishes the relationship of delegated discovery with the NF, the SCP can send a NF producer service discovery request to the NRF based on the service demand of the NF for the NF producer, and then receive a service discovery response of the NRF, and finally the NF and the SCP assist in completing the selection of the NF producer.
Step 302: the NRF determines a query condition and at least one query range corresponding to the parameter group, completes the query in the at least one query range based on the query condition, and generates at least one description information set containing query results corresponding to the at least one query range.
The NRF determines a query basis for the NF producer after finding a parameter group carried in a received NF producer service discovery request, specifically, determines a query condition and at least one query range corresponding to the parameter group, further completes a query in the at least one query range based on the query condition, and generates at least one description information set containing a query result corresponding to the at least one query range.
The following description is directed to the establishment process of the at least one description information set in different scenarios in the two cases defined in step 301.
Case1, parameter set: S-NSSAI, DNN, and TAI.
Specifically, when the NRF determines that the parameter group is S-NSSAI, DNN, and TAI, the NRF determines the tracking area defined by the TAI as a query range, and determines matching with the S-NSSAI and the DNN as a corresponding query condition.
Further, the NRF obtains the query result of the NF producer completing the matching with the S-NSSAI and the DNN within the tracking area defined by the TAI, and generates a description information set containing the query result.
It should be noted that if the NRF finds an NF producer meeting the requirement in the query range based on the query condition, the NRF establishes a description information set based on the description information of the found NF producer, whereas if the NRF does not find an NF producer meeting the requirement in the query range based on the query condition, the NRF establishes a description information set based on a result of the failure of the query.
Case2, parameter set: S-NSSAI, DNN, TAI, and NF Producer instance maximum.
Specifically, when the NRF determines that the parameter set is S-NSSAI, DNN, TAI, and NF producer instance maximum, the NRF determines that the S-NSSAI and the DNN match with each other as corresponding query conditions, determines the tracking area defined by the TAI as a query range, and determines the area governed by the NRF as a query range based on the NF producer instance maximum.
Further, the NRF obtains a first query result of a NF producer completing matching with the S-NSSAI and the DNN in a tracking area defined by the TAI, and generates a first description information set containing the first query result;
and the NRF obtains a second query result of the NF producer matched with the S-NSSAI and the DNN in a managed area, and generates a second description information set containing the second query result.
It should be noted that the references to "first" and "second" in the embodiments of the present disclosure are merely used as identifiers, and do not limit the completion sequence of the operations.
Case3, Target PLMN ID, maximum number of NF producers within the range of the Target PLMN, and maximum number of NF producers under the current PLMN.
Specifically, when the NRF determination parameter group is a Target PLMN ID, the maximum number of instances of the NF producers within the range of the Target PLMN, and the maximum number of instances of the NF producers under the current PLMN, the NRF determines all NF producers that can provide services within the jurisdiction as corresponding query conditions, determines a jurisdiction under the network defined by the Target PLMN ID as a query range, and determines a jurisdiction under the current network as a query range.
Further, the NRF generates a third set of description information including a third query result obtained under the network defined by the Target PLMN ID, based on the obtained third query result;
the NRF generates a fourth description information set containing a fourth query result based on the fourth query result obtained by querying in the governed area.
It should be noted that "third" and "fourth" mentioned in the embodiments of the present disclosure are merely used as identifiers, and do not limit the completion sequence of the operations.
Step 303: the NRF sends an NF producer service discovery response to the NF consumer, and the NF consumer is enabled to determine a target query basis when continuously querying the NF producer, and directly select the NF producer based on one description information set at least once when the query basis corresponding to the description information set determined by the parameter group is the same.
The NRF sends a NF producer service discovery response to the NF consumer, wherein the NF service discovery response carries the generated at least one description information set, and further, the NF consumer is enabled to determine a target query basis when continuously querying the NF producer, and determine that the target query basis is the same as the description information set determined by the parameter group, and the NF producer is directly selected at least once based on the description information set.
For example, the NRF receives a query sent by a NF consumer based on: the service discovery method comprises the steps of service discovery requests of a query condition A, a query range B and a query range C, NRF generates a first description information set based on a query result after completing query in the query range B based on the query condition A, generates a second description information set based on the query result after completing query in the query range C based on the query condition A, and when the parameter group queried again is determined to correspond to the query condition A and the query range C, the target query basis queried again can be determined to be the same as the query basis corresponding to the second description information set.
The following will proceed to the detailed description of the different operation scenarios involved after the NRF sends the NF producer service discovery response based on the different parameter sets in the two cases involved in step 301 and step 302.
In case one, the NRF receives a NF producer service discovery request sent by an SCP requesting NF authorization to provide services.
It should be noted that, when the NF that requests to provide service authorizes the SCP to perform delegated discovery, first, the NF that requests to provide service sends a service establishment request for invoking an NF producer to the SCP, where the service establishment request carries a discovery and selection parameter set for determining a query basis of the NF producer, so that the SCP sends the NF producer service discovery request carrying the parameter set to the NRF based on the discovery and selection parameter set, and receives an NF producer service discovery response sent by the NRF.
When the TAI exists in the parameter group, the NRF queries the NF producers meeting the query conditions in the query area determined by the TAI, and the service interaction between the NF which requests to provide service and the NF producers is established without selecting an intermediate NF producer for assisting the transmission, and the SCP can directly determine a target NF producer in the query area determined by the TAI to realize the transmission of the service information. The embodiment of the disclosure only limits a scene in which an intermediate NF producer must be selected and service information is forwarded to a target NF producer when the NF producer cannot be determined based on the query condition in a query area defined by the TAI.
Case1, parameter set: S-NSSAI, DNN, TAI, and NF Producer instance maximum.
NRF determines the parameter set as: when the maximum values of the S-NSSAI, DNN, TAI, and NF producer instances are obtained, the NRF performs querying according to query conditions in two query ranges determined by the maximum values of the TAI and NF producer instances based on query bases corresponding to parameter groups, and generates a first description information set and a second description information set including respective query results of the two query ranges, and the target query bases corresponding to the parameter groups reconfigured by the NF consumer in a continuous query process are the same as the query bases corresponding to the second description information set, including the following three scenarios.
Scene 1, when a certain intermediate NF producer and a target NF producer need to be queried and are configured in the process of continuously requesting to query the intermediate NF and the target NF, a target NF producer is determined directly according to a first description information set and a second description information set carried in an initially received NF producer service discovery response, but the intermediate NF producer cannot be determined directly, and an NRF receives NF producer service discovery requests twice in total in a complete flow of querying the NF producer.
Specifically, after the NRF sends a service discovery response to the SCP, when the SCP cannot currently determine the target NF producer directly according to the first description information set, the NF that requests to provide the service directly determines the target NF producer based on the second description information set, and receives again the producer NF service discovery request carrying the reconfigured parameter set obtained by the SCP receiving again the service establishment request from the NF that requests to provide the service.
And after the NRF finishes the query, the NRF sends an intermediate NF description information set carrying a query result to the SCP, and the SCP determines an intermediate NF producer according to the intermediate NF description information set.
And 2, in the process of continuously requesting to query the intermediate NF producer and the target NF producer, the SCP is configured to determine the target NF producer and the intermediate NF producer directly according to a first description information set and a second description information set carried in the initially received NF service discovery response of the NF producer, and the NRF receives the NF producer service discovery request once in the complete process of querying the NF producer.
After the NRF sends a service discovery response to the SCP, when the SCP cannot directly determine a target NF generator according to the first description information set at present, the NF requesting to provide the service is enabled to directly select the target NF generator based on the second description information set, and the SCP is enabled to directly select an intermediate NF generator based on the second description information set.
And 3, in the process of continuously requesting to query the intermediate NF producer and the target NF producer, the SCP is configured to determine the intermediate NF producer directly according to the first description information set and the second description information set carried in the initially received NF producer service discovery response, and the NRF receives two NF producer service discovery requests in total in the complete process of querying the NF producer.
Specifically, after an NRF sends a service discovery response to an SCP, when the SCP cannot currently determine a target NF producer directly according to a first description information set, service request feedback information carrying the first description information set and a second description information set is sent to an NF that requests a service, the NRF receives again an NF producer service discovery request sent by the NF that requests the service, the NF producer service discovery request carries a reconfigured parameter set for determining a target query basis of the target NF producer, and then, after the target NF producer is selected based on a result of NRF re-query feedback, the SCP directly determines an intermediate NF producer based on the second description information set.
And after the NRF completes re-query, sending a target NF description information set carrying a query result to the NF requesting for providing the service, enabling the NF requesting for providing the service to select a target NF producer according to the target NF description information set, and enabling the SCP to select an intermediate NF producer based on the second description information set.
And in case two, the NRF receives the NF producer service discovery request directly sent by the NF.
It should be noted that, when the TAI exists in the parameter group, the NRF queries the NF producer meeting the query condition in the query area determined by the TAI, and then indicates that the NF consumer does not need to select an intermediate NF producer for assisting in sending when establishing service interaction with the NF producer, and can directly select a target NF producer in the query area determined by the TAI to implement sending of service information. The embodiment of the disclosure only limits a scene in which an intermediate NF producer must be selected and service information is forwarded to a target NF producer when the NF producer cannot be determined based on the query condition in a query area defined by the TAI.
Case1, parameter set: S-NSSAI, DNN, TAI, and NF Producer instance maximum.
NRF determines the parameter set as: when the parameter set of the NRF is the maximum value of the NF producer, the NRF determines a query condition and a query range based on the query basis corresponding to the parameter set, performs query according to the query condition in two query ranges determined by the maximum values of the TAI and the NF producer, generates a first description information set and a second description information set including respective query results in the two query ranges, and includes the following three scenarios when the target query basis corresponding to the parameter set reconfigured by the NF consumer in the process of continuing the query is the same as the query basis corresponding to the second description information set.
And 4, in the process that the NF consumer needs to select an intermediate NF producer and a target NF producer, and the NF consumer is configured to determine the intermediate NF producer and the target NF producer directly according to the first description information set and the second description information set carried in the initially received NF producer service discovery response, the NRF receives the NF service discovery request of the NF consumer only once in a complete query flow of the NF producer.
After the NRF sends a service discovery response to the NF consumer, when the NF consumer cannot determine a target NF producer directly according to the first description information set at present, the NF consumer is enabled to select the target NF producer and the intermediate NF producer successively based on the second description information set when determining to continuously inquire the NF producer.
And 5, in the process that the NF consumer needs to select an intermediate NF producer and a target NF producer, the NF consumer is configured to determine the intermediate NF producer directly according to a first description information set and a second description information set carried in an initially received NF producer service discovery response in the process of continuously requesting to query the intermediate NF producer and the target NF producer, and the NRF receives two NF producer service discovery requests in a complete flow of querying the NF producer.
And after the NRF sends a service discovery response to the NF consumer, when the NF consumer cannot directly determine the target NF producer according to the first description information set at present, receiving the NF producer service discovery request sent by the NF consumer and carrying the query range and the query condition of the determined target NF producer again.
And after the NRF completes the query, sending a target NF description information set carrying a query result to the NF consumer, and enabling the NF consumer to determine a target NF producer according to the target NF description information set. Further, an intermediate NF producer is selected based directly on the second set of description information.
It should be noted that, in all scenarios related to the present disclosure, the NF consumer selects the basis of the target NF producer and the intermediate NF producer based on the description information set, and conforms to the existing selection policy, which is not described herein again.
And 6, in the process that the NF consumer needs to select an intermediate NF producer and a target NF producer, the NF consumer is configured to determine the target NF producer directly according to a first description information set and a second description information set carried in an initially received NF producer service discovery response in the process of continuously requesting to query the intermediate NF producer and the target NF producer, and the NRF receives two NF producer service discovery requests in a complete flow of querying the NF producer.
And after the NRF sends a service discovery response to the NF consumer, when the NF consumer cannot directly determine the intermediate NF producer according to the first description information set at present, the NRF receives the NF producer service discovery request sent by the NF consumer and carrying the query range and the query condition of the determined intermediate NF producer again.
Specifically, the NF consumer determines a target NF producer according to the second description information set, and then determines an intermediate NF producer based on an intermediate NF description information set that is sent by the NRF after requesting query from the NRF again and carries a query result.
It should be noted that, the process of selecting the target NF and the intermediate NF by the NF consumer based on the description information set conforms to the existing selection policy, and is not described herein again.
Case2, parameter set: S-NSSAI, DNN, and TAI.
NRF determines the parameter set as: and in the case of S-NSSAI, DNN and TAI, the NRF queries a query range determined by the TAI according to query conditions based on query bases corresponding to the parameter group, and then generates a description information set of query results included in the query range. And the query basis corresponding to the parameter group carried in the service discovery request sent by the NF consumer subsequently received is different from the one description information set, there are the following scenarios.
Scene 7, when an NF consumer needs to select an intermediate NF producer and a target NF producer, and the determined query basis of the NF consumer when the NF consumer initially requests for query is different from the target query basis of the NF consumer when the NF consumer determines to continue querying for NF, the NRF receives NF producer service discovery requests sent by the NF consumer twice in a complete flow of querying the NF producer.
After the NRF sends a service discovery response to the NF consumer, when the NF consumer cannot directly determine the NF currently according to the obtained description information set, the NRF receives the NF service discovery request which is sent by the NF consumer and carries the query range and the query condition of the determined NF again.
Specifically, the NRF receives a NF producer service discovery request sent by the NF consumer again, where the NF producer service discovery request carries a reconfigured parameter group, then determines a target query range and a target query condition based on a target query basis corresponding to the reconfigured parameter group, completes a query in the target query range based on the target query condition, generates a target description information set including a query result corresponding to the target query range, and sends a NF producer service discovery response to the NF consumer, where the NF producer service discovery response carries the target description information set, so that the NF consumer selects an NF producer based on the target description information set.
And after the NRF completes the query, sending a target description information set carrying a query result to the NF consumer through NF producer service discovery response, and enabling the NF consumer to select a target NF producer and a middle NF producer according to the target description information set.
It should be noted that, the process of the NF consumer selecting the target NF producer and the intermediate NF producer based on the description information set conforms to the existing selection policy, and is not described herein again.
Case3, the parameter set is Target PLMN ID, the maximum number of instances of NF producers within the range of Target PLMN, and the maximum number of instances of NF producers under the current PLMN.
NRF determines the parameter set as: when the Target PLMN ID, the maximum number of instances of NF within the range of the Target PLMN and the maximum number of instances of NF producers under the current PLMN are present, the NRF determines a query range in the area governed by the Target PLMN and a query range in the area governed by the current PLMN based on the query basis corresponding to the parameter group, and takes all NF producers capable of providing service as query conditions. And then, a third description information set corresponding to the area governed by the Target PLMN and a fourth description information set corresponding to the area governed by the current PLMN are generated after the query is completed based on the determined query range and the query condition, and the following scenes exist when the Target query basis corresponding to the reconfigured parameter group carried in the service discovery request sent by the NF consumer received subsequently is the same as the query basis corresponding to the third description information set or the fourth description information set.
It should be noted that, because the Target PLMN ID defines a network environment different from that of the current PLMN, the NRF needs to determine a Target PLMN NRF capable of establishing an interaction relationship in the network corresponding to the corresponding Target PLMN ID, to obtain a third query result of the Target PLMN NRF based on all queried NF producers capable of providing service, generating a third description information set containing the third query result, meanwhile, the NRF obtains the fourth query results of all the queried NF capable of providing services in the area range governed by the current network, generates a fourth description information set containing the fourth query results, and the NF consumer must select an intermediate NF producer under the current network and a Target NF producer under the selected Target PLMN network, and forwarding the service information to a Target NF producer under the Target PLMN network through an intermediate NF producer.
Scene 8, an intermediate NF producer and a target NF producer need to be selected by an NF consumer, the NF consumer determines the target NF producer based on third description information and fourth description information obtained after a service discovery request is sent for the first time, when it is determined to continuously query the intermediate NF producer, the intermediate NF producer is determined directly according to a third description information set and fourth description information carried in a service discovery response received for the first time, and an NRF receives the NF producer service discovery request sent by the NF consumer only once in a complete query flow to the NF producer.
And after the NRF sends a service discovery response to the NF consumer, the NF consumer is enabled to directly select based on the third description information set when selecting a target NF producer, and directly select based on the fourth description information set when selecting an intermediate NF producer.
It should be noted that, in the embodiment of the present disclosure, an effective duration may be set in advance for information received by the NF and the SCP of the involved request service, where the effective duration is used to characterize that when the NF or the SCP of the request service receives an NF service discovery response of an NF producer fed back by the NRF, the obtained information may be used for a duration of a selected operation of an NF consumer, and when the effective duration is determined to be exceeded, the NF producer service discovery request needs to be resent, and the query operation is performed again.
In the following, referring to fig. 4, a query flow of the NF producer from the perspective of the NF consumer in the embodiment of the present disclosure is described.
Step 401: the NF consumer sends a NF producer service discovery request to an NRF, the NRF determines a query condition and at least one query range corresponding to the parameter group according to the parameter group carried in the NF producer service discovery request, completes the query in the at least one query range based on the query condition, and generates at least one description information set which corresponds to the at least one query range and contains the query result.
Specifically, a service discovery request of the NF producer is sent to an NRF, and the service discovery request of the NF producer of the NF consumer carries a parameter group for limiting the inquiry basis of the NF producer.
And enabling the NRF to determine a query condition and at least one query range corresponding to the parameter group according to the parameter group carried in the NF producer service discovery request, completing query in the at least one query range based on the query condition, and generating at least one description information set which corresponds to the at least one query range and contains a query result.
It should be noted that, when determining that the SCP is authorized to perform delegation discovery, the NF requesting to provide a service may request the SCP to send a NF producer service discovery request to the NRF, where the request is made by sending a service establishment request carrying parameters for discovering and selecting an NF producer to the SCP.
Specifically, the configuration of the parameter group and the corresponding scenario are already described in detail in the flow corresponding to fig. 3, and are not described herein again.
Step 402: and the NF consumer receives the NF producer service discovery response fed back by the NRF and acquires at least one description information set carried in the NF producer service discovery response.
And after the NF consumer receives the NF producer service discovery response fed back by the NRF, sequentially determining a target NF producer and an intermediate NF producer based on at least one description information set carried in the NF service discovery response.
The process of determining the target NF producer and the intermediate NF producer in different scenarios is already described in detail in the flow description corresponding to fig. 3, and is not described herein again.
Step 403: and when the NF consumer determines that the NF producer cannot be selected, continuously requesting to inquire the NF producer from the NRF based on the reconfigured parameter group, determining a query basis corresponding to the reconfigured parameter group, and directly selecting the NF producer based on the description information set at least once when the query basis corresponding to the received description information set is the same.
For the process of selecting the NF producer by the NF consumer in different scenarios, details are already described in the corresponding flow of fig. 3, and are not repeated herein.
It should be noted that, when the query basis corresponding to the reconfigured parameter group is determined to be different from the query basis corresponding to the received description information set, the NF consumer sends a NF producer service discovery request to the NRF again, where the NF producer service discovery request carries the reconfigured parameter group, and then receives a NF producer service discovery response sent by the NRF, where the NF producer service discovery influence carries a target description information set generated by querying the NRF based on the reconfigured parameter group, and then selects an NF producer based on the target description information set.
Further, it should be noted that, in the embodiment of the present disclosure, the NF consumer and the NF producer may be any two NFs in the network architecture shown in fig. 2, which may serve as a service provider and a consumer, and the NRF has a redundant query flow when querying the service provider, and the example of the present disclosure is not limited in this respect.
In the following embodiments, corresponding to the scenarios involved in step 303, only the NF consumer is the SCP delegated by the AMF or the AMF, the target NF producer is the SMF or V-SMF, and the intermediate NF producer is the I-SMF, for example, a process of establishing a context in the SMF by requesting the service using the SMF by the AMF is described.
The first embodiment,
It should be noted that, a scenario related to the embodiment of the present disclosure is specifically that an AMF requests to establish a context at an SMF, and the AMF authorizes to delegate an SCP to discover the SMF, and is configured to be able to determine the SMF but not the I-SMF based on query information of NRF feedback obtained after an SMF service discovery request is sent to the NRF for the first time, and a process of selecting the I-SMF is after the SMF, as shown in fig. 5, specific interaction steps are as follows:
s1: the AMF sends an Nsmf _ PDUSESION _ CreatesMContextrequest service request to the SCP.
Specifically, the AMF sends an Nsmf _ pdusesion _ CreateSMContext Request service Request to the SCP, where the Nsmf _ pdusesion _ CreateSMContext Request carries parameters for query and discovery, and the parameters at least include S-NSSAI, DNN, TAI, and max number of SMF instances.
S2: the SCP sends an SMF service discovery Request, Nnrf _ NFdiscovery Request to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN, TAI and max number of SMF instances.
S3: the NRF completes the query based on S-NSSAI, DNN, TAI and max number of SMFinstances, and generates a first description information set and a second description information set.
Specifically, the NRF obtains a first query result of the SMF that is completely matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, generates a first description information set including the first query result, obtains a second query result of the SMF that is completely matched with the S-NSSAI and the DNN in the governed area, and generates a second description information set including the second query result.
S4: the NRF sends a Nnrf _ NFDiscoveryResponse to the SCP, wherein the Nnrf _ NFDiscoveryResponse comprises a first description information set and a second description information set.
S5: the SCP determines that the SMF cannot be determined based on the first set of description information.
Specifically, when the SCP determines that a first query result included in the first description information set is a query failure in a query range corresponding to the TAI, the operation of S6 is continuously performed, and if the AMF determines that the first description information set includes the queried description information of the SMF, the selection of the SMF is directly performed in the first description information set without selecting the I-SMF according to a selection policy formulated at a high level.
S6: and the SCP sends the Nsmf _ PDUSession _ CreateSMContext Response carrying the second description information set to the AMF.
S7: and the AMF determines the SMF based on a selection strategy made by the high-level signaling and the second description information set.
S8: the AMF sends an Nsmf _ PDUSESS _ CreateSCContext Request service Request to the SCP.
Specifically, AMF sends Nsmf _ PDUSession _includingsearch and discovery parameters to SCP
A CreateSMContext Request service Request, the lookup and discovery parameters including S-NSSAI, DNN, and max number of SMF instances.
S9: the SCP sends an SMF service discovery Request, Nnrf _ NFdiscovery Request, to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN and max number of SMF instances.
S10: the NRF completes the query based on S-NSSAI, DNN and max number of SMF instances, and generates an intermediate SMF description information set.
Specifically, the NRF queries within the governed range according to the max number of SMF instances to obtain a query result of the SMF that is completely matched with the S-NSSAI and the DNN, and generates an intermediate SMF description information set based on the query result.
S11: the NRF sends an Nnrf _ NFdiscovery Response to the SCP, wherein the Nnrf _ NFdiscovery Response comprises an intermediate SMF description information set.
S12: and the SCP determines the I-SMF based on the self-selection strategy and the intermediate SMF description information set.
Example II,
It should be noted that, a scenario related to this embodiment is specifically that the AMF requests to establish a context at the SMF, and the AMF authorizes to delegate the SCP to discover the SMF, and is configured to determine the SMF and the I-SMF based on a service discovery response of the NRF feedback obtained after the SMF service discovery request is sent to the NRF for the first time, with reference to fig. 6, specific interaction steps are as follows:
and generating a first description information set and a second description information set based on the S-NSSAI, the DNN, the TAI and the max number of SMFinstances completion query.
Specifically, the NRF obtains a first query result of the SMF that is completely matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, generates a first description information set including the first query result, obtains a second query result of the SMF that is completely matched with the S-NSSAI and the DNN in the governed area, and generates a second description information set including the second query result.
S4: the NRF sends an Nnrf _ NFdiscovery Response to the SCP, wherein the Nnrf _ NFdiscovery Response comprises a first description information set and a second description information set.
S5: the SCP determines that the SMF cannot be determined based on the first set of description information.
Specifically, when the SCP determines that the first query result included in the first description information set is a query failure in the query range corresponding to the TAI, the operation of S6 is continuously performed, and if the AMF determines that the first description information set includes the queried description information of the SMF, the selection of the I-SMF is not required, and the SMF is directly selected in the first description information set according to a selection policy formulated at a high level.
S6: and the SCP sends the Nsmf _ PDUSession _ CreateSMContext Response carrying the second description information set to the AMF.
S7: the AMF determines the SMF based on the selection policy and the second set of description information.
S8: the AMF sends an Nsmf _ PDUSESS _ CreateSCContext Request service Request to the SCP.
S9: and the SCP determines the I-SMF based on the selection strategy and the second description information set.
Example III,
It should be noted that, a scenario related to this embodiment is specifically that the AMF requests to establish a context at the SMF, and the AMF authorizes to delegate the SCP to discover the SMF, and is configured to be able to determine the I-SMF based on a service discovery response of the NRF feedback obtained after the SMF service discovery request is sent to the NRF for the first time, but cannot determine the SMF, and the process of selecting the I-SMF is after the SMF, as shown in fig. 7, specific interaction steps are as follows:
s1: the AMF sends an Nsmf _ PDUSESS _ CreateSCContext Request service Request to the SCP.
Specifically, the AMF sends an Nsmf _ pdusesion _ CreateSMContext Request service Request to the SCP, where the Nsmf _ pdusesion _ CreateSMContext Request carries parameters for query and discovery, and the parameters at least include S-NSSAI, DNN, TAI, and max number of SMF instances.
S2: the SCP sends an SMF service discovery Request, Nnrf _ NFdiscovery Request to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN, TAI and max number of SMF instances.
S3: the NRF completes the query based on S-NSSAI, DNN, TAI and max number of SMFinstances, and generates a first description information set and a second description information set.
Specifically, the NRF obtains a first query result of the SMF that is completely matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, generates a first description information set including the first query result, obtains a second query result of the SMF that is completely matched with the S-NSSAI and the DNN in the managed area, and generates a second description information set including the second query result.
S4: the NRF sends an Nnrf _ NFdiscovery Response to the SCP, wherein the Nnrf _ NFdiscovery Response comprises a first description information set and a second description information set.
S5: the SCP determines that the SMF cannot be determined based on the first set of description information.
Specifically, when the SCP determines that the first query result included in the first description information set is a query failure in the query range corresponding to the TAI, the operation of S6 is continuously performed, and if the AMF determines that the first description information set includes the queried description information of the SMF, the selection of the I-SMF is not required, and the SMF is directly selected in the first description information set according to a selection policy formulated at a high level.
S6: and the SCP sends the Nsmf _ PDUSESSion _ CreateSMContext Response carrying the second description information set to the AMF.
S7: the AMF sends an SMF service discovery Request, Nnrf _ NFDiscovery Request to the NRF, wherein the Nnrf _ NFDiscovery Request comprises S-NSSAI, DNN and max number of SMF instances.
S8: the NRF completes the query based on the S-NSSAI, the DNN and the max number of SMF instances, and generates a target SMF description information set.
Specifically, the NRF queries within the governed range according to the max number of SMF entities to obtain a query result of the SMF that is completely matched with the S-NSSAI and the DNN, and generates a target SMF description information set based on the query result.
S9: the NRF sends an Nnrf _ NFDiscoveryResponse to the AMF, wherein the Nnrf _ NFDiscoveryResponse comprises a target SMF description information set.
S10: and the AMF determines the SMF based on a selection strategy formulated by a high layer and a target SMF description information set.
S11: the AMF sends a service Request of Nsmf _ PDUSession _ CreatesMContext Request to the SCP.
S12: and the SCP determines the I-SMF based on a selection strategy formulated by a high layer and a second description information set.
Example four,
It should be noted that, a scenario related to this embodiment is specifically that the AMF requests to establish a context at the SMF, at this time, the AMF and the I-SMF are configured to be able to be determined based on a service discovery response of the NRF feedback obtained after the SMF service discovery request is sent to the NRF for the first time, as shown in fig. 8, the specific interaction steps are as follows:
s1: the AMF sends an SMF service discovery Request, Nnrf _ NFdiscovery Request to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN, TAI and max number of SMF instances.
S2: the NRF completes the query based on S-NSSAI, DNN, TAI and max number of SMF instances, and generates a first description information set and a second description information set.
Specifically, the NRF obtains a first query result of the SMF that is completely matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, generates a first description information set including the first query result, obtains a second query result of the SMF that is completely matched with the S-NSSAI and the DNN in the governed area, and generates a second description information set including the second query result.
S3: the NRF sends an Nnrf _ NFdiscovery Response to the SCP, wherein the Nnrf _ NFdiscovery Response comprises a first description information set and a second description information set.
S4: the AMF determines that the SMF cannot be determined based on the first set of description information.
Specifically, when determining that the first query result included in the first description information set is a query failure in the query range corresponding to the TAI, the AMF continues to execute the operation of S5, and when determining that the first description information set includes the queried description information of the SMF, the AMF does not need to select the I-SMF, and directly selects the SMF in the first description information set according to a selection policy formulated at a high level.
S5: and the AMF determines the SMF and the I-SMF based on a selection strategy formulated by high-level signaling and a second description information set.
Example V,
It should be noted that, a scenario related to this embodiment is specifically that the AMF requests to establish a context at the SMF, and at this time, the configuration is configured to determine the I-SMF based on a service request response of the NRF feedback obtained after the SMF service discovery request is sent to the NRF for the first time, but the SMF cannot be determined, and the selection process of the I-SMF is after the SMF, as shown in fig. 9, specific interaction steps are as follows:
s1: the AMF sends an SMF service discovery Request, Nnrf _ NFDiscovery Request to the NRF, wherein the Nnrf _ NFDiscovery Request comprises S-NSSAI, DNN, TAI and max number of SMF instances.
S2: the NRF completes the query based on S-NSSAI, DNN, TAI and max number of SMFinstances, and generates a first description information set and a second description information set.
Specifically, the NRF obtains a first query result of the SMF that is completely matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, generates a first description information set including the first query result, obtains a second query result of the SMF that is completely matched with the S-NSSAI and the DNN in the managed area, and generates a second description information set including the second query result.
S3: the NRF sends a Nnrf _ NFDiscoveryResponse to the SCP, wherein the Nnrf _ NFDiscoveryResponse comprises a first description information set and a second description information set.
S4: the AMF determines that the SMF cannot be determined based on the first set of descriptive information.
Specifically, when determining that the first query result included in the first description information set is a query failure in the query range corresponding to the TAI, the AMF continues to execute the operation of S5, and when determining that the first description information set includes the queried description information of the SMF, the AMF does not need to select the I-SMF, and directly selects the SMF in the first description information set according to a selection policy formulated at a high level.
S5: the AMF sends an SMF service discovery Request, Nnrf _ NFdiscovery Request, to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN and max number of SMF instances.
S6: the NRF completes the query based on the S-NSSAI, the DNN and the max number of SMF instances to generate a target SMF description information set.
Specifically, the NRF queries in the jurisdiction range according to the max number of SMF instances to obtain the SMF description information matched with the S-NSSAI and the DNN, and generates a target SMF description information set.
S7: the NRF sends the Nnrf _ NFDiscoveryResponse to the AMF, wherein the Nnrf _ NFDiscoveryResponse comprises the target SMF description information set.
S8: the AMF determines the SMF based on the target set of SMF description information and determines the I-SMF based on the second set of description information according to a selection policy.
Examples six,
It should be noted that, a scenario related to this embodiment is specifically that an AMF requests to establish a context at an SMF, at this time, the scenario is configured to be able to determine the SMF based on a service request response of the NRF feedback obtained after an SMF service discovery request is sent to the NRF for the first time, but it is not possible to determine an I-SMF, and a process of selecting the I-SMF is after the SMF, as shown in fig. 10, specific interaction steps are as follows:
s1: the AMF sends an SMF service discovery Request, Nnrf _ NFdiscovery Request to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN, TAI and max number of SMF instances.
S2: the NRF completes the query based on the S-NSSAI, the DNN, the TAI and the max number of SMFinstates, and generates a first description information set and a second description information set.
Specifically, the NRF obtains a first query result of the SMF that is completely matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, generates a first description information set including the first query result, obtains a second query result of the SMF that is completely matched with the S-NSSAI and the DNN in the governed area, and generates a second description information set including the second query result.
S3: the NRF sends a Nnrf _ NFDiscoveryResponse to the SCP, wherein the Nnrf _ NFDiscoveryResponse comprises a first description information set and a second description information set.
S4: and the AMF determines that the SMF cannot be determined based on the first description information set, and determines the SMF based on the second description information set according to a selection strategy formulated by a higher layer.
Specifically, when determining that a first query result included in the first description information set is a query failure in a query range corresponding to the TAI, the AMF determines the SMF based on the second description information set according to a selection policy formulated by a high layer and continues to execute the operation defined in S5, and when determining that the first description information set includes the description information of the queried SMF, the AMF directly selects the SMF in the first description information set according to the selection policy formulated by the high layer without selecting the I-SMF.
S5: the AMF sends an SMF service discovery Request, Nnrf _ NFdiscovery Request, to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN and max number of SMF instances.
S6: the NRF completes the query based on S-NSSAI, DNN and max number of SMF instances, and generates an intermediate SMF description information set.
Specifically, the NRF queries in the range governed by the NRF according to the max number of SMF instances to obtain the SMF description information matched with the S-NSSAI and the DNN, and generates an intermediate description information set.
S7: the NRF sends the Nnrf _ NFDiscoveryResponse to the AMF, wherein the Nnrf _ NFDiscoveryResponse comprises the intermediate description information set.
S8: and the AMF determines the I-SMF based on the intermediate description information set according to a selection strategy formulated by the high-level signaling.
Example seven,
It should be noted that, a scenario related to this embodiment is specifically that the AMF requests to establish a context at the SMF, at this time, the configuration is such that the SMF and the I-SMF cannot be determined based on a service request response of the NRF feedback obtained after the SMF service discovery request is sent to the NRF for the first time, as shown in fig. 11, the specific interaction steps are as follows:
s1: the AMF sends an SMF service discovery Request, Nnrf _ NFdiscovery Request, to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN and TAI.
S2: the NRF completes the query based on S-NSSAI, DNN and TAI, and generates a first set of description information.
Specifically, according to the query conditions correspondingly limited by the S-NSSAI, the DNN and the TAI, the NRF determines the query result of the SMF which is matched with the S-NSSAI and the DNN in a limited range of the TAI, and generates a first description information set containing the query result.
S3: the NRF sends an Nnrf _ NFDiscoveryResponse to the SCP, wherein the Nnrf _ NFDiscoveryResponse comprises a first description parameter set.
S4: the AMF determines that the SMF cannot be determined based on the first set of description information.
Specifically, when determining that the query result included in the first description information set is a query failure in the query range corresponding to the TAI, the AMF continues to execute the operation of S5, and when determining that the first description information set includes the queried description information of the SMF, the AMF does not need to select the I-SMF, and directly selects the SMF in the first description information set according to a selection policy formulated by a high layer.
S5: the AMF sends an SMF service discovery Request, Nnrf _ NFdiscovery Request, to the NRF, wherein the Nnrf _ NFdiscovery Request comprises S-NSSAI, DNN and max number of SMF instances.
S6: the NRF completes the query based on S-NSSAI, DNN and max number of SMF instances, and generates an SMF description information set.
Specifically, the NRF queries within the scope of jurisdiction according to the max number of SMF instances to obtain a query result of the SMF that is completely matched with the S-NSSAI and the DNN, and generates an SMF description information set including the query result.
S7: the NRF sends an Nnrf _ NFdiscovery Response to the AMF, wherein the Nnrf _ NFdiscovery Response comprises an SMF description information set.
S8: and the AMF determines the SMF and the I-SMF based on the SMF description information set according to a selection strategy established by a high layer.
Examples 8,
It should be noted that, a scenario related to this embodiment is specifically that the AMF requests to establish a context at an SMF in another network, where the V-SCP, the V-SMF, and the V-NRF characterize a network function in a current network, and the H-SMF and the H-NRF are network functions in a target network, as shown in fig. 12, specific interaction steps are as follows:
s1: the AMF sends an SMF service discovery Request and an Nnrf _ NFdistribution Request to the V-NRF, wherein the Nnrf _ NFdistribution Request comprises a Target PLMN ID of the H-SMF, a max number of H-SMF instances and a max number of V-SMF instances.
S2: the V-NRF sends an SMF service discovery Request, Nnrf _ NFdiscovery Request, to the H-NRF, wherein the Nnrf _ NFdiscovery Request comprises max number of H-SMF instances.
S3: the H-NRF queries all H-SMFs in the jurisdiction area of the H-NRF, and generates a third description information set.
Specifically, the H-NRF queries within the range governed by the H-NRF according to the received max number of H-SMF instances to obtain a third query result of all H-SMFs capable of providing services, wherein the query result is specifically the description information of the queried SMF.
Further, a third set of description information is generated that includes the third query result.
S4: and the H-NRF sends Nnrf _ NFDiscoveryResponse to the V-NRF, wherein the Nnrf _ NFDiscoveryResponse comprises a third description information set.
S5: the V-NRF queries all V-SMFs in the jurisdiction range of the V-NRF and generates a fourth description information set.
Specifically, the V-NRF queries within the scope governed by the V-NRF according to the received max number of V-SMF instances to obtain fourth query results of all the V-SMFs capable of providing services, wherein the query results are specifically the description information of the queried V-SMFs.
Further, a fourth description information set containing the fourth query result is generated.
S6: and the V-NRF sends an Nnrf _ NFdiscovery Response to the AMF, wherein the Nnrf _ NFdiscovery Response comprises a third description information set and a fourth description information set.
S7: and the AMF determines the H-SMF based on the third description information set according to a selection strategy formulated by a high layer.
S8: and the AMF sends an Nsmf _ PDUSESS _ CreatesMContext Request service Request carrying the fourth information set and the discovery selection parameter to the SCP.
Specifically, the AMF sends an Nsmf _ pdusesion _ CreateSMContextRequest service request to the SCP, where the Nsmf _ pdusesion _ CreateSMContextRequest carries parameters for discovering and selecting the V-SMF, where the discovery selection parameters at least include S-NSSAI and DNN.
S9: and the SCP determines the V-SMF based on the fourth information set according to a selection strategy formulated by a high layer and the received discovery selection parameters.
Based on the same inventive concept, referring to fig. 13, in the embodiment of the present disclosure, the NRF-side apparatus at least includes: a processor 1302 and a memory 1301, wherein,
wherein the processor 1302 is configured to read the program in the memory and perform the following operations:
receiving a Network Function (NF) producer service discovery request sent by an NF consumer, wherein the NF producer service discovery request carries a parameter group used for limiting the NF producer query basis;
determining a query condition and at least one query range corresponding to the parameter group, completing query in the at least one query range based on the query condition, and generating at least one description information set containing query results corresponding to the at least one query range;
and sending an NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the at least one description information set, so that the NF consumer directly selects the NF producer based on the description information set at least once when determining a target query basis when continuously querying the NF producer and when the query basis corresponding to the description information set determined by the parameter group is the same.
Optionally, the NF consumer comprises any one of:
NF requesting to provide service;
a service communication proxy SCP requesting NF authorization to provide the service.
Optionally, the parameter set for defining the NF producer query condition includes any one of:
network fragmentation information S-NSSAI, data network name DNN and tracking area identification TAI;
network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI and NF producer instance maximum value;
the Target public land mobile network identifies a Target PLMN ID, a maximum number of instances of NF producers within the range of said Target PLMN, and a maximum number of instances of NF producers under the current PLMN.
Optionally, the parameter group includes network fragmentation information S-NSSAI, a data network name DNN, and a tracking area identifier TAI, and when the NRF determines a query condition and at least one query range corresponding to the parameter group, the processor 1302 is configured to:
and determining a tracking area defined by the TAI as a query range, and determining the matching with the S-NSSAI and the DNN as corresponding query conditions.
Optionally, the parameter group is S-NSSAI, DNN, TAI, and NF producer instance maximum, and when the NRF determines the query condition and at least one query range corresponding to the parameter group, the processor 1302 is configured to:
determining a query condition corresponding to the S-NSSAI and the DNN match, and determining a tracking area defined by the TAI as a query scope, and determining a region governed by the NRF as a query scope based on NF producer instance maximum.
Optionally, the parameter set is a Target public mobile network identifier, Target PLMN ID, a maximum number of NF producers within a range of the Target PLMN, and a maximum number of NF producers under a current PLMN, and when the NRF determines a query condition and at least one query range corresponding to the parameter set, the processor 1302 is configured to:
all NF producers which can provide service in the jurisdiction are determined as corresponding query conditions, the area which is governed under the network defined by the Target PLMN ID is determined as a query range, and the area which is governed under the current network is determined as a query range.
Optionally, when generating at least one description information set containing query results corresponding to the at least one query scope, the processor 1302 is configured to:
and obtaining the query result of the NF producer which is matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, and generating a description information set containing the query result.
Optionally, after the NRF sends a NF producer service discovery response to the NF consumer, the NRF determines a target query basis for the NF consumer to determine to continue querying the NF producer, and when the query basis corresponding to the description information set determined by the parameter group is different, the processor 1302 is further configured to:
receiving a service discovery request of the NF producer sent by the NF consumer again, wherein the service discovery request of the NF producer carries a reconfigured parameter group;
determining a target query range and a target query condition based on a target query basis corresponding to the reconfigured parameter group, completing query in the target query range based on the target query condition, and generating a target description information set containing a query result corresponding to the target query range;
and sending an NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the target description information set, and the NF consumer selects an NF producer based on the target description information set.
Optionally, when generating at least one description information set containing query results corresponding to the at least one query scope, the processor 1302 is configured to:
obtaining a first query result of an NF (non-volatile memory) producer which is matched with the S-NSSAI and the DNN completely in a tracking area defined by the TAI, and generating a first description information set containing the first query result;
and the NRF obtains a second query result of the NF producer matched with the S-NSSAI and the DNN in a managed area, and generates a second description information set containing the second query result.
Optionally, when generating at least one description information set containing query results corresponding to the at least one query scope, the processor 1302 is configured to:
generating a third description information set containing a third query result obtained under the network defined by the Target PLMN ID based on the obtained third query result;
the NRF generates a fourth description information set containing a fourth query result based on the fourth query result obtained by querying in the governed area.
Based on the same inventive concept, referring to fig. 14, in the embodiment of the present disclosure, an inquiry apparatus for a network function is provided, where the inquiry apparatus at least includes: a receiving unit 1401, a querying unit 1402, and a sending unit 1403, wherein,
a receiving unit 1401, configured to receive a network function NF producer service discovery request sent by an NF consumer, where the NF producer service discovery request carries a parameter group for defining an NF producer query basis;
the query unit 1402, configured to determine a query condition and at least one query range corresponding to the parameter group, complete a query within the at least one query range based on the query condition, and generate at least one description information set containing a query result corresponding to the at least one query range;
a sending unit 1403, configured to send an NF producer service discovery response to the NF consumer, where the NF producer service discovery response carries the at least one description information set, so that when a target query basis for the NF consumer to determine to continue querying the NF producer is the same as a query basis corresponding to one description information set determined by the parameter group, the NF producer is directly selected based on the one description information set at least once.
Based on the same inventive concept, referring to fig. 15, in the embodiment of the present disclosure, an apparatus for querying a network function is provided, where the apparatus at least includes: a memory 1501 and a processor 1502, wherein the processor 1502 is configured to read a program in the memory 1501 and perform the following operations:
sending a NF producer service discovery request to an NRF, enabling the NRF to determine a query condition and at least one query range corresponding to the parameter group according to the parameter group carried in the NF producer service discovery request, completing query in the at least one query range based on the query condition, and generating at least one description information set which corresponds to the at least one query range and contains a query result;
receiving NF producer service discovery response fed back by the NRF, and acquiring at least one description information set carried in the NF producer service discovery response;
and when determining that the NF producer cannot be selected, continuously requesting to query the NF producer from the NRF based on the reconfigured parameter group, determining a query basis corresponding to the reconfigured parameter group, and directly selecting the NF producer based on the description information set at least once when the query basis corresponding to the received description information set is the same.
Optionally, the NF consumer comprises any one of:
NF requesting to provide service;
a service communication proxy SCP requesting NF authorization to provide the service.
Optionally, the parameter set for defining the NF producer query condition includes any one of:
network fragmentation information S-NSSAI, data network name DNN and tracking area identification TAI;
network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI and NF producer instance maximum value;
the Target public land mobile network identifies a Target PLMN ID, a maximum number of instances of NF producers within the range of said Target PLMN, and a maximum number of instances of NF producers under the current PLMN.
Optionally, when determining the query criterion corresponding to the reconfigured parameter group is different from the query criterion corresponding to the received description information set, the processor 1502 is further configured to:
sending a NF producer service discovery request to the NRF again, wherein the NF producer service discovery request carries a reconfigured parameter group;
receiving a NF producer service discovery response sent by the NRF, wherein the NF producer service discovery influence carries a target description information set generated by the NRF based on the reconfigured parameter group;
based on the set of target description information, a NF producer is selected.
Based on the same inventive concept, referring to fig. 16, in the embodiment of the present disclosure, an inquiry apparatus for a network function is provided, where the inquiry apparatus at least includes: a transmitting unit 1601, a receiving unit 1602, and a determining unit 1603, wherein,
a sending unit 1601, configured to send an NF producer service discovery request to an NRF, enable the NRF to determine, according to a parameter group carried in the NF producer service discovery request, a query condition and at least one query range corresponding to the parameter group, complete a query within the at least one query range based on the query condition, and generate at least one description information set containing a query result corresponding to the at least one query range;
a receiving unit 1602, receiving the NF producer service discovery response fed back by the NRF, and acquiring at least one description information set carried in the NF producer service discovery response;
the determining unit 1603, when determining that the NF producer cannot be selected, continues to request the NRF to query the NF producer based on the reconfigured parameter group, and determines a query basis corresponding to the reconfigured parameter group, and when the query basis corresponding to the received description information set is the same, directly selects the NF producer based on the description information set at least once.
Based on the same inventive concept, the disclosed embodiments provide a storage medium, in which instructions, when executed by a processor, enable the above-described query method of a network function to be performed.
To sum up, in the embodiment of the present disclosure, an NRF receives an NF producer service discovery request sent by an NF consumer, where the NF service discovery request carries a parameter group for defining an NF producer query criterion, further determines a query condition and at least one query range corresponding to the parameter group, completes a query in the at least one query range based on the query condition, generates at least one description information set containing a query result corresponding to the at least one query range, and sends an NF producer service discovery response to the NF consumer, where the NF producer service discovery response carries the at least one description information set, so that a target query criterion when the NF consumer determines to continue querying the NF producer is the same as a query criterion corresponding to a description information set determined by the parameter group, at least once, selecting an NF producer based directly on the one set of descriptive information. Therefore, when the query is carried out based on the query condition and the query range determined by the parameter group, the query operation with the same query range is saved, the query process is simplified, the interaction burden of the process is reduced, and the interaction efficiency of the process is improved.
As will be appreciated by one of skill in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present disclosure have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the disclosure.
It will be apparent to those skilled in the art that various changes and modifications may be made to the disclosed embodiments without departing from the spirit and scope of the disclosed embodiments. Thus, if such modifications and variations of the embodiments of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to encompass such modifications and variations.

Claims (29)

1. A method for querying a network function, comprising:
a network registration storage function network element NRF receives a network function NF producer service discovery request sent by an NF consumer, wherein the NF producer service discovery request carries a parameter group used for limiting the NF producer query basis;
the NRF determines a query condition and at least one query range corresponding to the parameter group, completes query in the at least one query range based on the query condition, and generates at least one description information set containing query results corresponding to the at least one query range;
the NRF sends a NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the at least one description information set, so that the NF consumer can select the NF producer directly at least once based on the description information set when determining a target query basis when continuously querying the NF producer and the query basis corresponding to the description information set determined by the parameter set is the same.
2. The method of claim 1, wherein the NF consumer comprises any of:
NF requesting to provide service;
a service communication proxy SCP requesting NF authorization to provide the service.
3. The method of any of claims 1-2, wherein the set of parameters for defining the basis for NF producer queries comprises any of:
network fragmentation information S-NSSAI, data network name DNN and tracking area identification TAI;
network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI and NF producer instance maximum value;
the Target public land mobile network identifies a Target PLMN ID, a maximum number of instances of NF producers within the range of said Target PLMN, and a maximum number of instances of NF producers under the current PLMN.
4. The method of claim 3, wherein the parameter group is network fragmentation information S-NSSAI and data network name DNN, and when tracking area identification TAI is detected, the NRF determines a query condition and at least one query range corresponding to the parameter group, and comprises:
the NRF determines a tracking area defined by the TAI as a query range and determines a match with the S-NSSAI and the DNN as corresponding query conditions.
5. The method of claim 3, wherein when the parameter set is S-NSSAI, DNN, TAI, and NF producer instance maximum, the NRF determines the query condition and at least one query range for the parameter set, comprising:
the NRF determines a matching with the S-NSSAI and the DNN as corresponding query conditions, determines a tracking area defined by the TAI as a query range, and determines a zone governed by the NRF as a query range based on NF producer instance maximum values.
6. The method of claim 3, wherein the NRF determines the query conditions and at least one query range corresponding to the parameter set when the parameter set identifies a Target PLMN ID, a maximum number of NF producers within the Target PLMN, and a maximum number of NF producers under a current PLMN, for a Target public mobile network, comprises:
the NRF determines all NF producers that can provide services within the jurisdiction as corresponding query conditions, and determines a jurisdiction under the network defined by the Target PLMN ID as a query scope, and determines a jurisdiction under the current network as a query scope.
7. The method of claim 4, wherein said generating at least one set of descriptive information containing query results corresponding to said at least one query scope comprises:
and the NRF obtains a query result of an NF producer which is matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, and generates a description information set containing the query result.
8. The method of claim 4 or 7, wherein after the NRF sends a NF producer service discovery response to the NF consumer, the NRF determines a target query basis for the NF consumer in determining to continue querying NF producers, and further comprising, when the query basis corresponding to the set of description information determined by the set of parameters is not the same:
the NRF receives a NF producer service discovery request sent by the NF consumer again, wherein the NF producer service discovery request carries a reconfigured parameter group;
the NRF determines a target query range and a target query condition based on a target query basis corresponding to the reconfigured parameter group, completes query in the target query range based on the target query condition, and generates a target description information set which corresponds to the target query range and contains a query result;
the NRF sends a NF producer service discovery response to the NF consumer, the NF producer service discovery response carries the target description information set, and the NF consumer selects the NF producer based on the target description information set.
9. The method of claim 5, wherein said generating at least one set of descriptive information containing query results corresponding to said at least one query scope comprises:
the NRF obtains a first query result of an NF producer which is matched with the S-NSSAI and the DNN in a completion way in a tracking area defined by the TAI, and generates a first description information set containing the first query result;
and the NRF obtains a second query result of the NF producer matched with the S-NSSAI and the DNN in a managed area, and generates a second description information set containing the second query result.
10. The method of claim 6, wherein said generating at least one set of descriptive information containing query results corresponding to said at least one query scope comprises:
the NRF generates a third description information set containing a third query result obtained under the network defined by the Target PLMN ID based on the obtained third query result;
the NRF generates a fourth description information set containing a fourth query result based on the fourth query result obtained by querying in the governed area.
11. A method for querying a network function, comprising:
an NF consumer sends an NF producer service discovery request to an NRF, the NRF determines a query condition and at least one query range corresponding to the parameter group according to the parameter group carried in the NF producer service discovery request, completes the query in the at least one query range based on the query condition, and generates at least one description information set which corresponds to the at least one query range and contains the query result;
the NF consumer receives the NF producer service discovery response fed back by the NRF, and obtains at least one description information set carried in the NF producer service discovery response;
and when the NF consumer determines that the NF producer cannot be selected, continuously requesting to inquire the NF producer from the NRF based on the reconfigured parameter group, determining a query basis corresponding to the reconfigured parameter group, and directly selecting the NF producer based on the description information set at least once when the query basis corresponding to the received description information set is the same.
12. The method of claim 11, wherein the NF consumer comprises any of:
NF requesting to provide service;
a service communication proxy SCP requesting NF authorization to provide the service.
13. The method of claim 11, wherein determining the query criterion corresponding to the reconfigured set of parameters is different from the query criterion corresponding to the received set of description information, further comprises:
the NF consumer sends a NF producer service discovery request to the NRF again, wherein the NF producer service discovery request carries a reconfigured parameter group;
the NF consumer receives an NF producer service discovery response sent by the NRF, and the NF producer service discovery influence carries a target description information set which is inquired and generated by the NRF based on the reconfigured parameter group;
the NF consumer selects an NF producer based on the set of target description information.
14. A query device for network functions, wherein the query device is applied to NRF, and comprises at least a memory and a processor, wherein the processor is configured to read a program in the memory and perform the following operations:
receiving a network function NF producer service discovery request sent by an NF consumer, wherein the NF producer service discovery request carries a parameter group used for limiting the NF producer query basis;
determining a query condition and at least one query range corresponding to the parameter group, completing query in the at least one query range based on the query condition, and generating at least one description information set containing query results corresponding to the at least one query range;
and sending an NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the at least one description information set, so that the NF consumer directly selects the NF producer based on the description information set at least once when determining a target query basis when continuously querying the NF producer and when the query basis corresponding to the description information set determined by the parameter group is the same.
15. The apparatus of claim 14, wherein the NF consumer comprises any of:
a NF requesting to provide a service;
a service communication proxy SCP requesting NF authorization to provide the service.
16. The apparatus of any one of claims 14 to 15, wherein the set of parameters for defining the basis for NF producer queries comprises any one of:
network fragmentation information S-NSSAI, data network name DNN and tracking area identification TAI;
network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI and NF producer instance maximum value;
the Target public land mobile network identifies a Target PLMN ID, a maximum number of instances of NF producers within the range of said Target PLMN, and a maximum number of instances of NF producers under the current PLMN.
17. The apparatus of claim 16, wherein the parameter set is network fragmentation information S-NSSAI, data network name DNN, tracking area identification TAI, and wherein when the NRF determines the query condition and the at least one query range corresponding to the parameter set, the processor is configured to:
and determining a tracking area defined by the TAI as a query range, and determining the matching with the S-NSSAI and the DNN as corresponding query conditions.
18. The apparatus of claim 16, wherein the parameter set is S-NSSAI, DNN, TAI, and NF producer instance maximum, and wherein the NRF, when determining the query condition and the at least one query range for the parameter set, the processor is configured to:
determining a query condition corresponding to the S-NSSAI and the DNN match, and determining a tracking area defined by the TAI as a query scope, and determining the governed area as a query scope based on NF producer instance maximum.
19. The apparatus of claim 16, wherein the parameter set identifies a Target PLMN ID, a maximum number of NF producers within the Target PLMN range, and a maximum number of NF producers under a current PLMN for a Target public land mobile network, and wherein the processor, when the NRF determines the query condition and at least one query range corresponding to the parameter set, is configured to:
all NF producers which can provide service in the jurisdiction are determined as corresponding query conditions, the area which is governed under the network defined by the Target PLMN ID is determined as a query range, and the area which is governed under the current network is determined as a query range.
20. The apparatus of claim 17, wherein the processor, in generating at least one set of descriptive information containing query results corresponding to the at least one query scope, is configured to:
and obtaining the query result of the NF producer which is matched with the S-NSSAI and the DNN in a tracking area defined by the TAI, and generating a description information set containing the query result.
21. The apparatus of any of claims 17 or 20, wherein after the NRF sends a NF producer service discovery response to the NF consumer, the NRF determines a target query basis for the NF consumer in determining to continue querying NF producers, the processor being further configured to, when the query basis corresponding to the set of description information determined by the set of parameters is not the same:
receiving a service discovery request of the NF producer sent by the NF consumer again, wherein the service discovery request of the NF producer carries a reconfigured parameter group;
determining a target query range and a target query condition based on a target query basis corresponding to the reconfigured parameter group, completing query in the target query range based on the target query condition, and generating a target description information set containing a query result corresponding to the target query range;
and sending a NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the target description information set, and the NF consumer selects the NF producer based on the target description information set.
22. The apparatus of claim 18, wherein the processor, in generating at least one set of descriptive information containing query results corresponding to the at least one query scope, is configured to:
obtaining a first query result of an NF (noise root) producer which is matched with the S-NSSAI and the DNN completely in a tracking area defined by the TAI, and generating a first description information set containing the first query result;
and obtaining a second query result of the NF producer completing the matching with the S-NSSAI and the DNN in the governed region, and generating a second description information set containing the second query result.
23. The apparatus of claim 19, wherein the processor, in generating at least one set of descriptive information containing query results corresponding to the at least one query scope, is configured to:
generating a third description information set containing a third query result obtained under the network defined by the Target PLMN ID based on the obtained third query result;
the NRF generates a fourth description information set containing a fourth query result based on the fourth query result obtained by querying in the governed area.
24. An inquiry apparatus of a network function, comprising at least a processor and a memory, wherein the processor is configured to read a program in the processor and perform the following operations:
sending an NF producer service discovery request to an NRF, enabling the NRF to determine a query condition and at least one query range corresponding to the parameter group according to the parameter group carried in the NF producer service discovery request, completing query in the at least one query range based on the query condition, and generating at least one description information set containing query results corresponding to the at least one query range;
receiving NF producer service discovery response fed back by the NRF, and acquiring at least one description information set carried in the NF producer service discovery response;
and when determining that the NF producer cannot be selected, continuously requesting to query the NF producer from the NRF based on the reconfigured parameter group, determining a query basis corresponding to the reconfigured parameter group, and directly selecting the NF producer based on the description information set at least once when the query basis corresponding to the received description information set is the same.
25. The apparatus of claim 24, wherein the determination of the query criterion for the reconfigured set of parameters is different from the query criterion for the received set of description information, the processor further configured to:
sending a NF producer service discovery request to the NRF again, wherein the NF producer service discovery request carries a reconfigured parameter group;
receiving a NF producer service discovery response sent by the NRF, wherein the NF producer service discovery influence carries a target description information set generated by the NRF based on the reconfigured parameter group;
based on the set of target description information, an NF producer is selected.
26. An apparatus for querying a network function, comprising:
the system comprises a receiving unit, a service discovery unit and a service discovery unit, wherein the receiving unit receives a network function NF producer service discovery request sent by an NF consumer, and the NF producer service discovery request carries a parameter group used for limiting the NF producer query basis;
the query unit is used for determining a query condition and at least one query range corresponding to the parameter group, completing query in the at least one query range based on the query condition, and generating at least one description information set which corresponds to the at least one query range and contains a query result;
and the sending unit is used for sending an NF producer service discovery response to the NF consumer, wherein the NF producer service discovery response carries the at least one description information set, so that the NF consumer can directly select the NF producer based on the description information set at least once when a target query basis is determined when the NF consumer continuously queries the NF producer and the query basis corresponding to the description information set determined by the parameter group is the same.
27. An apparatus for querying a network function, comprising:
a sending unit, configured to send an NF producer service discovery request to an NRF, enable the NRF to determine, according to a parameter group carried in the NF producer service discovery request, a query condition and at least one query range corresponding to the parameter group, complete a query within the at least one query range based on the query condition, and generate at least one description information set containing a query result corresponding to the at least one query range;
the receiving unit is used for receiving NF producer service discovery response fed back by the NRF and acquiring at least one description information set carried in the NF producer service discovery response;
and the determining unit is used for continuously requesting to inquire the NF producers from the NRF based on the reconfigured parameter group when determining that the NF producers cannot be selected, determining inquiry bases corresponding to the reconfigured parameter group, and directly selecting the NF producers based on the description information set at least once when the inquiry bases corresponding to the received description information set are the same.
28. A storage medium, characterized in that instructions in the storage medium, when executed by a processor, enable execution of a query method of a network function according to any one of claims 1 to 10.
29. A storage medium, characterized in that instructions in the storage medium, when executed by a processor, enable to perform a method of querying of a network function according to any of claims 11-13.
CN202010706262.5A 2020-07-21 2020-07-21 Network function query method and device Active CN114039874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010706262.5A CN114039874B (en) 2020-07-21 2020-07-21 Network function query method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010706262.5A CN114039874B (en) 2020-07-21 2020-07-21 Network function query method and device

Publications (2)

Publication Number Publication Date
CN114039874A CN114039874A (en) 2022-02-11
CN114039874B true CN114039874B (en) 2022-08-30

Family

ID=80134041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010706262.5A Active CN114039874B (en) 2020-07-21 2020-07-21 Network function query method and device

Country Status (1)

Country Link
CN (1) CN114039874B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114303348A (en) * 2019-08-21 2022-04-08 瑞典爱立信有限公司 Method and apparatus for network function discovery
US11888946B2 (en) 2021-06-02 2024-01-30 Oracle International Corporation Methods, systems, and computer readable media for applying or overriding preferred locality criteria in processing network function (NF) discovery requests
US11930083B2 (en) 2021-08-09 2024-03-12 Oracle International Corporation Methods, systems, and computer readable media for processing network function (NF) discovery requests at NF repository function (NRF) using prioritized lists of preferred locations
US11888957B2 (en) 2021-12-07 2024-01-30 Oracle International Corporation Methods, systems, and computer readable media for locality and serving scope set based network function (NF) profile prioritization and message routing
WO2024022278A1 (en) * 2022-07-26 2024-02-01 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for mobility management
CN117041980B (en) * 2023-10-09 2024-01-09 之江实验室 Network element management method and device, storage medium and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109391592B (en) * 2017-08-08 2021-12-24 华为技术有限公司 Method and equipment for discovering network function service
CN109429295B (en) * 2017-08-31 2021-11-23 中兴通讯股份有限公司 Method for selecting AMF, system and storage medium
US10785637B2 (en) * 2017-11-17 2020-09-22 Ofinno, Llc SMF selection for isolated network slice
US11140048B2 (en) * 2019-01-11 2021-10-05 Huawei Technologies Co., Ltd. Sharable storage method and system for network data analytics

Also Published As

Publication number Publication date
CN114039874A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN114039874B (en) Network function query method and device
US11765563B2 (en) Method for startup configuration of a Bluetooth Mesh network
US20200267638A1 (en) Network slice selection method and apparatus
CN106375987B (en) Network slice selection method and system
US20220052989A1 (en) Communication method and communications device
JP2020519061A (en) Slice-based communication method and device
CN103636263B (en) It is obtained by terminal and accesses relevant information with servicing
CN111565404B (en) Data distribution method and device
EP3881574B1 (en) Methods and apparatuses for network function selection in 5g for a user
US20190089648A1 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
JP4944211B2 (en) Method and apparatus for providing network resources to a content provider
WO2021052107A1 (en) Method, apparatus, and system for selecting network slice, and storage medium
US20230024999A1 (en) Communication system, method, and apparatus
CN112533177A (en) Method, device, apparatus and medium for providing and discovering moving edge calculation
JP7437853B2 (en) Processing service requests
CN112492592A (en) Authorization method under multiple NRF scenes
CN108599968B (en) Information broadcasting method for urban Internet of things
WO2022022843A1 (en) Proxy-mediated service request handling between network functions
US20230232228A1 (en) Method and apparatus for establishing secure communication
WO2017000583A1 (en) Terminal access method and corresponding terminal, base station and main core network
CN108495292B (en) Intelligent household short-distance equipment communication method
CN113067844B (en) Service discovery method and device and HNRF
CN115941211A (en) Network element selection method, information transmission method, device and network element
WO2021233646A1 (en) Service request handling
US11924294B2 (en) Service request handling

Legal Events

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