Resource scheduling method, device and storage medium

By using smart contract acquisition and scheduling resource scheduling strategies in the blockchain system, the problem that the terminal cannot effectively call other network resources on the ubiquitous network is solved, and efficient resource scheduling and business service efficiency are achieved.

CN114867119BActive Publication Date: 2025-02-14CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210569854.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2025-02-14
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

In the prior art, the terminal is unable to effectively call resources from other networks ubiquitous in the network, resulting in waste of network resources and reduced service efficiency.

Method used

By deploying a smart contract in the blockchain system, the first blockchain node receives the resource scheduling request message, obtains the resource scheduling strategy of the terminal in the second network, and schedules the terminal in the second network through the second blockchain node. resources.

Benefits of technology

The blockchain system has realized that the blockchain system has dispatched resources in other networks for terminals in the current network, reduced the process of establishing communication connections between terminals and other network management devices, avoided the waste of network resources, and improved the efficiency of providing business services in ubiquitous networks. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114867119B_ABST
    Figure CN114867119B_ABST
Patent Text Reader

Abstract

A resource scheduling method, device and storage medium relate to the field of communication technology, and are used to solve the problem in general technology that resources of other networks in a ubiquitous network cannot be called for a terminal. The method includes: receiving a resource scheduling request message. The resource scheduling request message is used to request a first blockchain node in a first network to schedule resources in a second network to a terminal in the first network. Then, the resource scheduling policy of the terminal in the second network can be obtained from the smart contract pre-deployed by the blockchain system. Then, according to the resource scheduling policy of the terminal in the second network, the resources in the second network are scheduled to the terminal through the second blockchain node in the second network. The first blockchain node and the second blockchain node are any two blockchain nodes in the blockchain system. The present application can realize the scheduling of resources in other networks for terminals in the current network through the blockchain system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a resource scheduling method, device and storage medium. Background Art

[0002] With the continuous development and evolution of communication technology and its wide application, a ubiquitous network has been formed, including multiple operator networks such as the Internet, mobile Internet, Internet of Things, satellite communication network, integrated space-ground network, smart city, etc., or multiple network formats such as the fourth generation mobile communication technology (4G), the fifth generation mobile communication technology (5G), and the sixth generation mobile communication technology (6G). By controlling the access of terminals in the ubiquitous network, the resources in the ubiquitous network can be reasonably scheduled for the terminals, providing efficient business services.

[0003] In general technology, due to the management needs of different industries or operators, centralized management devices in different networks can perform centralized access control on terminals in the current network and dispatch resources in the current network. However, when a terminal wants to access other networks in the ubiquitous network, it needs to establish communication connections with centralized management devices in other networks respectively, which occupies more network resources and reduces the efficiency of network service provision. Summary of the invention

[0004] The present application provides a resource scheduling method, device and storage medium, which are used to solve the problem in general technology that resources of other networks in a ubiquitous network cannot be called for a terminal.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, a resource scheduling method is provided, which is applied to a first blockchain node in a blockchain system and can receive a resource scheduling request message. The resource scheduling request message is used to request a first blockchain node in a first network to schedule resources in a second network to a terminal in the first network. Then, a resource scheduling strategy of the terminal in the second network can be obtained from a smart contract pre-deployed by the blockchain system. Then, according to the resource scheduling strategy of the terminal in the second network, resources in the second network are scheduled to the terminal through a second blockchain node in the second network. The first blockchain node and the second blockchain node are any two blockchain nodes in the blockchain system.

[0007] Optionally, before receiving the resource scheduling request message, the resource scheduling method also includes: when the terminal is within the network coverage of the first network, obtaining the resource scheduling strategy of the terminal in multiple networks of the blockchain system; the multiple networks include the second network; executing the verification operation of the smart contract to obtain the consensus result of the resource scheduling strategy of the terminal in multiple networks; the consensus result is used to indicate whether the resource scheduling strategy of the terminal in multiple networks has reached a consensus in the blockchain system; when the resource scheduling strategy of the terminal in multiple networks has reached a consensus in the blockchain system, connecting the terminal to the blockchain system.

[0008] Optionally, the resource scheduling request message includes: user information of the terminal, and resource demand information of the terminal in the second network; the method for obtaining the resource scheduling strategy of the terminal in the second network from the smart contract pre-deployed by the blockchain system includes: determining the resource scheduling strategy of the terminal in multiple networks of the blockchain system in the smart contract according to the user information of the terminal; and determining the resource scheduling strategy of the terminal in the second network from the resource scheduling strategies of the terminal in multiple networks according to the resource demand information of the terminal in the second network.

[0009] Optionally, according to the resource scheduling strategy of the terminal in the second network, the method for scheduling resources in the second network to the terminal through the second blockchain node in the second network includes: sending resource demand information of the terminal in the second network and the resource scheduling strategy of the terminal in the second network to the second blockchain node; obtaining the resources in the second network scheduled by the second blockchain node; and scheduling the resources in the second network to the terminal.

[0010] In a second aspect, a resource scheduling device is provided, including: a receiving unit, an acquisition unit and a scheduling unit; the receiving unit is used to receive a resource scheduling request message; the resource scheduling request message is used to request a first blockchain node in a first network to schedule resources in a second network to a terminal in the first network; the first blockchain node is any blockchain node in the blockchain system; the acquisition unit is used to obtain a resource scheduling policy for the terminal in the second network from a smart contract pre-deployed by the blockchain system; the scheduling unit is used to schedule resources in the second network to the terminal through a second blockchain node in the second network according to the resource scheduling policy of the terminal in the second network acquired by the acquisition unit; the second blockchain node is any blockchain node in the blockchain system.

