CN114338668B - Data verification method, system, storage medium and equipment based on consensus mechanism - Google Patents
Data verification method, system, storage medium and equipment based on consensus mechanism Download PDFInfo
- Publication number
- CN114338668B CN114338668B CN202111486832.5A CN202111486832A CN114338668B CN 114338668 B CN114338668 B CN 114338668B CN 202111486832 A CN202111486832 A CN 202111486832A CN 114338668 B CN114338668 B CN 114338668B
- Authority
- CN
- China
- Prior art keywords
- auxiliary node
- verification
- nodes
- anchor point
- data
- 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.)
- Active
Links
- 238000013524 data verification Methods 0.000 title claims abstract description 262
- 238000000034 method Methods 0.000 title claims abstract description 127
- 230000007246 mechanism Effects 0.000 title claims abstract description 25
- 238000012795 verification Methods 0.000 claims abstract description 270
- 238000012790 confirmation Methods 0.000 claims abstract description 220
- 238000004891 communication Methods 0.000 claims abstract description 51
- 238000012797 qualification Methods 0.000 claims description 45
- 230000015654 memory Effects 0.000 claims description 19
- 230000008569 process Effects 0.000 description 34
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000000638 solvent extraction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- AKPLHCDWDRPJGD-UHFFFAOYSA-N nordazepam Chemical compound C12=CC(Cl)=CC=C2NC(=O)CN=C1C1=CC=CC=C1 AKPLHCDWDRPJGD-UHFFFAOYSA-N 0.000 description 2
- 238000012856 packing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000010200 validation analysis Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013502 data validation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a data verification method, a system, a storage medium and equipment based on a consensus mechanism, relates to the field of communication, and solves the problem of overhigh complexity of the existing algorithm. The data verification method comprises the following steps: receiving a data verification request sent by a control platform, wherein the data verification request comprises data to be verified; transmitting a data verification request to a terminal auxiliary node corresponding to the first anchor point cell so as to enable the terminal auxiliary node corresponding to the first anchor point cell to verify the data to be verified; summarizing a first verification result of data to be verified returned by a terminal auxiliary node corresponding to a first anchor point cell to determine a first verification confirmation request; and sending the first verification confirmation request to a second anchor point cell, all the main nodes and the terminal auxiliary nodes corresponding to the first anchor point cell so that all the terminal auxiliary nodes and all the main nodes confirm the common recognition of the first verification result, wherein the second anchor point cell is any anchor point cell except the first anchor point cell.
Description
Technical Field
The present application relates to the field of communications, and in particular, to a method, a system, a storage medium, and a device for verifying data based on a consensus mechanism.
Background
In a mobile communication network architecture employing decentralized data sharing, there are a primary node and a secondary node. The main node is built by operators together and is responsible for generating, verifying and storing data in the network architecture, and the auxiliary node is born by a terminal in the network architecture and participates in the generation and verification of the data. The main node and the auxiliary node cooperate with each other to jointly realize the trusted storage of data such as network quality and the like in the mobile communication network.
In the related technology, in the process of verifying and consensus of data, a terminal can only establish single-point connection with one main node or auxiliary node at a time to complete data receiving and transmitting between each auxiliary node and the main node, so that the complexity of an algorithm in the process of verifying and consensus of data is high, and the problems of high power consumption of the terminal and prolonged whole data consensus process are caused.
Disclosure of Invention
The application aims to provide a data verification method, a system, a storage medium and equipment based on a consensus mechanism, which can reduce the complexity of a data verification consensus process so as to solve the problems of high power consumption of a terminal and long time delay of the whole data consensus process caused by too high complexity of the data verification consensus process.
In order to achieve the above purpose, the application adopts the following technical scheme:
In a first aspect, the present application provides a data verification method based on a consensus mechanism, applied to a first anchor point cell in a communication system, where the communication system further includes a control platform, a plurality of master nodes, and a plurality of terminal slave nodes, the plurality of terminal slave nodes are divided into a plurality of slave node groups in advance, the terminal slave nodes in each slave node group correspond to the same anchor point cell, and the first anchor point cell is an anchor point cell corresponding to any one of the slave node groups, and includes: receiving a data verification request sent by a control platform, wherein the data verification request comprises data to be verified; transmitting a data verification request to a terminal auxiliary node corresponding to the first anchor point cell so as to enable the terminal auxiliary node corresponding to the first anchor point cell to verify the data to be verified; receiving a first verification result of data to be verified, which is returned by a terminal auxiliary node corresponding to a first anchor point cell, and generating a first verification confirmation request containing the first verification result; and sending the first verification confirmation request to a second anchor point cell, all the main nodes and the terminal auxiliary nodes corresponding to the first anchor point cell so that all the terminal auxiliary nodes and all the main nodes confirm the common recognition of the first verification result, wherein the second anchor point cell is any anchor point cell except the first anchor point cell.
Optionally, the data verification method further includes: receiving a second verification confirmation request sent by a second anchor point cell, wherein the second verification confirmation request comprises a second verification result of data to be verified, corresponding to the second anchor point cell, of a terminal auxiliary node; and sending a second verification confirmation request to the terminal auxiliary node corresponding to the first anchor point cell so as to ensure that the terminal auxiliary node corresponding to the first anchor point cell confirms consensus for the second verification result.
Optionally, the data verification method further includes: receiving a third verification confirmation request sent by the master node, wherein the third verification confirmation request comprises a third verification result of data to be verified by the master node; and sending a third verification confirmation request to the terminal auxiliary node corresponding to the first anchor point cell so as to ensure that the terminal auxiliary node corresponding to the first anchor point cell confirms consensus on the third verification result.
Optionally, before receiving the data verification request sent by the control platform, the method further includes: receiving an auxiliary node group request sent by a control platform, wherein the auxiliary node group request comprises candidate auxiliary node groups corresponding to a first anchor point cell; responding to the auxiliary node group request, and determining whether the candidate auxiliary node group has the capability of confirming consensus by confirming whether the number of terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group meets the preset number; if the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group is confirmed to meet the preset number, auxiliary node group confirmation information is sent to the control platform, and the auxiliary node group confirmation information is used for representing that the candidate auxiliary node group has the confirmation consensus capability; if the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group is confirmed to not meet the preset number, auxiliary node group rejection information is sent to the control platform, and the auxiliary node group rejection information is used for representing that the auxiliary node group does not have the confirmation consensus capability.
Optionally, determining whether the candidate auxiliary node group has the capability of confirming consensus by confirming whether the number of terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group meets the preset number includes: from M terminal auxiliary nodes included in the candidate auxiliary node group, N terminal auxiliary nodes with the front terminal auxiliary node weight bit sequence are determined; sending terminal auxiliary node requests to N terminal auxiliary nodes to confirm whether the terminal auxiliary nodes have data verification qualification according to whether the terminal auxiliary nodes return confirmation results in preset time or not; if N1 terminal auxiliary nodes are confirmed to be qualified for data verification, and N1 is equal to N, the candidate auxiliary node group is confirmed to have the capability of confirming consensus.
Optionally, the data verification method further includes: if the N1 terminal auxiliary nodes are confirmed to have the data verification qualification, and N1 is smaller than N, judging whether the current request times are smaller than the preset times, wherein the request times are times of sending terminal auxiliary node requests to a plurality of terminal auxiliary nodes at the same time; if the current request times are smaller than the preset times, determining (N-N1) terminal auxiliary nodes with the front weight bit sequence of the terminal auxiliary nodes from the terminal auxiliary nodes except the N terminal auxiliary nodes in the candidate auxiliary node group, and sending terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes; and updating N1 according to the number of the terminal auxiliary nodes with data verification qualification in the (N-N1) terminal auxiliary nodes until the request times are equal to the preset times, or N1 is equal to N, or the terminal auxiliary node requests are sent to all the terminal auxiliary nodes.
Optionally, the data verification method further includes: and sending auxiliary node group rejection information to the control platform under the condition that the number M of candidate terminal auxiliary nodes included in the auxiliary node group is less than N.
In a second aspect, the present application provides a data verification method based on a consensus mechanism, applied to a control platform in a communication system, where the communication system further includes a plurality of master nodes and a plurality of terminal slave nodes, the plurality of terminal slave nodes are pre-divided into at least one slave node group, and terminal slave nodes in each slave node group correspond to a same anchor cell, and the method includes: generating a data verification request according to the data to be verified; transmitting a data verification request to the anchor point cell and all the master nodes so that all the terminal auxiliary nodes and all the master nodes corresponding to the anchor point cell verify the data to be verified in the data verification request; and receiving the confirmation consensus results sent by all the terminal auxiliary nodes and all the main nodes to determine a target consensus result, wherein the confirmation consensus result is generated after the confirmation consensus of all the terminal auxiliary nodes and all the main nodes to the verification result, and the verification result comprises a first verification result, a second verification result and a third verification result.
Optionally, the data verification method further includes: and broadcasting the target consensus result to all the master nodes so that all the master nodes store the target consensus result.
Optionally, before the step of sending the data authentication request to the anchor cell and all the master nodes, the method further comprises: generating an auxiliary node group list, wherein the auxiliary node group list comprises a plurality of candidate auxiliary node groups with the front bit sequence of the auxiliary node group weight value; sending an auxiliary node group request to an anchor point cell corresponding to a candidate auxiliary node group in the auxiliary node group list, wherein the auxiliary node group request is used for enabling the anchor point cell to determine whether the corresponding candidate auxiliary node group has a confirmation consensus capability or not; and receiving auxiliary node group confirmation information sent by the anchor point cell, and determining candidate auxiliary node groups corresponding to the auxiliary node group confirmation information in the auxiliary node group list as auxiliary node groups.
In a third aspect, the present application provides a data verification method based on a consensus mechanism, applied to a terminal auxiliary node in a communication system, where the terminal auxiliary node corresponds to a first anchor cell, and includes: receiving a data verification request sent by a first anchor point cell, wherein the data verification request comprises data to be verified; verifying the data to be verified in the data verification request to generate a first verification result; transmitting the first verification result to the first anchor cell; receiving a verification confirmation request sent by a first anchor point cell and a main node, wherein the verification confirmation request comprises a first verification confirmation request generated by the first anchor point cell according to a first verification result, a second verification confirmation request generated by the second anchor point cell according to a second verification result and a third verification confirmation request generated by the main node according to a third verification result, the first anchor point cell is an anchor point cell corresponding to any auxiliary node group, the second anchor point cell is any anchor point cell except the first anchor point cell, the second verification result is a verification result of data to be verified of a terminal auxiliary node corresponding to the second anchor point cell, and the third verification result is a verification result of the main node to be verified of the data to be verified; carrying out confirmation consensus on the verification result contained in the verification confirmation request to generate a confirmation consensus result; and sending the confirmed consensus result to the control platform so that the control platform determines the target consensus result.
Optionally, before receiving the data verification request sent by the anchor cell, the method further includes: receiving a terminal auxiliary node request sent by a first anchor point cell so as to determine whether the terminal auxiliary node has data verification qualification, wherein the terminal auxiliary node request comprises a preset wireless signal quality parameter which is used for testing whether the terminal auxiliary node has data verification capability; and sending a confirmation result of whether the terminal auxiliary node has the data verification qualification to the anchor point cell.
Optionally, the data verification method includes: the preset wireless signal quality parameters comprise preset signal receiving power and a preset signal-to-interference-plus-noise ratio; under the condition that the received power of the reference signal is larger than or equal to the received power of the preset signal and the ratio of the signal to the interference plus noise is larger than or equal to the ratio of the preset signal to the interference plus noise, the terminal auxiliary node sends a confirmation result to the anchor point cell; and under the condition that the received power of the reference signal is smaller than the received power of the preset signal or the ratio of the signal to the interference plus noise is smaller than the ratio of the preset signal to the interference plus noise, the terminal auxiliary node does not send a rejection message to the anchor point cell.
In a fourth aspect, the present application provides a data verification method based on a consensus mechanism, applied to a master node in a communication system, including: receiving a data verification request sent by a control platform, and verifying data to be verified to generate a verification result, wherein the data verification request comprises the data to be verified; generating a verification confirmation request according to the verification result; and sending the verification confirmation request to all anchor point cells and other main nodes so as to ensure that the terminal auxiliary nodes corresponding to all anchor point cells carry out confirmation consensus on the verification result.
In a fifth aspect, the present application provides a data verification device based on a consensus mechanism, applied to a first anchor cell in a communication system, where the communication system further includes a control platform, a plurality of master nodes, and a plurality of terminal slave nodes, the plurality of terminal slave nodes are divided into a plurality of slave node groups in advance, the terminal slave nodes in each slave node group correspond to the same anchor cell, and the first anchor cell is an anchor cell corresponding to any one of the slave node groups, and includes: the first receiving unit is used for receiving a data verification request sent by the control platform, wherein the data verification request comprises data to be verified; the first sending unit is used for sending a data verification request to the terminal auxiliary node corresponding to the first anchor point cell so as to enable the terminal auxiliary node corresponding to the first anchor point cell to verify the data to be verified; the determining unit receives a first verification result of the data to be verified, which is returned by the terminal auxiliary node corresponding to the first anchor point cell, and generates a first verification confirmation request containing the first verification result; the first sending unit is further configured to send a first verification confirmation request to the second anchor point cell, all the master nodes, and the terminal auxiliary nodes corresponding to the first anchor point cell, so that all the terminal auxiliary nodes and all the master nodes confirm the common identification of the first verification result, and the second anchor point cell is any anchor point cell except the first anchor point cell.
In a sixth aspect, the present application provides a data verification device based on a consensus mechanism, applied to a control platform in a communication system, where the communication system further includes a plurality of master nodes and a plurality of terminal slave nodes, the plurality of terminal slave nodes are pre-divided into at least one slave node group, and terminal slave nodes in each slave node group correspond to a same anchor cell, and the data verification device includes: the acquisition unit is used for generating a data verification request according to the data to be verified; the second sending unit is used for sending the data verification request to the anchor point cell and all the main nodes so that all the terminal auxiliary nodes and all the main nodes corresponding to the anchor point cell verify the data to be verified in the data verification request and confirm and consensus the verification result; and the second receiving unit is used for receiving the confirmation consensus results sent by all the auxiliary nodes of the terminal and all the main nodes so as to determine the target consensus result. .
In a seventh aspect, the present application provides a data verification device based on a consensus mechanism, applied to a terminal auxiliary node in a communication system, where the terminal auxiliary node corresponds to a first anchor cell, and includes: the third receiving unit is used for receiving a data verification request sent by the first anchor point cell, wherein the data verification request comprises data to be verified; the third receiving unit is further used for verifying the data to be verified in the data verification request and generating a first verification result; a third sending unit, configured to send a first verification result to the first anchor cell; the third receiving unit is further configured to receive a verification confirmation request sent by the first anchor cell and the master node, where the verification confirmation request includes a first verification confirmation request generated by the first anchor cell according to a first verification result, a second verification confirmation request generated by the second anchor cell according to a second verification result, and a third verification confirmation request generated by the master node according to a third verification result, the first anchor cell is an anchor cell corresponding to any one of the auxiliary node groups, the second anchor cell is any anchor cell other than the first anchor cell, the second verification result is a verification result of the data to be verified by the terminal auxiliary node corresponding to the second anchor cell, and the third verification result is a verification result of the data to be verified by the master node; the third receiving unit is further used for carrying out confirmation consensus on the verification result contained in the verification confirmation request so as to generate a confirmation consensus result; and the third sending unit is also used for sending the confirmation consensus result to the control platform so as to ensure that the control platform determines the target consensus result.
In an eighth aspect, the present application provides a data verification device based on a consensus mechanism, applied to a master node in a communication system, including: the fourth receiving unit is used for receiving a data verification request sent by the control platform, verifying the data to be verified, and generating a verification result; the generating unit is used for generating a verification confirmation request according to the verification result; and the fourth sending unit is used for sending the verification confirmation request to all the anchor cells and other main nodes so as to ensure that the terminal auxiliary nodes and other main nodes corresponding to all the anchor cells carry out confirmation consensus on the verification result.
In a ninth aspect, the present application provides a computer-readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement a data verification method as in any one of the first to fourth aspects.
In a tenth aspect, the present application provides an electronic apparatus, comprising: a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions implementing the data verification method as in any one of the first to fourth aspects when executed by the processor.
In an eleventh aspect, there is provided a computer program product comprising computer instructions which, when run on a server, cause the server to perform the data verification method as provided by any one of the first to fourth aspects and any one of its possible designs.
In the data verification method provided by the application, terminal auxiliary nodes in a communication system are divided into at least one auxiliary node group in advance, and the terminal auxiliary nodes in the same auxiliary node group correspond to the same anchor point cell. For an anchor cell corresponding to any one terminal auxiliary node group, a data verification request sent by a control platform can be received, wherein the data verification request comprises data to be verified; transmitting the data verification request to the terminal auxiliary nodes corresponding to the data verification request, so that the terminal auxiliary nodes verify the data to be verified, and receiving first verification results of the data to be verified, returned by the terminal auxiliary nodes, to generate a first verification confirmation request containing the first verification results; and finally, sending the first verification confirmation request to the terminal auxiliary node, other anchor point cells and all the main nodes corresponding to the first verification confirmation request, so that all the terminal auxiliary nodes and all the main nodes confirm the common identification of the first verification result.
According to the data verification method, the data verification request and the data verification result of the main node and the auxiliary nodes of the terminal are forwarded through the anchor point cells corresponding to the auxiliary node groups which are divided in advance, so that the communication times of receiving and sending data between each auxiliary node and the main node in the data verification consensus process are reduced, the complexity of the data verification consensus process is reduced, and the power consumption of the terminal and the time delay of the data consensus process are reduced.
Drawings
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present application;
FIG. 2 is a flowchart of a data verification method according to an embodiment of the present application;
FIG. 3 is a second flowchart of a data verification method according to an embodiment of the present application;
FIG. 4 is a third flowchart of a data verification method according to an embodiment of the present application;
FIG. 5 is a flowchart of a data verification method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of data links between nodes according to the related art of the present application;
fig. 7 is a schematic diagram of a data link between nodes according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a data verification device according to an embodiment of the present application;
FIG. 9 is a second schematic diagram of a data verification device according to an embodiment of the present application;
FIG. 10 is a third schematic diagram of a data verification device according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a data verification device according to an embodiment of the present application;
fig. 12 is a schematic hardware diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that any embodiment or design described as "exemplary" or "for example" in embodiments of the present application should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In order to clearly describe the technical solution of the embodiments of the present application, in the embodiments of the present application, the terms "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect, and those skilled in the art will understand that the terms "first", "second", etc. are not limited in number and execution order.
The data verification method provided by the embodiment of the application can be applied to a communication system. The communication system supports operations for various types of data, such as data reception and transmission, data verification, and data validation consensus.
Illustratively, fig. 1 is a schematic diagram of a communication system 10, as shown in fig. 1, which includes a plurality of anchor cells 11, a control platform 12, a plurality of terminal auxiliary nodes 13, and a plurality of master nodes 14, wherein the terminal auxiliary nodes in the communication system are pre-divided into at least one auxiliary node group, and a plurality of terminal auxiliary nodes in the same auxiliary node group correspond to the same anchor cell. The anchor point cell 11, the control platform 12 and the main node 14 can communicate with each other; the anchor point cell 11 and the terminal auxiliary node 13 can communicate; communication may also take place between the control platform 12 and the terminal auxiliary node 13. For example, the data verification method provided by the embodiment of the application is executed.
In some embodiments, the anchor cell 11 may be a data verification device configured to perform the data verification method as shown in fig. 8 provided by an embodiment of the present application. The anchor cell 11 can perform the following steps in the data authentication method: steps S202 to S205 and steps S207 and S208 in the data verification method shown in fig. 2, all steps S301 to S305 shown in fig. 3, all steps S401 and S404 shown in fig. 4, and steps S504, S505, S509, S510, S515, and S516 shown in fig. 5. The data authentication means may be, for example, a base station.
In some embodiments, the control platform 12 may be a data verification device configured to perform a data verification method as shown in fig. 9 provided by an embodiment of the present application. The control platform 12 is capable of performing the following steps in the data verification method: step S201, step S206, step S209 to step S211 in the data verification method shown in fig. 2, all of step S301 to step S305 shown in fig. 3, and step S501 shown in fig. 5. The data verification device may be, for example, a management layer software integrated system for implementing different functional control requirements.
In some embodiments, the terminal auxiliary node 13 may be a data verification device configured to perform the data verification method as shown in fig. 10 provided by the embodiment of the present application. The terminal auxiliary node 13 can execute the following steps in the data verification method: step S402 and step S404 in the data verification method shown in fig. 4, step S506 to step S508, step S513, step S517 shown in fig. 5. The data verification device may be an electronic device such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a handheld computer, a netbook, a personal digital assistant (personal digital assistant, PDA), or the like, and the data verification device may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The present application is not limited to the specific form of the terminal auxiliary node 13.
In some embodiments, the master node 14 may be a data verification device configured to perform a data verification method as shown in fig. 11 provided by an embodiment of the present application. The master node 14 is capable of performing the following steps in the data verification method: as shown in fig. 5, step S502, step S503, step S512, and step S514 in the data verification method. The data verification device may specifically be a device that is commonly set up by a plurality of operators and is capable of taking charge of data block generation and data block storage.
Fig. 2 is a flowchart of a data verification method according to an embodiment of the present application, which is specifically a schematic diagram of an interaction process between an anchor cell and a control platform, wherein steps performed by the anchor cell in the flowchart may be performed by any one of the anchor cells. As shown in fig. 2, the data verification method may include:
s201, the control platform sends a secondary node group request to the anchor point cell.
S202, the anchor point cell receives an auxiliary node group request sent by the control platform, wherein the auxiliary node group request comprises candidate auxiliary node groups corresponding to the anchor point cell.
Wherein the secondary node group request may include a secondary node group list including a plurality of candidate secondary node groups with a leading bit order of secondary node group weight values.
The control platform selects a plurality of candidate auxiliary node groups with the front bit sequence of the auxiliary node group weight value from all the candidate auxiliary node groups, and takes the selected plurality of candidate auxiliary node groups as candidate auxiliary node groups of an auxiliary node group list.
Illustratively, the auxiliary node group list in the auxiliary node group request has K candidate auxiliary node groups, and the terminal auxiliary node in each candidate auxiliary node group corresponds to the same anchor cell. That is, the K anchor cells are in one-to-one correspondence with the K candidate secondary node groups. And the control platform respectively sends auxiliary node group requests to K anchor point cells corresponding to the K candidate auxiliary node groups.
And the control platform selects the terminal auxiliary node by taking the auxiliary node group as a unit. For example, each auxiliary node group includes ni terminal auxiliary nodes, and the ni terminal auxiliary nodes belong to the same cell, which is called an anchor cell corresponding to the ni terminal auxiliary nodes.
As one possible implementation, the control platform identifies the secondary node group by a secondary node group identification (Assistant Node Group IDentity, ANG-ID). When the terminal auxiliary node moves, namely the position changes, the auxiliary node group list also needs to update the auxiliary node group in real time according to the moving position condition of the terminal auxiliary node. Wherein each secondary node group contains the following information: auxiliary node group identification, anchor point cell identification, contractor identification and auxiliary node group list information. The contractor identifier is used for characterizing the constructor of the anchor cell base station, for example, in the AB co-construction sharing, the A contractor identifier is 00, and the B contractor base station identifier is 01.
S203, the anchor point cell responds to the auxiliary node group request and determines whether the candidate auxiliary node group has the capability of confirming consensus by confirming whether the number of terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group meets the preset number.
It should be noted that, in response to the secondary node group request, the anchor cell determines whether the candidate secondary node group has a capability of confirming consensus by determining the number of terminal secondary nodes with data verification qualification in the candidate secondary node group. Specifically, the process of executing the above step S203 may be realized by steps S301 to S305 as shown in fig. 3.
S204, if the anchor point cell confirms that the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node groups meets the preset number, auxiliary node group confirmation information is sent to the control platform, and the auxiliary node group confirmation information is used for representing that the candidate auxiliary node groups have the confirmation consensus capability.
And the anchor point cell sends auxiliary node group confirmation information to the control platform under the condition that the candidate auxiliary node group has the confirmation consensus capability, so as to indicate that the candidate auxiliary node group contained in the auxiliary node group request sent by the control platform has the confirmation consensus capability.
S205, the control platform receives the auxiliary node group confirmation information sent by the anchor point cell, and determines candidate auxiliary node groups corresponding to the auxiliary node group confirmation information in the auxiliary node group list as auxiliary node groups.
After receiving the auxiliary node group confirmation information sent by the anchor point cell, the control platform determines a candidate auxiliary node group with confirmation consensus capability and an anchor point cell corresponding to the candidate auxiliary node group from the anchor point cell, and continuously stores the candidate auxiliary node group and the anchor point cell in an auxiliary node group list, namely, determines the candidate auxiliary node group as an auxiliary node group.
S206, if the anchor point cell confirms that the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group does not meet the preset number, sending auxiliary node group rejection information to the control platform, wherein the auxiliary node group rejection information is used for representing that the candidate auxiliary node group does not have the capability of confirming consensus.
It should be noted that, the anchor cell determines whether each candidate auxiliary node group has the capability of confirming consensus according to the number of terminal auxiliary nodes with data verification qualification included in the candidate auxiliary node group. In detail, if the number of the terminal auxiliary nodes with the data verification qualification is smaller than the preset number, the candidate auxiliary node group is determined to have no capability of confirming the consensus, and if the number of the terminal auxiliary nodes with the data verification qualification is larger than or equal to the preset number, the candidate auxiliary node group is determined to have the capability of confirming the consensus. Further, if the anchor cell determines that the candidate auxiliary node group does not have the capability of confirming the consensus, auxiliary node group rejection information is sent to the control platform to indicate that the candidate auxiliary node group contained in the auxiliary node group request sent by the control platform does not have the capability of confirming the consensus.
S207, the control platform receives auxiliary node group rejection information sent by the anchor point cell.
And S208, the control platform updates and replaces the auxiliary node group corresponding to the auxiliary node group rejection information and the corresponding anchor point cell in the auxiliary node group list according to the candidate auxiliary node group with the forefront auxiliary node group weight value bit sequence except the auxiliary node group list.
After receiving the auxiliary node group rejection information sent by the anchor point cell, the control platform determines an auxiliary node group which does not have the capability of confirming consensus and an anchor point cell corresponding to the auxiliary node group from the anchor point cell, deletes the auxiliary node group from the auxiliary node group list, and determines one candidate auxiliary node group with the forefront auxiliary node group weight value bit sequence except the auxiliary node group list as a candidate auxiliary node group in the auxiliary node group list.
The auxiliary node group list is determined by the control platform according to the auxiliary node group weight value. Specifically, K candidate auxiliary node groups with the front bit sequence of the auxiliary node group weight value in all the candidate auxiliary nodes are selected as candidate auxiliary node groups in the auxiliary node group list.
Illustratively, step S208 is described in detail taking the example that the auxiliary node group list includes K candidate auxiliary node groups. The auxiliary node group list includes K candidate auxiliary node groups, which may be understood as including K candidate auxiliary node groups in the auxiliary node group list before performing confirmation and consensus capability verification on K candidate auxiliary node groups corresponding to the K anchor point cells, where the K candidate auxiliary node groups are K candidate auxiliary node groups with a front bit sequence of an auxiliary node group weight value. If 1 auxiliary node group rejection information is received after the confirmation consensus capability verification is performed on K candidate auxiliary node groups corresponding to the K anchor point cells, the control platform updates the candidate auxiliary node groups corresponding to the auxiliary node group rejection information in the auxiliary node group list to be the (K+1) th candidate auxiliary node group with the candidate auxiliary node group weight bit sequence being positioned in (K+1), and deletes the candidate auxiliary node groups corresponding to the auxiliary node group rejection information from the auxiliary node group list and updates the bit sequences of all the candidate auxiliary node group weights again.
As one possible implementation, the secondary node group weight value is determined by the following formula (1):
wgi = [ Wn×Ln+Wo×Lo+Ws×ls ] ×Io, equation (1)
Wherein Wgi represents an auxiliary node group weight value, wn represents a terminal auxiliary node weight, ln represents a terminal auxiliary node number grade, wo represents an anchor point cell resource occupancy weight, lo represents an anchor point cell idle occupancy grade, ws represents a terminal auxiliary node acting weight, ls represents a terminal auxiliary node historical bearing condition grade, io represents an anchor point cell resource occupancy indication, both Wn, ln, wo, lo, ls and Io are greater than or equal to 0, and Ws is an integer greater than or equal to 1.
As a possible implementation of the above embodiment, ln is related to the number ni of terminal auxiliary nodes. And if the number ni of the auxiliary nodes of the terminal is in different intervals, ln values are different. The greater the number of terminal secondary nodes (i.e., ni) contained by the secondary node group, the greater Ln, for example, ni < 50, ln=0, 50+.ni < 100, ln=1, 100+.ni < 150, ln=2, ni+.150, ln=3.
In detail, lo is the idle time occupancy rate level of the anchor cell, which can be understood as dividing according to the idle time resource occupancy rate of the anchor cell, where the resource occupancy rates are located in different intervals and have different Lo values. And when the resource occupancy rate is the highest, lo takes 0. For example, the occupancy rate of the anchor cell is greater than 70% when the anchor cell is idle, l0=0, the occupancy rate level of the anchor cell is between 50% and 70%, lo=1, the occupancy rate level of the anchor cell is less than 50%, lo=2.
Where Ls has an initial value of 0, io represents an anchor cell resource occupancy indication, and it can be understood that io=0 when Lo is equal to 0 and io=1 when Lo is not equal to 0. The purpose of the Io value is to temporarily not select the anchor cell as the auxiliary node group when the load of the anchor cell is high, so as to avoid further increasing the load of the anchor cell.
Further, WS is greater than (Wn×Lnmax+Wo×Lomax), lnmax and Lomax being the maximum values that Ln and Lo can take.
Further, when Ln, lo, or Ls changes, the value of Wgi also changes. Wherein Ln and Lo are sent by the anchor cell to the control platform and the anchor cell periodically updates the values of Ln and Lo.
In the embodiment of the present application, the control platform may process the received auxiliary node group acknowledgement information or auxiliary node group rejection information one by one, or may process all auxiliary node group acknowledgement information or auxiliary node group rejection information simultaneously.
Illustratively, after verifying the confirmation consensus capability of the K candidate auxiliary node groups, if (K-n) auxiliary node group confirmation information and n auxiliary node group rejection information are received, updating the n candidate auxiliary node groups corresponding to the auxiliary node group rejection information to the (k+n) th candidate auxiliary node group with the candidate auxiliary node group weight bit sequence located at (k+n), and deleting the n candidate auxiliary node groups corresponding to the n auxiliary node group rejection information from the auxiliary node group list and updating the bit sequences of all the candidate auxiliary node group weights again. The application does not limit the sequence of processing the auxiliary node group acknowledgement information or auxiliary node group rejection information by the control platform and the number of simultaneous processing.
It may be appreciated that after updating the corresponding one or more candidate auxiliary node groups in the auxiliary node group list, if the corresponding candidate auxiliary node group in the auxiliary node group list needs to be deleted or added, one or more candidate auxiliary node groups and corresponding anchor cells included in the auxiliary node group list included in the auxiliary node group request are updated, and the updated anchor cells are sent to the updated auxiliary node group request to determine the confirmation consensus capability of the updated candidate auxiliary node groups.
In the data verification method provided by the embodiment of the present application, the control platform determines a plurality of candidate auxiliary node groups through the bit sequence of the auxiliary node group weight value. Wherein, a plurality of candidate auxiliary node groups are respectively corresponding to one anchor point cell one by one. And each anchor point cell confirms the confirmation consensus capacity of the corresponding candidate auxiliary node group respectively, so as to determine the auxiliary node group. Therefore, the auxiliary node group and the terminal auxiliary node corresponding to the anchor point cell determined based on the data verification method ensure the confirmation and consensus capability of the auxiliary node group participating in the data verification consensus, namely, ensure that the anchor point cell corresponding to the auxiliary node group can contain enough terminal auxiliary nodes with data verification qualification, thereby ensuring the reliability in the data verification process.
Fig. 3 is a flowchart of a data verification method according to an embodiment of the present application, and as shown in fig. 3, the data verification method is performed by an anchor cell, and may specifically include:
s301, determining N terminal auxiliary nodes with the front weight bit sequence of the terminal auxiliary node from M terminal auxiliary nodes included in the candidate auxiliary node group.
S302, sending terminal auxiliary node requests to N terminal auxiliary nodes to confirm whether the terminal auxiliary nodes have data verification qualification according to a confirmation result returned by the terminal auxiliary nodes in a preset time. The terminal auxiliary node request is generated by the anchor point cell according to the auxiliary node group request sent by the control platform, and the terminal auxiliary node request also comprises a preset wireless signal quality parameter, wherein the preset wireless signal quality parameter is used for testing whether the terminal auxiliary node has data verification capability or not. Specifically, the description of the preset wireless signal quality parameter for testing whether the terminal auxiliary node has the data verification capability is described in detail below for the specific implementation of step S402.
When the preset number is N, the anchor cell determines N terminal auxiliary nodes with the front terminal auxiliary node weight bit sequence from all the terminal auxiliary nodes (i.e., M terminal auxiliary nodes) after acquiring the terminal auxiliary node weights of all the terminal auxiliary nodes in the candidate auxiliary node group. And sending the terminal auxiliary node request to N terminal auxiliary nodes so that the N terminal auxiliary nodes respectively determine the data verification qualification of the respective terminal auxiliary nodes.
The preset number N may be set according to the requirement. In any implementation, if the number M of the terminal auxiliary nodes included in the candidate auxiliary node group is less than N, auxiliary node group rejection information is sent to the control platform.
As a possible implementation manner, the preset number N of terminal auxiliary nodes may be understood as N of terminal auxiliary nodes actually bearing the auxiliary node function at a time. N is obtained according to the following formula:
n=round up (b/K) +m0, equation (2)
Wherein b is the total number of auxiliary nodes required by each participation in the data verification consensus, K is the number of auxiliary node groups required by each participation in the data verification consensus, and M0 is the required terminal auxiliary node allowance. The preset number N acquired by the method can prevent the terminal auxiliary node from moving to other anchor cells in the data verification consensus process, and can not directly establish connection with the anchor cells.
S303b, if the N1 terminal auxiliary nodes are confirmed to have data verification qualification, and N1 is equal to N, determining that the candidate auxiliary node group has the confirmation consensus capability.
If the anchor point cell receives the confirmation results returned by the N terminal auxiliary nodes within the preset time, it is indicated that the candidate auxiliary node group has the capability of confirming and consensus, that is, the anchor point cell can send auxiliary node group confirmation information to the control platform. If the anchor point cell does not receive the confirmation results returned by the N terminal auxiliary nodes within the preset time, the candidate auxiliary node group is not provided with the confirmation consensus capability, namely the anchor point cell can send auxiliary node group rejection information to the control platform.
S303a, if the fact that N1 terminal auxiliary nodes have data verification qualification is confirmed, and N1 is smaller than N, judging whether the current request times are smaller than preset times or not.
The request times refer to the times of simultaneously sending terminal auxiliary node requests to a plurality of terminal auxiliary nodes.
S304, if the current request times are smaller than the preset times, determining (N-N1) terminal auxiliary nodes with the front weight bit sequence of the terminal auxiliary node from the terminal nodes except the N terminal auxiliary nodes in the candidate auxiliary node group, and sending terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes.
And S305, updating N1 according to the number of the terminal auxiliary nodes with data verification qualification in the (N-N1) terminal auxiliary nodes until the request times are equal to the preset times, or N1 is equal to N, or the terminal auxiliary node requests are sent to all the terminal auxiliary nodes.
When the number of the acknowledgement results received by the terminal auxiliary node in the preset time is smaller than the preset number N, the total number of times that the current anchor cell sends the terminal auxiliary node requests to the plurality of terminal auxiliary nodes is counted, and whether the total number of times (i.e. the current requests) reaches the preset number of times is judged. If the current request times are greater than or equal to the preset times, the candidate auxiliary node group is not provided with the capability of confirming consensus, namely the anchor point cell can send auxiliary node group rejection information to the control platform.
Specifically, if the current request times are smaller than the preset times, and if the (N-N1) terminal auxiliary nodes with the front weight bit sequence of the terminal auxiliary node can be selected from the terminal nodes except the N terminal auxiliary nodes in the candidate auxiliary node group, sending terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes, and updating N1 and the update request times according to the number of the terminal auxiliary nodes with data verification qualification in the (N-N1) terminal auxiliary nodes. And judging the updated N1 and N, the updated request times and the preset times.
Specifically, if the current request times are smaller than the preset times and the (N-N1) terminal auxiliary nodes with the front terminal auxiliary node weight bit sequence cannot be selected from the terminal nodes except the N terminal auxiliary nodes in the candidate auxiliary node group, the candidate auxiliary node group is not provided with the capability of confirming consensus, that is, the anchor point cell can send auxiliary node group rejection information to the control platform.
Wherein, according to the number of the terminal auxiliary nodes with data verification qualification in the (N-N1) terminal auxiliary nodes, updating N1 can be understood as updating N1 to (N1+b) if the number of the terminal auxiliary nodes with data verification qualification in the (N-N1) terminal auxiliary nodes is b.
For example, if the anchor cell receives N acknowledgement results returned by N terminal auxiliary nodes in the candidate auxiliary nodes within the preset time Taw1, the anchor cell replies auxiliary node group acknowledgement information to the control platform, and confirms that the N terminal auxiliary nodes of the candidate auxiliary node group act as terminal auxiliary nodes in the data verification consensus.
If the anchor cell only receives N1 auxiliary node acknowledgement messages (N1 < N) in Taw1, the terminal auxiliary node replying the refusal result and the terminal auxiliary node without any reply are abandoned from the N terminal auxiliary nodes of the anchor cell, namely the anchor cell cannot act as the terminal auxiliary node function (even if the follow-up process receives the auxiliary node acknowledgement message sent by the terminal, the follow-up process is abandoned). The terminal auxiliary node cancel message may be transmitted to the terminal auxiliary node that performs the discard process.
Meanwhile, the anchor point cell selects (N-N1) terminal auxiliary nodes with the terminal auxiliary node weight bit sequence being forward according to the terminal auxiliary node weight Wui, sends terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes, adds 1 to the counter Ci1, waits for Taw1 to collect reply messages of the (N-N1) terminal auxiliary nodes, and if the (N-N1) auxiliary node confirmation messages are not collected, namely the total number of the received auxiliary node confirmation messages does not reach N, repeats the steps of sending terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes and judging steps after the steps, continues to search for alternative terminal auxiliary nodes according to the terminal auxiliary node weight Wui, adds 1 to the counter round number Ci1 until N auxiliary nodes are found, and replies auxiliary node group confirmation messages to the control platform. Wherein Ci1 is the round number of the searching counter of the terminal auxiliary node of the anchor point cell, the initial value is 0, and Ci1 can be understood as the round number used for recording the searching of the terminal auxiliary node of the anchor point cell.
Further, if the Ci1 value reaches the preset number of times, N auxiliary node terminals are not found yet, or the anchor point cell has issued a terminal auxiliary node request to all the terminal auxiliary nodes of the candidate auxiliary node group, but N auxiliary node acknowledgement information is not received, or the number of terminal auxiliary nodes in the auxiliary node group list under the candidate auxiliary node group is less than N, the anchor point cell corresponding to the candidate auxiliary node group sends auxiliary node group rejection information to the control platform.
Further, when the control platform receives the auxiliary node group rejection message sent by the auxiliary node anchor cell, the control platform sends the auxiliary node group rejection message to the candidate auxiliary node group, reselects the candidate auxiliary node group according to the auxiliary node group weight value Wgi, and sends an auxiliary node group request message to the updated candidate auxiliary node group.
Further, the control platform receives the auxiliary node group confirmation information sent by all candidate auxiliary node groups, and takes all candidate auxiliary node groups corresponding to the auxiliary node group confirmation information as all auxiliary node groups to finish auxiliary node group and terminal auxiliary node auxiliary selection.
Further, the control platform sends the determined auxiliary node group to anchor point cells corresponding to all auxiliary node groups in the auxiliary node group list. The auxiliary node group list comprises auxiliary node group identifiers and anchor point cell identifiers of all auxiliary node groups participating in the data verification consensus work at the time.
Fig. 4 is a flowchart of a data verification method according to an exemplary embodiment of the present application, which is specifically a schematic diagram of an interaction process between an anchor cell and a terminal auxiliary node, as shown in fig. 4, where the data verification method may include:
s401, the anchor point cell sends terminal auxiliary node requests to N terminal auxiliary nodes.
S402, the terminal auxiliary node determines whether the terminal auxiliary node has data verification qualification.
S403, the terminal auxiliary node sends a confirmation result with data verification qualification determination for the terminal auxiliary node to the anchor point cell.
S404, the anchor point cell confirms whether the terminal auxiliary node has data verification qualification according to a confirmation result returned by the terminal auxiliary node in a preset time.
The terminal auxiliary node request comprises preset wireless signal quality parameters, wherein the preset wireless signal quality parameters are used for testing whether the terminal auxiliary node has data verification capability or not.
From the above embodiments, it can be seen that, in the embodiments of the present application, the specific interaction procedure between the anchor cell and the terminal auxiliary node in the data verification method in steps S302 to S304. With reference to fig. 3 and fig. 4, in the embodiment of the present application, by means of interaction between the anchor cell and the terminal auxiliary node through the terminal auxiliary node request and the confirmation result, whether N terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group are judged, so as to determine whether the candidate auxiliary node group has the confirmation consensus capability.
Specifically, the anchor point cell collects the acknowledgement result sent by the terminal auxiliary node, and determines the number of the collected acknowledgement results. And when the number of the confirmation results is smaller than the preset number N in each judgment, determining the number of the terminal auxiliary nodes and the terminal auxiliary nodes for retransmitting the terminal auxiliary node request according to the auxiliary node weights of the rest terminal auxiliary nodes. If the number of the confirmation results does not reach N, the process of judging the number of the confirmation results, the number of the requests and sending the requests of the terminal auxiliary nodes is carried out until the number of the requests is equal to the preset number, or the number of the summarized confirmation results is equal to N, or the requests of the terminal auxiliary nodes are sent to all the terminal auxiliary nodes.
As a possible implementation manner, the above step S402 may be implemented in the following manner. The preset wireless signal quality parameter is set to a preset signal receiving power and a preset signal to interference plus noise ratio, wherein the preset signal to interference plus noise ratio refers to a ratio of a pre-stored strength of a received useful signal to a strength of a received interference signal (noise and interference). And under the condition that any one of the terminal auxiliary nodes judges that the receiving power of the reference signal corresponding to any one of the terminal auxiliary nodes is larger than or equal to the receiving power of the preset signal, and the ratio of the signal corresponding to any one of the terminal auxiliary nodes to the interference plus noise is larger than or equal to the ratio of the preset signal to the interference plus noise, the terminal auxiliary node sends a confirmation result to the anchor point cell. And under the condition that any one of the terminal auxiliary nodes determines that the receiving power of the reference signal corresponding to any one of the terminal auxiliary nodes is smaller than the receiving power of the preset signal or the ratio of the signal corresponding to any one of the terminal auxiliary nodes to the interference plus noise is smaller than the ratio of the preset signal to the interference plus noise, the terminal auxiliary node does not send a rejection message to the anchor cell.
The above terminal auxiliary node does not send a rejection message to the anchor cell, and it can be understood that it sends neither an acknowledgement result nor a rejection result to the anchor cell.
Fig. 5 is a flowchart of a data verification method according to an exemplary embodiment of the present application, which specifically is an interaction process schematic of a control platform, an anchor cell, a terminal auxiliary node, and a master node, as shown in fig. 5, where the data verification method may include:
s501, the control platform sends a data verification request to the anchor point cell and the master node.
The data verification request may be a data verification request generated by the control platform according to the data to be verified. The data to be verified can be network quality data formed by summarizing measurement reports in a certain time period by a control platform.
For example, the data verification request may be formed from network quality data and recorded timestamp data associated with the network quality data.
S502, the master node receives a data verification request sent by the control platform, verifies the data to be verified, and generates a third verification result.
S503, the master node generates a third verification confirmation request according to the third verification result.
It should be noted that, the control platform sends the data verification request to all the master nodes, so that all the master nodes verify the data to be verified. Wherein the data verification request includes data to be verified.
As a possible way, step S502 and step S503 may be implemented in the following specific manner. And the master node performs data verification and block packing on the information in the data verification request, and generates a third verification confirmation request by the block data, the block abstract, the time stamp, the block serial number and the block information after block packing and verification.
In some embodiments, the third validation request is encrypted prior to transmission of the third validation request.
S504, the first anchor point cell receives a data verification request sent by the control platform.
The first anchor point cell is an anchor point cell corresponding to any one auxiliary node group.
And S505, the first anchor point cell sends the data verification request to the terminal auxiliary node corresponding to the first anchor point cell.
It can be understood that the control platform does not directly send the data verification request to the terminal auxiliary node, but forwards the data verification request to the terminal auxiliary node corresponding to the first anchor point cell through the first anchor point cell, so that the frequency of sending the data to be verified by the control platform is reduced.
S506, the terminal auxiliary node receives the data verification request sent by the first anchor point cell.
S507, the terminal auxiliary node verifies the data to be verified in the data verification request, and a first verification result is generated.
And S508, the terminal auxiliary node sends the first verification result to the first anchor point cell.
S509, the first anchor cell receives a first verification result returned by the terminal auxiliary node corresponding to the first anchor cell to determine a first verification confirmation request.
It can be understood that each anchor cell gathers the verification results returned by all the corresponding terminal auxiliary nodes to obtain the first verification confirmation request. When the first anchor cell includes N terminal auxiliary nodes, the N terminal auxiliary nodes verify the data to be verified, and then the N terminal auxiliary nodes send respective verification results to the corresponding first anchor cell, and the first anchor cell gathers the N verification results returned by the N terminal auxiliary nodes to obtain a first verification confirmation request. The first verification confirmation request includes a first verification result.
In some embodiments, the first verification result includes block data, a block digest, a timestamp, a block sequence number, and block information formed after the terminal auxiliary node packages and verifies the data block.
Alternatively, the first verification result may include encryption information for the first verification result.
S510, the first anchor point cell sends a first verification confirmation request to the terminal auxiliary node corresponding to the first anchor point cell.
S511, the first anchor cell sends a first authentication confirm request to the master node.
S512, the master node confirms consensus for the first verification result in the first verification confirmation request.
S513, the terminal auxiliary node confirms consensus for the first verification result in the first verification confirmation request.
It can be understood that the first anchor cell obtains the first verification confirmation request according to the verification results of all the terminal auxiliary nodes corresponding to the first anchor cell. And sending the first verification confirmation request to the master node and the terminal auxiliary node to complete the confirmation consensus of the master node and the terminal auxiliary node on the first verification result.
It should be noted that, data transmission between terminal auxiliary nodes corresponding to each anchor point cell is also forwarded through the anchor point cell. In detail, the first anchor point cell sends a first verification confirmation request to the second anchor point cell, all the main nodes and the terminal auxiliary nodes corresponding to the first anchor point cell, so that all the terminal auxiliary nodes and all the main nodes confirm the common recognition of the first verification result, wherein the first anchor point cell is the anchor point cell corresponding to any auxiliary node group, and the second anchor point cell is any anchor point cell except the first anchor point cell. The first anchor point cell receives a second verification confirmation request sent by a second anchor point cell, wherein the second verification confirmation request comprises a second verification result of the data to be verified, which corresponds to the second anchor point cell, of the terminal auxiliary node; the first anchor point cell sends a second verification confirmation request to the terminal auxiliary node corresponding to the first anchor point cell, so that the terminal auxiliary node corresponding to the first anchor point cell confirms consensus of the second verification result.
And S514, the master node sends a third verification confirmation request to the first anchor point cell.
It should be noted that, the master node further sends a third verification confirmation request to the second anchor cell, so that the terminal auxiliary node corresponding to the second anchor cell confirms the consensus of the third verification result in the third verification confirmation request. In other words, the master node sends the third verification confirmation request to all the anchor cells, and all the anchor cells are composed of the first anchor cell and the second anchor cell.
S515, the first anchor cell receives the third verification confirmation request sent by the master node.
S516, the first anchor point cell sends a third verification confirmation request to the terminal auxiliary node corresponding to the first anchor point cell.
S517, the terminal auxiliary node confirms consensus for the third verification result in the third verification confirmation request.
Wherein the master node may send a third authentication acknowledgement request to all anchor cells involved in data authentication, i.e. the first anchor cell and the second anchor cell.
It should be noted that, by sending the third verification confirmation request to the anchor cell, the primary node reduces the number of times the primary node transmits data.
When the master node is multiple, the master node forwards the third verification confirmation request of the master node to other master nodes, so that the other master nodes confirm consensus on the third verification result in the third verification confirmation request.
As illustrated in fig. 6 and 7. Fig. 6 is a schematic diagram of data links between nodes in the related art. Fig. 7 is a schematic diagram of data links between nodes according to an embodiment of the present application. Take as an example 2 primary nodes and 6 terminal secondary nodes in fig. 6 and 7. The primary nodes in fig. 6 are Z1 'and Z2', and the terminal secondary nodes are F1', F2', F3', F4', F5 'and F6'. In fig. 7, the primary nodes are Z1 and Z2, the terminal secondary nodes are F1, F2, F3, F4, F5 and F6, and the anchor cells M1 and M2. In the data verification consensus process, when the verification result of the master node Z1' is verified and consensus is performed in the related art, a verification confirmation request needs to be sent to each auxiliary node and each master node, namely 7 times, and in the same way, each node Z1', Z2', F1', F2', F3', F4', F5' and F6' in the data verification consensus process sends the verification result confirmation request 7 times, so that the verification consensus process of all other nodes on the verification result of the node can be completed. In the embodiment of the application, the master node Z1 and Z2 can complete the confirmation and consensus of the verification results of the master node by other nodes only by sending 3 verification confirmation requests. In the embodiment of the application, the auxiliary nodes F1, F2, F3, F4, F5 and F6 can complete the confirmation and consensus of the verification results of all other nodes (all nodes except the node) to the node by only sending a verification confirmation request once. Therefore, the data verification method provided by the application can reduce the communication times of receiving and transmitting data between each auxiliary node and the main node in the data verification consensus process, and reduce the complexity of the data verification consensus process, thereby reducing the power consumption of the terminal and the time delay of the data consensus process.
In this embodiment, the anchor cell and the terminal auxiliary node corresponding to the anchor cell may be obtained through steps S201 to S208 and/or steps S301 to S305 and/or steps S401 to S404 in the provided data verification method. The anchor point cell participating in data verification is further guaranteed to have the capability of confirming consensus, and the terminal auxiliary node corresponding to the anchor point cell has the capability of data verification.
In some embodiments, the master node is built by an operator together, and is responsible for the equipment of block generation and block storage, and the terminal auxiliary node selects a terminal with terminal bearing capacity in the network, namely comprehensively selects based on factors such as terminal capacity, terminal willingness, terminal electric quantity, historical participation and the like. The selected terminal auxiliary node participates in the data block generation verification in the data verification process. And the co-established shared network quality information is stored in a trusted way by matching the main node with the terminal auxiliary node.
It should be noted that, in the above embodiment, after all the master nodes and the terminal slave nodes generate the verification result confirmation consensus in the verification confirmation request, the corresponding confirmation consensus result is generated and then directly sent to the control platform. The method comprises the steps that a confirmation consensus result corresponding to each node is marked as Cji, the nodes are any one main node and any one terminal auxiliary node, the verification confirmation request comprises a first verification confirmation request generated by a first anchor point cell according to a first verification result, a second verification confirmation request generated by a second anchor point cell according to a second verification result, and a third verification confirmation request generated by the main node according to a third verification result, and the second anchor point cell is any anchor point cell except the first anchor point cell.
In some embodiments, after performing steps S510 to S517, the control platform determines the target consensus result according to the received acknowledgement consensus results sent by all the terminal auxiliary nodes and all the main nodes.
Illustratively, after receiving the confirmation consensus results sent by all the master nodes and the terminal auxiliary nodes, the control platform generates a confirmation consensus result set { Cij } for the verification of the verification results of other nodes by each node (wherein Cji is the confirmation consensus result of node j to node i, and j is not equal to i). The control platform determines the master node with the largest sum of the confirmation consensus results of other nodes in each master node to the master node based on the verification set { Cij } sent by each node, and takes the verification result corresponding to the largest master node as a target consensus result, and broadcasts the target consensus result to all the master nodes so that all the master nodes store the target consensus result. In some embodiments, the target consensus result is typically the best block data.
Through the above embodiment, after generating the data verification request according to the data to be verified, the control platform sends the generated data verification request to all anchor cells and all master nodes. And forwarding the received data verification request to all terminal auxiliary nodes corresponding to the anchor point cells. Thus, the verification of the data to be verified by all the terminal auxiliary nodes and all the main nodes is completed. After verification is completed, on one hand, the master node sends verification results generated by verifying the data to be verified to other master nodes and all anchor point cells respectively so as to complete confirmation and consensus of the verification results of all master nodes by all master nodes and all terminal auxiliary nodes. And simultaneously, all the terminal auxiliary nodes send verification results generated by respective verification of the data to be verified to respective corresponding anchor point cells. And on the other hand, each anchor cell gathers all verification results sent by all terminal auxiliary nodes corresponding to the received anchor cells, so as to determine verification determination requests corresponding to the anchor cells. And all the anchor point cells send the corresponding verification confirmation requests to other anchor point cells, all the main nodes and all the terminal auxiliary nodes corresponding to the anchor point cells so as to complete the confirmation consensus of the verification results of all the main nodes and all the terminal auxiliary nodes to all the terminal auxiliary nodes.
The embodiment of the present application also provides a data verification device based on a consensus mechanism, which is applied to a first anchor cell in a communication system 10, the communication system 10 further includes a control platform, a plurality of main nodes and a plurality of terminal auxiliary nodes, the plurality of terminal auxiliary nodes are divided into a plurality of auxiliary node groups in advance, the terminal auxiliary nodes in each auxiliary node group correspond to the same anchor cell, the first anchor cell is an anchor cell corresponding to any auxiliary node group, and the data verification device includes: a first receiving unit 81, configured to receive a data verification request sent by the control platform, where the data verification request includes data to be verified; a first sending unit 82, configured to send a data verification request to a terminal auxiliary node corresponding to the first anchor cell, so that the terminal auxiliary node corresponding to the first anchor cell verifies data to be verified; a determining unit 83, configured to aggregate first verification results of the data to be verified returned by the terminal auxiliary node corresponding to the first anchor cell, so as to determine a first verification confirmation request; the first sending unit 82 is further configured to send a first authentication confirmation request to the second anchor cell, all the master nodes, and the terminal auxiliary nodes corresponding to the first anchor cell, so that all the terminal auxiliary nodes and all the master nodes confirm the common identification of the first authentication result, and the second anchor cell is any anchor cell except the first anchor cell.
Optionally, the first receiving unit 81 is further configured to: receiving a second verification confirmation request sent by a second anchor point cell, wherein the second verification confirmation request comprises a second verification result of data to be verified, corresponding to the second anchor point cell, of a terminal auxiliary node; the first sending unit 82 is configured to send a second verification confirmation request to the terminal auxiliary node corresponding to the first anchor cell, so that the terminal auxiliary node corresponding to the first anchor cell confirms the consensus of the second verification result.
Optionally, the first receiving unit 81 is further configured to: receiving a third verification confirmation request sent by the master node, wherein the third verification confirmation request comprises a third verification result of data to be verified by the master node; the first sending unit 82 is configured to send a third verification confirmation request to the terminal auxiliary node corresponding to the first anchor cell, so that the terminal auxiliary node corresponding to the first anchor cell confirms the consensus of the third verification result.
Optionally, before receiving the data verification request sent by the control platform, the first receiving unit 81 is further configured to: receiving an auxiliary node group request sent by a control platform, wherein the auxiliary node group request comprises candidate auxiliary node groups corresponding to a first anchor point cell; the determining unit 83 is further configured to determine, in response to the secondary node group request, whether the candidate secondary node group has a capability of confirming consensus by confirming whether the number of terminal secondary nodes having data verification qualifications in the candidate secondary node group satisfies a preset number; if the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group is confirmed to meet the preset number, auxiliary node group confirmation information is sent to the control platform, and the auxiliary node group confirmation information is used for representing that the candidate auxiliary node group has the confirmation consensus capability; if the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group is confirmed to not meet the preset number, auxiliary node group rejection information is sent to the control platform, and the auxiliary node group rejection information is used for representing that the auxiliary node group does not have the confirmation consensus capability.
Optionally, the step of determining whether the candidate auxiliary node group has the capability of confirming consensus by confirming whether the number of terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group meets the preset number specifically includes: from M terminal auxiliary nodes included in the candidate auxiliary node group, N terminal auxiliary nodes with the front terminal auxiliary node weight bit sequence are determined; sending terminal auxiliary node requests to N terminal auxiliary nodes to confirm whether the terminal auxiliary nodes have data verification qualification according to whether the terminal auxiliary nodes return confirmation results in preset time or not; if N1 terminal auxiliary nodes are confirmed to be qualified for data verification, and N1 is equal to N, the candidate auxiliary node group is confirmed to have the capability of confirming consensus.
Optionally, the determining unit 83 is further configured to: if the N1 terminal auxiliary nodes are confirmed to have the data verification qualification, and N1 is smaller than N, judging whether the current request times are smaller than the preset times, wherein the request times are times of sending terminal auxiliary node requests to a plurality of terminal auxiliary nodes at the same time; if the current request times are smaller than the preset times, determining (N-N1) terminal auxiliary nodes with the front weight bit sequence of the terminal auxiliary nodes from the terminal auxiliary nodes except the N terminal auxiliary nodes in the candidate auxiliary node group, and sending terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes; and updating N1 according to the number of the terminal auxiliary nodes with data verification qualification in the (N-N1) terminal auxiliary nodes until the request times are equal to the preset times, or N1 is equal to N, or the terminal auxiliary node requests are sent to all the terminal auxiliary nodes.
Optionally, the determining unit 83 is further configured to: and sending auxiliary node group rejection information to the control platform under the condition that the number M of the terminal auxiliary nodes included in the candidate auxiliary node groups is less than N.
The embodiment of the application also provides a data verification device based on a consensus mechanism, which is applied to a control platform in a communication system, wherein the communication system also comprises a plurality of main nodes and a plurality of terminal auxiliary nodes, the plurality of terminal auxiliary nodes are divided into at least one auxiliary node group in advance, and the terminal auxiliary nodes in each auxiliary node group correspond to the same anchor point cell, and the data verification device comprises: the acquisition unit is used for generating a data verification request according to the data to be verified; the second sending unit is used for sending the data verification request to the anchor point cell and all the main nodes so that all the terminal auxiliary nodes and all the main nodes corresponding to the anchor point cell verify the data to be verified in the data verification request and confirm and consensus the verification result; and the second receiving unit is used for receiving the confirmation consensus results sent by all the auxiliary nodes of the terminal and all the main nodes so as to determine the target consensus result.
It should be noted that the data verification apparatus is applied to a control platform in the communication system 10, the communication system 10 further includes a plurality of master nodes and a plurality of terminal slave nodes, the plurality of terminal slave nodes are divided into at least one slave node group in advance, the terminal slave nodes in each slave node group correspond to a same anchor cell, and the obtaining unit 91 is configured to: the data verification method comprises the steps of generating a data verification request according to data to be verified; a second sending unit 92, configured to send a data verification request to the anchor cell and all the master nodes, so that all the terminal auxiliary nodes and all the master nodes corresponding to the anchor cell verify the data to be verified in the data verification request; and the second receiving unit 93 is configured to receive a confirmation consensus result sent by all the terminal auxiliary nodes and all the master nodes to determine a target consensus result, where the confirmation consensus result is a confirmation consensus result generated after the confirmation consensus of the verification results by all the terminal auxiliary nodes and all the master nodes, and the verification results include a first verification result, a second verification result and a third verification result.
Optionally, the notification unit 94: and broadcasting the target consensus result to all the master nodes so that all the master nodes store the target consensus result.
Optionally, before the step of transmitting the data authentication request to the anchor cell and all the master nodes, the second transmitting unit 92 is further configured to: and sending an auxiliary node group request to the anchor point cell so that the anchor point cell generates a terminal auxiliary node request according to the auxiliary node group request, wherein the auxiliary node group request comprises an auxiliary node group list, and the auxiliary node group list comprises a plurality of candidate auxiliary node groups with the earlier bit sequences of auxiliary node group weight values.
Optionally, the second receiving unit 93 is further configured to: and receiving auxiliary node group confirmation information sent by the anchor point cell, and determining candidate auxiliary node groups corresponding to the auxiliary node group confirmation information in the auxiliary node group list as auxiliary node groups.
Optionally, the second receiving unit 93 is further configured to: receiving auxiliary node group rejection information sent by an anchor point cell;
optionally, the obtaining unit 91 is further configured to update, by using the control platform, the candidate auxiliary node group corresponding to the auxiliary node group rejection information and the corresponding anchor cell in the auxiliary node group list according to the candidate auxiliary node group with the forefront auxiliary node group of the other auxiliary node group weight value bit sequence except the auxiliary node group list; and requesting the auxiliary node group for updating, and sending the updated auxiliary node group request to the updated anchor point cell.
Optionally, the step of updating the auxiliary node group corresponding to the auxiliary node group rejection information in the auxiliary node group list according to the auxiliary node group weight value specifically includes: and updating the auxiliary node group corresponding to the auxiliary node group rejection information into a (K+1) th auxiliary node group with the auxiliary node group weight bit sequence being positioned in (K+1), deleting the auxiliary node group corresponding to the auxiliary node group rejection information from the auxiliary node group list, and updating the bit sequences of all the auxiliary node weights again.
Optionally, wgi = [ wn×ln+wo×lo+ws×ls ] ×io, where Wgi represents an auxiliary node group weight value, wn represents a terminal auxiliary node weight, ln represents a terminal auxiliary node number level, wo represents an anchor point cell resource occupancy weight, lo represents an anchor point cell idle time occupancy level, ws represents a terminal auxiliary node acting weight, ls represents a terminal auxiliary node historical bearing condition level, io represents an anchor point cell resource occupancy indication, wn, ln, wo, lo, ws, ls and Io are equal to or greater than 0.
The embodiment of the present application also provides a data verification device based on a consensus mechanism, applied to terminal auxiliary nodes in a communication system 10, where a plurality of terminal auxiliary nodes are pre-divided into at least one auxiliary node group, and the terminal auxiliary nodes in each auxiliary node group correspond to the same anchor point cell, and the data verification device includes: the third receiving unit 101 is configured to receive a data verification request sent by an anchor cell, verify data to be verified in the data verification request, and generate a verification result, where the data verification request includes the data to be verified; the third sending unit 101 is configured to send the verification result to the anchor cell, so that the anchor cell aggregates the verification result and determines a verification confirmation request; the third receiving unit 101 is configured to receive a verification confirmation request forwarded by the anchor cell, and perform a verification consensus on a verification result included in the verification confirmation request, so as to generate a verification consensus result; the third sending unit 101 is configured to send the confirmation consensus result to the control platform, so that the control platform determines the target consensus result.
The third sending unit is configured to send the first verification result to the first anchor cell and send the second verification result to the second anchor cell; the third receiving unit is further configured to receive a verification confirmation request sent by the first anchor cell and the master node, where the verification confirmation request includes a first verification confirmation request generated by the first anchor cell according to a first verification result, a second verification confirmation request generated by the second anchor cell according to a second verification result, and a third verification confirmation request generated by the master node according to a third verification result, the first anchor cell is an anchor cell corresponding to any one of the auxiliary node groups, the second anchor cell is any anchor cell other than the first anchor cell, the second verification result is a verification result of the data to be verified by the terminal auxiliary node corresponding to the second anchor cell, and the third verification result is a verification result of the data to be verified by the master node; the third receiving unit is further used for carrying out confirmation consensus on the verification result contained in the verification confirmation request so as to generate a confirmation consensus result; and the third sending unit is also used for sending the confirmation consensus result to the control platform so as to ensure that the control platform determines the target consensus result.
Optionally, before receiving the data authentication request sent by the anchor cell, the third receiving unit 101 is further configured to: receiving a terminal auxiliary node request sent by an anchor point cell so as to determine whether the terminal auxiliary node has data verification qualification, wherein the terminal auxiliary node request comprises preset wireless signal quality parameters which are used for testing whether the terminal auxiliary node has data verification capability; a third sending unit 101 is configured to send, to the anchor cell, a confirmation result of whether the terminal auxiliary node has the data verification qualification determination.
Optionally, the preset wireless signal quality parameter includes a preset signal receiving power and a preset signal to interference plus noise ratio; under the condition that the received power of the reference signal is larger than or equal to the received power of the preset signal and the ratio of the signal to the interference plus noise is larger than or equal to the ratio of the preset signal to the interference plus noise, the terminal auxiliary node sends a confirmation result to the anchor point cell; and under the condition that the received power of the reference signal is smaller than the received power of the preset signal or the ratio of the signal to the interference plus noise is smaller than the ratio of the preset signal to the interference plus noise, the terminal auxiliary node does not send a rejection message to the anchor point cell.
The embodiment of the application also provides a data verification device based on a consensus mechanism, which is applied to a master node in a communication system 10, and the data verification device comprises: a fourth receiving unit 113, configured to receive a data verification request sent by the control platform, and verify data to be verified to generate a verification result, where the data verification request includes the data to be verified; the generating unit 111 is configured to generate a verification confirmation request according to a verification result; and a fourth sending unit 112, configured to send a verification confirmation request to all anchor cells and other primary nodes, so that all terminal secondary nodes confirm the consensus of the verification result.
The embodiment of the application also provides a computer readable storage medium, and the computer readable storage medium stores a program or instructions which, when executed by a processor, implement the steps in the data verification method flow shown in the above method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: electrical connections having one or more wires, portable computer diskette, hard disk. Random access Memory (Random Access Memory, RAM), read-Only Memory (ROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), registers, hard disk, optical fiber, portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of readable storage medium suitable for the above, or any other form of value in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integr ated Circuit, ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Embodiments of the present application provide a computer program product stored in a non-volatile storage medium for execution by at least one processor to perform the steps of the data verification method flow shown in the method embodiments described above.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a readable storage medium or transmitted from one readable storage medium to another readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Fig. 12 shows a further possible structural schematic of the electronic device involved in the above-described embodiment. The device comprises: the memory 121, the processor 122, and a program or instructions stored on the memory 121 and executable on the processor 122, which when executed by the processor 122, implement the respective steps in the data verification method flow shown in the above-described method embodiment. The electronic device may further comprise a communication interface 123 and a bus 124, the communication interface 123 being arranged to support communication of the apparatus with other network entities, e.g. to perform the steps performed by the acquisition unit 91 described above.
The processor 122 may also implement or execute the various exemplary logic blocks, units, and circuits described in connection with the present disclosure. The processor 122 may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, units and circuits described in connection with this disclosure. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, etc.
Memory 121 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid state disk; the memory may also comprise a combination of the above types of memories.
Bus 124 may be an extended industry standard architecture (Extended Industry Standard Archite cture, EISA) bus or the like. The bus 124 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional units is illustrated, and in practical application, the above-described functional allocation may be performed by different functional units, that is, the internal structure of the apparatus is divided into different functional units, so as to perform all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
Since the electronic device, the readable storage medium and the computer program product according to the embodiments of the present application can be applied to the data verification method, the technical effects obtained by the method can also refer to the method embodiments, and the embodiments of the present application are not described herein.
The above units may be individually set up processors, may be integrated into one of the processors of the controller, or may be stored in the memory of the controller in the form of program codes, and the functions of the above units may be called and executed by one of the processors of the controller. The processor described herein may be a central processing unit (Central Processing Unit, CPU) or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one or more integrated circuits configured to implement embodiments of the present application.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, e.g., the partitioning of elements is merely a logical functional partitioning, and there may be additional partitioning in actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not implemented. Alternatively, the coupling, direct coupling or communication connection shown or discussed may be accomplished by way of an interface, which may be electrical, mechanical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (19)
1. The data verification method based on the consensus mechanism is characterized by being applied to a first anchor point cell in a communication system, wherein the communication system further comprises a control platform, a plurality of main nodes and a plurality of terminal auxiliary nodes, the terminal auxiliary nodes are divided into a plurality of auxiliary node groups in advance, the terminal auxiliary nodes in each auxiliary node group correspond to the same anchor point cell, and the first anchor point cell is an anchor point cell corresponding to any auxiliary node group and comprises the following steps:
Receiving a data verification request sent by the control platform, wherein the data verification request comprises data to be verified;
transmitting the data verification request to a terminal auxiliary node corresponding to the first anchor point cell so as to enable the terminal auxiliary node corresponding to the first anchor point cell to verify the data to be verified;
receiving a first verification result of the data to be verified, which is returned by a terminal auxiliary node corresponding to the first anchor point cell, and generating a first verification confirmation request containing the first verification result;
and sending the first verification confirmation request to a second anchor point cell, all the main nodes and terminal auxiliary nodes corresponding to the first anchor point cell, so that all the terminal auxiliary nodes and all the main nodes confirm the common recognition of the first verification result, wherein the second anchor point cell is any anchor point cell except the first anchor point cell.
2. The data verification method according to claim 1, further comprising:
receiving a second verification confirmation request sent by the second anchor point cell, wherein the second verification confirmation request comprises a second verification result of the terminal auxiliary node corresponding to the second anchor point cell on the data to be verified;
And sending the second verification confirmation request to the terminal auxiliary node corresponding to the first anchor point cell so as to ensure that the terminal auxiliary node corresponding to the first anchor point cell confirms the consensus of the second verification result.
3. The data verification method according to claim 2, further comprising:
receiving a third verification confirmation request sent by the master node, wherein the third verification confirmation request comprises a third verification result of the master node on the data to be verified;
and sending the third verification confirmation request to the terminal auxiliary node corresponding to the first anchor point cell, so that the terminal auxiliary node corresponding to the first anchor point cell confirms the consensus of the third verification result.
4. The data verification method according to claim 1, further comprising, prior to receiving the data verification request sent by the control platform:
receiving an auxiliary node group request sent by the control platform, wherein the auxiliary node group request comprises candidate auxiliary node groups corresponding to the first anchor point cell;
responding to the auxiliary node group request, and determining whether the candidate auxiliary node group has the capability of confirming consensus by confirming whether the number of terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group meets the preset number;
If the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group is confirmed to meet the preset number, auxiliary node group confirmation information is sent to a control platform, wherein the auxiliary node group confirmation information is used for representing that the candidate auxiliary node group has the confirmation consensus capability;
and if the number of the terminal auxiliary nodes with the data verification qualification in the candidate auxiliary node group is confirmed to not meet the preset number, sending auxiliary node group rejection information to a control platform, wherein the auxiliary node group rejection information is used for representing that the auxiliary node group does not have the confirmation consensus capability.
5. The data verification method according to claim 4, wherein determining whether the candidate secondary node group has a confirmation consensus capability by confirming whether the number of terminal secondary nodes having data verification qualifications in the candidate secondary node group satisfies a preset number, comprises:
from M terminal auxiliary nodes included in the candidate auxiliary node group, N terminal auxiliary nodes with the front terminal auxiliary node weight bit sequence are determined;
sending terminal auxiliary node requests to the N terminal auxiliary nodes to confirm whether the terminal auxiliary nodes have data verification qualification according to whether the terminal auxiliary nodes return confirmation results in preset time or not;
If N1 terminal auxiliary nodes are confirmed to be qualified for data verification, and N1 is equal to N, the candidate auxiliary node group is confirmed to have a confirmation consensus capability.
6. The data verification method according to claim 5, comprising:
if the fact that N1 terminal auxiliary nodes have data verification qualification is confirmed, and N1 is smaller than N, judging whether the current request times are smaller than preset times or not, wherein the request times are times of sending the terminal auxiliary node requests to a plurality of terminal auxiliary nodes at the same time;
if the current request times are smaller than the preset times, determining (N-N1) terminal auxiliary nodes with the front weight bit sequence of the terminal auxiliary node from the terminal auxiliary nodes except the N terminal auxiliary nodes in the candidate auxiliary node group, and sending terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes;
and updating the N1 according to the number of the terminal auxiliary nodes with data verification qualification in the (N-N1) terminal auxiliary nodes until the request times are equal to the preset times, or N1 is equal to N, or the terminal auxiliary node requests are sent to all the terminal auxiliary nodes.
7. The data verification method according to claim 5, further comprising:
And sending auxiliary node group rejection information to the control platform under the condition that the number M of the terminal auxiliary nodes included in the candidate auxiliary node group is less than N.
8. The utility model provides a data verification method based on consensus mechanism, which is characterized in that the method is applied to a control platform in a communication system, the communication system also comprises a plurality of main nodes and a plurality of terminal auxiliary nodes, the terminal auxiliary nodes are divided into at least one auxiliary node group in advance, and the terminal auxiliary nodes in each auxiliary node group correspond to the same anchor point cell, and the method comprises the following steps:
generating a data verification request according to the data to be verified;
transmitting the data verification request to an anchor point cell and all the master nodes; the anchor point cell transmits the data verification request to all terminal auxiliary nodes corresponding to the anchor point cell to verify the data to be verified, and the data verification results of all terminal auxiliary nodes and all main nodes are confirmed and identified;
and receiving the confirmation consensus results sent by all the auxiliary nodes and all the main nodes of the terminal so as to determine the target consensus result.
9. The data verification method according to claim 8, further comprising:
and broadcasting the target consensus result to all the master nodes so that all the master nodes store the target consensus result.
10. The data authentication method of claim 8, further comprising, prior to the step of sending the data authentication request to the anchor cell and all of the master nodes:
generating an auxiliary node group list, wherein the auxiliary node group list comprises a plurality of candidate auxiliary node groups with the front bit sequence of the auxiliary node group weight value;
sending an auxiliary node group request to an anchor point cell corresponding to a candidate auxiliary node group in the auxiliary node group list, wherein the auxiliary node group request is used for enabling the anchor point cell to determine whether the corresponding candidate auxiliary node group has a confirmation consensus capability or not;
and receiving auxiliary node group confirmation information sent by the anchor point cell, and determining a candidate auxiliary node group corresponding to the auxiliary node group confirmation information in the auxiliary node group list as an auxiliary node group list.
11. The utility model provides a data verification method based on consensus mechanism, which is characterized in that, be applied to the terminal auxiliary node in communication system, the terminal auxiliary node corresponds to first anchor point district, communication system still includes control platform, a plurality of main node and a plurality of terminal auxiliary node, a plurality of terminal auxiliary node are divided into a plurality of auxiliary node groups in advance, terminal auxiliary node in each auxiliary node group corresponds same anchor point district, first anchor point district is the anchor point district that any auxiliary node group corresponds, include:
Receiving a data verification request sent by a first anchor point cell, wherein the data verification request comprises data to be verified;
verifying the data to be verified in the data verification request to generate a first verification result;
transmitting the first verification result to the first anchor cell;
receiving a verification confirmation request sent by the first anchor point cell and a master node, wherein the verification confirmation request comprises a first verification confirmation request generated by the first anchor point cell according to a first verification result, a second verification confirmation request generated by a second anchor point cell according to a second verification result and a third verification confirmation request generated by the master node according to a third verification result, the first anchor point cell is any anchor point cell corresponding to an auxiliary node group, the second anchor point cell is any anchor point cell except the first anchor point cell, the second verification result is a verification result of the terminal auxiliary node corresponding to the second anchor point cell on the data to be verified, and the third verification result is a verification result of the master node on the data to be verified;
carrying out confirmation consensus on the verification result contained in the verification confirmation request to generate a confirmation consensus result;
And sending the confirmation consensus result to a control platform so that the control platform determines a target consensus result.
12. The data authentication method of claim 11, further comprising, prior to receiving the data authentication request sent by the first anchor cell:
receiving a terminal auxiliary node request sent by the first anchor point cell, wherein the terminal auxiliary node request comprises a preset wireless signal quality parameter, and the preset wireless signal quality parameter comprises preset signal receiving power and a preset signal-to-interference-plus-noise ratio;
transmitting a confirmation result to the anchor cell under the condition that the received power of the reference signal is larger than or equal to the received power of the preset signal and the ratio of the signal to the interference plus noise is larger than or equal to the ratio of the preset signal to the interference plus noise;
and under the condition that the reference signal receiving power is smaller than the preset signal receiving power or the signal-to-interference plus noise ratio is smaller than the preset signal-to-interference plus noise ratio, a rejection message is not sent to the anchor point cell.
13. The utility model provides a data verification method based on consensus mechanism, which is characterized in that the method is applied to a master node in a communication system, the communication system comprises a control platform, a plurality of master nodes and a plurality of terminal auxiliary nodes, the terminal auxiliary nodes are divided into a plurality of auxiliary node groups in advance, the terminal auxiliary nodes in each auxiliary node group correspond to the same anchor point cell, and a first anchor point cell is an anchor point cell corresponding to any auxiliary node group, and the method comprises the following steps:
Receiving a data verification request sent by the control platform, and verifying data to be verified to generate a verification result;
generating a verification confirmation request according to the verification result;
and sending the verification confirmation request to a first anchor point cell, so that the first anchor point cell forwards the data verification request to all terminal auxiliary nodes corresponding to the first anchor point cell for verifying data to be verified, and carrying out confirmation consensus on data verification results of all the terminal auxiliary nodes and other main nodes.
14. The utility model provides a data verification device based on consensus mechanism, its characterized in that is applied to the first anchor point district in communication system, communication system still includes control platform, a plurality of master node and a plurality of terminal auxiliary node, a plurality of terminal auxiliary node are divided into a plurality of auxiliary node groups in advance, and terminal auxiliary node in each auxiliary node group corresponds same anchor point district, first anchor point district is the anchor point district that arbitrary one auxiliary node group corresponds, includes:
the first receiving unit is used for receiving a data verification request sent by the control platform, wherein the data verification request comprises data to be verified;
the first sending unit is used for sending the data verification request to the terminal auxiliary node corresponding to the first anchor point cell so as to enable the terminal auxiliary node corresponding to the first anchor point cell to verify the data to be verified;
A determining unit, configured to receive a first verification result returned by the terminal auxiliary node corresponding to the first anchor cell and to the data to be verified, and generate a first verification confirmation request including the first verification result;
the first sending unit is further configured to send the first verification confirmation request to a second anchor cell, all the master nodes, and terminal auxiliary nodes corresponding to the first anchor cell, so that all the terminal auxiliary nodes and all the master nodes confirm consensus of the first verification result, where the second anchor cell is any anchor cell except the first anchor cell.
15. The utility model provides a data verification device based on consensus mechanism, characterized by is applied to the control platform in communication system, communication system still includes a plurality of main nodes and a plurality of terminal auxiliary node, a plurality of terminal auxiliary node are divided into at least one auxiliary node group in advance, and terminal auxiliary node in each auxiliary node group corresponds same anchor point district, includes:
the acquisition unit is used for generating a data verification request according to the data to be verified;
the second sending unit is used for sending the data verification request to the anchor point cell and all the master nodes; the anchor point cell transmits the data verification request to all terminal auxiliary nodes corresponding to the anchor point cell to verify the data to be verified, and the data verification results of all terminal auxiliary nodes and all main nodes are confirmed and identified;
And the second receiving unit is used for receiving the confirmation consensus results sent by all the auxiliary nodes of the terminal and all the main nodes so as to determine the target consensus result.
16. The utility model provides a data verification device based on consensus mechanism, its characterized in that is applied to terminal auxiliary node in communication system, terminal auxiliary node corresponds first anchor point district, communication system still includes control platform, a plurality of main node and a plurality of terminal auxiliary node, a plurality of terminal auxiliary node are divided into a plurality of auxiliary node groups in advance, terminal auxiliary node in each auxiliary node group corresponds same anchor point district, first anchor point district is arbitrary the anchor point district that auxiliary node group corresponds, include:
a third receiving unit, configured to receive a data verification request sent by a first anchor cell, where the data verification request includes data to be verified;
the third receiving unit is further used for verifying the data to be verified in the data verification request to generate a first verification result;
a third sending unit, configured to send the first verification result to the first anchor cell;
a third receiving unit, configured to receive a verification confirmation request sent by the first anchor cell and a master node, where the verification confirmation request includes a first verification confirmation request generated by the first anchor cell according to the first verification result, a second verification confirmation request generated by the second anchor cell according to the second verification result, and a third verification confirmation request generated by the master node according to a third verification result, where the first anchor cell is any anchor cell corresponding to the auxiliary node group, the second anchor cell is any anchor cell other than the first anchor cell, the second verification result is a verification result of the terminal auxiliary node corresponding to the second anchor cell on the data to be verified, and the third verification result is a verification result of the master node on the data to be verified;
The third receiving unit is further used for carrying out confirmation consensus on the verification result contained in the verification confirmation request so as to generate a confirmation consensus result;
and the third sending unit is also used for sending the confirmation consensus result to a control platform so that the control platform determines a target consensus result.
17. The utility model provides a data verification device based on consensus mechanism, its characterized in that is applied to the master node in communication system, communication system includes control platform, a plurality of master node and a plurality of terminal auxiliary node, a plurality of terminal auxiliary node are divided into a plurality of auxiliary node groups in advance, and terminal auxiliary node in each auxiliary node group corresponds same anchor point district, and first anchor point district is the anchor point district that arbitrary one auxiliary node group corresponds, includes:
a fourth receiving unit, configured to receive a data verification request sent by the control platform, and verify data to be verified to generate a verification result;
the generation unit is used for generating a verification confirmation request according to the verification result;
and the fourth sending unit is used for sending the verification confirmation request to the first anchor point cell so that the first anchor point cell can forward the data verification request to all the terminal auxiliary nodes corresponding to the first anchor point cell for verifying the data to be verified, and carrying out confirmation consensus on the data verification results of all the terminal auxiliary nodes and other main nodes.
18. A computer readable storage medium, characterized in that the computer readable storage medium stores thereon a program or instructions, which when executed by a processor, implements the data verification method according to any one of claims 1 to 13.
19. An electronic device, comprising: a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor implements a data verification method as claimed in any one of claims 1 to 13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111486832.5A CN114338668B (en) | 2021-12-07 | 2021-12-07 | Data verification method, system, storage medium and equipment based on consensus mechanism |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111486832.5A CN114338668B (en) | 2021-12-07 | 2021-12-07 | Data verification method, system, storage medium and equipment based on consensus mechanism |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114338668A CN114338668A (en) | 2022-04-12 |
CN114338668B true CN114338668B (en) | 2023-10-31 |
Family
ID=81047781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111486832.5A Active CN114338668B (en) | 2021-12-07 | 2021-12-07 | Data verification method, system, storage medium and equipment based on consensus mechanism |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114338668B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012039467A (en) * | 2010-08-09 | 2012-02-23 | Panasonic Corp | Radio communication device |
WO2015142898A1 (en) * | 2014-03-18 | 2015-09-24 | Sharp Laboratories Of America, Inc. | Device-to-device communications apparatus and methods |
EP2931001A1 (en) * | 2014-04-10 | 2015-10-14 | Innovative Sonic Corporation | Method and apparatus for reporting buffer status for device to device communication in a wireless communication system |
CN109995536A (en) * | 2019-03-15 | 2019-07-09 | 广州杰赛科技股份有限公司 | A kind of block chain common recognition method, apparatus and readable storage medium storing program for executing |
WO2020052423A1 (en) * | 2018-09-14 | 2020-03-19 | 腾讯科技(深圳)有限公司 | Communication system, method, server and computer readable storage medium |
CN111444211A (en) * | 2020-03-26 | 2020-07-24 | 腾讯科技(深圳)有限公司 | Block chain consensus node checking method, device, equipment and storage medium |
CN112020018A (en) * | 2020-08-26 | 2020-12-01 | 济南浪潮高新科技投资发展有限公司 | Block chain accounting group generation method, consensus method and block chain system |
CN112887120A (en) * | 2019-11-30 | 2021-06-01 | 华为技术有限公司 | Information processing method and device |
CN112988878A (en) * | 2021-05-06 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Regional thermodynamic diagram processing method and device based on block chain and computer equipment |
-
2021
- 2021-12-07 CN CN202111486832.5A patent/CN114338668B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012039467A (en) * | 2010-08-09 | 2012-02-23 | Panasonic Corp | Radio communication device |
WO2015142898A1 (en) * | 2014-03-18 | 2015-09-24 | Sharp Laboratories Of America, Inc. | Device-to-device communications apparatus and methods |
EP2931001A1 (en) * | 2014-04-10 | 2015-10-14 | Innovative Sonic Corporation | Method and apparatus for reporting buffer status for device to device communication in a wireless communication system |
WO2020052423A1 (en) * | 2018-09-14 | 2020-03-19 | 腾讯科技(深圳)有限公司 | Communication system, method, server and computer readable storage medium |
CN109995536A (en) * | 2019-03-15 | 2019-07-09 | 广州杰赛科技股份有限公司 | A kind of block chain common recognition method, apparatus and readable storage medium storing program for executing |
CN112887120A (en) * | 2019-11-30 | 2021-06-01 | 华为技术有限公司 | Information processing method and device |
CN111444211A (en) * | 2020-03-26 | 2020-07-24 | 腾讯科技(深圳)有限公司 | Block chain consensus node checking method, device, equipment and storage medium |
CN112020018A (en) * | 2020-08-26 | 2020-12-01 | 济南浪潮高新科技投资发展有限公司 | Block chain accounting group generation method, consensus method and block chain system |
CN112988878A (en) * | 2021-05-06 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Regional thermodynamic diagram processing method and device based on block chain and computer equipment |
Non-Patent Citations (2)
Title |
---|
区块链赋能6G;代玥玥;张科;张彦;;物联网学报(第01期);全文 * |
基于区块链的频谱设备网络中防御拜占庭攻击的分布式共识机制;杨健;陈曦;丁国如;赵杭生;张林元;孙佳琛;;通信学报(第03期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114338668A (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110691384B (en) | Network slice using method and device | |
US11694170B2 (en) | Method for processing data and apparatuses for implementing the same | |
US20140357269A1 (en) | Server-assisted device-to-device discovery and connection | |
CN108683722B (en) | Data transmission method, ESB platform and client | |
US20170303096A1 (en) | Terminal device and communication method | |
US20190372825A1 (en) | Communication apparatus, communication method, and recording medium | |
TW200913747A (en) | Methods and apparatus for resolving Pilot pseudorandom noise code conflicts in a communication system | |
US8429257B2 (en) | Optimizing use of internet protocol addresses | |
Rehman et al. | Honesty based democratic scheme to improve community cooperation for Internet of Things based vehicular delay tolerant networks | |
CN114338668B (en) | Data verification method, system, storage medium and equipment based on consensus mechanism | |
US20150124650A1 (en) | Systems and methods for cognitive radio communications | |
JP5867236B2 (en) | Data collection method, mobile terminal and data storage device | |
CN104780535A (en) | Method and device for authenticating safe center node in multi-terminal cooperative process | |
KR102599812B1 (en) | Edge computing implementation methods, devices and systems | |
CN114040422B (en) | Network parameter configuration method and device | |
KR101579847B1 (en) | Demand response server, terminal and control method | |
CN105814958B (en) | Channel method and access point apparatus | |
CN110267308A (en) | A kind of mobile access point management method and device, server, storage medium | |
US20140140207A1 (en) | System and method for reducing loads of mobility management entity (mme) in core networks | |
CN112153701B (en) | Method and device for determining bandwidth usage | |
JP4459594B2 (en) | File sharing management server device, communication terminal, file sharing system, file sharing method | |
JP2023511999A (en) | Social Account Recommendations and Electronic Devices | |
Bhattacharjee et al. | EnTER: an en counter based t rowbox deployment strategy for e nhancing network r eliability in post-disaster scenarios over DTN | |
CN111885583A (en) | Network sharing method and device | |
JP6669027B2 (en) | Management device, management method, and program |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |