WO2022111658A1 - Slice service processing method and apparatus - Google Patents
Slice service processing method and apparatus Download PDFInfo
- Publication number
- WO2022111658A1 WO2022111658A1 PCT/CN2021/133716 CN2021133716W WO2022111658A1 WO 2022111658 A1 WO2022111658 A1 WO 2022111658A1 CN 2021133716 W CN2021133716 W CN 2021133716W WO 2022111658 A1 WO2022111658 A1 WO 2022111658A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- service
- node
- slicing
- slice
- test
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/24—Accounting or billing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/50—Service provisioning or reconfiguring
Definitions
- the present application relates to the field of communication technologies, and in particular, to a method and apparatus for processing slice services.
- tenants may not be able to obtain slice services with the service capabilities claimed by operators after providing service fees to operators. , or, the operator may not be able to obtain the service fee paid by the tenant after providing the slicing service to the tenant.
- the embodiments of the present application provide a method and device for processing slice services, which solve the trust problem between operators and tenants.
- the present application provides a slice service processing method, which can be explained from the perspective of a verification node.
- the method includes: the verification node verifies whether the slice service has the service capability of the slice service claimed by the operator node; the verification node passes the test of the slice service when the slice service has the service capability of the slice service claimed by the operator node.
- the information is written into the blockchain; the test pass information of the slicing service is used to activate the slicing service to the tenant node and pay the service fee to the operator node.
- the service fee is what the tenant node pays for the operator node to provide the slicing service. .
- the operator node it is beneficial for the operator node to obtain the service fee when activating the slice service, so as to avoid being deceived by the tenant node.
- the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has the The service capability claimed by the operator node is beneficial to avoid the tenant being deceived.
- the verification node verifies whether the slicing service has the service capability of the slicing service claimed by the operator node, including: the verification node determines whether the slicing service is tested according to the test result and the judgment parameters for passing the slicing service test in the slicing contract. Passed, the test result is used to indicate the service capability of the slice service provided by the operator node.
- the verification node writes the test pass information of the slicing service into the blockchain, including: the verification node writes the test pass information of the slicing service into the slicing contract; the test passing information is specifically used to activate the invocation of the slicing contract.
- the tenant contract sends a payment voucher to the operator node and a notification message to the tenant node; the payment voucher is the proof that the slice contract calls the tenant contract to pay the service fee to the operator node; the notification message is used to notify the tenant node, the operator node Slice service activated.
- the verification node receives the test result, which is the test result of the monitoring node monitoring the slice service provided by the operator node to the test node.
- the master node performs the above-mentioned relevant operations of the verification node, and before the master node receives the test result, the slice service processing method further includes: the master node uses a random selection algorithm to select from the nodes participating in the blockchain consensus. Test node; the master node notifies the test node to write test request information into the slice contract according to the external test interface and resource validity test method defined by the operator node in the slice contract for the slice service; the test request information includes the address of the test node , the test request information is used to instruct the operator node to provide the slicing service to the test node.
- the master node performs the above-mentioned relevant operations of the verification node, and the master node selects a test node from the nodes participating in the blockchain consensus by using a random selection algorithm, including: Whether the number matches the previously announced hash value, the hash value is obtained by the node using its own random number to perform the hash operation; the master node uses the mapping operation to determine the test node from the multiple matching nodes.
- the mapping operation may include a modulo operation; the master node obtains a modulo operation value through the modulo operation, and determines a test node from a plurality of matched nodes according to the modulo operation value, wherein the modulo operation value is a joint hash value pair N is obtained by taking the modulo operation, and the joint hash value is obtained by using the random numbers of the matched multiple nodes to perform the joint hash operation, and N is the number of multiple nodes.
- the slicing service processing method further includes: the random numbers and hash values respectively announced by the multiple nodes are recorded in the slicing contract.
- the joint hash value and N when the above-mentioned mapping operation is a modulo operation can be recorded in the slicing contract, so as to record the process that the master node randomly selects the test node.
- the notarized third-party node performs the above-mentioned relevant operations of the verification node, and the notary third-party node writes test request information into the slice contract, and the test request information includes the address of the notary third-party node; the notary third-party node uses The test result is obtained from the slice service provided by the operator node; the test result is used to indicate the service capability of the slice service provided by the operator node to the notary third-party node. Testing slicing services by notarizing third-party nodes is also conducive to improving testing efficiency.
- the method further includes: the slicing contract is further used to call the directory contract, and update the slicing service to the leased slicing service in the directory contract, which is beneficial to announce that the slicing service provided by the operator node has been provided to the The tenant node is beneficial to inform other tenant nodes that the slice service has been used, and avoid other tenant nodes to repeatedly select the slice service, thereby improving the efficiency of other tenant nodes in selecting the appropriate slice service.
- the present application provides a slice service processing method, which corresponds to the slice service processing method described in the first aspect, and is described from the perspective of a tenant node.
- the method includes: the tenant node receives a notification message from the blockchain, the notification message is sent when the test pass information of the slicing service is written into the blockchain, and is used to indicate that the operator node has activated the slicing service; the slicing service is Provided by the operator node selected by the tenant node; the tenant node responds to the notification message and uses the slice service provided by the operator node. Therefore, it is beneficial for the operator node to obtain the service fee when activating the slice service, so as to avoid being deceived by the tenant node.
- the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has the The service capability claimed by the operator node is beneficial to avoid being deceived by the operator node.
- the tenant node receives the notification message from the blockchain, including: the tenant node receives the notification message from the tenant contract, and the notification message is specifically that when the test pass information of the slicing service is written into the slicing contract, the slicing contract is activated. And call the tenant contract to send.
- the tenant node responds to the notification message and uses the slice service provided by the operator node, including: the tenant node responds to the notification message and uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract.
- the slicing service processing method before the tenant node receives the notification message from the blockchain, the slicing service processing method further includes: the tenant node selects the operator node that provides the slicing service according to the directory contract, and the directory contract includes the maintenance of the blockchain.
- the tenant node selects the operator node that provides the slicing service according to the directory contract, including: the tenant node queries whether the required slicing service exists in the slicing directory contract, and the slicing directory contract includes the deployed slicing services of each operator node. Information about each slicing service; if it exists, the tenant node selects the operator node that provides slicing services; if not, the tenant node queries whether the operator node in the resource directory contract has the service capability to provide slicing services; if the operator node in the resource directory contract If the node has the service capability of providing slicing services, the tenant node selects an operator node that has the service capability of providing slicing services.
- each operator node can use the directory contract to record its own slice service on the blockchain for tenants to query.
- the tenant node can select the operator node that provides the corresponding slice service through the directory contract, or to the corresponding operator.
- the vendor node applies for the slice service, so that the operator node prepares the slice service through the slice management system and defines the relevant information of the slice service in the slice contract. It can improve the leasing efficiency of slicing services.
- the present application provides a slice service processing method, which corresponds to the slice service processing methods described in the first aspect and the second aspect, and is described from the perspective of an operator node.
- the method includes: the operator node receives a service fee from the blockchain; the service fee is sent when the test pass information of the slicing service is written into the blockchain, and is paid by the tenant node for the slicing service provided by the operator node ; The operator node activates the slicing service and provides the slicing service to the tenant node according to the interface information of the tenant node in the blockchain.
- the operator node it is beneficial for the operator node to obtain the service fee when activating the slice service, to avoid being deceived by the tenant node, and to ensure that the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has
- the service capability claimed by the operator node is beneficial to avoid being deceived by the operator node.
- the operator node receives the service fee from the blockchain, including: the operator node receives a payment voucher from the tenant contract; the payment voucher is activated when the test pass information is written in the slice contract and calls the tenant.
- the test pass information is used to instruct the tenant node to select that the slice service provided by the operator node has passed the test; the payment voucher is used to indicate that the tenant node pays the operator node the service fee pre-stored for the slice service.
- the operator node provides the slicing service to the tenant node according to the interface information of the tenant node in the blockchain, including: providing the slicing service to the tenant node according to the tenant contract, and the tenant contract includes the interface information of the tenant node. .
- the slicing service processing method before the operator node receives the service fee from the blockchain, the slicing service processing method further includes: the operator node, according to the test request information in the slicing contract, updates the external test interface of the slicing service to a test node.
- the test request information includes the address of the test node; the operator node uses the external test interface to provide slicing services to the test node.
- the slicing service processing method before the operator node receives the service fee from the blockchain, the slicing service processing method further includes: the operator node, according to the test request information in the slicing contract, updates the external test interface of the slicing service to the notarization first.
- the address of the third-party node; the test request information includes the address of the notarized third-party node; the operator node uses the external test interface to provide slicing services to the notarized third-party node. It can be seen that the notarization third-party node can use the slice service to test the slice service, which is beneficial to improve the test efficiency.
- the slice service processing method further includes: the operator node deploys the slice service requested by the tenant node according to the tenant contract, and the tenant contract further includes the tenant node.
- the present application provides a slice service processing device, the device comprising:
- the writing unit is used to write the test pass information of the slice service into the blockchain when the slice service has the service capability of the slice service claimed by the operator node; the test pass information of the slice service is used to report to the tenant node. Activate the slicing service and pay the service fee to the operator node, which is paid by the tenant node for providing the slicing service to the operator node.
- the determining unit is further configured to determine whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service passing the slicing service test in the slicing contract, and the test result is used to indicate the service capability of the slicing service provided by the operator node. .
- the writing unit is further used to write the test pass information of the slice service into the slice contract; the test pass information is specifically used to activate the slice contract and call the tenant contract to send payment credentials to the operator node and to the tenant node. Notification message; the payment voucher is the proof that the slicing contract calls the tenant contract to pay the service fee to the operator node; the notification message is used to notify the tenant node that the operator node has activated the slicing service.
- the apparatus further includes: a receiving unit, configured to receive a test result, where the test result is a test result of the monitoring node monitoring the slice service provided by the operator node to the test node.
- the device further includes: a selection unit, configured to use a random selection algorithm to select a test node from the nodes participating in the blockchain consensus before the receiving unit receives the test result;
- the notification unit is used to notify the test node to write the test request information into the slice contract according to the external test interface and resource validity test method defined by the operator node in the slice contract for the slice service; the test request information includes the address of the test node, The test request information is used to instruct the operator node to provide the slicing service to the test node.
- the selection unit is further configured to verify whether the random numbers respectively announced in the multiple nodes match the hash values respectively announced previously, and the hash values are obtained by the nodes using their own random numbers to perform hash operations;
- the selection unit is also used to determine a test node from the matched plurality of nodes using a mapping operation.
- the mapping operation may include a modulo operation; the master node obtains a modulo operation value through the modulo operation, and determines a test node from a plurality of matched nodes according to the modulo operation value, wherein the modulo operation value is a joint hash value pair N is obtained by taking the modulo operation, and the joint hash value is obtained by using the random numbers of the matched multiple nodes to perform the joint hash operation, and N is the number of multiple nodes.
- the random numbers and hash values published by multiple nodes are recorded in the slice contract.
- the joint hash value and N when the above-mentioned mapping operation is a modulo operation can be recorded in the slicing contract.
- the writing unit is further configured to write test request information into the slicing contract, and the test request information includes the address of the notarized third-party node; the receiving unit is further configured to use the slicing service provided by the operator node to obtain Test result; the test result is used to indicate the service capability of the slice service provided by the operator node to the notary third-party node.
- the slicing contract is also used to call the directory contract to update the slicing service to the rented slicing service in the directory contract.
- the present application provides a slice service processing device, the device comprising:
- the receiving unit is used to receive the notification message from the blockchain.
- the notification message is sent when the test pass information of the slicing service is written into the blockchain, and is used to indicate that the operator node has activated the slicing service; the slicing service is the tenant node. provided by the selected operator node;
- the response unit is used to respond to the notification message and use the slice service provided by the operator node.
- the receiving unit is further configured to receive a notification message from the tenant contract, the notification message is specifically sent by calling the tenant contract when the slice contract is activated when the test pass information of the slice service is written into the slice contract.
- the response unit is further configured to respond to the notification message, and use the slice service provided by the operator node according to the external use interface of the slice service in the slice contract.
- the device further includes: a selection unit, configured to select an operator node that provides slicing services according to a directory contract before the receiving unit receives the notification message from the blockchain, and the directory contract includes the maintenance of the blockchain.
- a selection unit configured to select an operator node that provides slicing services according to a directory contract before the receiving unit receives the notification message from the blockchain, and the directory contract includes the maintenance of the blockchain.
- the determining unit is used to determine the tenant contract.
- the tenant contract includes the interface information of the tenant node, the information of the slice service selected by the tenant node, the operator node, and the service fee paid by the tenant node for the slice service.
- the selection unit is further configured to query whether the required slicing service exists in the slicing directory contract, and the slicing directory contract includes information about each slicing service that has been deployed by each operator node;
- the selection unit is also used to select the operator node that provides the slicing service
- the selection unit is also used to query whether the operator node in the resource directory contract has the service capability of providing slicing services; if the operator node in the resource directory contract has the service capability of providing slicing services, the selection unit is also used to select An operator node with the service capability to provide slice services.
- the present application provides a slice service processing device, the device comprising:
- the receiving unit is used to receive the service fee from the blockchain; the service fee is sent when the test pass information of the slicing service is written into the blockchain, and is paid by the tenant node for the slicing service provided by the operator node;
- the receiving unit is further configured to receive a payment voucher from the tenant contract; the payment voucher is activated when the test pass information is written in the slice contract and is sent by calling the tenant contract; the test pass information is used to indicate the tenant The slicing service provided by the node selection operator node has passed the test; the payment voucher is used to instruct the tenant node to pay the operator node the pre-stored service fee for the slicing service.
- the providing unit is further configured to provide the slicing service to the tenant node according to the tenant contract, where the tenant contract includes interface information of the tenant node.
- the device further includes: an update unit, configured to update the external test interface of the slicing service to that of the test node according to the test request information in the slicing contract before the receiving unit receives the service fee from the blockchain. address; the test request information includes the address of the test node; the providing unit is also used for providing slice services to the test node by using the external test interface.
- an update unit configured to update the external test interface of the slicing service to that of the test node according to the test request information in the slicing contract before the receiving unit receives the service fee from the blockchain. address
- the test request information includes the address of the test node
- the providing unit is also used for providing slice services to the test node by using the external test interface.
- the updating unit is further configured to update the external test interface of the slicing service to the address of the notarized third-party node according to the test request information in the slicing contract before the receiving unit receives the service fee from the blockchain;
- the request information includes the address of the notarization third-party node;
- the providing unit is also used to provide slice services to the notarization third-party node by using the external test interface.
- the device further includes: a deployment unit, configured to deploy the slice service requested by the tenant node according to the tenant contract before the receiving unit receives the service fee from the blockchain.
- a deployment unit configured to deploy the slice service requested by the tenant node according to the tenant contract before the receiving unit receives the service fee from the blockchain.
- the definition unit is used to define the slice service, the external interface of the slice service, the resource validity test method of the slice service, and the judgment parameters for passing the test in the slice contract;
- the external interface of the slice service includes an external use interface and an external test interface.
- the present application provides a communication device, including a processor; the processor is configured to verify whether the slice service has the service capability of the slice service claimed by the operator node;
- the processor is also used to write the test pass information of the slice service into the blockchain when the slice service has the service capability of the slice service claimed by the operator node; the test pass information of the slice service is used to activate the tenant node Slice the service and pay the service fee to the operator node, and the service fee is paid by the tenant node to provide the slicing service for the operator node.
- the processor is further configured to determine whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service passing the slicing service test in the slicing contract, and the test result is used to indicate the service capability of the slicing service provided by the operator node. .
- the processor is further configured to write the test pass information of the slicing service into the slicing contract; the test passing information is specifically used to activate the slicing contract and call the tenant contract to send payment credentials to the operator node and to the tenant node. Notification message; the payment voucher is the evidence that the slicing contract calls the tenant contract to pay the service fee to the operator node; the notification message is used to notify the tenant node that the operator node has activated the slicing service.
- the communication device further includes a communication interface; the communication interface is used for receiving a test result, and the test result is a test result of the monitoring node monitoring the slice service provided by the operator node to the test node.
- the processor is further configured to use a random selection algorithm to select a test node from the nodes participating in the blockchain consensus before the communication interface receives the test result;
- the external test interface and resource validity test method defined by the slice service notifies the test node to write test request information into the slice contract;
- the test request information includes the address of the test node, and the test request information is used to instruct the operator node to send the test node to the test node.
- the processor is further configured to verify whether the random numbers respectively announced in the multiple nodes match the hash values respectively announced previously, and the hash values are obtained by the nodes using their own random numbers to perform a hash operation;
- the processor is also configured to determine a test node from the matched plurality of nodes using a mapping operation.
- the mapping operation may include a modulo operation
- the processor may obtain a modulo operation value through the modulo operation, and determine a test node from the matched plurality of nodes according to the modulo operation value, wherein the modulo operation value is a joint hash
- the value is obtained by performing a modulo operation on N
- the joint hash value is obtained by performing a joint hash operation on the random numbers of multiple matching nodes, where N is the number of multiple nodes.
- the random numbers and hash values published by multiple nodes are recorded in the slice contract.
- the joint hash value and N when the above mapping operation is a modulo operation can be recorded in the slice contract.
- the processor is further configured to write test request information into the slicing contract, and the test request information includes the address of the notarized third-party node; the processor is also configured to use the slicing service provided by the operator node to obtain Test result; the test result is used to indicate the service capability of the slice service provided by the operator node to the master node.
- the slicing contract is also used to call the directory contract to update the slicing service to the rented slicing service in the directory contract.
- the present application provides a communication device, including a processor and a communication interface; the communication interface is used to receive a notification message from the blockchain, and the notification message is sent when the test pass information of the slicing service is written into the blockchain is used to indicate that the operator node has activated the slicing service; the slicing service is provided by the operator node selected by the tenant node; the processor is used to respond to the notification message and use the slicing service provided by the operator node.
- the communication interface is further configured to receive a notification message from the tenant contract.
- the notification message is specifically sent by calling the tenant contract when the slicing contract is activated when the test pass information of the slicing service is written into the slicing contract.
- the processor is further configured to respond to the notification message and use the slice service provided by the operator node according to the external use interface of the slice service in the slice contract.
- the processor is further configured to, before the communication interface receives a notification message from the blockchain, select an operator node that provides slicing services according to a directory contract, where the directory contract includes each operator maintaining the blockchain. Information about the slicing service provided by the node;
- the processor is further configured to determine the tenant contract, where the tenant contract includes interface information of the tenant node, information of the slice service selected by the tenant node, the operator node, and the service fee paid by the tenant node for the slice service.
- the processor is further configured to query whether the required slicing service exists in the slicing directory contract, where the slicing directory contract includes information about each slicing service that has been deployed by each operator node;
- the processor is also used to select an operator node that provides slicing services
- the processor is also used to query whether the operator node in the resource directory contract has the service capability to provide slicing services; if the operator node in the resource directory contract has the service capability to provide slicing services, the processor is also used to provide slicing services. Select an operator node that has the service capability to provide slicing services.
- the present application provides a communication device, including a processor and a communication interface; the communication interface is used to receive a service fee from the blockchain; the service fee is sent when the test pass information of the slicing service is written into the blockchain , and is paid by the tenant node for the slicing service provided by the operator node; the processor is used to activate the slicing service and provide the slicing service to the tenant node according to the interface information of the tenant node in the blockchain.
- the communication interface is also used to receive a payment voucher from the tenant contract; the payment voucher is activated when the test pass information is written in the slice contract and is sent by calling the tenant contract; the test pass information is used to indicate The slicing service provided by the operator node selected by the tenant node has passed the test; the payment voucher is used to instruct the tenant node to pay the operator node the pre-stored service fee for the slicing service.
- the processor is further configured to provide a slicing service to the tenant node according to the tenant contract, and the tenant contract includes interface information of the tenant node.
- the processor is further configured to update the external test interface of the slice service to the address of the test node according to the test request information in the slice contract before the communication interface receives the service fee from the blockchain; the test The request information includes the address of the test node; the processor is further configured to provide slicing service to the test node by using the external test interface.
- the processor is further configured to update the external test interface of the slicing service to the address of the notarized third-party node according to the test request information in the slicing contract before the communication interface receives the service fee from the blockchain;
- the test request information includes the address of the notarization third-party node;
- the processor is further configured to provide a slicing service to the notarization third-party node by using the external test interface.
- the processor is further configured to deploy the slice service requested by the tenant node according to the tenant contract before the communication interface receives the service fee from the blockchain, wherein the tenant contract further includes the slice service selected by the tenant node. information, service fees paid by operator nodes and tenant nodes for slicing services;
- the processor is also used to define the slice service, the external interface of the slice service, the resource validity test method of the slice service, and the judgment parameters for passing the test in the slice contract;
- the external interface of the slice service includes an external use interface and an external test interface.
- the present application provides a computer-readable storage medium for storing a computer program, which, when the computer program runs on a computer, causes the computer to execute the method described in the first aspect, or execute the method described in the second aspect. method, or perform the method described in the third aspect.
- FIG. 1 is a schematic structural diagram of a slicing service processing system provided by an embodiment of the present application
- FIG. 2 is a schematic structural diagram of another slicing service processing system provided by an embodiment of the present application.
- FIG. 3 is a schematic structural diagram of a blockchain provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of a slice management architecture provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of an operator slice management system provided by an embodiment of the present application.
- 6a is a schematic flowchart of a method for processing a slice service provided by an embodiment of the present application
- FIG. 6b is a schematic flowchart of another slicing service processing method provided by an embodiment of the present application.
- FIG. 6c is a schematic flowchart of another slice service processing method provided by an embodiment of the present application.
- FIG. 7a is a schematic flowchart of another slice service processing method provided by an embodiment of the present application.
- FIG. 7b is a schematic flowchart of another slice service processing method provided by an embodiment of the present application.
- FIG. 8 is a schematic flowchart of random selection of a test node provided by an embodiment of the present application.
- FIG. 9 is a schematic flowchart of a slice service test provided by an embodiment of the present application.
- FIG. 10a is a schematic flowchart of another slice service processing method provided by an embodiment of the present application.
- FIG. 10b is a schematic flowchart of another slice service processing method provided by an embodiment of the present application.
- FIG. 11 is a schematic structural diagram of a slice service processing apparatus provided by an embodiment of the present application.
- FIG. 12 is a schematic structural diagram of another slice service processing apparatus provided by an embodiment of the present application.
- FIG. 13 is a schematic structural diagram of another slice service processing apparatus provided by an embodiment of the present application.
- FIG. 14 is a schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
- FIG. 1 is a schematic structural diagram of a slice service processing system provided by an embodiment of the present application.
- the network slice rental scenario described in the embodiment of the present application may be the slice service processing system shown in FIG. 1 .
- the slicing service processing system may include, but is not limited to, one or more tenant nodes and one or more operator nodes. As shown in FIG. 1 , one tenant node and one operator node are used as an example. The number and form of devices shown in FIG. 1 are used as examples and do not constitute limitations to the embodiments of the present application.
- the tenant node can be used to lease the slice service provided by the operator node, and the operator node can be used to provide the slice service for the tenant node; the operator node can also be used to test the slice service.
- the operator node used to test the slice service can be called It is a test node; the operator node can also be used to monitor the test results of the slice service.
- the operator node used to monitor the test results of the slice service can be called a monitor node; the operator node can also be used to notify the test node to conduct testing and
- the test result monitored by the listening node determines whether the slice service has passed the test, and the operator node that performs these related operations may be called the master node.
- FIG. 2 is a schematic structural diagram of another slice service processing system provided by an embodiment of the present application.
- the network slice rental scenario described in the embodiment of the present application may also be the slice service processing system shown in FIG. 2.
- the functions of the tenant node and the operator node can be as described in Figure 1, the difference is that the slice service processing system can also include a notarized third-party node, and the notarized third-party node can be a blockchain other than the operator node.
- the notarized third-party node can be used to test the slice service and determine whether the slice service has passed the test. Node related functions.
- the slice service processing method described in the embodiments of this application may be explained from the perspectives of a tenant node, an operator node, and a verification node, where the verification node may be the master node in FIG. 1 or a verification node.
- the verification node may be the master node in FIG. 1 or a verification node.
- the tenant nodes and the operator nodes are actually blockchain nodes, respectively, and the different names are for the convenience of explaining and distinguishing different operations, and do not limit the methods described in the embodiments of the present application.
- Network slicing means that a physical network is divided into multiple virtual networks, each of which is customized and optimized according to different types of application scenarios or the needs of different tenants.
- a network slice is also an independent end-to-end logical network running on a shared physical infrastructure.
- Operators can efficiently schedule physical network resources on the physical infrastructure shared by multiple operators to network slices through virtualization technology according to different application scenarios or different needs of tenants, so as to provide corresponding application scenarios or tenants. corresponding service. Thus, it is beneficial to reduce capital expenditure and operating expenses.
- NFV Network Functions Virtualization
- SDN Software Defined Network
- NFV technology can be used to virtualize and extract the required physical network resources to eliminate the dependence of the physical network resources on dedicated hardware and facilitate the flexible creation of network slices.
- SDN technology can be used to simplify network management by separating the control plane from the data plane and by logically centralizing the network, introducing programmability and open network access, which facilitates the implementation of multiple Tenants with different needs provide different services.
- Network slicing can support diverse needs, such as Enhanced Mobile Broadband (eMBB), Massive Machine Type of Communication (mMTC) or Ultra-relaible and Low Latency Communication, uRLLC) etc.
- eMBB Enhanced Mobile Broadband
- mMTC Massive Machine Type of Communication
- uRLLC Ultra-relaible and Low Latency Communication
- a network slice may be referred to as a slice for short, and a slice service refers to a service provided by a network slice leased by a tenant node from an operator node.
- Blocks are used as data structures to store transaction information.
- FIG. 3 is a schematic structural diagram of a blockchain provided by an embodiment of the present application.
- a block may include a block header and a block body.
- the block header is used to store the timestamp, the hash value of the transaction, the hash value of the previous block and other information;
- the block body is used to store the transaction records, for example, the transaction records can be transfer records, smart contract records, Clearing records or IoT data records, etc.
- the content of transaction records may vary according to application scenarios.
- a blockchain as shown in Figure 3, consists of a plurality of blocks connected in sequence in a chain structure.
- blockchain has the characteristics of decentralization, immutability, traceability and transparency.
- blockchain can be divided into three categories: public chain, private chain and alliance chain.
- a blockchain node refers to a node that participates in forming a blockchain network and is identified by a blockchain account, such as an address based on a private key. Information sent by blockchain nodes will be signed by private keys to ensure the security of transactions in the blockchain network.
- the blockchain nodes in the embodiments of the present application include tenant nodes and operator nodes, wherein the operator node can also participate in maintaining the blockchain network through a blockchain processing function (BlockChain Handling Function, BCHF), such as participating in the blockchain network Consensus to maintain the blockchain network.
- BCHF blockchain processing function
- the operator node can also be used to obtain information in the blockchain or write information into the blockchain. At this time, the operator node can also be called a miner node.
- the consensus mechanism in the blockchain is used to verify the information to be written into the blockchain through the consensus algorithm, thereby ensuring the synchronization of the information stored in the local blockchain copy of each blockchain node in the blockchain network.
- the consensus algorithm can be divided into two types, the first is a consensus algorithm based on proof, such as: Proof of Work (PoW), Proof of Stake (PoS), Delegated Proof of Stake (Delegated Proof of Stake, DPoS), greedy heaviest-observed sub-tree algorithm (he Greedy Heaviest-Observed Sub-Tree, GHOST), etc.
- PoW Proof of Work
- PoS Proof of Stake
- Delegated Proof of Stake Delegated Proof of Stake
- DPoS Delegated Proof of Stake
- greedy heaviest-observed sub-tree algorithm he Greedy Heaviest-Observed Sub-Tree, GHOST
- This consensus algorithm requires blockchain nodes to submit solutions to difficult problems, and the first block to solve the problem Chain nodes can package information into blocks and add them to the blockchain, which are usually used in public chains; the second is a consensus algorithm that uses traditional fault-tolerant technologies in the field of distributed computing to solve Byzantine problems, such as: Practical Byzantine Fault Tolerance Algorithm (Practical Byzantine Fault Tolerance, PBFT), usually used in alliance chains.
- PBFT Practical Byzantine Fault Tolerance
- the master node determines the test node through a random selection algorithm, and the process of testing the slice service by the test node and the monitor node belongs to the process in which the blockchain nodes reach a consensus on the service capability of the slice service in the consensus mechanism.
- the process of notarizing the third-party node to write the test result of the slicing service into the slicing contract is a process in which the blockchain nodes reach a consensus on the behavior of the notarizing third-party node determining the test result of the slicing service in the consensus mechanism.
- Smart contracts are scripted programs that can be automatically executed on a computer system when certain conditions are met. Many functions, such as securities trading, financial data recording, crowdfunding, etc., can be performed through functions in smart contracts.
- the smart contract is combined with the blockchain, the smart contract is permanently stored in the block of the blockchain, and a contract address can be generated according to the location where the smart contract is stored in the block of the blockchain, Blockchain nodes can deploy or invoke smart contracts by generating transactions containing contract code or invocation instructions and the contract address.
- the smart contract can be used to publish the information of the slice service provided by each operator node, in this case the smart contract can be called a directory contract; the smart contract can also be used to publish the interface information of the tenant node and the slice selected by the tenant node Service information and operator nodes, as well as service fees paid by tenant nodes for slicing services, smart contracts can be called tenant contracts; smart contracts can also be used to store slicing services provided by operator nodes, and external slicing services.
- FIG. 4 is a schematic diagram of a slice management architecture provided by an embodiment of the present application.
- the slice management architecture includes network layer, network slice management, blockchain, and application layer.
- the network layer including physical network resources and virtualized resources.
- Operator nodes use virtualization technology to virtualize shared physical network resources to form virtualized resources that can be used to generate slices.
- FIG. 5 is a schematic diagram of an operator slice management system provided by an embodiment of the present application.
- the slice management system may include the following functional entities: Communication Service Management Function (CSMF) 501, slice management Function (Network Slice Management Function, NSMF) 502 , Sub-slice Management Function (Network Slice Subnet Management Function, NSSMF) 503 , Management and Orchestration (MANO) 504 .
- CSMF Communication Service Management Function
- NSMF Network Slice Management Function
- NSSMF Network Slice Subnet Management Function
- MANO Management and Orchestration
- CSMF501 is used to convert tenant demand information into service level agreement (SLA)-based information suitable for slicing
- NSMF502 is used to select multiple sub-slices based on SLA information
- NSSMF503 is used to select multiple sub-slices from physical network Apply for the resources of the above multiple sub-slices in the resource, and perform lifecycle management for each sub-slice, such as designing and processing sub-slices, etc.; deploy the network and storage resources that each sub-slice depends on through MANO504.
- the above multiple sub-slices form a slice, which cooperates to provide slice services for tenant nodes.
- a blockchain consists of multiple blocks that store transaction information. Multiple operator nodes in network slice management are linked through blockchain, and the blockchain is jointly maintained by multiple operator nodes.
- the blockchain can be used as a platform for information management and leasing of slice services, combined with network slice management to form a distributed network slice management platform, which is conducive to improving the efficiency of network slice management by multiple operator nodes.
- Application layer including multiple slices and slice services.
- Operator nodes select appropriate slices according to the different needs of different tenant nodes, and provide corresponding slice services for tenant nodes.
- the operator node leases the network slice to the tenant node, there is still a trust problem between the operator node and the tenant node, such as the contradiction that the operator node provides services first or the tenant node pays first.
- the tenant node After providing the service fee to the operator node, the slicing service that cannot obtain the service capability claimed by the operator node is deceived by the operator node, or the operator node cannot obtain the slicing service paid by the tenant node after providing the slicing service to the tenant node. Service charges and cheated by tenants.
- the present application provides a slicing service processing method, which can determine whether the slicing service has passed the test according to the test result and the judgment parameters of the slicing service passing the test in the slicing contract.
- the test pass information of the slice service is written into the slice contract, and the test pass information is used to activate the slice contract to call the tenant contract to send payment credentials to the operator node and send notification messages to the tenant node.
- the tenant node can obtain the service capability claimed by the operator node after providing the service fee, and avoid the tenant node being deceived by the operator node.
- the method is also beneficial for the operator node to provide slicing services to the tenant node after obtaining the service fee, so as to avoid the operator node being deceived by the tenant node, thereby effectively solving the trust problem between the operator and the tenant.
- FIG. 6a is a schematic flowchart of a slice service processing method provided by an embodiment of the present application.
- the slice service processing method is described from the perspective of interaction between a tenant node, an operator node, and a verification node, wherein the verification node.
- the relevant operations of the master node or the notarization third-party node described in the above-mentioned FIG. 1 and FIG. 2 can be performed.
- the slice service processing method includes but is not limited to the following steps:
- the verification node verifies whether the slice service has the service capability of the slice service claimed by the operator node; if the slice service does not have the service capability of the slice service claimed by the operator node, perform step S402; Having the service capability of the slice service claimed by the operator node, perform steps S403 to S407;
- the verification node writes the test failure information of the slicing service into the blockchain
- the verification node writes the test pass information of the slicing service into the blockchain
- the test pass information of the slicing service is used to activate the slicing service to the tenant node and pay the service fee to the operator node, where the service fee is paid by the tenant node for providing the slicing service to the operator node.
- the verification node verifies whether the slice service has the service capability of the slice service claimed by the operator node, which may include: the verification node determines according to the test result and the judgment parameter that the slice service test in the slice contract passes the test. Whether the slicing service passes the test; wherein, the test result is used to indicate the service capability of the slicing service provided by the operator node.
- the verification node writes the test pass information of the slice service into the blockchain, which may include: the verification node writes the test pass information of the slice service into the slice contract.
- the tenant node receives the notification message from the blockchain
- the notification message is sent when the test pass information of the slicing service is written into the blockchain, and is used to indicate that the operator node has activated the slicing service; the slicing service is provided by the operator node selected by the tenant node.
- the notification message may be specifically sent by invoking the tenant contract when the slicing contract is activated when the test pass information of the slicing service is written into the slicing contract.
- the operator node receiving the service fee from the blockchain may include: the operator node receiving the payment voucher from the tenant contract; wherein the payment voucher is activated when the test pass information is written in the slice contract. Sent by calling the tenant contract; the payment voucher is used to instruct the tenant node to pay the operator node the pre-stored service fee for the slice service.
- the tenant contract is the role of the tenant to announce service requirements, make payments, select operators, and provide tenant-side interfaces.
- the interface on the tenant side is used to define the calling relationship between the tenant contract and other contracts, such as slice contracts.
- a tenant's announcement of a service requirement and the fee paid for that service requirement may be referred to as a bond.
- the service fee paid by the tenant node for the slice service may be a part deducted from the security deposit. Therefore, the security deposit paid by the tenant in the tenant contract may be at least greater than or equal to the service fee.
- the tenant contract can define the pre-defined required resources in the security deposit, the amount willing to pay, and the meaning of the security deposit (the required security deposit must be greater than the amount willing to pay, otherwise the contract is invalid).
- the security deposit is transferred from the tenant's own account balance to the contract account when the contract is created.
- the security deposit is escrowed into the blockchain in the form of smart contracts.
- the deposit can be paid directly for a certain slice service; in another way, the deposit can be hosted in the blockchain account by the tenant node requesting any slice service, in this case, the deposit
- the balance of the blockchain account refers to the digital property under the smart contract account, which does not belong to any actual user when the smart contract is not called by the relevant payment transaction, but belongs to the logical sense. Complete the payment to other accounts (including user accounts in the actual sense) through the payment script allowed by the smart contract, or return to the specified account after the transaction has not occurred before the deadline defined by the contract.
- the verification node will judge whether the operator node provides the service capability of the slicing service it claims. If the judgment is successful, that is, the slicing service test passes, it will automatically transfer the payment to the operator node's area in the way agreed in the agreement. In the blockchain account, or provide payment vouchers to the operator node.
- the operator node activates the slicing service and provides the slicing service to the tenant node according to the interface information of the tenant node in the blockchain;
- the operator node may provide a slicing service to the tenant node according to the tenant contract, wherein the tenant contract includes interface information of the tenant node.
- the tenant node responds to the notification message and uses the slice service provided by the operator node.
- the tenant node responds to the notification message, and may include: the tenant node uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract.
- the verification node verifies whether the slicing service has the service capability of the slicing service claimed by the operator node, and when the slicing service test passes, the service fee is sent to the operator node through the blockchain, and the service fee is sent to the operator node through the blockchain.
- the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has the The service capability claimed by the operator node is beneficial to avoid the tenant being deceived.
- FIG. 6b is a schematic flowchart of another slicing service processing method provided by an embodiment of the present application.
- the slicing service processing method shown in FIG. 6b is explained from the perspective of the interaction between the tenant node, the operator node and the verification node, wherein the verification node can perform the relevant operations of the master node or the notarization third-party node described in the above-mentioned FIG. 1 and FIG. 2 .
- the slice service processing method includes but is not limited to the following steps:
- the verification node determines whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service test passing in the slicing contract; if the slicing service test fails, execute step S102; if the slicing service test passes, execute step S103 to S107;
- the verification node writes the test failure information of the slicing service into the slicing contract
- the verification node writes the test pass information of the slicing service into the slicing contract
- the test result is used to indicate the service capability of the slice service provided by the operator node.
- the verification node determines whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service in the slicing contract, which may include: the verification node determines the service capability parameter of the slicing service according to the test result; When the judgment parameter passed by the test is determined, the slicing service test is determined to pass; when the service capability parameter is less than the judgment parameter of the slicing service test passed, it is determined that the slicing service test fails.
- the test pass information may include the service capability parameter of the slice service, and correspondingly, the test fail information may also include the service capability parameter of the slice service.
- the decision parameters for passing the slice service test include a network bandwidth of 20M and a rate of 2.5Mb/s; the service capability parameters of the slice service determined according to the test results include a network bandwidth of 20M and a rate of 1.7Mb/s for the slice service. It can be seen that the service capability parameter of the slice service is smaller than the decision parameter, indicating that the slice service test fails.
- the decision parameters for passing the slice service test include a network bandwidth of 20M and a rate of 2.5Mb/s; the service capability parameters of the slice service determined according to the test results include a network bandwidth of 20M and a rate of 2.7Mb/s for the slice service. It can be seen that the service capability parameter of the slice service is not less than the decision parameter, indicating that the slice service has passed the test.
- the verification node writes the test pass information of the slicing service into the slicing contract, and the test passing information can be used to activate the slicing contract to call the tenant contract to send payment credentials to the operator node and to send a notification message to the tenant node.
- the payment voucher is the evidence that the slice contract calls the tenant contract and pays the service fee to the operator node.
- the service fee is paid by the tenant node for providing slice services to the operator node; the notification message is used to notify the tenant node, the operator node.
- the slice service has been activated. Therefore, it is beneficial for the operator node to obtain the service fee when activating the slice service, so as to avoid being deceived by the tenant node.
- the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has the The service capability claimed by the operator node is beneficial to avoid being deceived by the operator node.
- the test pass information is used to activate the slicing contract to call the tenant contract to send the above payment voucher and notification message, which may be: based on the calling interface between the slicing contract and the tenant contract, the slicing contract calls the tenant contract to send the above payment voucher and notification information.
- the triggering condition of the calling interface may be that the above-mentioned test pass information is written in the slice contract, and the test pass information may include the above-mentioned service capability parameters, and/or an identifier used to indicate the test pass, etc.
- the test pass information is also used to activate the slice contract to invoke the directory contract to update the slice service to the leased slice service in the directory contract.
- This embodiment is beneficial to announce that the slice service provided by the operator node has been provided to the tenant node, which in turn helps to inform other tenant nodes that the slice service has been used, and avoids other tenant nodes from repeatedly selecting the slice service, which is beneficial to Improve the efficiency of other tenant nodes in selecting appropriate slicing services.
- the tenant node receives the notification message from the tenant contract
- the operator node receives the payment voucher from the tenant contract
- the operator node provides the slicing service to the tenant node according to the tenant contract;
- the process for the operator node to provide the slicing service to the tenant node according to the tenant contract may include: the operator node obtains the interface information of the tenant node from the tenant contract; using the interface information of the tenant node to provide the tenant node with the slicing service .
- the tenant node responds to the notification message, and uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract;
- the slicing service processing method before the tenant node receives the notification message from the tenant contract in S104, the slicing service processing method further includes: the tenant node selects an operator node that provides slicing services according to the directory contract, and determines the tenant contract.
- the directory contract includes the information of the slice service provided by each operator node that maintains the blockchain;
- the tenant contract includes the interface information of the tenant node, as well as the information of the slice service selected by the tenant node, the operator node, and the tenant node. The service fee paid for the slice service.
- the directory contract may include a slice directory contract and a resource directory contract; the slice directory contract includes information about each slice service that has been deployed by each operator node, including a leased slice service and an unrented slice service.
- the slice service includes the tested slice service and the untested slice service; the resource directory contract includes the service capability that the operator node can provide, and the slice service corresponding to the service capability is not deployed by the operator node.
- the tenant node selects the operator node that provides the slicing service according to the directory contract, which may include: the tenant node queries whether there is an operator node that can provide the required slicing service in the slicing directory contract; if there is an operator node that can provide the required slicing service in the slicing directory contract Operator node, the tenant node determines the selected operator node from the operator nodes that can provide the required slicing service; if there is no operator node that can provide the required slicing service in the slicing directory contract, the tenant node queries the resource directory Whether there is an operator node that can provide the service capability of the slice service in the contract; if so, the tenant node determines the selected operator node from the operator nodes that can provide the service capability of the slice service.
- the directory contract may include: the tenant node queries whether there is an operator node that can provide the required slicing service in the slicing directory contract; if there is an operator node that can provide
- the tenant node can use the slice directory contract to call the resource directory contract, and perform the operation of querying whether the operator node in the resource directory contract can provide the service capability of the slice service.
- the slice service selected by the tenant node is the slice service that has been deployed by the operator node, including the slice service that has passed the test or the slice service that has not been tested. If the required slicing service does not exist in the slicing directory contract, the slicing service selected by the tenant node is the slicing service requested by the operator node deployed or newly created according to the tenant contract. After the slicing service, it is necessary to define the slicing service, the external interface of the slicing service, the resource validity test method of the slicing service, and the judgment parameters for passing the test in the slicing contract.
- the tenant contract includes the information of the slice service required by the tenant node; the relevant operations of the operator node deploying or creating the slice service can be performed by using the operator slice management system shown in FIG. 5 .
- the operator node deploys or creates the slice service, it needs to unpublish the service capability of the slice service in the resource directory contract, so as to prevent other tenant nodes from repeatedly querying the service capability of the slice service in the resource directory contract.
- the slice contract selected by the tenant node is a slice service that has been deployed by the operator node and has passed the test
- the slice contract can be activated to call the tenant contract to send the data to the operator node.
- the above-mentioned payment voucher and the above-mentioned notification message are sent to the tenant node, and then the related operations of S104 to S107 described below are performed.
- the slicing service selected by the tenant node is a slicing service that has been deployed by the operator node and has not been tested, the slicing service needs to be tested to perform the relevant operations of the above steps S101 to S107.
- the slicing service selected by the tenant node is a slicing service newly created or deployed by the operator node, the slicing service also needs to be tested to perform the relevant operations of the above steps S101 to S107.
- the slice service processing method described in FIG. 6b is mainly for the processing of untested (or referred to as existing slices that have not been effectively tested) or newly created slice services (or referred to as new slices).
- FIG. 6c is a schematic flowchart of another slice service processing method provided by an embodiment of the present application.
- the difference between FIG. 6c and the slice service processing method shown in FIG. Smart contracts on the blockchain, including slice contracts, directory contracts, and tenant contracts, can more clearly demonstrate the connections between validator nodes, operator nodes, tenant nodes, and smart contracts on the blockchain.
- the verification node can write the information of whether the slicing service test passes into the slicing contract; the test pass information can be used to activate the slicing contract to call the tenant contract to provide payment credentials to the operator node, and send a notification to the tenant node message to notify tenant nodes that the slice service has been activated; the test pass information can also be used to activate the slice contract call and update the directory contract.
- the slice service processing method described in the embodiment of the present application is beneficial for each operator node to use the directory contract to record its own slice service on the blockchain for tenants to query.
- the tenant node can choose to provide corresponding services through the directory contract.
- the operator node of the slicing service or apply for the slicing service from the corresponding operator node, so that the operator node can prepare the slicing service through the slicing management system and define the relevant information of the slicing service in the slicing contract.
- the embodiment of the present application can improve the leasing efficiency of the slice service.
- the embodiment of the present application sends a payment voucher to the operator node when the slicing service test passes, and pays the service fee of the slicing service to the operator node, thereby helping to ensure that the tenant obtains the slice of the service capability claimed by the operator node It also helps the operator node to provide services to the tenant node after obtaining the service fee, so as to avoid the operator node from being deceived and solve the trust problem between the operator node and the tenant node.
- FIG. 7a is a schematic flowchart of another slicing service processing method provided by an embodiment of the present application.
- the slicing service processing method shown in FIG. 7a is different from the slicing service processing method shown in FIG. 6b in that:
- the master node in FIG. 7a can perform the relevant operations of the verification node in the slice service processing method described in FIG. 6b.
- the slice service processing method shown in FIG. 7a includes but is not limited to the following steps:
- the master node uses a random selection algorithm to select a test node from the nodes participating in the blockchain consensus;
- the random selection algorithm is a method of randomly selecting test nodes.
- the security requirements met by the random selection algorithm may include: the random selection algorithm can ensure the openness and transparency of the test node selection process, and all nodes participating in the blockchain consensus can obtain the relevant information of the test node selection process; the random selection algorithm It can also ensure the randomness of test node selection results, rather than subjective selection by malicious nodes participating in the block consensus; thus, it can ensure the fairness and effectiveness of the test node selection process.
- the master node uses a random selection algorithm to select a test node from the nodes participating in the blockchain consensus, which may include: the master node verifies whether the random number announced by the multiple nodes and the hash value respectively announced earlier. Matching, wherein, the hash value is obtained by the node using its own random number to perform hash operation; the master node uses the mapping operation to determine the test node from the multiple matching nodes.
- the mapping operation may include a modulo operation; the master node obtains a modulo operation value through the modulo operation, and determines a test node from a plurality of matched nodes according to the modulo operation value, wherein the modulo operation value is a joint.
- the hash value is obtained by performing a modulo operation on N
- the joint hash value is obtained by performing a joint hash operation on random numbers of matching multiple nodes, where N is the number of multiple nodes.
- the random numbers, hash values, and joint hash values, N announced by the above-mentioned multiple nodes are all recorded in the slicing contract.
- FIG. 8 is a schematic flowchart of a random selection of a test node provided by an embodiment of the present application.
- all the nodes participating in the blockchain consensus include blockchain node 0, blockchain node 1, ..., blockchain node N-1, a total of N blockchain nodes. All the above blockchain nodes can become the master node in turn.
- the following is an example of the blockchain node i as the master node.
- the process that the master node uses the random selection algorithm to select the test node may include: each blockchain node performs a hash operation on its own random number through a hash function.
- the blockchain node 0 uses its own random number x 0 to perform hash operation.
- the hash value of blockchain node 1 can be obtained as y 1 , ... and the hash value of blockchain node N-1 is y N -1 ; block chain node 0 to block chain node N-1 publish their own hash values y 0 , y 1 , ..., y N-1 respectively.
- the published hash values are in the form of transactions Published on the blockchain to ensure that it cannot be tampered with and traceable; after all blockchain nodes have announced their own hash values, blockchain node 0 to blockchain node N-1 will announce their own random numbers x respectively. 0 , x 1 , ..., x N-1 .
- the master node collects the hash value and random number announced by all blockchain nodes, and verifies whether the random number announced by each node matches the hash value; and calculates the joint hash value of the random numbers of all matching nodes as Hash (x 0
- the master node determines that the node with the same label and the value of the modulo operation is the test node, and the rest of the nodes are listening nodes.
- N is 4, and the nodes participating in the blockchain consensus include blockchain node 0, blockchain node 1, blockchain node 2, and blockchain node 3, of which blockchain node 3 is the master node.
- the master node verifies whether the random number announced by each node matches the hash value; the verification result finds that the random number announced by blockchain node 2 does not match the hash value, then the blockchain node 0, blockchain node 1 .
- the joint hash value of the blockchain node 3 performs a modulo operation on 4 to obtain a modulo operation value, which is a value among 0, 1, 2, and 3. Taking the modulo operation value of 1 as an example, the master node can determine that blockchain node 1 is a test node, and blockchain node 0 and blockchain node 1 are listening nodes.
- the security of the test node selection process is ensured from the perspective of cryptography by using the hash function.
- multiple nodes participating in the blockchain consensus first publish the hash value and then publish the random number to ensure that all nodes cannot change their random numbers at will after publishing the hash value, even if the malicious node is the last to publish the random number. It is impossible to change the test node selection result by modifying its own random number, so as to prevent malicious nodes from determining their own random numbers through offline calculation or multiple attempts, which is beneficial to reduce the malicious node's decisive role in the test node selection process. possibility of action.
- the random numbers, hash values, and joint hash values and N published by multiple nodes are all recorded in the blockchain, which is also conducive to ensuring the openness and transparency of the test node selection process.
- the master node notifies the test node to write the test request information into the slicing contract according to the external testing interface and the resource validity testing method defined by the operator node in the slicing contract for the slicing service;
- the master node obtains the external test interface and resource validity test method defined by the operator node for the slice service in the slice contract, and sends a notification message to the test node;
- the notification message may include the above-mentioned external test interface defined by the operator node for the slice service , Resource validity test method, the notification message can be used as the basis for the test node to determine the test request information; the notification message is also used to notify the test node to write the test request information into the slice contract.
- test node writes the test request information into the slice contract
- the test node After receiving the notification message from the master node, the test node determines the test request information according to the external test interface and resource validity test method in the notification message, and writes the test request information into the slice contract.
- the test request information includes the address of the test node, and the test request information is used to instruct the operator node to provide the slicing service to the test node according to the address of the test node.
- the test request information may also include the address of the monitoring node. After the operator node modifies the interface according to the address of the monitoring node, the monitoring node can monitor the test result of the slice service provided by the operator node to the test node; optional Yes, the test request information may also include the identity information of the test node and the monitoring node, and the operator node can confirm the identity of the node testing and monitoring the slice service according to the identity information.
- the operator node updates the external test interface of the slice service to the address of the test node according to the test request information in the slice contract;
- the operator node obtains the address of the test node in the test request information, and redirects the external test interface of the slice service to the test node according to the address of the test node, including updating the external test interface of the slice service to the address of the test node.
- the operator node obtains the address of the monitoring node in the test request information, and redirects the external monitoring interface to the monitoring node according to the address of the monitoring node, including updating the external monitoring interface to the address of the monitoring node; the external monitoring interface is available
- the monitor node monitors the test result of the slice service provided by the operator node to the test node.
- the operator node provides the slicing service to the test node by using the external test interface
- the slicing service provided by the operator node to the test node may not be exactly the same as the slicing service provided by the operator node to the tenant node after passing the slicing service test.
- the test of the slice service needs to be performed on a specific device. Therefore, when the operator node provides the external test interface to the tenant node, it also needs to provide a virtualized test device.
- the slice service provided by the virtualized test device can be called as Slice testing service.
- FIG. 9 is a schematic flowchart of a slice service test provided by an embodiment of the present application.
- the operator node provides the test node with the slice test service deployed by the virtualized test equipment through the external test interface; the test node uses the external test interface to accept the slice test service; if the test passes, the operator node can switch to use the external use interface to the tenant.
- the node provides a slice service, which is actually deployed by the operator's equipment, similar to the slice test service.
- the operator node may deploy the virtualized test equipment based on a security assurance specification (Security Assurance Specification, SCAS) test method.
- SCAS test method is a test method for testing whether a network product can provide expected functions in a virtual environment, and the method requires that interfaces related to the network product be deployed before testing.
- the operator node has deployed a virtualized test device and an interface related to the slicing service, and the interface related to the slicing service includes the above-mentioned external test interface and external monitoring interface;
- the SCAS test method performs the test shown in step S206 to test whether the slice service provided by the operator node has the claimed service capability; the monitoring node can perform the monitoring shown in step S207 through the virtualized test device.
- the operator node provides the test node to the test node. Test results of the slice service.
- test node tests the slice service provided by the operator node
- the monitoring node monitors the test result of the slice service provided by the operator node to the test node;
- the monitoring node sends the test result to the master node
- the master node receives the test result from the monitoring node
- monitoring nodes there may be a plurality of monitoring nodes that perform operations related to steps S207 and S208 respectively.
- Multiple monitoring nodes respectively monitor the test results of the slice service provided by the operator node to the test nodes, and summarize the respective monitored test results to the master node; the master node collects the test results from multiple monitoring nodes, and reports the test results. Write into the slice contract.
- the master node determines whether the slicing service has passed the test according to the test result and the slicing contract's judgment parameters for passing the slicing service test; if the slicing service test fails, execute step S211; if the slicing service test passes, execute step S212 to S216;
- the master node writes the test failure information of the slicing service into the slicing contract
- the master node writes the test pass information of the slicing service into the slicing contract
- the tenant node receives the notification message from the tenant contract
- the operator node provides the slicing service to the tenant node according to the tenant contract
- the tenant node responds to the notification message, and uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract;
- steps S210 to S216 For the relevant description of steps S210 to S216, reference may be made to the relevant content in the slice service processing method shown in FIG. 6b, which will not be described in detail here.
- the master node performs the above-mentioned related operations of the verification node in FIG. 6b.
- FIG. 7b is a schematic flowchart of another slice service processing method provided by an embodiment of the present application.
- the difference between FIG. 7b and the slice service processing method shown in FIG. 7a is that FIG. 7b also shows the Smart contracts on the blockchain, including slice contracts, directory contracts, and tenant contracts, can more clearly show the relationship between master nodes, test nodes, operator nodes, tenant nodes, and smart contracts on the blockchain.
- the test node writes the test request information into the slicing contract; the operator can provide the slicing service for the testing node according to the test request information in the slicing contract; the master node writes the information on whether the slicing service test passes into the slicing contract;
- the test pass information can be used to activate the slice contract and call the tenant contract to provide payment credentials to the operator node, and send a notification message to the tenant node to notify the tenant node that the slice service has been activated; the test pass information can also be used to activate the slice contract. Call and update the directory contract.
- the slice service processing method tests whether the slice service provided by the operation node has the claimed service capability through the test node and the monitor node. This method is beneficial to ensure that the tenant node uses the slice service of the service capability claimed by the operator node, and avoids the tenant node being deceived. It is also beneficial for the operator node to provide services to the tenant node after obtaining the service fee, thereby preventing the operator node from being deceived.
- FIG. 10a is a schematic flowchart of still another slicing service processing method provided by an embodiment of the present application.
- the slicing service processing method shown in FIG. 10a is different from the slicing service processing method shown in FIG. 6b in that: Before the slice service processing method shown in FIG. 10a, before the relevant operations of slice service processing shown in FIG. 6b, the relevant operations of slice service testing are also described with reference to the slice service processing system shown in FIG. 2. That is, the notarization third-party node in FIG. 10a can perform the relevant operations of the verification node in the slice service processing method described in FIG. 6b.
- the slice service processing method shown in FIG. 10a may include, but is not limited to, the following steps:
- the notarization third-party node determines the test request information according to the external test interface and the resource validity test method defined by the operator node in the slice contract for the slice service;
- the notarization third-party node writes test request information into the slice contract through BCHF; wherein the test request information includes the address of the notarization third-party node.
- the operator node updates the external test interface of the slicing service to the address of the notarized third-party node according to the test request information in the slicing contract;
- the operator node provides the slicing service to the notary third-party node by using the external test interface;
- the notary third-party node obtains a test result by using the slice service provided by the operator node; wherein, the test result is used to indicate the service capability of the slice service provided by the operator node to the notary third party.
- the notarization third-party node determines whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service test passing in the slicing contract; if the slicing service test fails, execute step S307; if the slicing service test passes, execute Steps S308 to S312;
- the notary third-party node writes the test failure information of the slicing service into the slicing contract
- the tenant node receives the notification message from the tenant contract
- the operator node provides the slicing service to the tenant node according to the tenant contract;
- the tenant node responds to the notification message, and uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract;
- steps S306 to S312 For the related description of steps S306 to S312, reference may be made to the related content in the slice service processing method shown in FIG. 6b, which will not be described in detail here.
- the notarization third-party node performs the above-mentioned related operations of the verification node in FIG. 6b.
- FIG. 10b is a schematic flowchart of another slice service processing method provided by an embodiment of the present application.
- FIG. 10b also shows the Smart contracts on the blockchain, including slice contracts, directory contracts, and tenant contracts, can more clearly show the relationship between notarized third-party nodes, operator nodes, tenant nodes, and smart contracts on the blockchain.
- the notary third-party node writes the test request information into the slicing contract; the operator can provide slicing services for the notary third-party node according to the test request information in the slicing contract; the notary third-party node will pass the slicing service test information.
- the test pass information can be used to activate the slice contract to call the tenant contract to provide payment credentials to the operator node, and send a notification message to the tenant node to notify the tenant node that the slice service has been activated; the test pass information can also be Used to activate slice contract calls and update directory contracts.
- the notary third-party node tests the slicing service provided by the operator node and obtains the test result, which can ensure the security and effectiveness of the test process through post-event audit, for example, If the slicing service used by the tenant node does not have the service capabilities claimed by the operator node, the notary third-party node is responsible for this.
- the method is also beneficial to simplify the test process and improve the test efficiency.
- FIG. 11 is a schematic structural diagram of a slice service processing apparatus provided by an embodiment of the present application.
- the slice service processing apparatus 1100 may include: a determining unit 1101 , a writing unit 1102 , a receiving unit 1103 , a selecting unit 1104 , and a notification unit 1105 .
- a determination unit 1101, configured to verify whether the slice service has the service capability of the slice service claimed by the operator node;
- the determining unit 1101 is further configured to determine whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service passing the slicing service test in the slicing contract, and the test result is used to indicate the service of the slicing service provided by the operator node. ability.
- the writing unit 1102 is configured to write the test pass information of the slice service into the blockchain when the slice service has the service capability of the slice service claimed by the operator node; the test pass information of the slice service is used to report to the tenant
- the node activates the slicing service and pays the service fee to the operator node, which is paid by the tenant node for providing the slicing service to the operator node.
- the writing unit 1102 is further configured to write the test pass information of the slicing service into the slicing contract; the test passing information is specifically used to activate the slicing contract to invoke the tenant contract to send payment credentials to the operator node and to the tenant node.
- the writing unit 1102 is further configured to write test request information into the slicing contract, where the test request information includes the address of the notarized third-party node.
- the receiving unit 1103 is configured to receive a test result, where the test result is a test result of the monitoring node monitoring the slice service provided by the operator node to the test node.
- the receiving unit 1103 is further configured to obtain a test result by using the slice service provided by the operator node; the test result is used to indicate the service capability of the slice service provided by the operator node to the notary third-party node.
- the selection unit 1104 is configured to select a test section from the nodes participating in the blockchain consensus by using a random selection algorithm before the receiving unit receives the test result.
- the selection unit 1104 is further configured to verify whether the random numbers published by the multiple nodes match the hash values previously published respectively, and the hash values are obtained by the nodes using their own random numbers to perform hash operations. of.
- the selection unit 1104 is further configured to determine a test node from the matched multiple nodes by using a mapping operation.
- the mapping operation may include a modulo operation, and the selection unit 1104 may obtain a modulo operation value through the modulo operation, and determine a test node from a plurality of matched nodes according to the modulo operation value, wherein the modulo operation value is
- the joint hash value is obtained by performing a modulo operation on N.
- the joint hash value is obtained by performing a joint hash operation on the random numbers of multiple matching nodes, and N is the number of multiple nodes.
- the random numbers, hash values, and joint hash values, N announced by the multiple nodes are all recorded in the slice contract.
- the notification unit 1105 is used to notify the test node to write test request information into the slice contract according to the external test interface and resource validity test method defined by the operator node in the slice contract for the slice service; the test request information includes the test node's Address, the test request information is used to instruct the operator node to provide the slicing service to the test node.
- the slicing contract is also used to call the directory contract to update the slicing service to the rented slicing service in the directory contract.
- the foregoing slicing service processing apparatus may further perform the relevant operations in the foregoing method embodiments, which will not be described in detail here.
- FIG. 12 is a schematic structural diagram of another slice service processing apparatus provided by an embodiment of the present application.
- the slice service processing apparatus may include: a receiving unit 1201 , a responding unit 1202 , a selecting unit 1203 , and a determining unit 1204 .
- the receiving unit 1201 is configured to receive a notification message from the blockchain, the notification message is sent when the test pass information of the slicing service is written into the blockchain, and is used to indicate that the operator node has activated the slicing service; the slicing service is a tenant Provided by the operator node selected by the node;
- the receiving unit 1201 is further configured to receive a notification message from the tenant contract, the notification message is specifically sent by calling the tenant contract when the slice contract is activated when the test pass information of the slice service is written into the slice contract.
- the response unit 1202 is configured to use the slice service provided by the operator node in response to the notification message.
- the response unit 1202 is further configured to respond to the notification message, and use the slice service provided by the operator node according to the external use interface of the slice service in the slice contract.
- the selection unit 1203 is used to select the operator node that provides the slicing service according to the catalog contract before the receiving unit receives the notification message from the blockchain, and the catalog contract includes the slicing service provided by each operator node that maintains the blockchain. information.
- the selection unit 1203 is further configured to query whether the required slice service exists in the slice directory contract, where the slice directory contract includes information of each slice service that has been deployed by each operator node.
- the selecting unit 1203 is further configured to select an operator node that provides the slice service.
- the selection unit 1203 is further configured to query whether the operator node in the resource directory contract has the service capability to provide the slice service; if the operator node in the resource directory contract has the service capability to provide the slice service , the selection unit 1203 is further configured to select an operator node that has the service capability of providing the slice service.
- the determining unit 1204 is configured to determine a tenant contract, where the tenant contract includes interface information of the tenant node, information of the slice service selected by the tenant node, the operator node, and the service fee paid by the tenant node for the slice service.
- the foregoing slicing service processing apparatus may further perform the relevant operations in the foregoing method embodiments, which will not be described in detail here.
- FIG. 13 is a schematic structural diagram of another slice service processing apparatus provided by an embodiment of the present application.
- the slice service processing apparatus may include: a receiving unit 1301 , a providing unit 1302 , an updating unit 1303 , a deploying unit 1304 , and a defining unit 1305 .
- the receiving unit 1301 is configured to receive a service fee from the blockchain; the service fee is sent when the test pass information of the slicing service is written into the blockchain, and is paid by the tenant node for the slicing service provided by the operator node.
- the receiving unit 1301 is further configured to receive a payment voucher from the tenant contract; the payment voucher is activated when the test pass information is written in the slice contract and is sent by calling the tenant contract; the test pass information is used to indicate The slicing service provided by the operator node selected by the tenant node has passed the test; the payment voucher is used to instruct the tenant node to pay the operator node the pre-stored service fee for the slicing service.
- the providing unit 1302 is configured to activate the slice service according to the interface information of the tenant node in the blockchain and provide the slice service to the tenant node. It is used to provide slicing services to tenant nodes according to the tenant contract, and the tenant contract includes the interface information of the tenant node.
- the providing unit 1302 is further configured to provide a slicing service to the tenant node according to the tenant contract, where the tenant contract includes interface information of the tenant node.
- the providing unit 1302 is further configured to provide a slicing service to the test node by using the external test interface.
- the providing unit 1302 is further configured to provide a slicing service to a notary third-party node by using an external test interface.
- the updating unit 1303 is used to update the external test interface of the slicing service to the address of the testing node according to the testing request information in the slicing contract before the receiving unit 1301 receives the service fee from the blockchain; the testing request information includes the testing node the address of.
- the updating unit 1303 is further configured to update the external test interface of the slicing service to the address of the notarized third-party node according to the test request information in the slicing contract before the receiving unit 1301 receives the service fee from the blockchain. ;
- the test request information includes the address of the notarized third-party node.
- the deploying unit 1304 is configured to deploy the slice service requested by the tenant node according to the tenant contract before the receiving unit 1301 receives the service fee from the blockchain.
- the tenant contract also includes the information of the slice service selected by the tenant node, the operator node and The service fee paid by the tenant node for the slice service.
- the definition unit 1305 is used to define the slice service, the external interface of the slice service, the resource validity test method of the slice service, and the judgment parameters for passing the test in the slice contract; wherein, the external interface of the slice service includes an external use interface and an external test interface .
- the foregoing slicing service processing apparatus may further perform the relevant operations in the foregoing method embodiments, which will not be described in detail here.
- FIG. 14 is a schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
- the communication apparatus may include: a processor 1401 , a communication interface 1402 , and a memory 1403 .
- the processor 1401 can execute the relevant operations of steps S401 to S403 shown in FIG. 6a and steps S101 to S103 shown in FIG. 6b by running the executable program code of the memory 1403, and can also execute steps S201, S202, S210 to S212 and the related operations of steps S301, S302, S305, S306 to S308 shown in FIG. 10a; the communication interface 1402 can execute the above-mentioned related operations of step S209 shown in FIG. 7a by running the executable program code of the memory 1403. operation, which will not be described in detail here.
- the processor 1401 can execute the relevant operations of step 407 shown in FIG. 6a and step S107 shown in FIG. 6b by running the executable program code of the memory 1403, and can also execute the above-mentioned operation shown in FIG. 7a.
- the related operations of step S216 and step S312 shown in FIG. 10a; the communication interface 1402 can execute the relevant operations of step S404 shown in FIG. 6a and step S104 shown in FIG. 6b by running the executable program code of the memory 1403, and also The above-mentioned related operations of step S213 shown in FIG. 7a and step S309 shown in FIG. 10a can be performed, which will not be described in detail here.
- the processor 1401 can execute the relevant operations of step S406 shown in FIG. 6a and step S106 shown in FIG. 6b by running the executable program code of the memory 1403, and can also execute the above-mentioned operation shown in FIG. 7a.
- the communication interface 1402 can execute the steps S405 shown in FIG. 6a and shown in FIG. 6b by running the executable program code of the memory 1403.
- the related operations of step S105 in the above-mentioned FIG. 7a can also be performed, and the related operations of step S214 shown in FIG. 7a and step S310 shown in FIG. 10a can also be performed, which will not be described in detail here.
- the present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program implements the functions of any of the foregoing method embodiments during the process of being executed by the processor.
- the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
- software it can be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
- the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line, DSL) or wireless (eg, infrared, wireless, microwave, etc.).
- the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
- the available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, high-density digital video discs (DVDs)), or semiconductor media (eg, solid state disks, SSD)) etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
本申请要求于2020年11月30日提交中国专利局、申请号为202011377289.0、申请名称为“切片服务处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011377289.0 and the application name "Slicing Service Processing Method and Device" filed with the China Patent Office on November 30, 2020, the entire contents of which are incorporated into this application by reference.
本申请涉及通信技术领域,尤其涉及一种切片服务处理方法及装置。The present application relates to the field of communication technologies, and in particular, to a method and apparatus for processing slice services.
目前,通信技术已成为社会数字化的催化剂,未来移动通信将持续发展,并需要满足多样性的通信需求。例如,一个业务客户可能需要超可靠的服务,而其他业务客户可能需要超高带宽通信或极低延时。5G网络的设计需要能够同时提供不同的混合能力,以满足所有这些不同的需求,于是,引入了网络切片的概念,可以根据不断变化的需求将共享的物理网络资源动态高效地调度到逻辑网络切片,再将各个网络切片租用给对应的租户,可以有效利用网络资源,减少资本支出和运营费用。At present, communication technology has become a catalyst for social digitization. In the future, mobile communication will continue to develop and needs to meet diverse communication needs. For example, one business customer may require ultra-reliable service, while other business customers may require ultra-high-bandwidth communications or extremely low latency. The design of 5G networks needs to be able to provide different hybrid capabilities at the same time to meet all these different needs. Therefore, the concept of network slicing is introduced, which can dynamically and efficiently schedule shared physical network resources to logical network slices according to changing needs. , and then lease each network slice to the corresponding tenant, which can effectively utilize network resources and reduce capital expenditure and operating expenses.
然而,在运营商将网络切片租用给租户的过程中,运营商和租户之间还存在信任问题,例如,租户向运营商提供了服务费后可能无法获得运营商所声称的服务能力的切片服务,或者,运营商向租户提供了切片服务后可能无法获得租户支付的服务费。However, in the process of leasing network slices from operators to tenants, there is still a trust issue between operators and tenants. For example, tenants may not be able to obtain slice services with the service capabilities claimed by operators after providing service fees to operators. , or, the operator may not be able to obtain the service fee paid by the tenant after providing the slicing service to the tenant.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种切片服务处理方法及装置,解决了运营商与租户之间的信任问题。The embodiments of the present application provide a method and device for processing slice services, which solve the trust problem between operators and tenants.
第一方面,本申请提供一种切片服务处理方法,该方法可从验证节点的角度进行阐述。该方法包括:验证节点验证切片服务是否具有运营商节点所声称提供的切片服务的服务能力;验证节点在切片服务具有运营商节点所声称提供的切片服务的服务能力时,将切片服务的测试通过信息写入区块链中;该切片服务的测试通过信息用于向租户节点激活切片服务并将服务费支付给运营商节点,该服务费是租户节点针对运营商节点提供该切片服务所支付的。从而有利于运营商节点在激活该切片服务时,就能够获得服务费,避免被租户节点欺骗,另外,租户节点所获得的运营节点提供的该切片服务是测试通过的,即该切片服务具有该运营商节点所声称的服务能力,有利于避免租户被欺骗。In a first aspect, the present application provides a slice service processing method, which can be explained from the perspective of a verification node. The method includes: the verification node verifies whether the slice service has the service capability of the slice service claimed by the operator node; the verification node passes the test of the slice service when the slice service has the service capability of the slice service claimed by the operator node. The information is written into the blockchain; the test pass information of the slicing service is used to activate the slicing service to the tenant node and pay the service fee to the operator node. The service fee is what the tenant node pays for the operator node to provide the slicing service. . Therefore, it is beneficial for the operator node to obtain the service fee when activating the slice service, so as to avoid being deceived by the tenant node. In addition, the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has the The service capability claimed by the operator node is beneficial to avoid the tenant being deceived.
一种实施方式中,验证节点验证切片服务是否具有运营商节点所声称提供的切片服务的服务能力,包括:验证节点根据测试结果以及切片合约中切片服务测试通过的判决参数,确定切片服务是否测试通过,该测试结果用于指示运营商节点所提供的切片服务的服务能力。In one embodiment, the verification node verifies whether the slicing service has the service capability of the slicing service claimed by the operator node, including: the verification node determines whether the slicing service is tested according to the test result and the judgment parameters for passing the slicing service test in the slicing contract. Passed, the test result is used to indicate the service capability of the slice service provided by the operator node.
一种实施方式中,验证节点将切片服务的测试通过信息写入区块链中,包括:验证节点将切片服务的测试通过信息写入切片合约中;该测试通过信息具体用于激活切片合约调用租户合约向运营商节点发送支付凭证以及向租户节点发送通知消息;该支付凭证是切片合约调用租户合约,将服务费支付给运营商节点的证据;该通知消息用于通知租户节点,运营商节点已激活切片服务。In one embodiment, the verification node writes the test pass information of the slicing service into the blockchain, including: the verification node writes the test pass information of the slicing service into the slicing contract; the test passing information is specifically used to activate the invocation of the slicing contract. The tenant contract sends a payment voucher to the operator node and a notification message to the tenant node; the payment voucher is the proof that the slice contract calls the tenant contract to pay the service fee to the operator node; the notification message is used to notify the tenant node, the operator node Slice service activated.
一种实施方式中,验证节点接收测试结果,该测试结果是监听节点监听运营商节点向测试节点所提供的切片服务的测试结果。In one embodiment, the verification node receives the test result, which is the test result of the monitoring node monitoring the slice service provided by the operator node to the test node.
一种实施方式中,由主节点执行上述验证节点的相关操作,在主节点接收测试结果之前,该切片服务处理方法还包括:主节点利用随机选择算法,从参与区块链共识的节点中选择测 试节点;主节点根据切片合约中运营商节点针对切片服务定义的对外测试接口、资源有效性测试方式,通知测试节点向切片合约中写入测试请求信息;该测试请求信息中包括测试节点的地址,测试请求信息用于指示运营商节点向测试节点提供切片服务。In one embodiment, the master node performs the above-mentioned relevant operations of the verification node, and before the master node receives the test result, the slice service processing method further includes: the master node uses a random selection algorithm to select from the nodes participating in the blockchain consensus. Test node; the master node notifies the test node to write test request information into the slice contract according to the external test interface and resource validity test method defined by the operator node in the slice contract for the slice service; the test request information includes the address of the test node , the test request information is used to instruct the operator node to provide the slicing service to the test node.
一种实施方式中,由主节点执行上述验证节点的相关操作,主节点利用随机选择算法,从参与区块链共识的节点中选择测试节点,包括:主节点验证多个节点中各自公布的随机数与在先各自公布的哈希值是否匹配,该哈希值是节点利用自身的随机数进行哈希运算获得的;主节点利用映射运算从匹配的多个节点中确定测试节点。该映射运算可以包括取模运算;主节点通过取模运算得到取模运算值,根据该取模运算值从匹配的多个节点中确定测试节点,其中,取模运算值是联合哈希值对N进行取模运算获得的,联合哈希值是利用匹配的多个节点的随机数进行联合哈希运算获得的,N是多个节点的数目。通过上述实施方式,有利于保证随机节点选择过程的公平性和有效性。In an embodiment, the master node performs the above-mentioned relevant operations of the verification node, and the master node selects a test node from the nodes participating in the blockchain consensus by using a random selection algorithm, including: Whether the number matches the previously announced hash value, the hash value is obtained by the node using its own random number to perform the hash operation; the master node uses the mapping operation to determine the test node from the multiple matching nodes. The mapping operation may include a modulo operation; the master node obtains a modulo operation value through the modulo operation, and determines a test node from a plurality of matched nodes according to the modulo operation value, wherein the modulo operation value is a joint hash value pair N is obtained by taking the modulo operation, and the joint hash value is obtained by using the random numbers of the matched multiple nodes to perform the joint hash operation, and N is the number of multiple nodes. Through the above implementation, it is beneficial to ensure the fairness and effectiveness of the random node selection process.
一种实施方式中,该切片服务处理方法还包括:多个节点各自公布的随机数、哈希值均记录于切片合约中。可选的,上述映射运算为取模运算时的联合哈希值、N均可以记录于切片合约中,从而记录主节点随机选择测试节点的过程。In one embodiment, the slicing service processing method further includes: the random numbers and hash values respectively announced by the multiple nodes are recorded in the slicing contract. Optionally, the joint hash value and N when the above-mentioned mapping operation is a modulo operation can be recorded in the slicing contract, so as to record the process that the master node randomly selects the test node.
一种实施方式中,由公证第三方节点执行上述验证节点的相关操作,公证第三方节点向切片合约中写入测试请求信息,测试请求信息中包括公证第三方节点的地址;公证第三方节点使用来自运营商节点提供的切片服务,获得测试结果;该测试结果用于指示运营商节点向公证第三方节点提供的切片服务的服务能力。通过公证第三方节点对切片服务进行测试,还有利于提高测试效率。In one embodiment, the notarized third-party node performs the above-mentioned relevant operations of the verification node, and the notary third-party node writes test request information into the slice contract, and the test request information includes the address of the notary third-party node; the notary third-party node uses The test result is obtained from the slice service provided by the operator node; the test result is used to indicate the service capability of the slice service provided by the operator node to the notary third-party node. Testing slicing services by notarizing third-party nodes is also conducive to improving testing efficiency.
一种实施方式中,该方法还包括:切片合约还用于调用目录合约,将切片服务更新到目录合约中的已租用切片服务中,有利于公布该运营商节点提供的该切片服务已经提供给租户节点,进而有利于告知其他的租户节点该切片服务已被使用,避免其他的租户节点重复选择该切片服务,进而有利于提高其他租户节点选择合适的切片服务的效率。In one embodiment, the method further includes: the slicing contract is further used to call the directory contract, and update the slicing service to the leased slicing service in the directory contract, which is beneficial to announce that the slicing service provided by the operator node has been provided to the The tenant node is beneficial to inform other tenant nodes that the slice service has been used, and avoid other tenant nodes to repeatedly select the slice service, thereby improving the efficiency of other tenant nodes in selecting the appropriate slice service.
第二方面,本申请提供一种切片服务处理方法,该方法与第一方面所述的切片服务处理方法相对应,是从租户节点的角度进行阐述的。该方法包括:租户节点接收来自区块链的通知消息,该通知消息是切片服务的测试通过信息写入区块链时发送的,用于指示运营商节点已激活该切片服务;该切片服务是租户节点所选择的运营商节点提供的;租户节点响应通知消息,使用运营商节点提供的切片服务。从而有利于运营商节点在激活该切片服务时,就能够获得服务费,避免被租户节点欺骗,另外,租户节点所获得的运营节点提供的该切片服务是测试通过的,即该切片服务具有该运营商节点所声称的服务能力,有利于避免被运营商节点欺骗。In a second aspect, the present application provides a slice service processing method, which corresponds to the slice service processing method described in the first aspect, and is described from the perspective of a tenant node. The method includes: the tenant node receives a notification message from the blockchain, the notification message is sent when the test pass information of the slicing service is written into the blockchain, and is used to indicate that the operator node has activated the slicing service; the slicing service is Provided by the operator node selected by the tenant node; the tenant node responds to the notification message and uses the slice service provided by the operator node. Therefore, it is beneficial for the operator node to obtain the service fee when activating the slice service, so as to avoid being deceived by the tenant node. In addition, the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has the The service capability claimed by the operator node is beneficial to avoid being deceived by the operator node.
一种实施方式中,租户节点接收来自区块链的通知消息,包括:租户节点接收来自租户合约的通知消息,该通知消息具体是切片服务的测试通过信息写入切片合约时,切片合约被激活而调用租户合约发送的。In one embodiment, the tenant node receives the notification message from the blockchain, including: the tenant node receives the notification message from the tenant contract, and the notification message is specifically that when the test pass information of the slicing service is written into the slicing contract, the slicing contract is activated. And call the tenant contract to send.
一种实施方式中,租户节点响应通知消息,使用运营商节点提供的切片服务,包括:租户节点响应通知消息,根据切片合约中切片服务的对外使用接口,使用运营商节点所提供的切片服务。In one embodiment, the tenant node responds to the notification message and uses the slice service provided by the operator node, including: the tenant node responds to the notification message and uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract.
一种实施方式中,租户节点接收来自区块链的通知消息之前,该切片服务处理方法还包括:租户节点根据目录合约,选择提供切片服务的运营商节点,目录合约中包括维护区块链的各运营商节点所提供的切片服务的信息;租户节点确定租户合约,租户合约中包括租户节点的接口信息,以及租户节点选择的切片服务的信息、运营商节点,以及租户节点针对切片 服务所支付的服务费。从而,有利于在切片合约中写入测试通过信息时激活切片合约调用该租户合约将该服务费支付给对应的运营商节点,从而避免运营商节点受到租户节点的欺骗。In one embodiment, before the tenant node receives the notification message from the blockchain, the slicing service processing method further includes: the tenant node selects the operator node that provides the slicing service according to the directory contract, and the directory contract includes the maintenance of the blockchain. Information about the slice service provided by each operator node; the tenant node determines the tenant contract, and the tenant contract includes the interface information of the tenant node, as well as the information of the slice service selected by the tenant node, the operator node, and the payment of the tenant node for the slice service. service fee. Therefore, it is beneficial to activate the slicing contract and call the tenant contract to pay the service fee to the corresponding operator node when the test pass information is written in the slicing contract, thereby preventing the operator node from being deceived by the tenant node.
一种实施方式中,租户节点根据目录合约,选择提供切片服务的运营商节点,包括:租户节点查询切片目录合约中是否存在所需的切片服务,切片目录合约中包括各运营商节点已经部署的各切片服务的信息;若存在,租户节点选择提供切片服务的运营商节点;若不存在,租户节点查询资源目录合约中运营商节点是否具有提供切片服务的服务能力;若资源目录合约中运营商节点具有提供切片服务的服务能力,则租户节点选择具有提供切片服务的服务能力的运营商节点。可见,各运营商节点可以利用目录合约将自己的切片服务记录在区块链上供租户查询,相应的,租户节点通过目录合约可选择到提供对应切片服务的运营商节点,或者向对应的运营商节点申请切片服务,以使运营商节点通过切片管理系统准备切片服务并在切片合约中定义该切片服务的相关信息,与租户节点需要分别向不同的运营商节点分别申请查询切片服务的方式相比,能够提高切片服务的租用效率。In one embodiment, the tenant node selects the operator node that provides the slicing service according to the directory contract, including: the tenant node queries whether the required slicing service exists in the slicing directory contract, and the slicing directory contract includes the deployed slicing services of each operator node. Information about each slicing service; if it exists, the tenant node selects the operator node that provides slicing services; if not, the tenant node queries whether the operator node in the resource directory contract has the service capability to provide slicing services; if the operator node in the resource directory contract If the node has the service capability of providing slicing services, the tenant node selects an operator node that has the service capability of providing slicing services. It can be seen that each operator node can use the directory contract to record its own slice service on the blockchain for tenants to query. Correspondingly, the tenant node can select the operator node that provides the corresponding slice service through the directory contract, or to the corresponding operator. The vendor node applies for the slice service, so that the operator node prepares the slice service through the slice management system and defines the relevant information of the slice service in the slice contract. It can improve the leasing efficiency of slicing services.
第三方面,本申请提供一种切片服务处理方法,该方法与第一方面和第二方面所述的切片服务处理方法相对应,是从运营商节点的角度进行阐述的。该方法包括:运营商节点接收来自区块链的服务费;该服务费是切片服务的测试通过信息写入区块链时发送的,且是租户节点针对运营商节点提供的切片服务所支付的;运营商节点根据区块链中租户节点的接口信息,激活切片服务并向租户节点提供该切片服务。从而有利于运营商节点在激活该切片服务时,就能够获得服务费,避免被租户节点欺骗,还可以保证租户节点所获得的运营节点提供的该切片服务是测试通过的,即该切片服务具有该运营商节点所声称的服务能力,有利于避免被运营商节点欺骗。In a third aspect, the present application provides a slice service processing method, which corresponds to the slice service processing methods described in the first aspect and the second aspect, and is described from the perspective of an operator node. The method includes: the operator node receives a service fee from the blockchain; the service fee is sent when the test pass information of the slicing service is written into the blockchain, and is paid by the tenant node for the slicing service provided by the operator node ; The operator node activates the slicing service and provides the slicing service to the tenant node according to the interface information of the tenant node in the blockchain. Therefore, it is beneficial for the operator node to obtain the service fee when activating the slice service, to avoid being deceived by the tenant node, and to ensure that the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has The service capability claimed by the operator node is beneficial to avoid being deceived by the operator node.
一种实施方式中,运营商节点接收来自区块链的服务费,包括:运营商节点接收来自租户合约的支付凭证;该支付凭证是切片合约中被写入测试通过信息时被激活而调用租户合约发送的;该测试通过信息用于指示租户节点选择运营商节点提供的切片服务已测试通过;该支付凭证用于指示租户节点针对切片服务预存的服务费,支付给运营商节点的证据。In one embodiment, the operator node receives the service fee from the blockchain, including: the operator node receives a payment voucher from the tenant contract; the payment voucher is activated when the test pass information is written in the slice contract and calls the tenant. The test pass information is used to instruct the tenant node to select that the slice service provided by the operator node has passed the test; the payment voucher is used to indicate that the tenant node pays the operator node the service fee pre-stored for the slice service.
一种实施方式中,运营商节点根据区块链中租户节点的接口信息,向租户节点提供切片服务,包括:根据租户合约,向租户节点提供切片服务,该租户合约中包括租户节点的接口信息。In one embodiment, the operator node provides the slicing service to the tenant node according to the interface information of the tenant node in the blockchain, including: providing the slicing service to the tenant node according to the tenant contract, and the tenant contract includes the interface information of the tenant node. .
一种实施方式中,运营商节点接收来自区块链的服务费之前,该切片服务处理方法还包括:运营商节点根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为测试节点的地址;该测试请求信息中包括测试节点的地址;运营商节点利用对外测试接口向测试节点提供切片服务。In one embodiment, before the operator node receives the service fee from the blockchain, the slicing service processing method further includes: the operator node, according to the test request information in the slicing contract, updates the external test interface of the slicing service to a test node. The test request information includes the address of the test node; the operator node uses the external test interface to provide slicing services to the test node.
一种实施方式中,运营商节点接收来自区块链的服务费之前,该切片服务处理方法还包括:运营商节点根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为公证第三方节点的地址;该测试请求信息中包括公证第三方节点的地址;运营商节点利用对外测试接口向公证第三方节点提供切片服务。可见,公证第三方节点可以使用该切片服务,对该切片服务进行测试,有利于提高测试效率。In one embodiment, before the operator node receives the service fee from the blockchain, the slicing service processing method further includes: the operator node, according to the test request information in the slicing contract, updates the external test interface of the slicing service to the notarization first. The address of the third-party node; the test request information includes the address of the notarized third-party node; the operator node uses the external test interface to provide slicing services to the notarized third-party node. It can be seen that the notarization third-party node can use the slice service to test the slice service, which is beneficial to improve the test efficiency.
一种实施方式中,运营商节点接收来自区块链的服务费之前,该切片服务处理方法还包括:运营商节点根据租户合约,部署租户节点所请求的切片服务,该租户合约还包括租户节点选择的切片服务的信息、运营商节点以及租户节点针对切片服务所支付的服务费;运营商节点在切片合约中定义切片服务、切片服务的对外接口、切片服务的资源有效性测试方式以及测试通过的判决参数;切片服务的对外接口包括对外使用接口和对外测试接口。In one embodiment, before the operator node receives the service fee from the blockchain, the slice service processing method further includes: the operator node deploys the slice service requested by the tenant node according to the tenant contract, and the tenant contract further includes the tenant node. The information of the selected slice service, the service fee paid by the operator node and the tenant node for the slice service; the operator node defines the slice service in the slice contract, the external interface of the slice service, the resource validity test method of the slice service and the test pass The judgment parameter of the slicing service; the external interface of the slicing service includes the external use interface and the external test interface.
第四方面,本申请提供一种切片服务处理装置,该装置包括:In a fourth aspect, the present application provides a slice service processing device, the device comprising:
确定单元,用于验证切片服务是否具有运营商节点所声称提供的切片服务的服务能力;A determination unit for verifying whether the slice service has the service capability of the slice service claimed by the operator node;
写入单元,用于在切片服务具有运营商节点所声称提供的切片服务的服务能力时,将切片服务的测试通过信息写入区块链中;该切片服务的测试通过信息用于向租户节点激活切片服务并将服务费支付给运营商节点,该服务费是租户节点针对运营商节点提供切片服务所支付的。The writing unit is used to write the test pass information of the slice service into the blockchain when the slice service has the service capability of the slice service claimed by the operator node; the test pass information of the slice service is used to report to the tenant node. Activate the slicing service and pay the service fee to the operator node, which is paid by the tenant node for providing the slicing service to the operator node.
一种实施方式中,确定单元还用于根据测试结果以及切片合约中切片服务测试通过的判决参数,确定切片服务是否测试通过,该测试结果用于指示运营商节点所提供的切片服务的服务能力。In one embodiment, the determining unit is further configured to determine whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service passing the slicing service test in the slicing contract, and the test result is used to indicate the service capability of the slicing service provided by the operator node. .
一种实施方式中,写入单元还用于将切片服务的测试通过信息写入切片合约中;该测试通过信息具体用于激活切片合约调用租户合约向运营商节点发送支付凭证以及向租户节点发送通知消息;该支付凭证是切片合约调用租户合约,将服务费支付给运营商节点的证据;该通知消息用于通知租户节点,运营商节点已激活切片服务。In one embodiment, the writing unit is further used to write the test pass information of the slice service into the slice contract; the test pass information is specifically used to activate the slice contract and call the tenant contract to send payment credentials to the operator node and to the tenant node. Notification message; the payment voucher is the proof that the slicing contract calls the tenant contract to pay the service fee to the operator node; the notification message is used to notify the tenant node that the operator node has activated the slicing service.
一种实施方式中,该装置还包括:接收单元,用于接收测试结果,测试结果是监听节点监听运营商节点向测试节点所提供的切片服务的测试结果。In one embodiment, the apparatus further includes: a receiving unit, configured to receive a test result, where the test result is a test result of the monitoring node monitoring the slice service provided by the operator node to the test node.
一种实施方式中,该装置还包括:选择单元,用于在接收单元接收测试结果之前,利用随机选择算法,从参与区块链共识的节点中选择测试节点;In one embodiment, the device further includes: a selection unit, configured to use a random selection algorithm to select a test node from the nodes participating in the blockchain consensus before the receiving unit receives the test result;
通知单元,用于根据切片合约中运营商节点针对切片服务定义的对外测试接口、资源有效性测试方式,通知测试节点向切片合约中写入测试请求信息;测试请求信息中包括测试节点的地址,该测试请求信息用于指示运营商节点向测试节点提供切片服务。The notification unit is used to notify the test node to write the test request information into the slice contract according to the external test interface and resource validity test method defined by the operator node in the slice contract for the slice service; the test request information includes the address of the test node, The test request information is used to instruct the operator node to provide the slicing service to the test node.
一种实施方式中,选择单元还用于验证多个节点中各自公布的随机数与在先各自公布的哈希值是否匹配,哈希值是节点利用自身的随机数进行哈希运算获得的;In one embodiment, the selection unit is further configured to verify whether the random numbers respectively announced in the multiple nodes match the hash values respectively announced previously, and the hash values are obtained by the nodes using their own random numbers to perform hash operations;
选择单元还用于利用映射运算从匹配的多个节点中确定测试节点。该映射运算可以包括取模运算;主节点通过取模运算得到取模运算值,根据该取模运算值从匹配的多个节点中确定测试节点,其中,取模运算值是联合哈希值对N进行取模运算获得的,联合哈希值是利用匹配的多个节点的随机数进行联合哈希运算获得的,N是多个节点的数目。The selection unit is also used to determine a test node from the matched plurality of nodes using a mapping operation. The mapping operation may include a modulo operation; the master node obtains a modulo operation value through the modulo operation, and determines a test node from a plurality of matched nodes according to the modulo operation value, wherein the modulo operation value is a joint hash value pair N is obtained by taking the modulo operation, and the joint hash value is obtained by using the random numbers of the matched multiple nodes to perform the joint hash operation, and N is the number of multiple nodes.
一种实施方式中,多个节点各自公布的随机数、哈希值均记录于切片合约中。可选的,上述映射运算为取模运算时的联合哈希值、N均可以记录于切片合约中。In one embodiment, the random numbers and hash values published by multiple nodes are recorded in the slice contract. Optionally, the joint hash value and N when the above-mentioned mapping operation is a modulo operation can be recorded in the slicing contract.
一种实施方式中,写入单元还用于向切片合约中写入测试请求信息,测试请求信息中包括公证第三方节点的地址;接收单元还用于使用来自运营商节点提供的切片服务,获得测试结果;测试结果用于指示运营商节点向公证第三方节点提供的切片服务的服务能力。In one embodiment, the writing unit is further configured to write test request information into the slicing contract, and the test request information includes the address of the notarized third-party node; the receiving unit is further configured to use the slicing service provided by the operator node to obtain Test result; the test result is used to indicate the service capability of the slice service provided by the operator node to the notary third-party node.
一种实施方式中,切片合约还用于调用目录合约,将切片服务更新到目录合约中的已租用切片服务中。In one embodiment, the slicing contract is also used to call the directory contract to update the slicing service to the rented slicing service in the directory contract.
第五方面,本申请提供一种切片服务处理装置,该装置包括:In a fifth aspect, the present application provides a slice service processing device, the device comprising:
接收单元,用于接收来自区块链的通知消息,该通知消息是切片服务的测试通过信息写入区块链时发送的,用于指示运营商节点已激活切片服务;该切片服务是租户节点所选择的运营商节点提供的;The receiving unit is used to receive the notification message from the blockchain. The notification message is sent when the test pass information of the slicing service is written into the blockchain, and is used to indicate that the operator node has activated the slicing service; the slicing service is the tenant node. provided by the selected operator node;
响应单元,用于响应通知消息,使用运营商节点提供的切片服务。The response unit is used to respond to the notification message and use the slice service provided by the operator node.
一种实施方式中,接收单元还用于接收来自租户合约的通知消息,该通知消息具体是切片服务的测试通过信息写入切片合约时,切片合约被激活而调用租户合约发送的。In one embodiment, the receiving unit is further configured to receive a notification message from the tenant contract, the notification message is specifically sent by calling the tenant contract when the slice contract is activated when the test pass information of the slice service is written into the slice contract.
一种实施方式中,响应单元还用于响应通知消息,根据所述切片合约中所述切片服务的 对外使用接口,使用所述运营商节点所提供的所述切片服务。In one embodiment, the response unit is further configured to respond to the notification message, and use the slice service provided by the operator node according to the external use interface of the slice service in the slice contract.
一种实施方式中,该装置还包括:选择单元,用于在接收单元接收来自区块链的通知消息之前根据目录合约,选择提供切片服务的运营商节点,目录合约中包括维护区块链的各运营商节点所提供的切片服务的信息;In one embodiment, the device further includes: a selection unit, configured to select an operator node that provides slicing services according to a directory contract before the receiving unit receives the notification message from the blockchain, and the directory contract includes the maintenance of the blockchain. Information about slice services provided by each operator node;
确定单元,用于确定租户合约,租户合约中包括租户节点的接口信息,以及租户节点选择的切片服务的信息、运营商节点,以及租户节点针对切片服务所支付的服务费。The determining unit is used to determine the tenant contract. The tenant contract includes the interface information of the tenant node, the information of the slice service selected by the tenant node, the operator node, and the service fee paid by the tenant node for the slice service.
一种实施方式中,选择单元还用于查询切片目录合约中是否存在所需的切片服务,切片目录合约中包括各运营商节点已经部署的各切片服务的信息;In one embodiment, the selection unit is further configured to query whether the required slicing service exists in the slicing directory contract, and the slicing directory contract includes information about each slicing service that has been deployed by each operator node;
若存在,选择单元还用于选择提供切片服务的运营商节点;If it exists, the selection unit is also used to select the operator node that provides the slicing service;
若不存在,选择单元还用于查询资源目录合约中运营商节点是否具有提供切片服务的服务能力;若资源目录合约中运营商节点具有提供切片服务的服务能力,则该选择单元还用于选择具有提供切片服务的服务能力的运营商节点。If it does not exist, the selection unit is also used to query whether the operator node in the resource directory contract has the service capability of providing slicing services; if the operator node in the resource directory contract has the service capability of providing slicing services, the selection unit is also used to select An operator node with the service capability to provide slice services.
第六方面,本申请提供一种切片服务处理装置,该装置包括:In a sixth aspect, the present application provides a slice service processing device, the device comprising:
接收单元,用于接收来自区块链的服务费;该服务费是切片服务的测试通过信息写入区块链时发送的,且是租户节点针对运营商节点提供的切片服务所支付的;The receiving unit is used to receive the service fee from the blockchain; the service fee is sent when the test pass information of the slicing service is written into the blockchain, and is paid by the tenant node for the slicing service provided by the operator node;
提供单元,用于根据区块链中租户节点的接口信息,激活切片服务并向租户节点提供该切片服务。Provides a unit for activating the slice service and providing the slice service to the tenant node according to the interface information of the tenant node in the blockchain.
一种实施方式中,接收单元还用于接收来自租户合约的支付凭证;该支付凭证是切片合约中被写入测试通过信息时被激活而调用租户合约发送的;该测试通过信息用于指示租户节点选择运营商节点提供的切片服务已测试通过;该支付凭证用于指示租户节点针对切片服务预存的服务费,支付给运营商节点的证据。In one embodiment, the receiving unit is further configured to receive a payment voucher from the tenant contract; the payment voucher is activated when the test pass information is written in the slice contract and is sent by calling the tenant contract; the test pass information is used to indicate the tenant The slicing service provided by the node selection operator node has passed the test; the payment voucher is used to instruct the tenant node to pay the operator node the pre-stored service fee for the slicing service.
一种实施方式中,提供单元还用于根据租户合约,向租户节点提供切片服务,该租户合约中包括租户节点的接口信息。In one embodiment, the providing unit is further configured to provide the slicing service to the tenant node according to the tenant contract, where the tenant contract includes interface information of the tenant node.
一种实施方式中,该装置还包括:更新单元,用于在接收单元接收来自区块链的服务费之前,根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为测试节点的地址;测试请求信息中包括测试节点的地址;提供单元还用于利用对外测试接口向测试节点提供切片服务。In one embodiment, the device further includes: an update unit, configured to update the external test interface of the slicing service to that of the test node according to the test request information in the slicing contract before the receiving unit receives the service fee from the blockchain. address; the test request information includes the address of the test node; the providing unit is also used for providing slice services to the test node by using the external test interface.
一种实施方式中,更新单元还用于在接收单元接收来自区块链的服务费之前,根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为公证第三方节点的地址;测试请求信息中包括公证第三方节点的地址;提供单元还用于利用对外测试接口向公证第三方节点提供切片服务。In one embodiment, the updating unit is further configured to update the external test interface of the slicing service to the address of the notarized third-party node according to the test request information in the slicing contract before the receiving unit receives the service fee from the blockchain; The request information includes the address of the notarization third-party node; the providing unit is also used to provide slice services to the notarization third-party node by using the external test interface.
一种实施方式中,该装置还包括:部署单元,用于在接收单元接收来自区块链的服务费之前,根据租户合约,部署租户节点所请求的切片服务,租户合约还包括租户节点选择的切片服务的信息、运营商节点以及租户节点针对切片服务所支付的服务费;In one embodiment, the device further includes: a deployment unit, configured to deploy the slice service requested by the tenant node according to the tenant contract before the receiving unit receives the service fee from the blockchain. Information about the slicing service, service fees paid by the operator node and the tenant node for the slicing service;
定义单元,用于在切片合约中定义切片服务、切片服务的对外接口、切片服务的资源有效性测试方式以及测试通过的判决参数;切片服务的对外接口包括对外使用接口和对外测试接口。The definition unit is used to define the slice service, the external interface of the slice service, the resource validity test method of the slice service, and the judgment parameters for passing the test in the slice contract; the external interface of the slice service includes an external use interface and an external test interface.
第七方面,本申请提供一种通信装置,包括处理器;该处理器用于验证切片服务是否具有运营商节点所声称提供的切片服务的服务能力;In a seventh aspect, the present application provides a communication device, including a processor; the processor is configured to verify whether the slice service has the service capability of the slice service claimed by the operator node;
该处理器还用于在切片服务具有运营商节点所声称提供的切片服务的服务能力时,将切片服务的测试通过信息写入区块链中;切片服务的测试通过信息用于向租户节点激活切片服 务并将服务费支付给运营商节点,服务费是租户节点针对运营商节点提供切片服务所支付的。The processor is also used to write the test pass information of the slice service into the blockchain when the slice service has the service capability of the slice service claimed by the operator node; the test pass information of the slice service is used to activate the tenant node Slice the service and pay the service fee to the operator node, and the service fee is paid by the tenant node to provide the slicing service for the operator node.
一种实施方式中,该处理器还用于根据测试结果以及切片合约中切片服务测试通过的判决参数,确定切片服务是否测试通过,测试结果用于指示运营商节点所提供的切片服务的服务能力。In one embodiment, the processor is further configured to determine whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service passing the slicing service test in the slicing contract, and the test result is used to indicate the service capability of the slicing service provided by the operator node. .
一种实施方式中,该处理器还用于将切片服务的测试通过信息写入切片合约中;该测试通过信息具体用于激活切片合约调用租户合约向运营商节点发送支付凭证以及向租户节点发送通知消息;该支付凭证是切片合约调用租户合约,将服务费支付给运营商节点的证据;通知消息用于通知租户节点,运营商节点已激活切片服务。In one embodiment, the processor is further configured to write the test pass information of the slicing service into the slicing contract; the test passing information is specifically used to activate the slicing contract and call the tenant contract to send payment credentials to the operator node and to the tenant node. Notification message; the payment voucher is the evidence that the slicing contract calls the tenant contract to pay the service fee to the operator node; the notification message is used to notify the tenant node that the operator node has activated the slicing service.
一种实施方式中,该通信装置还包括通信接口;该通信接口用于接收测试结果,测试结果是监听节点监听运营商节点向测试节点所提供的切片服务的测试结果。In one embodiment, the communication device further includes a communication interface; the communication interface is used for receiving a test result, and the test result is a test result of the monitoring node monitoring the slice service provided by the operator node to the test node.
一种实施方式中,处理器还用于在通信接口接收测试结果之前,利用随机选择算法,从参与区块链共识的节点中选择测试节点;处理器还用于根据切片合约中运营商节点针对切片服务定义的对外测试接口、资源有效性测试方式,通知测试节点向切片合约中写入测试请求信息;该测试请求信息中包括测试节点的地址,测试请求信息用于指示运营商节点向测试节点提供切片服务。In one embodiment, the processor is further configured to use a random selection algorithm to select a test node from the nodes participating in the blockchain consensus before the communication interface receives the test result; The external test interface and resource validity test method defined by the slice service notifies the test node to write test request information into the slice contract; the test request information includes the address of the test node, and the test request information is used to instruct the operator node to send the test node to the test node. Provide slicing services.
一种实施方式中,处理器还用于验证多个节点中各自公布的随机数与在先各自公布的哈希值是否匹配,哈希值是节点利用自身的随机数进行哈希运算获得的;该处理器还用于利用映射运算从匹配的多个节点中确定测试节点。该映射运算可以包括取模运算,该处理器可以通过取模运算得到取模运算值,根据该取模运算值从匹配的多个节点中确定测试节点,其中,取模运算值是联合哈希值对N进行取模运算获得的,联合哈希值是利用匹配的多个节点的随机数进行联合哈希运算获得的,N是多个节点的数目。In one embodiment, the processor is further configured to verify whether the random numbers respectively announced in the multiple nodes match the hash values respectively announced previously, and the hash values are obtained by the nodes using their own random numbers to perform a hash operation; The processor is also configured to determine a test node from the matched plurality of nodes using a mapping operation. The mapping operation may include a modulo operation, the processor may obtain a modulo operation value through the modulo operation, and determine a test node from the matched plurality of nodes according to the modulo operation value, wherein the modulo operation value is a joint hash The value is obtained by performing a modulo operation on N, and the joint hash value is obtained by performing a joint hash operation on the random numbers of multiple matching nodes, where N is the number of multiple nodes.
一种实施方式中,多个节点各自公布的随机数、哈希值记录于切片合约中。可选的,上述映射运算为取模运算时的联合哈希值、N均可记录于切片合约中。In one embodiment, the random numbers and hash values published by multiple nodes are recorded in the slice contract. Optionally, the joint hash value and N when the above mapping operation is a modulo operation can be recorded in the slice contract.
一种实施方式中,该处理器还用于向切片合约中写入测试请求信息,测试请求信息中包括公证第三方节点的地址;处理器还用于使用来自运营商节点提供的切片服务,获得测试结果;该测试结果用于指示运营商节点向主节点提供的切片服务的服务能力。In one embodiment, the processor is further configured to write test request information into the slicing contract, and the test request information includes the address of the notarized third-party node; the processor is also configured to use the slicing service provided by the operator node to obtain Test result; the test result is used to indicate the service capability of the slice service provided by the operator node to the master node.
一种实施方式中,切片合约还用于调用目录合约,将切片服务更新到目录合约中的已租用切片服务中。In one embodiment, the slicing contract is also used to call the directory contract to update the slicing service to the rented slicing service in the directory contract.
第八方面,本申请提供一种通信装置,包括处理器和通信接口;该通信接口用于接收来自区块链的通知消息,该通知消息是切片服务的测试通过信息写入区块链时发送的,用于指示运营商节点已激活切片服务;该切片服务是租户节点所选择的运营商节点提供的;该处理器用于响应通知消息,使用运营商节点提供的切片服务。In an eighth aspect, the present application provides a communication device, including a processor and a communication interface; the communication interface is used to receive a notification message from the blockchain, and the notification message is sent when the test pass information of the slicing service is written into the blockchain is used to indicate that the operator node has activated the slicing service; the slicing service is provided by the operator node selected by the tenant node; the processor is used to respond to the notification message and use the slicing service provided by the operator node.
一种实施方式中,该通信接口还用于接收来自租户合约的通知消息,该通知消息具体是切片服务的测试通过信息写入切片合约时,切片合约被激活而调用租户合约发送的。In one embodiment, the communication interface is further configured to receive a notification message from the tenant contract. The notification message is specifically sent by calling the tenant contract when the slicing contract is activated when the test pass information of the slicing service is written into the slicing contract.
一种实施方式中,该处理器还用于响应通知消息,根据切片合约中切片服务的对外使用接口,使用运营商节点所提供的切片服务。In one embodiment, the processor is further configured to respond to the notification message and use the slice service provided by the operator node according to the external use interface of the slice service in the slice contract.
一种实施方式中,该处理器还用于在通信接口接收来自区块链的通知消息之前,根据目录合约,选择提供切片服务的运营商节点,目录合约中包括维护区块链的各运营商节点所提供的切片服务的信息;In one embodiment, the processor is further configured to, before the communication interface receives a notification message from the blockchain, select an operator node that provides slicing services according to a directory contract, where the directory contract includes each operator maintaining the blockchain. Information about the slicing service provided by the node;
该处理器还用于确定租户合约,租户合约中包括租户节点的接口信息,以及租户节点选择的切片服务的信息、运营商节点,以及租户节点针对切片服务所支付的服务费。The processor is further configured to determine the tenant contract, where the tenant contract includes interface information of the tenant node, information of the slice service selected by the tenant node, the operator node, and the service fee paid by the tenant node for the slice service.
一种实施方式中,该处理器还用于查询切片目录合约中是否存在所需的切片服务,该切片目录合约中包括各运营商节点已经部署的各切片服务的信息;In one embodiment, the processor is further configured to query whether the required slicing service exists in the slicing directory contract, where the slicing directory contract includes information about each slicing service that has been deployed by each operator node;
若存在,该处理器还用于选择提供切片服务的运营商节点;If it exists, the processor is also used to select an operator node that provides slicing services;
若不存在,该处理器还用于查询资源目录合约中运营商节点是否具有提供切片服务的服务能力;若资源目录合约中运营商节点具有提供切片服务的服务能力,则该处理器还用于选择具有提供切片服务的服务能力的运营商节点。If it does not exist, the processor is also used to query whether the operator node in the resource directory contract has the service capability to provide slicing services; if the operator node in the resource directory contract has the service capability to provide slicing services, the processor is also used to provide slicing services. Select an operator node that has the service capability to provide slicing services.
第九方面,本申请提供一种通信装置,包括处理器和通信接口;该通信接口用于接收来自区块链的服务费;该服务费是切片服务的测试通过信息写入区块链时发送的,且是租户节点针对运营商节点提供的切片服务所支付的;该处理器用于根据区块链中租户节点的接口信息,激活切片服务并向租户节点提供切片服务。In a ninth aspect, the present application provides a communication device, including a processor and a communication interface; the communication interface is used to receive a service fee from the blockchain; the service fee is sent when the test pass information of the slicing service is written into the blockchain , and is paid by the tenant node for the slicing service provided by the operator node; the processor is used to activate the slicing service and provide the slicing service to the tenant node according to the interface information of the tenant node in the blockchain.
一种实施方式中,该通信接口还用于接收来自租户合约的支付凭证;该支付凭证是切片合约中被写入测试通过信息时被激活而调用租户合约发送的;该测试通过信息用于指示租户节点选择运营商节点提供的切片服务已测试通过;该支付凭证用于指示租户节点针对切片服务预存的服务费,支付给运营商节点的证据。In one embodiment, the communication interface is also used to receive a payment voucher from the tenant contract; the payment voucher is activated when the test pass information is written in the slice contract and is sent by calling the tenant contract; the test pass information is used to indicate The slicing service provided by the operator node selected by the tenant node has passed the test; the payment voucher is used to instruct the tenant node to pay the operator node the pre-stored service fee for the slicing service.
一种实施方式中,该处理器还用于根据租户合约,向租户节点提供切片服务,租户合约中包括租户节点的接口信息。In one embodiment, the processor is further configured to provide a slicing service to the tenant node according to the tenant contract, and the tenant contract includes interface information of the tenant node.
一种实施方式中,该处理器还用于在通信接口接收来自区块链的服务费之前,根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为测试节点的地址;该测试请求信息中包括测试节点的地址;该处理器还用于利用对外测试接口向测试节点提供切片服务。In one embodiment, the processor is further configured to update the external test interface of the slice service to the address of the test node according to the test request information in the slice contract before the communication interface receives the service fee from the blockchain; the test The request information includes the address of the test node; the processor is further configured to provide slicing service to the test node by using the external test interface.
一种实施方式中,该处理器还用于在通信接口接收来自区块链的服务费之前,根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为公证第三方节点的地址;该测试请求信息中包括公证第三方节点的地址;该处理器还用于利用对外测试接口向公证第三方节点提供切片服务。In one embodiment, the processor is further configured to update the external test interface of the slicing service to the address of the notarized third-party node according to the test request information in the slicing contract before the communication interface receives the service fee from the blockchain; The test request information includes the address of the notarization third-party node; the processor is further configured to provide a slicing service to the notarization third-party node by using the external test interface.
一种实施方式中,该处理器还用于在通信接口接收来自区块链的服务费之前,根据租户合约,部署租户节点所请求的切片服务,其中,租户合约还包括租户节点选择的切片服务的信息、运营商节点以及租户节点针对切片服务所支付的服务费;In one embodiment, the processor is further configured to deploy the slice service requested by the tenant node according to the tenant contract before the communication interface receives the service fee from the blockchain, wherein the tenant contract further includes the slice service selected by the tenant node. information, service fees paid by operator nodes and tenant nodes for slicing services;
该处理器还用于在切片合约中定义切片服务、切片服务的对外接口、切片服务的资源有效性测试方式以及测试通过的判决参数;切片服务的对外接口包括对外使用接口和对外测试接口。The processor is also used to define the slice service, the external interface of the slice service, the resource validity test method of the slice service, and the judgment parameters for passing the test in the slice contract; the external interface of the slice service includes an external use interface and an external test interface.
第十方面,本申请提供一种计算机可读存储介质,用于存储计算机程序,当计算机程序在计算机上运行时,使得计算机执行如第一方面所述的方法,或者执行如第二方面所述的方法,或者执行如第三方面所述的方法。In a tenth aspect, the present application provides a computer-readable storage medium for storing a computer program, which, when the computer program runs on a computer, causes the computer to execute the method described in the first aspect, or execute the method described in the second aspect. method, or perform the method described in the third aspect.
图1是本申请实施例提供的一种切片服务处理系统的结构示意图;FIG. 1 is a schematic structural diagram of a slicing service processing system provided by an embodiment of the present application;
图2是本申请实施例提供的另一种切片服务处理系统的结构示意图;2 is a schematic structural diagram of another slicing service processing system provided by an embodiment of the present application;
图3是本申请实施例提供的区块链的结构示意图;3 is a schematic structural diagram of a blockchain provided by an embodiment of the present application;
图4是本申请实施例提供的一种切片管理架构的示意图;4 is a schematic diagram of a slice management architecture provided by an embodiment of the present application;
图5是本申请实施例提供的一种运营商切片管理系统的示意图;5 is a schematic diagram of an operator slice management system provided by an embodiment of the present application;
图6a是本申请实施例提供的一种切片服务处理方法的流程示意图;6a is a schematic flowchart of a method for processing a slice service provided by an embodiment of the present application;
图6b是本申请实施例提供的另一种切片服务处理方法的流程示意图;FIG. 6b is a schematic flowchart of another slicing service processing method provided by an embodiment of the present application;
图6c是本申请实施例提供的又一种切片服务处理方法的流程示意图;FIG. 6c is a schematic flowchart of another slice service processing method provided by an embodiment of the present application;
图7a是本申请实施例提供的又一种切片服务处理方法的流程示意图;FIG. 7a is a schematic flowchart of another slice service processing method provided by an embodiment of the present application;
图7b是本申请实施例提供的又一种切片服务处理方法的流程示意图;FIG. 7b is a schematic flowchart of another slice service processing method provided by an embodiment of the present application;
图8是本申请实施例提供的一种测试节点随机选择的流程示意图;8 is a schematic flowchart of random selection of a test node provided by an embodiment of the present application;
图9是本申请实施例提供的一种切片服务测试的流程示意图;9 is a schematic flowchart of a slice service test provided by an embodiment of the present application;
图10a是本申请实施例提供的又一种切片服务处理方法的流程示意图;FIG. 10a is a schematic flowchart of another slice service processing method provided by an embodiment of the present application;
图10b是本申请实施例提供的又一种切片服务处理方法的流程示意图;FIG. 10b is a schematic flowchart of another slice service processing method provided by an embodiment of the present application;
图11是本申请实施例提供的一种切片服务处理装置的结构示意图;FIG. 11 is a schematic structural diagram of a slice service processing apparatus provided by an embodiment of the present application;
图12是本申请实施例提供的另一种切片服务处理装置的结构示意图;FIG. 12 is a schematic structural diagram of another slice service processing apparatus provided by an embodiment of the present application;
图13是本申请实施例提供的又一种切片服务处理装置的结构示意图;FIG. 13 is a schematic structural diagram of another slice service processing apparatus provided by an embodiment of the present application;
图14是本申请实施例提供的一种通信装置的结构示意图。FIG. 14 is a schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
为了更好的理解本申请实施例提供的切片服务处理方法,首先对本申请实施例适用的场景进行描述。In order to better understand the slicing service processing method provided by the embodiments of the present application, the applicable scenarios of the embodiments of the present application are first described.
本申请实施例可应用于网络切片租用等场景中。请参见图1,图1是本申请实施例提供的一种切片服务处理系统的结构示意图,本申请实施例所述网络切片租用场景可为图1所示的切片服务处理系统。该切片服务处理系统可以包括但不限于一个或多个租户节点、一个或多个运营商节点,如图1以一个租户节点、一个运营商节点为例。图1所示的设备数量和形态用于举例并不构成对本申请实施例的限定。其中,租户节点可用于租用运营商节点提供的切片服务,运营商节点可用于为租户节点提供切片服务;运营商节点还可用于测试切片服务,此时用于测试切片服务的运营商节点可称为测试节点;运营商节点还可用于监听切片服务的测试结果,此时用于监听切片服务的测试结果的运营商节点可称为监听节点;运营商节点还可用于通知测试节点进行测试以及根据监听节点监听的测试结果确定切片服务是否测试通过,执行这些相关操作的运营商节点可称为主节点。The embodiments of the present application may be applied to scenarios such as network slice leasing. Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a slice service processing system provided by an embodiment of the present application. The network slice rental scenario described in the embodiment of the present application may be the slice service processing system shown in FIG. 1 . The slicing service processing system may include, but is not limited to, one or more tenant nodes and one or more operator nodes. As shown in FIG. 1 , one tenant node and one operator node are used as an example. The number and form of devices shown in FIG. 1 are used as examples and do not constitute limitations to the embodiments of the present application. Among them, the tenant node can be used to lease the slice service provided by the operator node, and the operator node can be used to provide the slice service for the tenant node; the operator node can also be used to test the slice service. At this time, the operator node used to test the slice service can be called It is a test node; the operator node can also be used to monitor the test results of the slice service. At this time, the operator node used to monitor the test results of the slice service can be called a monitor node; the operator node can also be used to notify the test node to conduct testing and The test result monitored by the listening node determines whether the slice service has passed the test, and the operator node that performs these related operations may be called the master node.
请参见图2,图2是本申请实施例提供的另一种切片服务处理系统的结构示意图,本申请实施例所述网络切片租用场景还可为图2所示的切片服务处理系统。其中,租户节点与运营商节点的功能可如图1所述,不同之处在于,该切片服务处理系统还可以包括公证第三方节点,该公证第三方节点可以是除运营商节点等区块链节点之外的机构或组织所管理的设备,公证第三方节点可以用于测试切片服务并确定切片服务是否测试通过,即执行上述图1所示的切片服务处理系统中主节点、测试节点以及监听节点的相关功能。为便于阐述,若不特别指出,本申请实施例所述的切片服务处理方法可从租户节点、运营商节点以及验证节点的角度进行阐述,其中,该验证节点可以是图1中的主节点或图2中的公证第三方节点,以执行相应的操作。另外,本申请实施例中,租户节点、运营商节点实际上也分别是区块链节点,不同的命名是为了便于阐述和区分不同的操作,并不对本申请实施例所述的方法构成限定。Please refer to FIG. 2. FIG. 2 is a schematic structural diagram of another slice service processing system provided by an embodiment of the present application. The network slice rental scenario described in the embodiment of the present application may also be the slice service processing system shown in FIG. 2. Among them, the functions of the tenant node and the operator node can be as described in Figure 1, the difference is that the slice service processing system can also include a notarized third-party node, and the notarized third-party node can be a blockchain other than the operator node. For devices managed by institutions or organizations other than the node, the notarized third-party node can be used to test the slice service and determine whether the slice service has passed the test. Node related functions. For ease of explanation, unless otherwise specified, the slice service processing method described in the embodiments of this application may be explained from the perspectives of a tenant node, an operator node, and a verification node, where the verification node may be the master node in FIG. 1 or a verification node. Notary third-party nodes in Figure 2 to perform corresponding operations. In addition, in the embodiments of the present application, the tenant nodes and the operator nodes are actually blockchain nodes, respectively, and the different names are for the convenience of explaining and distinguishing different operations, and do not limit the methods described in the embodiments of the present application.
为了便于理解本申请公开的实施例,作以下两点说明。In order to facilitate the understanding of the embodiments disclosed in the present application, the following two points are described.
(1)本申请公开的实施例中场景以无线通信网络中NR网络的场景为例进行说明,应当指出的是,本申请公开的实施例中的方案还可以应用于其他无线通信网络中,相应的名称也可以用其他无线通信网络中的对应功能的名称进行替代。(1) The scenarios in the embodiments disclosed in this application are described by taking the scenario of an NR network in a wireless communication network as an example. It should be noted that the solutions in the embodiments disclosed in this application can also be applied to other wireless communication networks. can also be replaced with the names of corresponding functions in other wireless communication networks.
(2)本申请公开的实施例将围绕包括多个设备、组件、模块等的系统来呈现本申请的各个方面、实施例或特征。应当理解和明白的是,各个系统可以包括另外的设备、组件、模块 等,并且/或者可以并不包括结合附图讨论的所有设备、组件、模块等。此外,还可以使用这些方案的组合。(2) The embodiments disclosed in the present application will present various aspects, embodiments or features of the present application around a system including a plurality of devices, components, modules, and the like. It is to be understood and appreciated that the various systems may include additional devices, components, modules, etc., and/or may not include all of the devices, components, modules, etc. discussed in connection with the figures. In addition, combinations of these schemes can also be used.
其次,为了便于理解本申请公开的实施例,下面对本申请实施例涉及的主要概念进行简单的介绍。Next, in order to facilitate understanding of the embodiments disclosed in the present application, the following briefly introduces the main concepts involved in the embodiments of the present application.
1、网络切片和切片服务1. Network slicing and slicing services
网络切片是指一个物理网络被划分为多个虚拟网络中的每一个虚拟网络,每一个虚拟网络根据不同类型的应用场景或者不同租户的需求被定制和优化。Network slicing means that a physical network is divided into multiple virtual networks, each of which is customized and optimized according to different types of application scenarios or the needs of different tenants.
网络切片还是一种运行在共享的物理基础设施上的独立的端到端逻辑网络。运营商可以根据不同的应用场景或者租户的不同需求,通过虚拟化技术将多个运营商共享的物理基础设施上的物理网络资源高效地调度到网络切片上,从而为相应的应用场景或者租户提供相应的服务。从而,有利于减少资本支出和运营费用。A network slice is also an independent end-to-end logical network running on a shared physical infrastructure. Operators can efficiently schedule physical network resources on the physical infrastructure shared by multiple operators to network slices through virtualization technology according to different application scenarios or different needs of tenants, so as to provide corresponding application scenarios or tenants. corresponding service. Thus, it is beneficial to reduce capital expenditure and operating expenses.
其中,虚拟化技术包括网络功能虚拟化(Network Functions Virtualization,NFV)和软件定义网络(Software Defined Network,SDN)。NFV技术可以用于虚拟化提取所需的物理网络资源,以消除该物理网络资源对专用硬件的依赖,有利于灵活地创建网络切片。SDN技术可以用于通过将控制平面与数据平面分离并通过逻辑上集中化网络来简化网络管理,引入可编程性和开放式网络访问,有利于运营商在共享的物理基础设施上实现为多个有不同需求的租户提供不同的服务。Among them, virtualization technologies include Network Functions Virtualization (NFV) and Software Defined Network (SDN). NFV technology can be used to virtualize and extract the required physical network resources to eliminate the dependence of the physical network resources on dedicated hardware and facilitate the flexible creation of network slices. SDN technology can be used to simplify network management by separating the control plane from the data plane and by logically centralizing the network, introducing programmability and open network access, which facilitates the implementation of multiple Tenants with different needs provide different services.
网络切片可以支持多样化需求,如增强型移动带宽连接(Enhanced Mobile Broadband,eMBB)、大型机器类型通信(massive Machine Type of Communication,mMTC)或者高可靠低延迟通信(Ultra-relaible and Low Latency Communication,uRLLC)等。Network slicing can support diverse needs, such as Enhanced Mobile Broadband (eMBB), Massive Machine Type of Communication (mMTC) or Ultra-relaible and Low Latency Communication, uRLLC) etc.
在本申请实施例中,网络切片可简称为切片,切片服务是指租户节点从运营商节点租用的网络切片所提供的服务。In this embodiment of the present application, a network slice may be referred to as a slice for short, and a slice service refers to a service provided by a network slice leased by a tenant node from an operator node.
2、区块、区块链和区块链节点2. Blocks, blockchains and blockchain nodes
区块用于作为数据结构以存储交易信息。请参见图3,图3是本申请实施例提供的区块链的结构示意图,如图3所示,区块可包括区块头和区块体。其中,区块头用于存储时间戳、交易的哈希值、前一个区块的哈希值和其他信息;区块体用于存储交易记录,例如,交易记录可以是转账记录、智能合约记录、清算记录或者物联网数据记录等。交易记录的内容可根据应用场景的不同而有所不同。Blocks are used as data structures to store transaction information. Please refer to FIG. 3 , which is a schematic structural diagram of a blockchain provided by an embodiment of the present application. As shown in FIG. 3 , a block may include a block header and a block body. Among them, the block header is used to store the timestamp, the hash value of the transaction, the hash value of the previous block and other information; the block body is used to store the transaction records, for example, the transaction records can be transfer records, smart contract records, Clearing records or IoT data records, etc. The content of transaction records may vary according to application scenarios.
区块链,如图3所示,由多个区块按序连接成链式结构而构成。区块链作为分布式数据库具有去中心化、不可篡改、可追溯、透明的特点。区块链基于适用范围可分为三大类:公有链、私有链和联盟链。A blockchain, as shown in Figure 3, consists of a plurality of blocks connected in sequence in a chain structure. As a distributed database, blockchain has the characteristics of decentralization, immutability, traceability and transparency. Based on the scope of application, blockchain can be divided into three categories: public chain, private chain and alliance chain.
区块链节点是指参与组成区块链网络的节点,通过区块链账户标识,例如可以由基于私钥的地址标识。区块链节点发送的信息都将由私钥签名,以保证区块链网络中交易的安全性。本申请实施例中的区块链节点包括租户节点和运营商节点,其中,运营商节点还可通过区块链处理功能(BlockChain Handling Function,BCHF)参与维护区块链网络,例如参与区块链共识以维护区块链网络。运营商节点还可用于获取区块链中的信息或者将信息写入区块链,此时,运营商节点还可称为矿工节点。A blockchain node refers to a node that participates in forming a blockchain network and is identified by a blockchain account, such as an address based on a private key. Information sent by blockchain nodes will be signed by private keys to ensure the security of transactions in the blockchain network. The blockchain nodes in the embodiments of the present application include tenant nodes and operator nodes, wherein the operator node can also participate in maintaining the blockchain network through a blockchain processing function (BlockChain Handling Function, BCHF), such as participating in the blockchain network Consensus to maintain the blockchain network. The operator node can also be used to obtain information in the blockchain or write information into the blockchain. At this time, the operator node can also be called a miner node.
3、区块链中的共识机制3. Consensus mechanism in blockchain
区块链中的共识机制用于通过共识算法对想要写入区块链的信息进行验证,从而保证区块链网络中每一个区块链节点的本地区块链副本存储的信息同步。The consensus mechanism in the blockchain is used to verify the information to be written into the blockchain through the consensus algorithm, thereby ensuring the synchronization of the information stored in the local blockchain copy of each blockchain node in the blockchain network.
其中,共识算法可以分为两种,第一种是基于证明的共识算法,例如:工作量证明(Proof of Work,PoW)、权益证明(Proof of stake,PoS)、委托股权证明(Delegated Proof of Stake,DPoS)、贪婪最重可观测子树算法(he Greedy Heaviest-Observed Sub-Tree,GHOST)等,这种共识算法要求区块链节点提交针对难题的解决方案,最先解决难题的区块链节点可以将信息打包成区块添加至区块链上,通常用于公有链中;第二种是利用传统的分布式计算领域的容错技术来解决拜占庭问题的共识算法,例如:实用拜占庭容错算法(Practical Byzantine Fault Tolerance,PBFT),通常用于联盟链中。Among them, the consensus algorithm can be divided into two types, the first is a consensus algorithm based on proof, such as: Proof of Work (PoW), Proof of Stake (PoS), Delegated Proof of Stake (Delegated Proof of Stake, DPoS), greedy heaviest-observed sub-tree algorithm (he Greedy Heaviest-Observed Sub-Tree, GHOST), etc. This consensus algorithm requires blockchain nodes to submit solutions to difficult problems, and the first block to solve the problem Chain nodes can package information into blocks and add them to the blockchain, which are usually used in public chains; the second is a consensus algorithm that uses traditional fault-tolerant technologies in the field of distributed computing to solve Byzantine problems, such as: Practical Byzantine Fault Tolerance Algorithm (Practical Byzantine Fault Tolerance, PBFT), usually used in alliance chains.
本申请实施例中,主节点通过随机选择算法确定测试节点,并由测试节点和监听节点测试切片服务的过程属于共识机制中区块链节点针对切片服务的服务能力达成共识的过程。公证第三方节点将切片服务的测试结果写入切片合约的过程属于共识机制中区块链节点针对公证第三方节点确定切片服务的测试结果这一行为达成共识的过程。In the embodiment of the present application, the master node determines the test node through a random selection algorithm, and the process of testing the slice service by the test node and the monitor node belongs to the process in which the blockchain nodes reach a consensus on the service capability of the slice service in the consensus mechanism. The process of notarizing the third-party node to write the test result of the slicing service into the slicing contract is a process in which the blockchain nodes reach a consensus on the behavior of the notarizing third-party node determining the test result of the slicing service in the consensus mechanism.
4、智能合约4. Smart contracts
智能合约是指在满足某些条件时可以在计算机系统上自动执行的脚本程序。通过智能合约中的函数可以执行许多功能,例如证券交易,财务数据记录,众筹等。Smart contracts are scripted programs that can be automatically executed on a computer system when certain conditions are met. Many functions, such as securities trading, financial data recording, crowdfunding, etc., can be performed through functions in smart contracts.
本申请实施例中将智能合约与区块链结合,将智能合约永久性存储在区块链的区块中,并且根据智能合约在区块链的区块中存储的位置可以生成一个合约地址,区块链节点通过发生包含合约代码或调用指令的交易以及合约地址可以部署或调用智能合约。In the embodiment of this application, the smart contract is combined with the blockchain, the smart contract is permanently stored in the block of the blockchain, and a contract address can be generated according to the location where the smart contract is stored in the block of the blockchain, Blockchain nodes can deploy or invoke smart contracts by generating transactions containing contract code or invocation instructions and the contract address.
本申请实施例中,智能合约可用于公布各运营商节点所提供的切片服务的信息,此时智能合约可称为目录合约;智能合约还可用于公布租户节点的接口信息、租户节点选择的切片服务的信息和运营商节点,以及存储租户节点针对切片服务所支付的服务费,此时智能合约可称为租户合约;智能合约还可用于存储运营商节点所提供的切片服务、切片服务的对外接口、切片服务的资源有效性测试方式、测试通过的判决参数以及切片服务是否测试通过的信息,此时智能合约可称为切片合约。In the embodiment of this application, the smart contract can be used to publish the information of the slice service provided by each operator node, in this case the smart contract can be called a directory contract; the smart contract can also be used to publish the interface information of the tenant node and the slice selected by the tenant node Service information and operator nodes, as well as service fees paid by tenant nodes for slicing services, smart contracts can be called tenant contracts; smart contracts can also be used to store slicing services provided by operator nodes, and external slicing services. The interface, the resource validity test method of the slicing service, the judgment parameters for passing the test, and the information on whether the slicing service has passed the test, at this time, the smart contract can be called a slicing contract.
请参见图4,图4是本申请实施例提供的一种切片管理架构的示意图。该切片管理架构包括网络层、网络切片管理、区块链、应用层。Referring to FIG. 4, FIG. 4 is a schematic diagram of a slice management architecture provided by an embodiment of the present application. The slice management architecture includes network layer, network slice management, blockchain, and application layer.
网络层,包括物理网络资源和虚拟化资源。运营商节点利用虚拟化技术将共享的物理网络资源进行虚拟化处理形成可用于生成切片的虚拟化资源。The network layer, including physical network resources and virtualized resources. Operator nodes use virtualization technology to virtualize shared physical network resources to form virtualized resources that can be used to generate slices.
网络切片管理,包括多个运营商节点。每个运营商节点都运行一个运营商切片管理系统,通过该运营商切片管理系统共同组成了一个网络切片管理平台以对网络切片进行管理。请参见图5,图5是本申请实施例提供的一种运营商切片管理系统的示意图,该切片管理系统可以包括以下功能实体:通信服务管理功能(Communication Service Management Function,CSMF)501、切片管理功能(Network Slice Management Function,NSMF)502、子切片管理功能(Network Slice Subnet Management Function,NSSMF)503、管理和编排(Management and Orchestration,MANO)504。其中,CSMF501用于将租户的需求信息转换为适用于切片的基于服务等级协议(Service Level Agreement,SLA)的信息;NSMF502用于基于SLA的信息选择合适的多个子切片;NSSMF503用于从物理网络资源中申请上述多个子切片的资源,并对各个子切片进行生命周期管理,例如设计和处理子切片等;通过MANO504部署各个子切片依赖的网络、存储资源等。上述多个子切片组成一个切片,协作为租户节点提供切片服务。Network slice management, including multiple operator nodes. Each operator node runs an operator slice management system, and a network slice management platform is formed through the operator slice management system to manage network slices. Please refer to FIG. 5. FIG. 5 is a schematic diagram of an operator slice management system provided by an embodiment of the present application. The slice management system may include the following functional entities: Communication Service Management Function (CSMF) 501, slice management Function (Network Slice Management Function, NSMF) 502 , Sub-slice Management Function (Network Slice Subnet Management Function, NSSMF) 503 , Management and Orchestration (MANO) 504 . Among them, CSMF501 is used to convert tenant demand information into service level agreement (SLA)-based information suitable for slicing; NSMF502 is used to select multiple sub-slices based on SLA information; NSSMF503 is used to select multiple sub-slices from physical network Apply for the resources of the above multiple sub-slices in the resource, and perform lifecycle management for each sub-slice, such as designing and processing sub-slices, etc.; deploy the network and storage resources that each sub-slice depends on through MANO504. The above multiple sub-slices form a slice, which cooperates to provide slice services for tenant nodes.
区块链,包括多个存储了交易信息的区块。通过区块链将网络切片管理中多个运营商节点联系起来,并由多个运营商节点共同维护该区块链。区块链可作为切片服务的信息管理和租用的平台,与网络切片管理结合,形成一个分布式的网络切片管理平台,有利于提高多个 运营商节点管理网络切片的效率。A blockchain consists of multiple blocks that store transaction information. Multiple operator nodes in network slice management are linked through blockchain, and the blockchain is jointly maintained by multiple operator nodes. The blockchain can be used as a platform for information management and leasing of slice services, combined with network slice management to form a distributed network slice management platform, which is conducive to improving the efficiency of network slice management by multiple operator nodes.
应用层,包括多个切片和切片服务。运营商节点根据不同租户节点的不同需求选择合适的切片,为租户节点提供相应的切片服务。Application layer, including multiple slices and slice services. Operator nodes select appropriate slices according to the different needs of different tenant nodes, and provide corresponding slice services for tenant nodes.
在运营商节点将网络切片租用给租户节点的过程中,运营商节点和租户节点之间还存在信任问题,如运营商节点先提供服务或租户节点先付款的矛盾,具体的,例如,租户节点向运营商节点提供了服务费后无法获得运营商节点所声称的服务能力的切片服务,而被运营商节点所欺骗,或者,运营商节点向租户节点提供了切片服务后无法获得租户节点支付的服务费,而被租户所欺骗。In the process that the operator node leases the network slice to the tenant node, there is still a trust problem between the operator node and the tenant node, such as the contradiction that the operator node provides services first or the tenant node pays first. Specifically, for example, the tenant node After providing the service fee to the operator node, the slicing service that cannot obtain the service capability claimed by the operator node is deceived by the operator node, or the operator node cannot obtain the slicing service paid by the tenant node after providing the slicing service to the tenant node. Service charges and cheated by tenants.
本申请提供了一种切片服务处理方法,该方法可根据测试结果以及切片合约中切片服务测试通过的判决参数,确定切片服务是否测试通过。在切片服务测试通过时,将切片服务的测试通过信息写入切片合约中,该测试通过信息用于激活切片合约调用租户合约向运营商节点发送支付凭证以及向租户节点发送通知消息。有利于租户节点在提供了服务费后能够获得运营商节点所声称的服务能力的切片服务,避免租户节点受到运营商节点的欺骗。该方法还有利于运营商节点在获得服务费后向租户节点提供切片服务,避免运营商节点受到租户节点的欺骗,进而有效解决运营商与租户之间的信任问题。The present application provides a slicing service processing method, which can determine whether the slicing service has passed the test according to the test result and the judgment parameters of the slicing service passing the test in the slicing contract. When the slice service test passes, the test pass information of the slice service is written into the slice contract, and the test pass information is used to activate the slice contract to call the tenant contract to send payment credentials to the operator node and send notification messages to the tenant node. It is beneficial to the slicing service that the tenant node can obtain the service capability claimed by the operator node after providing the service fee, and avoid the tenant node being deceived by the operator node. The method is also beneficial for the operator node to provide slicing services to the tenant node after obtaining the service fee, so as to avoid the operator node being deceived by the tenant node, thereby effectively solving the trust problem between the operator and the tenant.
以下结合附图,对本申请提供的切片处理方法进行阐述。The slice processing method provided by the present application will be described below with reference to the accompanying drawings.
请参见图6a,图6a是本申请实施例提供的一种切片服务处理方法的流程示意图,该切片服务处理方法从租户节点、运营商节点和验证节点交互的角度进行阐述,其中,该验证节点可执行上述图1、图2所述的主节点或公证第三方节点的相关操作。如图6a所示,该切片服务处理方法包括但不限于以下步骤:Please refer to FIG. 6a. FIG. 6a is a schematic flowchart of a slice service processing method provided by an embodiment of the present application. The slice service processing method is described from the perspective of interaction between a tenant node, an operator node, and a verification node, wherein the verification node The relevant operations of the master node or the notarization third-party node described in the above-mentioned FIG. 1 and FIG. 2 can be performed. As shown in Figure 6a, the slice service processing method includes but is not limited to the following steps:
S401、验证节点验证切片服务是否具有运营商节点所声称提供的切片服务的服务能力;若该切片服务不具有运营商节点所声称提供的切片服务的服务能力,则执行步骤S402;若该切片服务具有运营商节点所声称提供的切片服务的服务能力,则执行步骤S403至S407;S401. The verification node verifies whether the slice service has the service capability of the slice service claimed by the operator node; if the slice service does not have the service capability of the slice service claimed by the operator node, perform step S402; Having the service capability of the slice service claimed by the operator node, perform steps S403 to S407;
S402、验证节点将切片服务的测试不通过信息写入区块链中;S402, the verification node writes the test failure information of the slicing service into the blockchain;
S403、验证节点将切片服务的测试通过信息写入区块链中;S403, the verification node writes the test pass information of the slicing service into the blockchain;
其中,切片服务的测试通过信息用于向租户节点激活切片服务并将服务费支付给运营商节点,该服务费是租户节点针对运营商节点提供切片服务所支付的。一种实施方式中,步骤S401中验证节点验证切片服务是否具有运营商节点所声称提供的切片服务的服务能力,可以包括:验证节点根据测试结果以及切片合约中切片服务测试通过的判决参数,确定该切片服务是否测试通过;其中,测试结果用于指示运营商节点所提供的切片服务的服务能力。步骤S403中,验证节点将切片服务的测试通过信息写入区块链中,可以包括:验证节点将切片服务的测试通过信息写入切片合约中。The test pass information of the slicing service is used to activate the slicing service to the tenant node and pay the service fee to the operator node, where the service fee is paid by the tenant node for providing the slicing service to the operator node. In one embodiment, in step S401, the verification node verifies whether the slice service has the service capability of the slice service claimed by the operator node, which may include: the verification node determines according to the test result and the judgment parameter that the slice service test in the slice contract passes the test. Whether the slicing service passes the test; wherein, the test result is used to indicate the service capability of the slicing service provided by the operator node. In step S403, the verification node writes the test pass information of the slice service into the blockchain, which may include: the verification node writes the test pass information of the slice service into the slice contract.
S404、租户节点接收来自区块链的通知消息;S404, the tenant node receives the notification message from the blockchain;
其中,通知消息是切片服务的测试通过信息写入区块链时发送的,用于指示运营商节点已激活切片服务;该切片服务是租户节点所选择的运营商节点提供的。The notification message is sent when the test pass information of the slicing service is written into the blockchain, and is used to indicate that the operator node has activated the slicing service; the slicing service is provided by the operator node selected by the tenant node.
一种实施方式中,该通知消息可以具体是切片服务的测试通过信息写入切片合约时,该切片合约被激活而调用租户合约发送的。In one embodiment, the notification message may be specifically sent by invoking the tenant contract when the slicing contract is activated when the test pass information of the slicing service is written into the slicing contract.
S405、运营商节点接收来自区块链的服务费;S405, the operator node receives the service fee from the blockchain;
一种实施方式中,运营商节点接收来自区块链的服务费,可以包括:运营商节点接收来自租户合约的支付凭证;其中,支付凭证是切片合约中被写入测试通过信息时被激活而调用 租户合约发送的;该支付凭证用于指示租户节点针对该切片服务预存的服务费,支付给运营商节点的证据。In one embodiment, the operator node receiving the service fee from the blockchain may include: the operator node receiving the payment voucher from the tenant contract; wherein the payment voucher is activated when the test pass information is written in the slice contract. Sent by calling the tenant contract; the payment voucher is used to instruct the tenant node to pay the operator node the pre-stored service fee for the slice service.
如上述术语部分所述,租户合约是租户公布服务需求、进行付费、选择运营商以及提供租户端接口的作用。其中,租户端的接口用于定义租户合约与其他合约,如切片合约,之间的调用关系。租户公布服务需求以及针对该服务需求支付的费用可称为保证金。相应的,租户节点针对该切片服务所支付的服务费可以是从该保证金中扣除的部分,因此,租户合约中租户所支付的保证金可至少大于或等于该服务费。可选的,租户合约中可定义保证金里预定义需要的资源,愿意支付的金额,以及保证金的意义(要求保证金必须大于愿意支付的金额,否则该合约无效)。可选的,保证金是租户在创建该合约时从自己的账户余额转移到这个合约账户下的。As mentioned in the terminology section above, the tenant contract is the role of the tenant to announce service requirements, make payments, select operators, and provide tenant-side interfaces. Among them, the interface on the tenant side is used to define the calling relationship between the tenant contract and other contracts, such as slice contracts. A tenant's announcement of a service requirement and the fee paid for that service requirement may be referred to as a bond. Correspondingly, the service fee paid by the tenant node for the slice service may be a part deducted from the security deposit. Therefore, the security deposit paid by the tenant in the tenant contract may be at least greater than or equal to the service fee. Optionally, the tenant contract can define the pre-defined required resources in the security deposit, the amount willing to pay, and the meaning of the security deposit (the required security deposit must be greater than the amount willing to pay, otherwise the contract is invalid). Optionally, the security deposit is transferred from the tenant's own account balance to the contract account when the contract is created.
其中,保证金是以智能合约的形式托管到区块链中的。一种方式,该保证金可以是直接为了某一个切片服务而付费的;另一种方式,该保证金可以是租户节点请求任意切片服务而托管到区块链账户中的,在这种情况下,保证金可能存在没有用完,回退给租户或留在区块链账户余额中的情况。其中,区块链账户余额指的是当这个智能合约没有被相关支付交易调用的情况下,不从属于任何实际的用户,而属于逻辑意义上的,该智能合约账户下的数字财产,它可以通过智能合约允许的支付脚本完成支付给其他账户(包括实际意义上的用户账户),或在和约定义的截止时间前还没发生交易后返回指定账户。Among them, the security deposit is escrowed into the blockchain in the form of smart contracts. In one way, the deposit can be paid directly for a certain slice service; in another way, the deposit can be hosted in the blockchain account by the tenant node requesting any slice service, in this case, the deposit There may be cases where it is not used up, rolled back to the tenant, or left in the blockchain account balance. Among them, the balance of the blockchain account refers to the digital property under the smart contract account, which does not belong to any actual user when the smart contract is not called by the relevant payment transaction, but belongs to the logical sense. Complete the payment to other accounts (including user accounts in the actual sense) through the payment script allowed by the smart contract, or return to the specified account after the transaction has not occurred before the deadline defined by the contract.
这样,验证节点会对运营商节点是否提供了它所声称的切片服务的服务能力进行判断,如果判断成功,即该切片服务测试通过,则以协议约定的方式自动转账付费给运营商节点的区块链账户中,或者提供付费凭证给运营商节点。In this way, the verification node will judge whether the operator node provides the service capability of the slicing service it claims. If the judgment is successful, that is, the slicing service test passes, it will automatically transfer the payment to the operator node's area in the way agreed in the agreement. In the blockchain account, or provide payment vouchers to the operator node.
S406、运营商节点根据区块链中租户节点的接口信息,激活切片服务并向租户节点提供切片服务;S406, the operator node activates the slicing service and provides the slicing service to the tenant node according to the interface information of the tenant node in the blockchain;
一种实施方式中,运营商节点可以根据租户合约,向租户节点提供切片服务;其中,租户合约中包括租户节点的接口信息。In an implementation manner, the operator node may provide a slicing service to the tenant node according to the tenant contract, wherein the tenant contract includes interface information of the tenant node.
S407、租户节点响应通知消息,使用运营商节点提供的切片服务。S407. The tenant node responds to the notification message and uses the slice service provided by the operator node.
一种实施方式中,租户节点响应该通知消息,可以包括:租户节点根据切片合约中切片服务的对外使用接口,使用运营商节点所提供的切片服务。In one embodiment, the tenant node responds to the notification message, and may include: the tenant node uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract.
上述切片服务处理方法中,验证节点验证切片服务是否具有运营商节点所声称提供的所述切片服务的服务能力,在该切片服务测试通过时,通过区块链向运营商节点发送服务费,并向租户节点发送通知消息以通知租户节点该切片服务已激活。从而有利于运营商节点在激活该切片服务时,就能够获得服务费,避免被租户节点欺骗,另外,租户节点所获得的运营节点提供的该切片服务是测试通过的,即该切片服务具有该运营商节点所声称的服务能力,有利于避免租户被欺骗。In the above slicing service processing method, the verification node verifies whether the slicing service has the service capability of the slicing service claimed by the operator node, and when the slicing service test passes, the service fee is sent to the operator node through the blockchain, and the service fee is sent to the operator node through the blockchain. Send a notification message to the tenant node to notify the tenant node that the slice service has been activated. Therefore, it is beneficial for the operator node to obtain the service fee when activating the slice service, so as to avoid being deceived by the tenant node. In addition, the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has the The service capability claimed by the operator node is beneficial to avoid the tenant being deceived.
请参见图6b,图6b是本申请实施例提供的另一种切片服务处理方法的流程示意图。图6b所述切片服务处理方法从租户节点、运营商节点和验证节点交互的角度进行阐述,其中,该验证节点可执行上述图1、图2所述的主节点或公证第三方节点的相关操作。如图6b所示,该切片服务处理方法包括但不限于以下步骤:Referring to FIG. 6b, FIG. 6b is a schematic flowchart of another slicing service processing method provided by an embodiment of the present application. The slicing service processing method shown in FIG. 6b is explained from the perspective of the interaction between the tenant node, the operator node and the verification node, wherein the verification node can perform the relevant operations of the master node or the notarization third-party node described in the above-mentioned FIG. 1 and FIG. 2 . . As shown in Figure 6b, the slice service processing method includes but is not limited to the following steps:
S101、验证节点根据测试结果以及切片合约中切片服务测试通过的判决参数,确定切片服务是否测试通过;若该切片服务测试不通过,则执行步骤S102;若该切片服务测试通过,则执行步骤S103至S107;S101. The verification node determines whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service test passing in the slicing contract; if the slicing service test fails, execute step S102; if the slicing service test passes, execute step S103 to S107;
S102、验证节点将切片服务的测试不通过信息写入切片合约中;S102, the verification node writes the test failure information of the slicing service into the slicing contract;
S103、验证节点将切片服务的测试通过信息写入切片合约中;S103, the verification node writes the test pass information of the slicing service into the slicing contract;
其中,测试结果用于指示运营商节点所提供的切片服务的服务能力。验证节点根据测试结果以及切片合约中切片服务测试通过的判决参数确定切片服务是否测试通过,可以包括:验证节点根据测试结果,确定切片服务的服务能力参数;当该服务能力参数不小于该切片服务测试通过的判决参数时,确定该切片服务测试通过;当该服务能力参数小于该切片服务测试通过的判决参数时,确定该切片服务测试不通过。其中,测试通过信息可包括该切片服务的服务能力参数,相应的,测试不通过信息也可包括该切片服务的服务能力参数。The test result is used to indicate the service capability of the slice service provided by the operator node. The verification node determines whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service in the slicing contract, which may include: the verification node determines the service capability parameter of the slicing service according to the test result; When the judgment parameter passed by the test is determined, the slicing service test is determined to pass; when the service capability parameter is less than the judgment parameter of the slicing service test passed, it is determined that the slicing service test fails. Wherein, the test pass information may include the service capability parameter of the slice service, and correspondingly, the test fail information may also include the service capability parameter of the slice service.
例如,切片服务测试通过的判决参数包括网络带宽20M、速率2.5Mb/s;根据测试结果确定的该切片服务的服务能力参数包括切片服务的网络带宽20M、速率1.7Mb/s。可以看出,该切片服务的服务能力参数小于判决参数,说明该切片服务测试不通过。For example, the decision parameters for passing the slice service test include a network bandwidth of 20M and a rate of 2.5Mb/s; the service capability parameters of the slice service determined according to the test results include a network bandwidth of 20M and a rate of 1.7Mb/s for the slice service. It can be seen that the service capability parameter of the slice service is smaller than the decision parameter, indicating that the slice service test fails.
又例如,切片服务测试通过的判决参数包括网络带宽20M、速率2.5Mb/s;根据测试结果确定的该切片服务的服务能力参数包括切片服务的网络带宽20M、速率2.7Mb/s。可以看出,该切片服务的服务能力参数不小于判决参数,说明该切片服务测试通过。For another example, the decision parameters for passing the slice service test include a network bandwidth of 20M and a rate of 2.5Mb/s; the service capability parameters of the slice service determined according to the test results include a network bandwidth of 20M and a rate of 2.7Mb/s for the slice service. It can be seen that the service capability parameter of the slice service is not less than the decision parameter, indicating that the slice service has passed the test.
步骤S103中,验证节点将该切片服务的测试通过信息写入到切片合约中,该测试通过信息可用于激活切片合约调用租户合约向运营商节点发送支付凭证以及向租户节点发送通知消息。其中,支付凭证是切片合约调用租户合约,将服务费支付给运营商节点的证据,该服务费是租户节点针对运营商节点提供切片服务所支付的;通知消息用于通知租户节点,运营商节点已激活该切片服务。从而有利于运营商节点在激活该切片服务时,就能够获得服务费,避免被租户节点欺骗,另外,租户节点所获得的运营节点提供的该切片服务是测试通过的,即该切片服务具有该运营商节点所声称的服务能力,有利于避免被运营商节点欺骗。In step S103, the verification node writes the test pass information of the slicing service into the slicing contract, and the test passing information can be used to activate the slicing contract to call the tenant contract to send payment credentials to the operator node and to send a notification message to the tenant node. Among them, the payment voucher is the evidence that the slice contract calls the tenant contract and pays the service fee to the operator node. The service fee is paid by the tenant node for providing slice services to the operator node; the notification message is used to notify the tenant node, the operator node. The slice service has been activated. Therefore, it is beneficial for the operator node to obtain the service fee when activating the slice service, so as to avoid being deceived by the tenant node. In addition, the slice service provided by the operation node obtained by the tenant node has passed the test, that is, the slice service has the The service capability claimed by the operator node is beneficial to avoid being deceived by the operator node.
其中,测试通过信息用于激活切片合约调用租户合约发送上述支付凭证和通知消息的过程,可以为:切片合约基于与租户合约之间的调用接口,调用租户合约发送上述所述的支付凭证和通知消息。其中,该调用接口的触发条件可以为切片合约中写入了上述所述的测试通过信息,该测试通过信息可以包括上述所述的服务能力参数,和/或用于指示测试通过的标识等。Wherein, the test pass information is used to activate the slicing contract to call the tenant contract to send the above payment voucher and notification message, which may be: based on the calling interface between the slicing contract and the tenant contract, the slicing contract calls the tenant contract to send the above payment voucher and notification information. Wherein, the triggering condition of the calling interface may be that the above-mentioned test pass information is written in the slice contract, and the test pass information may include the above-mentioned service capability parameters, and/or an identifier used to indicate the test pass, etc.
一种实施方式中,该测试通过信息还用于激活切片合约调用目录合约将该切片服务更新到目录合约中的已租用切片服务中。该实施方式有利于公布该运营商节点提供的该切片服务已经提供给租户节点,进而有利于告知其他的租户节点该切片服务已被使用,避免其他的租户节点重复选择该切片服务,进而有利于提高其他租户节点选择合适的切片服务的效率。In one embodiment, the test pass information is also used to activate the slice contract to invoke the directory contract to update the slice service to the leased slice service in the directory contract. This embodiment is beneficial to announce that the slice service provided by the operator node has been provided to the tenant node, which in turn helps to inform other tenant nodes that the slice service has been used, and avoids other tenant nodes from repeatedly selecting the slice service, which is beneficial to Improve the efficiency of other tenant nodes in selecting appropriate slicing services.
S104、租户节点接收来自租户合约的通知消息;S104, the tenant node receives the notification message from the tenant contract;
S105、运营商节点接收来自租户合约的支付凭证;S105, the operator node receives the payment voucher from the tenant contract;
S106、运营商节点根据租户合约,向租户节点提供切片服务;S106, the operator node provides the slicing service to the tenant node according to the tenant contract;
其中,运营商节点根据租户合约,向租户节点提供切片服务的过程,可以包括:运营商节点从租户合约中获取租户节点的接口信息;利用该租户节点的接口信息,向租户节点提供该切片服务。The process for the operator node to provide the slicing service to the tenant node according to the tenant contract may include: the operator node obtains the interface information of the tenant node from the tenant contract; using the interface information of the tenant node to provide the tenant node with the slicing service .
S107、租户节点响应通知消息,根据切片合约中切片服务的对外使用接口,使用运营商节点所提供的切片服务;S107, the tenant node responds to the notification message, and uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract;
一种实施方式中,S104中租户节点接收来自租户合约的通知消息之前,该切片服务处理方法中还包括:租户节点根据目录合约选择提供切片服务的运营商节点,并确定租户合约。其中,目录合约中包括维护区块链的各运营商节点所提供的切片服务的信息;租户合约中包 括租户节点的接口信息,以及租户节点选择的切片服务的信息、运营商节点,以及租户节点针对切片服务所支付的服务费。从而,有利于在切片合约中写入测试通过信息时激活切片合约调用该租户合约将该服务费支付给对应的运营商节点,从而避免运营商节点受到租户节点的欺骗。In one embodiment, before the tenant node receives the notification message from the tenant contract in S104, the slicing service processing method further includes: the tenant node selects an operator node that provides slicing services according to the directory contract, and determines the tenant contract. Among them, the directory contract includes the information of the slice service provided by each operator node that maintains the blockchain; the tenant contract includes the interface information of the tenant node, as well as the information of the slice service selected by the tenant node, the operator node, and the tenant node. The service fee paid for the slice service. Therefore, it is beneficial to activate the slicing contract and call the tenant contract to pay the service fee to the corresponding operator node when the test pass information is written in the slicing contract, thereby preventing the operator node from being deceived by the tenant node.
该实施方式中,目录合约可以包括切片目录合约和资源目录合约;该切片目录合约中包括各运营商节点已经部署的各切片服务的信息,包括已租用切片服务和未租用切片服务,该未租用切片服务包括测试通过的切片服务和未测试的切片服务;该资源目录合约中包括运营商节点能够提供的服务能力,该服务能力对应的切片服务未被运营商节点部署。租户节点根据目录合约选择提供切片服务的运营商节点,可以包括:租户节点查询切片目录合约中是否存在能够提供所需切片服务的运营商节点;若切片目录合约中存在能够提供所需切片服务的运营商节点,则租户节点从能够提供所需切片服务的运营商节点中确定选择的运营商节点;若切片目录合约中不存在能够提供所需切片服务的运营商节点,则租户节点查询资源目录合约中是否存在能够提供该切片服务的服务能力的运营商节点;若存在,则租户节点从能够提供该切片服务的服务能力的运营商节点中确定选择的运营商节点。In this embodiment, the directory contract may include a slice directory contract and a resource directory contract; the slice directory contract includes information about each slice service that has been deployed by each operator node, including a leased slice service and an unrented slice service. The slice service includes the tested slice service and the untested slice service; the resource directory contract includes the service capability that the operator node can provide, and the slice service corresponding to the service capability is not deployed by the operator node. The tenant node selects the operator node that provides the slicing service according to the directory contract, which may include: the tenant node queries whether there is an operator node that can provide the required slicing service in the slicing directory contract; if there is an operator node that can provide the required slicing service in the slicing directory contract Operator node, the tenant node determines the selected operator node from the operator nodes that can provide the required slicing service; if there is no operator node that can provide the required slicing service in the slicing directory contract, the tenant node queries the resource directory Whether there is an operator node that can provide the service capability of the slice service in the contract; if so, the tenant node determines the selected operator node from the operator nodes that can provide the service capability of the slice service.
其中,租户节点可利用切片目录合约调用资源目录合约,执行所述的查询资源目录合约中运营商节点是否能够提供所述切片服务的服务能力的操作。The tenant node can use the slice directory contract to call the resource directory contract, and perform the operation of querying whether the operator node in the resource directory contract can provide the service capability of the slice service.
可选的,若切片目录合约中存在租户节点所需的切片服务,则租户节点选择的该切片服务是运营商节点已经部署的切片服务,包括测试通过的切片服务或未测试的切片服务。若切片目录合约中不存在所需的切片服务,则租户节点所选择的切片服务是运营商节点根据租户合约部署或新建的租户节点所请求的切片服务,另外,运营商节点在部署或新建该切片服务之后,还需在切片合约中定义该切片服务、该切片服务的对外接口、该切片服务的资源有效性测试方式以及测试通过的判决参数。其中,该租户合约中包括租户节点所需求的切片服务的信息;运营商节点部署或新建该切片服务的相关操作,可以利用图5所示的运营商切片管理系统执行。运营商节点在部署或新建该切片服务之后,还需在资源目录合约中取消公布该切片服务的服务能力,避免其余的租户节点在资源目录合约中重复查询该切片服务的服务能力。Optionally, if there is a slice service required by the tenant node in the slice directory contract, the slice service selected by the tenant node is the slice service that has been deployed by the operator node, including the slice service that has passed the test or the slice service that has not been tested. If the required slicing service does not exist in the slicing directory contract, the slicing service selected by the tenant node is the slicing service requested by the operator node deployed or newly created according to the tenant contract. After the slicing service, it is necessary to define the slicing service, the external interface of the slicing service, the resource validity test method of the slicing service, and the judgment parameters for passing the test in the slicing contract. The tenant contract includes the information of the slice service required by the tenant node; the relevant operations of the operator node deploying or creating the slice service can be performed by using the operator slice management system shown in FIG. 5 . After the operator node deploys or creates the slice service, it needs to unpublish the service capability of the slice service in the resource directory contract, so as to prevent other tenant nodes from repeatedly querying the service capability of the slice service in the resource directory contract.
一种实施方式中,若租户节点选择的该切片服务是运营商节点已经部署的以及测试通过的切片服务,则上述租户节点确定租户合约后,即可激活切片合约调用租户合约向运营商节点发送上述所述的支付凭证以及向租户节点发送上述所述的通知消息,进而执行下文所述S104至S107的相关操作。In one embodiment, if the slice service selected by the tenant node is a slice service that has been deployed by the operator node and has passed the test, after the tenant node determines the tenant contract, the slice contract can be activated to call the tenant contract to send the data to the operator node. The above-mentioned payment voucher and the above-mentioned notification message are sent to the tenant node, and then the related operations of S104 to S107 described below are performed.
另一种实施方式中,若租户节点选择的该切片服务是运营商节点已经部署的以及未测试过的切片服务,则该切片服务还需进行测试,以执行上述步骤S101至S107的相关操作。In another embodiment, if the slicing service selected by the tenant node is a slicing service that has been deployed by the operator node and has not been tested, the slicing service needs to be tested to perform the relevant operations of the above steps S101 to S107.
又一种实施方式中,若租户节点选择的该切片服务是运营商节点新建的或部署的切片服务,则该切片服务也需进行测试,以执行上述步骤S101至S107的相关操作。In another embodiment, if the slicing service selected by the tenant node is a slicing service newly created or deployed by the operator node, the slicing service also needs to be tested to perform the relevant operations of the above steps S101 to S107.
也就是说,图6b所述的切片服务处理方法主要是针对未测试过的(或称为未经过有效测试的已有切片)或新建的切片服务(或称为新切片)的处理。That is to say, the slice service processing method described in FIG. 6b is mainly for the processing of untested (or referred to as existing slices that have not been effectively tested) or newly created slice services (or referred to as new slices).
请参见图6c,图6c是本申请实施例提供的另一种切片服务处理方法的流程示意图,图6c与图6b所示的切片服务处理方法的不同之处在于,图6c中还展示了区块链上的智能合约,包括切片合约、目录合约、租户合约,从而可以更清楚地展示验证节点、运营商节点、租户节点与区块链上的智能合约之间的联系。如图6c所示,验证节点可以将切片服务测试是否通过的信息写入切片合约;其中,测试通过信息可以用于激活切片合约调用租户合约向运营商 节点提供支付凭证,并向租户节点发送通知消息以通知租户节点该切片服务已激活;该测试通过信息还可以用于激活切片合约调用并更新目录合约。Please refer to FIG. 6c. FIG. 6c is a schematic flowchart of another slice service processing method provided by an embodiment of the present application. The difference between FIG. 6c and the slice service processing method shown in FIG. Smart contracts on the blockchain, including slice contracts, directory contracts, and tenant contracts, can more clearly demonstrate the connections between validator nodes, operator nodes, tenant nodes, and smart contracts on the blockchain. As shown in Figure 6c, the verification node can write the information of whether the slicing service test passes into the slicing contract; the test pass information can be used to activate the slicing contract to call the tenant contract to provide payment credentials to the operator node, and send a notification to the tenant node message to notify tenant nodes that the slice service has been activated; the test pass information can also be used to activate the slice contract call and update the directory contract.
可见,本申请实施例所述的切片服务处理方法有利于各运营商节点利用目录合约将自己的切片服务记录在区块链上供租户查询,相应的,租户节点通过目录合约可选择到提供对应切片服务的运营商节点,或者向对应的运营商节点申请切片服务,以使运营商节点通过切片管理系统准备切片服务并在切片合约中定义该切片服务的相关信息,与租户节点需要分别向不同的运营商节点分别申请查询切片服务的方式相比,本申请实施例能够提高切片服务的租用效率。另外,本申请实施例在切片服务测试通过时再向运营商节点发送支付凭证,将该切片服务的服务费支付给运营商节点,从而有利于保证租户获得运营商节点所声称的服务能力的切片服务,避免租户节点受到欺骗,也有利于运营商节点在获得服务费后向租户节点提供服务,从而避免运营商节点受到欺骗,解决了运营商节点与租户节点之间的信任问题。It can be seen that the slice service processing method described in the embodiment of the present application is beneficial for each operator node to use the directory contract to record its own slice service on the blockchain for tenants to query. Correspondingly, the tenant node can choose to provide corresponding services through the directory contract. The operator node of the slicing service, or apply for the slicing service from the corresponding operator node, so that the operator node can prepare the slicing service through the slicing management system and define the relevant information of the slicing service in the slicing contract. Compared with the manner in which the operator nodes of the respective operators apply for querying the slice service respectively, the embodiment of the present application can improve the leasing efficiency of the slice service. In addition, the embodiment of the present application sends a payment voucher to the operator node when the slicing service test passes, and pays the service fee of the slicing service to the operator node, thereby helping to ensure that the tenant obtains the slice of the service capability claimed by the operator node It also helps the operator node to provide services to the tenant node after obtaining the service fee, so as to avoid the operator node from being deceived and solve the trust problem between the operator node and the tenant node.
请参见图7a,图7a是本申请实施例提供的又一种切片服务处理方法的流程示意图,图7a所示的切片服务处理方法与图6b所示的切片服务处理方法的不同之处在于,图7a所示的切片服务处理方法中在图6b所述的步骤S101至S107之前,还结合图1所示的切片服务处理系统阐述了切片服务测试的相关操作。即图7a中的主节点可执行上述图6b所述的该切片服务处理方法中验证节点的相关操作。具体的,图7a所示的切片服务处理方法包括但不限于以下步骤:Please refer to FIG. 7a. FIG. 7a is a schematic flowchart of another slicing service processing method provided by an embodiment of the present application. The slicing service processing method shown in FIG. 7a is different from the slicing service processing method shown in FIG. 6b in that: In the slice service processing method shown in FIG. 7a, before steps S101 to S107 described in FIG. 6b, operations related to slice service testing are also described with reference to the slice service processing system shown in FIG. That is, the master node in FIG. 7a can perform the relevant operations of the verification node in the slice service processing method described in FIG. 6b. Specifically, the slice service processing method shown in FIG. 7a includes but is not limited to the following steps:
S201、主节点利用随机选择算法,从参与区块链共识的节点中选择测试节点;S201, the master node uses a random selection algorithm to select a test node from the nodes participating in the blockchain consensus;
其中,随机选择算法是一种随机选择测试节点的方法。该随机选择算法满足的安全性需求可以包括:通过该随机选择算法可以保证测试节点选择过程的公开透明,所有参与区块链共识的节点都可以获取测试节点选择过程的相关信息;该随机选择算法还可以保证测试节点选择结果的随机性,而不是由参与区块共识的恶意节点主观选择的;进而可以保证测试节点选择过程的公平性和有效性。Among them, the random selection algorithm is a method of randomly selecting test nodes. The security requirements met by the random selection algorithm may include: the random selection algorithm can ensure the openness and transparency of the test node selection process, and all nodes participating in the blockchain consensus can obtain the relevant information of the test node selection process; the random selection algorithm It can also ensure the randomness of test node selection results, rather than subjective selection by malicious nodes participating in the block consensus; thus, it can ensure the fairness and effectiveness of the test node selection process.
一种实施方式中,主节点利用随机选择算法,从参与区块链共识的节点中选择测试节点可以包括:主节点验证多个节点中各自公布的随机数与在先各自公布的哈希值是否匹配,其中,哈希值是节点利用自身的随机数进行哈希运算获得的;主节点利用映射运算从匹配的多个节点中确定测试节点。可选的,该映射运算可以包括取模运算;主节点通过取模运算得到取模运算值,根据该取模运算值从匹配的多个节点中确定测试节点,其中,取模运算值是联合哈希值对N进行取模运算获得的,联合哈希值是利用匹配的多个节点的随机数进行联合哈希运算获得的,N是多个节点的数目。上述多个节点各自公布的随机数、哈希值,以及联合哈希值、N均记录于切片合约中。In one embodiment, the master node uses a random selection algorithm to select a test node from the nodes participating in the blockchain consensus, which may include: the master node verifies whether the random number announced by the multiple nodes and the hash value respectively announced earlier. Matching, wherein, the hash value is obtained by the node using its own random number to perform hash operation; the master node uses the mapping operation to determine the test node from the multiple matching nodes. Optionally, the mapping operation may include a modulo operation; the master node obtains a modulo operation value through the modulo operation, and determines a test node from a plurality of matched nodes according to the modulo operation value, wherein the modulo operation value is a joint. The hash value is obtained by performing a modulo operation on N, and the joint hash value is obtained by performing a joint hash operation on random numbers of matching multiple nodes, where N is the number of multiple nodes. The random numbers, hash values, and joint hash values, N announced by the above-mentioned multiple nodes are all recorded in the slicing contract.
例如,请参见图8,图8是本申请实施例提供的一种测试节点随机选择的流程示意图。如图8所示,所有参与区块链共识的节点包括区块链节点0、区块链节点1、…、区块链节点N-1,共N个区块链节点。上述所有区块链节点可以轮流成为主节点,下面以区块链节点i作为主节点为例进行阐述。For example, please refer to FIG. 8 , which is a schematic flowchart of a random selection of a test node provided by an embodiment of the present application. As shown in Figure 8, all the nodes participating in the blockchain consensus include blockchain node 0,
主节点利用随机选择算法选择测试节点的过程可以包括:每个区块链节点通过哈希函数对自身的随机数进行哈希运算,例如,区块链节点0利用自身的随机数x
0进行哈希运算,得到哈希值y
0=Hash(x
0),同理,可以得到区块链节点1的哈希值为y
1、…、区块链节点N-1的哈希值为y
N-1;区块链节点0至区块链节点N-1分别公布自身的哈希值y
0、y
1、…、y
N-1,在区块链模式下,公布的哈希值以交易发布在区块链上保证不可篡改且可追溯;在所有区块 链节点都公布了自身的哈希值之后,区块链节点0至区块链节点N-1再分别公布自身的随机数x
0、x
1、…、x
N-1。
The process that the master node uses the random selection algorithm to select the test node may include: each blockchain node performs a hash operation on its own random number through a hash function. For example, the blockchain node 0 uses its own random number x 0 to perform hash operation. Hash value y 0 =Hash(x 0 ) is obtained by performing the hash operation. Similarly, the hash value of
主节点收集所有区块链节点公布的哈希值和随机数,并验证每个节点各自公布的随机数与哈希值是否匹配;并计算所有匹配的节点的随机数的联合哈希值为Hash(x 0||x 1||...||x N-1),将该联合哈希值对N进行取模运算,即Hash(x 0||x 1||...||x N-1)modN,得到取模运算值。主节点在所有参与区块链共识的节点中确定标号与取模运算值相同的节点为测试节点,其余节点均为监听节点。 The master node collects the hash value and random number announced by all blockchain nodes, and verifies whether the random number announced by each node matches the hash value; and calculates the joint hash value of the random numbers of all matching nodes as Hash (x 0 ||x 1 ||...||x N-1 ), the joint hash value is modulo N, that is, Hash(x 0 ||x 1 ||...||x N-1 )modN, get the modulo operation value. Among all the nodes participating in the blockchain consensus, the master node determines that the node with the same label and the value of the modulo operation is the test node, and the rest of the nodes are listening nodes.
例如,N为4,参与区块链共识的节点包括区块链节点0、区块链节点1、区块链节点2、区块链节点3,其中区块链节点3为主节点。主节点验证每个节点各自公布的随机数与哈希值是否匹配;验证结果发现区块链节点2公布的随机数和哈希值不匹配,则将区块链节点0、区块链节点1、区块链节点3的联合哈希值对4进行取模运算,得到取模运算值,该取模运算值为0、1、2、3中的一个数值。以该取模运算值为1为例,主节点可以确定区块链节点1为测试节点,区块链节点0、区块链节点1为监听节点。For example, N is 4, and the nodes participating in the blockchain consensus include blockchain node 0,
上述实施方式中,利用哈希函数从密码学的角度保证了测试节点选择过程的安全性。并且,通过多个参与区块链共识的节点先公布哈希值,后公布随机数的方式,保证所有节点在公布哈希值后无法随意更改自身的随机数,即使恶意节点是最后一个公布随机数的节点,也无法通过修改自身的随机数来改变测试节点选择结果,从而避免恶意节点通过离线计算或多次尝试来确定自身的随机数,有利于降低恶意节点在测试节点选择过程中起决定性作用的可能性。上述实施方式中,多个节点各自公布的随机数、哈希值,以及联合哈希值、N均被记录在区块链中,还有利于保证测试节点选择过程的公开透明。In the above embodiment, the security of the test node selection process is ensured from the perspective of cryptography by using the hash function. In addition, multiple nodes participating in the blockchain consensus first publish the hash value and then publish the random number to ensure that all nodes cannot change their random numbers at will after publishing the hash value, even if the malicious node is the last to publish the random number. It is impossible to change the test node selection result by modifying its own random number, so as to prevent malicious nodes from determining their own random numbers through offline calculation or multiple attempts, which is beneficial to reduce the malicious node's decisive role in the test node selection process. possibility of action. In the above embodiment, the random numbers, hash values, and joint hash values and N published by multiple nodes are all recorded in the blockchain, which is also conducive to ensuring the openness and transparency of the test node selection process.
S202、主节点根据切片合约中运营商节点针对切片服务定义的对外测试接口、资源有效性测试方式,通知测试节点向切片合约中写入测试请求信息;S202, the master node notifies the test node to write the test request information into the slicing contract according to the external testing interface and the resource validity testing method defined by the operator node in the slicing contract for the slicing service;
主节点获取切片合约中运营商节点针对切片服务定义的对外测试接口、资源有效性测试方式,并给测试节点发送一个通知消息;该通知消息可以包括上述运营商节点针对切片服务定义的对外测试接口、资源有效性测试方式,该通知消息可以作为测试节点确定测试请求信息的依据;该通知消息还用于通知测试节点向切片合约中写入测试请求信息。The master node obtains the external test interface and resource validity test method defined by the operator node for the slice service in the slice contract, and sends a notification message to the test node; the notification message may include the above-mentioned external test interface defined by the operator node for the slice service , Resource validity test method, the notification message can be used as the basis for the test node to determine the test request information; the notification message is also used to notify the test node to write the test request information into the slice contract.
S203、测试节点向切片合约中写入测试请求信息;S203, the test node writes the test request information into the slice contract;
测试节点接收来自主节点的通知消息后,根据通知消息中的对外测试接口、资源有效性测试方式,确定测试请求信息,并将该测试请求信息写入切片合约。After receiving the notification message from the master node, the test node determines the test request information according to the external test interface and resource validity test method in the notification message, and writes the test request information into the slice contract.
其中,该测试请求信息中包括测试节点的地址,该测试请求信息用于指示运营商节点根据该测试节点的地址向测试节点提供切片服务。可选的,测试请求信息中还可以包括监听节点的地址,运营商节点根据该监听节点的地址修改接口后,监听节点可以监听运营商节点向测试节点所提供的切片服务的测试结果;可选的,测试请求信息中还可以包括测试节点和监听节点的身份信息,运营商节点可以根据该身份信息确认测试和监听切片服务的节点的身份。Wherein, the test request information includes the address of the test node, and the test request information is used to instruct the operator node to provide the slicing service to the test node according to the address of the test node. Optionally, the test request information may also include the address of the monitoring node. After the operator node modifies the interface according to the address of the monitoring node, the monitoring node can monitor the test result of the slice service provided by the operator node to the test node; optional Yes, the test request information may also include the identity information of the test node and the monitoring node, and the operator node can confirm the identity of the node testing and monitoring the slice service according to the identity information.
S204、运营商节点根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为测试节点的地址;S204, the operator node updates the external test interface of the slice service to the address of the test node according to the test request information in the slice contract;
运营商节点获取测试请求信息中测试节点的地址,根据该测试节点的地址将切片服务的对外测试接口重定向给测试节点,包括将切片服务的对外测试接口更新为测试节点的地址。The operator node obtains the address of the test node in the test request information, and redirects the external test interface of the slice service to the test node according to the address of the test node, including updating the external test interface of the slice service to the address of the test node.
可选的,运营商节点获取测试请求信息中监听节点的地址,根据该监听节点的地址将对外监听接口重定向给监听节点,包括将对外监听接口更新为监听节点的地址;该对外监听接口可用于监听节点监听运营商节点向测试节点所提供的切片服务的测试结果。Optionally, the operator node obtains the address of the monitoring node in the test request information, and redirects the external monitoring interface to the monitoring node according to the address of the monitoring node, including updating the external monitoring interface to the address of the monitoring node; the external monitoring interface is available The monitor node monitors the test result of the slice service provided by the operator node to the test node.
S205、运营商节点利用对外测试接口向测试节点提供切片服务;S205, the operator node provides the slicing service to the test node by using the external test interface;
其中,运营商节点向测试节点提供的切片服务与该切片服务测试通过后运营商节点向租户节点提供的切片服务可不完全相同。另外,切片服务的测试需要在具体的设备上,因此,运营商节点向租户节点提供该对外测试接口的同时,还需提供虚拟化测试设备,该虚拟化测试设备所提供的切片服务可称为切片测试服务。例如,如图9所示,图9是本申请实施例提供的一种切片服务测试的流程示意图。运营商节点通过对外测试接口向测试节点提供虚拟化测设备部署的切片测试服务;测试节点利用该对外测试接口接受该切片测试服务;若测试通过,运营商节点可切换为利用对外使用接口向租户节点提供切片服务,该切片服务是运营商设备实际部署的切片服务,与切片测试服务类似。The slicing service provided by the operator node to the test node may not be exactly the same as the slicing service provided by the operator node to the tenant node after passing the slicing service test. In addition, the test of the slice service needs to be performed on a specific device. Therefore, when the operator node provides the external test interface to the tenant node, it also needs to provide a virtualized test device. The slice service provided by the virtualized test device can be called as Slice testing service. For example, as shown in FIG. 9 , FIG. 9 is a schematic flowchart of a slice service test provided by an embodiment of the present application. The operator node provides the test node with the slice test service deployed by the virtualized test equipment through the external test interface; the test node uses the external test interface to accept the slice test service; if the test passes, the operator node can switch to use the external use interface to the tenant. The node provides a slice service, which is actually deployed by the operator's equipment, similar to the slice test service.
其中,运营商节点可以基于安全保证规范(Security Assurance Specification,SCAS)测试方法部署该虚拟化测试设备。其中,SCAS测试方法是一种测试网络产品是否可以在虚拟环境中提供预期功能的测试方法,该方法要求在测试之前部署该网络产品相关的接口。上述实施方式中,运营商节点已部署虚拟化测试设备和切片服务相关的接口,该切片服务相关的接口包括对上述外测试接口和对外监听接口;测试节点可以通过该虚拟化测试设备,利用该SCAS测试方法执行步骤S206所示的测试运营商节点提供的切片服务是否有所声称的服务能力;监听节点可以通过该虚拟化测试设备执行步骤S207所示的监听运营商节点向测试节点所提供的切片服务的测试结果。The operator node may deploy the virtualized test equipment based on a security assurance specification (Security Assurance Specification, SCAS) test method. Among them, the SCAS test method is a test method for testing whether a network product can provide expected functions in a virtual environment, and the method requires that interfaces related to the network product be deployed before testing. In the above embodiment, the operator node has deployed a virtualized test device and an interface related to the slicing service, and the interface related to the slicing service includes the above-mentioned external test interface and external monitoring interface; The SCAS test method performs the test shown in step S206 to test whether the slice service provided by the operator node has the claimed service capability; the monitoring node can perform the monitoring shown in step S207 through the virtualized test device. The operator node provides the test node to the test node. Test results of the slice service.
S206、测试节点对运营商节点提供的切片服务进行测试;S206, the test node tests the slice service provided by the operator node;
S207、监听节点监听运营商节点向测试节点所提供的切片服务的测试结果;S207, the monitoring node monitors the test result of the slice service provided by the operator node to the test node;
S208、监听节点将测试结果发送给主节点;S208, the monitoring node sends the test result to the master node;
S209、主节点接收来自监听节点的测试结果;S209, the master node receives the test result from the monitoring node;
一种实施方式中,本实施例中可以存在多个分别执行步骤S207、S208相关操作的监听节点。多个监听节点分别监听运营商节点向测试节点所提供的切片服务的测试结果,并将各自监听的测试结果汇总到主节点;主节点收集来自多个监听节点的测试结果,并将该测试结果写入切片合约中。In an implementation manner, in this embodiment, there may be a plurality of monitoring nodes that perform operations related to steps S207 and S208 respectively. Multiple monitoring nodes respectively monitor the test results of the slice service provided by the operator node to the test nodes, and summarize the respective monitored test results to the master node; the master node collects the test results from multiple monitoring nodes, and reports the test results. Write into the slice contract.
S210、主节点根据测试结果以及切片合约中切片服务测试通过的判决参数,确定切片服务是否测试通过;若该切片服务测试不通过,则执行步骤S211;若该切片服务测试通过,则执行步骤S212至S216;S210, the master node determines whether the slicing service has passed the test according to the test result and the slicing contract's judgment parameters for passing the slicing service test; if the slicing service test fails, execute step S211; if the slicing service test passes, execute step S212 to S216;
S211、主节点将切片服务的测试不通过信息写入切片合约中;S211. The master node writes the test failure information of the slicing service into the slicing contract;
S212、主节点将切片服务的测试通过信息写入切片合约中;S212, the master node writes the test pass information of the slicing service into the slicing contract;
S213、租户节点接收来自租户合约的通知消息;S213, the tenant node receives the notification message from the tenant contract;
S214、运营商节点接收来自租户合约的支付凭证;S214, the operator node receives the payment voucher from the tenant contract;
S215、运营商节点根据租户合约,向租户节点提供切片服务;S215, the operator node provides the slicing service to the tenant node according to the tenant contract;
S216、租户节点响应通知消息,根据切片合约中切片服务的对外使用接口,使用运营商节点所提供的切片服务;S216, the tenant node responds to the notification message, and uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract;
其中,步骤S210至步骤S216的相关阐述,可参见上述图6b所示的切片服务处理方法中的相关内容,此处不再详述。步骤S210至步骤S212的相关阐述中,由主节点执行上述图6b中验证节点的相关操作。For the relevant description of steps S210 to S216, reference may be made to the relevant content in the slice service processing method shown in FIG. 6b, which will not be described in detail here. In the related elaboration of steps S210 to S212, the master node performs the above-mentioned related operations of the verification node in FIG. 6b.
请参见图7b,图7b是本申请实施例提供的又一种切片服务处理方法的流程示意图,图7b与图7a所示的切片服务处理方法的不同之处在于,图7b中还展示了区块链上的智能合约,包括切片合约、目录合约、租户合约,从而可以更清楚地展示主节点、测试节点、运营商节 点、租户节点与区块链上的智能合约之间的关系。如图7b所示,测试节点将测试请求信息写入切片合约;运营商根据切片合约中的测试请求信息可以为测试节点提供切片服务;主节点将切片服务测试是否通过的信息写入切片合约;其中,测试通过信息可以用于激活切片合约调用租户合约向运营商节点提供支付凭证,并向租户节点发送通知消息以通知租户节点该切片服务已激活;该测试通过信息还可以用于激活切片合约调用并更新目录合约。Please refer to FIG. 7b. FIG. 7b is a schematic flowchart of another slice service processing method provided by an embodiment of the present application. The difference between FIG. 7b and the slice service processing method shown in FIG. 7a is that FIG. 7b also shows the Smart contracts on the blockchain, including slice contracts, directory contracts, and tenant contracts, can more clearly show the relationship between master nodes, test nodes, operator nodes, tenant nodes, and smart contracts on the blockchain. As shown in Figure 7b, the test node writes the test request information into the slicing contract; the operator can provide the slicing service for the testing node according to the test request information in the slicing contract; the master node writes the information on whether the slicing service test passes into the slicing contract; The test pass information can be used to activate the slice contract and call the tenant contract to provide payment credentials to the operator node, and send a notification message to the tenant node to notify the tenant node that the slice service has been activated; the test pass information can also be used to activate the slice contract. Call and update the directory contract.
可见,该切片服务处理方法通过测试节点和监听节点测试运营节点提供的切片服务是否有其所声称的服务能力。该方法有利于保证租户节点使用运营商节点所声称的服务能力的切片服务,避免租户节点受到欺骗。也有利于运营商节点在获得服务费后向租户节点提供服务,从而避免运营商节点受到欺骗。It can be seen that the slice service processing method tests whether the slice service provided by the operation node has the claimed service capability through the test node and the monitor node. This method is beneficial to ensure that the tenant node uses the slice service of the service capability claimed by the operator node, and avoids the tenant node being deceived. It is also beneficial for the operator node to provide services to the tenant node after obtaining the service fee, thereby preventing the operator node from being deceived.
请参见图10a,图10a是本申请实施例提供的再一种切片服务处理方法的流程示意图,图10a所示的切片服务处理方法与图6b所示的切片服务处理方法的不同之处在于,图10a所示的切片服务处理方法在图6b所述的切片服务处理的相关操作之前,还结合图2所示的切片服务处理系统阐述了切片服务测试的相关操作。即图10a中公证第三方节点可执行上述图6b所述的该切片服务处理方法中验证节点的相关操作。具体的,图10a所示的切片服务处理方法可包括但不限于以下步骤:Please refer to FIG. 10a. FIG. 10a is a schematic flowchart of still another slicing service processing method provided by an embodiment of the present application. The slicing service processing method shown in FIG. 10a is different from the slicing service processing method shown in FIG. 6b in that: Before the slice service processing method shown in FIG. 10a, before the relevant operations of slice service processing shown in FIG. 6b, the relevant operations of slice service testing are also described with reference to the slice service processing system shown in FIG. 2. That is, the notarization third-party node in FIG. 10a can perform the relevant operations of the verification node in the slice service processing method described in FIG. 6b. Specifically, the slice service processing method shown in FIG. 10a may include, but is not limited to, the following steps:
S301、公证第三方节点根据切片合约中运营商节点针对切片服务定义的对外测试接口、资源有效性测试方式,确定测试请求信息;S301, the notarization third-party node determines the test request information according to the external test interface and the resource validity test method defined by the operator node in the slice contract for the slice service;
S302、公证第三方节点通过BCHF向切片合约中写入测试请求信息;其中,测试请求信息包括公证第三方节点的地址。S302, the notarization third-party node writes test request information into the slice contract through BCHF; wherein the test request information includes the address of the notarization third-party node.
S303、运营商节点根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为公证第三方节点的地址;S303, the operator node updates the external test interface of the slicing service to the address of the notarized third-party node according to the test request information in the slicing contract;
S304、运营商节点利用对外测试接口向公证第三方节点提供切片服务;S304, the operator node provides the slicing service to the notary third-party node by using the external test interface;
S305、公证第三方节点使用来自运营商节点提供的切片服务,获得测试结果;其中,测试结果用于指示运营商节点向公证第三方提供的切片服务的服务能力。S305 , the notary third-party node obtains a test result by using the slice service provided by the operator node; wherein, the test result is used to indicate the service capability of the slice service provided by the operator node to the notary third party.
S306、公证第三方节点根据测试结果以及切片合约中切片服务测试通过的判决参数,确定切片服务是否测试通过;若该切片服务测试不通过,则执行步骤S307;若该切片服务测试通过,则执行步骤S308至S312;S306, the notarization third-party node determines whether the slicing service has passed the test according to the test result and the judgment parameter of the slicing service test passing in the slicing contract; if the slicing service test fails, execute step S307; if the slicing service test passes, execute Steps S308 to S312;
S307、公证第三方节点将切片服务的测试不通过信息写入切片合约中;S307, the notary third-party node writes the test failure information of the slicing service into the slicing contract;
S308、公证第三方节点将切片服务的测试通过信息写入切片合约中;S308, the notary third-party node writes the test pass information of the slicing service into the slicing contract;
S309、租户节点接收来自租户合约的通知消息;S309, the tenant node receives the notification message from the tenant contract;
S310、运营商节点接收来自租户合约的支付凭证;S310, the operator node receives the payment voucher from the tenant contract;
S311、运营商节点根据租户合约,向租户节点提供切片服务;S311, the operator node provides the slicing service to the tenant node according to the tenant contract;
S312、租户节点响应通知消息,根据切片合约中切片服务的对外使用接口,使用运营商节点所提供的切片服务;S312, the tenant node responds to the notification message, and uses the slice service provided by the operator node according to the external use interface of the slice service in the slice contract;
其中,步骤S306至步骤S312的相关阐述,可参见上述图6b所示的切片服务处理方法中的相关内容,此处不再详述。步骤S306至步骤S308的相关阐述中,由公证第三方节点执行上述图6b中验证节点的相关操作。For the related description of steps S306 to S312, reference may be made to the related content in the slice service processing method shown in FIG. 6b, which will not be described in detail here. In the related elaboration of steps S306 to S308, the notarization third-party node performs the above-mentioned related operations of the verification node in FIG. 6b.
请参见图10b,图10b是本申请实施例提供的再一种切片服务处理方法的流程示意图,图10b与图10a所示的切片服务处理方法的不同之处在于,图10b中还展示了区块链上的智能合约,包括切片合约、目录合约、租户合约,从而可以更清楚地展示公证第三方节点、运 营商节点、租户节点与区块链上的智能合约之间的关系。如图10b所示,公证第三方节点将测试请求信息写入切片合约;运营商根据切片合约中的测试请求信息可以为公证第三方节点提供切片服务;公证第三方节点将切片服务测试是否通过信息写入切片合约;其中,测试通过信息可以用于激活切片合约调用租户合约向运营商节点提供支付凭证,并向租户节点发送通知消息以通知租户节点该切片服务已激活;该测试通过信息还可以用于激活切片合约调用并更新目录合约。Please refer to FIG. 10b. FIG. 10b is a schematic flowchart of another slice service processing method provided by an embodiment of the present application. The difference between FIG. 10b and the slice service processing method shown in FIG. 10a is that FIG. 10b also shows the Smart contracts on the blockchain, including slice contracts, directory contracts, and tenant contracts, can more clearly show the relationship between notarized third-party nodes, operator nodes, tenant nodes, and smart contracts on the blockchain. As shown in Figure 10b, the notary third-party node writes the test request information into the slicing contract; the operator can provide slicing services for the notary third-party node according to the test request information in the slicing contract; the notary third-party node will pass the slicing service test information. Write the slice contract; the test pass information can be used to activate the slice contract to call the tenant contract to provide payment credentials to the operator node, and send a notification message to the tenant node to notify the tenant node that the slice service has been activated; the test pass information can also be Used to activate slice contract calls and update directory contracts.
上述图10a和图10b所述的切片服务处理方法中,公证第三方节点对运营商节点提供的切片服务进行测试并得到测试结果,可以通过事后审计保证测试过程的安全性和有效性,例如,若租户节点使用的切片服务不具有运营商节点所声称的服务能力,则公证第三方节点需要为此负责。通过该方法还有利于简化测试流程,提高测试效率。In the slicing service processing method described in the above Figures 10a and 10b, the notary third-party node tests the slicing service provided by the operator node and obtains the test result, which can ensure the security and effectiveness of the test process through post-event audit, for example, If the slicing service used by the tenant node does not have the service capabilities claimed by the operator node, the notary third-party node is responsible for this. The method is also beneficial to simplify the test process and improve the test efficiency.
请参见图11,图11是本申请实施例提供的一种切片服务处理装置的结构示意图。如图11所示,该切片服务处理装置1100可以包括:确定单元1101、写入单元1102、接收单元1103、选择单元1104、通知单元1105。Referring to FIG. 11 , FIG. 11 is a schematic structural diagram of a slice service processing apparatus provided by an embodiment of the present application. As shown in FIG. 11 , the slice service processing apparatus 1100 may include: a determining
确定单元1101,用于验证切片服务是否具有运营商节点所声称提供的切片服务的服务能力;A
一种实施方式中,确定单元1101还用于根据测试结果以及切片合约中切片服务测试通过的判决参数,确定切片服务是否测试通过,该测试结果用于指示运营商节点所提供的切片服务的服务能力。In one embodiment, the determining
写入单元1102,用于在切片服务具有运营商节点所声称提供的切片服务的服务能力时,将切片服务的测试通过信息写入区块链中;该切片服务的测试通过信息用于向租户节点激活切片服务并将服务费支付给运营商节点,该服务费是租户节点针对运营商节点提供切片服务所支付的。The
一种实施方式中,写入单元1102还用于将切片服务的测试通过信息写入切片合约中;该测试通过信息具体用于激活切片合约调用租户合约向运营商节点发送支付凭证以及向租户节点发送通知消息;该支付凭证是切片合约调用租户合约,将服务费支付给运营商节点的证据;该通知消息用于通知租户节点,运营商节点已激活切片服务。In one embodiment, the
一种实施方式中,写入单元1102还用于向切片合约中写入测试请求信息,测试请求信息中包括公证第三方节点的地址。In one embodiment, the
接收单元1103,用于接收测试结果,测试结果是监听节点监听运营商节点向测试节点所提供的切片服务的测试结果。The receiving
一种实施方式中,接收单元1103还用于使用来自运营商节点提供的切片服务,获得测试结果;该测试结果用于指示运营商节点向公证第三方节点提供的切片服务的服务能力。In one embodiment, the receiving
选择单元1104,用于在接收单元接收测试结果之前,利用随机选择算法,从参与区块链共识的节点中选择测试节。The
一种实施方式中,该选择单元1104还用于验证多个节点中各自公布的随机数与在先各自公布的哈希值是否匹配,哈希值是节点利用自身的随机数进行哈希运算获得的。In one embodiment, the
一种实施方式中,该选择单元1104还用于利用映射运算从匹配的多个节点中确定测试节点。可选的,该映射运算可以包括取模运算,选择单元1104可以通过取模运算得到取模运算值,根据该取模运算值从匹配的多个节点中确定测试节点,其中,取模运算值是联合哈希值对N进行取模运算获得的,联合哈希值是利用匹配的多个节点的随机数进行联合哈希运算获 得的,N是多个节点的数目。该多个节点各自公布的随机数、哈希值,以及联合哈希值、N均记录于切片合约中。In one embodiment, the
通知单元1105,用于根据切片合约中运营商节点针对切片服务定义的对外测试接口、资源有效性测试方式,通知测试节点向切片合约中写入测试请求信息;该测试请求信息中包括测试节点的地址,该测试请求信息用于指示运营商节点向测试节点提供切片服务。The
一种实施方式中,切片合约还用于调用目录合约,将切片服务更新到目录合约中的已租用切片服务中。In one embodiment, the slicing contract is also used to call the directory contract to update the slicing service to the rented slicing service in the directory contract.
可选的,上述切片服务处理装置还可执行上述方法实施例中的相关操作,此处不再详述。Optionally, the foregoing slicing service processing apparatus may further perform the relevant operations in the foregoing method embodiments, which will not be described in detail here.
请参见图12,图12是本申请实施例提供的另一种切片服务处理装置的结构示意图。该切片服务处理装置可以包括:接收单元1201、响应单元1202、选择单元1203、确定单元1204。Referring to FIG. 12, FIG. 12 is a schematic structural diagram of another slice service processing apparatus provided by an embodiment of the present application. The slice service processing apparatus may include: a receiving
接收单元1201,用于接收来自区块链的通知消息,该通知消息是切片服务的测试通过信息写入区块链时发送的,用于指示运营商节点已激活切片服务;该切片服务是租户节点所选择的运营商节点提供的;The receiving
一种实施方式中,接收单元1201还用于接收来自租户合约的通知消息,该通知消息具体是切片服务的测试通过信息写入切片合约时,切片合约被激活而调用租户合约发送的。In one embodiment, the receiving
响应单元1202,用于响应通知消息,使用运营商节点提供的切片服务。The
一种实施方式中,响应单元1202还用于响应通知消息,根据切片合约中切片服务的对外使用接口,使用运营商节点所提供的切片服务。In one embodiment, the
选择单元1203,用于在接收单元接收来自区块链的通知消息之前根据目录合约,选择提供切片服务的运营商节点,目录合约中包括维护区块链的各运营商节点所提供的切片服务的信息。The
一种实施方式中,该选择单元1203还用于查询切片目录合约中是否存在所需的切片服务,该切片目录合约中包括各运营商节点已经部署的各切片服务的信息。In one embodiment, the
可选的,若存在,选择单元1203还用于选择提供该切片服务的运营商节点。Optionally, if it exists, the selecting
可选的,若不存在,选择单元1203还用于查询资源目录合约中运营商节点是否具有提供该切片服务的服务能力;若所述资源目录合约中运营商节点具有提供该切片服务的服务能力,则选择单元1203还用于选择具有提供所述切片服务的服务能力的运营商节点。Optionally, if it does not exist, the
确定单元1204,用于确定租户合约,租户合约中包括租户节点的接口信息,以及租户节点选择的切片服务的信息、运营商节点,以及租户节点针对切片服务所支付的服务费。The determining
可选的,上述切片服务处理装置还可执行上述方法实施例中的相关操作,此处不再详述。Optionally, the foregoing slicing service processing apparatus may further perform the relevant operations in the foregoing method embodiments, which will not be described in detail here.
请参见图13,图13是本申请实施例提供的又一种切片服务处理装置的结构示意图。该切片服务处理装置可以包括:接收单元1301、提供单元1302、更新单元1303、部署单元1304、定义单元1305。Referring to FIG. 13 , FIG. 13 is a schematic structural diagram of another slice service processing apparatus provided by an embodiment of the present application. The slice service processing apparatus may include: a receiving
接收单元1301,用于接收来自区块链的服务费;该服务费是切片服务的测试通过信息写入区块链时发送的,且是租户节点针对运营商节点提供的切片服务所支付的。The receiving
一种实施方式中,接收单元1301还用于接收来自租户合约的支付凭证;该支付凭证是切片合约中被写入测试通过信息时被激活而调用租户合约发送的;该测试通过信息用于指示租户节点选择运营商节点提供的切片服务已测试通过;该支付凭证用于指示租户节点针对切片服务预存的服务费,支付给运营商节点的证据。In one embodiment, the receiving
提供单元1302,用于根据区块链中租户节点的接口信息,激活切片服务并向租户节点提供该切片服务。用于根据租户合约,向租户节点提供切片服务,租户合约中包括租户节点的接口信息。The providing
一种实施方式中,提供单元1302还用于根据租户合约,向租户节点提供切片服务,该租户合约中包括租户节点的接口信息。In one embodiment, the providing
一种实施方式中,提供单元1302还用于利用对外测试接口向测试节点提供切片服务。In one embodiment, the providing
一种实施方式中,提供单元1302还用于利用对外测试接口向公证第三方节点提供切片服务。In one embodiment, the providing
更新单元1303,用于在接收单元1301接收来自区块链的服务费之前,根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为测试节点的地址;测试请求信息中包括测试节点的地址。The
一种实施方式中,更新单元1303还用于在接收单元1301接收来自区块链的服务费之前,根据切片合约中的测试请求信息,将切片服务的对外测试接口更新为公证第三方节点的地址;测试请求信息中包括公证第三方节点的地址。In one embodiment, the
部署单元1304,用于在接收单元1301接收来自区块链的服务费之前,根据租户合约,部署租户节点所请求的切片服务,租户合约还包括租户节点选择的切片服务的信息、运营商节点以及租户节点针对切片服务所支付的服务费。The deploying
定义单元1305,用于在切片合约中定义切片服务、切片服务的对外接口、切片服务的资源有效性测试方式以及测试通过的判决参数;其中,切片服务的对外接口包括对外使用接口和对外测试接口。The
可选的,上述切片服务处理装置还可执行上述方法实施例中的相关操作,此处不再详述。Optionally, the foregoing slicing service processing apparatus may further perform the relevant operations in the foregoing method embodiments, which will not be described in detail here.
请参见图14,图14是本申请实施例提供的一种通信装置的结构示意图。该通信装置中可以包括:处理器1401、通信接口1402、存储器1403。Referring to FIG. 14 , FIG. 14 is a schematic structural diagram of a communication apparatus provided by an embodiment of the present application. The communication apparatus may include: a
处理器1401通过运行存储器1403的可执行程序代码,可执行上述图6a所示的步骤S401至S403、图6b所示的步骤S101至S103的相关操作,还可执行图7a所示的步骤S201、S202、S210至S212以及图10a所示的步骤S301、S302、S305、S306至S308的相关操作;通信接口1402通过运行存储器1403的可执行程序代码,可执行上述图7a所示的步骤S209的相关操作,此处不再详述。The
一种实施方式中,处理器1401通过运行存储器1403的可执行程序代码,可执行上述图6a所示的步骤407、图6b所示的步骤S107的相关操作,还可执行上述图7a所示的步骤S216以及图10a所示的步骤S312的相关操作;通信接口1402通过运行存储器1403的可执行程序代码,可执行上述图6a所示的步骤S404、图6b所示的步骤S104的相关操作,还可执行上述图7a所示的步骤S213以及图10a所示的步骤S309的相关操作,此处不再详述。In one embodiment, the
一种实施方式中,处理器1401通过运行存储器1403的可执行程序代码,可执行上述图6a所示的步骤S406、图6b所示的步骤S106的相关操作,还可执行上述图7a所示的步骤S204、S205、S215以及图10a所示的步骤S303、S304、S311的相关操作;通信接口1402通过运行存储器1403的可执行程序代码,可执行上述图6a所示的步骤S405、图6b所示的步骤S105的相关操作,还可执行上述图7a所示的步骤S214以及图10a所示的步骤S310的相关操作,此处不再详述。In an embodiment, the
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器运行的过程中实现上述任一方法实施例的功能。The present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program implements the functions of any of the foregoing method embodiments during the process of being executed by the processor.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line, DSL) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. The available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, high-density digital video discs (DVDs)), or semiconductor media (eg, solid state disks, SSD)) etc.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (31)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011377289.0 | 2020-11-30 | ||
| CN202011377289.0A CN114584940B (en) | 2020-11-30 | 2020-11-30 | Slice service processing method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022111658A1 true WO2022111658A1 (en) | 2022-06-02 |
Family
ID=81753997
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/133716 Ceased WO2022111658A1 (en) | 2020-11-30 | 2021-11-26 | Slice service processing method and apparatus |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN114584940B (en) |
| WO (1) | WO2022111658A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115242646A (en) * | 2022-06-15 | 2022-10-25 | 西安电子科技大学 | Block chain-based network slice application method and related device |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2019197883A1 (en) * | 2018-04-13 | 2019-10-17 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and systems for performing multi-domain network slice selection and approval |
| CN110708188A (en) * | 2019-09-19 | 2020-01-17 | 中国联合网络通信集团有限公司 | Method and device for creating network slice based on SLA |
| US20200029250A1 (en) * | 2018-07-20 | 2020-01-23 | Netsia, Inc. | System and method for a distributed ledger for base station slicing using blockchain |
| US20200057860A1 (en) * | 2018-08-20 | 2020-02-20 | Cisco Technology, Inc. | Blockchain-based auditing, instantiation and maintenance of 5g network slices |
| US20200195495A1 (en) * | 2019-02-25 | 2020-06-18 | Intel Corporation | 5g network slicing with distributed ledger traceability and resource utilization inferencing |
| US20200367129A1 (en) * | 2019-05-13 | 2020-11-19 | Verizon Patent And Licensing Inc. | Systems and methods for managing and monitoring communication sessions |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2019049042A1 (en) * | 2017-09-05 | 2019-03-14 | Rebel Os Inc. | Distributed computing platform service management |
| CN109803004B (en) * | 2019-01-03 | 2021-06-01 | 深圳壹账通智能科技有限公司 | Block chain intelligent contract management method and device, electronic equipment and storage medium |
| CN111127120B (en) * | 2019-12-31 | 2023-09-22 | 中国银行股份有限公司 | Service data processing system, relevant nodes and method based on block chain technology |
-
2020
- 2020-11-30 CN CN202011377289.0A patent/CN114584940B/en active Active
-
2021
- 2021-11-26 WO PCT/CN2021/133716 patent/WO2022111658A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2019197883A1 (en) * | 2018-04-13 | 2019-10-17 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and systems for performing multi-domain network slice selection and approval |
| US20200029250A1 (en) * | 2018-07-20 | 2020-01-23 | Netsia, Inc. | System and method for a distributed ledger for base station slicing using blockchain |
| US20200057860A1 (en) * | 2018-08-20 | 2020-02-20 | Cisco Technology, Inc. | Blockchain-based auditing, instantiation and maintenance of 5g network slices |
| US20200195495A1 (en) * | 2019-02-25 | 2020-06-18 | Intel Corporation | 5g network slicing with distributed ledger traceability and resource utilization inferencing |
| US20200367129A1 (en) * | 2019-05-13 | 2020-11-19 | Verizon Patent And Licensing Inc. | Systems and methods for managing and monitoring communication sessions |
| CN110708188A (en) * | 2019-09-19 | 2020-01-17 | 中国联合网络通信集团有限公司 | Method and device for creating network slice based on SLA |
Non-Patent Citations (1)
| Title |
|---|
| ITU-T SG17: "LS on draft ITU-T X.nsom-sec ‘Security requirements and architecture for network slice management and orchestration’", 3GPP DRAFT; S3-202859,202010293RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. SA WG3, 29 October 2020 (2020-10-29), XP051948545 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115242646A (en) * | 2022-06-15 | 2022-10-25 | 西安电子科技大学 | Block chain-based network slice application method and related device |
| CN115242646B (en) * | 2022-06-15 | 2024-02-13 | 西安电子科技大学 | A blockchain-based network slicing application method and related devices |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114584940B (en) | 2023-09-01 |
| CN114584940A (en) | 2022-06-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10817345B2 (en) | Distributed ledger for monitoring quality of services provided by cloud service providers | |
| CN112583802B (en) | Data sharing platform system and equipment based on block chain and data sharing method | |
| US8914626B1 (en) | Providing configurable bootstrapping of software image execution | |
| CN112199382A (en) | Node group creating method and node group-based transaction method in alliance chain network | |
| US11736299B2 (en) | Data access control for edge devices using a cryptographic hash | |
| CN112989422B (en) | Block chain system assembling method, device, electronic equipment and storage medium | |
| WO2023124746A1 (en) | Cross-subnet interaction permission control | |
| CN112269838A (en) | Block chain-based supervision method and device, electronic equipment and storage medium | |
| WO2023045532A1 (en) | Blockchain-based transaction processing | |
| CN113596168A (en) | Block chain alliance chain-based verification method and device | |
| CN114584940B (en) | Slice service processing method and device | |
| CN112037055B (en) | Transaction processing method, device, electronic equipment and readable storage medium | |
| CN114385447A (en) | A microservice bus technology architecture system | |
| CN112181599A (en) | Model training method, device and storage medium | |
| CN109842681B (en) | Data management system and method giving consideration to both centralized and distributed characteristics | |
| WO2025001088A1 (en) | Validation method for blockchain network and related device | |
| WO2024187029A1 (en) | Wallet as a service | |
| CN116957560A (en) | Method for supervising prepaid transaction funds by using predictor | |
| CN115018499A (en) | A method, device and system for issuing digital certificate based on blockchain | |
| WO2024041050A1 (en) | Tracing data in complex replication system | |
| CN111325553B (en) | Payment method, device and equipment for exchange resources and readable storage medium | |
| US20250299189A1 (en) | Optimistic receipt of non-fungible tokens in a blockchain address application | |
| CN118839362A (en) | Bid file processing system based on block chain | |
| HK40044602A (en) | Transaction method for creating node group in alliance chain network based on node group | |
| HK40032842A (en) | Transaction method for creating node group in alliance chain network based on node group |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21897158 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21897158 Country of ref document: EP Kind code of ref document: A1 |