[0011] Optionally, the resource scheduling device also includes: a processing unit; a processing unit, used to: when the terminal is within the network coverage of the first network, obtain the resource scheduling strategy of the terminal in multiple networks of the blockchain system; the multiple networks include the second network; execute the verification operation of the smart contract to obtain the consensus result of the resource scheduling strategy of the terminal in multiple networks; the consensus result is used to indicate whether the resource scheduling strategy of the terminal in multiple networks has reached a consensus in the blockchain system; when the resource scheduling strategy of the terminal in multiple networks has reached a consensus in the blockchain system, connect the terminal to the blockchain system.

[0012] Optionally, the resource scheduling request message includes: user information of the terminal, resource demand information of the terminal in the second network; an acquisition unit is specifically used to: determine the resource scheduling strategy of the terminal in multiple networks of the blockchain system in the smart contract according to the user information of the terminal received by the receiving unit; determine the resource scheduling strategy of the terminal in the second network from the resource scheduling strategies of the terminal in multiple networks according to the resource demand information of the terminal in the second network received by the receiving unit.

[0013] Optionally, the scheduling unit is specifically used to: send to the second blockchain node the resource demand information of the terminal in the second network received by the receiving unit, and the resource scheduling policy of the terminal in the second network obtained by the acquisition unit; obtain the resources in the second network scheduled by the second blockchain node; and schedule the resources in the second network to the terminal.

[0014] In a third aspect, a resource scheduling device is provided, comprising a memory and a processor; the memory is used to store computer execution instructions, and the processor and the memory are connected via a bus; when the resource scheduling device is running, the processor executes the computer execution instructions stored in the memory, so that the resource scheduling device executes the resource scheduling method described in the first aspect.

[0015] The resource scheduling device may be a network device, or a part of a network device, such as a chip system in the network device. The chip system is used to support the network device to implement the functions involved in the first aspect and any possible implementation thereof, for example, to obtain, determine, and send the data and / or information involved in the above-mentioned resource scheduling method. The chip system includes a chip, and may also include other discrete devices or circuit structures.

[0016] In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising computer execution instructions, and when the computer execution instructions are executed on a computer, the computer executes the resource scheduling method described in the first aspect.

[0017] In a fifth aspect, a computer program product is also provided. The computer program product includes computer instructions. When the computer instructions are executed on a resource scheduling device, the resource scheduling device executes the resource scheduling method as described in the first aspect above.

[0018] It should be noted that the above computer instructions may be stored in whole or in part on a first computer-readable storage medium. The first computer-readable storage medium may be packaged together with the processor of the resource scheduling device, or may be packaged separately from the processor of the resource scheduling device, which is not limited in the present embodiment.

[0019] In the embodiments of the present application, the name of the resource scheduling device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present application, they fall within the scope of the claims of the present application and their equivalent technologies.

[0020] These and other aspects of the present application will become more apparent from the following description.

[0021] The technical solution provided by this application brings at least the following beneficial effects:

[0022] Based on any of the above aspects, an embodiment of the present application provides a resource scheduling method, which is applied to the first blockchain node in the blockchain system. After receiving the resource scheduling request message (used to request the scheduling of resources in the second network to the terminal in the first network), the first blockchain node in the first network can obtain the resource scheduling policy of the terminal in the second network from the smart contract pre-deployed by the blockchain system. Therefore, the first blockchain node can obtain the resource scheduling policy of the terminal in the current network in any other network. Then, the first blockchain node can schedule the resources in the second network to the terminal through the second blockchain node according to the resource scheduling policy of the terminal in the second network. In this way, the first blockchain node can schedule resources in other networks for the terminal in the current network through the blockchain system, reducing the process of establishing communication connections between the terminal and the centralized management device in other networks, avoiding the waste of network resources, and improving the efficiency of providing business services in the ubiquitous network. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of a resource scheduling system provided in an embodiment of the present application Figure 1 ;

[0024] Figure 2 A schematic diagram of the structure of a blockchain node provided in an embodiment of the present application;

[0025] Figure 3A schematic diagram of a resource scheduling system provided in an embodiment of the present application Figure 2 ;

[0026] Figure 4 A schematic diagram of the hardware structure of a resource scheduling device provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of the hardware structure of another resource scheduling device provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of a resource scheduling method provided in an embodiment of the present application Figure 1 ;

[0029] Figure 7 A schematic diagram of a resource scheduling method provided in an embodiment of the present application Figure 2 ;

[0030] Figure 8 A schematic diagram of a resource scheduling method provided in an embodiment of the present application Figure 3 ;

[0031] Fig. 9 A schematic diagram of a resource scheduling method provided in an embodiment of the present application Figure 4 ;

[0032] Fig.10 A schematic diagram of the structure of a resource scheduling device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0034] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0035] In order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and order of execution.

[0036] In order to facilitate the understanding of the present application, the relevant elements involved in the present application are now described.

[0037] Blockchain Technology

