Search

CN-116684413-B - Resource sharing method, resource sharing device and storage medium

CN116684413BCN 116684413 BCN116684413 BCN 116684413BCN-116684413-B

Abstract

The application provides a resource sharing method, a resource sharing device and a storage medium, relates to the technical field of communication, and is used for improving the utilization rate of network resources of access network equipment. The method is applied to a first blockchain node, the first blockchain node is access network equipment signed with a blockchain system, the method comprises the steps of generating a first block according to network resource information of the first blockchain node, issuing the first block into the blockchain system, predicting the sharable network resource quantity of the first block in a target time period according to historical network resource information of the first block, sending sharing request information to the blockchain system when the target time period is a time period after the current time, and indicating the sharable network resource quantity of the first block in the target time period when the sharable network resource quantity is larger than a preset threshold value.

Inventors

  • WU ZHENGGUANG
  • PENG JIALI
  • SHI YU
  • MIAO YAN

Assignees

  • 中国联合网络通信集团有限公司

Dates

Publication Date
20260505
Application Date
20230607

Claims (10)

  1. 1. A method of resource sharing, applied to a first blockchain node, the first blockchain node being an access network device subscribed to a blockchain system, the blockchain system including a plurality of blockchain nodes, the first blockchain node being any one of the plurality of blockchain nodes, the method comprising: generating a first block according to the network resource information of the first block chain node, and publishing the first block to the block chain system; predicting the number of sharable network resources of the first block in a target time period according to the historical network resource information of the first block; Sending sharing request information to the blockchain system when the number of the sharable network resources is larger than a preset threshold value, wherein the sharing request information is used for indicating the number of the sharable network resources of the first block in the target time period; Obtaining sharing request information of other blocks, wherein the other blocks are blocks corresponding to other block chain link points except the first block chain node in the plurality of block chain nodes; determining a second block from the other blocks based on the number of sharable network resources in the target time period, wherein the distance between a blockchain node corresponding to the second block and the first blockchain node is smaller than or equal to a preset threshold value; Based on the network resource demand of the first blockchain node and the sharable network resources of the second block during the target time period, determining network resources of the first blockchain node to be occupied during the target time period.
  2. 2. The method according to claim 1, wherein the method further comprises: acquiring the number of configured network resources of each block link point in the plurality of block link nodes; Determining a network resource score of each block chain node according to the configured network resource quantity of each block chain node and the sharable network resource quantity; and determining a second blockchain node from the plurality of blockchain nodes based on the network resource scores, wherein the second blockchain node is used for updating the network resource information in the block corresponding to each blockchain node.
  3. 3. The method of claim 2, wherein said determining a network resource score for each blockchain node based on the configured network resource quantity and the sharable network resource quantity for each blockchain node comprises: determining an average value of the number of the configured network resources of the plurality of block link points as a target average value; determining the ratio of the number of the configured network resources of one block chain link point to the target average value as a first ratio of the one block chain node; Determining a ratio of the number of sharable network resources of the one blockchain node to the number of allocated network resources of the one blockchain node as a second ratio of the one blockchain node; And carrying out weighted summation on the first ratio of the one blockchain node and the second ratio of the one blockchain node to obtain the network resource score of the one blockchain node.
  4. 4. The method according to claim 1, wherein the method further comprises: and the network resource occupation message is used for indicating the first block link point to occupy the network resource to be occupied.
  5. 5. The resource sharing device is characterized by being applied to a first blockchain node, wherein the first blockchain node is access network equipment signed with a blockchain system, the blockchain system comprises a plurality of blockchain nodes, the first blockchain node is any blockchain node in the plurality of blockchain nodes, and the resource sharing device comprises a processing unit; The processing unit is used for generating a first block according to the network resource information of the first block chain node and issuing the first block into the block chain system; the processing unit is further configured to predict, according to the historical network resource information of the first block, the number of sharable network resources of the first block in a target time period; The processing unit is further configured to send sharing request information to the blockchain system when the number of sharable network resources is greater than a preset threshold; the sharing request information is used for indicating the sharable network resource quantity of the first block in the target time period; the processing unit is further used for acquiring sharing request information of other blocks, wherein the other blocks are blocks corresponding to other block link points except the first block link node in the block chain nodes; The processing unit is further configured to determine a second block from the other blocks based on the number of sharable network resources in the target time period, where a distance between a 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, based on the network resource demand of the first blockchain node and the sharable network resources of the second block in the target time period, network resources to be occupied by the first blockchain node in the target time period.
  6. 6. The apparatus according to claim 5, wherein the blockchain system includes a plurality of blockchain nodes, the first blockchain node being any one of the plurality of blockchain nodes, the apparatus further comprising a communication unit; the communication unit is used for acquiring the number of the configured network resources of each block link point in the plurality of block link nodes; the processing unit is further configured to determine a network resource score of each blockchain node according to the configured network resource number and the sharable network resource number 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, where the second blockchain node is configured to update network resource information in a block corresponding to each blockchain node.
  7. 7. The resource sharing apparatus as claimed in claim 6, wherein, The processing unit is further configured to determine an average value of the configured network resource numbers of the plurality of block link points as a target average value; The processing unit is further configured to determine that a ratio of the number of configured network resources of one block link node to the target average value is a first ratio of the one block link node; The processing unit is further configured to determine that a ratio of the number of sharable network resources of the one blockchain node to the number of configured network resources of the one blockchain node is a second ratio of the one blockchain node; the processing unit is further configured to perform weighted summation on the first ratio of the one blockchain node and the second ratio of the one blockchain node to obtain a network resource score of the one blockchain node.
  8. 8. The resource sharing apparatus as claimed in claim 5, wherein, The processing unit is further configured to send a network resource occupation message to the blockchain system, where the network resource occupation message is used to instruct the first blockchain link point to occupy the network resource to be occupied.
  9. 9. A resource sharing arrangement comprising a processor and a communication interface, the communication interface and the processor being coupled, the processor being operable to execute a computer program or instructions to implement a resource sharing method as claimed in any one of claims 1 to 4.
  10. 10. A computer readable storage medium having instructions stored therein, characterized in that when executed by a computer, the computer performs the resource sharing method as claimed in any one of the preceding claims 1-4.

