Function discovery method and device, network system, storage medium and program product

Through the cross-chain query and interaction of the blockchain network, the problem of complexity of cross-network service discovery in 5G is solved, the flexibility of cross-network function discovery is realized, the function discovery needs of 6G applications are met, and the flexibility of the network is enhanced. and security.

CN118748792APending Publication Date: 2024-10-08CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773580.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In the 5G service-based framework, the cross-network service discovery process is complex and difficult to achieve flexibility, which limits the application scenarios of future 6G distributed networks.

Method used

Conduct cross-chain query transactions through distributed service nodes in the blockchain network to determine the category consistency of the target function, initiate cross-chain queries in case of inconsistency, select appropriate NF network elements to provide functions, and establish interactive protocols and data transmission Channel, write calling relationship, realize cross-network function discovery.

Benefits of technology

It improves the flexibility of cross-network function discovery, meets the function discovery requirements for on-demand deployment of widely distributed networks in 6G application scenarios, and enhances the flexibility and security of network deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748792A_ABST
    Figure CN118748792A_ABST
Patent Text Reader

Abstract

The invention relates to a function discovery method and device, a network system, a storage medium and a program product, and relates to the technical field of wireless communication. The function discovery method is executed by a distributed service node in a first block chain network, and comprises the following steps: receiving a discovery request of a target function from a first network function NF network element; when it is determined that a cross-chain query transaction is initiated in the first block chain network according to the target function, query is performed in a second block chain network through a function network, and distributed service nodes corresponding to the function network are located in the first block chain network and the second block chain network; and receiving a transaction response fed back by the function network, the transaction response including a target function list corresponding to the discovery request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of wireless communication technology, and in particular to a function discovery method, a function discovery device, a network system, a computer-readable storage medium, and a computer program product. Background Art

[0002] Currently, in the 5G service-oriented framework defined by 3GPP, when two NFs (Network Function) communicate, they will play two different roles. The NF that sends the request plays the role of the service user, and the NF that triggers certain actions based on the request plays the role of the service provider. Service registration and discovery are the mechanisms used to determine how service users find and contact service providers that can provide the requested services. Specifically, each NF in the core network registers the provided services with the NRF (Network Repository Function) of the core network, and then the NRF manages all available NFs and the services they provide, and NFs discover each other through NRF. When it comes to cross-network service discovery, it further depends on the interaction between different NRFs. Summary of the invention

[0003] The inventors of the present disclosure have discovered that the process of the relevant technical system is relatively complicated, and how to improve the flexibility of cross-network function discovery is a problem that needs to be solved.

[0004] In view of this, the present disclosure proposes a function discovery method, which can improve the flexibility of cross-network function discovery.

[0005] According to some embodiments of the first aspect of the present disclosure, a function discovery method is provided, which is executed by a distributed service node located in a first blockchain network, including: receiving a discovery request for a target function from a first network function NF network element; when determining to initiate a cross-chain query transaction in the first blockchain network based on the target function, querying in the second blockchain network through the functional network, wherein the distributed service node corresponding to the functional network is located in the first blockchain network and the second blockchain network; receiving a transaction response fed back by the functional network, wherein the transaction response includes a target function list corresponding to the discovery request.

[0006] In some embodiments, the function discovery method further includes: determining whether the category of the target function is consistent with that of the function written in the first blockchain network; if the category of the target function is inconsistent with that of the function written in the first blockchain network, determining to initiate a cross-chain query transaction in the first blockchain network.

[0007] In some embodiments, the function discovery method also includes: when the number of transaction responses is greater than a first threshold, selecting a second NF network element that provides functions for the first NF network element according to the target function list, wherein the second NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the second blockchain network.

[0008] In some embodiments, the function discovery method also includes: negotiating with the second NF network element to determine the interaction protocol and data transmission channel between the first NF network element and the second NF network element; according to the interaction protocol and the data transmission channel, providing the first NF network element with the target function requested by the target function discovery request through the second NF network element.

[0009] In some embodiments, the function discovery method further includes: writing the calling relationship between the first NF network element and the second NF network element into the first blockchain network.

[0010] In some embodiments, the category of target functionality includes at least one of a network capability or a network service.

[0011] In some embodiments, the function discovery method further includes: registering the first NF network element in the first blockchain network.

[0012] In some embodiments, registering the first NF network element in the first blockchain network includes: receiving a function registration request sent by the first NF network element; obtaining registration information of the first NF network element according to the function registration request; writing the registration information into a transaction of the first blockchain network; when the number of endorsements of the transaction by other distributed service nodes collected in the first blockchain network exceeds a second threshold, writing the transaction into a status database of the first blockchain network; and feeding back a function registration request response to the first NF network element.

[0013] In some embodiments, the first blockchain network is a capability blockchain network and the second blockchain network is a service blockchain network.

[0014] In some embodiments, the first blockchain network is a service blockchain network and the second blockchain network is a capability blockchain network.

[0015] In some embodiments, obtaining registration information of the first NF network element according to the function registration request includes: generating capability information of the first NF network element according to the service profile in the function registration request as the registration information of the first NF network element.

[0016] In some embodiments, registering the first NF network element to the first blockchain network also includes: storing a service profile.

[0017] In some embodiments, obtaining registration information of the first NF network element according to the function registration request includes: using the service configuration file in the function registration request as the registration information of the first NF network element.

[0018] In some embodiments, the function discovery method also includes: when the target function is consistent with the category of the function written in the first blockchain network, querying in the first blockchain network to obtain a target function list; according to the target function list, selecting a third NF network element that provides functions for the first NF network element, wherein the third NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the first blockchain network.

[0019] According to some embodiments of the second aspect of the present disclosure, a function discovery device is provided, including: a first receiving unit, configured to receive a discovery request for a target function from a first network function NF network element; a query unit, configured to, when determining, based on the target function, to initiate a cross-chain query transaction in the first blockchain network, perform a query in the second blockchain network through the functional network, wherein the distributed service nodes corresponding to the functional network are located in the first blockchain network and the second blockchain network; a second receiving unit, configured to receive a transaction response fed back by the functional network, wherein the transaction response includes a target function list corresponding to the discovery request.

[0020] In some embodiments, the function discovery device is also configured to determine whether the category of the target function is consistent with the category of the function written in the first blockchain network; if the category of the target function is inconsistent with the category of the function written in the first blockchain network, determine to initiate a cross-chain query transaction in the first blockchain network.