[0038] Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computing devices jointly participate in "bookkeeping" (i.e. recording transaction data) and jointly maintain a complete distributed database. Blockchain technology has been widely used in many fields because of its decentralization (i.e. no central node), openness and transparency, each computing device can participate in database records, and data can be quickly synchronized between computing devices.

[0039] The blockchain system may include multiple blockchain nodes. A blockchain node is a device with communication and storage functions, such as a device storing a blockchain.

[0040] Each blockchain node can both receive and generate information. Different blockchain nodes maintain communication by maintaining a common blockchain. Specifically, in a blockchain system, any blockchain node can generate a new block based on transaction-related data sent by the client, and notify other blockchain nodes in the form of broadcast, and other blockchain nodes can verify this block. When all blockchain nodes in the blockchain system reach a consensus, the new block can be added to the blockchain.

[0041] The blockchain node in this application can be understood as a processing unit. In one implementation, the blockchain node can be a physical device, such as a server or a terminal device. In another implementation, the blockchain node can be a virtual computer; a virtual computer is a general term for the operating environment virtualized by software in all types of virtualized devices, including virtual machines and containers. In other implementations, the blockchain node can be a process or a thread; a thread is the smallest unit that the operating system can perform computational scheduling. A thread is included in a process and is the actual operating unit in the process; a process is a running activity of a program in a computer on a certain data set, and is the basic unit for resource allocation and scheduling in the system.

[0042] Blockchain division

[0043] At present, blockchain can be divided into public chain, private chain and alliance chain according to the deployment method.

[0044] A public chain refers to a blockchain that can be read by any device in the world, or a blockchain in which any device can participate in the consensus verification process of transactions.

[0045] A private chain refers to a blockchain with stricter access control.

[0046] Consortium chains, also known as consortium blockchains, refer to blockchains whose consensus process is controlled by pre-selected nodes. In a consortium chain, all or part of the functions are only open to the nodes that store the consortium chain, and each node in the consortium chain can customize read and write permissions, query permissions, etc. based on needs.

[0047] Smart contract

[0048] Smart contracts are essentially codes that can run on blockchains. They are computer protocols designed to disseminate, verify or execute contracts in an information-based manner. Smart contracts allow for trusted transactions without a third party, and these transactions are traceable and irreversible. A smart contract is a set of promises defined in digital form, including an agreement on which the parties to the contract can execute these promises. The digital form means that the contract has to be written in computer-readable code. This is necessary because as long as the parties reach an agreement, the rights and obligations established by the smart contract are executed by a computer or a computer network. The specific process of establishing a smart contract includes: reaching an agreement, contract execution, and generating computer-readable code.

[0049] In general technology, due to the management needs of different industries or operators, centralized management devices in different networks can perform centralized access control on terminals in the current network and dispatch resources in the current network. However, when a terminal wants to access other networks in the ubiquitous network, it needs to establish communication connections with centralized management devices in other networks respectively, which occupies more network resources and reduces the efficiency of network service provision.

[0050] The embodiment of the present application provides a resource scheduling method, which is applied to the first blockchain node in the blockchain system. After receiving the resource scheduling request message (used to request the scheduling of resources in the second network to the terminal in the first network), the first blockchain node in the first network can obtain the resource scheduling policy of the terminal in the second network from the smart contract pre-deployed by the blockchain system. Therefore, the first blockchain node can obtain the resource scheduling policy of the terminal in the current network in any other network. Then, the first blockchain node can schedule the resources in the second network to the terminal through the second blockchain node according to the resource scheduling policy of the terminal in the second network. In this way, the first blockchain node can schedule resources in other networks for the terminal in the current network through the blockchain system, reducing the process of establishing communication connections between the terminal and the centralized management device in other networks, avoiding the waste of network resources, and improving the efficiency of providing business services in the ubiquitous network.

[0051] The resource scheduling method is applicable to a resource scheduling system. Figure 1 Shows a schematic diagram of the structure of a resource scheduling system Figure 1 .like Figure 1 As shown, the resource scheduling system includes: a terminal 110, and multiple blockchain nodes (including: a first blockchain node 120 and a second blockchain node 130).

[0052] The first blockchain node 120 is a management device in the first network, and the second blockchain node 130 is a management device in the second network. The terminal 110 is connected to the first blockchain node 120 in communication, and multiple blockchain nodes are connected to each other in communication.

[0053] In one embodiment, each blockchain node in the blockchain system can establish communication connections with multiple terminals. For ease of understanding, this application takes the communication connection between a terminal 110 and the first blockchain node 120 as an example for explanation.

[0054] In one embodiment, the terminal 110 may be a device that provides voice and / or data connectivity to a user, that is, a handheld device with a wireless connection function, or a wireless terminal of other processing devices connected to a wireless modem, or a wired terminal, for example, a mobile phone, a personal computer (PC), a desktop computer, a tablet computer, a laptop computer, a netbook, a personal digital assistant (PDA), and other intelligent devices.

[0055] In one embodiment, the blockchain node in the blockchain system can be a management device of any one of the multiple networks of the ubiquitous network. Optionally, the management device can be a base station (base transceiver station, BTS) in the global system for mobile communication (global system for mobile communication, GSM), code division multiple access (code division multiple access, CDMA), a base station (node ​​B) in wideband code division multiple access (wideband code division multiple access, WCDMA), a base station (eNB) in the Internet of Things (Internet of Things, IoT) or narrowband Internet of Things (narrow band-internet of things, NB-IoT), a base station in the future 5G mobile communication network or the future evolved public land mobile network (public land mobile network, PLMN), and the embodiments of the present application do not impose any restrictions on this.

