CN114338668A - 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 PDF

Info

Publication number
CN114338668A
CN114338668A CN202111486832.5A CN202111486832A CN114338668A CN 114338668 A CN114338668 A CN 114338668A CN 202111486832 A CN202111486832 A CN 202111486832A CN 114338668 A CN114338668 A CN 114338668A
Authority
CN
China
Prior art keywords
verification
anchor point
nodes
auxiliary node
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.)
Granted
Application number
CN202111486832.5A
Other languages
Chinese (zh)
Other versions
CN114338668B (en
Inventor
刘洋
贺琳
李福昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111486832.5A priority Critical patent/CN114338668B/en
Publication of CN114338668A publication Critical patent/CN114338668A/en
Application granted granted Critical
Publication of CN114338668B publication Critical patent/CN114338668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data verification method, a data verification system, a storage medium and data verification equipment based on a consensus mechanism, relates to the field of communication, and solves the problem that the existing algorithm is too high in complexity. 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; sending a data verification request to a terminal auxiliary node corresponding to the first anchor point cell so that the terminal auxiliary node corresponding to the first anchor point cell verifies data to be verified; summarizing a first verification result of data to be verified, which is returned by a terminal auxiliary node corresponding to a first anchor point cell, so as to determine a first verification confirmation request; and sending the first verification confirmation request to a second anchor point cell, all main nodes and terminal auxiliary nodes corresponding to the first anchor point cell so as to ensure that all terminal auxiliary nodes and all main nodes confirm the first verification result in a common way, wherein the second anchor point cell is any anchor point cell except the first anchor point cell.

Description

Data verification method, system, storage medium and equipment based on consensus mechanism
Technical Field
The present invention relates to the field of communications, and in particular, to a data verification method, system, storage medium, and device 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 each operator together and is responsible for generating, verifying and storing data in the network architecture, and the auxiliary node is borne by a terminal in the network architecture and participates in the generation and verification of the data. The main node and the auxiliary node are mutually matched to jointly realize the credible storage of data such as network quality and the like in the mobile communication network.
In the related art, in the process of data verification consensus, a terminal can only establish single-point connection with one main node or auxiliary node each time to complete data transceiving between each auxiliary node and the main node, so that the algorithm complexity in the process of data verification consensus is high, and the problems of high power consumption of the terminal and prolonged time of the whole data consensus process are caused.
Disclosure of Invention
The application aims to provide a data verification method, a data verification system, a storage medium and a device based on a consensus mechanism, which can reduce the complexity of a data verification consensus process and 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 purpose, the technical scheme is as follows:
in a first aspect, the present application provides a data verification method based on a consensus mechanism, which is applied to a first anchor point cell in a communication system, where the communication system further includes a control platform, a plurality of host nodes, and a plurality of terminal auxiliary nodes, where the plurality of terminal auxiliary nodes are pre-divided into a plurality of auxiliary node groups, a terminal auxiliary node in each auxiliary node group corresponds to the same anchor point cell, and the first anchor point cell is an anchor point cell corresponding to any one auxiliary node group, and includes: receiving a data verification request sent by a control platform, wherein the data verification request comprises data to be verified; sending a data verification request to a terminal auxiliary node corresponding to the first anchor point cell so that the terminal auxiliary node corresponding to the first anchor point cell verifies 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 main nodes and terminal auxiliary nodes corresponding to the first anchor point cell so as to ensure that all terminal auxiliary nodes and all main nodes confirm the first verification result in a common way, 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 the terminal auxiliary node corresponding to the second anchor point cell on the data to be verified; and sending 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 the consensus on the second verification result.
Optionally, the data verification method further includes: receiving a third verification confirmation request sent by the main node, wherein the third verification confirmation request comprises a third verification result of the main node on the data to be verified; and sending a 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 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 a candidate auxiliary node group corresponding to a first anchor point cell; responding to the auxiliary node group request, and determining whether the candidate auxiliary node group has the confirmation consensus capacity by confirming whether the number of the terminal auxiliary nodes with the 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 confirmation consensus capacity; and if the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group is confirmed not to 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 auxiliary node group does not have confirmation consensus capacity.
Optionally, determining whether the candidate secondary node group has the confirmation consensus capability by determining whether the number of terminal secondary nodes having data verification qualification in the candidate secondary node group satisfies a preset number includes: determining N terminal auxiliary nodes with the terminal auxiliary node weight bit sequences ahead from M terminal auxiliary nodes included in the candidate auxiliary node group; sending terminal auxiliary node requests to the N terminal auxiliary nodes so as to confirm whether the terminal auxiliary nodes have data verification qualification or not according to whether the terminal auxiliary nodes return confirmation results within preset time or not; if it is confirmed that the N1 terminal secondary nodes qualify for data validation and N1 is equal to N, then the candidate secondary node group is determined to have confirmation consensus capability.
Optionally, the data verification method further includes: if the N1 terminal auxiliary nodes are confirmed to have 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 the times of sending terminal auxiliary node requests to a plurality of terminal auxiliary nodes at the same time; if the current request times are less than the preset times, determining (N-N1) terminal auxiliary nodes with the terminal auxiliary node weight bit sequence being front 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 terminal auxiliary nodes qualified for data verification in the (N-N1) terminal auxiliary nodes until the request times are equal to the preset times, or N1 is equal to N, or 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 the candidate terminal auxiliary nodes included by the auxiliary node group is judged to be 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 auxiliary nodes, the plurality of terminal auxiliary nodes are pre-divided into at least one auxiliary node group, and a terminal auxiliary node in each auxiliary node group corresponds to a same anchor point cell, including: generating a data verification request according to the data to be verified; 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 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 a confirmation consensus result generated after the confirmation consensus of all the terminal auxiliary nodes and all the main nodes on 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 main nodes so that all the main nodes store the target consensus result.
Optionally, before the step of sending the data verification request to the anchor cell and all the master nodes, the method further includes: generating an auxiliary node group list, wherein the auxiliary node group list comprises a plurality of candidate auxiliary node groups with the bit sequences of the auxiliary node group weight values close to the front; sending an auxiliary node group request to an anchor point cell corresponding to a candidate auxiliary node group in an 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 the capacity of confirming consensus or not; and receiving the auxiliary node group confirmation information sent by the anchor point cell, and determining the candidate auxiliary node group corresponding to the auxiliary node group confirmation information in the auxiliary node group list as the auxiliary node group.
In a third aspect, the present application provides a data verification method based on a consensus mechanism, which is applied to a terminal auxiliary node in a communication system, where the terminal auxiliary node corresponds to a first anchor point cell, and the method 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; sending the first verification result to a first anchor point cell; receiving verification confirmation requests sent by a first anchor point cell and a main node, wherein the verification confirmation requests comprise 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 main node according to a third verification result, the first anchor point cell is an anchor point cell corresponding to any one 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 a terminal auxiliary node corresponding to the second anchor point cell on data to be verified, and the third verification result is a verification result of the main node on the data to be verified; confirming and identifying the verification result contained in the verification confirmation request to generate a confirmation and identification 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 determination to the anchor cell.
Optionally, the data verification method includes: the preset wireless signal quality parameters comprise a preset signal receiving power and a preset signal-to-interference-plus-noise ratio; under the condition that the reference signal receiving power is judged to be greater than or equal to the preset signal receiving power and the signal-to-interference-plus-noise ratio is judged to be greater than or equal to the preset signal-to-interference-plus-noise ratio, the terminal auxiliary node sends a confirmation result to the anchor point cell; 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, 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, which is applied to a master node in a communication system, and includes: 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 a verification result; and sending verification confirmation requests to all anchor point cells and other main nodes so that the terminal auxiliary nodes corresponding to all anchor point cells confirm and agree verification results.
In a fifth aspect, the present application provides a data verification apparatus based on a consensus mechanism, which is applied to a first anchor point cell in a communication system, where the communication system further includes a control platform, a plurality of host nodes and a plurality of terminal auxiliary nodes, the plurality of terminal auxiliary nodes are pre-divided into a plurality of auxiliary node groups, a terminal auxiliary node in each auxiliary node group corresponds to the same anchor point cell, and the first anchor point cell is an anchor point cell corresponding to any one auxiliary node group, including: the first receiving unit is used for receiving a data verification request sent by the control platform, and 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; the determining unit is used for receiving 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 generating a first verification confirmation request containing the first verification result; the first sending unit is further configured to send the 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 first verification result in a common way, 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 apparatus based on a consensus mechanism, which is applied to a control platform in a communication system, where the communication system further includes a plurality of host nodes and a plurality of terminal auxiliary nodes, the 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 apparatus 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 identify the verification result; and the second receiving unit is used for receiving the confirmation consensus results sent by all the terminal auxiliary nodes and all the main nodes so as to determine the target consensus result. .
In a seventh aspect, the present application provides a data verification apparatus based on a consensus mechanism, which is applied to a terminal auxiliary node in a communication system, where the terminal auxiliary node corresponds to a first anchor point cell, and the apparatus includes: a third receiving unit, configured to receive a data verification request sent by the 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 point cell; the third receiving unit is further configured to receive verification confirmation requests sent by the first anchor point cell and the host node, where the verification confirmation requests include a first verification confirmation request generated by the first anchor point cell according to the first verification result, a second verification confirmation request generated by the second anchor point cell according to the second verification result, and a third verification confirmation request generated by the host node according to the third verification result, the first anchor point cell is an anchor point cell corresponding to any one auxiliary node group, the second anchor point cell is any anchor point cell other than 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 host node on the data to be verified; the third receiving unit is further used for performing confirmation and consensus on the verification result contained in the verification confirmation request to generate a confirmation and consensus result; and the third sending unit is further used for sending the confirmation consensus result to the control platform so that the control platform determines the target consensus result.
In an eighth aspect, the present application provides a data verification apparatus based on a consensus mechanism, which is applied to a master node in a communication system, and includes: the fourth receiving unit is used for receiving the data verification request sent by the control platform and verifying the data to be verified so as to generate a verification result; a generating unit 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 point cells and other main nodes so as to ensure that the terminal auxiliary nodes and other main nodes corresponding to all the anchor point cells confirm and identify the verification result.
In a ninth aspect, the present application provides a computer readable storage medium on which is stored a program or instructions which, when executed by a processor, implements a data validation method as in any one of the first to fourth aspects.
In a tenth aspect, the present application provides an electronic device comprising: a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the data verification method as in any one of the first to fourth aspects.
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 validation method as provided in any one of the first to fourth aspects and any one of their possible designs.
In the data verification method provided by the application, the terminal auxiliary nodes in the 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 point cell corresponding to any 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; then sending 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, receiving a first verification result of the data to be verified, which is returned by the terminal auxiliary nodes, and generating a first verification confirmation request containing the first verification result; and finally, sending the first verification confirmation request to the terminal auxiliary node, other anchor point cells and all main nodes corresponding to the first verification confirmation request so that all the terminal auxiliary nodes and all the main nodes confirm the first verification result.
According to the data verification method, the anchor point cells corresponding to the auxiliary node groups which are divided in advance are used for forwarding the data verification requests and the data verification results of the main node and the terminal auxiliary nodes, 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 therefore 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 fourth flowchart of a data verification method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a data link 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 apparatus according to an embodiment of the present application;
fig. 9 is a second schematic diagram of a data verification apparatus according to an embodiment of the present application;
fig. 10 is a third schematic diagram of a data verification apparatus according to an embodiment of the present application;
fig. 11 is a fourth schematic diagram of a data verification apparatus according to an embodiment of the present application;
fig. 12 is a hardware schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that any embodiment or design described herein as "exemplary" or "e.g.," is not to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
For the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, the terms "first", "second", and the like are used for distinguishing the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the terms "first", "second", and the like are not limited in number or 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 on various types of data, such as data reception and transmission, data verification and data validation consensus, and the like.
Fig. 1 is a schematic diagram of a communication system 10, as shown in fig. 1, the system includes a plurality of anchor cells 11, a control platform 12, a plurality of terminal auxiliary nodes 13, and a plurality of main nodes 14, 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 cell 11, the control platform 12 and the host node 14 can communicate with each other; communication can be carried out between the anchor cell 11 and the terminal auxiliary node 13; communication between the control platform 12 and the terminal secondary node 13 is also possible. For example, the data verification method provided by the embodiments of the present application is performed.
In some embodiments, anchor cell 11 may be a data verification apparatus configured to perform the data verification method provided in the embodiments of the present application as shown in fig. 8. The anchor cell 11 can perform the following steps in the data verification method: as in steps S202 to S205 and steps S207 and S208 in the data verification method shown in fig. 2, as in steps S301 to S305 shown in fig. 3, as in steps S401 and S404 shown in fig. 4, and as in steps S504, S505, S509, S510, S515 and S516 shown in fig. 5. Illustratively, the data verification device may specifically be a base station.
In some embodiments, the control platform 12 may be a data verification device configured to perform the data verification method provided by the embodiments of the present application as shown in fig. 9. The control platform 12 can perform the following steps in the data verification method: as in step S201, step S206, step S209 to step S211 in the data verification method shown in fig. 2, all of steps S301 to S305 shown in fig. 3, and step S501 shown in fig. 5. Illustratively, the data verification device can be a management layer software integration system for realizing different function control requirements.
In some embodiments, the terminal secondary node 13 may be a data verification apparatus configured to execute the data verification method shown in fig. 10 provided in the embodiments of the present application. The terminal auxiliary node 13 can perform the following steps in the data verification method: as in steps S402 and S404 in the data verification method shown in fig. 4, as in steps S506 to S508, S513, and 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 (UMPC), a handheld computer, a netbook, a Personal Digital Assistant (PDA), or the like, and may also be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The present application does not limit 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 the data verification method provided in the embodiments of the present application, as shown in fig. 11. Its master node 14 can perform the following steps in the data authentication method: as in step S502, step S503, step S512 and step S514 of the data verification method shown in fig. 5. For example, the data verification apparatus may specifically be a device that is set up by multiple operators together and can be responsible for 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 an interaction process diagram of an anchor cell and a control platform, where steps performed by the anchor cell in the flowchart may be performed by any anchor cell. As shown in fig. 2, the data verification method may include:
s201, the control platform sends an auxiliary node group request to the anchor cell.
S202, the anchor point cell receives an auxiliary node group request sent by the control platform, wherein the auxiliary node group request comprises a candidate auxiliary node group corresponding to the anchor point cell.
The secondary node group request may include a secondary node group list, where the secondary node group list includes a plurality of candidate secondary node groups with a secondary node group weight value in a leading bit order.
And the control platform selects a plurality of candidate auxiliary node groups with the bit sequences of the auxiliary node group weight values close to the former from all the candidate auxiliary node groups, and takes the selected candidate auxiliary node groups as the candidate auxiliary node groups of the auxiliary node group list.
Illustratively, there are K candidate auxiliary node groups in the auxiliary node group list in the auxiliary node group request, and a terminal auxiliary node in each candidate auxiliary node group corresponds to the same anchor cell. That is, K anchor cells correspond one-to-one to K candidate secondary node groups. And the control platform respectively sends an auxiliary node group request to K anchor point cells corresponding to the K candidate auxiliary node groups.
And the control platform selects the auxiliary nodes of the terminal by taking the auxiliary node group as a unit. For example, each secondary node group includes ni terminal secondary nodes, and the ni terminal secondary nodes belong to the same cell, which is referred to as an anchor cell corresponding to the ni terminal secondary nodes.
As a possible implementation manner, the control platform identifies the secondary Node Group through an auxiliary Node Group IDentity (ANG-ID). When the terminal auxiliary node moves, that is, 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: the auxiliary node group identifier, the anchor cell identifier, the contractor identifier and the auxiliary node group list information. The contractor identifier is used to characterize the contractor of the anchor cell base station, for example, in AB co-construction sharing, the contractor identifier a is 00, and the contractor base station identifier B is 01.
S203, the anchor point cell responds to the auxiliary node group request, and whether the candidate auxiliary node group has the confirmation consensus capacity or not is determined by confirming whether the number of the terminal auxiliary nodes with the data verification qualification in the candidate auxiliary node group meets the preset number or not.
It should be noted that, in response to the secondary node group request, the anchor cell determines whether the candidate secondary node group has the confirmation consensus capability by determining the number of terminal secondary nodes qualified for data verification in the candidate secondary node group. Specifically, the process of performing step S203 described above may be implemented by steps S301 to S305 as shown in fig. 3.
And S204, if the anchor point cell confirms that the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group meets the preset number, sending auxiliary node group confirmation information to the 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 the anchor point cell sends auxiliary node group confirmation information to the control platform under the condition of determining that the candidate auxiliary node group has the confirmation consensus capability so as to represent 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 the candidate auxiliary node group corresponding to the auxiliary node group confirmation information in the auxiliary node group list as the auxiliary node group.
It should be noted that, after receiving the auxiliary node group confirmation information sent by the anchor cell, the control platform determines, by the anchor cell, a candidate auxiliary node group with a confirmation consensus capability and an anchor cell corresponding to the candidate auxiliary node group, and continues to store the candidate auxiliary node group and the anchor cell in the auxiliary node group list, that is, determines the candidate auxiliary node group as the auxiliary node group.
And 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 confirmation consensus capability.
It should be noted that, the anchor cell determines whether each candidate secondary node group has the capability of confirming the consensus according to the number of terminal secondary nodes with data verification qualification included in the candidate secondary node group. In detail, if the number of terminal secondary nodes qualified for data verification is less than the preset number, it is determined that the candidate secondary node group does not have the confirmation consensus capability, and if the number of terminal secondary nodes qualified for data verification is greater than or equal to the preset number, it is determined that the candidate secondary node group has the confirmation consensus capability. Further, when the anchor cell determines that the candidate secondary node group does not have the confirmation consensus capability, secondary node group rejection information is sent to the control platform to indicate that the candidate secondary node group included in the secondary node group request sent by the control platform does not have the confirmation consensus capability.
And S207, the control platform receives the 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 most advanced weight value bit sequence of other auxiliary node groups except the auxiliary node group list.
It should be noted that, after receiving the auxiliary node group rejection information sent by the anchor cell, the control platform determines, by the anchor cell, an auxiliary node group that does not have a capacity of determining consensus and an anchor cell corresponding to the auxiliary node group, deletes the auxiliary node group from the auxiliary node group list, and determines, as a candidate auxiliary node group in the auxiliary node group list, a candidate auxiliary node group whose weight value bit order is the most advanced in other auxiliary node groups other than 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 higher bit sequences of the auxiliary node group weight values in all the candidate auxiliary nodes are selected as the candidate auxiliary node groups in the auxiliary node group list.
For example, step S208 is described in detail by taking the example that the secondary node group list includes K candidate secondary node groups. The auxiliary node group list includes K candidate auxiliary node groups, and it can be understood that before the verification of the confirmation consensus ability of the K candidate auxiliary node groups corresponding to the K anchor cells, the auxiliary node group list includes K candidate auxiliary node groups, where the K candidate auxiliary node groups are K candidate auxiliary node groups whose weighted values have a higher order. If 1 auxiliary node group rejection information is received after the K candidate auxiliary node groups corresponding to the K anchor cells are verified by the confirmation consensus capacity, the control platform updates the candidate auxiliary node group corresponding to the auxiliary node group rejection information in the auxiliary node group list to the (K +1) th candidate auxiliary node group with the candidate auxiliary node group weight bit sequence located at (K +1), deletes the candidate auxiliary node group corresponding to the auxiliary node group rejection information from the auxiliary node group list, and renews the bit sequences of all candidate auxiliary node group weights.
As one possible implementation, the secondary node group weight value is determined by equation (1) in the following manner:
wgi ═ Wn × Ln + Wo × Lo + Ws × Ls ] × Io, formula (1)
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 rate weight, Lo represents an anchor point cell idle time occupancy rate grade, Ws represents a terminal auxiliary node serving as a weight, Ls represents a terminal auxiliary node historical occupation condition grade, Io represents an anchor point cell resource occupancy rate indication, Wn, Ln, Wo, Lo, Ls and Io are all larger than or equal to 0, and Ws is an integer larger than or equal to 1.
As a possible implementation manner in the above embodiment, Ln is related to the number ni of terminal secondary nodes. And if the number ni of the terminal auxiliary nodes is in different intervals, the Ln values are different. The larger the number of terminal slave nodes (i.e., ni) included in the slave node group, the larger Ln, e.g., ni < 50, Ln ≧ 0, 50 ≦ ni < 100, Ln ≦ 1, 100 ≦ ni < 150, Ln ≦ 2, ni ≧ 150, and Ln ≦ 3.
In detail, Lo is an idle occupancy rate level of the anchor cell, and it can be understood that the division is performed according to the idle resource occupancy rate of the anchor cell, and the resource occupancy rates of the anchor cell are different in Lo values in different intervals. And in the interval with the highest resource occupancy rate, Lo is 0. For example, the idle occupancy rate of the anchor cell is greater than 70%, L0 is 0, the idle occupancy rate level of the anchor cell is 50% to 70%, Lo is 1, the idle occupancy rate level of the anchor cell is less than 50%, and Lo is 2.
Where the initial value of Ls is 0, and Io represents the anchor cell resource occupancy indication, it can be understood that Io is 0 when Lo is equal to 0, and Io is 1 when Lo is not equal to 0. The purpose of the Io value is to temporarily not select the anchor cell as the secondary node group when the anchor cell load is high, so as not to further increase the anchor cell load.
Further, WS is greater than (Wn × Lnmax + Wo × Lomax), and Lnmax and Lomax are 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 to the control platform by the anchor cell, and the anchor cell will periodically update the values of Ln and Lo.
It should be noted that, in the present application, the control platform may also process the received secondary node group acknowledgement information or the secondary node group rejection information one by one as in the above embodiments, or may process all the secondary node group acknowledgement information or the secondary node group rejection information at the same time.
Illustratively, after verifying the confirmation common-identification 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 order located at (K + n), 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 orders of all candidate auxiliary node group weights. The sequence and the number of the auxiliary node group confirmation information or the auxiliary node group rejection information processed by the control platform at the same time are not limited.
It can be understood that, after one or more candidate auxiliary node groups corresponding to the auxiliary node group list are updated, if a candidate auxiliary node group corresponding to 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 all updated, and the updated auxiliary node group request is sent to the updated anchor cells to determine the confirmation and consensus capabilities of the updated candidate auxiliary node groups.
As can be seen from the foregoing embodiments, in the data verification method provided in the embodiments of the present application, the control platform determines a plurality of candidate auxiliary node groups through the bit sequences of the auxiliary node group weight values. And the candidate auxiliary node groups respectively correspond to one anchor point cell one by one. And each anchor point cell respectively confirms the confirmation common identification capability of the corresponding candidate auxiliary node group 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 by the data verification method ensure the confirmation consensus ability of the auxiliary node group participating in the data verification consensus, that is, 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 executed by an anchor cell, and specifically may include:
s301, determining N terminal auxiliary nodes with the terminal auxiliary node weight bit sequences in front from M terminal auxiliary nodes included in the candidate auxiliary node group.
S302, terminal auxiliary node requests are sent to the N terminal auxiliary nodes, and the terminal auxiliary nodes are confirmed to have data verification qualification according to the confirmation result whether the terminal auxiliary nodes return within the preset time. The terminal auxiliary node request is generated by the anchor point cell according to an auxiliary node group request sent by the control platform, and the terminal auxiliary node request further comprises a preset wireless signal quality parameter, and the preset wireless signal quality parameter is used for testing whether the terminal auxiliary node has data verification capability. Specifically, the description that the preset wireless signal quality parameter is used for testing whether the terminal auxiliary node has the data verification capability is described in detail in the following description of the specific implementation of step S402.
It should be noted that when the preset number is N, after acquiring the terminal auxiliary node weights of all terminal auxiliary nodes in the candidate auxiliary node group, the anchor point cell determines N terminal auxiliary nodes with the terminal auxiliary node weights before the bit order from all terminal auxiliary nodes (i.e., M terminal auxiliary nodes). And then sending the terminal auxiliary node request to the N terminal auxiliary nodes so that the N terminal auxiliary nodes respectively determine the data verification qualification of the respective terminal auxiliary node.
The preset number N can be set according to the requirement. In any implementation, when the number M of terminal auxiliary nodes included in the candidate auxiliary node group is determined to be less than N, the 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 assuming the functions of the auxiliary nodes each time. N is obtained according to the following formula:
n ═ rounding up (b/K) + M0, equation (2)
Wherein, b is the total number of the auxiliary nodes required by the data verification consensus for each time, K is the number of the auxiliary node groups required by the data verification consensus for each time, and M0 is the required terminal auxiliary node margin. The preset number N acquired by the method can prevent the auxiliary node of the terminal from moving to other anchor point cells and being incapable of directly establishing connection with the anchor point cells in the data verification consensus process.
S303b, if it is confirmed that N1 terminal secondary nodes qualify for data verification and N1 is equal to N, determining that the candidate secondary node group has the confirmation consensus capability.
It should be noted that, if the anchor point cell receives the confirmation results returned by the N terminal auxiliary nodes within the preset time, it indicates that the candidate auxiliary node group has the confirmation consensus capability, that is, the anchor point cell may send the 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 does not have the confirmation consensus capability, namely the anchor point cell can send auxiliary node group rejection information to the control platform.
S303a, if it is confirmed that N1 terminal auxiliary nodes have data verification qualification and N1 is smaller than N, judging whether the current request times are smaller than the preset times.
The number of requests is the number of times of sending terminal auxiliary node requests to a plurality of terminal auxiliary nodes at the same time.
S304, if the current request times are less than the preset times, determining (N-N1) terminal auxiliary nodes with the terminal auxiliary node weight at the front position from the terminal nodes of the candidate auxiliary node group except the N terminal auxiliary nodes, and sending terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes.
And S305, updating N1 according to the number of terminal auxiliary nodes qualified for data verification in the (N-N1) terminal auxiliary nodes until the request number is equal to the preset number, or N1 is equal to N, or terminal auxiliary node requests are sent to all the terminal auxiliary nodes.
It should be noted that, when the number of the confirmation results returned by the terminal auxiliary node received in the preset time by the anchor point cell is smaller than the preset number N, the total number of times that the current anchor point cell sends the terminal auxiliary node requests to the plurality of terminal auxiliary nodes is counted, and whether the total number of times (that is, the current request) reaches the preset number is determined. If the current request times are larger than or equal to the preset times, the candidate auxiliary node group does not have the capacity of confirming the consensus, namely the anchor point cell can send auxiliary node group rejection information to the control platform.
Specifically, if the current request times are less than the preset times and (N-N1) terminal auxiliary nodes with the terminal auxiliary node weight bit sequence being earlier can be selected from the terminal nodes of the candidate auxiliary node group except the N terminal auxiliary nodes, the terminal auxiliary node request is sent to the (N-N1) terminal auxiliary nodes, and simultaneously the N1 and the update request times are updated according to the number of the terminal auxiliary nodes with data verification qualification in the (N-N1) terminal auxiliary nodes. And the updated N1 and N, the updated request times and the preset times are judged.
Specifically, if the current request frequency is less than the preset frequency and the terminal nodes of the candidate auxiliary node group other than the N terminal auxiliary nodes cannot be selected from the terminal nodes with the terminal auxiliary node weight bit sequence earlier (N-N1), it indicates that the candidate auxiliary node group does not have the confirmation consensus capability, that is, the anchor cell may send the auxiliary node group rejection information to the control platform.
Wherein, according to the number of terminal secondary nodes having data verification qualification among the (N-N1) terminal secondary nodes, updating the N1 may be understood as updating the N1 to (N1+ b) if the number of terminal secondary nodes having data verification qualification among the (N-N1) terminal secondary nodes is b.
Illustratively, if the anchor cell receives N confirmation results returned by N terminal auxiliary nodes in the candidate auxiliary nodes within the preset time Taw1, it replies the auxiliary node group confirmation information to the control platform to confirm that the N terminal auxiliary nodes of the candidate auxiliary node group serve as the terminal auxiliary node function in the data verification consensus.
If the anchor cell only receives the confirmation messages of N1 auxiliary nodes (N1 < N) in Taw1, the terminal auxiliary nodes replying the rejection result and the terminal auxiliary nodes without any reply in the N terminal auxiliary nodes of the anchor cell are abandoned, namely the anchor cell can not act as the terminal auxiliary node (even if the subsequent process receives the confirmation messages of the auxiliary nodes sent by the terminal, the process is abandoned). The terminal-subsidiary node cancellation message may be sent to the terminal-subsidiary node that gave up processing.
Meanwhile, the anchor cell selects (N-N1) terminal auxiliary nodes with the front terminal auxiliary node weight bit sequence according to the terminal auxiliary node weight Wui, sends terminal auxiliary node requests to (N-N1) terminal auxiliary nodes, adds 1 to a counter Ci1, waits for Taw1 to collect reply messages of (N-N1) terminal auxiliary nodes, repeats the step of sending the terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes and the determination steps after the step 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, continues to search for alternative terminal auxiliary nodes according to the terminal auxiliary node weight Wui, and 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 terminal auxiliary node search counter of the anchor cell, the initial value is 0, and Ci1 can be understood as the round number for recording the terminal auxiliary node search of the anchor cell.
Further, if the value of Ci1 reaches the preset number of times, N auxiliary node terminals are not found yet, or the anchor point cell has issued terminal auxiliary node requests to all terminal auxiliary nodes of the candidate auxiliary node group but has not received the confirmation information of N auxiliary nodes, 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 auxiliary node group rejection information 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 the candidate auxiliary node groups, and takes all the candidate auxiliary node groups corresponding to the auxiliary node group confirmation information as all the auxiliary node groups, thereby completing the selection of the auxiliary node groups and the auxiliary of the terminal auxiliary node.
Further, the control platform sends the determined auxiliary node group to anchor cells corresponding to all auxiliary node groups in the auxiliary node group list. The auxiliary node group list comprises auxiliary node group identifications and anchor point cell identifications of all auxiliary node groups participating in data verification consensus work at this 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 secondary node, and as shown in fig. 4, the data verification method may include:
s401, the anchor point cell sends terminal auxiliary node requests to the N terminal auxiliary nodes.
S402, the terminal auxiliary node determines whether the terminal auxiliary node has data verification qualification.
And S403, the terminal auxiliary node sends a confirmation result of data verification qualification determination of 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 the confirmation result whether the terminal auxiliary node returns in the preset time.
The terminal auxiliary node request comprises a preset wireless signal quality parameter, and the preset wireless signal quality parameter is used for testing whether the terminal auxiliary node has data verification capability.
As can be seen from the foregoing embodiments, in the embodiments of the present application, the anchor cell and the terminal auxiliary node in the data verification method in steps S302 to S304 perform a specific interaction process. With reference to fig. 3 and 4, in the embodiment of the present application, whether N terminal auxiliary nodes having data verification qualification in a candidate auxiliary node group are determined by a manner that an anchor point cell and a terminal auxiliary node interact with each other through a terminal auxiliary node request and a confirmation result, so as to determine whether the candidate auxiliary node group has a confirmation consensus capability.
Specifically, the anchor cell summarizes the sending of the confirmation results sent by the terminal auxiliary node, and determines the quantity of the summarized confirmation results. And when the number of the determined results is less than the preset number N, the anchor point cell determines the number of the terminal auxiliary nodes and the number of the terminal auxiliary nodes which send the terminal auxiliary node request again according to the auxiliary node weights of the remaining terminal auxiliary nodes. If the number of the confirmation results does not reach N, the processes of judging the number of the confirmation results, the number of the requests and sending the terminal auxiliary node requests are 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 terminal auxiliary node requests are sent to all the terminal auxiliary nodes.
As a possible implementation manner, the step S402 can be implemented in the following manner. The preset wireless signal quality parameter is set as 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 received useful signal strength to a received interference signal (noise and interference) strength. And under the condition that any one terminal auxiliary node judges that the reference signal receiving power corresponding to any one terminal auxiliary node is greater than or equal to the preset signal receiving power and the signal-to-interference-plus-noise ratio corresponding to any one terminal auxiliary node is greater than or equal to the preset signal-to-interference-plus-noise ratio, the terminal auxiliary node sends a confirmation result to the anchor point cell. And under the condition that any one terminal auxiliary node judges that the reference signal receiving power corresponding to any one terminal auxiliary node is smaller than the preset signal receiving power or the signal-to-interference-plus-noise ratio corresponding to any one terminal auxiliary node is smaller than the preset signal-to-interference-plus-noise ratio, the terminal auxiliary node does not send a rejection message to the anchor point cell.
It should be noted that, the terminal auxiliary node does not send the rejection message to the anchor cell, and it can be understood that neither the confirmation result nor the rejection result is sent to the anchor cell.
Fig. 5 is a flowchart of a data verification method according to an exemplary embodiment of the present application, which is specifically an interaction process diagram of a control platform, an anchor cell, a terminal secondary node, and a primary node, and as shown in fig. 5, the data verification method may include:
s501, the control platform sends a data verification request to the anchor point cell and the main 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 the control platform.
Illustratively, the data validation request may be formed based on the network quality data and recorded timestamp data associated with the network quality data.
And S502, the main node receives the data verification request sent by the control platform, and verifies the data to be verified to generate a third verification result.
And S503, the main node generates a third verification confirmation request according to the third verification result.
It should be noted that the control platform sends all the master nodes to the data verification request, so that all the master nodes verify the data to be verified. The data verification request comprises data to be verified.
As one possible manner, step S502 and step S503 may be implemented by the following detailed manner. And the master node performs data verification and block packaging on the information in the data verification request, and generates a third verification confirmation request for the block data, the block abstract, the timestamp, the block serial number and the block information after the block packaging and verification.
In some embodiments, the third authentication confirmation request is cryptographically processed before it is sent.
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, thereby reducing the number of times that the control platform sends the data to be verified.
S506, the terminal auxiliary node receives the data verification request sent by the first anchor point cell.
And S507, the terminal auxiliary node verifies the data to be verified in the data verification request to generate a first verification result.
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, so as to determine a first verification confirmation request.
It can be understood that, each anchor point cell collects the verification results returned by all the terminal auxiliary nodes corresponding to each anchor point cell to obtain the first verification confirmation request. Illustratively, when one first anchor point cell includes N terminal auxiliary nodes, after the N terminal auxiliary nodes verify data to be verified respectively, the N terminal auxiliary nodes send respective verification results to the corresponding first anchor point cell, and the first anchor point cell aggregates the N verification results returned by the N terminal auxiliary nodes to obtain a first verification confirmation request. The first authentication confirmation request includes a first authentication 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 secondary node packs and verifies the data block.
Optionally, the first verification result may include encrypted information of the first verification result.
And S510, the first anchor point cell sends the first verification confirmation request to the terminal auxiliary node corresponding to the first anchor point cell.
S511, the first anchor point cell sends the first verification confirmation request to the master node.
S512, the main node confirms the consensus of the first verification result in the first verification confirmation request.
S513, the terminal secondary node confirms the consensus on the first verification result in the first verification confirmation request.
It can be understood that the first anchor point cell obtains the first verification confirmation request according to the verification results of all terminal auxiliary nodes corresponding to the first anchor point cell. And sending the first verification confirmation request to the main node and the terminal auxiliary node to complete confirmation and consensus of the main 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 the 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 first verification result in a common way, wherein the first anchor point cell is an anchor point cell corresponding to any one 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 terminal auxiliary node corresponding to the second anchor point cell on the data to be verified; and 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 the consensus on the second verification result.
S514, the master node sends the third verification confirmation request to the first anchor cell.
It should be noted that the master node further sends a third verification confirmation request to the second anchor point cell, so that the terminal secondary node corresponding to the second anchor point cell confirms consensus for the third verification result in the third verification confirmation request. In other words, the master node sends the third verification confirmation request to all anchor point cells, which are the first anchor point cell and the second anchor point cell.
S515, the first anchor point cell receives the third verification confirmation request sent by the master node.
And S516, the first anchor point cell sends the third verification confirmation request to the terminal auxiliary node corresponding to the first anchor point cell.
And S517, the terminal auxiliary node confirms the consensus on the third verification result in the third verification confirmation request.
The master node may send the third verification confirmation request to all anchor cells participating in data verification, that is, the first anchor cell and the second anchor cell.
It should be noted that the master node reduces the number of times that the master node transmits data by sending a third verification confirmation request to the anchor cell.
When the number of the master nodes 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 can confirm and agree on the third verification result in the third verification confirmation request.
As shown in fig. 6 and 7, for example. Fig. 6 is a diagram illustrating a data link 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 2 primary nodes and 6 terminal secondary nodes in both fig. 6 and fig. 7 as an example. In fig. 6, the primary node is 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 anchor cells M1 and M2. In the data verification consensus process, when the verification result of the master node Z1 ' is confirmed and consensus is performed in the related art, a verification confirmation request needs to be sent to each auxiliary node and each master node, that is, 7 times, and similarly, the verification result confirmation requests sent by each node Z1 ', Z2 ', F1 ', F2 ', F3 ', F4 ', F5 ' and F6 ' in the data verification consensus process are all 7 times, so that the confirmation consensus process of the verification results of all the other nodes on the node can be completed. In the embodiment of the present application, the master nodes Z1 and Z2 can all complete the confirmation and consensus of the verification result of the master node by the remaining nodes by only sending verification confirmation requests 3 times. In the embodiment of the present application, the auxiliary nodes F1, F2, F3, F4, F5, and F6 all can complete the confirmation consensus of the verification result of the node by all other nodes (all nodes except the node) by sending the verification confirmation request only once. Therefore, the data verification method provided by the application can reduce the communication times of receiving and sending 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.
It should be noted that, in this embodiment, the anchor cell and the terminal secondary 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. Further ensuring that the anchor point cell participating in data verification has 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 primary node is set up by an operator together and is responsible for block generation and block storage devices, and the terminal secondary node selects a terminal with terminal bearing capacity in the network, that is, the terminal is selected comprehensively based on factors such as terminal capacity, terminal will, terminal electric quantity and historical participation conditions. The selected terminal auxiliary node participates in the data block generation verification in the data verification process. And the quality information of the co-constructed shared network is credibly stored by matching the main node and the terminal auxiliary node.
It should be noted that, in the above embodiment, after all the primary nodes and the terminal secondary nodes generate the confirmation consensus on the verification result in the verification confirmation request, the corresponding confirmation consensus result is generated and then directly sent to the control platform. The confirmation common identification result corresponding to each node is marked as Cji, the nodes are any main node and any terminal auxiliary node, the verification confirmation request comprises a first verification confirmation request generated by the first anchor point cell according to the first verification result, a second verification confirmation request generated by the second anchor point cell according to the second verification result, and a third verification confirmation request generated by the main node according to the 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 confirmation consensus results sent by all the terminal secondary nodes and all the primary nodes.
Illustratively, after receiving the confirmation consensus results sent by all the primary nodes and the terminal secondary nodes, the control platform generates a confirmation consensus result set { Cij } (where Cji is the confirmation consensus result of the node j to the node i, and j ≠ i) for the verification of the verification result of each node to other nodes. And the control platform determines the main node with the maximum sum of the confirmation consensus results of other nodes in the main nodes on the basis of the verification set { Cij } sent by each node, takes the verification result corresponding to the maximum main node as a target consensus result, and broadcasts the target consensus result to all the main nodes so that all the main nodes store the target consensus result. In some embodiments, the target consensus result is typically the best block data.
Through the embodiment, the control platform generates the data verification request according to the data to be verified, and then sends the generated data verification request to all anchor point cells and all main nodes. And all anchor point cells forward the received data verification request to all terminal auxiliary nodes corresponding to the respective anchor point cells. Therefore, the verification of the data to be verified of all the terminal auxiliary nodes and all the main nodes is completed. After the verification is completed, on one hand, the master nodes send verification results generated by the verification of the data to be verified to other master nodes and all anchor point cells respectively so as to complete the confirmation and the consensus of the verification results of all the master nodes and all the terminal auxiliary nodes to all the master nodes. And simultaneously, all terminal auxiliary nodes send verification results generated by verifying the data to be verified to the anchor point cells corresponding to the terminal auxiliary nodes. On the other hand, each anchor point cell collects all the verification results sent by all the terminal auxiliary nodes corresponding to the received anchor point cell, so that a verification determination request corresponding to each anchor point cell is determined. And all anchor point cells send the verification confirmation requests corresponding to the anchor point cells to other anchor point cells, all main nodes and all terminal auxiliary nodes corresponding to the anchor point cells so as to finish the confirmation and common identification of the verification results of all main nodes and all terminal auxiliary nodes to all terminal auxiliary nodes.
The embodiment of the present application further provides a data verification device based on a consensus mechanism, which is applied to a first anchor point cell in the communication system 10, where the communication system 10 further includes a control platform, a plurality of host nodes and a plurality of terminal auxiliary nodes, the plurality of terminal auxiliary nodes are pre-divided into a plurality of auxiliary node groups, the terminal auxiliary node in each auxiliary node group corresponds to the same anchor point cell, the first anchor point cell is an anchor point cell corresponding to any one auxiliary node group, and the data verification device includes: the first receiving unit 81 is 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 the terminal auxiliary node corresponding to the first anchor point cell, so that the terminal auxiliary node corresponding to the first anchor point cell verifies data to be verified; the determining unit 83 summarizes the first verification result of the data to be verified, which is returned by the terminal auxiliary node corresponding to the first anchor point cell, to determine a first verification confirmation request; the first sending unit 82 is further configured to send the 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 first verification result in common, and the second anchor point cell is any anchor point cell except the first anchor point 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 the terminal auxiliary node corresponding to the second anchor point cell on the data to be verified; the first sending unit 82 is configured to send the 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 the consensus to the second verification result.
Optionally, the first receiving unit 81 is further configured to: receiving a third verification confirmation request sent by the main node, wherein the third verification confirmation request comprises a third verification result of the main node on the data to be verified; a first sending unit 82, configured to send 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 consensus on 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 a candidate auxiliary node group 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 the confirmation consensus capability by confirming whether the number of terminal secondary nodes having data verification eligibility 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 confirmation consensus capacity; and if the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group is confirmed not to 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 auxiliary node group does not have confirmation consensus capacity.
Optionally, the step of determining whether the candidate auxiliary node group has the confirmation consensus capability by determining whether the number of terminal auxiliary nodes having data verification qualification in the candidate auxiliary node group satisfies a preset number specifically includes: determining N terminal auxiliary nodes with the terminal auxiliary node weight bit sequences ahead from M terminal auxiliary nodes included in the candidate auxiliary node group; sending terminal auxiliary node requests to the N terminal auxiliary nodes so as to confirm whether the terminal auxiliary nodes have data verification qualification or not according to whether the terminal auxiliary nodes return confirmation results within preset time or not; if it is confirmed that the N1 terminal secondary nodes qualify for data validation and N1 is equal to N, then the candidate secondary node group is determined to have confirmation consensus capability.
Optionally, the determining unit 83 is further configured to: if the N1 terminal auxiliary nodes are confirmed to have 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 the times of sending terminal auxiliary node requests to a plurality of terminal auxiliary nodes at the same time; if the current request times are less than the preset times, determining (N-N1) terminal auxiliary nodes with the terminal auxiliary node weight bit sequence being front 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 terminal auxiliary nodes qualified for data verification in the (N-N1) terminal auxiliary nodes until the request times are equal to the preset times, or N1 is equal to N, or 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 group is smaller than N.
The embodiment of the present application further provides a data verification apparatus based on a consensus mechanism, which is applied to a control platform in a communication system, where the communication system further includes a plurality of host nodes and a plurality of terminal auxiliary nodes, the 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, including: 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 identify the verification result; and the second receiving unit is used for receiving the confirmation consensus results sent by all the terminal auxiliary nodes 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 main nodes and a plurality of terminal auxiliary nodes, the plurality of terminal auxiliary nodes are pre-divided into at least one auxiliary node group, the terminal auxiliary node in each auxiliary node group corresponds to the same anchor point cell, and the obtaining unit 91 is configured to: the data verification request is generated according to the data to be verified; a second sending unit 92, configured to send the 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; a second receiving unit 93, configured to receive the confirmation consensus results sent by all the terminal auxiliary nodes and all the main nodes to determine a target consensus result, where the confirmation consensus result is a confirmation consensus result generated after the confirmation consensus is performed on the verification results by all the terminal auxiliary nodes and all the main nodes, and the verification result includes 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 main nodes so that all the main nodes store the target consensus result.
Optionally, before the step of sending the data verification request to the anchor cell and all the master nodes, the second sending 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 bit sequences of the auxiliary node group weight values before.
Optionally, the second receiving unit 93 is further configured to: and receiving the auxiliary node group confirmation information sent by the anchor point cell, and determining the candidate auxiliary node group corresponding to the auxiliary node group confirmation information in the auxiliary node group list as the auxiliary node group.
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 the control platform, the candidate auxiliary node group corresponding to the auxiliary node group rejection information and the corresponding anchor cell in the replacement auxiliary node group list according to the candidate auxiliary node group with the most advanced weight value bit order of other auxiliary node groups except the auxiliary node group list; and requesting updating for the auxiliary node group, 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 the (K +1) th auxiliary node group with the auxiliary node group weight bit sequence positioned at (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 auxiliary node group weights again.
Optionally, Wgi ═ Wn × Ln + Wo × Lo + Ws × Ls ] × Io, where Wgi denotes an auxiliary node group weight value, Wn denotes a terminal auxiliary node weight, Ln denotes a terminal auxiliary node number level, Wo denotes an anchor cell resource occupancy weight, Lo denotes an anchor cell idle occupancy level, Ws denotes a terminal auxiliary node serving weight, Ls denotes a terminal auxiliary node historical occupancy level, Io denotes an anchor cell resource occupancy indication, and Wn, Ln, Wo, Lo, Ws, Ls, and Io are greater than or equal to 0.
The embodiment of the present application further provides a data verification apparatus based on a consensus mechanism, which is applied to a terminal auxiliary node in a communication system 10, where a plurality of terminal auxiliary nodes are pre-divided into at least one auxiliary node group, and a terminal auxiliary node in each auxiliary node group corresponds to the same anchor point cell, and the data verification apparatus 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 summarizes 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 confirmation consensus on a verification result included in the verification confirmation request to generate a confirmation consensus result; the third sending unit 101 is configured to send the result of the confirmation consensus to the control platform, so that the control platform determines the target consensus result.
It should be noted that, the third sending unit is configured to send the first verification result to the first anchor point cell, and send the second verification result to the second anchor point cell; the third receiving unit is further configured to receive verification confirmation requests sent by the first anchor point cell and the host node, where the verification confirmation requests include a first verification confirmation request generated by the first anchor point cell according to the first verification result, a second verification confirmation request generated by the second anchor point cell according to the second verification result, and a third verification confirmation request generated by the host node according to the third verification result, the first anchor point cell is an anchor point cell corresponding to any one auxiliary node group, the second anchor point cell is any anchor point cell other than 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 host node on the data to be verified; the third receiving unit is further used for performing confirmation and consensus on the verification result contained in the verification confirmation request to generate a confirmation and consensus result; and the third sending unit is further used for sending the confirmation 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 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 a preset wireless signal quality parameter which is used for testing whether the terminal auxiliary node has data verification capability; a third sending unit 101, configured to send a confirmation result of whether the terminal secondary node has the data verification qualification determination to the anchor cell.
Optionally, the preset wireless signal quality parameter includes a preset signal received power and a preset signal-to-interference-plus-noise ratio; under the condition that the reference signal receiving power is judged to be more than or equal to the preset signal receiving power, and the signal-to-interference-plus-noise ratio is judged to be more than or equal to the preset signal-to-interference-plus-noise ratio, the terminal auxiliary node sends a confirmation result to the anchor point cell; 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, the terminal auxiliary node does not send a rejection message to the anchor point cell.
An embodiment of the present application further provides a data verification apparatus based on a consensus mechanism, which is applied to a master node in a communication system 10, and the data verification apparatus includes: 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 the verification result; a fourth sending unit 112, configured to send a verification confirmation request to all anchor cells and other master nodes, so that all terminal slave nodes confirm a common verification result.
The embodiment of the present application further provides a computer-readable storage medium, on which a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each step in the flow of the data verification method 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 any combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable computer diskette, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read-Only Memory (EPROM), registers, a hard disk, an optical fiber, a portable Compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of readable storage medium, in any suitable combination, or as appropriate 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. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated 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, which is executed by at least one processor to implement the steps in the data verification method flow shown in the above-described method embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, 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. The procedures or functions described in accordance with the embodiments of the present application are all or partially generated upon loading and execution of computer program instructions on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on 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 via wire (e.g., coaxial cable, fiber optic, 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 including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Fig. 12 shows a schematic diagram of another possible structure of the electronic device according to the above embodiment. The device includes: memory 121, processor 122, and programs or instructions stored on memory 121 and executable on processor 122 that, when executed by processor 122, implement the various steps in the data validation method flow illustrated by the above-described method embodiments. The electronic device may further comprise a communication interface 123 and a bus 124, the communication interface 123 being adapted to support communication of the apparatus with other network entities, e.g. to perform the steps performed by the obtaining unit 91 as described above.
The processor 122 may also implement or execute various illustrative logical blocks, units and circuits described in connection with the disclosure. The processor 122 may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, units, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
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, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 124 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 124 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
It is clear to those skilled in the art from the foregoing description of the embodiments that, for convenience and simplicity of description, the foregoing division of the functional units is merely used as an example, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the device may be divided into different functional units to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Since the electronic device, the readable storage medium, and the computer program product in the embodiments of the present application may be applied to the data verification method, so that the technical effects obtained by the embodiments of the present application may also refer to the embodiments of the method, which are not described herein again.
The above units may be individually configured processors, or may be implemented by being integrated into one of the processors of the controller, or may be stored in a 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 (CPU), or an 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 the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to 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 implementation. 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 is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling, direct coupling or communication connection between each other may be realized through an interface, and the interface connection may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by 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. A data verification method based on a consensus mechanism is characterized in that the method is applied to a first anchor point cell in a communication system, the communication system further comprises a control platform, a plurality of main nodes and a plurality of terminal auxiliary nodes, the plurality of terminal auxiliary nodes are pre-divided into a plurality of auxiliary node groups, 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 one 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;
sending the data verification request to a terminal auxiliary node corresponding to the first anchor point cell so that the terminal auxiliary node corresponding to the first anchor point cell verifies the data to be verified;
receiving 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 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 main nodes and terminal auxiliary nodes corresponding to the first anchor point cell so that all terminal auxiliary nodes and all main nodes confirm the common identification 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 of 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 that the terminal auxiliary node corresponding to the first anchor point cell confirms the consensus to the second verification result.
3. The data verification method of claim 2, further comprising:
receiving a third verification confirmation request sent by the main node, wherein the third verification confirmation request comprises a third verification result of the main 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 consensus on the third verification result.
4. The data verification method of claim 1, prior to receiving the data verification request sent by the control platform, further comprising:
receiving an auxiliary node group request sent by the control platform, wherein the auxiliary node group request comprises a candidate auxiliary node group corresponding to the first anchor point cell;
in response to the auxiliary node group request, determining whether the candidate auxiliary node group has a confirmation consensus capacity by confirming whether the number of terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group meets a preset number;
if the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group meets the preset number, sending auxiliary node group confirmation information to a control platform, wherein the auxiliary node group confirmation information is used for representing that the candidate auxiliary node group has the confirmation common identification capability;
and if the number of the terminal auxiliary nodes with data verification qualification in the candidate auxiliary node group is confirmed not to 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 ability.
5. The data verification method of claim 4, wherein determining whether the candidate secondary node group has the confirmation consensus capability by confirming whether the number of terminal secondary nodes qualified for data verification in the candidate secondary node group satisfies a preset number comprises:
determining N terminal auxiliary nodes with the terminal auxiliary node weight bit sequences ahead from M terminal auxiliary nodes included in the candidate auxiliary node group;
sending terminal auxiliary node requests to the N terminal auxiliary nodes so as to confirm whether the terminal auxiliary nodes have data verification qualification or not according to whether the terminal auxiliary nodes return confirmation results within preset time or not;
if it is confirmed that the N1 terminal secondary nodes qualify for data validation and N1 is equal to N, then the group of candidate secondary nodes is determined to have confirmation consensus capability.
6. The data verification method of claim 5, comprising:
if the data verification qualification of the N1 terminal auxiliary nodes is confirmed, and N1 is smaller than N, judging whether the current request times are smaller than the preset times, wherein the request times are the 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 less than the preset times, determining (N-N1) terminal auxiliary nodes with the terminal auxiliary node weight bit sequence being front 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 terminal auxiliary nodes qualified for data verification in the (N-N1) terminal auxiliary nodes until the number of requests is equal to a preset number, or N1 is equal to N, or the terminal auxiliary node requests are sent to all terminal auxiliary nodes.
7. The data verification method of 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 judged to be less than N.
8. A data verification method based on a consensus mechanism is applied to a control platform in a communication system, the communication system further comprises a plurality of main nodes and a plurality of terminal auxiliary nodes, the 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 method comprises the following steps:
generating a data verification request according to the data to be verified;
sending the data verification request to an anchor point cell and all main nodes so that all terminal auxiliary nodes and all main nodes corresponding to the anchor point cell verify the data to be verified in the data verification request and confirm and identify the verification result;
and receiving the confirmation consensus results sent by all the terminal auxiliary nodes and all the main nodes to determine the target consensus result.
9. The data verification method of claim 8, further comprising:
and broadcasting the target consensus result to all the main nodes so that all the main nodes store the target consensus result.
10. The data verification method of claim 8, wherein prior to the step of sending a data verification request to the anchor cell and all master nodes, further comprising:
generating an auxiliary node group list, wherein the auxiliary node group list comprises a plurality of candidate auxiliary node groups with the bit sequences of the auxiliary node group weight values close to the front;
sending an auxiliary node group request to an anchor 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 cell to determine whether the corresponding candidate auxiliary node group has a confirmation consensus capability;
and receiving the auxiliary node group confirmation information sent by the anchor point cell, and determining the 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. A data verification method based on a consensus mechanism is characterized in that the method is applied to a terminal auxiliary node in a communication system, wherein the terminal auxiliary node corresponds to a first anchor point cell, and the method comprises the following steps:
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;
sending the first verification result to the first anchor cell;
receiving verification confirmation requests sent by the first anchor point cell and the main node, wherein the verification confirmation requests comprise a first verification confirmation request generated by the first anchor point cell according to the first verification result, a second verification confirmation request generated by the second anchor point cell according to the 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 one 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 auxiliary node of the terminal corresponding to the second anchor point cell on the data to be verified, and the third verification result is a verification result of the main node on the data to be verified;
confirming and identifying the verification result contained in the verification confirmation request to generate a confirmation and identification result;
and sending the confirmation consensus result to a control platform so that the control platform determines a target consensus result.
12. The data verification method of claim 11, wherein before receiving the data verification request sent by the first anchor cell, further comprising:
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 a preset signal receiving power and a preset signal-to-interference-plus-noise ratio;
sending a confirmation result to the anchor cell when the reference signal receiving power is judged to be greater than or equal to the preset signal receiving power and the signal-to-interference-plus-noise ratio is judged to be greater than or equal to the preset signal-to-interference-plus-noise ratio;
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, not sending a rejection message to the anchor cell.
13. A data verification method based on a consensus mechanism is characterized in that the method is applied to a main node in a communication system and 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 all anchor point cells and other main nodes so that the terminal auxiliary nodes and other main nodes corresponding to all anchor point cells confirm and agree on the verification result.
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 host nodes and a plurality of terminal auxiliary node, a plurality of terminal auxiliary node divide into a plurality of auxiliary node groups in advance, the terminal auxiliary node in every auxiliary node group corresponds same anchor point district, first anchor point district is arbitrary one the anchor point district that auxiliary node group corresponds, include:
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;
a first sending unit, configured to send the data verification request to a terminal auxiliary node corresponding to the first anchor point cell, so that the terminal auxiliary node corresponding to the first anchor point cell verifies the data to be verified;
the determining unit is used for receiving 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 generating a first verification confirmation request containing the first verification result;
the first sending unit is further configured to send the first verification confirmation request to a second anchor point cell, all the master nodes, and terminal auxiliary nodes corresponding to the first anchor point cell, so that all the terminal auxiliary nodes and all the master nodes confirm a common identification of the first verification result, where the second anchor point cell is any anchor point cell except the first anchor point cell.
15. A data verification device based on a consensus mechanism is applied to a control platform in a communication system, wherein the communication system further comprises a plurality of main nodes and a plurality of terminal auxiliary nodes, the 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 comprises:
the acquisition unit is used for generating a data verification request according to the data to be verified;
a second sending unit, configured to send the 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 data to be verified in the data verification request, and confirm and agree on a verification result;
and the second receiving unit is used for receiving the confirmation consensus results sent by all the terminal auxiliary nodes and all the main nodes so as to determine the target consensus result.
16. A data verification device based on a consensus mechanism is applied to a terminal auxiliary node in a communication system, wherein the terminal auxiliary node corresponds to a first anchor point cell, and the data verification device comprises:
a third receiving unit, configured to receive a data verification request sent by a first anchor point cell, where the data verification request includes data to be verified;
the third receiving unit is further configured to verify the data to be verified in the data verification request, and generate a first verification result;
a third sending unit, configured to send the first verification result to the first anchor point cell;
a third receiving unit, configured to receive verification confirmation requests sent by the first anchor point cell and the master node, where the verification confirmation requests include a first verification confirmation request generated by the first anchor point cell according to the first verification result, a second verification confirmation request generated by the second anchor point 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 point cell is an anchor point cell corresponding to any one of the auxiliary node groups, the second anchor point cell is any anchor point cell other than the first anchor point cell, the second verification result is a verification result of the 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
The third receiving unit is further configured to perform confirmation and consensus on the verification result included in the verification confirmation request to generate a confirmation and consensus result;
and the third sending unit is further configured to send the confirmation consensus result to a control platform, so that the control platform determines a target consensus result.
17. A data verification device based on a consensus mechanism is applied to a main node in a communication system, and comprises the following components:
the fourth receiving unit is used for receiving the data verification request sent by the control platform and verifying the data to be verified to generate a verification result;
the generating unit is used for generating a verification confirmation request according to the verification result;
and a fourth sending unit, configured to send the verification confirmation request to all anchor cells and other master nodes, so that the terminal auxiliary nodes and other master nodes corresponding to all anchor cells perform confirmation consensus on the verification result.
18. A computer-readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the data verification method of any one of claims 1 to 13.
19. An electronic device, comprising: a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the data validation method of any one of claims 1 to 13.
CN202111486832.5A 2021-12-07 2021-12-07 Data verification method, system, storage medium and equipment based on consensus mechanism Active CN114338668B (en)

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 true CN114338668A (en) 2022-04-12
CN114338668B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
代??;张科;张彦;: "区块链赋能6G", 物联网学报, no. 01 *
杨健;陈曦;丁国如;赵杭生;张林元;孙佳琛;: "基于区块链的频谱设备网络中防御拜占庭攻击的分布式共识机制", 通信学报, no. 03 *

Also Published As

Publication number Publication date
CN114338668B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN105009098B (en) Data sending device, data-sharing systems, data sharing method and message switching system
CN110691384B (en) Network slice using method and device
US11140686B2 (en) Peer-to-peer sharing of network resources
CN103297468A (en) Operation method for group resources and group server
CN108683722B (en) Data transmission method, ESB platform and client
CN114024876B (en) Network dial testing method, device, equipment and storage medium
WO2009131387A2 (en) Discontinuous access management method using waiting ticket for resource allocation control, waiting ticket management method, and resource allocation control method
CN103002405A (en) Group calling starting method of broadband multimedia cluster system and related device and system
US20190372825A1 (en) Communication apparatus, communication method, and recording medium
CN114338668B (en) Data verification method, system, storage medium and equipment based on consensus mechanism
Jiang et al. Quality of service‐aware coordinated dynamic spectrum access: prioritized M arkov model and call admission control
CN108282752B (en) Method, system, device and storage medium for group callback in broadband cluster system
CN114124404B (en) Data processing method, device, server and storage medium
CN116643873A (en) Method, device, system, equipment and storage medium for scheduling computing power resources
CN116112572A (en) Service processing method, device, network equipment and storage medium
CN111885583B (en) Network sharing method and device
CN114040422A (en) Network parameter configuration method and device
JP2023511999A (en) Social Account Recommendations and Electronic Devices
CN113905019B (en) Data transmission method, device, equipment and medium based on terminal address management
CN112019603A (en) Transaction data processing method and device
Bhattacharjee et al. EnTER: an en counter based t rowbox deployment strategy for e nhancing network r eliability in post-disaster scenarios over DTN
CN111884848B (en) Network slice selection method and device
CN115706642B (en) CSI-IM resource allocation method and CRI calculation method
CN111489194B (en) Map information processing method, apparatus, readable storage medium and electronic device
CN112469139B (en) Network channel establishment system and method

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