[0021] In some embodiments, the function discovery device is also configured to select, based on the target function list, a second NF network element that provides functions for the first NF network element when the number of transaction responses is greater than a first threshold, wherein the second NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the second blockchain network.

[0022] In some embodiments, the function discovery device is also configured to negotiate with the second NF network element to determine the interaction protocol and data transmission channel between the first NF network element and the second NF network element; according to the interaction protocol and the data transmission channel, the second NF network element provides the first NF network element with the target function requested by the target function discovery request.

[0023] In some embodiments, the function discovery device is also configured to write the calling relationship between the first NF network element and the second NF network element into the first blockchain network.

[0024] In some embodiments, the category of target functionality includes at least one of a network capability or a network service.

[0025] In some embodiments, the function discovery device is also configured to register the first NF network element into the first blockchain network.

[0026] In some embodiments, the function discovery device is also configured to receive a function registration request sent by the first NF network element; obtain registration information of the first NF network element according to the function registration request; write the registration information into the transaction of the first blockchain network; when the number of endorsements of the transaction by other distributed service nodes collected in the first blockchain network exceeds a second threshold, write the transaction into the status database of the first blockchain network; and feedback a response to the function registration request to the first NF network element.

[0027] In some embodiments, the first blockchain network is a capability blockchain network and the second blockchain network is a service blockchain network.

[0028] In some embodiments, the first blockchain network is a service blockchain network and the second blockchain network is a capability blockchain network.

[0029] In some embodiments, the function discovery device is also configured to generate capability information of the first NF network element according to the service profile in the function registration request as registration information of the first NF network element.

[0030] In some embodiments, the function discovery device is further configured to store the service profile.

[0031] In some embodiments, the function discovery device is also configured to use the service profile in the function registration request as registration information of the first NF network element.

[0032] In some embodiments, the function discovery device is also configured to perform a query in the first blockchain network to obtain a target function list when the target function is consistent with the category of the function written in the first blockchain network; according to the target function list, select a third NF network element that provides functions for the first NF network element, wherein the third NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the first blockchain network.

[0033] According to some embodiments of the third aspect of the present disclosure, a function discovery device is provided, comprising: a memory; and a processor coupled to the memory, the processor being configured to execute the function discovery method in any one of the above embodiments based on instructions stored in the memory.

[0034] According to some embodiments of the fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the function discovery method in any of the above embodiments is implemented.

[0035] According to some embodiments of the fifth aspect of the present disclosure, a computer program product is provided, including a computer program, which implements the function discovery method in any of the above embodiments when the computer program is executed by a processor.

[0036] According to some embodiments of the sixth aspect of the present disclosure, there is provided a network system, comprising: two blockchain networks; a first sub-network, configured to register with one of the two blockchain networks; a functional network, configured to register with each of the two blockchain networks; a distributed service node corresponding to the first sub-network, configured to execute the function discovery method in any one of the above embodiments; and a distributed service node corresponding to the functional network, configured to perform a query in the other blockchain network of the two blockchain networks based on a cross-chain query transaction of one of the two blockchain networks, and to feed back a transaction response to the distributed service node corresponding to the first sub-network.

[0037] In some embodiments, one of the two blockchain networks is a capability blockchain network, and the other blockchain network is a service blockchain network, and the distributed service node corresponding to the functional network is further configured to: receive a service registration request sent by the functional network; write the service configuration file in the service registration request into the transaction of the service blockchain network; when the number of endorsements of the transaction by other distributed service nodes in the collected service blockchain network exceeds a third threshold, write the transaction into the status database of the service blockchain network; obtain capability information of the functional network according to the service registration request; write the capability information into the transaction of the capability blockchain network; when the number of endorsements of the transaction by other distributed service nodes in the collected capability blockchain network exceeds a fourth threshold, write the transaction into the status database of the capability blockchain network; and feedback the service registration request response to the functional network.

[0038] In some embodiments, the distributed service node corresponding to the functional network is further configured to: in the event that a transaction to write the capability to the capability blockchain network fails, roll back the distributed service node that receives the transaction from the service blockchain network to before the transaction to write the service configuration file to the service blockchain network; and feedback a registration failure response to the functional network.

[0039] In some embodiments, the first subnetwork includes: at least one of a 2B dedicated network or a 2C sinking edge network, wherein the 2B dedicated network is registered to the capability blockchain network, and the 2C sinking edge network is registered to the service blockchain network.

[0040] In the above embodiment, by determining whether to initiate a cross-chain query transaction in the first blockchain network according to the target function, and then, if it is determined that a cross-chain query transaction is initiated in the first blockchain network, a query is performed in the second blockchain network through the functional network, and then a transaction response fed back by the functional network is received to determine the target function list corresponding to the discovery request, thereby realizing cross-network function discovery and improving the flexibility of cross-network function discovery. In addition, by flexibly realizing cross-network function discovery, the need for on-demand deployment of a wide range of distributed networks for function discovery in 6G application scenarios is also met. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0042] The present disclosure can be more clearly understood from the following detailed description with reference to the accompanying drawings.

[0043] Figure 1 A flowchart showing some embodiments of the function discovery method of the present disclosure.

[0044] Figure 2 A schematic diagram showing some embodiments of the method of registering a first NF network element to a first blockchain network disclosed in the present invention.

[0045] Figure 3 Schematic diagrams showing other embodiments of the method of registering a first NF network element to a first blockchain network disclosed in the present invention.

[0046] Figure 4 Schematic diagrams showing some embodiments of the function discovery device disclosed herein.

[0047] Figure 5 Schematic diagrams showing other embodiments of the function discovery device disclosed herein.

[0048] Figure 6 Schematic diagrams showing some embodiments of the network system of the present disclosure.

[0049] Figure 7 Schematic diagrams showing some application examples of the network system of the present disclosure.

[0050] Figure 8 A schematic diagram showing some embodiments of a method for registering a function network to a service blockchain network and a capability blockchain network of the present disclosure.

[0051] Fig. 9 Schematic diagrams showing other embodiments of the function discovery method disclosed herein. DETAILED DESCRIPTION

[0052] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.