[0056] In one embodiment, the multiple networks may be multiple operator networks such as the Internet, mobile Internet, Internet of Things, satellite communication network, space-ground integrated network, smart city, etc., or networks of multiple network standards such as 4G network, 5G network, and 6G network.

[0057] In one embodiment, Figure 2 A schematic diagram of the structure of a blockchain node is shown. Figure 2 As shown, the blockchain node includes: a terminal monitoring module 201, a terminal access management module 202, and a smart contract 203.

[0058] The terminal monitoring module 201 is used to monitor the terminals that enter the coverage of the ubiquitous network.

[0059] The terminal access management module 202 is used to schedule resources to the terminal according to the resource scheduling policy corresponding to the terminal.

[0060] Smart contract 203 is used to respond to relay requests, trigger bidding, bid scheduling, confirm task execution results, etc. It is also used to store and maintain resource scheduling strategies in multiple networks corresponding to the terminal, as well as rules and protocols for cooperation between multiple networks.

[0061] Figure 3 Shows a schematic diagram of the structure of a resource scheduling system Figure 2 .like Figure 3As shown, the resource scheduling system includes: multiple blockchain nodes (including a first blockchain node 310, a second blockchain node 320, a third blockchain node 330 and a fourth blockchain node 340), and multiple edge nodes (including a first edge node 311, a second edge node 321, a third edge node 331 and a fourth edge node 341).

[0062] Among them, multiple blockchain nodes are communicated with each other, the first blockchain node 310 is communicated with the first edge node 311, the second blockchain node 320 is communicated with the second edge node 321, the third blockchain node 330 is communicated with the third edge node 331, and the fourth blockchain node 340 is communicated with the fourth edge node 341.

[0063] In one embodiment, each blockchain node can establish communication connections with multiple edge nodes. For ease of understanding, this application takes the communication connection between the first blockchain node 310 and a first edge node 311, the communication connection between the second blockchain node 320 and a second edge node 321, the communication connection between the third blockchain node 330 and a third edge node 331, and the communication connection between the fourth blockchain node 340 and a fourth edge node 341 as examples for explanation.

[0064] Among them, the description of blockchain nodes can be referred to Figure 1 The description of blockchain nodes in 2.0 can be understood, and no further explanation is given here.

[0065] In one embodiment, the edge node may be an edge device such as an edge gateway, an edge controller, an edge server, etc. The edge node may also be a server in a server cluster (composed of multiple servers), a chip in the server, a system on a chip in the server, or a virtual machine deployed on a physical machine, which is not limited in the embodiments of the present application.

[0066] Combination Figure 1 or Figure 3 The terminal 110, the first blockchain node 120 and the second blockchain node 130 in the resource scheduling system, as well as the first blockchain node 310, the second blockchain node 320, the third blockchain node 330, the fourth blockchain node 340, the first edge node 311, the second edge node 321, the third edge node 331 and the fourth edge node 341 all include Figure 4 or Figure 5 The communication device shown in FIG. Figure 4 and Figure 5Taking the communication device shown as an example, the hardware structure of the terminal 110, the first blockchain node 120, the second blockchain node 130, the first blockchain node 310, the second blockchain node 320, the third blockchain node 330, the fourth blockchain node 340, the first edge node 311, the second edge node 321, the third edge node 331 and the fourth edge node 341 are introduced.

[0067] like Figure 4 , which is a schematic diagram of a hardware structure of a communication device provided in an embodiment of the present application. The communication device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, the memory 22, and the communication interface 23 can be connected via a bus 24.

[0068] The processor 21 is the control center of the communication device, which can be a processor or a general term for multiple processing elements. For example, the processor 21 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0069] As an embodiment, the processor 21 may include one or more CPUs, such as Figure 4 CPU 0 and CPU 1 are shown in .

[0070] The memory 22 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0071] In a possible implementation, the memory 22 may exist independently of the processor 21, and the memory 22 may be connected to the processor 21 via a bus 24 to store instructions or program codes. When the processor 21 calls and executes the instructions or program codes stored in the memory 22, the resource scheduling method provided in the following embodiment of the present invention can be implemented.

[0072] In another possible implementation, the memory 22 may also be integrated with the processor 21 .

[0073] The communication interface 23 is used for the communication device to connect with other devices through a communication network, and the communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 23 may include a receiving unit for receiving data and a sending unit for sending data.

[0074] The bus 24 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0075] Figure 5 FIG. 2 shows another hardware structure of the communication device in the embodiment of the present invention. Figure 5 As shown, the communication device may include a processor 31 and a communication interface 32. The processor 31 is coupled to the communication interface 32.

[0076] The functions of the processor 31 may refer to the description of the processor 21. In addition, the processor 31 also has a storage function and can function as the memory 22 described above.

[0077] The communication interface 32 is used to provide data to the processor 31. The communication interface 32 may be an internal interface of the communication device, or an external interface of the communication device (equivalent to the communication interface 23).

