CN115086342A - Block chain-based equipment networking method and device, storage medium and electronic equipment - Google Patents
Block chain-based equipment networking method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN115086342A CN115086342A CN202210725483.6A CN202210725483A CN115086342A CN 115086342 A CN115086342 A CN 115086342A CN 202210725483 A CN202210725483 A CN 202210725483A CN 115086342 A CN115086342 A CN 115086342A
- Authority
- CN
- China
- Prior art keywords
- target
- node
- equipment
- information
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000006855 networking Effects 0.000 title claims abstract description 98
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000003860 storage Methods 0.000 title claims abstract description 58
- 238000013468 resource allocation Methods 0.000 abstract description 9
- 238000005516 engineering process Methods 0.000 abstract description 8
- 238000012545 processing Methods 0.000 description 12
- 238000004364 calculation method Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 11
- 241000854291 Dianthus carthusianorum Species 0.000 description 10
- 238000004590 computer program Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
- H04L67/1051—Group master selection mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
- H04L67/1053—Group management mechanisms with pre-configuration of logical or physical connections with a determined number of other peers
Abstract
The application discloses a device networking method and device based on a block chain, a storage medium and an electronic device. Relates to the technical field of block chains, and the method comprises the following steps: in the block chain network, target information corresponding to each equipment node is calculated, wherein the target information comprises at least one of the following: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes; determining a target equipment node in the plurality of equipment nodes according to the target information; allocating IP networking resources to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node; and determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one. By the method and the device, the problem of low resource allocation efficiency in equipment networking in the related technology is solved.
Description
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a method and an apparatus for device networking based on blockchain, a storage medium, and an electronic device.
Background
Although the plane networking technology of the existing internet of things technology is realized, with the expansion of network nodes, the route maintenance cost is in an exponential growth trend, and the consumed bandwidth is also limited due to the increase of equipment. In addition, because the networking capabilities of the heterogeneous nodes in the network are different greatly, the resources of the low-intelligence nodes are very limited, the same routing mechanism and security system cannot be deployed with the high-intelligence nodes at the same time, and inconvenience is brought to the security management of the internet of things.
Aiming at the problem of low resource allocation efficiency during equipment networking in the related art, no effective solution is provided at present.
Disclosure of Invention
The present application mainly aims to provide a device networking method and apparatus based on a block chain, a storage medium, and an electronic device, so as to solve the problem of low resource allocation efficiency in device networking in the related art.
To achieve the above object, according to an aspect of the present application, there is provided a device networking method based on a block chain. The method comprises the following steps: in the block chain network, target information corresponding to each equipment node is calculated, wherein the target information comprises at least one of the following: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes; determining a target equipment node in the plurality of equipment nodes according to the target information; allocating IP networking resources to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node; and determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one.
Further, the capacity information is at least one of: the CPU running speed corresponding to each equipment node, the storage rate corresponding to each equipment node, the bandwidth delay rate corresponding to each equipment node and the energy value corresponding to each equipment node.
Further, calculating the target information corresponding to each device node includes: calculating the CPU clock frequency of the terminal equipment corresponding to each equipment node; determining the running speed of the CPU according to the clock frequency of each CPU; the CPU running speed is taken as target information.
Further, calculating the target information corresponding to each device node includes: calculating the storage capacity of the terminal equipment corresponding to each equipment node; determining a storage rate according to each storage capacity; the storage rate is taken as the target information.
Further, calculating the target information corresponding to each device node includes: calculating the bandwidth information of the terminal equipment corresponding to each equipment node; determining a bandwidth delay rate according to each bandwidth information; and taking the bandwidth delay rate as target information.
Further, calculating the target information corresponding to each device node includes: calculating a current input value of the terminal equipment corresponding to each equipment node; calculating an energy loss value corresponding to each equipment node according to the current input value; determining an energy value corresponding to each equipment node according to each energy loss value; the energy value is taken as target information.
Further, calculating the target information corresponding to each device node includes: acquiring an ID information value of the terminal equipment corresponding to each equipment node; determining a target numerical value corresponding to each equipment node according to the ID information value; and taking the target value as target information.
Further, determining a target device node of the plurality of device nodes based on the target information includes: determining a maximum target value of the plurality of target values; acquiring target terminal equipment corresponding to the maximum target value; acquiring target capacity information corresponding to target terminal equipment; and determining a target equipment node in the plurality of equipment nodes according to the target terminal equipment and/or the target capacity information.
In order to achieve the above object, according to another aspect of the present application, there is provided a device networking apparatus based on a block chain. The device includes: a calculating unit, configured to calculate target information corresponding to each device node in a block chain network, where the target information includes at least one of: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes; a first determining unit configured to determine a target device node among the plurality of device nodes according to the target information; the distribution unit is used for distributing IP networking resources to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node; and the second determining unit is used for determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one.
Through the application, the following steps are adopted: in the block chain network, target information corresponding to each equipment node is calculated, wherein the target information comprises at least one of the following: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes; determining a target equipment node in the plurality of equipment nodes according to the target information; allocating IP networking resources to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node; and determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one. By the method and the device, the problem of low resource allocation efficiency in equipment networking in the related technology is solved. In the block chain network, IP networking resources are allocated to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node, and therefore the effect of improving the resource allocation efficiency in equipment networking is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 is a flowchart of a method for networking devices based on a blockchain according to an embodiment of the present application;
fig. 2 is a flowchart of target device node selection in a device networking method based on a block chain according to an embodiment of the present application;
fig. 3 is a schematic diagram of a device networking apparatus based on a block chain according to an embodiment of the present application;
fig. 4 is a schematic diagram of a network architecture of a device networking electronic device based on a block chain according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
The present invention is described below with reference to preferred implementation steps, and fig. 1 is a flowchart of a block chain-based device networking method provided in an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S101, in a block chain network, calculating target information corresponding to each equipment node, wherein the target information comprises at least one of the following: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes.
Specifically, the capacity information is at least one of the following: the CPU running speed corresponding to each equipment node, the storage rate corresponding to each equipment node, the bandwidth delay rate corresponding to each equipment node and the energy value corresponding to each equipment node.
That is to say, the present application may obtain the capacity information of each device node by calculating the target information corresponding to each device node, and may also obtain the target value corresponding to each device node.
In order to improve networking efficiency of multiple devices, in the device networking method based on a block chain provided in the embodiment of the present application, capacity information in target information corresponding to each device node is calculated as one of invention points, and therefore, a specific step of calculating a CPU running speed of at least one of the capacity information includes: calculating the CPU clock frequency of the terminal equipment corresponding to each equipment node; determining the running speed of the CPU according to the clock frequency of each CPU; the CPU running speed is taken as target information.
E.g. E CPU (i) The CPU clock frequency of the terminal equipment is used for representing a unified counting index of the extreme capability of the node, and if MF (i) represents the main frequency of the node, the calculation formula is as follows:
E CPU (i)=MF ( i ) /MF max wherein, MF max The node dominant frequency maximum value.
In order to further improve networking efficiency of multiple devices, in the device networking method based on a block chain provided in the embodiment of the present application, capacity information in target information is calculated as one of the inventions, and therefore, a specific step of calculating a storage rate of at least one of the capacity information includes: calculating the storage capacity of the terminal equipment corresponding to each equipment node; determining a storage rate according to each storage capacity; the storage rate is taken as the target information.
E.g. E storage (i) Is a unified count index of node storage capacity for identifying storage in the applicationThe rate, the storage capacity of the node includes two parameters, the storage rate of the current node and the storage capacity of the current node. The calculation formulas are respectively as follows: s (i) ═ α S speed (i)+β*C delay (i),E storage (i)=S(i)/S max And Smax is the maximum storage capacity of the node.
In order to further improve networking efficiency of multiple devices, in the device networking method based on a block chain provided in the embodiment of the present application, capacity information in target information is calculated as one of the inventions, and therefore, a specific step of calculating bandwidth information of at least one of the capacity information includes: calculating the bandwidth information of the terminal equipment corresponding to each equipment node; determining a bandwidth delay rate according to each bandwidth information; and taking the bandwidth delay rate as target information.
E.g. E cumm (i) The unified counting index for expressing the communication capability of the nodes comprises the following steps: the transmittable bit rate (bandwidth) per second of a node sends a delay rate. Specifically, the calculation formula is as follows: c (i) ═ alpha (S) bandw (i)+β*C delay (i),E cumm (i)=C(i)/C max Wherein C is max Is the maximum value of the node bandwidth amount.
In order to further improve networking efficiency of multiple devices, in the device networking method based on a block chain provided in the embodiment of the present application, capacity information in target information is calculated as one of the inventions, and therefore, a specific step of calculating an energy value of at least one of the capacity information includes: calculating a current input value of the terminal equipment corresponding to each equipment node; calculating an energy loss value corresponding to each equipment node according to the current input value; determining an energy value corresponding to each equipment node according to each energy loss value; the energy value is taken as target information.
E.g. E power (i) Representing the node energy value. Without considering the energy loss. Assuming that the energy loss of the nodes is the same in each second, when the current input value is i, the loss of the cluster head node is necessarily larger than the energy loss of the cluster member nodes. The calculation formula is as follows:
alpha and beta are weight factors, namely alpha + beta is 1,represents the weight of the different energy values, alpha, beta, mu,ω,θ∈[0,1]。
in order to further improve networking efficiency of multiple devices, in the device networking method based on the block chain provided in the embodiment of the present application, a target value in target information is calculated as one of the invention points, and the specific operation steps include: acquiring an ID information value of the terminal equipment corresponding to each equipment node; determining a target numerical value corresponding to each equipment node according to the ID information value; and taking the target value as target information.
Specifically, the target value in the present application is the node trust level, the larger the value is, the higher the security of the terminal device corresponding to the node device is, and the calculation logic algorithm of the node trust level according to the ID information value may be represented as follows:
ai is 0; // Ai is ID of sender
When ID ═ Idi and T stamps –T>T threshold (ii) a // tstammps is the time when the HELLO was sent; t is threshold A timeout time set in advance.
Then the following steps are carried out: ai + 1;
node repu (idi) 0; // degree of trust of node i
Averepu (id) ═ 0; // average confidence of node i
Then the following steps are carried out: j is 1; j is a function of<A i ;j++;
If (helloj. status ═ ID)// cluster head node
Node Repu (id) ═ node Repu (I)Dj)+ratio ij *ratioh j *RepuValue ij ;
Else// cluster member node
Node repu (id) ═ node repu (idj) + ratio ij *RepuValue ij ;
And step S102, determining a target equipment node in the plurality of equipment nodes according to the target information.
For example, as shown in fig. 2, the selection process of the cluster head node (corresponding to the target device node in the present application) may be determined according to the largest target value (i.e., the trust value in the figure) of the plurality of target values.
Optionally, in the device networking method based on a block chain provided in the embodiment of the present application, determining a target device node in a plurality of device nodes according to target information includes: determining a maximum target value of the plurality of target values; acquiring target terminal equipment corresponding to the maximum target value; acquiring target capacity information corresponding to target terminal equipment; and determining a target equipment node in the plurality of equipment nodes according to the target terminal equipment and/or the target capacity information.
For example, as shown in fig. 2, when the intranet structure is not a cluster, all nodes in the internet of things (corresponding to device nodes in the present application, the same applies below) do not determine their own clustering state, that is, cannot determine whether a condition for becoming a cluster head exists. At this time, each node broadcasts a HELLO message to the network, and the current state of each node x is set to be pending (state ═ NULL); after receiving the HELLO information, the nodes divide the message into a message which can be found by the adjacent nodes and a cluster head value message of the nodes. After a period of time, each node can establish a complete trust database, and then compares the obtained target values (i.e., trust values) of the plurality of nodes, so as to determine whether the node can autonomously become a cluster head node, if the trust level of the adjacent node is lower than the value of the node, the state of the node is unchanged, and if the trust level of the adjacent node is lower than the value of the node, the state of the node is set to be the ID of the node (state ═ ID).
For example: and if the node with the maximum trust degree exists in the adjacent nodes, setting the state value of the node as the state value of the adjacent node, and electing the node as a cluster head. In one comparison and change state, when more than half of the nodes are changed into the same ID value, according to the block chain trust degree principle, the cluster head nodes in the network are determined as the node IDs after the current nodes are selected independently, and HELLO messages are sent to broadcast, so that all the nodes in the network cluster set the IDs of the nodes as cluster head node IDs (the state is the cluster head node ID).
Optionally, the method may also include acquiring a terminal device corresponding to the maximum target value, and acquiring target capacity information corresponding to the target terminal device; and determining a target equipment node in the plurality of equipment nodes according to the target terminal equipment and/or the target capacity information, thereby further improving the networking efficiency of the equipment.
And step S103, allocating IP networking resources to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node.
And step S104, determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one.
Specifically, IP networking resources are distributed to other equipment nodes except the target equipment node in the plurality of equipment nodes through the target equipment node, and the nodes are connected through the router, so that the networking operation of all equipment in the whole network networking can be completed, the networking strategy of the plurality of terminal equipment is further determined, the power of the router is not influenced to the maximum extent, and meanwhile, the risk that the router and a client are attacked by the network is reduced.
To sum up, in the device networking method based on the blockchain provided by the embodiment of the present application, target information corresponding to each device node is calculated in the blockchain network, where the target information includes at least one of the following: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes; determining a target equipment node in the plurality of equipment nodes according to the target information; allocating IP networking resources to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node; and determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one. By the method and the device, the problem of low resource allocation efficiency in equipment networking in the related technology is solved. In the block chain network, IP networking resources are allocated to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node, and therefore the effect of improving the resource allocation efficiency in equipment networking is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.
The embodiment of the present application further provides a device networking apparatus based on a block chain, and it should be noted that the device networking apparatus based on a block chain in the embodiment of the present application may be used to execute the device networking method based on a block chain provided in the embodiment of the present application. The device networking apparatus based on a block chain according to an embodiment of the present application is described below.
Fig. 3 is a schematic diagram of a device networking apparatus based on a block chain according to an embodiment of the present application. As shown in fig. 3, the apparatus includes: a calculation unit 301, a first determination unit 302, an allocation unit 303, a second determination unit 304.
Specifically, the calculating unit 301 is configured to calculate target information corresponding to each device node in the block chain network, where the target information includes at least one of the following: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes;
a first determining unit 302, configured to determine a target device node in the multiple device nodes according to the target information; an allocating unit 303, configured to allocate, according to the target device node, an IP networking resource to other device nodes except the target device node in the multiple device nodes;
a second determining unit 304, configured to determine networking policies of multiple terminal devices according to the allocated IP networking resources, where the device nodes correspond to the terminal devices one to one.
To sum up, the device networking apparatus based on a block chain provided in the embodiment of the present application calculates, by the calculating unit 301, target information corresponding to each device node in the block chain network, where the target information includes at least one of the following: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes; the first determination unit 302 determines a target device node among the plurality of device nodes according to the target information; the allocating unit 303 allocates an IP networking resource to other device nodes except the target device node among the plurality of device nodes according to the target device node; the second determining unit 304 determines networking policies of a plurality of terminal devices according to the allocated IP networking resources, where the device nodes correspond to the terminal devices one to one, so that the problem of low resource allocation efficiency in networking devices in the related art is solved. In the block chain network, IP networking resources are allocated to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node, and therefore the effect of improving the resource allocation efficiency in equipment networking is achieved.
Optionally, in the device networking apparatus based on a block chain provided in the embodiment of the present application, the capacity information is at least one of the following: the CPU running speed corresponding to each equipment node, the storage rate corresponding to each equipment node, the bandwidth delay rate corresponding to each equipment node and the energy value corresponding to each equipment node.
Optionally, in the device networking apparatus based on a block chain provided in the embodiment of the present application, the calculating unit includes: the first calculation module is used for calculating the CPU clock frequency of the terminal equipment corresponding to each equipment node; the first determining module is used for determining the running speed of the CPU according to the clock frequency of each CPU; and the second determination module is used for taking the running speed of the CPU as target information.
Optionally, in the device networking apparatus based on a block chain provided in the embodiment of the present application, the calculating unit includes: the second calculation module is used for calculating the storage capacity of the terminal equipment corresponding to each equipment node; a third determining module for determining a storage rate according to each storage capacity; and the fourth determination module is used for taking the storage rate as target information.
Optionally, in the device networking apparatus based on a block chain provided in the embodiment of the present application, the calculating unit includes: the third calculation module is used for calculating the bandwidth information of the terminal equipment corresponding to each equipment node; a fifth determining module, configured to determine a bandwidth delay rate according to each bandwidth information; and the sixth determining module is used for taking the bandwidth delay rate as the target information.
Optionally, in the device networking apparatus based on a block chain provided in the embodiment of the present application, the calculating unit includes: the fourth calculation module is used for calculating the current input value of the terminal equipment corresponding to each equipment node; the fifth calculation module is used for calculating an energy loss value corresponding to each equipment node according to the current input value; a seventh determining module, configured to determine an energy value corresponding to each device node according to each energy loss value; and the eighth determining module is used for taking the energy value as target information.
Optionally, in the device networking apparatus based on a block chain provided in an embodiment of the present application, the calculating unit includes: the first acquisition module is used for acquiring the ID information value of the terminal equipment corresponding to each equipment node; a ninth determining module, configured to determine, according to the ID information value, a target value corresponding to each device node; and the tenth determining module is used for taking the target value as the target information.
Optionally, in the device for networking based on a block chain provided in an embodiment of the present application, the first determining unit includes: an eleventh determining module for determining a largest target value among the plurality of target values; the second acquisition module is used for acquiring the target terminal equipment corresponding to the maximum target value; the acquisition module is used for acquiring target capacity information corresponding to the target terminal equipment; and a twelfth determining module, configured to determine a target device node in the multiple device nodes according to the target terminal device and/or the target capacity information.
The device networking apparatus based on the blockchain includes a processor and a memory, where the above-mentioned calculating unit 301, the first determining unit 302, the allocating unit 303, the second determining unit 304, and the like are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can set one or more, and the device networking based on the block chain is carried out by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, the program implementing a device networking method based on a block chain when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute a device networking method based on a block chain.
As shown in fig. 4, an embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor executes the program to implement the following steps: in the block chain network, target information corresponding to each equipment node is calculated, wherein the target information comprises at least one of the following: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes; determining a target equipment node in the plurality of equipment nodes according to the target information; allocating IP networking resources to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node; and determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one.
The processor executes the program and further realizes the following steps: the CPU running speed corresponding to each equipment node, the storage rate corresponding to each equipment node, the bandwidth delay rate corresponding to each equipment node and the energy value corresponding to each equipment node.
The processor executes the program and further realizes the following steps: calculating the CPU clock frequency of the terminal equipment corresponding to each equipment node; determining the running speed of the CPU according to the clock frequency of each CPU; the CPU running speed is taken as target information.
The processor executes the program and further realizes the following steps: calculating the storage capacity of the terminal equipment corresponding to each equipment node; determining a storage rate according to each storage capacity; the storage rate is taken as the target information.
The processor executes the program and further realizes the following steps: calculating the bandwidth information of the terminal equipment corresponding to each equipment node; determining a bandwidth delay rate according to each bandwidth information; and taking the bandwidth delay rate as target information.
The processor executes the program and further realizes the following steps: calculating a current input value of the terminal equipment corresponding to each equipment node; calculating an energy loss value corresponding to each equipment node according to the current input value; determining an energy value corresponding to each equipment node according to each energy loss value; the energy value is taken as target information.
The processor executes the program and further realizes the following steps: acquiring an ID information value of the terminal equipment corresponding to each equipment node; determining a target numerical value corresponding to each equipment node according to the ID information value; and taking the target value as target information.
The processor executes the program and further realizes the following steps: determining a maximum target value of the plurality of target values; acquiring target terminal equipment corresponding to the maximum target value; acquiring target capacity information corresponding to target terminal equipment; and determining a target equipment node in the plurality of equipment nodes according to the target terminal equipment and/or the target capacity information.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: in the block chain network, target information corresponding to each equipment node is calculated, wherein the target information comprises at least one of the following information: capacity information of each device node, a target value corresponding to each device node, wherein the block chain network at least comprises: a plurality of device nodes; determining a target equipment node in the plurality of equipment nodes according to the target information; allocating IP networking resources to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node; and determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: the method comprises the following steps of running speed of a CPU corresponding to each equipment node, storage rate corresponding to each equipment node, bandwidth delay rate corresponding to each equipment node and energy value corresponding to each equipment node.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: calculating the CPU clock frequency of the terminal equipment corresponding to each equipment node; determining the running speed of the CPU according to the clock frequency of each CPU; the CPU running speed is taken as target information.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: calculating the storage capacity of the terminal equipment corresponding to each equipment node; determining a storage rate according to each storage capacity; the storage rate is taken as the target information.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: calculating the bandwidth information of the terminal equipment corresponding to each equipment node; determining a bandwidth delay rate according to each bandwidth information; and taking the bandwidth delay rate as target information.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: calculating a current input value of the terminal equipment corresponding to each equipment node; calculating an energy loss value corresponding to each equipment node according to the current input value; determining an energy value corresponding to each equipment node according to each energy loss value; the energy value is taken as target information.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: acquiring an ID information value of the terminal equipment corresponding to each equipment node; determining a target numerical value corresponding to each equipment node according to the ID information value; and taking the target value as target information.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: determining a maximum target value of the plurality of target values; acquiring target terminal equipment corresponding to the maximum target value; acquiring target capacity information corresponding to target terminal equipment; and determining a target equipment node in the plurality of equipment nodes according to the target terminal equipment and/or the target capacity information.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (11)
1. A device networking method based on a block chain is characterized by comprising the following steps:
in a block chain network, target information corresponding to each equipment node is calculated, wherein the target information comprises at least one of the following: capacity information of each device node, and a target value corresponding to each device node, wherein the block chain network at least includes: a plurality of device nodes;
determining a target device node in the plurality of device nodes according to the target information;
allocating IP networking resources to other equipment nodes except the target equipment node in the plurality of equipment nodes according to the target equipment node;
and determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one.
2. The method of claim 1, wherein the capacity information is at least one of: the CPU running speed corresponding to each equipment node, the storage rate corresponding to each equipment node, the bandwidth delay rate corresponding to each equipment node and the energy value corresponding to each equipment node.
3. The method of claim 2, wherein calculating the target information corresponding to each device node comprises:
calculating the CPU clock frequency of the terminal equipment corresponding to each equipment node;
determining the running speed of the CPU according to the clock frequency of each CPU;
and taking the CPU running speed as the target information.
4. The method of claim 2, wherein calculating the target information corresponding to each device node comprises:
calculating the storage capacity of the terminal equipment corresponding to each equipment node;
determining the storage rate according to each storage capacity;
and taking the storage rate as the target information.
5. The method of claim 2, wherein calculating the target information corresponding to each device node comprises:
calculating the bandwidth information of the terminal equipment corresponding to each equipment node;
determining the bandwidth delay rate according to each bandwidth information;
and taking the bandwidth delay rate as the target information.
6. The method of claim 2, wherein calculating the target information corresponding to each device node comprises:
calculating the current input value of the terminal equipment corresponding to each equipment node;
calculating an energy loss value corresponding to each equipment node according to the current input value;
determining an energy value corresponding to each equipment node according to each energy loss value;
and taking the energy value as the target information.
7. The method of claim 1, wherein calculating the target information corresponding to each device node comprises:
acquiring an ID information value of the terminal equipment corresponding to each equipment node;
determining the target numerical value corresponding to each equipment node according to the ID information value;
and taking the target numerical value as the target information.
8. The method of claim 7, wherein determining a target device node of the plurality of device nodes based on the target information comprises:
determining a maximum target value of the plurality of target values;
acquiring target terminal equipment corresponding to the maximum target value;
acquiring target capacity information corresponding to the target terminal equipment;
and determining a target equipment node in the plurality of equipment nodes according to the target terminal equipment and/or the target capacity information.
9. An apparatus for networking devices based on a blockchain, comprising:
a calculating unit, configured to calculate target information corresponding to each device node in a block chain network, where the target information includes at least one of: capacity information of each device node, and a target value corresponding to each device node, wherein the block chain network at least includes: a plurality of device nodes;
a first determining unit, configured to determine a target device node in the plurality of device nodes according to the target information;
an allocating unit, configured to allocate, according to the target device node, an IP networking resource to other device nodes except the target device node in the multiple device nodes;
and the second determining unit is used for determining networking strategies of a plurality of terminal devices according to the allocated IP networking resources, wherein the device nodes correspond to the terminal devices one to one.
10. A computer-readable storage medium, characterized in that the storage medium stores a program, wherein the program performs the method of any one of claims 1 to 8.
11. An electronic device comprising one or more processors and memory storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210725483.6A CN115086342A (en) | 2022-06-24 | 2022-06-24 | Block chain-based equipment networking method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210725483.6A CN115086342A (en) | 2022-06-24 | 2022-06-24 | Block chain-based equipment networking method and device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115086342A true CN115086342A (en) | 2022-09-20 |
Family
ID=83256479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210725483.6A Pending CN115086342A (en) | 2022-06-24 | 2022-06-24 | Block chain-based equipment networking method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115086342A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070230410A1 (en) * | 2006-03-29 | 2007-10-04 | Pascal Thubert | Route optimization for a mobile IP network node in a mobile ad hoc network |
US20100131644A1 (en) * | 2008-11-21 | 2010-05-27 | Electronics And Telecommunications Research Institute | Resource allocation method in wireless network |
CN110262845A (en) * | 2019-04-30 | 2019-09-20 | 北京邮电大学 | The enabled distributed computing task discharging method of block chain and system |
CN111770073A (en) * | 2020-06-23 | 2020-10-13 | 重庆邮电大学 | Block chain technology-based fog network unloading decision and resource allocation method |
CN114257594A (en) * | 2021-12-21 | 2022-03-29 | 四川灵通电讯有限公司 | Method for distributing network resources to user network side in distributed system |
-
2022
- 2022-06-24 CN CN202210725483.6A patent/CN115086342A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070230410A1 (en) * | 2006-03-29 | 2007-10-04 | Pascal Thubert | Route optimization for a mobile IP network node in a mobile ad hoc network |
US20100131644A1 (en) * | 2008-11-21 | 2010-05-27 | Electronics And Telecommunications Research Institute | Resource allocation method in wireless network |
CN110262845A (en) * | 2019-04-30 | 2019-09-20 | 北京邮电大学 | The enabled distributed computing task discharging method of block chain and system |
CN111770073A (en) * | 2020-06-23 | 2020-10-13 | 重庆邮电大学 | Block chain technology-based fog network unloading decision and resource allocation method |
CN114257594A (en) * | 2021-12-21 | 2022-03-29 | 四川灵通电讯有限公司 | Method for distributing network resources to user network side in distributed system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220318064A1 (en) | Technologies for batching requests in an edge infrastructure | |
US20190182169A1 (en) | Method for dynamically allocating resources in an sdn/nfv network based on load balancing | |
US8812653B2 (en) | Autonomous intelligent workload management | |
EP3281359B1 (en) | Application driven and adaptive unified resource management for data centers with multi-resource schedulable unit (mrsu) | |
Beck et al. | A distributed, parallel, and generic virtual network embedding framework | |
Wided et al. | Load balancing with Job Migration Algorithm for improving performance on grid computing: Experimental Results | |
Tran et al. | Reconfiguration of virtual network mapping considering service disruption | |
Choudhury et al. | A proactive context-aware service replication scheme for adhoc IoT scenarios | |
Wen et al. | Load balancing job assignment for cluster-based cloud computing | |
CN116016221A (en) | Service processing method, device and storage medium | |
Naghsh et al. | Digitally annealed solution for the maximum clique problem with critical application in cellular v2x | |
Ping | Load balancing algorithms for big data flow classification based on heterogeneous computing in software definition networks | |
US20220400085A1 (en) | Orchestrating edge service workloads across edge hierarchies | |
CN112437449B (en) | Joint resource allocation method | |
Nair et al. | A performance booster for load balancing in cloud computing with my load balancer technique | |
Luizelli et al. | Characterizing the impact of network substrate topologies on virtual network embedding | |
CN115086342A (en) | Block chain-based equipment networking method and device, storage medium and electronic equipment | |
Yadav et al. | Trust-aware framework for application placement in fog computing | |
Najm et al. | An adaptive and dynamic allocation of delay-sensitive vehicular services in federated cloud | |
Mao et al. | Sharing based virtual network embedding algorithm with dynamic resource block generation | |
Gong et al. | Vehicular Cloud Forming and Task Scheduling for Energy-Efficient Cooperative Computing | |
Tahir et al. | UDRF: Multi-resource fairness for complex jobs with placement constraints | |
CN115866059A (en) | Block chain link point scheduling method and device | |
Zhang et al. | Embedding virtual network functions with backup for reliable large-scale edge computing | |
TG et al. | MatchVNE: A Stable Virtual Network Embedding Strategy Based on Matching Theory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |