Resource sharing method, resource sharing device and storage medium
By generating and publishing blocks through blockchain nodes, the sharing of network resources among access network devices is dynamically adjusted, which solves the problem of resource waste among access network devices and improves resource utilization and information authenticity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2023-06-07
- Publication Date
- 2026-05-05
AI Technical Summary
In the sharing of network resources among access network devices, the number of pre-allocated shared network resources in existing technologies is far lower than the actual number of idle resources, resulting in resource waste and reduced utilization.
Blocks are generated by blockchain nodes and published to the blockchain system. The number of shareable resources is predicted based on historical network resource information. After meeting its own needs, it sends sharing request information and dynamically adjusts the number of shareable resources to ensure rationality.
It improves the utilization rate of network resources of access network equipment, avoids resource waste, ensures the authenticity and immutability of information, and enhances the rationality of resource allocation.
Smart Images

Figure CN116684413B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a resource sharing method, resource sharing device and storage medium. Background Technology
[0002] In communication systems, the construction cost of access network equipment is relatively high. Currently, the main approach is to avoid redundant construction of infrastructure in access network equipment through network resource sharing, thereby reducing the construction cost of access network equipment. To achieve network resource sharing among access network equipment, each access network equipment needs to negotiate how to allocate network resources. Once an agreement is reached, the shared network resources that each access network equipment can occupy are allocated based on the lease amount or investment amount.
[0003] As mentioned above, the shared network resources available to each access network device are pre-allocated. When the amount of shared network resources available to an access network device is far less than the amount of its actual idle network resources, it will result in a waste of shared network resources, thereby reducing the utilization rate of shared network resources. Summary of the Invention
[0004] This application provides a resource sharing method, a resource sharing device, and a storage medium for improving the utilization rate of network resources in access network equipment.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] In a first aspect, this application provides a resource sharing method applied to a first blockchain node, which is an access network device that has signed an agreement with the blockchain system. The method includes: generating a first block based on the network resource information of the first blockchain node and publishing the first block to the blockchain system; predicting the number of shareable network resources of the first block within a target time period based on the historical network resource information of the first block; the target time period being a period after the current time; and sending a sharing request to the blockchain system when the number of shareable network resources exceeds a preset threshold; the sharing request is used to indicate the number of shareable network resources of the first block within the target time period.
[0007] In one possible implementation, the blockchain system includes multiple blockchain nodes, with the first blockchain node being any one of the multiple blockchain nodes. The method further includes: obtaining the configured network resource quantity of each blockchain node among the multiple blockchain nodes; determining the network resource score of each blockchain node based on the configured network resource quantity and the shareable network resource quantity of each blockchain node; determining a second blockchain node from the multiple blockchain nodes based on the network resource score; and the second blockchain node is used to update the network resource information in the block corresponding to each blockchain node.
[0008] In one possible implementation, the network resource score of each blockchain node is determined based on the number of configured network resources and the number of shareable network resources of each blockchain node. This includes: determining the average of the number of configured network resources of multiple blockchain nodes as a target mean; determining the ratio of the number of configured network resources of a blockchain node to the target mean as a first ratio of a blockchain node; determining the ratio of the number of shareable network resources of a blockchain node to the number of configured network resources of a blockchain node as a second ratio of a blockchain node; and performing a weighted sum of the first ratio and the second ratio of a blockchain node to obtain the network resource score of a blockchain node.
[0009] In one possible implementation, the method further includes: obtaining sharing request information of other blocks; other blocks are blocks corresponding to other blockchain nodes besides the first blockchain node among multiple blockchain nodes; determining the second block from the other blocks based on the number of shareable network resources in the target time period; and determining the network resources to be occupied by the first blockchain node in the target time period based on the network resource demand of the first blockchain node in the target time period and the shareable network resources of the second block.
[0010] In one possible implementation, the distance between the blockchain node corresponding to the second block and the first blockchain node is less than or equal to a preset threshold.
[0011] In one possible implementation, the method further includes sending a network resource occupancy message to the blockchain system, the network resource occupancy message being used to instruct the first blockchain node to occupy the network resource to be occupied.
[0012] Secondly, this application provides a resource sharing device applied to a first blockchain node, wherein the first blockchain node is an access network device contracted with the blockchain system. The resource sharing device includes: a processing unit; the processing unit is configured to generate a first block based on the network resource information of the first blockchain node, and to publish the first block to the blockchain system; the processing unit is further configured to predict the number of shareable network resources of the first block within a target time period based on the historical network resource information of the first block; the target time period is a period after the current time; if the number of shareable network resources is greater than a preset threshold, the processing unit is further configured to send sharing request information to the blockchain system; the sharing request information is used to indicate the number of shareable network resources of the first block within the target time period.
[0013] In one possible implementation, the resource sharing device further includes multiple blockchain nodes, with the first blockchain node being any one of the multiple blockchain nodes. The resource sharing device also includes: a communication unit; the communication unit is configured to acquire the configured network resource quantity of each blockchain node among the multiple blockchain nodes; a processing unit is further configured to determine the network resource score of each blockchain node based on the configured network resource quantity and the shareable network resource quantity of each blockchain node; the processing unit is further configured to determine a second blockchain node from the multiple blockchain nodes based on the network resource score; the second blockchain node is used to update the network resource information in the block corresponding to each blockchain node.
[0014] In one possible implementation, the processing unit is further configured to determine the average value of the number of configured network resources of multiple blockchain nodes as a target average; the processing unit is further configured to determine the ratio of the number of configured network resources of a blockchain node to the target average as a first ratio of a blockchain node; the processing unit is further configured to determine the ratio of the number of shareable network resources of a blockchain node to the number of configured network resources of a blockchain node as a second ratio of a blockchain node; the processing unit is further configured to perform a weighted summation of the first ratio and the second ratio of a blockchain node to obtain a network resource score for a blockchain node.
[0015] In one possible implementation, the communication unit is further configured to acquire sharing request information of other blocks, wherein the other blocks are blocks corresponding to other blockchain nodes besides the first blockchain node among multiple blockchain nodes; the processing unit is further configured to determine the second block from the other blocks based on the number of shareable network resources within the target time period; the processing unit is further configured to determine the network resources to be occupied by the first blockchain node within the target time period based on the network resource demand of the first blockchain node within the target time period and the shareable network resources of the second block.
[0016] In one possible implementation, the distance between the blockchain node corresponding to the second block and the first blockchain node is less than or equal to a preset threshold.
[0017] In one possible implementation, the processing unit is also used to send a network resource occupancy message to the blockchain system, which instructs the first blockchain node to occupy the network resource to be occupied.
[0018] Thirdly, this application provides a resource sharing device, which includes: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run computer programs or instructions to implement the resource sharing method as described in the first aspect and any possible implementation thereof.
[0019] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed on a terminal, cause the terminal to perform the resource sharing method as described in the first aspect and any possible implementation thereof.
[0020] Fifthly, this application provides a computer program product containing instructions that, when run on a blockchain node, cause the blockchain node to execute the resource sharing method as described in the first aspect and any possible implementation thereof.
[0021] In a sixth aspect, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run computer programs or instructions to implement the resource sharing method as described in the first aspect and any possible implementation thereof.
[0022] Specifically, the chip provided in this application also includes a memory for storing computer programs or instructions.
[0023] The above technical solution brings at least the following beneficial effects: The first blockchain node provided in this application can generate the first block in the blockchain system based on the network resource information of the first blockchain node, and predict the number of shareable network resources of the first block in the target time period based on the historical network resource information of the first block. When the first blockchain node ensures that it has sufficient network resources (i.e., the number of shareable network resources is greater than or equal to a preset threshold), it sends the shareable network resources to the blockchain system in the form of sharing request information, so that other blockchain nodes in the blockchain system can obtain the sharing request information of the first blockchain node. Thus, each blockchain node can occupy network resources based on the sharing request information in the blockchain system. Compared to pre-allocating fixed shareable network resources to each access network device (i.e., blockchain node), the blockchain node in this application can dynamically determine the number of shareable network resources in the target time period according to its own situation, ensuring the rationality of the determined number of shareable network resources as much as possible, avoiding the problem of a large difference between the number of shareable network resources and the actual number of idle network resources, resulting in many idle network resources not being shared, thereby achieving the goal of improving the network resource utilization rate of access network devices.
[0024] In addition, the blockchain system of this application can guarantee the authenticity and immutability of the information stored in the blockchain system (e.g., blocks corresponding to each blockchain node, sharing request information, etc.), avoiding the problem of the first blockchain node determining the wrong sharing request information due to information errors. Attached Figure Description
[0025] Figure 1 This application provides a schematic diagram of the structure of a blockchain system in a general technology.
[0026] Figure 2 A flowchart illustrating a resource sharing method provided in an embodiment of this application;
[0027] Figure 3 A flowchart illustrating another resource sharing method provided in this application embodiment;
[0028] Figure 4 A flowchart illustrating another resource sharing method provided in this application embodiment;
[0029] Figure 5 A flowchart illustrating another resource sharing method provided in this application embodiment;
[0030] Figure 6 A flowchart illustrating another resource sharing method provided in this application embodiment;
[0031] Figure 7This is a schematic diagram of the structure of a resource sharing device provided in an embodiment of this application;
[0032] Figure 8 This is a schematic diagram of another resource sharing device provided in an embodiment of this application. Detailed Implementation
[0033] The resource sharing method, resource sharing device, and storage medium provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0034] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0035] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0036] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0037] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0038] In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0039] In existing communication networks, operators can improve network coverage and user experience by increasing the number of access network devices. However, due to the high construction cost of access network devices, building more devices significantly increases costs, hindering improvements in network coverage and user experience. Currently, the main approach is to avoid redundant infrastructure construction among access network devices, thereby reducing construction costs. To achieve network resource sharing among access network devices, they need to negotiate resource allocation. Once an agreement is reached, each device is allocated its share of available network resources. Network resource sharing typically includes two methods (Method 1 and Method 2).
[0040] Method 1: Cooperative Construction
[0041] Method 1 refers to the joint construction of an access network device by at least two operators (i.e., shared access network device). In Method 1, each operator negotiates and determines the allocation of shared network resources to its corresponding access network device based on its investment amount and expected benefits.
[0042] Method 2: Leasing
[0043] Method 2 refers to a scenario where an access network device (referred to as Access Network Device #1) can negotiate and lease shared network resources from another access network device (referred to as Access Network Device #2) according to a certain lease agreement. In Method 2, Access Network Device #2 needs to allocate the shared network resources that Access Network Device #1 can occupy to Access Network Device #1 based on the lease agreement (e.g., lease amount) and the negotiation results.
[0044] As can be seen from the above, for both Method 1 and Method 2, the shared network resources available to each access network device are pre-allocated before network resource sharing begins and do not change with the actual amount of shared network resources used by the access network device. Even if the amount of shared network resources available to an access network device is far lower than the amount of its actual idle network resources, the available shared network resources will not change. This results in idle shared network resources, causing a waste of shared network resources and reducing the utilization rate of shared network resources.
[0045] In view of this, this application provides a resource sharing method. A first blockchain node can generate a first block in the blockchain system based on the network resource information of the first blockchain node, and predict the number of shareable network resources of the first block within a target time period based on the historical network resource information of the first block. When the first blockchain node ensures sufficient network resources for itself (i.e., the number of shareable network resources is greater than or equal to a preset threshold), it sends the shareable network resources to the blockchain system in the form of sharing request information. This allows other blockchain nodes in the blockchain system to obtain the sharing request information of the first blockchain node, enabling each blockchain node to occupy network resources based on the sharing request information in the blockchain system. Compared to pre-allocating fixed shareable network resources to each access network device (i.e., blockchain node), the blockchain node in this application can dynamically determine the number of shareable network resources within a target time period based on its own situation, ensuring the rationality of the determined number of shareable network resources as much as possible. This avoids the problem of a large discrepancy between the number of shareable network resources and the actual number of idle network resources, resulting in many idle network resources not being shared, thereby improving the network resource utilization rate of access network devices.
[0046] In addition, the blockchain system of this application can guarantee the authenticity and immutability of the information stored in the blockchain system (e.g., blocks corresponding to each blockchain node, sharing request information, etc.), avoiding the problem of the first blockchain node determining the wrong sharing request information due to information errors.
[0047] like Figure 1 As shown, Figure 1 This illustration shows a schematic diagram of a blockchain system in a general technology according to an embodiment of this application. The blockchain system includes multiple blockchain nodes 101. Each blockchain node 101 is an access network device that has signed an agreement with the blockchain system. The first blockchain node 101 is any one of the multiple blockchain nodes 101. Figure 1 Let's take two blockchain nodes, 101, as an example for illustration.
[0048] The first blockchain node 101 is used to generate the first block based on the network resource information of the first blockchain node 101, publish the first block to the blockchain system, predict the number of shareable network resources of the first block within a target time period based on the historical network resource information of the first block, and send a sharing request to the blockchain system when the number of shareable network resources is greater than a preset threshold.
[0049] The target time period is the period following the current time. The share request information indicates the amount of shareable network resources in the first block within the target time period.
[0050] In one example, the first blockchain node 101 can be any of the following: a small base station, a wireless access point, a transmission receive point (TRP), a transmission point (TP), a micro operator, or some other access node.
[0051] Furthermore, the blockchain system described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new communication systems, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0052] To address the problems existing in the prior art, this application proposes a resource sharing method to improve the utilization rate of network resources in access network devices. For example... Figure 2 As shown, the method includes:
[0053] S201. The first blockchain node generates the first block based on the network resource information of the first blockchain node, and publishes the first block to the blockchain system.
[0054] In some examples, network resource information may include the number of shareable network resources, or the number of configured network resources and idle network resources (i.e., unused network resources in the configured network resources of blockchain nodes), or the number of configured network resources, idle network resources, and shareable network resources.
[0055] Optionally, the aforementioned network resources may include at least one of the following: the number of accessing users, traffic, and physical resource block (PRB) utilization. The above is merely an exemplary description of network resources; the network resources provided in this application embodiment may also include other information (e.g., throughput), and this application does not impose any limitations on this.
[0056] S202. The first blockchain node predicts the number of shareable network resources for the first block within the target time period based on the historical network resource information of the first block.
[0057] The target time period is the time period after the current time.
[0058] As one possible implementation, when the network resource information includes the number of configured network resources and the number of idle network resources, the implementation process of S202 above can be as follows: The first blockchain node can divide the historical time period into multiple historical micro-time periods, wherein the duration of each historical micro-time period is equal to the duration of the target time period. The first blockchain node determines that the difference between the number of configured network resources and the number of idle network resources of the first block in each historical micro-time period is the number of used network resources of the first block in each historical micro-time period, and determines the average of the number of used network resources of the first block in the multiple historical micro-time periods as the number of used network resources of the first block in the target time period. The first blockchain node determines that the difference between the number of configured network resources and the number of used network resources of the first block in the target time period is the number of idle network resources of the first block in the target time period, and determines that the product of the number of idle network resources of the first block in the target time period and a preset ratio (e.g., 80%) is the number of shareable network resources of the first block in the target time period.
[0059] It should be noted that the number of network resources configured in the first block will not change easily. Therefore, the first blockchain node can determine the number of network resources configured in the first block within the target time period by using the number of network resources configured in the first block in the historical time period.
[0060] As another possible implementation, when the network resource information includes the number of shareable network resources, the implementation process of S202 above can be as follows: the first blockchain node can divide the historical time period into multiple historical micro-time periods, and determine the average number of shareable network resources of the first block in the multiple historical micro-time periods as the number of shareable network resources of the first block in the target time period.
[0061] In one alternative implementation, the target time period can consist of a micro-time period. The historical time period can consist of at least one micro-time period. The micro-time period can be represented by dates and times. For example, taking Thursdays from 10:05 to 10:10 as the micro-time period: the target time period can be Thursdays from 10:05 to 10:10 in the fourth week of May, and the historical time period can include every Thursday from the second week of March to the third week of May from 10:05 to 10:10.
[0062] Based on the above example, when the network resource information includes the number of configured network resources and the number of idle network resources, the implementation process of S202 above can be as follows: The first blockchain node can determine that the difference between the number of configured network resources and the number of idle network resources of the first block within the above-mentioned multiple Thursdays from 10:05 to 10:10 (i.e., every Thursday from the second week of March to the third week of May from 10:05 to 10:10) is the number of network resources used by the first block within the above-mentioned multiple Thursdays from 10:05 to 10:10, and determine the average value of the number of network resources used by the first block within the above-mentioned multiple Thursdays from 10:05 to 10:10 as the first historical average value of the first block. The first blockchain node determines the number of configured network resources for the first block during the Thursday of the fourth week of May (10:05-10:10) as the number of idle network resources for the first block during the Thursday of the fourth week of May (10:05-10:10), and determines the product of this number of idle network resources and a preset ratio (e.g., 80%) as the number of shareable network resources for the first block during the Thursday of the fourth week of May (10:05-10:10). In conjunction with the above example, when the network resource information includes the number of shareable network resources, the implementation process of S202 can be as follows: The first blockchain node can determine the average number of shareable network resources for the first block during the multiple Thursdays from 10:05-10:10 (i.e., each Thursday from the second week of March to the third week of May) as the second historical average, and determines this second historical average as the number of shareable network resources for the first block during the Thursday of the fourth week of May (10:05-10:10).
[0063] Optionally, if the above historical time period and target time period include time periods during weekdays and time periods during holidays, then the target first blockchain node will remove the time periods during holidays and retain the time periods during weekdays.
[0064] S203. When the number of shareable network resources exceeds a preset threshold, the first blockchain node sends a sharing request to the blockchain system.
[0065] The shared request information is used to indicate the number of shareable network resources in the first block within the target time period.
[0066] For example, the sharing request information may include: the target time period and the quantity of the aforementioned shareable network resources. The above is merely an exemplary description of the sharing request information, which may also include other information (e.g., the coverage area of the first blockchain node), and this application does not impose any limitations on this.
[0067] Optionally, the first blockchain node can set a preset threshold based on the amount of network resources configured for the blockchain node. For example, the first blockchain node may set the preset threshold to 30% of the amount of network resources configured for the first blockchain node. The above is merely an exemplary description of the preset threshold, and the preset threshold may also be other values (e.g., 35% of the amount of network resources configured for the first blockchain node), which is not limited in this application. In this case, different blockchain nodes may correspond to different preset thresholds.
[0068] Alternatively, the first blockchain node can set a preset threshold for the aforementioned multiple blockchain nodes based on experience. For example, the first blockchain node might set the preset threshold to 200. The above is merely an exemplary description of a preset threshold; the preset threshold can also be other values (e.g., 300), and this application does not impose any limitations on this. In this case, different blockchain nodes can correspond to the same preset threshold.
[0069] The above technical solution brings at least the following beneficial effects: The resource sharing method provided in this application allows a first blockchain node to generate a first block in the blockchain system based on its network resource information. Based on the historical network resource information of the first block, the method predicts the number of shareable network resources available for the first block within a target time period. When the first blockchain node ensures sufficient network resources (i.e., the number of shareable network resources is greater than or equal to a preset threshold), it sends the shareable network resources to the blockchain system in the form of a sharing request. This allows other blockchain nodes in the system to obtain the first blockchain node's sharing request information, enabling each node to occupy network resources based on the sharing request information. Compared to pre-allocating fixed shareable network resources to each access network device (i.e., blockchain node), the blockchain node in this application can dynamically determine the number of shareable network resources within a target time period based on its own situation. This ensures the reasonableness of the determined number of shareable network resources and avoids the problem of many idle network resources not being shared due to a large difference between the number of shareable network resources and the actual number of idle network resources, thereby improving the network resource utilization rate of access network devices.
[0070] In addition, the blockchain system of this application can guarantee the authenticity and immutability of the information stored in the blockchain system (e.g., blocks corresponding to each blockchain node, sharing request information, etc.), avoiding the problem of the first blockchain node determining the wrong sharing request information due to information errors.
[0071] In an optional embodiment, the resource sharing device provided in this application may include multiple blockchain nodes, and the first blockchain node may be any one of the multiple blockchain nodes. Each blockchain node can store the blocks corresponding to the multiple blockchain nodes to ensure data security and prevent tampering. However, the network resource information in the blocks corresponding to each blockchain node is constantly updated. If the blockchain nodes communicate with each other to update the network resource information in the blocks, it will increase the communication overhead in the blockchain system. To reduce the communication overhead in the blockchain system, this application provides a second blockchain node, which updates the network resource information in the blocks corresponding to each blockchain node. Figure 2 ,like Figure 3 As shown, the process by which the first blockchain node determines the second blockchain node can be determined through the following steps S301 to S303.
[0072] S301, The first blockchain node obtains the configured network resource quantity of each blockchain node among multiple blockchain nodes.
[0073] Optionally, the number of network resources configured above can be the total number of network resources that the first blockchain node can use.
[0074] Alternatively, if the number of connected users and / or traffic and / or PRB utilization (i.e., the amount of network resources) of the first blockchain node is too large, it will cause the first blockchain node to be overloaded, which may lead to the failure of the first blockchain node. Based on this, the above-mentioned configuration of the amount of network resources can also be the maximum amount of network resources for the first blockchain node without triggering node failure.
[0075] Optionally, if an access network device wants to join the aforementioned blockchain system and become a blockchain node (i.e., sign an agreement with the blockchain system), the access network device needs to send its registration information to each of the existing blockchain nodes in the system. If each of the aforementioned blockchain nodes agrees to the access network device joining, each blockchain node stores the access network device's registration information and updates the data of the newly joined blockchain node to ensure data consistency across all blockchain nodes in the blockchain system.
[0076] In one example, the registration information may include at least one of the following: the name of the operator to which the access network equipment belongs, the contact information of the operator to which the access network equipment belongs, the address of the operator to which the access network equipment belongs, and information on all terminal devices under the access network equipment (including all resident terminal devices and some non-resident terminal devices). The above is only an exemplary description of the registration information, and the registration information may also include other information, which this application does not limit in any way.
[0077] S302. The first blockchain node determines the network resource score of each blockchain node based on the configured network resource quantity and the shareable network resource quantity of each blockchain node.
[0078] Optionally, the first blockchain node can also determine the network resource score of each blockchain node based on the configured network resource quantity, the shareable network resource quantity, and the block value. The aforementioned block value can be used to represent the ratio of the sum of consumption amounts of all terminal devices under that blockchain node to the total number of all terminal devices.
[0079] S303. The first blockchain node determines the second blockchain node from multiple blockchain nodes based on network resource scoring.
[0080] The second blockchain node is used to update the network resource information in the block corresponding to each blockchain node.
[0081] In one optional implementation, the above S303 implementation process can be as follows: the first blockchain node can sort multiple blockchain nodes from largest to smallest based on network resource scores to obtain a first target sequence, and determine the blockchain node whose position is first in the first target sequence as the second blockchain node.
[0082] As another optional implementation method, the implementation process of S303 above can be as follows: the first blockchain node can determine the preset threshold for scoring based on historical experience, and determine the blockchain node whose network resource score is greater than or equal to the preset threshold for scoring from the above multiple blockchain nodes as the candidate second blockchain node.
[0083] If the number of candidate second blockchain nodes is equal to 1, the first blockchain node can directly determine the candidate second blockchain node as the second blockchain node.
[0084] If the number of candidate second blockchain nodes is greater than 1, the first blockchain node can determine the candidate second blockchain node with the highest network resource score from among the multiple candidate second blockchain nodes as the second blockchain node.
[0085] If the number of candidate second blockchain nodes is less than 1, the first blockchain node can adjust the preset scoring threshold and, based on the adjusted preset scoring threshold, select blockchain nodes (i.e. candidate second blockchain nodes) from the plurality of blockchain nodes whose network resource scores are greater than or equal to the new preset scoring threshold, until the number of candidate second blockchain nodes is greater than or equal to 1, and determine the second blockchain node from the candidate second blockchain nodes.
[0086] Optionally, the aforementioned scoring threshold can be preset or dynamically adjusted based on changes in the network resource scores of multiple blockchain nodes. This application does not impose any restrictions on this.
[0087] In one possible implementation, the second blockchain node can also be used to update the location information of each blockchain node. If the location information of any blockchain node changes, the second blockchain node can send a location update message to the blockchain system. This location update message indicates the changed location information of the blockchain node, allowing other blockchain nodes to obtain this changed location information from the blockchain system.
[0088] The above technical solution brings at least the following beneficial effects: The resource sharing method provided in this application allows a first blockchain node to obtain the configured network resource quantity of multiple blockchain nodes, and based on the configured network resource quantity and the shareable network resource quantity of these multiple blockchain nodes, determine the network resource score of each blockchain node. Based on this network resource score, the first blockchain node determines a second blockchain node from among the multiple blockchain nodes. Thus, by having one blockchain node (i.e., the second blockchain node) update the network resource information in the block corresponding to each blockchain node, other blockchain nodes can obtain the updated network resource information of each blockchain node in the blockchain system. This saves the communication overhead caused by the back-and-forth transmission of network resource information between blockchain nodes, thereby reducing the communication burden on the blockchain system.
[0089] In an optional embodiment, as shown in S302, the first blockchain node determines the network resource score of each blockchain node based on the configured network resource quantity and the shareable network resource quantity of each blockchain node. Figure 3 Based on the illustrated method embodiments, this embodiment provides a possible implementation, such as... Figure 4 As shown, the process by which the first blockchain node determines the network resource score (i.e., S302) of each blockchain node based on the configured network resource quantity and the shareable network resource quantity of each blockchain node can be determined through the following S401 to S404.
[0090] S401, The first blockchain node determines the average number of network resources configured by multiple blockchain nodes as the target average.
[0091] For example, in a blockchain system with three blockchain nodes (denoted as blockchain node #1, blockchain node #2, and blockchain node #3), blockchain node #1 has a configured network resource quantity of 100, blockchain node #2 has a configured network resource quantity of 200, and blockchain node #3 has a configured network resource quantity of 300: the first blockchain node can determine that the average of the above targets is 200.
[0092] S402. The first blockchain node determines the first ratio of a blockchain node as the ratio of the number of configured network resources to the target average.
[0093] Based on the above examples, the first ratio of blockchain node #1 is 0.5, the first ratio of blockchain node #2 is 1, and the first ratio of blockchain node #3 is 1.5.
[0094] S403, The first blockchain node determines a second ratio of the ratio of the number of shareable network resources of a blockchain node to the number of configured network resources of a blockchain node.
[0095] As an optional implementation, the amount of shareable network resources of the aforementioned blockchain nodes can be determined based on the amount of idle network resources of the aforementioned blockchain nodes and a preset ratio. For example, the preset ratio is 80%. The above is merely an exemplary description of the preset ratio, and the preset ratio can also be other values (e.g., 85%), which are not limited in this application.
[0096] S404. The first blockchain node performs a weighted sum of the first ratio of a blockchain node and the second ratio of a blockchain node to obtain the network resource score of a blockchain node.
[0097] Optionally, the network resource score of the above blockchain node can satisfy the following formula 1:
[0098] S=ω1*A+ω2*B Formula 1
[0099] Where S is the network resource score of the blockchain node. A is the first ratio of the blockchain node. B is the second ratio of the blockchain node. ω1 is the weight corresponding to the ratio. ω2 is the weight corresponding to the ratio. Both ω1 and ω2 are within the range of 0 to 1, and the sum of ω1 and ω2 is equal to 1.
[0100] As one possible implementation, the first blockchain node can also perform a weighted summation of the first ratio, the second ratio, and the block value to obtain a network resource score for the blockchain node. In this case, the network resource score of the aforementioned blockchain node can satisfy the following formula 2:
[0101] S=ω1*A+ω2*B+ω3*C Formula 2
[0102] Where ω3 is the weight corresponding to the block value. C is the block value of the blockchain node. ω1, ω2, and ω2 are all within the range of 0 to 1, and the sum of ω1, ω2, and ω2 is equal to 1.
[0103] The above technical solution brings at least the following beneficial effects: In the resource sharing method provided by this application, the first blockchain node can determine the target average based on the number of configured network resources of the above-mentioned multiple blockchain nodes, and determine the network resource score of a blockchain node based on the network resource data of a blockchain node (e.g., the number of shareable network resources, the number of configured network resources) and the above-mentioned target average. In this way, the first blockchain node can determine the network resource score of each blockchain node based on the above method, providing a data basis for the first blockchain node to determine the second blockchain node.
[0104] In one optional embodiment, after determining the number of shareable network resources for the first block within the target time period, the first blockchain node also needs to determine its own pending network resources within the target time period, so that it can subsequently select shareable network resources based on the pending network resources. Figure 4 Based on the illustrated method embodiments, this embodiment provides a possible implementation, such as... Figure 5 As shown, the process by which the first blockchain node determines the network resources to be occupied by the first blockchain node within the target time period can be determined by the following steps S501 to S503.
[0105] S501, the first blockchain node obtains sharing request information from other blocks.
[0106] Among them, the other blocks are the blocks corresponding to the other blockchain nodes besides the first blockchain node.
[0107] For example, a blockchain system includes four blocks (e.g., block #1, block #2, block #3, and block #4). If block #1 is the first block, then the other blocks include block #2, block #3, and block #4.
[0108] S502, The first blockchain node determines the second block from other blocks based on the number of shareable network resources within the target time period.
[0109] In one optional implementation, the above S502 implementation process can be as follows: the first blockchain node can sort multiple other blocks from largest to smallest based on the number of shareable network resources of each other block in the target time period to obtain a second target sequence, and determine the other blocks in the second target sequence whose sorting position is first as the second block.
[0110] As another optional implementation, the above S502 implementation process can be as follows: the first blockchain node can set a quantity threshold based on historical experience, and determine other blocks from the above multiple other blocks whose number of shareable network resources is greater than or equal to the quantity threshold as the candidate second blocks.
[0111] If the number of candidate second blocks is equal to 1, the first blockchain node can directly determine the candidate second block as the second block.
[0112] If the number of candidate second blocks is greater than 1, the first blockchain node can determine the candidate second block with the largest number of shareable network resources from among the multiple candidate second blocks as the second block.
[0113] If the number of candidate second blocks is less than 1, the first blockchain node can adjust the above-mentioned quantity threshold, and based on the adjusted quantity threshold, select blocks (i.e. candidate second blocks) from the above-mentioned multiple other blocks whose number of shareable network resources is greater than or equal to the new quantity threshold, until the number of candidate second blocks is greater than or equal to 1, and determine the second block from the above-mentioned multiple candidate second blocks.
[0114] Optionally, the aforementioned quantity threshold can be determined by the first blockchain node based on the network resource demand of the first blockchain node within the target time period, or it can be dynamically adjusted based on the changes in the amount of shareable network resources of multiple blocks. This application does not impose any restrictions on this.
[0115] In one optional embodiment, the distance between the blockchain node corresponding to the second block and the first blockchain node is less than or equal to a preset distance threshold.
[0116] In conjunction with the above optional embodiments, the process of the first blockchain node determining the second block can be as follows: Each blockchain node can also send its location information (e.g., latitude and longitude) to the blockchain system. The first blockchain node determines the distance between itself and other blockchain nodes (i.e., blockchain nodes other than itself among multiple blockchain nodes) based on their location information published in the blockchain system and its own location information. It then identifies blockchain nodes whose distance is greater than or equal to a preset distance threshold as candidate blockchain nodes. Based on the number of shareable network resources within a target time period, the first blockchain node determines the second block from the blocks corresponding to the candidate blockchain nodes. The implementation process of the first blockchain node determining the second block based on the number of shareable network resources can be understood by referring to the description of the corresponding positions above, and will not be repeated here.
[0117] For example, the first blockchain node can set a preset distance threshold based on experience. For instance, the first blockchain node can set the preset distance threshold to 1000 meters. The above is merely an exemplary description of a preset distance threshold; the preset distance threshold can also be other values (e.g., 2000 meters), and this application does not impose any limitations on this.
[0118] Understandably, the first blockchain node filters multiple blockchain nodes based on a preset distance threshold to obtain candidate blockchain nodes, making the distance between the candidate blockchain nodes and the first blockchain node relatively close. Consequently, the distance between the blockchain node corresponding to the second block determined from the candidate blockchain nodes and the first blockchain node is also relatively close. In this way, during subsequent communication between the first blockchain node and the blockchain node corresponding to the second block, it is possible to avoid situations where the path loss of the transmission signal is large, resulting in poor transmission signal quality or dropped calls.
[0119] S503. The first blockchain node determines the network resources to be occupied by the first blockchain node within the target time period based on the network resource demand of the first blockchain node within the target time period and the shareable network resources of the second block.
[0120] As one possible implementation, the first blockchain node can select from the shared network resources of the second block that better meet its own business needs (e.g., quantity requirements, business type requirements, etc.) as the network resources to be occupied within the target time period.
[0121] Optionally, the other blocks mentioned above may include one or more second blocks. If a second block is included among the other blocks, the first blockchain node can directly select from the shared network resources of the second block that better suit its own business needs (e.g., quantity requirements, business type requirements, etc.) as the network resource to be occupied within the target time period.
[0122] In cases where other blocks include multiple second blocks, the first blockchain node can select from the shared network resources of each of the multiple second blocks which better suits its own business needs (e.g., quantity requirements, business type requirements, etc.) as the network resources to be occupied within the target time period; it can also select one block (denoted as the target block) from the multiple second blocks and select from the shared network resources of the target block which better suits its own business needs (e.g., quantity requirements, business type requirements, etc.) as the network resources to be occupied within the target time period.
[0123] It is understood that the resource sharing method provided in this application incorporates blockchain technology. In a blockchain system, the system can collect and store sharing request information for each block. Blockchain nodes only need to obtain this sharing request information and select network resources based on it. This eliminates the need for negotiation and pre-allocation of network resources between blockchain nodes; instead, each node simply selects network resources and occupies them according to the occupancy rules (e.g., the method and conditions for occupying network resources).
[0124] Optionally, after the first blockchain node occupies the shareable network resources of other second blocks, it may not compensate the blockchain node to which the occupied second block belongs, which is equivalent to occupying the shared network resources for free; or it may compensate the blockchain node to which the occupied second block belongs, which is equivalent to renting or selling the shared network resources.
[0125] The above technical solution brings at least the following beneficial effects: The resource sharing method provided in this application allows the first blockchain node to autonomously determine the network resources to be occupied by the first blockchain node within the target time period based on the network resource demand of the first blockchain node within the target time period and the shareable network resources of the second block. This can make the number of network resources to be occupied by the first blockchain node as consistent as possible with the number of shared network resources actually needed, avoiding the problem of waste of shared network resources caused by a large difference between the number of network resources to be occupied and the number of shared network resources actually used, thereby improving the utilization rate of shared network resources.
[0126] In an optional embodiment, after the first blockchain node determines the network resources to be occupied within the target time period (i.e., S503), the first blockchain node sends a network resource occupation message to the blockchain system to prevent other blockchain nodes from repeatedly occupying the aforementioned network resources. Combined with... Figure 5 ,like Figure 6 As shown, the process of the first blockchain node sending a network resource occupancy message to the blockchain system can be determined by the following S601.
[0127] S601, The first blockchain node sends a network resource occupancy message to the blockchain system.
[0128] Among them, the network resource occupancy message is used to instruct the first blockchain node to occupy the network resources to be occupied.
[0129] In one alternative implementation, when the first blockchain node no longer occupies the aforementioned network resources to be occupied, the first blockchain node can also send network resource return information to the blockchain system so that other blockchain nodes can receive the latest status information of the aforementioned network resources to be occupied and thus be able to choose to occupy the aforementioned network resources again.
[0130] The above technical solution brings at least the following beneficial effects: In the resource sharing method provided by this application, the first blockchain node can send a network resource occupation message to the blockchain system to avoid other blockchain nodes repeatedly occupying the above-mentioned network resources to be occupied in the same time period (i.e., the above-mentioned target time period).
[0131] It is understood that the above-described resource-sharing method can be implemented by a resource-sharing device. To achieve the above functions, the resource-sharing device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, the embodiments disclosed in this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments disclosed in this application.
[0132] The embodiments disclosed in this application can divide the resource sharing device generated by the above method examples into functional modules. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in the embodiments disclosed in this application is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0133] Figure 7 This is a schematic diagram of a resource sharing device provided in an embodiment of the present invention. Figure 7 As shown, the resource sharing device 70 can be used to perform... Figures 2-6 The resource sharing method is shown. The resource sharing device 70 is applied to a first blockchain node, and the resource sharing device 70 includes a processing unit 701.
[0134] Processing unit 701 is used to generate a first block based on the network resource information of the first blockchain node, and to publish the first block to the blockchain system; processing unit 701 is also used to predict the number of shareable network resources of the first block within a target time period based on the historical network resource information of the first block; the target time period is the time period after the current time; if the number of shareable network resources is greater than a preset threshold, processing unit 701 is also used to send sharing request information to the blockchain system; the sharing request information is used to indicate the number of shareable network resources of the first block within the target time period.
[0135] In one possible implementation, the resource sharing device further includes a communication unit 702. The communication unit 702 is used to acquire the configured network resource quantity of each blockchain node among multiple blockchain nodes; the processing unit 701 is further used to determine the network resource score of each blockchain node based on the configured network resource quantity and the shareable network resource quantity of each blockchain node; the processing unit 701 is further used to determine a second blockchain node from among the multiple blockchain nodes based on the network resource score; the second blockchain node is used to update the network resource information in the block corresponding to each blockchain node.
[0136] In one possible implementation, processing unit 701 is further configured to determine the average value of the number of configured network resources of multiple blockchain nodes as a target average; processing unit 701 is further configured to determine the ratio of the number of configured network resources of a blockchain node to the target average as a first ratio of a blockchain node; processing unit 701 is further configured to determine the ratio of the number of shareable network resources of a blockchain node to the number of configured network resources of a blockchain node as a second ratio of a blockchain node; processing unit 701 is further configured to perform a weighted summation of the first ratio and the second ratio of a blockchain node to obtain a network resource score for a blockchain node.
[0137] In one possible implementation, the communication unit 702 is further configured to acquire sharing request information of other blocks, wherein the other blocks are blocks corresponding to other blockchain nodes besides the first blockchain node among multiple blockchain nodes; the processing unit 701 is further configured to determine the second block from the other blocks based on the number of shareable network resources within the target time period; the processing unit 701 is further configured to determine the network resources to be occupied by the first blockchain node within the target time period based on the network resource demand of the first blockchain node within the target time period and the shareable network resources of the second block.
[0138] In one possible implementation, the processing unit 701 is further configured to send a network resource occupancy message to the blockchain system, the network resource occupancy message being used to instruct the first blockchain node to occupy the network resources to be occupied.
[0139] When implementing the functions of the integrated modules described above in hardware, this embodiment of the invention provides a possible structural diagram of the resource sharing device involved in the above embodiments. For example... Figure 8 As shown, a resource sharing device 80, for example, is used to perform... Figures 2-6 The resource sharing method is illustrated. The resource sharing device 80 includes a processor 801, a memory 802, a bus 803, and a communication interface 804. The processor 801 and the memory 802 can be connected via the bus 803.
[0140] Processor 801 is the control center of the user equipment. It can be a single processor or a collective term for multiple processing elements. For example, processor 801 can be a general-purpose central processing unit (CPU) 802, or other general-purpose processors. The general-purpose processor can be a microprocessor or any conventional processor.
[0141] As one embodiment, processor 801 may include one or more CPUs, such as CPU 0 and CPU 1.
[0142] As an example, combined Figure 8 The processing unit 701 in the resource sharing device performs the same functions as... Figure 8 The processor 801 in it has the same function.
[0143] The memory 802 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0144] In one possible implementation, the memory 802 can exist independently of the processor 801. The memory 802 can be connected to the processor 801 via a bus 803 and is used to store instructions or program code. When the processor 801 calls and executes the instructions or program code stored in the memory 802, it can implement the map drawing method provided in this embodiment of the invention.
[0145] In another possible implementation, the memory 802 can also be integrated with the processor 801.
[0146] The 803 bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into address bus, data bus, and control bus, etc. For ease of representation, Figure 8 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0147] The communication interface 804 is used to connect with other devices via a communication network. This communication network can be Ethernet, a wireless access network, a wireless local area network (WLAN), etc. The communication interface 804 may include a communication unit 702 for receiving data.
[0148] In one design, the communication interface 804 in the resource sharing device 80 provided in this embodiment of the invention can also be integrated into the processor.
[0149] It should be pointed out that, Figure 8 The structure shown does not constitute a limitation on the resource-sharing device 80. Except... Figure 8 In addition to the components shown, the resource sharing device 80 may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0150] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above 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. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0151] This disclosure also provides a computer-readable storage medium storing instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the resource sharing method provided in the embodiments of this disclosure described above.
[0152] This disclosure also provides a computer program product containing instructions that, when run on an electronic device, cause the electronic device to execute the resource sharing method provided in the above-described embodiments of this disclosure.
[0153] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires; portable computer disks; hard disks; random access memory (RAM); read-only memory (ROM); erasable programmable read-only memory (EPROM); registers; hard disks; optical fibers; portable compact disc read-only memory (CD-ROM); optical storage devices; magnetic storage devices; or any suitable combination thereof; or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0154] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A resource sharing method, characterized in that, The method is applied to a first blockchain node, which is an access network device that has signed an agreement with the blockchain system. The blockchain system includes multiple blockchain nodes, and the first blockchain node is any one of the multiple blockchain nodes. The method includes: Based on the network resource information of the first blockchain node, a first block is generated and published to the blockchain system; Based on the historical network resource information of the first block, predict the number of shareable network resources of the first block within a target time period; the target time period is the period after the current time. If the number of shareable network resources exceeds a preset threshold, a sharing request message is sent to the blockchain system; the sharing request message is used to indicate the number of shareable network resources of the first block within the target time period. Obtain sharing request information for other blocks; the other blocks are the blocks corresponding to other blockchain nodes besides the first blockchain node among the plurality of blockchain nodes; Based on the number of shareable network resources within the target time period, a second block is determined from the other blocks; the distance between the blockchain node corresponding to the second block and the first blockchain node is less than or equal to a preset threshold. Based on the network resource demand of the first blockchain node during the target time period and the shareable network resources of the second block, the network resources to be occupied by the first blockchain node during the target time period are determined.
2. The method according to claim 1, characterized in that, The method further includes: Obtain the configured network resource quantity for each of the plurality of blockchain nodes; The network resource score of each blockchain node is determined based on the configured network resource quantity and the shareable network resource quantity of each blockchain node. Based on the network resource score, a second blockchain node is determined from the plurality of blockchain nodes; the second blockchain node is used to update the network resource information in the block corresponding to each blockchain node.
3. The method according to claim 2, characterized in that, The process of determining the network resource score for each blockchain node based on the configured network resource quantity and the shareable network resource quantity of each blockchain node includes: The average number of configured network resources for the multiple blockchain nodes is determined as the target average. The ratio of the configured network resource quantity of a blockchain node to the target average is determined as the first ratio value of the blockchain node; The ratio of the number of shareable network resources of a blockchain node to the number of configured network resources of the blockchain node is determined as the second ratio value of the blockchain node; The network resource score of a blockchain node is obtained by weighted summing of the first ratio and the second ratio of the blockchain node.
4. The method according to claim 1, characterized in that, The method further includes: Send a network resource occupancy message to the blockchain system; the network resource occupancy message is used to instruct the first blockchain node to occupy the network resource to be occupied.
5. A resource sharing device, characterized in that, Applied to a first blockchain node, the first blockchain node is an access network device that has signed an agreement with the blockchain system. The blockchain system includes multiple blockchain nodes, and the first blockchain node is any one of the multiple blockchain nodes. The resource sharing device includes: a processing unit. The processing unit is configured to generate a first block based on the network resource information of the first blockchain node, and publish the first block to the blockchain system. The processing unit is further configured to predict the number of shareable network resources of the first block within a target time period based on the historical network resource information of the first block; the target time period is the time period after the current time. The processing unit is further configured to send a sharing request message to the blockchain system when the number of shareable network resources is greater than a preset threshold; the sharing request message is used to indicate the number of shareable network resources of the first block within the target time period; The processing unit is further configured to obtain sharing request information for other blocks; the other blocks are the blocks corresponding to other blockchain nodes among the plurality of blockchain nodes other than the first blockchain node; The processing unit is further configured to determine a second block from the other blocks based on the number of shareable network resources within the target time period; the distance between the blockchain node corresponding to the second block and the first blockchain node is less than or equal to a preset threshold. The processing unit is further configured to determine the network resources to be occupied by the first blockchain node within the target time period based on the network resource demand of the first blockchain node within the target time period and the shareable network resources of the second block.
6. The resource sharing device according to claim 5, characterized in that, The blockchain system includes multiple blockchain nodes, the first blockchain node being any one of the multiple blockchain nodes, and the resource sharing device further includes: a communication unit; The communication unit is used to obtain the number of configured network resources for each of the plurality of blockchain nodes; The processing unit is further configured to determine the network resource score of each blockchain node based on the configured network resource quantity and the shareable network resource quantity of each blockchain node. The processing unit is further configured to determine a second blockchain node from the plurality of blockchain nodes based on the network resource score; the second blockchain node is configured to update the network resource information in the block corresponding to each blockchain node.
7. The resource sharing device according to claim 6, characterized in that, The processing unit is further configured to determine the average value of the configured network resources of the plurality of blockchain nodes as the target average value; The processing unit is further configured to determine the ratio of the configured network resource quantity of a blockchain node to the target average as the first ratio value of the blockchain node; The processing unit is further configured to determine the ratio of the number of shareable network resources of a blockchain node to the number of configured network resources of a blockchain node as a second ratio value of the blockchain node. The processing unit is further configured to perform a weighted summation of the first ratio and the second ratio of the blockchain node to obtain the network resource score of the blockchain node.
8. The resource sharing device according to claim 5, characterized in that, The processing unit is further configured to send a network resource occupancy message to the blockchain system; the network resource occupancy message is used to instruct the first blockchain node to occupy the network resource to be occupied.
9. A resource sharing device, characterized in that, include: A processor and a communication interface; the communication interface is coupled to the processor, the processor being used to run computer programs or instructions to implement the resource sharing method as described in any one of claims 1-4.
10. A computer-readable storage medium storing instructions, characterized in that, When the computer executes the instruction, the computer performs the resource sharing method described in any one of claims 1-4.
Citation Information
Patent Citations
Frequency spectrum sharing method based on block chain, base station equipment and block chain network
CN110719593A