[0078] It should be pointed out that Figure 4 (or Figure 5 ) does not constitute a limitation on the communication device, except Figure 4 (or Figure 5 ) In addition to the components shown in the figure, the communication device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0079] The resource scheduling method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0080] Combination Figure 1 ,like Figure 6 As shown, Figure 6 A schematic diagram of a resource scheduling method provided in this application Figure 1The resource scheduling method provided in the embodiment of the present application can be applied to the terminal 110, the first blockchain node 120 and the second blockchain node 130. The resource scheduling method includes: S601-S603.

[0081] S601. The first blockchain node receives a resource scheduling request message.

[0082] Among them, the resource scheduling request message is used to request the first blockchain node in the first network to schedule resources in the second network to the terminal in the first network.

[0083] The first blockchain node is any blockchain node in the blockchain system.

[0084] Optionally, the resources may be computing resources such as a graphics processing unit (GPU), a CPU, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), and an internal memory, or they may be network resources such as text, images, audio, video, and a database.

[0085] Optionally, the resource scheduling request message may include: user information of the terminal, resource demand information of the terminal in the second network, etc.

[0086] Optionally, the user information of the terminal may be a segment identifier (SID), an Internet protocol (IP) address, or a media access control (MAC) address of the terminal.

[0087] Optionally, the resource demand information may include: service identifiers such as service number, service name, service type, and resource type, resource demand, network identifier of the second network, and the like.

[0088] Optionally, the network identifier may be: operator name, network standard, etc.

[0089] One possible way to achieve this is by combining Figure 1 When the terminal 110 wants to obtain resources in the second network, the terminal 110 can send a resource scheduling request message to the first blockchain node (ie, the first blockchain node 120). Accordingly, the first blockchain node 120 receives the resource scheduling request message from the terminal 110.

[0090] S602. The first blockchain node obtains a resource scheduling strategy of the terminal in the second network from a smart contract pre-deployed by the blockchain system.

[0091] Optionally, the resource scheduling strategy may include: cooperation rules and protocols preset by the terminal in multiple networks.

[0092] Optionally, the cooperation rules may include: access rights of the terminal, service levels corresponding to the terminal, priority levels corresponding to the terminal, etc.

[0093] In one achievable manner, the method for the first blockchain node to obtain the resource scheduling strategy of the terminal in the second network from the smart contract pre-deployed by the blockchain system includes but is not limited to the following two methods, which are not limited in this application.

[0094] Method 1: When the resource scheduling request message includes: user information of the terminal and resource demand information of the terminal in the second network, the first blockchain node can determine the resource scheduling strategy of the terminal in multiple networks of the blockchain system in the smart contract based on the user information of the terminal. Then, the first blockchain node can determine the resource scheduling strategy of the terminal in the second network from the resource scheduling strategies of the terminal in multiple networks based on the resource demand information of the terminal in the second network.

[0095] Method 2: After receiving the resource scheduling request message of the terminal, the first blockchain node can send a request message for requesting to obtain the resource scheduling strategy of the terminal in the second network to the second blockchain node through the blockchain smart contract. In response to the request message, the second blockchain node can send the resource scheduling strategy of the terminal in the second network to the first blockchain node through the blockchain smart contract.

[0096] S603. The first blockchain node schedules resources in the second network to the terminal through the second blockchain node in the second network according to the resource scheduling strategy of the terminal in the second network.

[0097] The second blockchain node is any blockchain node in the blockchain system.

[0098] One possible way to achieve this is by combining Figure 1 , the second blockchain node (i.e., the second blockchain node 130) can obtain the resource scheduling request message received by the first blockchain node (i.e., the first blockchain node 120) and the resource scheduling policy of the terminal in the second network through the blockchain system. Then, the first blockchain node 120 can schedule resources in the second network for the terminal 110 through the second blockchain node 130.

[0099] One possible way to achieve this is by combining Figure 3After the second blockchain node 320 obtains the resource scheduling request message and the resource scheduling policy of the terminal in the second network, it can determine the second edge node 321 that can provide resource scheduling as the winning node based on the resource scheduling request message and the resource scheduling policy of the terminal in the second network, and execute resource scheduling of the second edge node 321.

[0100] One possible way to achieve this is by combining Figure 3 , after executing the resource scheduling of the second edge node 321, the second blockchain node 320 can verify the execution result through the smart contract and broadcast the execution result to other blockchain nodes through the blockchain system.

[0101] In one example, after the first blockchain node receives a resource scheduling request message sent by a terminal to request to initiate a transaction in the second network, the cooperation agreement and transaction rules of the terminal in the second network sent in advance by the second blockchain node can be determined in the smart contract of the first blockchain node. Then, the smart contract in the first blockchain node selects an edge node that meets the conditions and has a low price as the winning node based on the cooperation agreement and transaction rules of the terminal in the second network, and executes the computing power scheduling of the winning edge node. Subsequently, the first blockchain node can verify the execution result through the smart contract and broadcast the execution result to other blockchain nodes through the blockchain system.

[0102] The technical solution provided by the above embodiment brings at least the following beneficial effects: It can be seen from S601-S603 that the first blockchain node applied to the blockchain system, the first blockchain node in the first network, after receiving the resource scheduling request message (used to request the scheduling of resources in the second network to the terminal in the first network), can obtain the resource scheduling policy of the terminal in the second network from the smart contract pre-deployed by the blockchain system. Therefore, the first blockchain node can obtain the resource scheduling policy of the terminal in the current network in any other network. Then, the first blockchain node can schedule the resources in the second network to the terminal through the second blockchain node according to the resource scheduling policy of the terminal in the second network. In this way, the first blockchain node can schedule resources in other networks for the terminal in the current network through the blockchain system, reducing the process of establishing communication connections between the terminal and the centralized management device in other networks, avoiding the waste of network resources, and improving the efficiency of providing business services in the ubiquitous network.