[0053] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0054] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0055] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0056] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0057] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0058] Currently, the 5G service-oriented framework defined by 3GPP includes three parts: service registration, service discovery, and service request. Specifically, first, the NF network element acting as a service provider initiates a service registration request to the NRF network element, where the service registration request includes information about the NF network element; secondly, the NF network element acting as a service user sends a function discovery request to the NRF network element, indicating which NF network element it is requesting and the functions that the NF network element should support. At this time, the NRF network element will filter out all NF network elements that have been registered in the NRF network element and can provide the requested service, and will return a service discovery response to the NF network element acting as a service user; finally, the NF network element acting as a service user sends a function request to the NF network element acting as a service provider based on the service discovery response.

[0059] The NRF network elements of each network will only implement service registration and discovery of the NF network elements of this network. When the relevant core network process involves cross-network service discovery, it further relies on the interaction between NRF network elements.

[0060] If cross-network function discovery is achieved through the above method, the process is relatively complicated and the data cannot be operated flexibly. At the same time, there are certain limitations in the application scenarios of the future 6G distributed network architecture.

[0061] In view of the above problems, the present disclosure proposes a function discovery method to improve the flexibility of cross-network function discovery, as follows.

[0062] Figure 1 A flowchart showing some embodiments of the function discovery method of the present disclosure.

[0063] like Figure 1 As shown, the function discovery method includes steps 110-130, which are performed by a function discovery device.

[0064] In step 110, a discovery request for a target function is received from a first NF network element.

[0065] The first NF network element notifies the corresponding distributed service node to meet its own needs by sending a discovery request for the target function.

[0066] In step 120, when it is determined that a cross-chain query transaction is initiated in the first blockchain network according to the target function, a query is performed in the second blockchain network through the functional network, wherein the distributed service node corresponding to the functional network is located in the first blockchain network and the second blockchain network.

[0067] Through cross-chain interoperability between blockchain networks, interaction and communication between network elements in different networks are realized, which facilitates the proposal of a simplified function discovery method.

[0068] In some embodiments, according to the target function, it is determined whether to initiate a cross-chain query transaction in the first blockchain network by judging whether the target function is consistent with the category of the function written in the first block network.

[0069] For example, when the target function is inconsistent with the category of the function written in the first blockchain network, it is determined to initiate a cross-chain query transaction in the first blockchain network.

[0070] For example, assuming that the 2B private network is registered in the capability blockchain network and the 2B private network needs to discover service information, or the 2C sinking edge network is registered in the service blockchain network and the 2C sinking edge network needs to discover capability information, in this case, it means that the category of the target function is inconsistent with the function written in the first blockchain network, then it is determined to initiate a cross-chain query transaction in the first blockchain network.

[0071] For example, when the target function is consistent with the category of the function written in the first blockchain network, a cross-chain query transaction will not be initiated in the first blockchain network, but a query will be directly performed in the first blockchain network to obtain a list of target functions.

[0072] For example, assuming that the 2B private network is registered in the capability blockchain network and the 2B private network needs to discover capability information, or the 2C sinking edge network is registered in the service blockchain network and the 2C sinking edge network needs to discover service information, in this case, it means that the target function is consistent with the category of the function written in the first blockchain network, then the query is directly performed in the first blockchain network to obtain the target function list.

[0073] By judging whether the category of the target function is consistent with the category of the function written and sent in the first blockchain network, it is determined whether to initiate a cross-chain query transaction, thereby ensuring the efficiency of the function discovery method.

[0074] In some embodiments, if a query is performed directly in the first blockchain network to obtain a target function list, then a third NF network element that provides functions for the first NF network element is selected based on the target list, wherein the third NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the first blockchain network.

[0075] In some embodiments, the category of target functionality includes at least one of a network capability or a network service.

[0076] Considering that the target function of the request can be either a network service or a network capability, a direct query of the network capability is provided, and the customization function of the network capability is realized. Among them, the relationship between the network capability and the network service is that a network capability can be realized by providing one or more network services.

[0077] In step 130, a transaction response fed back by the functional network is received, wherein the transaction response includes a target function list corresponding to the discovery request.

[0078] In the above embodiment, by determining whether to initiate a cross-chain query transaction in the first blockchain network according to the target function, and then, if it is determined that a cross-chain query transaction is initiated in the first blockchain network, a query is performed in the second blockchain network through the functional network, and then a transaction response fed back by the functional network is received to determine the target function list corresponding to the discovery request, thereby realizing cross-network function discovery and improving the flexibility of cross-network function discovery. In addition, by flexibly realizing cross-network function discovery, the need for on-demand deployment of a wide range of distributed networks for function discovery in 6G application scenarios is also met.

[0079] In some embodiments, when the number of transaction responses is greater than a first threshold, a second NF network element that provides functions for the first NF network element is selected according to a target function list, wherein the second NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the second blockchain network.

[0080] The target function lists in multiple transaction responses are the same, only the signatures in the transaction responses are different, wherein the signatures in the transaction responses correspond to the second NF network element, that is, different second NF network elements correspond to different signatures.

[0081] In some embodiments, the interaction protocol and data transmission channel between the first NF network element and the second NF network element can be determined through negotiation with the second NF network element, and then the target function requested by the target function discovery request is provided to the first NF network element through the second NF network element based on the interaction protocol and the data transmission channel.

[0082] In some embodiments, the calling relationship between the first NF network element and the second NF network element is written into the first blockchain network to record the calling relationship between the first NF network element and the second NF network element, so as to facilitate subsequent traceability.

[0083] By writing the calling relationship between the first NF network element and the second NF network element into the first blockchain network, tamper-proof and traceability are achieved, and the risk of data loss or destruction is reduced.

[0084] In some embodiments, in order to enable the distributed service node located in the first blockchain network to receive the discovery request of the target function from the first NF network element, it is necessary to perform preprocessing of registering the first NF network element to the first blockchain network, specifically including steps S11-S15.

[0085] For example, the first blockchain network is a capability blockchain network, and the second blockchain network is a service blockchain network.

[0086] For another example, the first blockchain network is a service blockchain network, and the second blockchain network is a capability blockchain network.

[0087] You can selectively register with the capability blockchain network or the service blockchain network based on the needs of different first NF network elements.

[0088] In step S11, a function registration request sent by the first NF network element is received.

[0089] In step S12, the registration information of the first NF network element is obtained according to the function registration request.

[0090] In some embodiments, if the first blockchain network is a capability blockchain network and the second blockchain network is a service blockchain network, capability information of the first NF network element is generated according to the service configuration file in the function registration request, and the capability information is used as the registration information of the first NF network element.