Description

Resource sharing method, resource sharing device and storage medium Technical Field The present application relates to the field of communications technologies, and in particular, to a resource sharing method, a resource sharing device, and a storage medium. Background In a communication system, the construction cost of access network equipment is high. At present, the repeated construction of infrastructure in access network equipment is avoided mainly through a network resource sharing method, and the effect of reducing the construction cost of the access network equipment is achieved. If network resource sharing between access network devices is desired, negotiation is required between the access network devices based on how network resources are allocated, and under the condition that negotiation is agreed, shared network resources which can be occupied by the access network devices are respectively allocated for the access network devices based on lease amount or investment amount. Based on the above, the shared network resources that can be occupied by each access network device are pre-allocated. Under the condition that the number of shared network resources which can be occupied by the access network equipment is far lower than the number of network resources which are actually idle, the problem of waste of the shared network resources can be caused, and the utilization rate of the shared network resources is further reduced. Disclosure of Invention The application provides a resource sharing method, a resource sharing device and a storage medium, which are used for improving the utilization rate of network resources of access network equipment. In order to achieve the above purpose, the application adopts the following technical scheme: In a first aspect, the present application provides a resource sharing method applied to a first blockchain node, where the first blockchain node is an access network device subscribed to a blockchain system, the method includes generating a first block according to network resource information of the first blockchain node, and publishing the first block to the blockchain system; the method comprises the steps of predicting the number of sharable network resources of a first block in a target time period according to historical network resource information of the first block, wherein the target time period is a time period after the current time, sending sharing request information to a block chain system under the condition that the number of sharable network resources is larger than a preset threshold value, and the sharing request information is used for indicating the number of sharable network resources of the first block in the target time period. In one possible implementation, the blockchain system includes a plurality of blockchain nodes, the first blockchain node being any one of the plurality of blockchain nodes, the method further includes obtaining a configured network resource quantity for each of the plurality of blockchain nodes, determining a network resource score for each of the blockchain nodes based on the configured network resource quantity and the sharable network resource quantity for each of the blockchain nodes, determining a second blockchain node from the plurality of blockchain nodes based on the network resource scores, and the second blockchain node being configured to update network resource information in a block corresponding to each of the blockchain nodes. In one possible implementation, determining the network resource score of each blockchain node according to the configured network resource quantity and the sharable network resource quantity of each blockchain node includes determining an average value of the configured network resource quantities of a plurality of blockchain nodes as a target average value, determining a ratio of the configured network resource quantity of one blockchain node to the target average value as a first ratio of one blockchain node, determining a ratio of the sharable network resource quantity of one blockchain node to the configured network resource quantity of one blockchain node as a second ratio of one blockchain node, and weighting and summing the first ratio of one blockchain node and the second ratio of one blockchain node to obtain the network resource score of one blockchain node. In one possible implementation, the method further includes obtaining sharing request information of other blocks, wherein the other blocks are blocks corresponding to other block link points except the first block chain node in the plurality of block chain nodes, determining a second block from the other blocks based on the sharable network resource amount in the target time period, and determining network resources to be occupied of the first block chain node in the target time period based on the network resource demand of the first block chain node in the target time period and the sharable network resources