[0103] In an optional embodiment, before the first blockchain node receives the resource scheduling request message, Figure 6 Based on the method embodiment shown, this embodiment provides a possible implementation method, such as Figure 7 As shown, Figure 7 A schematic diagram of a resource scheduling method provided in this application Figure 2 The resource scheduling method further includes: S701-S703.

[0104] S701. When the terminal is within the network coverage of the first network, the first blockchain node obtains a resource scheduling strategy of the terminal in multiple networks of the blockchain system.

[0105] The multiple networks include a second network.

[0106] One possible way to achieve this is by combining Figure 2 When the terminal monitoring module 201 of the first blockchain node detects that the terminal enters the network coverage of the first network, the user information of the terminal can be obtained. Then the smart contract 203 can obtain the resource scheduling strategy of the terminal in multiple networks of the blockchain system according to the user information of the terminal.

[0107] In one achievable manner, the method for the first blockchain node to obtain the resource scheduling strategy of the terminal in multiple networks includes but is not limited to the following two methods, which are not limited in this application.

[0108] Method 1: When the terminal accesses the ubiquitous network in the blockchain system for the first time, the first blockchain node sends a request message for requesting to obtain the resource scheduling strategy of the terminal in all networks to other blockchain nodes in the blockchain system through the blockchain smart contract. In response to the request message, each blockchain node can send the resource scheduling strategy of the terminal in the network where each blockchain node is located to the first blockchain node through the blockchain smart contract.

[0109] Method 2: When the terminal is not accessing the ubiquitous network in the blockchain system for the first time, the first blockchain node can read the pre-stored resource scheduling strategy of the terminal in all networks from the smart contract.

[0110] S702. The first blockchain node executes the verification operation of the smart contract to obtain the consensus result of the resource scheduling strategy of the terminal in multiple networks.

[0111] Among them, the consensus result is used to indicate whether the resource scheduling strategy of the terminal in multiple networks has reached a consensus in the blockchain system.

[0112] In one possible implementation, the first blockchain node notifies other blockchain nodes in the blockchain system of the blocks corresponding to the resource scheduling strategies of the terminal in multiple networks in the form of broadcast. Then, each blockchain node in the blockchain system can generate a corresponding verification result and notify other blockchain nodes in the form of broadcast. Therefore, the first blockchain node can obtain the verification results of all blockchain nodes. Then, the first blockchain node can determine the consensus results of the resource scheduling strategies of the terminal in multiple networks based on the verification results of all blockchain nodes.

[0113] Optionally, the method for the first blockchain node to determine the consensus result of the resource scheduling strategy of the terminal in multiple networks based on the verification results of all blockchain nodes can be: when the verification result is that the proportion of the number of blockchain nodes that have passed in the number of all blockchain nodes in the blockchain system is greater than or equal to a preset threshold, the consensus result of determining the resource scheduling strategy of the terminal in multiple networks indicates that the resource scheduling strategy of the terminal in multiple networks has reached a consensus in the blockchain system. Alternatively, when the verification result is that the proportion of the number of blockchain nodes that have passed in the number of all blockchain nodes in the blockchain system is less than a preset threshold, the consensus result of determining the resource scheduling strategy of the terminal in multiple networks indicates that the resource scheduling strategy of the terminal in multiple networks has not reached a consensus in the blockchain system.

[0114] S703: When the resource scheduling strategies of the terminal in multiple networks reach a consensus in the blockchain system, the first blockchain node connects the terminal to the blockchain system.

[0115] Optional, combined Figure 2 When the consensus result obtained by the smart contract 203 indicates that the resource scheduling strategies of the terminal in multiple networks have reached a consensus in the blockchain system, the terminal access management module 202 can connect the terminal to the blockchain system so that resources in the ubiquitous network can be scheduled to the terminal.

[0116] The technical solution provided by the above embodiment brings at least the following beneficial effects: As can be seen from S701-S703, when the terminal is within the network coverage of the first network, the first blockchain node can obtain the resource scheduling strategies of the terminal in multiple networks of the blockchain system, and perform the verification operation of the smart contract to obtain the consensus results of the resource scheduling strategies of the terminal in multiple networks. When the resource scheduling strategies of the terminal in multiple networks reach a consensus in the blockchain system, the first blockchain node can connect the terminal to the blockchain system. In this way, each blockchain node can obtain the resource scheduling strategies of the terminal in multiple networks in the ubiquitous network through the smart contract, and at the same time, each resource scheduling strategy in the smart contract reaches a consensus in the blockchain system.

[0117] In an optional embodiment, when the resource scheduling request message includes: user information of the terminal and resource demand information of the terminal in the second network, the first blockchain node obtains a method for the resource scheduling strategy of the terminal in the second network from a smart contract pre-deployed by the blockchain system. Figure 6 Based on the method embodiment shown, this embodiment provides a possible implementation method, such as Figure 8 As shown, Figure 8 A schematic diagram of a resource scheduling method provided in this application Figure 3In S602, the method in which the first blockchain node obtains the resource scheduling strategy of the terminal in the second network from the smart contract pre-deployed by the blockchain system specifically includes: S801-S802.