[0091] For example, the registration of a 2B private network. Due to the demand characteristics of the 2B private network itself, the 2B private network is not suitable for directly exposing its own service configuration file (that is, it is not suitable for directly exposing its own service information) and its own network topology. Therefore, registering the 2B private network in the capability blockchain network can meet the demand characteristics of the private network itself.

[0092] That is to say, when the 2B private network is registered in the capability blockchain network, its service configuration file will be directly stored in the distributed service node corresponding to the private network, and will not be written to the capability blockchain network, effectively reducing the risk caused by excessive information exposure. In addition, by selectively registering to the capability blockchain network or the service blockchain network according to the needs of different first NF network elements, the diverse needs of different operating entities are met, and the applicability of the function discovery method in 6G application scenarios is enhanced.

[0093] In some embodiments, if the first blockchain network is a service blockchain network and the second blockchain network is a capability blockchain network, the service configuration file in the function registration request is directly used as the registration information of the first NF network element.

[0094] In step S13, the registration information is written into the transaction of the first blockchain network.

[0095] In step S14, when the number of endorsements of the transaction collected by other distributed service nodes in the first blockchain network exceeds a second threshold, the transaction is written into the state database of the first blockchain network.

[0096] In step S15, a registration request response is sent to the first NF network element feedback function.

[0097] In some embodiments, if the first blockchain network is a capability blockchain network and the second blockchain network is a service blockchain network, the service configuration file in the function registration request also needs to be stored.

[0098] By designing two different blockchain networks, the capability information and service information are written into different blockchain networks respectively, providing a multi-level information capability information and service information registration method. In addition, when the information written into the blockchain network needs to be increased, decreased or modified, the information stored on different blockchain networks can be collaboratively updated through cross-chain technology.

[0099] That is to say, when the service configuration file of a certain NF network element needs to be increased, decreased or modified, and the network element is registered on the capability blockchain network, the updated capability information will be generated according to the increased, decreased or modified service configuration file, and then the updated capability information will be written to the capability blockchain network.

[0100] In addition, the communication between network elements in different networks is realized through blockchain technology, which takes into account the technical characteristics and advantages of blockchain, enhances the flexibility of network deployment, and meets the dynamic and frequent service call requirements. In addition, combined with the characteristics of blockchain technology, the security of communication between network elements in two different networks is guaranteed, anti-tampering and traceability are achieved, and the risk of data loss or destruction is reduced.

[0101] Figure 2 A schematic diagram showing some embodiments of the method of registering a first NF network element to a first blockchain network disclosed in the present invention.

[0102] like Figure 2 As shown, the first blockchain network is a capability blockchain network, and the method for registering the first NF network element to the first blockchain network includes steps S21-S27, and the first NF network element needs to be registered to the capability blockchain network.

[0103] For example, the first NF network element may be located in a 2B dedicated network.

[0104] In step S21, the first NF network element sends a function registration / update request to the distributed service node in the capability blockchain network, wherein the function registration / update request carries a service profile (i.e., NF network element service profile).

[0105] In step S22, the distributed service node stores the NF network element service configuration file locally to facilitate the subsequent provision of mechanisms such as keep-alive.

[0106] In step S23, a service profile storage response is fed back to the first NF network element to notify the first NF network element that the service profile has been stored.

[0107] In step S24, the distributed service node generates capability information (network capability information) supported by the first NF network element (or supported by the network in which the first NF network element is located) based on the service profile of the first NF network element, and then creates a transaction of the capability blockchain network and writes the generated capability information into the transaction.

[0108] In some embodiments, the distributed service node may generate capability information supported by the first NF network element based on a network policy (e.g., conditional triggering or periodic checking) and a service profile of the first NF network element. The conditional triggering means generating capability information of the first NF network element when a specified condition is met, and the periodic checking means periodically generating capability information of the first NF network element. The network policy may be preset or issued.

[0109] In step S25, the distributed service node sends the transaction obtained in step S24 to other distributed service nodes added to the capability blockchain network to obtain endorsements of the transaction from other distributed service nodes in the capability blockchain network.

[0110] In some embodiments, transactions may be sent via broadcast.

[0111] In step S26, when the capability blockchain network reaches a consensus on the transaction, all distributed service nodes added to the capability blockchain network add the block to the chain and write the consensus transaction into the state database in the capability blockchain network.

[0112] In some embodiments, by determining whether the number of distributed service nodes in other distributed service nodes in the capability blockchain network that have endorsed the transaction is greater than a second threshold, when the number is greater than the second threshold, it indicates that the capability blockchain network has reached a consensus on the transaction; otherwise, it indicates that the capability blockchain network has not reached a consensus on the transaction.

[0113] For example, the second threshold may be one-half of the total number of other distributed service nodes in the capability blockchain network.

[0114] In step S27, the distributed service node responds to the first NF network element feedback function registration / update request.

[0115] In the above steps, before registration, it can be understood that the capability blockchain network does not contain the capability information supported by the first NF network element and the distributed service node in the capability blockchain network does not contain the service profile of the first NF network element. After successful registration, the capability blockchain network contains the capability information supported by the first NF network element and the distributed service node in the capability blockchain network contains the service profile of the first NF network element. The update in the above steps refers to the capability blockchain network already containing the capability information supported by the first NF network element and the distributed service node in the capability blockchain network already containing the service profile of the first NF network element. The update is to update the service profile of the first NF network element contained in the distributed service node in the capability blockchain network, and the update of the capability information supported by the first NF network element is realized by updating the service profile.

[0116] Figure 3 Schematic diagrams showing other embodiments of the method of registering a first NF network element to a first blockchain network disclosed in the present invention.

[0117] like Figure 3As shown, the first blockchain network is a service blockchain network, and the method for registering the first NF network element to the first blockchain network includes steps S31-S35, and the first NF network element needs to be registered to the service blockchain network.

[0118] For example, the first NF network element may be located in a 2C sinking edge network.

[0119] In step S31, the first NF network element sends a function registration / update request to the distributed service node in the service blockchain network, wherein the function registration / update request carries a service profile (i.e., NF network element service profile).

[0120] In step S32, the distributed service node writes the service configuration file of the first NF network element into the transaction of the created service blockchain network.

[0121] In step S33, the distributed service node sends the transaction obtained in step S32 to other distributed service nodes added to the service blockchain network to obtain endorsements of the transaction from other distributed service nodes in the service blockchain network.

[0122] In step S34, when the service blockchain network reaches a consensus on the transaction, all distributed service nodes that have joined the service blockchain network will add the block to the chain and write the consensus transaction into the status database in the service blockchain network.

[0123] In some embodiments, by determining whether the number of distributed service nodes in other distributed service nodes in the service blockchain network that have endorsed the transaction is greater than a second threshold, when the number is greater than the second threshold, it indicates that the service blockchain network has reached a consensus on the transaction; otherwise, it indicates that the service blockchain network has not reached a consensus on the transaction.

[0124] For example, the second threshold may be one-half of the total number of other distributed service nodes in the service blockchain network.

[0125] In step S35, the distributed service node responds to the first NF network element feedback function registration / update request.

[0126] In the above steps, before registration, it can be understood that the service blockchain network does not contain the service configuration file of the first NF network element. After successful registration, the service blockchain network contains the service configuration file of the first NF network element. The update in the above steps refers to the service configuration file of the first NF network element that has been included in the service blockchain network. The update is to update the service configuration file of the first NF network element in the service blockchain network.

[0127] Figure 2 The registration method shown and Figure 3 The registration method shown differs in whether the first NF network element is registered to the capability blockchain network or to the service blockchain network.

[0128] According to the needs of the first NF network element, selectively register to at least one of the capability blockchain network or the service blockchain network.

[0129] For a 2B private network (for example, the internal network of a certain unit), it is not desirable to expose its own service configuration files and network topology to the outside world, and other external networks (such as the internal networks of other units or the networks of operators) do not want the 2B private network to easily obtain the service configuration files and network topologies of other external networks. In this case, the 2B private network is suitable for registration in the capability blockchain network. The 2B private network stores its own service configuration files in the distributed service nodes corresponding to the 2B private network, and does not synchronize its own service configuration files with the entire network. It only registers the capability information generated according to the service configuration files with the capability blockchain network and reaches a consensus with the entire network. If the local service information (i.e., the service configuration files) of the 2B private network is updated or deleted later, the distributed service nodes corresponding to the 2B private network will also update or delete the capability information in the capability blockchain network accordingly.

[0130] For the 2C sinking edge network (for example, the network provided by the operator), the local service information (service configuration file) of the 2C sinking edge network is some relatively simple services. These relatively simple services, even if combined, cannot achieve a certain network capability. Therefore, the 2C sinking edge network is suitable for registration in the service blockchain network. The 2C sinking edge network registers its own service configuration file in the service blockchain network and reaches a consensus across the entire network. If the local service information (i.e., service configuration file) of the 2C sinking edge network is updated or deleted later, the distributed service node corresponding to the 2C sinking edge network will update or delete the service information (service configuration file) in the service blockchain network.

[0131] For a functional network (for example, a network where an operator provides services and capabilities), the functional network needs to be registered in the capability blockchain network and the service blockchain network. Specifically, the local service information (service profile) of the functional network is registered in the service blockchain network, and the capability information of the functional network is registered in the capability blockchain network. Generally speaking, the distributed service node corresponding to the functional network first registers the service profile in the service blockchain network, and at the same time calls the smart contract of the cross-chain transaction to generate the capability information supported by the functional network based on the service profile, and registers the capability information in the capability blockchain network. Both the capability information and the service profile need to reach a consensus in the corresponding blockchain network. If the local service information (i.e., the service profile) of the functional network is updated or deleted later, the distributed service node corresponding to the functional network will update or delete the service information (service profile) in the service blockchain network, and will also update or delete the capability information in the capability blockchain network accordingly.

[0132] In the above embodiment, by determining whether to initiate a cross-chain query transaction in the first blockchain network according to the target function, and then, if it is determined that a cross-chain query transaction is initiated in the first blockchain network, a query is performed in the second blockchain network through the functional network, and then a transaction response fed back by the functional network is received to determine the target function list corresponding to the discovery request, thereby realizing cross-network function discovery and improving the flexibility of cross-network function discovery. In addition, by flexibly realizing cross-network function discovery, the need for on-demand deployment of a wide range of distributed networks for function discovery in 6G application scenarios is also met.

[0133] Figure 4 Schematic diagrams showing some embodiments of the function discovery device disclosed herein.

[0134] like Figure 4 As shown, the function discovery device 40 includes a first receiving unit 41 , a query unit 42 and a second receiving unit 43 .

[0135] The first receiving unit 41 is configured to receive a discovery request for a target function from a first network function NF network element.

[0136] The query unit 42 is configured to perform a query in the second blockchain network through the functional network when a cross-chain query transaction is determined to be initiated in the first blockchain network according to the target function, wherein the distributed service node corresponding to the functional network is located in the first blockchain network and the second blockchain network.

[0137] In some embodiments, the function discovery device 40 is also configured to determine whether the category of the target function is consistent with the category of the function written in the first blockchain network; if the category of the target function is inconsistent with the category of the function written in the first blockchain network, determine to initiate a cross-chain query transaction in the first blockchain network.

[0138] In some embodiments, the category of target functionality includes at least one of a network capability or a network service.

[0139] The second receiving unit 43 is configured to receive a transaction response fed back by the functional network, wherein the transaction response includes a target function list corresponding to the discovery request.

[0140] In some embodiments, the function discovery device 40 is also configured to select a second NF network element that provides functions for the first NF network element based on the target function list when the number of transaction responses is greater than a first threshold, wherein the second NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the second blockchain network.

[0141] In some embodiments, the function discovery device 40 is also configured to negotiate with the second NF network element to determine the interaction protocol and data transmission channel between the first NF network element and the second NF network element; according to the interaction protocol and the data transmission channel, the second NF network element provides the first NF network element with the target function requested by the target function discovery request.

[0142] In some embodiments, the function discovery device 40 is also configured to write the calling relationship between the first NF network element and the second NF network element into the first blockchain network.

[0143] In some embodiments, the function discovery device 40 is also configured to register the first NF network element into the first blockchain network.

[0144] In some embodiments, the function discovery device 40 is also configured to receive a function registration request sent by the first NF network element; obtain registration information of the first NF network element according to the function registration request; write the registration information into the transaction of the first blockchain network; when the number of endorsements of the transaction by other distributed service nodes collected in the first blockchain network exceeds a second threshold, write the transaction into the status database of the first blockchain network; and feedback a function registration request response to the first NF network element.

[0145] In some embodiments, the first blockchain network is a capability blockchain network and the second blockchain network is a service blockchain network.

[0146] In some embodiments, the first blockchain network is a service blockchain network and the second blockchain network is a capability blockchain network.