[0118] S801. The first blockchain node determines a resource scheduling strategy for the terminal in multiple networks of the blockchain system in the smart contract according to the user information of the terminal.

[0119] S802. The first blockchain node determines a resource scheduling strategy for the terminal in the second network from resource scheduling strategies of the terminal in multiple networks based on resource demand information of the terminal in the second network.

[0120] The technical solution provided by the above embodiment brings at least the following beneficial effects: As can be seen from S801-S802, the first blockchain node can determine the resource scheduling strategy of the terminal in multiple networks of the blockchain system in the smart contract based on the user information of the terminal. Then, the first blockchain node can determine the resource scheduling strategy of the terminal in the second network from the resource scheduling strategies of the terminal in multiple networks based on the resource demand information of the terminal in the second network. In this way, the first blockchain node can obtain the resource scheduling strategy of the terminal in any network from the smart contract pre-deployed by the blockchain system.

[0121] In an optional embodiment, when the resource scheduling request message includes: user information of the terminal and resource demand information of the terminal in the second network, the first blockchain node schedules resources in the second network to the terminal through the second blockchain node according to the resource scheduling strategy of the terminal in the second network. Figure 8 Based on the method embodiment shown, this embodiment provides a possible implementation method, such as Fig. 9 As shown, Fig. 9 A schematic diagram of a resource scheduling method provided in this application Figure 4 In S603, the method in which the first blockchain node schedules resources in the second network to the terminal through the second blockchain node in the second network according to the resource scheduling strategy of the terminal in the second network specifically includes: S901-S903.

[0122] S901. The first blockchain node sends resource demand information of the terminal in the second network and a resource scheduling strategy of the terminal in the second network to the second blockchain node.

[0123] S902. The first blockchain node obtains resources in the second network scheduled by the second blockchain node.

[0124] The second blockchain node schedules resources in the second network according to the resource demand information of the terminal in the second network and the resource scheduling strategy of the terminal in the second network.

[0125] Optional, combined Figure 3 After the second blockchain node 320 obtains the resource demand information of the terminal in the second network and the resource scheduling strategy of the terminal in the second network, it can determine the second edge node 321 that can provide resource scheduling as the winning node according to the resource demand information and the resource scheduling strategy of the terminal in the second network, and execute the resource scheduling of the second edge node 321. After executing the resource scheduling of the second edge node 321, the second blockchain node 320 can verify the execution result through the smart contract and broadcast the execution result to other blockchain nodes through the blockchain system. Therefore, the first blockchain node 120 can obtain the resources of the second edge node 321 scheduled by the second blockchain node 320.

[0126] S903. The first blockchain node dispatches resources in the second network to the terminal.

[0127] The technical solution provided by the above embodiment brings at least the following beneficial effects: As can be seen from S901-S903, the first blockchain node can send the resource demand information of the terminal in the second network and the resource scheduling strategy of the terminal in the second network to the second blockchain node. Then, the second blockchain node can schedule the resources in the second network according to the resource demand information of the terminal in the second network and the resource scheduling strategy of the terminal in the second network. Then, the first blockchain node can obtain the resources in the second network scheduled by the second blockchain node, and schedule the resources in the second network to the terminal. In this way, the first blockchain node can schedule the resources in the second network to the terminal through the second blockchain node.

[0128] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0129] The embodiment of the present application can divide the resource scheduling device into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0130] like Fig.10 The following is a schematic diagram of the structure of a resource scheduling device provided in an embodiment of the present application. The resource scheduling device can be used to execute Figure 6 , Figure 7 , Figure 8 or Fig. 9 The resource scheduling method shown. Fig.10 The resource scheduling device shown includes: a receiving unit 1001 , an acquiring unit 1002 and a scheduling unit 1003 .

[0131] The receiving unit 1001 is configured to receive a resource scheduling request message. Figure 6 , the receiving unit 1001 is used to execute S601.

[0132] The acquisition unit 1002 is used to acquire the resource scheduling strategy of the terminal in the second network from the smart contract pre-deployed by the blockchain system. Figure 6 , the acquisition unit 1002 is used to execute S602.

[0133] The scheduling unit 1003 is used to schedule resources in the second network to the terminal through the second blockchain node in the second network according to the resource scheduling strategy of the terminal in the second network obtained by the obtaining unit 1002. Figure 6 , the scheduling unit 1003 is used to execute S603.

[0134] Optionally, the resource scheduling device further includes: a processing unit 1004.

[0135] Processing unit 1004 is used to obtain resource scheduling strategies of the terminal in multiple networks of the blockchain system when the terminal is within the network coverage of the first network; perform verification operations of the smart contract to obtain consensus results of resource scheduling strategies of the terminal in multiple networks; and connect the terminal to the blockchain system after consensus is reached on resource scheduling strategies of the terminal in multiple networks in the blockchain system. Figure 7 , the processing unit 1004 is used to execute S701-S703.

[0136] Optionally, the acquisition unit 1002 is specifically configured to determine the resource scheduling strategy of the terminal in the multiple networks of the blockchain system in the smart contract according to the user information of the terminal received by the receiving unit 1001; and determine the resource scheduling strategy of the terminal in the second network from the resource scheduling strategies of the terminal in the multiple networks according to the resource demand information of the terminal in the second network received by the receiving unit 1001. Figure 8 , the acquisition unit 1002 is used to execute S801-S802.