[0147] In some embodiments, the function discovery device 40 is also configured to generate capability information of the first NF network element according to the service profile in the function registration request as registration information of the first NF network element.

[0148] In some embodiments, the function discovery device 40 is further configured to store service profiles.

[0149] In some embodiments, the function discovery device 40 is also configured to use the service profile in the function registration request as registration information of the first NF network element.

[0150] In some embodiments, the function discovery device 40 is also configured to perform a query in the first blockchain network to obtain a target function list when the target function is consistent with the category of the function written in the first blockchain network; according to the target function list, select a third NF network element that provides functions for the first NF network element, wherein the third NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the first blockchain network.

[0151] In the above embodiment, by determining whether to initiate a cross-chain query transaction in the first blockchain network according to the target function, and then, if it is determined that a cross-chain query transaction is initiated in the first blockchain network, a query is performed in the second blockchain network through the functional network, and then a transaction response fed back by the functional network is received to determine the target function list corresponding to the discovery request, thereby realizing cross-network function discovery and improving the flexibility of cross-network function discovery. In addition, by flexibly realizing cross-network function discovery, the need for on-demand deployment of a wide range of distributed networks for function discovery in 6G application scenarios is also met.

[0152] Figure 5 Schematic diagrams showing other embodiments of the function discovery device disclosed herein.

[0153] like Figure 5 As shown, the security control device 50 of this embodiment includes: a memory 51 and a processor 52 coupled to the memory 51 , and the processor 52 is configured to execute the function discovery method in any one of the aforementioned embodiments based on instructions stored in the memory 51 .

[0154] The memory 51 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.

[0155] The safety control device 50 may also include an input / output interface 53, a network interface 54, a storage interface 55, etc. These interfaces 53, 54, 55, the memory 51, and the processor 52 may be connected, for example, via a bus 56. The input / output interface 53 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, a touch screen, a microphone, and a speaker. The network interface 54 provides a connection interface for various networked devices. The storage interface 55 provides a connection interface for external storage devices such as an SD card and a USB flash drive.

[0156] Figure 6 Schematic diagrams showing some embodiments of the network system of the present disclosure.

[0157] like Figure 6 As shown, the network system 60 includes two blockchain networks 61, a first subnetwork 62, a functional network 63, a distributed service node 64 corresponding to the first subnetwork 62, and a distributed service node 65 corresponding to the functional network 63.

[0158] The first sub-network 62 is configured to register with one of the two blockchain networks 61 .

[0159] The functional network 63 is configured to register with each of the two blockchain networks 61.

[0160] The distributed service node 64 corresponding to the first sub-network 62 is configured to execute the function discovery method in any of the above embodiments.

[0161] The distributed service node 65 corresponding to the functional network 63 is configured to query in the other blockchain network of the two blockchain networks 61 based on the cross-chain query transaction of one of the blockchain networks 61, and feedback the transaction response to the distributed service node 64 corresponding to the first sub-network 62.

[0162] In some embodiments, Figure 7 Schematic diagrams showing some application examples of the network system of the present disclosure.

[0163] like Figure 7 As shown, the two blockchain networks can be, for example, a capability blockchain network (Chain 1: NW-Chain), in which network capability information is written, and a service blockchain network (Chain 2: NF-Chain), in which NF service information is written.

[0164] like Figure 7 As shown, participants can selectively register to at least one of the capability blockchain network or the service blockchain network according to their own needs.

[0165] like Figure 7As shown, the first sub-network may have two types, for example, participant 1 (2B dedicated network) and participant 4 (2C sinking edge network). Participant 1 registers to the capability blockchain network through its corresponding distributed service node, and participant 4 registers to the service blockchain network through its corresponding distributed service node.

[0166] like Figure 7 As shown, there may be two functional networks, for example, participant 2 (functional network A) and participant 3 (functional network B). Participant 2 registers to the capability blockchain network and the service blockchain network through its corresponding distributed service node, and participant 3 registers to the capability blockchain network and the service blockchain network through its corresponding distributed service node.

[0167] Because the functional network is registered in both the capability blockchain network and the service blockchain network, the 2B private network or the 2C sinking edge network can realize cross-chain query transactions through the functional network. That is to say, for the 2B private network, it can be queried in the service blockchain network through the functional network, and for the 2C sinking edge network, it can be queried in the capability blockchain network through the functional network.

[0168] In some embodiments, one of the two blockchain networks 61 is a capability blockchain network, and the other blockchain network is a service blockchain network. The distributed service node 65 corresponding to the functional network 63 is also configured to: receive a service registration request sent by the functional network 63; write the service configuration file in the service registration request into the transaction of the service blockchain network; when the number of endorsements of the transaction by other distributed service nodes in the collected service blockchain network exceeds a third threshold, write the transaction into the status database of the service blockchain network; obtain capability information of the functional network 63 according to the service registration request; write the capability information into the transaction of the capability blockchain network; when the number of endorsements of the transaction by other distributed service nodes in the collected capability blockchain network exceeds a fourth threshold, write the transaction into the status database of the capability blockchain network; and feedback the service registration request response to the functional network 63.

[0169] In some embodiments, the distributed service node 65 corresponding to the functional network 63 is also configured to: in the event of a transaction failure to write the capability to the capability blockchain network, roll back the distributed service node that receives the transaction from the service blockchain network to before the transaction to write the service configuration file to the service blockchain network; and feedback a registration failure response to the functional network 63.

[0170] In some embodiments, the first subnetwork 62 includes: at least one of a 2B dedicated network or a 2C sinking edge network, wherein the 2B dedicated network is registered to the capability blockchain network, and the 2C sinking edge network is registered to the service blockchain network.

[0171] Figure 8 A schematic diagram showing some embodiments of a method for registering a function network to a service blockchain network and a capability blockchain network of the present disclosure.

[0172] like Figure 8 As shown, the method for registering a function network to a service blockchain network and a capability blockchain network includes steps S81-S88b. Among them, the NF network element is the network element in the function network, and the distributed service nodes in the capability blockchain network and the service blockchain network are the distributed service nodes corresponding to the function network.

[0173] In step S81, the NF network element sends a service registration / update request to the distributed service node corresponding to the functional network, wherein the service registration / update request carries a service profile (i.e., the NF network element service profile).

[0174] In step S82, the distributed service node writes the service configuration file of the NF network element into the transaction of the created service blockchain network.

[0175] In step S83, the distributed service node sends the transaction obtained in step S82 to other distributed service nodes added to the service blockchain network to obtain endorsements of the transaction from other distributed service nodes in the reading blockchain network.

[0176] In step S84, when the service blockchain network reaches a consensus on the transaction, all distributed service nodes that have joined the service blockchain network will add the block to the chain and write the consensus transaction into the status database in the service blockchain network.

[0177] In some embodiments, by determining whether the number of distributed service nodes in other distributed service nodes in the service blockchain network that have endorsed the transaction is greater than a third threshold, when the number is greater than the third threshold, it indicates that the service blockchain network has reached a consensus on the transaction; otherwise, it indicates that the service blockchain network has not reached a consensus on the transaction.

[0178] For example, the third threshold may be one-half of the total number of other distributed service nodes in the service blockchain network.

[0179] In step S85, the distributed service node memorizes the service configuration file of the NF network element, generates the capability information supported by the NF network element, then creates a transaction of the capability blockchain network, and writes the generated capability information into the transaction.

[0180] In step S86, the distributed service node sends the transaction obtained in step S85 to other distributed service nodes added to the capability blockchain network to obtain endorsements of the transaction from other distributed service nodes in the capability blockchain network.

[0181] In step S87a, when the capability blockchain network reaches a consensus on the transaction, all distributed service nodes that have joined the capability blockchain network will add the block to the chain and write the consensus transaction into the state database in the capability blockchain network.

[0182] In some embodiments, it is determined whether the number of distributed service nodes in other distributed service nodes in the capability blockchain network that have endorsed the transaction is greater than a fourth threshold. When the number is greater than the fourth threshold, it indicates that the capability blockchain network has reached a consensus on the transaction; otherwise, it indicates that the capability blockchain network has not reached a consensus on the transaction.

[0183] For example, the fourth threshold may be one-half of the total number of other distributed service nodes in the capability blockchain network.

[0184] In step S88a, the distributed service node feeds back the service registration / update request response to the NF network element.

[0185] In step S87b, when the capability blockchain network fails to reach a consensus on the transaction, all distributed service nodes in the service blockchain network roll back to before the transaction in which the service configuration file is written into the service blockchain network.

[0186] In step S88b, the distributed service node feeds back a service registration / update request failure response to the NF network element.

[0187] In the above steps, before registration, it can be understood that the capability blockchain network does not contain the capability information supported by the NF network element and the service blockchain network does not contain the service configuration file of the NF network element. After successful registration, the capability blockchain network contains the capability information supported by the NF network element and the service blockchain network contains the service configuration file of the NF network element. The update in the above steps refers to the capability information supported by the NF network element already included in the capability blockchain network and the service configuration file of the NF network element already included in the service blockchain network. The update is to update the service configuration file of the first NF network element included in the service blockchain network, and the update of the capability information supported by the NF network element is realized by updating the service configuration file.

[0188] In the above embodiment, by determining whether to initiate a cross-chain query transaction in the first blockchain network according to the target function, and then, if it is determined that a cross-chain query transaction is initiated in the first blockchain network, a query is performed in the second blockchain network through the functional network, and then a transaction response fed back by the functional network is received to determine the target function list corresponding to the discovery request, thereby realizing cross-network function discovery and improving the flexibility of cross-network function discovery. In addition, by flexibly realizing cross-network function discovery, the need for on-demand deployment of a wide range of distributed networks for function discovery in 6G application scenarios is also met.

[0189] Fig. 9 Schematic diagrams showing other embodiments of the function discovery method disclosed herein.

[0190] like Fig. 9 As shown, the function discovery method includes steps S911-S920.

[0191] In step S911, the first NF network element located in the first blockchain network sends a discovery request for the target function to the distributed service node 1 located in the first blockchain network.

[0192] If the first blockchain network is a service blockchain network and the second blockchain network is a capability blockchain network, the category of the target function is the target capability; if the first blockchain network is a capability blockchain network, the category of the target function is the target service.

[0193] In step S912, the distributed service node 1 located in the first blockchain network initiates a cross-chain query transaction to the functional network located in both the first blockchain network and the second blockchain network, and then initiates a cross-chain query transaction to other distributed service nodes joined the second blockchain network through the distributed service node of the functional network.

[0194] In some embodiments, the distributed service node 1 may first perform a query in the first blockchain network, and when it is found that there is no information matching the target function in the first blockchain network, a cross-chain query transaction is initiated through the functional network.

[0195] In step S913, the distributed service node of the functional network queries in the second blockchain network, obtains a list of target functions that can satisfy the target functions, and feeds back a signed transaction response to the distributed service node 1, wherein the transaction response includes the target function list.

[0196] Among them, the label of the transaction response serves as an endorsement of the cross-chain query transaction by other distributed service nodes joining the second blockchain network.

[0197] In step S914, the distributed service node 1 selects a second NF network element that can provide the target function from the target function list in the multiple transaction responses fed back by the functional network.

[0198] In step S915, the distributed service node 1 of the first NF network element negotiates with the distributed service node 2 of the second NF network element.

[0199] In step S916, the distributed service node 1 feeds back a target function discovery response to the first NF network element.

[0200] In step S917, communication between the first NF network element and the second NF network element is implemented according to the interaction protocol and data transmission channel between the first NF network element and the second NF network element determined by negotiation.

[0201] In step S918, the distributed service node 1 writes the calling relationship between the first NF network element and the second NF network element into the transaction of the first blockchain network, wherein the calling relationship includes the second NF network element itself.

[0202] In step S919, the transaction of writing the call relationship is sent to other distributed service nodes in the second blockchain network through the functional network to obtain the endorsement of the transaction by the second blockchain network.

[0203] In step S920, the second blockchain network reaches a consensus on the transaction, and other distributed service nodes that have joined the second blockchain network write the transaction into the status database of the second blockchain network.

[0204] In some embodiments, steps S918-S920 are optional and can be performed based on actual conditions.

[0205] In the above embodiment, by determining whether to initiate a cross-chain query transaction in the first blockchain network according to the target function, and then, if it is determined that a cross-chain query transaction is initiated in the first blockchain network, a query is performed in the second blockchain network through the functional network, and then a transaction response fed back by the functional network is received to determine the target function list corresponding to the discovery request, thereby realizing cross-network function discovery and improving the flexibility of cross-network function discovery. In addition, by flexibly realizing cross-network function discovery, the need for on-demand deployment of a wide range of distributed networks for function discovery in 6G application scenarios is also met.