[0137] Optionally, the scheduling unit 1003 is specifically used to send the resource demand information of the terminal in the second network received by the receiving unit 1001 and the resource scheduling strategy of the terminal in the second network obtained by the obtaining unit 1002 to the second blockchain node; obtain the resources in the second network scheduled by the second blockchain node; and schedule the resources in the second network to the terminal. Fig. 9 , the scheduling unit 1003 is used to execute S901-S903.

[0138] An embodiment of the present application also provides a computer-readable storage medium, which includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer executes the resource scheduling method provided in the above embodiment.

[0139] The embodiment of the present application also provides a computer program, which can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program can implement the resource scheduling method provided in the above embodiment.

[0140] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented using software, the functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium may be any available medium that a general or special-purpose computer can access.

[0141] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0142] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0143] In addition, each functional unit in each embodiment of the present invention can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the usual technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a disk, or an optical disk.

[0144] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A resource scheduling method, characterized in that: Applied to a first blockchain node in a blockchain system; the resource scheduling method comprises: When the terminal is within the network coverage of the first network, obtaining a resource scheduling strategy for the terminal in multiple networks of the blockchain system; the multiple networks include the second network; Execute a verification operation of the smart contract to obtain a consensus result of the resource scheduling strategy of the terminal in the multiple networks; the consensus result is used to indicate whether the resource scheduling strategy of the terminal in the multiple networks has reached a consensus in the blockchain system; When the resource scheduling strategies of the terminal in the multiple networks reach a consensus in the blockchain system, connecting the terminal to the blockchain system; Receive a resource scheduling request message; the resource scheduling request message is used to request the first blockchain node in the first network to schedule resources in the second network to the terminal in the first network; the first blockchain node is any blockchain node in the blockchain system; the resource scheduling request message includes: user information of the terminal, and resource demand information of the terminal in the second network; Determine, from the smart contract pre-deployed by the blockchain system, a resource scheduling strategy of the terminal in the multiple networks of the blockchain system in the smart contract according to the user information of the terminal; determine, from the resource scheduling strategies of the terminal in the multiple networks according to the resource demand information of the terminal in the second network; According to the resource scheduling strategy of the terminal in the second network, the resources in the second network are scheduled to the terminal through the second blockchain node in the second network; the second blockchain node is any blockchain node in the blockchain system.

2. The resource scheduling method according to claim 1, characterized in that: The step of scheduling resources in the second network to the terminal through a second blockchain node in the second network according to the resource scheduling strategy of the terminal in the second network includes: Sending resource demand information of the terminal in the second network and a resource scheduling strategy of the terminal in the second network to the second blockchain node; Obtaining resources in the second network scheduled by the second blockchain node; The resources in the second network are scheduled to the terminal.

3. A resource scheduling device, characterized in that: include: Receiving unit, acquiring unit, processing unit and scheduling unit; The receiving unit is used to receive a resource scheduling request message; The resource scheduling request message is used to request the first blockchain node in the first network to schedule resources in the second network to the terminal in the first network; The first blockchain node is any blockchain node in the blockchain system; The resource scheduling request message includes: user information of the terminal and resource demand information of the terminal in the second network; The acquisition unit is used to determine, from the smart contract pre-deployed by the blockchain system, the resource scheduling strategy of the terminal in the multiple networks of the blockchain system in the smart contract according to the user information of the terminal received by the receiving unit; and determine, from the resource scheduling strategies of the terminal in the second network according to the resource demand information of the terminal in the second network received by the receiving unit, the resource scheduling strategy of the terminal in the multiple networks; The scheduling unit is configured to schedule resources in the second network to the terminal through a second blockchain node in the second network according to the resource scheduling policy of the terminal in the second network acquired by the acquisition unit; the second blockchain node is any blockchain node in the blockchain system; The processing unit is used for: When the terminal is within the network coverage of the first network, obtaining a resource scheduling strategy for the terminal in multiple networks of the blockchain system; the multiple networks include the second network; Execute the verification operation of the smart contract to obtain the consensus result of the resource scheduling strategy of the terminal in the multiple networks; the consensus result is used to indicate whether the resource scheduling strategy of the terminal in the multiple networks has reached a consensus in the blockchain system; When the resource scheduling strategies of the terminal in the multiple networks reach a consensus in the blockchain system, the terminal is connected to the blockchain system.

4. The resource scheduling device according to claim 3, characterized in that: The scheduling unit is specifically used for: Sending the resource demand information of the terminal in the second network received by the receiving unit and the resource scheduling strategy of the terminal in the second network acquired by the acquiring unit to the second blockchain node; Obtaining resources in the second network scheduled by the second blockchain node; The resources in the second network are scheduled to the terminal.

5. A resource scheduling device, characterized in that: It includes a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory through a bus; when the resource scheduling device is running, the processor executes the computer execution instructions stored in the memory, so that the resource scheduling device executes the resource scheduling method as described in any one of claims 1-2.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer is enabled to execute the resource scheduling method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Network access method and device, storage medium and network equipment

    CN111278019A

  • Cross-domain access method on block chain and server

    CN114268493A