[0206] In some embodiments, a computer program product is protected, including a computer program or an instruction, which implements the above-mentioned fire fighting and extinguishing when the computer program or instruction is executed by a processor. The computer program product includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by the CPU, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0207] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0208] So far, the function discovery method, function discovery device, computer-readable storage medium, computer program product and network system disclosed in the present invention have been described in detail. In order to avoid obscuring the concept of the present invention, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed herein.

[0209] The method and system of the present disclosure may be implemented in many ways. For example, the method and system of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

[0210] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. A function discovery method, performed by a distributed service node in a first blockchain network, comprising: Receiving a discovery request for a target function from a first network function NF network element; When it is determined that a cross-chain query transaction is initiated in the first blockchain network according to the target function, a query is performed in the second blockchain network through a functional network, wherein a distributed service node corresponding to the functional network is located in the first blockchain network and the second blockchain network; A transaction response fed back by the functional network is received, wherein the transaction response includes a target function list corresponding to the discovery request.

2. The function discovery method according to claim 1, further comprising: Determining whether the target function is consistent with the category of the function written in the first blockchain network; When the target function is inconsistent with the category of the function written in the first blockchain network, determine to initiate a cross-chain query transaction in the first blockchain network.

3. The function discovery method according to claim 1, further comprising: When the number of transaction responses is greater than a first threshold, a second NF network element that provides functions for the first NF network element is selected according to the target function list, wherein the second NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the second blockchain network.

4. The function discovery method according to claim 3, further comprising: Negotiate with the second NF network element to determine an interaction protocol and a data transmission channel between the first NF network element and the second NF network element; According to the interaction protocol and the data transmission channel, the second NF network element provides the first NF network element with the target function requested by the target function discovery request.

5. The function discovery method according to claim 3, further comprising: The calling relationship between the first NF network element and the second NF network element is written into the first blockchain network.

6. The function discovery method according to any one of claims 1 to 5, wherein: The category of the target function includes at least one of a network capability or a network service.

7. The function discovery method according to any one of claims 1 to 5, further comprising: Register the first NF network element to the first blockchain network.

8. The function discovery method according to claim 7, wherein: The registering the first NF network element to the first blockchain network includes: Receiving a function registration request sent by the first NF network element; Obtaining registration information of the first NF network element according to the function registration request; Writing the registration information into a transaction of the first blockchain network; When the number of endorsements of the transaction by other distributed service nodes in the first blockchain network collected exceeds a second threshold, writing the transaction into a state database of the first blockchain network; Feedback the function registration request response to the first NF network element.

9. The function discovery method according to claim 8, wherein: The first blockchain network is a capability blockchain network, and the second blockchain network is a service blockchain network.

10. The function discovery method according to claim 8, wherein: The first blockchain network is a service blockchain network, and the second blockchain network is a capability blockchain network.

11. The function discovery method according to claim 9, wherein: The obtaining, according to the function registration request, registration information of the first NF network element includes: According to the service configuration file in the function registration request, the capability information of the first NF network element is generated as the registration information of the first NF network element.

12. The function discovery method according to claim 11, wherein: The step of registering the first NF network element to the first blockchain network further includes: The service configuration file is stored.

13. The function discovery method according to claim 10, wherein: The obtaining, according to the function registration request, registration information of the first NF network element includes: Use the service configuration file in the function registration request as the registration information of the first NF network element.

14. The function discovery method according to claim 2, further comprising: When the target function is consistent with the category of the function written in the first blockchain network, querying in the first blockchain network to obtain the target function list; According to the target function list, a third NF network element that provides functions for the first NF network element is selected, wherein the third NF network element is registered in the first blockchain network and the second blockchain network, or is registered in the first blockchain network.

15. A function discovery device, comprising: A first receiving unit is configured to receive a discovery request for a target function from a first network function NF network element; A query unit is configured to, when determining to initiate a cross-chain query transaction in the first blockchain network according to the target function, query in the second blockchain network through a functional network, wherein the distributed service node corresponding to the functional network is located in the first blockchain network and the second blockchain network; The second receiving unit is configured to receive a transaction response fed back by the functional network, wherein the transaction response includes a target function list corresponding to the discovery request.

16. A function discovery device, comprising: Memory; and A processor coupled to the memory, wherein the processor is configured to execute the function discovery method according to any one of claims 1 to 14 based on instructions stored in the memory.

17. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the function discovery method according to any one of claims 1 to 14 is implemented.

18. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the function discovery method according to any one of claims 1 to 14 is implemented.

19. A network system comprising: Two blockchain networks; A first sub-network is configured to register with one of the two blockchain networks; a functional network configured to register with each of the two blockchain networks; A distributed service node corresponding to the first sub-network, configured to execute the function discovery method according to any one of claims 1 to 14; and The distributed service node corresponding to the functional network is configured to query in the other blockchain network of the two blockchain networks based on a cross-chain query transaction of one of the two blockchain networks, and to feed back a transaction response to the distributed service node corresponding to the first sub-network.

20. The network system according to claim 19, wherein: One of the two blockchain networks is a capability blockchain network, and the other blockchain network is a service blockchain network. The distributed service node corresponding to the functional network is further configured as: receiving a service registration request sent by the functional network; Writing the service configuration file in the service registration request into the transaction of the service blockchain network; When the number of endorsements of the transaction by other distributed service nodes in the service blockchain network collected exceeds a third threshold, writing the transaction into a state database of the service blockchain network; Obtaining capability information of the functional network according to the service registration request; Writing the capability information into a transaction of the capability blockchain network; When the number of endorsements of the transaction by other distributed service nodes in the capability blockchain network collected exceeds a fourth threshold, writing the transaction into a state database of the capability blockchain network; A service registration request response is fed back to the functional network.

21. The network system according to claim 20, wherein: The distributed service node corresponding to the functional network is further configured as: In the event that a transaction for writing the capability to the capability blockchain network fails, rolling back the distributed service node that received the transaction from the service blockchain network to before the transaction for writing the service configuration file to the service blockchain network; A registration failure response is fed back to the functional network.

22. The network system according to any one of claims 19 to 21, wherein: The first subnetwork includes: at least one of a 2B dedicated network or a 2C sinking edge network, wherein the 2B dedicated network is registered to a capability blockchain network, and the 2C sinking edge network is registered to a service blockchain network.