CN114338668B - Data verification methods, systems, storage media and equipment based on consensus mechanism - Google Patents
Data verification methods, systems, storage media and equipment based on consensus mechanism Download PDFInfo
- Publication number
- CN114338668B CN114338668B CN202111486832.5A CN202111486832A CN114338668B CN 114338668 B CN114338668 B CN 114338668B CN 202111486832 A CN202111486832 A CN 202111486832A CN 114338668 B CN114338668 B CN 114338668B
- Authority
- CN
- China
- Prior art keywords
- verification
- nodes
- data
- terminal
- auxiliary node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了一种基于共识机制的数据验证方法、系统、存储介质及设备,涉及通信领域,解决了现有算法复杂度过高的问题。该数据验证方法包括:接收控制平台发送的数据验证请求,数据验证请求包括待验证数据;将数据验证请求发送给第一锚点小区对应的终端辅节点,以使第一锚点小区对应的终端辅节点对待验证数据进行验证;汇总第一锚点小区对应的终端辅节点返回的对待验证数据的第一验证结果,以确定第一验证确认请求;将第一验证确认请求发送给第二锚点小区、所有主节点和第一锚点小区对应的终端辅节点,以使所有终端辅节点和所有主节点对第一验证结果确认共识,第二锚点小区为除第一锚点小区以外的任意锚点小区。
This application discloses a data verification method, system, storage medium and equipment based on a consensus mechanism, which relates to the field of communications and solves the problem of excessive complexity of existing algorithms. The data verification method includes: receiving a data verification request sent by a control platform, where the data verification request includes data to be verified; sending the data verification request to a terminal auxiliary node corresponding to the first anchor cell, so that the terminal corresponding to the first anchor cell The secondary node verifies the data to be verified; summarizes the first verification results of the data to be verified returned by the terminal secondary node corresponding to the first anchor cell to determine the first verification confirmation request; and sends the first verification confirmation request to the second anchor point The terminal auxiliary node corresponding to the cell, all master nodes and the first anchor cell, so that all terminal auxiliary nodes and all master nodes confirm the consensus on the first verification result, and the second anchor cell is any other than the first anchor cell. Anchor neighborhood.
Description
技术领域Technical field
本发明涉及通信领域,尤其涉及以一种基于共识机制的数据验证方法、系统、存储介质及设备。The present invention relates to the field of communications, and in particular to a data verification method, system, storage medium and equipment based on a consensus mechanism.
背景技术Background technique
采用去中心化数据共享的移动通信网络架构中,存在主节点和辅节点。主节点由各运营商共同搭建,负责网络架构中数据的生成,验证以及存储,辅节点由网络架构中的终端承担,参与数据的生成以及验证。主节点和辅节点相互配合,共同实现移动通信网络中网络质量等数据的可信存储。In the mobile communication network architecture using decentralized data sharing, there are primary nodes and secondary nodes. The main node is jointly built by each operator and is responsible for the generation, verification and storage of data in the network architecture. The auxiliary node is responsible for the terminals in the network architecture and participates in the generation and verification of data. The master node and the slave node cooperate with each other to jointly realize trusted storage of network quality and other data in the mobile communication network.
相关技术中,对数据的验证共识过程中,终端每次只能与一个主节点或辅节点建立单点连接,来完成各个辅节点和主节点之间的数据收发,造成数据验证共识过程中算法复杂度高,从而导致终端耗电量大、整个数据共识过程时延长的问题。In related technologies, during the data verification and consensus process, the terminal can only establish a single-point connection with one primary node or secondary node at a time to complete the data sending and receiving between each secondary node and the primary node, causing the algorithm in the data verification and consensus process to fail. The complexity is high, which leads to the problem of high power consumption of the terminal and prolongation of the entire data consensus process.
发明内容Contents of the invention
本申请的目的是提供了一种基于共识机制的数据验证方法、系统、存储介质及设备,能够减小数据验证共识过程的复杂度,以解决因数据验证共识过程复杂度太高,而导致终端耗电量大、整个数据共识过程时延较长的问题。The purpose of this application is to provide a data verification method, system, storage medium and equipment based on a consensus mechanism, which can reduce the complexity of the data verification consensus process and solve the problem of terminal problems caused by the high complexity of the data verification consensus process. Problems include high power consumption and long delay in the entire data consensus process.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above purpose, this application adopts the following technical solutions:
第一方面,本申请提供了一种基于共识机制的数据验证方法,应用于通信系统中的第一锚点小区,通信系统还包括控制平台、多个主节点和多个终端辅节点,多个终端辅节点被预先划分成多个辅节点组,每个辅节点组中的终端辅节点对应同一个锚点小区,第一锚点小区为任意一个辅节点组对应的锚点小区,包括:接收控制平台发送的数据验证请求,数据验证请求包括待验证数据;将数据验证请求发送给第一锚点小区对应的终端辅节点,以使第一锚点小区对应的终端辅节点对待验证数据进行验证;接收第一锚点小区对应的终端辅节点返回的对待验证数据的第一验证结果,生成包含第一验证结果的第一验证确认请求;将第一验证确认请求发送给第二锚点小区、所有主节点和第一锚点小区对应的终端辅节点,以使所有终端辅节点和所有主节点对第一验证结果确认共识,第二锚点小区为除第一锚点小区以外的任意锚点小区。In the first aspect, this application provides a data verification method based on a consensus mechanism, which is applied to the first anchor cell in the communication system. The communication system also includes a control platform, multiple master nodes and multiple terminal auxiliary nodes, and multiple The terminal secondary node is pre-divided into multiple secondary node groups. The terminal secondary node in each secondary node group corresponds to the same anchor cell. The first anchor cell is the anchor cell corresponding to any secondary node group, including: receiving Control the data verification request sent by the platform, the data verification request includes the data to be verified; send the data verification request to the terminal auxiliary node corresponding to the first anchor cell, so that the terminal auxiliary node corresponding to the first anchor cell verifies the data to be verified ; Receive the first verification result of the data to be verified returned by the terminal secondary node corresponding to the first anchor cell, and generate the first verification confirmation request including the first verification result; send the first verification confirmation request to the second anchor cell, All primary nodes and the terminal secondary nodes corresponding to the first anchor cell, so that all terminal secondary nodes and all primary nodes confirm consensus on the first verification result, and the second anchor cell is any anchor except the first anchor cell community.
可选的,数据验证方法还包括:接收第二锚点小区发送的第二验证确认请求,第二验证确认请求包含第二锚点小区对应的终端辅节点对待验证数据的第二验证结果;将第二验证确认请求发送给第一锚点小区对应的终端辅节点,以使第一锚点小区对应的终端辅节点对第二验证结果确认共识。Optionally, the data verification method also includes: receiving a second verification confirmation request sent by the second anchor cell, where the second verification confirmation request contains the second verification result of the to-be-verified data of the terminal secondary node corresponding to the second anchor cell; The second verification confirmation request is sent to the terminal auxiliary node corresponding to the first anchor cell, so that the terminal auxiliary node corresponding to the first anchor cell confirms consensus on the second verification result.
可选的,数据验证方法还包括:接收主节点发送的第三验证确认请求,第三验证确认请求包含主节点对待验证数据的第三验证结果;将第三验证确认请求发送给第一锚点小区对应的终端辅节点,以使第一锚点小区对应的终端辅节点对第三验证结果确认共识。Optionally, the data verification method also includes: receiving a third verification confirmation request sent by the master node, the third verification confirmation request containing the third verification result of the data to be verified by the master node; sending the third verification confirmation request to the first anchor point The terminal auxiliary node corresponding to the cell, so that the terminal auxiliary node corresponding to the first anchor cell confirms consensus on the third verification result.
可选的,在接收控制平台发送的数据验证请求之前,还包括:接收控制平台发送的辅节点组请求,辅节点组请求中包括第一锚点小区对应的候选辅节点组;响应于辅节点组请求,通过确认候选辅节点组中具有数据验证资格的终端辅节点的数量是否满足预设数量,确定候选辅节点组是否具有确认共识能力;如果确认候选辅节点组中具有数据验证资格的终端辅节点的数量满足预设数量,则向控制平台发送辅节点组确认信息,辅节点组确认信息用于表征候选辅节点组具备确认共识能力;如果确认候选辅节点组中具有数据验证资格的终端辅节点的数量不满足预设数量,则向控制平台发送辅节点组拒绝信息,辅节点组拒绝信息用于表征辅节点组不具备确认共识能力。Optionally, before receiving the data verification request sent by the control platform, it also includes: receiving a secondary node group request sent by the control platform, where the secondary node group request includes a candidate secondary node group corresponding to the first anchor cell; responding to the secondary node Group request, determine whether the candidate secondary node group has the ability to confirm consensus by confirming whether the number of terminal secondary nodes with data verification qualifications in the candidate secondary node group meets the preset number; if it is confirmed that the terminal secondary nodes in the candidate secondary node group have data verification qualifications If the number of secondary nodes meets the preset number, secondary node group confirmation information will be sent to the control platform. The secondary node group confirmation information is used to indicate that the candidate secondary node group has the ability to confirm consensus; if it is confirmed that the terminal in the candidate secondary node group has data verification qualifications If the number of secondary nodes does not meet the preset number, secondary node group rejection information will be sent to the control platform. The secondary node group rejection information is used to indicate that the secondary node group does not have the ability to confirm consensus.
可选的,通过确认候选辅节点组中具有数据验证资格的终端辅节点的数量是否满足预设数量,确定候选辅节点组是否具有确认共识能力,包括:从候选辅节点组包括的M个终端辅节点中,确定终端辅节点权重位序靠前的N个终端辅节点;向N个终端辅节点发送终端辅节点请求,以根据终端辅节点是否在预设时间内返回确认结果,确认终端辅节点是否具有数据验证资格;如果确认N1个终端辅节点具有数据验证资格,且N1等于N,则确定候选辅节点组具有确认共识能力。Optionally, determine whether the candidate auxiliary node group has the ability to confirm consensus by confirming whether the number of terminal auxiliary nodes with data verification qualifications in the candidate auxiliary node group meets the preset number, including: M terminals included in the candidate auxiliary node group Among the auxiliary nodes, determine the N terminal auxiliary nodes with the highest terminal auxiliary node weight order; send terminal auxiliary node requests to the N terminal auxiliary nodes to confirm the terminal auxiliary node according to whether the terminal auxiliary node returns a confirmation result within the preset time. Whether the node is qualified for data verification; if it is confirmed that N1 terminal auxiliary nodes are qualified for data verification, and N1 is equal to N, it is determined that the candidate auxiliary node group has the ability to confirm consensus.
可选的,数据验证方法还包括:如果确认N1个终端辅节点具有数据验证资格,且N1小于N,判断当前请求次数是否小于预设次数,请求次数是指同时向多个终端辅节点发送终端辅节点请求的次数;如果当前请求次数小于预设次数,则从候选辅节点组除N个终端辅节点之外的终端辅节点中,确定终端辅节点权重位序靠前的(N-N1)个终端辅节点,并向(N-N1)个终端辅节点发送终端辅节点请求;以及根据(N-N1)个终端辅节点中具有数据验证资格的终端辅节点个数,更新N1,直到请求次数等于预设次数,或者N1等于N,或者已向所有终端辅节点发送过终端辅节点请求。Optionally, the data verification method also includes: if it is confirmed that N1 terminal auxiliary nodes have data verification qualifications, and N1 is less than N, determine whether the current number of requests is less than the preset number. The number of requests refers to sending terminals to multiple terminal auxiliary nodes at the same time. The number of secondary node requests; if the current number of requests is less than the preset number, then from the terminal secondary nodes except N terminal secondary nodes in the candidate secondary node group, determine the terminal secondary node with the highest weight order (N-N1) terminal auxiliary nodes, and send terminal auxiliary node requests to (N-N1) terminal auxiliary nodes; and update N1 according to the number of terminal auxiliary nodes that are qualified for data verification among the (N-N1) terminal auxiliary nodes, until the request The number of times is equal to the preset number of times, or N1 is equal to N, or terminal secondary node requests have been sent to all terminal secondary nodes.
可选的,数据验证方法还包括:在判定辅节点组包括的候选终端辅节点数M小于N的情况下,向控制平台发送辅节点组拒绝信息。Optionally, the data verification method also includes: when it is determined that the number M of candidate terminal secondary nodes included in the secondary node group is less than N, sending secondary node group rejection information to the control platform.
第二方面,本申请提供了一种基于共识机制的数据验证方法,应用于通信系统中的控制平台,通信系统还包括多个主节点和多个终端辅节点,多个终端辅节点被预先划分成至少一个辅节点组,每个辅节点组中的终端辅节点对应同一个锚点小区,包括:根据待验证数据,生成数据验证请求;将数据验证请求发送至锚点小区和所有主节点,以使锚点小区对应的所有终端辅节点和所有主节点对数据验证请求中的待验证数据进行验证;接收所有终端辅节点和所有主节点发送的确认共识结果,以确定出目标共识结果,其中,确认共识结果是所有终端辅节点和所有主节点对验证结果确认共识后产生的确认共识结果,验证结果包括第一验证结果、第二验证结果和第三验证结果。In the second aspect, this application provides a data verification method based on a consensus mechanism, which is applied to the control platform in the communication system. The communication system also includes multiple master nodes and multiple terminal auxiliary nodes. The multiple terminal auxiliary nodes are pre-divided. At least one secondary node group is formed, and the terminal secondary nodes in each secondary node group correspond to the same anchor cell, including: generating a data verification request based on the data to be verified; sending the data verification request to the anchor cell and all primary nodes, In order to enable all terminal auxiliary nodes and all master nodes corresponding to the anchor cell to verify the data to be verified in the data verification request; receive the confirmation consensus results sent by all terminal auxiliary nodes and all master nodes to determine the target consensus result, where , the confirmed consensus result is the confirmed consensus result generated after all terminal auxiliary nodes and all master nodes confirm the consensus on the verification result. The verification result includes the first verification result, the second verification result and the third verification result.
可选的,数据验证方法还包括:将目标共识结果广播给所有主节点,以使所有主节点对目标共识结果进行存储。Optionally, the data verification method also includes: broadcasting the target consensus result to all master nodes, so that all master nodes store the target consensus result.
可选的,在将数据验证请求发送至锚点小区和所有主节点步骤之前,还包括:生成辅节点组列表,辅节点组列表包括辅节点组权重值的位序靠前的多个候选辅节点组;向辅节点组列表中的候选辅节点组对应的锚点小区发送辅节点组请求,辅节点组请求用于使锚点小区确定对应的候选辅节点组是否具有确认共识能力;接收锚点小区发送的辅节点组确认信息,将辅节点组列表中与辅节点组确认信息对应的候选辅节点组确定为辅节点组。Optionally, before sending the data verification request to the anchor cell and all primary nodes, the step also includes: generating a secondary node group list. The secondary node group list includes multiple candidate secondary nodes in the highest order of the secondary node group weight values. Node group; send a secondary node group request to the anchor cell corresponding to the candidate secondary node group in the secondary node group list. The secondary node group request is used to enable the anchor cell to determine whether the corresponding candidate secondary node group has the confirmation consensus capability; receive the anchor Click the secondary node group confirmation information sent by the cell to determine the candidate secondary node group corresponding to the secondary node group confirmation information in the secondary node group list as the secondary node group.
第三方面,本申请提供了一种基于共识机制的数据验证方法,应用于通信系统中的终端辅节点,终端辅节点对应于第一锚点小区,包括:接收第一锚点小区发送的数据验证请求,数据验证请求包括待验证数据;对数据验证请求中的待验证数据进行验证,生成第一验证结果;将第一验证结果发送至第一锚点小区;接收第一锚点小区和主节点发送的验证确认请求,其中,验证确认请求包括第一锚点小区根据第一验证结果生成的第一验证确认请求、第二锚点小区根据第二验证结果生成的第二验证确认请求和主节点根据第三验证结果生成的第三验证确认请求,第一锚点小区为任意一个辅节点组对应的锚点小区,第二锚点小区为除第一锚点小区以外的任意锚点小区,第二验证结果为第二锚点小区对应的终端辅节点对待验证数据的验证结果,第三验证结果为主节点对待验证数据的验证结果;对验证确认请求包含的验证结果进行确认共识,以生成确认共识结果;将确认共识结果发送至控制平台,以使控制平台确定出目标共识结果。In the third aspect, this application provides a data verification method based on a consensus mechanism, which is applied to the terminal auxiliary node in the communication system. The terminal auxiliary node corresponds to the first anchor cell, including: receiving data sent by the first anchor cell. Verification request, the data verification request includes data to be verified; verify the data to be verified in the data verification request, and generate a first verification result; send the first verification result to the first anchor cell; receive the first anchor cell and the main A verification confirmation request sent by the node, where the verification confirmation request includes a first verification confirmation request generated by the first anchor cell based on the first verification result, a second verification confirmation request generated by the second anchor cell based on the second verification result, and the primary verification request. The node generates a third verification confirmation request based on the third verification result. The first anchor cell is the anchor cell corresponding to any secondary node group, and the second anchor cell is any anchor cell except the first anchor cell. The second verification result is the verification result of the data to be verified by the terminal auxiliary node corresponding to the second anchor cell, and the third verification result is the verification result of the data to be verified by the master node; a consensus is confirmed on the verification results included in the verification confirmation request to generate Confirm the consensus result; send the confirmed consensus result to the control platform so that the control platform can determine the target consensus result.
可选的,在接收锚点小区发送的数据验证请求之前,还包括:接收第一锚点小区发送的终端辅节点请求,以使确定终端辅节点是否具有数据验证资格,其中,终端辅节点请求包括预设无线信号质量参数,预设无线信号质量参数用于测试终端辅节点是否具有数据验证能力;向锚点小区发送对终端辅节点是否具有数据验证资格确定的确认结果。Optionally, before receiving the data verification request sent by the anchor cell, it also includes: receiving a terminal secondary node request sent by the first anchor cell, so as to determine whether the terminal secondary node is qualified for data verification, wherein the terminal secondary node request It includes preset wireless signal quality parameters, and the preset wireless signal quality parameters are used to test whether the terminal auxiliary node has data verification capabilities; sending a confirmation result to the anchor cell to determine whether the terminal auxiliary node has data verification qualifications.
可选的,数据验证方法包括:预设无线信号质量参数包括预设信号接收功率和预设信号与干扰加噪声比值;在判定参考信号接收功率大于或者等于预设信号接收功率,且信号与干扰加噪声比值大于或者等于预设信号与干扰加噪声比值的情况下,终端辅节点向锚点小区发送确认结果;在判定参考信号接收功率小于预设信号接收功率,或信号与干扰加噪声比值小于预设信号与干扰加噪声比值的情况下,终端辅节点不向锚点小区发送拒绝消息。Optionally, the data verification method includes: the preset wireless signal quality parameters include the preset signal received power and the preset signal to interference plus noise ratio; after determining that the reference signal received power is greater than or equal to the preset signal received power, and the signal and interference When the plus-noise ratio 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 cell; when it is determined that the reference signal received power is less than the preset signal receive power, or the signal to interference plus noise ratio is less than When the ratio of signal to interference plus noise is preset, the terminal secondary node does not send a rejection message to the anchor cell.
第四方面,本申请提供一种基于共识机制的数据验证方法,应用于通信系统中的主节点,包括:接收控制平台发送的数据验证请求,对待验证数据进行验证,以生成验证结果,数据验证请求包括待验证数据;根据验证结果生成验证确认请求;将验证确认请求发送至所有的锚点小区和其他主节点,以使所有的锚点小区对应的终端辅节点对验证结果进行确认共识。In the fourth aspect, this application provides a data verification method based on a consensus mechanism, which is applied to the master node in the communication system, including: receiving a data verification request sent by the control platform, verifying the data to be verified to generate verification results, and data verification The request includes data to be verified; a verification confirmation request is generated based on the verification result; the verification confirmation request is sent to all anchor cells and other master nodes, so that the terminal auxiliary nodes corresponding to all anchor cells can confirm the verification results.
第五方面,本申请提供一种基于共识机制的数据验证装置,应用于通信系统中的第一锚点小区,通信系统还包括控制平台、多个主节点和多个终端辅节点,多个终端辅节点被预先划分成多个辅节点组,每个辅节点组中的终端辅节点对应同一个锚点小区,第一锚点小区为任意一个辅节点组对应的锚点小区,包括:第一接收单元,用于接收控制平台发送的数据验证请求,数据验证请求包括待验证数据;第一发送单元,用于将数据验证请求发送给第一锚点小区对应的终端辅节点,以使第一锚点小区对应的终端辅节点对待验证数据进行验证;确定单元,接收第一锚点小区对应的终端辅节点返回的对待验证数据的第一验证结果,生成包含第一验证结果的第一验证确认请求;第一发送单元还用于,将第一验证确认请求发送给第二锚点小区、所有主节点和第一锚点小区对应的终端辅节点,以使所有终端辅节点和所有主节点对第一验证结果确认共识,第二锚点小区为除第一锚点小区以外的任意锚点小区。In the fifth aspect, this application provides a data verification device based on a consensus mechanism, which is applied to the first anchor cell in a communication system. The communication system also includes a control platform, multiple master nodes, multiple terminal auxiliary nodes, and multiple terminals. The secondary node is pre-divided into multiple secondary node groups. The terminal secondary nodes in each secondary node group correspond to the same anchor cell. The first anchor cell is the anchor cell corresponding to any secondary node group, including: the first The receiving unit is used to receive a data verification request sent by the control platform, where the data verification request includes data to be verified; the first sending unit is used to send the data verification request to the terminal auxiliary node corresponding to the first anchor cell, so that the first The terminal auxiliary node corresponding to the anchor cell verifies the data to be verified; the determination unit receives the first verification result of the data to be verified returned by the terminal auxiliary node corresponding to the first anchor cell, and generates a first verification confirmation including the first verification result request; the first sending unit is also configured to send the first verification confirmation request to the second anchor cell, all primary nodes and the terminal secondary nodes corresponding to the first anchor cell, so that all terminal secondary nodes and all primary nodes can The first verification result confirms the consensus that the second anchor cell is any anchor cell except the first anchor cell.
第六方面,本申请提供一种基于共识机制的数据验证装置,应用于通信系统中的控制平台,通信系统还包括多个主节点和多个终端辅节点,多个终端辅节点被预先划分成至少一个辅节点组,每个辅节点组中的终端辅节点对应同一个锚点小区,包括:获取单元,用于根据待验证数据,生成数据验证请求;第二发送单元,用于将数据验证请求发送至锚点小区和所有主节点,以使锚点小区对应的所有终端辅节点和所有主节点对数据验证请求中的待验证数据进行验证,以及对验证结果进行确认共识;第二接收单元,用于接收所有终端辅节点和所有主节点发送的确认共识结果,以确定出目标共识结果。。In the sixth aspect, this application provides a data verification device based on a consensus mechanism, which is applied to a control platform in a communication system. The communication system also includes multiple master nodes and multiple terminal auxiliary nodes. The multiple terminal auxiliary nodes are pre-divided into At least one secondary node group, the terminal secondary node in each secondary node group corresponds to the same anchor cell, including: an acquisition unit, used to generate a data verification request based on the data to be verified; a second sending unit, used to verify the data The request is sent to the anchor cell and all master nodes, so that all terminal auxiliary nodes and all master nodes corresponding to the anchor cell verify the data to be verified in the data verification request, and confirm the verification results; the second receiving unit , used to receive the confirmed consensus results sent by all terminal secondary nodes and all master nodes to determine the target consensus result. .
第七方面,本申请提供一种基于共识机制的数据验证装置,应用于通信系统中的终端辅节点,终端辅节点对应于第一锚点小区,包括:第三接收单元,用于接收第一锚点小区发送的数据验证请求,数据验证请求包括待验证数据;第三接收单元,还用于对数据验证请求中的待验证数据进行验证,生成第一验证结果;第三发送单元,用于将第一验证结果发送至第一锚点小区;第三接收单元,还用于接收第一锚点小区和主节点发送的验证确认请求,其中,验证确认请求包括第一锚点小区根据第一验证结果生成的第一验证确认请求、第二锚点小区根据第二验证结果生成的第二验证确认请求和主节点根据第三验证结果生成的第三验证确认请求,第一锚点小区为任意一个辅节点组对应的锚点小区,第二锚点小区为除第一锚点小区以外的任意锚点小区,第二验证结果为第二锚点小区对应的终端辅节点对待验证数据的验证结果,第三验证结果为主节点对待验证数据的验证结果;第三接收单元,还用于对验证确认请求包含的验证结果进行确认共识,以生成确认共识结果;第三发送单元,还用于将确认共识结果发送至控制平台,以使控制平台确定出目标共识结果。In the seventh aspect, this application provides a data verification device based on a consensus mechanism, which is applied to a terminal auxiliary node in a communication system. The terminal auxiliary node corresponds to the first anchor cell and includes: a third receiving unit for receiving the first The data verification request sent by the anchor cell includes the data to be verified; the third receiving unit is also used to verify the data to be verified in the data verification request and generates the first verification result; the third sending unit is used to Send the first verification result to the first anchor cell; the third receiving unit is also configured to receive a verification confirmation request sent by the first anchor cell and the master node, wherein the verification confirmation request includes the first anchor cell according to the first The first verification confirmation request generated by the verification result, the second verification confirmation request generated by the second anchor cell based on the second verification result, and the third verification confirmation request generated by the master node based on the third verification result. The first anchor cell is any An anchor cell corresponding to a secondary node group, the second anchor cell is any anchor cell except the first anchor cell, and the second verification result is the verification result of the terminal secondary node corresponding to the second anchor cell to be verified. , the third verification result is the verification result of the data to be verified by the master node; the third receiving unit is also used to confirm the consensus on the verification results included in the verification confirmation request to generate a confirmation consensus result; the third sending unit is also used to send Confirm the consensus result and send it to the control platform so that the control platform can determine the target consensus result.
第八方面,本申请提供一种基于共识机制的数据验证装置,应用于通信系统中的主节点,包括:第四接收单元,用于接收控制平台发送的数据验证请求,对待验证数据进行验证,以生成验证结果;生成单元,用于根据验证结果生成验证确认请求;第四发送单元,用于将验证确认请求发送至所有的锚点小区和其他主节点,以使所有的锚点小区对应的终端辅节点和其他主节点对验证结果进行确认共识。In the eighth aspect, this application provides a data verification device based on a consensus mechanism, applied to a master node in a communication system, including: a fourth receiving unit, used to receive a data verification request sent by the control platform, and verify the data to be verified, to generate verification results; the generation unit is used to generate verification confirmation requests according to the verification results; the fourth sending unit is used to send verification confirmation requests to all anchor cells and other master nodes, so that all anchor cells correspond to The terminal auxiliary node and other master nodes confirm the consensus on the verification results.
第九方面,本申请提供一种计算机可读存储介质,计算机可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面至第四方面中任一方面的数据验证方法。In a ninth aspect, the present application provides a computer-readable storage medium. Programs or instructions are stored on the computer-readable storage medium. When the programs or instructions are executed by a processor, the data verification in any one of the first to fourth aspects is implemented. method.
第十方面,本申请提供一种电子设备,包括:处理器,存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面至第四方面中任一方面的数据验证方法。In a tenth aspect, the present application provides an electronic device, including: a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the implementation of the first aspect to the third aspect is implemented. Data verification methods in any of the four aspects.
第十一方面,提供一种计算机程序产品,该计算机程序产品包括计算机指令,当计算机指令在服务器上运行时,使得该服务器执行如第一方面至第四方面中任一方面及其任一种可能的设计方式所提供的数据验证方法。In an eleventh aspect, a computer program product is provided. The computer program product includes computer instructions. When the computer instructions are run on a server, the server is caused to execute any one of the first to fourth aspects and any one thereof. Data validation methods provided by possible design approaches.
本申请提供的数据验证方法中,通信系统中的终端辅节点被预先分成中至少一个辅节点组,同一辅节点组中的终端辅节点对应于同一个锚点小区。对于与任意一个终端辅辅节点组对应的锚点小区,可以接收到控制平台发送的数据验证请求,数据验证请求包括待验证数据;再将数据验证请求发送给与其对应的终端辅节点,以使这些终端辅节点对待验证数据进行验证,并接收这些终端辅节点返回的对待验证数据的第一验证结果,生成包含第一验证结果的第一验证确认请求;最后将第一验证确认请求发送给与其对应的终端辅节点、其他锚点小区以及所有主节点,以使所有终端辅节点和所有主节点对第一验证结果确认共识。In the data verification method provided by this application, the terminal auxiliary nodes in the communication system are pre-divided into at least one auxiliary node group, and the terminal auxiliary nodes in the same auxiliary node group correspond to the same anchor cell. For the anchor cell corresponding to any terminal auxiliary node group, the data verification request sent by the control platform can be received. The data verification request includes the data to be verified; and then the data verification request is sent to the corresponding terminal auxiliary node, so that These terminal auxiliary nodes verify the data to be verified, receive the first verification result of the data to be verified returned by these terminal auxiliary nodes, and generate a first verification confirmation request containing the first verification result; finally, the first verification confirmation request is sent to its The corresponding terminal auxiliary nodes, other anchor cells and all master nodes, so that all terminal auxiliary nodes and all master nodes confirm the consensus on the first verification result.
本申请的数据验证方法中,通过预先划分成的辅节点组对应的锚点小区,转发主节点和终端辅节点的数据验证请求和数据验证结果,减少数据验证共识过程中各个辅节点和主节点之间的接收和发送数据的通信次数,降低了数据验证共识过程复杂度,从而减少了终端耗电量和数据共识过程的时延。In the data verification method of this application, the data verification requests and data verification results of the primary node and terminal secondary nodes are forwarded through the anchor cells corresponding to the pre-divided secondary node groups, thereby reducing the number of secondary nodes and primary nodes in the data verification consensus process. The number of communications between receiving and sending data reduces the complexity of the data verification consensus process, thereby reducing terminal power consumption and the delay of the data consensus process.
附图说明Description of the drawings
图1为本申请实施例提供的一种通信系统示意图;Figure 1 is a schematic diagram of a communication system provided by an embodiment of the present application;
图2为本申请实施例提供的一种数据验证方法的流程图之一;Figure 2 is one of the flow charts of a data verification method provided by an embodiment of the present application;
图3为本申请实施例提供的一种数据验证方法的流程图之二;Figure 3 is the second flow chart of a data verification method provided by an embodiment of the present application;
图4为本申请实施例提供的一种数据验证方法的流程图之三;Figure 4 is the third flow chart of a data verification method provided by the embodiment of the present application;
图5为本申请实施例提供的一种数据验证方法的流程图之四;Figure 5 is the fourth flow chart of a data verification method provided by the embodiment of the present application;
图6为本申请相关技术的一种各节点之间的数据链路示意图;Figure 6 is a schematic diagram of a data link between nodes according to the related technology of this application;
图7为本申请实施例提供的一种各节点之间数据链路示意图;Figure 7 is a schematic diagram of a data link between nodes provided by an embodiment of the present application;
图8为本申请实施例提供的一种数据验证装置的示意图之一;Figure 8 is one of the schematic diagrams of a data verification device provided by an embodiment of the present application;
图9为本申请实施例提供的一种数据验证装置的示意图之二;Figure 9 is a second schematic diagram of a data verification device provided by an embodiment of the present application;
图10为本申请实施例提供的一种数据验证装置的示意图之三;Figure 10 is the third schematic diagram of a data verification device provided by an embodiment of the present application;
图11为本申请实施例提供的一种数据验证装置的示意图之四;Figure 11 is the fourth schematic diagram of a data verification device provided by an embodiment of the present application;
图12为本申请实施例提供的电子设备的硬件示意图。Figure 12 is a hardware schematic diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments These are part of the embodiments of this application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
需要说明的是,本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application shall not be construed as being more preferred or advantageous than other embodiments or design solutions. Rather, use of the words "exemplary" or "such as" is intended to present the concept in a concrete manner.
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不是在对数量和执行次序进行限定。In order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects. Skilled persons can understand that words such as "first" and "second" do not limit the quantity and execution order.
本申请实施例提供的一种数据验证方法,该方法可以应用于通信系统。该通信系统支持针对各类数据进行操作,例如,数据接收和发送、数据验证和数据确认共识等。The embodiment of the present application provides a data verification method, which can be applied to communication systems. The communication system supports operations on various types of data, such as data receiving and sending, data verification, and data confirmation consensus.
示例性的,图1为一种通信系统10示意图,如图1所示,该系统包括多个锚点小区11、一个控制平台12、多个终端辅节点13和多个主节点14,通信系统中的终端辅节点被预先分成中至少一个辅节点组,同一辅节点组中的多个终端辅节点对应于同一个锚点小区。其中,锚点小区11、控制平台12和主节点14三者之间可以进行通信;锚点小区11和终端辅节点13之间可以进行通信;控制平台12和终端辅节点13之间也可以进行通信。例如执行本申请实施例提供的数据验证方法。Exemplarily, Figure 1 is a schematic diagram of a communication system 10. As shown in Figure 1, the system includes multiple anchor cells 11, a control platform 12, multiple terminal auxiliary nodes 13 and multiple master nodes 14. The communication system The terminal auxiliary nodes in are pre-divided into at least one auxiliary node group in , and multiple terminal auxiliary nodes in the same auxiliary node group correspond to the same anchor cell. Among them, the anchor cell 11, the control platform 12 and the master node 14 can communicate; the anchor cell 11 and the terminal auxiliary node 13 can communicate; the control platform 12 and the terminal auxiliary node 13 can also communicate. communication. For example, execute the data verification method provided by the embodiment of this application.
在一些实施例中,锚点小区11可以是被配置执行本申请实施例提供的如图8所示的数据验证方法的数据验证装置。其锚点小区11能执行数据验证方法中以下步骤:如图2所示数据验证方法中的步骤S202至步骤S205以及步骤S207和步骤S208、如图3所示的全部步骤S301至步骤S305、如图4所示的全部步骤S401和步骤S404和如图5所示的步骤S504、步骤S505、步骤S509、步骤S510、步骤S515和步骤S516。示例性的,该数据验证装置具体可以是基站。In some embodiments, the anchor cell 11 may be a data verification device configured to perform the data verification method as shown in Figure 8 provided by the embodiment of the present application. The anchor cell 11 can perform the following steps in the data verification method: steps S202 to S205 and steps S207 and S208 in the data verification method as shown in Figure 2, all steps S301 to S305 as shown in Figure 3, as shown in Figure 3. All steps S401 and S404 shown in FIG. 4 and steps S504, S505, S509, S510, S515 and S516 shown in FIG. 5 . For example, the data verification device may be a base station.
在一些实施例中,控制平台12可以是被配置执行本申请实施例提供的如图9所示的数据验证方法的数据验证装置。其控制平台12能执行数据验证方法中的以下步骤:如图2所示数据验证方法中的步骤S201、步骤S206、步骤S209至步骤S211、如图3所示的全部步骤S301至步骤S305和如图5所示的步骤S501。示例性的,该数据验证装置具体可以是实现不同功能控制需求的管理层软件集成系统。In some embodiments, the control platform 12 may be a data verification device configured to execute the data verification method as shown in FIG. 9 provided by the embodiment of the present application. Its control platform 12 can execute the following steps in the data verification method: step S201, step S206, step S209 to step S211 in the data verification method as shown in Figure 2, all steps S301 to step S305 as shown in Figure 3 and as follows. Step S501 shown in Figure 5. For example, the data verification device may be a management software integration system that implements different functional control requirements.
在一些实施例中,终端辅节点13可以是被配置执行本申请实施例提供的如图10所示的数据验证方法的数据验证装置。其终端辅节点13能执行数据验证方法中的以下步骤:如图4所示数据验证方法中的步骤S402和步骤S404、如图5所示的步骤S506至步骤S508、步骤S513、步骤S517。示例性的,该数据验证装置具体可以是手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)等电子设备,该数据验证装置也可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置等。本申请对终端辅节点13的具体形态不作限制。In some embodiments, the terminal secondary node 13 may be a data verification device configured to perform the data verification method as shown in Figure 10 provided by the embodiment of the present application. Its terminal auxiliary node 13 can perform the following steps in the data verification method: steps S402 and S404 in the data verification method as shown in Figure 4, steps S506 to S508, step S513, and step S517 as shown in Figure 5. For example, the data verification device may be 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 other electronic devices. equipment, the data verification device can also be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. This application does not limit the specific form of the terminal auxiliary node 13.
在一些实施例中,主节点14可以是被配置执行本申请实施例提供的如图11所示的数据验证方法的数据验证装置。其主节点14能执行数据验证方法中的以下步骤:如图5所示数据验证方法中的步骤S502、步骤S503、步骤S512和步骤S514。示例性的,该数据验证装置具体可以是,由多个运营商共同搭建能负责数据区块生成及数据区块存储的设备。In some embodiments, the master node 14 may be a data verification device configured to perform the data verification method as shown in FIG. 11 provided by the embodiment of the present application. Its master node 14 can perform the following steps in the data verification method: step S502, step S503, step S512 and step S514 in the data verification method as shown in Figure 5. For example, the data verification device may be a device that is jointly built by multiple operators and is responsible for generating and storing data blocks.
图2为本申请根据一实施例示出的一种数据验证方法流程图,其具体为锚点小区和控制平台的交互过程示意图,其中,该流程图中的锚点小区所执行的步骤可被任意一个锚点小区执行。如图2所示,该数据验证方法可以包括:Figure 2 is a flow chart of a data verification method according to an embodiment of the present application. It is specifically a schematic diagram of the interaction process between the anchor cell and the control platform. The steps performed by the anchor cell in the flow chart can be arbitrarily modified. An anchor cell is implemented. As shown in Figure 2, the data verification method can include:
S201,控制平台向锚点小区发送辅节点组请求。S201. The control platform sends a secondary node group request to the anchor cell.
S202,锚点小区接收控制平台发送的辅节点组请求,辅节点组请求中包括锚点小区对应的候选辅节点组。S202: The anchor cell receives the secondary node group request sent by the control platform, and the secondary node group request includes the candidate secondary node group corresponding to the anchor cell.
其中,辅节点组请求可以包括辅节点组列表,辅节点组列表包括辅节点组权重值的位序靠前的多个候选辅节点组。The auxiliary node group request may include a auxiliary node group list, and the auxiliary node group list includes a plurality of candidate auxiliary node groups with the highest order of the auxiliary node group weight values.
控制平台从所有候选辅节点组中,选取辅节点组权重值的位序靠前的多个候选辅节点组,且将上述选取的多个候选辅节点组作为辅节点组列表的候选辅节点组。The control platform selects multiple candidate secondary node groups with higher order of secondary node group weight values from all candidate secondary node groups, and uses the above-selected multiple candidate secondary node groups as candidate secondary node groups in the secondary node group list. .
示例性的,辅节点组请求中的辅节点组列表中有K个候选辅节点组,每个候选辅节点组中的终端辅节点对应同一个锚点小区。即,K个锚点小区与K个候选辅节点组一一对应。控制平台分别向与该K个候选辅节点组对应的K个锚点小区发送辅节点组请求。For example, there are K candidate secondary node groups in the secondary node group list in the secondary node group request, and the terminal secondary node in each candidate secondary node group corresponds to the same anchor cell. That is, K anchor cells correspond to K candidate secondary node groups one-to-one. The control platform sends secondary node group requests to the K anchor cells corresponding to the K candidate secondary node groups respectively.
控制平台以辅节点组为单位进行终端辅节点选取。例如,每个辅节点组包含ni个终端辅节点,且ni个终端辅节点属于同一小区,该小区称为上述ni个终端辅节点对应的锚点小区。The control platform selects terminal auxiliary nodes based on auxiliary node groups. For example, each secondary node group contains ni terminal secondary nodes, and the ni terminal secondary nodes belong to the same cell. This cell is called the anchor cell corresponding to the above ni terminal secondary nodes.
作为一种可能实现方式,控制平台通过辅节点组标识(Assistant Node GroupIDentity,ANG-ID)识别辅节点组。在终端辅节点发生移动即位置发生变化时,则辅节点组列表也需要根据终端辅节点的移动位置情况实时更新辅节点组。其中,每个辅节点组包含以下信息:辅节点组标识、锚点小区标识、承建方标识、辅节点组列表信息。其中,承建方标识用于表征该锚点小区基站的建设方,例如在AB共建共享中,A承建方标识为00,B承建方基站标识为01。As a possible implementation method, the control platform identifies the assistant node group through the assistant node group ID (Assistant Node GroupIDentity, ANG-ID). When the terminal auxiliary node moves or its position changes, the auxiliary node group list also needs to update the auxiliary node group in real time according to the mobile position of the terminal auxiliary node. Among them, each secondary node group contains the following information: secondary node group identification, anchor cell identification, contractor identification, and secondary node group list information. Among them, the contractor ID is used to represent the builder of the anchor cell base station. For example, in AB co-construction and sharing, the ID of contractor A is 00, and the ID of the base station of contractor B is 01.
S203,锚点小区响应于辅节点组请求,通过确认候选辅节点组中具有数据验证资格的终端辅节点的数量是否满足预设数量,确定候选辅节点组是否具有确认共识能力。S203. The anchor cell responds to the request of the secondary node group and determines whether the candidate secondary node group has the consensus confirmation capability by confirming whether the number of terminal secondary nodes with data verification qualifications in the candidate secondary node group meets the preset number.
需要说明的是,锚点小区响应辅节点组请求,通过确定候选辅节点组中,具有数据验证资格的终端辅节点的数量,来确定该候选辅节点组是否具有确认共识能力。具体地,执行上述步骤S203的过程可以通过如图3所示的步骤S301至步骤S305来实现。It should be noted that the anchor cell responds to the secondary node group request and determines whether the candidate secondary node group has the ability to confirm consensus by determining the number of terminal secondary nodes with data verification qualifications in the candidate secondary node group. Specifically, the process of executing the above step S203 can be implemented through steps S301 to S305 as shown in FIG. 3 .
S204,锚点小区若确认候选辅节点组中具有数据验证资格的终端辅节点的数量满足预设数量,向控制平台发送辅节点组确认信息,辅节点组确认信息用于表征所述候选辅节点组具备所述确认共识能力。S204. If the anchor cell confirms that the number of terminal auxiliary nodes with data verification qualifications in the candidate auxiliary node group meets the preset number, it sends auxiliary node group confirmation information to the control platform. The auxiliary node group confirmation information is used to characterize the candidate auxiliary node. The group has the above-mentioned ability to confirm consensus.
其中,锚点小区在确定该候选辅节点组具备确认共识能力的情况下,向控制平台发送辅节点组确认信息,以表示控制平台发送的辅节点组请求中包含的该候选辅节点组具备确认共识能力。Among them, when the anchor cell determines that the candidate secondary node group has the ability to confirm consensus, it sends secondary node group confirmation information to the control platform to indicate that the candidate secondary node group included in the secondary node group request sent by the control platform has the confirmation capability. Consensus ability.
S205,控制平台接收锚点小区发送的辅节点组确认信息,并将辅节点组列表中与辅节点组确认信息对应的候选辅节点组,确定为辅节点组。S205: The control platform receives the secondary node group confirmation information sent by the anchor cell, and determines the candidate secondary node group corresponding to the secondary node group confirmation information in the secondary node group list as the secondary node group.
需要说明的是,控制平台接收到锚点小区发送的辅节点组确认信息后,将锚点小区确定出具备确认共识能力的候选辅节点组及该候选辅节点组对应的锚点小区,继续存储在辅节点组列表中,即将该候选辅节点组确定为辅节点组。It should be noted that after receiving the secondary node group confirmation information sent by the anchor cell, the control platform determines the candidate secondary node group with the ability to confirm consensus and the anchor cell corresponding to the candidate secondary node group, and continues to store the information. In the secondary node group list, the candidate secondary node group is determined as the secondary node group.
S206,锚点小区若确认候选辅节点组中具有数据验证资格的终端辅节点的数量不满足预设数量,向控制平台发送辅节点组拒绝信息,辅节点组拒绝信息用于表征候选辅节点组不具备确认共识能力。S206. If the anchor cell confirms that the number of terminal secondary nodes with data verification qualifications in the candidate secondary node group does not meet the preset number, it sends secondary node group rejection information to the control platform. The secondary node group rejection information is used to characterize the candidate secondary node group. Inability to confirm consensus.
需要说明的是,锚点小区根据每个候选辅节点组中包含的具有数据验证资格的终端辅节点的数量,来确定该候选辅节点组是否具备确认共识能力。详细地,如果具有数据验证资格的终端辅节点的数量小于预设数量,则确定该候选辅节点组不具备确认共识能力,如果具有数据验证资格的终端辅节点的数量大于等于预设数量,则确定该候选辅节点组具备确认共识能力。进一步地,在锚点小区确定该候选辅节点组不具备确认共识能力的情况下,向控制平台发送辅节点组拒绝信息,以表示控制平台发送的辅节点组请求中包含的该候选辅节点组不具备确认共识能力。It should be noted that the anchor cell determines whether the candidate secondary node group has the ability to confirm consensus based on the number of terminal secondary nodes that are qualified for data verification included in each candidate secondary node group. In detail, if the number of terminal auxiliary nodes with data verification qualifications is less than the preset number, it is determined that the candidate auxiliary node group does not have the ability to confirm consensus. If the number of terminal auxiliary nodes with data verification qualifications is greater than or equal to the preset number, then It is determined that the candidate secondary node group has the ability to confirm consensus. Further, when the anchor cell determines that the candidate secondary node group does not have the ability to confirm consensus, it sends secondary node group rejection information to the control platform to indicate that the candidate secondary node group is included in the secondary node group request sent by the control platform. Inability to confirm consensus.
S207,控制平台接收锚点小区发送的辅节点组拒绝信息。S207: The control platform receives the secondary node group rejection information sent by the anchor cell.
S208,控制平台根据辅节点组列表以外的其他辅节点组权重值位序最靠前的候选辅节点组,更新替换辅节点组列表中与辅节点组拒绝信息对应的辅节点组和对应的锚点小区。S208: The control platform updates and replaces the secondary node group corresponding to the secondary node group rejection information and the corresponding anchor in the secondary node group list based on the candidate secondary node group with the highest weight value among other secondary node groups other than the secondary node group list. Point community.
需要说明的是,控制平台接收到锚点小区发送的辅节点组拒绝信息后,将锚点小区确定出不具备确认共识能力的辅节点组及该辅节点组对应的锚点小区,从辅节点组列表中删除,并将辅节点组列表以外的其他辅节点组权重值位序最靠前的一个候选辅节点组确定为辅节点组列表中的候选辅节点组。It should be noted that after receiving the secondary node group rejection information sent by the anchor cell, the control platform determines the secondary node group that does not have the ability to confirm consensus and the anchor cell corresponding to the secondary node group. From the secondary node deleted from the group list, and the candidate secondary node group with the highest weight value among other secondary node groups other than the secondary node group list is determined as the candidate secondary node group in the secondary node group list.
其中,辅节点组列表是控制平台根据辅节点组权重值确定出的。具体地,选取所有候选辅节点中辅节点组权重值的位序靠前的K个候选辅节点组作为辅节点组列表中的候选辅节点组。Among them, the list of secondary node groups is determined by the control platform based on the weight value of the secondary node group. Specifically, K candidate auxiliary node groups with the highest order of auxiliary node group weight values among all candidate auxiliary nodes are selected as candidate auxiliary node groups in the auxiliary node group list.
示例性的,以辅节点组列表中包括有K个候选辅节点组为例,对步骤S208进行详细说明。辅节点组列表中包括有K个候选辅节点组,可以理解为,在对K个锚点小区对应的K个候选辅节点组进行确认共识能力验证之前,其辅节点组列表中包括有K个候选辅节点组,其中,K个候选辅节点组为辅节点组权重值的位序靠前的K个候选辅节点组。如果在对K个锚点小区对应的K个候选辅节点组进行确认共识能力验证之后,接收到1个辅节点组拒绝信息,则控制平台将辅节点组列表中与辅节点组拒绝信息对应的候选辅节点组更新为候选辅节组权重位序位于(K+1)的第(K+1)个候选辅节点组,并将与辅节点组拒绝信息对应的候选辅节点组从辅节点组列表中删除,并重新更新所有候选辅节组权重的位序。For example, step S208 will be described in detail, taking the list of secondary node groups including K candidate secondary node groups as an example. The auxiliary node group list includes K candidate auxiliary node groups. It can be understood that before the K candidate auxiliary node groups corresponding to the K anchor cells are verified for consensus capability, the auxiliary node group list includes K Candidate auxiliary node groups, where the K candidate auxiliary node groups are the K candidate auxiliary node groups with the highest order of the auxiliary node group weight values. If after confirming the consensus capability verification of the K candidate secondary node groups corresponding to K anchor cells, a secondary node group rejection message is received, the control platform will The candidate secondary node group is updated to the (K+1)th candidate secondary node group whose weight order of the candidate secondary node group is (K+1), and the candidate secondary node group corresponding to the secondary node group rejection information is removed from the secondary node group Delete from the list, and re-update the order of the weights of all candidate sub-section groups.
作为一种可能是实施方式,辅节点组权重值由以下方式公式(1)确定:As a possible implementation, the weight value of the auxiliary node group is determined by the following formula (1):
Wgi=[Wn×Ln+Wo×Lo+Ws×Ls]×Io, 公式(1)Wgi=[Wn×Ln+Wo×Lo+Ws×Ls]×Io, formula (1)
其中,Wgi表示辅节点组权重值,Wn表示终端辅节点权重,Ln表示终端辅节点数等级,Wo表示锚点小区资源占用率权重,Lo表示锚点小区闲时占用率等级,Ws表示终端辅节点担当权重,Ls表示终端辅节点历史承担情况等级,Io表示锚点小区资源占用率指示,Wn、Ln、Wo、Lo、Ls和Io均大于等于0,Ws为大于等于1的整数。Among them, Wgi represents the weight value of the auxiliary node group, Wn represents the weight of the terminal auxiliary node, Ln represents the number level of the terminal auxiliary node, Wo represents the anchor cell resource occupancy rate weight, Lo represents the idle time occupancy level of the anchor cell, and Ws represents the terminal auxiliary node level. Node responsibility weight, Ls represents the historical responsibility level of the terminal auxiliary node, Io represents the anchor cell resource occupancy indicator, Wn, Ln, Wo, Lo, Ls and Io are all greater than or equal to 0, Ws is an integer greater than or equal to 1.
作为上述实施例中的一种可能的实现方式,Ln与终端辅节点的数量ni相关。终端辅节点的数量ni位于不同的区间,则Ln值不同。辅节点组包含的终端辅节点的数量(即ni)越多,则Ln越大,例如ni<50,Ln=0,50≤ni<100,Ln=1,100≤ni<150,Ln=2,ni≥150,Ln=3。As a possible implementation manner in the above embodiment, Ln is related to the number ni of terminal secondary nodes. If the number of terminal auxiliary nodes ni is located in different intervals, the Ln value will be different. The more terminal auxiliary nodes (i.e. ni) the auxiliary node group contains, the larger Ln is. For example, ni<50, Ln=0, 50≤ni<100, Ln=1, 100≤ni<150, Ln=2 , ni≥150, Ln=3.
详细地,Lo为锚点小区闲时占用率等级,可以理解为,根据锚点小区闲时资源占用率进行划分,其资源占用率位于不同的区间Lo取值不同。在资源占用率最高的区间时,Lo取0。例如,锚点小区闲时占用率大于70%,L0=0,锚点小区闲时占用率等级位于50%到70%,Lo=1,锚点小区闲时占用率等级小于50%,Lo=2。In detail, Lo is the idle time occupancy level of the anchor cell. It can be understood that the anchor cell is divided according to its idle time resource occupancy, and its resource occupancy is located in different intervals with different Lo values. In the interval with the highest resource usage, Lo takes 0. For example, if the anchor cell's idle time occupancy is greater than 70%, L0=0, the anchor cell's idle time occupancy level is between 50% and 70%, Lo=1, and the anchor cell's idle time occupancy level is less than 50%, Lo= 2.
其中,Ls的初始值为0,Io表示锚点小区资源占用率指示,可以理解为在Lo等于0时Io=0,在Lo不等于0时Io=1。上述Io值目的是当锚点小区负载高时,暂时不选取该锚点小区作为辅节点组,以免进一步加大该锚点小区负载。Among them, the initial value of Ls is 0, and Io represents the anchor cell resource occupancy indication. It can be understood that when Lo is equal to 0, Io=0, and when Lo is not equal to 0, Io=1. The purpose of the above Io value is to temporarily not select the anchor cell as the secondary node group when the load of the anchor cell is high, so as to avoid further increasing the load of the anchor cell.
进一步地,WS大于(Wn×Lnmax+Wo×Lomax),Lnmax和Lomax为Ln和Lo能取到的最大值。Furthermore, WS is greater than (Wn×Lnmax+Wo×Lomax), and Lnmax and Lomax are the maximum values that Ln and Lo can take.
进一步地,当Ln、Lo或Ls发生变化时,则Wgi的值也随着发生变化。其中,Ln和Lo是由锚点小区发送给控制平台,并且锚点小区会周期性地更新Ln和Lo的值。Furthermore, when Ln, Lo or Ls changes, the value of Wgi also changes. Among them, Ln and Lo are sent to the control platform by the anchor cell, and the anchor cell periodically updates the values of Ln and Lo.
需要说明的是,本申请中控制平台也可以如上述实施方式中对接收的辅节点组确认信息或辅节点组拒绝信息一个一个处理,也可以对所有辅节点组确认信息或辅节点组拒绝信息同时处理。It should be noted that the control platform in this application can also process the received secondary node group confirmation information or secondary node group rejection information one by one as in the above embodiment, or can also process all secondary node group confirmation information or secondary node group rejection information. processed simultaneously.
示例性的,在对K个候选辅节点组的确认共识能力进行验证之后,如果接收到(K-n)个辅节点组确认信息和n个辅节点组拒绝信息,则将与辅节点组拒绝信息对应的n个候选辅节点组,更新为候选辅节组权重位序位于(K+n)的第(K+n)个候选辅节点组,并将与n个辅节点组拒绝信息对应的n个候选辅节点组从辅节点组列表中删除,并重新更新所有候选辅节组权重的位序。本申请对控制平台处理辅节点组确认信息或辅节点组拒绝信息的顺序和同时处理的个数不做限定。For example, after verifying the confirmation consensus capabilities of K candidate secondary node groups, if (K-n) secondary node group confirmation information and n secondary node group rejection information are received, then the secondary node group rejection information will correspond to The n candidate auxiliary node groups are updated to the (K+n)th candidate auxiliary node group whose weight order of the candidate auxiliary node group is located at (K+n), and n corresponding to the rejection information of the n auxiliary node groups are The candidate auxiliary node group is deleted from the auxiliary node group list, and the order of the weights of all candidate auxiliary node groups is re-updated. This application does not limit the order in which the control platform processes the secondary node group confirmation information or the secondary node group rejection information and the number of simultaneous processes.
可以理解的是,在辅节点组列表中对应的一个或多个候选辅节点组更新后,如需要删除或新增了辅节点组列表中对应的候选辅节点组后,辅节点组请求中包括的辅节点组列表中包括的一个或多个候选辅节点组及对应的锚点小区都会更新,对更新后的锚点小区发送更新后的辅节点组请求,以确定更新后的候选辅节点组的确认共识能力。It can be understood that after one or more candidate secondary node groups corresponding to the secondary node group list are updated, if the corresponding candidate secondary node group in the secondary node group list needs to be deleted or added, the secondary node group request includes One or more candidate secondary node groups and corresponding anchor cells included in the secondary node group list will be updated, and an updated secondary node group request is sent to the updated anchor cell to determine the updated candidate secondary node group. The ability to confirm consensus.
由以上实施例可以看出,本申请实施例提供的数据验证方法中,控制平台先通过辅节点组权重值的位序确定出多个候选辅节点组。其中,多个候选辅节点组均分别一一对应一个锚点小区。各个锚点小区再分别对对应的候选辅节点组的确认共识能力进行确认,从而确定出辅节点组。因此,基于本申请的上述数据验证方法确定出的辅节点组及锚点小区对应的终端辅节点,保证了参与数据验证共识的辅节点组的确认共识能力,也即,保证了辅节点组对应的锚点小区中能包含有足够数量的具有数据验证资格的终端辅节点,从而保证了数据验证过程中的可靠性。It can be seen from the above embodiments that in the data verification method provided by the embodiments of the present application, the control platform first determines multiple candidate auxiliary node groups through the order of the weight values of the auxiliary node groups. Among them, multiple candidate secondary node groups each correspond to an anchor cell one-to-one. Each anchor cell then confirms the consensus capability of the corresponding candidate secondary node group, thereby determining the secondary node group. Therefore, the auxiliary node group and the terminal auxiliary node corresponding to the anchor cell determined based on the above data verification method of this application ensure the consensus confirmation ability of the auxiliary node group participating in the data verification consensus, that is, ensuring that the auxiliary node group corresponds to The anchor cell can contain a sufficient number of terminal secondary nodes qualified for data verification, thereby ensuring the reliability of the data verification process.
图3为本申请根据一实施例示出的一种数据验证方法流程图,如图3所示,该数据验证方法由锚点小区执行,具体可以包括:Figure 3 is a flow chart of a data verification method according to an embodiment of the present application. As shown in Figure 3, the data verification method is executed by the anchor cell, and may specifically include:
S301,从候选辅节点组包括的M个终端辅节点中,确定终端辅节点权重位序靠前的N个终端辅节点。S301: From the M terminal auxiliary nodes included in the candidate auxiliary node group, determine the N terminal auxiliary nodes with the highest weight order of the terminal auxiliary nodes.
S302,向N个终端辅节点发送终端辅节点请求,以根据终端辅节点是否在预设时间内返回的确认结果,确认终端辅节点是具有数据验证资格。其中,终端辅节点请求是锚点小区根据控制平台发送的辅节点组请求生成的,并且终端辅节点请求还包括了预设无线信号质量参数,预设无线信号质量参数用于测试终端辅节点是否具有数据验证能力。具体地,对预设无线信号质量参数用于测试终端辅节点是否具有数据验证能力的说明,详见下述中对步骤S402的具体实施说明。S302: Send terminal auxiliary node requests to N terminal auxiliary nodes to confirm that the terminal auxiliary node is qualified for data verification based on whether the terminal auxiliary node returns a confirmation result within a preset time. Among them, the terminal auxiliary node request is generated by the anchor cell according to the auxiliary node group request sent by the control platform, and the terminal auxiliary node request also includes preset wireless signal quality parameters. The preset wireless signal quality parameters are used to test whether the terminal auxiliary node Have data verification capabilities. Specifically, for a description of how the preset wireless signal quality parameters are used to test whether the terminal secondary node has the data verification capability, please refer to the specific implementation description of step S402 below.
需要说明的是,预设数量为N时,锚点小区在获取候选辅节点组中所有终端辅节点的终端辅节点权重后,先从所有终端辅节点(即M个终端辅节点)中,确定出终端辅节点权重位序靠前的N个终端辅节点。再将终端辅节点请求发送至N个终端辅节点,以使N个终端辅节点分别对各自的终端辅节点的数据验证资格进行确定。It should be noted that when the preset number is N, after obtaining the terminal auxiliary node weights of all terminal auxiliary nodes in the candidate auxiliary node group, the anchor cell first determines from all terminal auxiliary nodes (i.e., M terminal auxiliary nodes). Output the N terminal auxiliary nodes with the highest weight order. The terminal auxiliary node request is then sent to the N terminal auxiliary nodes, so that the N terminal auxiliary nodes determine the data verification qualifications of their respective terminal auxiliary nodes.
其中,预设数量N可以根据需求设定。且在任一实施中,在判定候选辅节点组包括的终端辅节点数M小于N的情况下,向控制平台发送辅节点组拒绝信息。Among them, the preset number N can be set according to needs. And in any implementation, when it is determined that the number M of terminal secondary nodes included in the candidate secondary node group is less than N, secondary node group rejection information is sent to the control platform.
作为一种可能的实现方式,终端辅节点的预设数量N可以理解为每次实际承担辅节点功能的终端辅节点数为N。N根据以下公式获得:As a possible implementation manner, the preset number N of terminal auxiliary nodes can be understood as the number of terminal auxiliary nodes that actually assume the function of the auxiliary node each time is N. N is obtained according to the following formula:
N=向上取整(b/K)+M0, 公式(2)N=round up (b/K)+M0, formula (2)
其中,b为每次参加数据验证共识需要的总辅节点数量,K为每次参加数据验证共识需要的辅节点组数量,M0为所需终端辅节点余量。通该方式获取的预设数量N,可以防止数据验证共识过程中终端辅节点移动到其他锚点小区,无法与锚点小区直接建立连接。Among them, b is the total number of auxiliary nodes required to participate in the data verification consensus each time, K is the number of auxiliary node groups required to participate in the data verification consensus each time, and M0 is the required terminal auxiliary node margin. The preset number N obtained through this method can prevent the terminal secondary node from moving to other anchor cells during the data verification consensus process and being unable to directly establish a connection with the anchor cell.
S303b,如果确认N1个终端辅节点具有数据验证资格,且N1等于N,则确定候选辅节点组具有确认共识能力。S303b. If it is confirmed that N1 terminal auxiliary nodes have data verification qualifications, and N1 is equal to N, it is determined that the candidate auxiliary node group has the ability to confirm consensus.
需要说明的是,若锚点小区在预设时间内接收到了N个终端辅节点返回的确认结果,则说明该候选辅节点组具有确认共识能力,即锚点小区可以向控制平台发送辅节点组确认信息。若锚点小区在预设时间内没有接收到了N个终端辅节点返回的确认结果,则说明该候选辅节点组不具有确认共识能力,即锚点小区可以向控制平台发送辅节点组拒绝信息。It should be noted that if the anchor cell receives the confirmation results returned by N terminal secondary nodes within the preset time, it means that the candidate secondary node group has the ability to confirm consensus, that is, the anchor cell can send the secondary node group to the control platform Confirm the message. If the anchor cell does not receive the confirmation results returned by N terminal secondary nodes within the preset time, it means that the candidate secondary node group does not have the ability to confirm consensus, that is, the anchor cell can send the secondary node group rejection message to the control platform.
S303a,如果确认N1个终端辅节点具有数据验证资格,且N1小于N,判断当前请求次数是否小于预设次数。S303a, if it is confirmed that N1 terminal secondary nodes are qualified for data verification, and N1 is less than N, determine whether the current number of requests is less than the preset number.
其中,请求次数是指同时向多个终端辅节点发送终端辅节点请求的次数。The number of requests refers to the number of times a terminal secondary node request is sent to multiple terminal secondary nodes at the same time.
S304,如果当前请求次数小于预设次数,则从候选辅节点组除N个终端辅节点之外的终端节点中,确定终端辅节点权重位序靠前的(N-N1)个终端辅节点,并向(N-N1)个终端辅节点发送终端辅节点请求。S304. If the current number of requests is less than the preset number, determine the (N-N1) terminal auxiliary nodes with the highest weight order from the terminal nodes in the candidate auxiliary node group except the N terminal auxiliary nodes. and sends terminal secondary node requests to (N-N1) terminal secondary nodes.
S305,根据(N-N1)个终端辅节点中具有数据验证资格的终端辅节点个数,更新N1,直到请求次数等于预设次数,或者N1等于N,或者已向所有终端辅节点发送过终端辅节点请求。S305, update N1 based on the number of terminal auxiliary nodes with data verification qualifications among the (N-N1) terminal auxiliary nodes, until the number of requests is equal to the preset number, or N1 is equal to N, or the terminal has been sent to all terminal auxiliary nodes. Secondary node request.
需要说明的是,当锚点小区在接收在预设时间接收到了终端辅节点返回的确认结果的个数小于预设数量N时,对当前锚点小区向多个终端辅节点发送终端辅节点请求的总次数进行统计,判断其总次数(即当前请求)是否达到了预设次数。如果当前请求次数大于或等于预设次数,则说明该候选辅节点组不具备确认共识能力,即锚点小区可以向控制平台发送辅节点组拒绝信息。It should be noted that when the anchor cell receives a confirmation result returned by the terminal secondary node at the preset time and the number is less than the preset number N, the current anchor cell sends a terminal secondary node request to multiple terminal secondary nodes. Count the total number of requests to determine whether the total number of requests (i.e., the current request) has reached the preset number. If the current number of requests is greater than or equal to the preset number, it means that the candidate secondary node group does not have the ability to confirm consensus, that is, the anchor cell can send the secondary node group rejection message to the control platform.
具体地,如果当前请求次数小于预设次数,且在能从候选辅节点组除N个终端辅节点之外的终端节点中,选取出终端辅节点权重位序靠前的(N-N1)个终端辅节点的情况下,向(N-N1)个终端辅节点发送终端辅节点请求,同时根据(N-N1)个终端辅节点中具有数据验证资格的终端辅节点个数,更新N1和更新请求次数。并将更新后N1与N以及更新后的请求次数与预设次数进行判断。Specifically, if the current number of requests is less than the preset number, and among the terminal nodes that can be excluding N terminal auxiliary nodes from the candidate auxiliary node group, select the (N-N1) terminal auxiliary nodes with the highest weight order In the case of terminal secondary nodes, send terminal secondary node requests to (N-N1) terminal secondary nodes, and update N1 and update based on the number of terminal secondary nodes among the (N-N1) terminal secondary nodes that are qualified for data verification. Number of requests. And judge the updated N1 and N as well as the updated number of requests and the preset number of times.
具体地,如果当前请求次数小于预设次数,且不能从候选辅节点组除N个终端辅节点之外的终端节点中,选取出终端辅节点权重位序靠前的(N-N1)个终端辅节点的情况下,则说明该候选辅节点组不具备确认共识能力,即锚点小区可以向控制平台发送辅节点组拒绝信息。Specifically, if the current number of requests is less than the preset number, and the (N-N1) terminal nodes with the highest terminal auxiliary node weight order cannot be selected from the terminal nodes in the candidate auxiliary node group except N terminal auxiliary nodes, In the case of a secondary node, it means that the candidate secondary node group does not have the ability to confirm consensus, that is, the anchor cell can send the secondary node group rejection message to the control platform.
其中,根据(N-N1)个终端辅节点中具有数据验证资格的终端辅节点个数,更新N1可以理解为,如果(N-N1)个终端辅节点中具有数据验证资格的终端辅节点个数为b个则N1更新为(N1+b)。Among them, according to the number of terminal auxiliary nodes with data verification qualifications among the (N-N1) terminal auxiliary nodes, updating N1 can be understood as, if there are 2 terminal auxiliary nodes with data verification qualifications among the (N-N1) terminal auxiliary nodes. If the number is b, N1 is updated to (N1+b).
示例性的,锚点小区在预设时间Taw1内收到候选辅节点中N个终端辅节点返回的N个确认结果,则向控制平台回复辅节点组确认信息,确认该候选辅节点组的N个终端辅节点在本次数据验证共识中担当终端辅节点功能。For example, if the anchor cell receives N confirmation results returned by N terminal secondary nodes among the candidate secondary nodes within the preset time Taw1, it will reply the secondary node group confirmation information to the control platform to confirm the N of the candidate secondary node group. A terminal auxiliary node serves as a terminal auxiliary node in this data verification consensus.
如果锚点小区在Taw1内仅收到N1个辅节点确认消息(N1<N),则将锚点小区的N个终端辅节点中,回复拒绝结果的终端辅节点和没有任何回复的终端辅节点放弃,即不能担当终端辅节点功能(即便后续过程收到该终端发送的辅节点确认消息,也放弃处理)。可以通过向作放弃处理的终端辅节点发送终端辅节点取消消息。If the anchor cell only receives N1 secondary node confirmation messages in Taw1 (N1<N), then among the N terminal secondary nodes of the anchor cell, the terminal secondary node that replies with a rejection result and the terminal secondary node that does not have any reply will be Give up, that is, it cannot serve as the terminal's secondary node function (even if the subsequent process receives the secondary node confirmation message sent by the terminal, the process will be given up). This can be done by sending a terminal secondary node cancellation message to the terminal secondary node that is doing the abandonment process.
同时,锚点小区根据终端辅节点权重Wui,选取出终端辅节点权重位序靠前的(N-N1)个终端辅节点,并向(N-N1)个终端辅节点发送终端辅节点请求,且计数器Ci1加1,等待Taw1收集(N-N1)个终端辅节点的回复消息,如果未收集到(N-N1)个辅节点确认信息,即接收到的辅节点确认信息的总数没有到达N,则重复上述向(N-N1)个终端辅节点发送终端辅节点请求的步骤及该步骤以后的判定步骤,继续根据终端辅节点权重Wui寻找替代终端辅节点,且计数器轮数Ci1加1,直至找到N个辅节点,并向控制平台回复辅节点组确认消息。其中,Ci1为锚点小区的终端辅节点寻找计数器的轮数,初始值为0,Ci1可以理解为用于记录锚点小区寻找终端辅节点的轮数。At the same time, the anchor cell selects the (N-N1) terminal auxiliary nodes with the highest weight order of the terminal auxiliary nodes according to the weight Wui of the terminal auxiliary node, and sends terminal auxiliary node requests to the (N-N1) terminal auxiliary nodes. And the counter Ci1 increases by 1, waiting for Taw1 to collect reply messages from (N-N1) terminal secondary nodes. If (N-N1) secondary node confirmation information is not collected, that is, the total number of secondary node confirmation messages received does not reach N. , then repeat the above steps of sending terminal auxiliary node requests to (N-N1) terminal auxiliary nodes and the determination steps after this step, continue to find alternative terminal auxiliary nodes according to the terminal auxiliary node weight Wui, and the counter round number Ci1 is increased by 1, Until N secondary nodes are found, a secondary node group confirmation message is returned to the control platform. Among them, Ci1 is the number of rounds of the anchor cell's terminal auxiliary node search counter, and the initial value is 0. Ci1 can be understood as the number of rounds used to record the anchor cell's search for the terminal auxiliary node.
进一步地,如果Ci1值达到预设次数,仍未找到N个辅节点终端,或锚点小区已经向该候选辅节点组的所有终端辅节点下发了终端辅节点请求,但没有收到N个辅节点确认信息,或者该候选辅节点组下的辅节点组列表中的终端辅节点数小于N,则候选辅节点组对应的锚点小区向控制平台发送辅节点组拒绝信息。Further, if the Ci1 value reaches the preset number of times, N secondary node terminals have not been found, or the anchor cell has sent terminal secondary node requests to all terminal secondary nodes in the candidate secondary node group, but has not received N secondary node terminals. The secondary node confirmation information, or the number of terminal secondary nodes in the secondary node group list under the candidate secondary node group is less than N, then the anchor cell corresponding to the candidate secondary node group sends secondary node group rejection information to the control platform.
进一步地,控制平台收到辅节点锚点小区发送的辅节点组拒绝消息,则控制平台向该候选辅节点组发送辅节点组拒绝信息,并根据辅节点组权重值Wgi重新选取候选辅节点组,并发送辅节点组请求消息给更新后的候选辅节点组。Further, when the control platform receives the secondary node group rejection message sent by the secondary node anchor cell, the control platform sends the secondary node group rejection message to the candidate secondary node group, and reselects the candidate secondary node group according to the secondary node group weight value Wgi. , and sends a secondary node group request message to the updated candidate secondary node group.
进一步地,控制平台接收所有候选辅节点组发送的辅节点组确认信息,且将辅节点组确认信息对应的所有候选辅节点组作为全部的辅节点组,完成辅节点组和终端辅节点辅的选取。Further, the control platform receives the secondary node group confirmation information sent by all candidate secondary node groups, and uses all candidate secondary node groups corresponding to the secondary node group confirmation information as all secondary node groups to complete the secondary node group and terminal secondary node assistance. Select.
进一步地,控制平台将确定的辅节点组发送给辅节点组列表中的所有辅节点组对应的锚点小区。辅节点组列表包含本次参与数据验证共识工作的所有辅节点组的辅节点组标识和锚点小区标识。Further, the control platform sends the determined secondary node group to the anchor cells corresponding to all secondary node groups in the secondary node group list. The list of secondary node groups includes the secondary node group IDs and anchor cell IDs of all secondary node groups participating in the data verification consensus work this time.
图4为本申请根据一示例性实施例示出的一种数据验证方法流程图,其具体为锚点小区和终端辅节点的交互过程示意图,如图4所示,该数据验证方法可以包括:Figure 4 is a flow chart of a data verification method shown in this application according to an exemplary embodiment, which is specifically a schematic diagram of the interaction process between the anchor cell and the terminal secondary node. As shown in Figure 4, the data verification method may include:
S401,锚点小区向N个终端辅节点发送终端辅节点请求。S401: The anchor cell sends terminal secondary node requests to N secondary terminal nodes.
S402,终端辅节点确定终端辅节点是否具有数据验证资格。S402: The terminal auxiliary node determines whether the terminal auxiliary node has data verification qualifications.
S403,终端辅节点向锚点小区发送对终端辅节点具有数据验证资格确定的确认结果。S403: The terminal secondary node sends a confirmation result confirming that the terminal secondary node has data verification qualifications to the anchor cell.
S404,锚点小区根据终端辅节点是否在预设时间内返回的确认结果,确认终端辅节点是否具有数据验证资格。S404: The anchor cell confirms whether the terminal auxiliary node is qualified for data verification based on the confirmation result returned by the terminal auxiliary node within a preset time.
其中,终端辅节点请求包括预设无线信号质量参数,预设无线信号质量参数用于测试终端辅节点是否具有数据验证能力。Wherein, the terminal auxiliary node request includes preset wireless signal quality parameters, and the preset wireless signal quality parameters are used to test whether the terminal auxiliary node has data verification capabilities.
由以上实施例可以看出,本申请实施例中步骤S302至步骤S304中数据验证方法中的锚点小区和终端辅节点的具体交互过程。结合图3和图4,本申请的实施例通过锚点小区和终端辅节点之间通过终端辅节点请求和确认结果进行交互的方式,来判断候选辅节点组中是否具有数据验证资格的N个终端辅节点,来确定候选辅节点组是否具备确认共识能力。It can be seen from the above embodiments that the specific interaction process between the anchor cell and the terminal auxiliary node in the data verification method from step S302 to step S304 in the embodiment of the present application. With reference to Figure 3 and Figure 4, the embodiment of the present application determines whether N candidates in the candidate secondary node group have data verification qualifications by interacting between the anchor cell and the terminal secondary node through the terminal secondary node request and confirmation results. Terminal auxiliary node to determine whether the candidate auxiliary node group has the ability to confirm consensus.
具体地,锚点小区对终端辅节点发送的确认结果发送进行汇总,并对汇总的确认结果数量进行判定。锚点小区在每次判定确认结果数量小于预设数量N时,则重新根据剩余的终端辅节点的辅节点权重,确定再次发送终端辅节点请求的终端辅节点和终端辅节点的个数。如果确认结果数量没有达到N,则一直进进行上述判定确认结果数量、请求次数和发送终端辅节点请求的过程,直到请求次数等于预设次数,或者汇总的确认结果数量等于N,或者已向所有终端辅节点发送过终端辅节点请求。Specifically, the anchor cell summarizes the confirmation results sent by the terminal secondary node, and determines the number of summarized confirmation results. Each time the anchor cell determines that the number of confirmation results is less than the preset number N, it re-determines the number of terminal auxiliary nodes and the number of terminal auxiliary nodes to which the terminal auxiliary node request is sent again based on the auxiliary node weights of the remaining terminal auxiliary nodes. If the number of confirmation results does not reach N, the above-mentioned process of determining the number of confirmation results, the number of requests, and sending requests to the terminal secondary node will continue until the number of requests equals the preset number, or the number of aggregated confirmation results equals N, or all requests have been sent to all The terminal secondary node has sent a terminal secondary node request.
作为一种可能的实现方式,上述步骤S402,可以通过以下方式实现。预设无线信号质量参数设置为预设信号接收功率和预设信号与干扰加噪声比值,其中,预设信号与干扰加噪声比值是指预先存储的接收到的有用信号的强度与接收到的干扰信号(噪声和干扰)的强度的比值。在任意一个终端辅节点判定任意一个终端辅节点对应的参考信号接收功率大于等于预设信号接收功率,且任意一个终端辅节点对应的信号与干扰加噪声比值大于等于预设信号与干扰加噪声比值的情况下,终端辅节点向锚点小区发送确认结果。在任意一个终端辅节点判定任意一个终端辅节点对应的参考信号接收功率小于预设信号接收功率,或任意一个终端辅节点对应的信号与干扰加噪声比值小于预设信号与干扰加噪声比值的情况下,终端辅节点不向锚点小区发送拒绝消息。As a possible implementation manner, the above step S402 can be implemented in the following manner. The preset wireless signal quality parameters are set to the preset signal receiving power and the preset signal to interference plus noise ratio, where the preset signal to interference plus noise ratio refers to the prestored strength of the received useful signal and the received interference The ratio of signal (noise and interference) strengths. At any terminal auxiliary node, it is determined that the reference signal receiving power corresponding to any 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 terminal auxiliary node is greater than or equal to the preset signal to interference plus noise ratio. In the case of , the terminal secondary node sends the confirmation result to the anchor cell. When any terminal auxiliary node determines that the reference signal received power corresponding to any terminal auxiliary node is less than the preset signal reception power, or the ratio of the signal to interference plus noise corresponding to any terminal auxiliary node is less than the preset signal to interference plus noise ratio Under this condition, the terminal secondary node does not send a reject message to the anchor cell.
需要说明的是,上述终端辅节点不向锚点小区发送拒绝消息,可以理解为,既不向锚点小区发送确认结果也不向锚点小区发送拒绝结果。It should be noted that the above terminal secondary node does not send a rejection message to the anchor cell, which can be understood as sending neither a confirmation result nor a rejection result to the anchor cell.
图5为本申请根据一示例性实施例示出的一种数据验证方法流程图,其具体为控制平台、锚点小区、终端辅节点和主节点的交互过程示意图,如图5所示,该数据验证方法可以包括:Figure 5 is a flow chart of a data verification method shown in this application according to an exemplary embodiment, which is specifically a schematic diagram of the interaction process of the control platform, anchor cell, terminal auxiliary node and master node. As shown in Figure 5, the data Verification methods can include:
S501,控制平台将数据验证请求发送至锚点小区和主节点。S501. The control platform sends a data verification request to the anchor cell and the master node.
其中,数据验证请求可以是控制平台根据待验证数据生成的数据验证请求。其待验证数据可以是控制平台将一定时间周期内的测量报告汇总后形成的网络质量数据。The data verification request may be a data verification request generated by the control platform based on the data to be verified. The data to be verified may be network quality data formed by the control platform summarizing measurement reports within a certain period of time.
示例性的,可以根据网络质量数据及记录的与网络质量数据相关的时间戳数据形成数据验证请求。For example, a data verification request may be formed based on the network quality data and the recorded timestamp data related to the network quality data.
S502,主节点接收控制平台发送的数据验证请求,对待验证数据进行验证,以生成第三验证结果。S502: The master node receives the data verification request sent by the control platform, and verifies the data to be verified to generate a third verification result.
S503,主节点根据第三验证结果生成第三验证确认请求。S503. The master node generates a third verification confirmation request based on the third verification result.
需要说明的是,控制平台将数据验证请求发送的了所有的主节点,以使所有的主节点对待验证数据进行验证。其中,数据验证请求包括待验证数据。It should be noted that the control platform sends data verification requests to all master nodes so that all master nodes can verify the data to be verified. Among them, the data verification request includes data to be verified.
作为一种可能的方式,步骤S502和步骤S503可以通过以下具体方式实施。主节点对数据验证请求中的信息进行数据验证和区块打包,并将区块打包和验证后的区块数据、区块摘要、时间戳、区块序号和区块信息生成第三验证确认请求。As a possible way, steps S502 and S503 can be implemented in the following specific ways. The master node performs data verification and block packaging on the information in the data verification request, and generates a third verification confirmation request with the block data, block summary, timestamp, block serial number and block information after block packaging and verification. .
在一些实施例中,在第三验证确认请求发送之前对该第三验证确认请求进行加密处理。In some embodiments, the third verification confirmation request is encrypted before being sent.
S504,第一锚点小区接收控制平台发送的数据验证请求。S504. The first anchor cell receives the data verification request sent by the control platform.
其中,第一锚点小区为任意一个辅节点组对应的锚点小区。Among them, the first anchor cell is the anchor cell corresponding to any secondary node group.
S505,第一锚点小区将数据验证请求发送给第一锚点小区对应的终端辅节点。S505: The first anchor cell sends the data verification request to the terminal secondary node corresponding to the first anchor cell.
可以理解的是,控制平台不是直接将数据验证请求发送至终端辅节点,而是通过第一锚点小区转发至第一锚点小区对应的终端辅节点,从而减少了控制平台发送待验证数据的次数。It can be understood that the control platform does not directly send the data verification request to the terminal auxiliary node, but forwards it to the terminal auxiliary node corresponding to the first anchor cell through the first anchor cell, thereby reducing the time for the control platform to send data to be verified. frequency.
S506,终端辅节点接收第一锚点小区发送的数据验证请求。S506: The terminal secondary node receives the data verification request sent by the first anchor cell.
S507,终端辅节点对数据验证请求中的待验证数据进行验证,生成第一验证结果。S507: The terminal auxiliary node verifies the data to be verified in the data verification request and generates the first verification result.
S508,终端辅节点将第一验证结果发送至第一锚点小区。S508: The terminal secondary node sends the first verification result to the first anchor cell.
S509,第一锚点小区接收第一锚点小区对应的终端辅节点返回的第一验证结果,以确定第一验证确认请求。S509: The first anchor cell receives the first verification result returned by the terminal secondary node corresponding to the first anchor cell to determine the first verification confirmation request.
可以理解的是,各个锚点小区将各自对应的所有终端辅节点返回的验证结果进行汇总后得到第一验证确认请求。示例性的,一个第一锚点小区包括N个终端辅节点时,N个终端辅节点分别对待验证数据进行验证后,N个终端辅节点再将各自的验证结果发送至对应的第一锚点小区,第一锚点小区对这N个终端辅节点返回的N个验证结果进行汇总后得到了第一验证确认请求。第一验证确认请求中包含第一验证结果。It can be understood that each anchor cell obtains the first verification confirmation request after summarizing the verification results returned by all corresponding terminal secondary nodes. For example, when a first anchor cell includes N terminal auxiliary nodes, after the N terminal auxiliary nodes verify the to-be-verified data, the N terminal auxiliary nodes then send their respective verification results to the corresponding first anchor point. Cell, the first anchor cell obtains the first verification confirmation request after summarizing the N verification results returned by the N terminal secondary nodes. The first verification confirmation request includes the first verification result.
在一些实施例中,第一验证结果包括终端辅节点对数据区块打包和验证后形成的区块数据、区块摘要、时间戳、区块序号和区块信息。In some embodiments, the first verification result includes block data, block digest, timestamp, block sequence number and block information formed after the terminal auxiliary node packages and verifies the data block.
可选的,第一验证结果可以包括对第一验证结果的加密信息。Optionally, the first verification result may include encrypted information for the first verification result.
S510,第一锚点小区将第一验证确认请求发送给第一锚点小区对应的终端辅节点。S510: The first anchor cell sends the first verification confirmation request to the terminal secondary node corresponding to the first anchor cell.
S511,第一锚点小区将第一验证确认请求发送给主节点。S511. The first anchor cell sends the first verification confirmation request to the master node.
S512,主节点对第一验证确认请求中的第一验证结果确认共识。S512. The master node confirms the consensus on the first verification result in the first verification confirmation request.
S513,终端辅节点对第一验证确认请求中的第一验证结果确认共识。S513. The terminal secondary node confirms consensus on the first verification result in the first verification confirmation request.
可以理解的是,第一锚点小区根据汇总第一锚点小区对应的所有的终端辅节点的验证结果,得到第一验证确认请求。并将第一验证确认请求发送至主节点和终端辅节点,以完成主节点和终端辅节点对第一验证结果的确认共识。It can be understood that the first anchor cell obtains the first verification confirmation request based on aggregating the verification results of all terminal secondary nodes corresponding to the first anchor cell. And the first verification confirmation request is sent to the master node and the terminal slave node to complete the confirmation consensus of the first verification result between the master node and the terminal slave node.
需要说明的是,各个锚点小区对应的终端辅节点之间的数据传输也是通过锚点小区进行转发。详细地,第一锚点小区将第一验证确认请求发送给第二锚点小区、所有主节点和第一锚点小区对应的终端辅节点,以使所有终端辅节点和所有主节点对第一验证结果确认共识,其中,第一锚点小区为任意一个辅节点组对应的锚点小区,第二锚点小区为除第一锚点小区以外的任意锚点小区。第一锚点小区接收第二锚点小区发送的第二验证确认请求,第二验证确认请求包含第二锚点小区对应的终端辅节点对待验证数据的第二验证结果;第一锚点小区将第二验证确认请求发送给第一锚点小区对应的终端辅节点,以使第一锚点小区对应的终端辅节点对第二验证结果确认共识。It should be noted that data transmission between terminal secondary nodes corresponding to each anchor cell is also forwarded through the anchor cell. In detail, the first anchor cell sends the first verification confirmation request to the second anchor cell, all primary nodes and the terminal secondary nodes corresponding to the first anchor cell, so that all terminal secondary nodes and all primary nodes respond to the first The verification result confirms the consensus, in which the first anchor cell is the anchor cell corresponding to any secondary node group, and the second anchor cell is any anchor cell except the first anchor cell. The first anchor cell receives the second verification confirmation request sent by the second anchor cell, and the second verification confirmation request contains the second verification result of the to-be-verified data of the terminal secondary node corresponding to the second anchor cell; the first anchor cell will The second verification confirmation request is sent to the terminal auxiliary node corresponding to the first anchor cell, so that the terminal auxiliary node corresponding to the first anchor cell confirms consensus on the second verification result.
S514,主节点将第三验证确认请求发送至第一锚点小区。S514. The master node sends the third verification confirmation request to the first anchor cell.
需要说明的是,主节点还将第三验证确认请求发送至第二锚点小区,以使第二锚点小区对应的终端辅节点对第三验证确认请求中的第三验证结果确认共识。换而言之,主节点将第三验证确认请求发送至所有锚点小区,所有锚点小区即为第一锚点小区与第二锚点小区组成。It should be noted that the master node also sends the third verification confirmation request to the second anchor cell, so that the terminal secondary node corresponding to the second anchor cell confirms consensus on 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 cells, and all anchor cells are composed of the first anchor cell and the second anchor cell.
S515,第一锚点小区接收主节点发送的第三验证确认请求。S515. The first anchor cell receives the third verification confirmation request sent by the master node.
S516,第一锚点小区将第三验证确认请求发送给第一锚点小区对应的终端辅节点。S516: The first anchor cell sends the third verification confirmation request to the terminal secondary node corresponding to the first anchor cell.
S517,终端辅节点对第三验证确认请求中的第三验证结果确认共识。S517: The terminal secondary 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 data transmissions by the master node by sending the third verification confirmation request to the anchor cell.
其中,当主节点为多个时,主节点将主节点的第三验证确认请求转发至其他主节点,以使其他主节点对对第三验证确认请求中的第三验证结果确认共识。Wherein, when there are multiple master nodes, the master node forwards the third verification confirmation request of the master node to other master nodes, so that the other master nodes confirm the consensus on the third verification result in the third verification confirmation request.
示例性的,如图6和图7所示。图6为相关技术中的节点之间的数据链路示意图。图7为本申请实施例的各节点之间的数据链路示意图。以图6和图7中均有2个主节点和6个终端辅节点为例。其中,图6中的主节点为Z1’和Z2’,终端辅节点为F1’、F2’、F3’、F4’、F5’和F6’。图7中主节点为Z1和Z2,终端辅节点为F1、F2、F3、F4、F5和F6,锚点小区M1和M2。在数据验证共识过程中,相关技术的中对主节点Z1’的验证结果进行确认共识时,需要向每个辅节点和每个主节点发送验证确认请求,即得发送7次,且同理,其数据验证共识过程中每个节点Z1’、Z2’、F1’、F2’、F3’、F4’、F5’和F6’发送验证结果确认请求均为7次,才能完成其余所有节点对该节点的验证结果的确认共识过程。而本申请的实施例中主节点为Z1和Z2均只用发送3次验证确认请求即可完成其余节点对该主节点的验证结果的确认共识。且本申请的实施例中辅节点F1、F2、F3、F4、F5和F6均只用发送一次验证确认请求即可完成其他所有节点(除该节点以外的所有节点)对该节点的验证结果的确认共识。由此可以看出,本申请提供的数据验证方法能减少数据验证共识过程中各个辅节点和主节点之间的接收和发送数据的通信次数,降低了数据验证共识过程复杂度,从而减少了终端耗电量和数据共识过程的时延。For example, as shown in Figure 6 and Figure 7. Figure 6 is a schematic diagram of data links between nodes in the related art. Figure 7 is a schematic diagram of data links between nodes in this embodiment of the present application. Take Figure 6 and Figure 7, both of which have 2 primary nodes and 6 terminal secondary nodes, as an example. Among them, the main nodes in Figure 6 are Z1’ and Z2’, and the terminal auxiliary nodes are F1’, F2’, F3’, F4’, F5’ and F6’. In Figure 7, the main nodes are Z1 and Z2, the terminal auxiliary nodes are F1, F2, F3, F4, F5 and F6, and the anchor cells M1 and M2. In the data verification consensus process, when confirming the consensus on the verification result of the master node Z1' in the related technology, a verification confirmation request needs to be sent to each secondary node and each master node, that is, it has to be sent 7 times, and similarly, During the data verification consensus process, each node Z1', Z2', F1', F2', F3', F4', F5' and F6' sends verification result confirmation requests 7 times before all other nodes can complete the verification of the node. Confirmation consensus process of verification results. In the embodiment of this application, the master nodes are Z1 and Z2, and they only need to send three verification confirmation requests to complete the confirmation consensus of the verification results of the master node by the other nodes. And in the embodiment of this application, the auxiliary nodes F1, F2, F3, F4, F5 and F6 only need to send a verification confirmation request to complete the verification results of the node by all other nodes (all nodes except this node). Confirm consensus. It can be seen from this that the data verification method provided by this application can reduce the number of communications between each auxiliary node and the master node in the data verification consensus process to receive and send data, reduce the complexity of the data verification consensus process, thereby reducing the terminal Power consumption and latency of the data consensus process.
需要说明的是,在该实施例中,锚点小区和锚点小区对应的终端辅节点可以通过提供的上述数据验证方法中的步骤S201至步骤S208和/或步骤S301至步骤S305和/或步骤S401至步骤S404得到。以进一步保证参与数据验证的锚点小区具有确认共识能力,以及锚点小区对应的终端辅节点具有数据验证能力。It should be noted that, in this embodiment, the anchor cell and the terminal secondary node corresponding to the anchor cell can pass steps S201 to step S208 and/or steps S301 to step S305 and/or steps in the above data verification method provided. Obtained from S401 to step S404. This is to further ensure that the anchor cell participating in data verification has the ability to confirm consensus, and that the terminal auxiliary node corresponding to the anchor cell has the ability to verify data.
在一些实施例中,主节点由运营商共同搭建,负责区块生成及区块存储的设备,终端辅节点选取网络中具有终端承担能力终端,即基于终端能力、终端意愿、终端电量和历史参与情况等因素综合选取。其选取的终端辅节点参与数据验证过程中的数据区块生成验证。通过主节点和终端辅节点配合,共同实现共建共享网络质量信息可信存储。In some embodiments, the main node is jointly built by operators and is responsible for block generation and block storage. The terminal auxiliary node selects terminals with terminal affordability in the network, that is, based on terminal capabilities, terminal willingness, terminal power and historical participation. Comprehensive selection based on circumstances and other factors. The selected terminal auxiliary node participates in the data block generation verification in the data verification process. Through the cooperation of the main node and the terminal auxiliary node, trusted storage of co-constructed and shared network quality information is realized.
需要说明的是,在以上实施例中,所有主节点和终端辅节点产生对验证确认请求中的验证结果确认共识后,生成相对应的确认共识结果后直接发送至控制平台。其中,每个节点对应的确认共识结果记为Cji,节点为任意一个主节点和任意一个终端辅节点,验证确认请求包括第一锚点小区根据第一验证结果生成的第一验证确认请求、第二锚点小区根据第二验证结果生成的第二验证确认请求、主节点根据第三验证结果生成的第三验证确认请求,第二锚点小区为除第一锚点小区以外的任意锚点小区。It should be noted that in the above embodiments, after all master nodes and terminal auxiliary nodes generate a consensus on the verification results in the verification confirmation request, they generate corresponding confirmation consensus results and send them directly to the control platform. Among them, the confirmation consensus result corresponding to each node is recorded as Cji, and the node is any master node and any terminal auxiliary node. The verification confirmation request includes the first verification confirmation request generated by the first anchor cell based on the first verification result, The second anchor cell generates a second verification confirmation request based on the second verification result, and the master node generates a third verification confirmation request based on the third verification result. The second anchor cell is any anchor cell except the first anchor cell. .
在一些实施例中,在执行完步骤S510至S517之后,控制平台根据接收到的所有终端辅节点和所有主节点发送的确认共识结果,确定出目标共识结果。In some embodiments, after executing steps S510 to S517, the control platform determines the target consensus result based on the received confirmation consensus results sent by all terminal secondary nodes and all master nodes.
示例性的,控制平台在接收到所有主节点和终端辅节点发送到的确认共识结果后,对每个节点对其他节点的验证结果的验证产生确认共识结果集合{Cij}(其中,Cji为节点j对节点i的确认共识结果,且j≠i)。控制平台基于每个节点发送的验证集合{Cij},确定各主节点中的其他节点对该主节点的确认共识结果之和最大的主节点,并将该最大的主节点对应的验证结果为作为目标共识结果,且控制平台将该目标共识结果广播给所有主节点,以使所有主节点对该目标共识结果进行存储。在一些实施例中,目标共识结果通常作为最佳区块数据。For example, after receiving the confirmed consensus results sent by all master nodes and terminal auxiliary nodes, the control platform verifies the verification results of other nodes by each node to generate a confirmed consensus result set {Cij} (where Cji is the node The confirmed consensus result of j on node i, and j≠i). Based on the verification set {Cij} sent by each node, the control platform determines the master node with the largest sum of confirmation consensus results for the master node from other nodes in each master node, and sets the verification result corresponding to the largest master node as The target consensus result, and the control platform broadcasts the target consensus result to all master nodes, so that all master nodes store the target consensus result. In some embodiments, the target consensus result is typically used as the best block data.
通过以上实施例,控制平台在根据待验证数据生成数据验证请求后,将生成的数据验证请求发送给所有锚点小区和所有主节点。所有锚点小区再将接收到数据验证请求,转发给各自锚点小区对应的所有终端辅节点。从而完成了所有终端辅节点和所有主节点都对待验证数据的验证。在验证完成后,一方面,主节点将各自对待验证数据验证产生的验证结果发送至其他主节点和所有锚点小区,以完成所有主节点和所有终端辅节点对所有主节点的验证结果的确认共识。同时所有终端辅节点将各自对待验证数据验证产生的验证结果发送至各自对应的锚点小区。另一方面,各个锚点小区对接收到的锚点小区对应的所有终端辅节点发送的所有验证结果进行汇总,从而确定出各个锚点小区对应的验证确定请求。所有锚点小区再将各自对应的验证确认请求发送至其他锚点小区、所有主节点和与锚点小区对应的所有终端辅节点,以完成所有主节点和所有终端辅节点对所有终端辅节点的验证结果的确认共识。Through the above embodiment, after the control platform generates a data verification request based on the data to be verified, it sends the generated data verification request to all anchor cells and all master nodes. All anchor cells will then receive the data verification request and forward it to all terminal secondary nodes corresponding to the respective anchor cells. This completes the verification that all terminal secondary nodes and all primary nodes have data to be verified. After the verification is completed, on the one hand, the master node will send the verification results generated by the verification of the data to be verified to other master nodes and all anchor cells to complete the confirmation of the verification results of all master nodes by all master nodes and all terminal secondary nodes. consensus. At the same time, all terminal auxiliary nodes send the verification results generated by their own data verification to be verified to their corresponding anchor cells. On the other hand, each anchor cell summarizes all verification results sent by all terminal secondary nodes corresponding to the received anchor cell, thereby determining the verification determination request corresponding to each anchor cell. All anchor cells then send their corresponding verification confirmation requests to other anchor cells, all primary nodes, and all terminal secondary nodes corresponding to the anchor cells to complete the verification of all primary nodes and all terminal secondary nodes on all terminal secondary nodes. Confirm consensus of verification results.
本申请的实施例还提供了一种基于共识机制的数据验证装置,应用于通信系统10中的第一锚点小区,通信系统10还包括控制平台、多个主节点和多个终端辅节点,多个终端辅节点被预先划分成多个辅节点组,每个辅节点组中的终端辅节点对应同一个锚点小区,第一锚点小区为任意一个辅节点组对应的锚点小区,数据验证装置包括:第一接收单元81,用于接收控制平台发送的数据验证请求,数据验证请求包括待验证数据;第一发送单元82,用于将数据验证请求发送给第一锚点小区对应的终端辅节点,以使第一锚点小区对应的终端辅节点对待验证数据进行验证;确定单元83,汇总第一锚点小区对应的终端辅节点返回的对待验证数据的第一验证结果,以确定第一验证确认请求;第一发送单元82还用于,将第一验证确认请求发送给第二锚点小区、所有主节点和第一锚点小区对应的终端辅节点,以使所有终端辅节点和所有主节点对第一验证结果确认共识,第二锚点小区为除第一锚点小区以外的任意锚点小区。Embodiments of the present application also provide a data verification device based on a consensus mechanism, applied to the first anchor cell in the communication system 10. The communication system 10 also includes a control platform, multiple master nodes and multiple terminal auxiliary nodes, Multiple terminal secondary nodes are pre-divided into multiple secondary node groups. The terminal secondary nodes in each secondary node group correspond to the same anchor cell. The first anchor cell is the anchor cell corresponding to any secondary node group. Data The verification device includes: a first receiving unit 81, used 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, used to send the data verification request to the corresponding cell of the first anchor cell. The terminal auxiliary node, so that the terminal auxiliary node corresponding to the first anchor cell verifies the data to be verified; the determination unit 83 summarizes the first verification results of the data to be verified returned by the terminal auxiliary node corresponding to the first anchor cell to determine The first verification confirmation request; the first sending unit 82 is also configured to send the first verification confirmation request to the second anchor cell, all primary nodes and the terminal auxiliary nodes corresponding to the first anchor cell, so that all terminal auxiliary nodes Confirm consensus with all master nodes on the first verification result, and the second anchor cell is any anchor cell except the first anchor cell.
可选的,第一接收单元81还用于:接收第二锚点小区发送的第二验证确认请求,第二验证确认请求包含第二锚点小区对应的终端辅节点对待验证数据的第二验证结果;第一发送单元82用于,将第二验证确认请求发送给第一锚点小区对应的终端辅节点,以使第一锚点小区对应的终端辅节点对第二验证结果确认共识。Optionally, the first receiving unit 81 is also configured to: receive a second verification confirmation request sent by the second anchor cell, where the second verification confirmation request includes the second verification of the to-be-verified data of the terminal secondary node corresponding to the second anchor cell. Result: The first sending unit 82 is configured to send the second verification confirmation request to the terminal auxiliary node corresponding to the first anchor cell, so that the terminal auxiliary node corresponding to the first anchor cell confirms consensus on the second verification result.
可选的,第一接收单元81还用于:接收主节点发送的第三验证确认请求,第三验证确认请求包含主节点对待验证数据的第三验证结果;第一发送单元82,用于将第三验证确认请求发送给第一锚点小区对应的终端辅节点,以使第一锚点小区对应的终端辅节点对第三验证结果确认共识。Optionally, the first receiving unit 81 is also configured to: receive a third verification confirmation request sent by the master node, where the third verification confirmation request contains the third verification result of the data to be verified by the master node; the first sending unit 82 is configured to send The third verification confirmation request is sent to the terminal auxiliary node corresponding to the first anchor cell, so that the terminal auxiliary node corresponding to the first anchor cell confirms consensus on the third verification result.
可选的,在接收控制平台发送的数据验证请求之前,第一接收单元81还用于:接收控制平台发送的辅节点组请求,辅节点组请求中包括第一锚点小区对应的候选辅节点组;确定单元83还用于,响应于辅节点组请求,通过确认候选辅节点组中具有数据验证资格的终端辅节点的数量是否满足预设数量,确定候选辅节点组是否具有确认共识能力;如果确认候选辅节点组中具有数据验证资格的终端辅节点的数量满足预设数量,则向控制平台发送辅节点组确认信息,辅节点组确认信息用于表征候选辅节点组具备确认共识能力;如果确认候选辅节点组中具有数据验证资格的终端辅节点的数量不满足预设数量,则向控制平台发送辅节点组拒绝信息,辅节点组拒绝信息用于表征辅节点组不具备确认共识能力。Optionally, before receiving the data verification request sent by the control platform, the first receiving unit 81 is also configured to: receive a secondary node group request sent by the control platform, where the secondary node group request includes the candidate secondary node corresponding to the first anchor cell. group; the determination unit 83 is also configured to, in response to the request of the auxiliary node group, determine whether the candidate auxiliary node group has the ability to confirm consensus by confirming whether the number of terminal auxiliary nodes with data verification qualifications in the candidate auxiliary node group meets the preset number; If it is confirmed that the number of terminal auxiliary nodes with data verification qualifications in the candidate auxiliary node group meets the preset number, the auxiliary node group confirmation information is sent to the control platform. The auxiliary node group confirmation information is used to indicate that the candidate auxiliary node group has the ability to confirm consensus; If it is confirmed that the number of terminal secondary nodes with data verification qualifications in the candidate secondary node group does not meet the preset number, secondary node group rejection information is sent to the control platform. The secondary node group rejection information is used to indicate that the secondary node group does not have the ability to confirm consensus. .
可选的,通过确认候选辅节点组中具有数据验证资格的终端辅节点的数量是否满足预设数量,确定候选辅节点组是否具有确认共识能力的步骤具体包括:从候选辅节点组包括的M个终端辅节点中,确定终端辅节点权重位序靠前的N个终端辅节点;向N个终端辅节点发送终端辅节点请求,以根据终端辅节点是否在预设时间内返回确认结果,确认终端辅节点是否具有数据验证资格;如果确认N1个终端辅节点具有数据验证资格,且N1等于N,则确定候选辅节点组具有确认共识能力。Optionally, by confirming whether the number of terminal auxiliary nodes with data verification qualifications in the candidate auxiliary node group meets the preset number, the step of determining whether the candidate auxiliary node group has the ability to confirm consensus specifically includes: starting from the M included in the candidate auxiliary node group. Among the terminal auxiliary nodes, determine the N terminal auxiliary nodes with the highest terminal auxiliary node weight order; send terminal auxiliary node requests to the N terminal auxiliary nodes to confirm whether the terminal auxiliary node returns the confirmation result within the preset time. Whether the terminal auxiliary node is qualified for data verification; if it is confirmed that N1 terminal auxiliary nodes are qualified for data verification, and N1 is equal to N, it is determined that the candidate auxiliary node group has the ability to confirm consensus.
可选的,确定单元83还用于:如果确认N1个终端辅节点具有数据验证资格,且N1小于N,判定当前请求次数是否小于预设次数,请求次数是指同时向多个终端辅节点发送终端辅节点请求的次数;如果当前请求次数小于预设次数,则从候选辅节点组除N个终端辅节点之外的终端辅节点中,确定终端辅节点权重位序靠前的(N-N1)个终端辅节点,并向(N-N1)个终端辅节点发送终端辅节点请求;以及根据(N-N1)个终端辅节点中具有数据验证资格的终端辅节点个数,更新N1,直到请求次数等于预设次数,或者N1等于N,或者已向所有终端辅节点发送过终端辅节点请求。Optionally, the determination unit 83 is also used to: if it is confirmed that N1 terminal auxiliary nodes have data verification qualifications, and N1 is less than N, determine whether the current number of requests is less than the preset number. The number of requests refers to sending to multiple terminal auxiliary nodes at the same time. The number of requests from the terminal auxiliary node; if the current number of requests is less than the preset number, then from the terminal auxiliary nodes in the candidate auxiliary node group except N terminal auxiliary nodes, determine the terminal auxiliary node with the highest weight order (N-N1 ) terminal auxiliary nodes, and sends terminal auxiliary node requests to (N-N1) terminal auxiliary nodes; and updates N1 according to the number of terminal auxiliary nodes that are qualified for data verification among the (N-N1) terminal auxiliary nodes, until The number of requests is equal to the preset number, or N1 is equal to N, or terminal secondary node requests have been sent to all terminal secondary nodes.
可选的,确定单元83还用于:在判定候选辅节点组包括的终端辅节点数M小于N的情况下,向控制平台发送辅节点组拒绝信息。Optionally, the determining unit 83 is also configured to: send secondary node group rejection information to the control platform when it is determined that the number M of terminal secondary nodes included in the candidate secondary node group is less than N.
本申请的实施例还提供了一种基于共识机制的数据验证装置,应用于通信系统中的控制平台,通信系统还包括多个主节点和多个终端辅节点,多个终端辅节点被预先划分成至少一个辅节点组,每个辅节点组中的终端辅节点对应同一个锚点小区,包括:获取单元,用于根据待验证数据,生成数据验证请求;第二发送单元,用于将数据验证请求发送至锚点小区和所有主节点,以使锚点小区对应的所有终端辅节点和所有主节点对数据验证请求中的待验证数据进行验证,以及对验证结果进行确认共识;第二接收单元,用于接收所有终端辅节点和所有主节点发送的确认共识结果,以确定出目标共识结果。Embodiments of the present application also provide a data verification device based on a consensus mechanism, which is applied to a control platform in a communication system. The communication system also includes multiple master nodes and multiple terminal auxiliary nodes. The multiple terminal auxiliary nodes are pre-divided. into at least one secondary node group, and the terminal secondary nodes in each secondary node group correspond to the same anchor cell, including: an acquisition unit, used to generate a data verification request based on the data to be verified; a second sending unit, used to send the data The verification request is sent to the anchor cell and all master nodes, so that all terminal auxiliary nodes and all master nodes corresponding to the anchor cell can verify the data to be verified in the data verification request and confirm the consensus on the verification results; the second reception Unit, used to receive the confirmed consensus results sent by all terminal secondary nodes and all master nodes to determine the target consensus result.
需要说明的是,该数据验证装置应用于通信系统10中的控制平台,通信系统10还包括多个主节点和多个终端辅节点,多个终端辅节点被预先划分成至少一个辅节点组,每个辅节点组中的终端辅节点对应同一个锚点小区,获取单元91用于:用于根据待验证数据,生成数据验证请求;第二发送单元92,用于将数据验证请求发送至锚点小区和所有主节点,以使锚点小区对应的所有终端辅节点和所有主节点对数据验证请求中的待验证数据进行验证;第二接收单元93,用于接收所有终端辅节点和所有主节点发送的确认共识结果,以确定出目标共识结果,其中,确认共识结果是所有终端辅节点和所有主节点对验证结果确认共识后产生的确认共识结果,验证结果包括第一验证结果、第二验证结果和第三验证结果。It should be noted that the data verification device is applied to the control platform in the communication system 10. The communication system 10 also includes multiple master nodes and multiple terminal auxiliary nodes. The multiple terminal auxiliary nodes are pre-divided into at least one auxiliary node group. The terminal secondary nodes in each secondary node group correspond to the same anchor cell. The obtaining unit 91 is used to: generate a data verification request according to the data to be verified; the second sending unit 92 is used to send the data verification request to the anchor cell. point cell and all primary nodes, so that all terminal secondary nodes and all primary nodes corresponding to the anchor cell verify the data to be verified in the data verification request; the second receiving unit 93 is used to receive all terminal secondary nodes and all primary nodes The confirmed consensus result sent by the node is used to determine the target consensus result. The confirmed consensus result is the confirmed consensus result generated after all terminal auxiliary nodes and all master nodes confirm the consensus on the verification result. The verification result includes the first verification result, the second verification result, and the second verification result. Verification results and third verification results.
可选的,通知单元94:将目标共识结果广播给所有主节点,以使所有主节点对目标共识结果进行存储。Optionally, the notification unit 94: broadcasts the target consensus result to all master nodes, so that all master nodes store the target consensus result.
可选的,在将数据验证请求发送至锚点小区和所有主节点步骤之前,第二发送单元92还用于:向锚点小区发送辅节点组请求,以使锚点小区根据辅节点组请求生成终端辅节点请求,其中辅节点组请求中包括辅节点组列表,辅节点组列表包括辅节点组权重值的位序靠前的多个候选辅节点组。Optionally, before sending the data verification request to the anchor cell and all primary nodes, the second sending unit 92 is also used to: send a secondary node group request to the anchor cell, so that the anchor cell can verify the secondary node group request according to the secondary node group request. Generate a terminal secondary node request, where the secondary node group request includes a secondary node group list, and the secondary node group list includes multiple candidate secondary node groups with higher order of secondary node group weight values.
可选的,第二接收单元93还用于:接收锚点小区发送的辅节点组确认信息,将辅节点组列表中与辅节点组确认信息对应的候选辅节点组确定为辅节点组。Optionally, the second receiving unit 93 is also configured to: receive the secondary node group confirmation information sent by the anchor cell, and determine the candidate secondary node group corresponding to the secondary node group confirmation information in the secondary node group list as the secondary node group.
可选的,第二接收单元93还用于:接收锚点小区发送的辅节点组拒绝信息;Optionally, the second receiving unit 93 is also configured to: receive secondary node group rejection information sent by the anchor cell;
可选的,获取单元91还用于,控制平台根据辅节点组列表以外的其他辅节点组权重值位序最靠前的候选辅节点组,更新替换辅节点组列表中与辅节点组拒绝信息对应的候选辅节点组和对应的锚点小区;对辅节点组请求更新,且将更新后的辅节点组请求发送至更新后的锚点小区。Optionally, the acquisition unit 91 is also configured to update the replacement secondary node group list and the secondary node group rejection information based on the candidate secondary node group with the highest weight value among other secondary node groups other than the secondary node group list. The corresponding candidate secondary node group and the corresponding anchor cell; request an update to the secondary node group, and send the updated secondary node group request to the updated anchor cell.
可选的,根据辅节点组权重值,更新辅节点组列表中与辅节点组拒绝信息对应的辅节点组的步骤,具体包括:将与辅节点组拒绝信息对应的辅节点组,更新为辅节组权重位序位于(K+1)的第(K+1)个辅节点组,并将与辅节点组拒绝信息对应的辅节点组从辅节点组列表中删除,重新更新所有辅节组权重的位序。Optionally, the step of updating the secondary node group corresponding to the secondary node group rejection information in the secondary node group list according to the secondary node group weight value specifically includes: updating the secondary node group corresponding to the secondary node group rejection information to the secondary node group. The (K+1)th secondary node group whose section group weight order is located at (K+1), deletes the secondary node group corresponding to the secondary node group rejection information from the secondary node group list, and re-updates all secondary node groups. The order of weights.
可选的,Wgi=[Wn×Ln+Wo×Lo+Ws×Ls]×Io,其中,Wgi表示辅节点组权重值,Wn表示终端辅节点权重,Ln表示终端辅节点数等级,Wo表示锚点小区资源占用率权重,Lo表示锚点小区闲时占用率等级,Ws表示终端辅节点担当权重,Ls表示终端辅节点历史承担情况等级,Io表示锚点小区资源占用率指示,Wn、Ln、Wo、Lo、Ws、Ls和Io为大于等于0。Optional, Wgi=[Wn×Ln+Wo×Lo+Ws×Ls]×Io, where Wgi represents the weight value of the auxiliary node group, Wn represents the weight of the terminal auxiliary node, Ln represents the number and level of the terminal auxiliary node, and Wo represents the anchor. Point cell resource occupancy weight, Lo represents the idle time occupancy level of the anchor cell, Ws represents the weight of the terminal auxiliary node, Ls represents the historical commitment level of the terminal auxiliary node, Io represents the anchor cell resource occupancy indication, Wn, Ln, Wo, Lo, Ws, Ls and Io are greater than or equal to 0.
本申请的实施例还提供了一种基于共识机制的数据验证装置,应用于通信系统10中的终端辅节点,多个终端辅节点被预先划分成至少一个辅节点组,每个辅节点组中的终端辅节点对应同一个锚点小区,数据验证装置包括:第三接收单元101用于,接收锚点小区发送的数据验证请求,对数据验证请求中的待验证数据进行验证,生成验证结果,数据验证请求包括待验证数据;第三发送单元101用于,将验证结果发送至锚点小区,以使锚点小区汇总验证结果并确定验证确认请求;第三接收单元101用于接收锚点小区转发的验证确认请求,对验证确认请求包含的验证结果进行确认共识,以生成确认共识结果;第三发送单元101用于,将确认共识结果发送至控制平台,以使控制平台确定出目标共识结果。Embodiments of the present application also provide a data verification device based on a consensus mechanism, which is applied to terminal auxiliary nodes in the communication system 10. Multiple terminal auxiliary nodes are pre-divided into at least one auxiliary node group. Each auxiliary node group The terminal auxiliary nodes correspond to the same anchor cell. The data verification device includes: the third receiving unit 101 is used to receive the data verification request sent by the anchor cell, verify the data to be verified in the data verification request, and generate a verification result, The data verification request includes data to be verified; the third sending unit 101 is used to send the verification results to the anchor cell, so that the anchor cell aggregates the verification results and determines the verification confirmation request; the third receiving unit 101 is used to receive the anchor cell The forwarded verification confirmation request performs confirmation consensus on the verification results included in the verification confirmation request to generate a confirmation consensus result; the third sending unit 101 is used to send the confirmation consensus result to the control platform, so that the control platform determines the target consensus result. .
需要说明的是,第三发送单元,用于将第一验证结果发送至第一锚点小区,将第二验证结果发送至第二锚点小区;第三接收单元,还用于接收第一锚点小区和主节点发送的验证确认请求,其中,验证确认请求包括第一锚点小区根据第一验证结果生成的第一验证确认请求、第二锚点小区根据第二验证结果生成的第二验证确认请求和主节点根据第三验证结果生成的第三验证确认请求,第一锚点小区为任意一个辅节点组对应的锚点小区,第二锚点小区为除第一锚点小区以外的任意锚点小区,第二验证结果为第二锚点小区对应的终端辅节点对待验证数据的验证结果,第三验证结果为主节点对待验证数据的验证结果;第三接收单元,还用于对验证确认请求包含的验证结果进行确认共识,以生成确认共识结果;第三发送单元,还用于将确认共识结果发送至控制平台,以使控制平台确定出目标共识结果。It should be noted that the third sending unit is used to send the first verification result to the first anchor cell and the second verification result to the second anchor cell; the third receiving unit is also used to receive the first anchor cell. A verification confirmation request sent by the point cell and the master node, where the verification confirmation request includes a first verification confirmation request generated by the first anchor cell based on the first verification result, and a second verification request generated by the second anchor cell based on the second verification result. Confirmation request and the third verification confirmation request generated by the master node based on the third verification result. The first anchor cell is the anchor cell corresponding to any secondary node group, and the second anchor cell is any other than the first anchor cell. In the anchor cell, the second verification result is the verification result of the to-be-verified data of the terminal auxiliary node corresponding to the second anchor cell, and the third verification result is the verification result of the to-be-verified data of the main node; the third receiving unit is also used to verify The verification results included in the confirmation request are confirmed and consensused to generate a confirmed consensus result; the third sending unit is also used to send the confirmed consensus result to the control platform, so that the control platform determines the target consensus result.
可选的,在接收锚点小区发送的数据验证请求之前,第三接收单元101还用于:接收锚点小区发送的终端辅节点请求,以使确定终端辅节点是否具有数据验证资格,其中,终端辅节点请求包括预设无线信号质量参数,预设无线信号质量参数用于测试终端辅节点是否具有数据验证能力;第三发送单元101,用于向锚点小区发送对终端辅节点是否具有数据验证资格确定的确认结果。Optionally, before receiving the data verification request sent by the anchor cell, the third receiving unit 101 is also configured to: receive a terminal secondary node request sent by the anchor cell, so as to determine whether the terminal secondary node has data verification qualifications, wherein, The terminal auxiliary node request includes preset wireless signal quality parameters. The preset wireless signal quality parameters are used to test whether the terminal auxiliary node has data verification capabilities; the third sending unit 101 is used to send to the anchor cell whether the terminal auxiliary node has data. Verify the confirmation results of the qualification determination.
可选的,预设无线信号质量参数包括预设信号接收功率和预设信号与干扰加噪声比值;在判定参考信号接收功率大于等于预设信号接收功率,且信号与干扰加噪声比值大于等于预设信号与干扰加噪声比值的情况下,终端辅节点向锚点小区发送确认结果;在判定参考信号接收功率小于预设信号接收功率,或信号与干扰加噪声比值小于预设信号与干扰加噪声比值的情况下,终端辅节点不向锚点小区发送拒绝消息。Optionally, the preset wireless signal quality parameters include a preset signal received power and a preset signal to interference plus noise ratio; when it is determined that the reference signal received power is greater than or equal to the preset signal receive power, and the signal to interference plus noise ratio is greater than or equal to the preset Assuming the ratio of signal to interference plus noise, the terminal auxiliary node sends a confirmation result to the anchor cell; when it is determined that the reference signal received power is less than the preset signal receive power, or the signal to interference plus noise ratio is less than the preset signal to interference plus noise In the case of ratio, the terminal secondary node does not send a reject message to the anchor cell.
本申请的实施例还提供一种基于共识机制的数据验证装置,应用于通信系统10中的主节点,数据验证装置包括:第四接收单元113,用于接收控制平台发送的数据验证请求,对待验证数据进行验证,以生成验证结果,数据验证请求包括待验证数据;生成单元111用于,根据验证结果生成验证确认请求;第四发送单元112,用于将验证确认请求发送至所有的锚点小区和其他主节点,以使所有终端辅节点对验证结果确认共识。Embodiments of the present application also provide a data verification device based on a consensus mechanism, applied to the master node in the communication system 10. The data verification device includes: a fourth receiving unit 113, used to receive the data verification request sent by the control platform. The verification data is verified to generate a verification result, and the data verification request includes the data to be verified; the generating unit 111 is used to generate a verification confirmation request according to the verification result; the fourth sending unit 112 is used to send the verification confirmation request to all anchor points. community and other master nodes, so that all terminal slave nodes can confirm the consensus on the verification results.
本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储程序或指令,程序或指令被处理器执行时实现上述方法实施例所示的数据验证方法流程中的各个的步骤。Embodiments of the present application also provide a computer-readable storage medium. Programs or instructions are stored on the computer-readable storage medium. When the programs or instructions are executed by the processor, each step in the data verification method flow shown in the above method embodiment is implemented. step.
其中,计算机可读存储介质,例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘。随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、寄存器、硬盘、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的人以合适的组合、或者本领域数值的任何其他形式的可读存储介质。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于特定用途集成电路(Application Specific Integr ated Circuit,ASIC)中。在本申请实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), register, hard disk, optical fiber, portable and compact Compact Disc Read-Only Memory (CD-ROM), optical storage device, magnetic storage device, or a suitable combination of the above, or any other form of readable storage medium valued in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present application, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus or device.
本申请的实施例提供一种计算机程序产品,该计算机程序产品被存储在非易失的存储介质中,该计算机程序产品被至少一个处理器执行以实现上述方法实施例所示的数据验证方法流程中的各个步骤。Embodiments of the present application provide a computer program product. The computer program product is stored in a non-volatile storage medium. The computer program product is executed by at least one processor to implement the data verification method flow shown in the above method embodiment. various steps in.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在可读存储介质中,或者从一个可读存储介质向另一个可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(DigitalSubscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a readable storage medium or transmitted from one readable storage medium to another, for example, the computer instructions may be transmitted from a website, computer, server or data center via a wired ( For example, coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website, computer, server or data center. The readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (Solid State Disk, SSD)), etc.
图12示出了上述实施例中所涉及电子设备的又一种可能的结构示意图。该装置包括:存储器121、处理器122和存储在存储器121上并可在处理器122上运行的程序或指令,该程序或指令被处理器122执行时实现上述方法实施例所示的数据验证方法流程中的各个步骤。该电子设备还可以包括通信接口123和总线124,通信接口123用于支持该装置与其他网络实体的通信,例如,执行上述获取单元91执行的步骤。FIG. 12 shows another possible structural diagram of the electronic device involved in the above embodiment. The device includes: a memory 121, a processor 122, and a program or instruction stored in the memory 121 and executable on the processor 122. When executed by the processor 122, the program or instruction implements the data verification method shown in the above method embodiment. various steps in the process. The electronic device may also include a communication interface 123 and a bus 124. The communication interface 123 is used to support communication between the device and other network entities, for example, performing the steps performed by the above-mentioned acquisition unit 91.
其中,上述处理器122还可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,单元和电路。该处理器122可以是中央处理器,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,单元和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。Among them, the above-mentioned processor 122 can also implement or execute various exemplary logical blocks, units and circuits described in conjunction with the disclosure of this application. The processor 122 may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various illustrative logical blocks, units and circuits described in connection with this disclosure. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
存储器121可以包括易失性存储器,例如随机存取存储器;该存储器也可以包括非易失性存储器,例如只读存储器,快闪存储器,硬盘或固态硬盘;该存储器还可以包括上述种类的存储器的组合。The memory 121 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid state drive; the memory may also include the above-mentioned types of memory. combination.
总线124可以是扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。总线124可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 124 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 124 can be divided into an address bus, a data bus, a control bus, etc. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the above description of the embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In actual applications, the above functions can be allocated as needed. It is completed by different functional units, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. For the specific working processes of the systems, devices and units described above, reference can be made to the corresponding processes in the foregoing method embodiments, which will not be described again here.
由于本申请的实施例中的电子设备、可读存储介质、计算机程序产品可以应用于上述数据验证方法,因此,其所能获得的技术效果也可参考上述方法实施例,本申请的实施例在此不再赘述。Since the electronic devices, readable storage media, and computer program products in the embodiments of the present application can be applied to the above-mentioned data verification method, the technical effects that can be obtained can also be referred to the above-mentioned method embodiments. The embodiments of the present application are in This will not be described again.
需要说明的是,上述各单元可以为单独设立的处理器,也可以集成在控制器的某一个处理器中实现,此外,也可以以程序代码的形式存储于控制器的存储器中,由控制器的某一个处理器调用并执行以上各单元的功能。这里所述的处理器可以是一个中央处理器(Central Processing Unit,CPU),或者是特定集成电路(Application SpecificIntegrated Circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路。It should be noted that each of the above units can be a separate processor, or can be integrated into a processor of the controller. In addition, it can also be stored in the memory of the controller in the form of program code, and can be controlled by the controller. One of the processors calls and executes the functions of each of the above units. The processor described here may be a central processing unit (Central Processing Unit, CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits configured to implement embodiments of the present application. .
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合、直接耦合或通信连接可以是通过接口实现的,其接口连接可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the coupling, direct coupling or communication connection shown or discussed may be realized through an interface, and the interface connection may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims (19)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111486832.5A CN114338668B (en) | 2021-12-07 | 2021-12-07 | Data verification methods, systems, storage media 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 methods, systems, storage media and equipment based on consensus mechanism |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114338668A CN114338668A (en) | 2022-04-12 |
CN114338668B true CN114338668B (en) | 2023-10-31 |
Family
ID=81047781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111486832.5A Active CN114338668B (en) | 2021-12-07 | 2021-12-07 | Data verification methods, systems, storage media and equipment based on consensus mechanism |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114338668B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012039467A (en) * | 2010-08-09 | 2012-02-23 | Panasonic Corp | Radio communication device |
WO2015142898A1 (en) * | 2014-03-18 | 2015-09-24 | Sharp Laboratories Of America, Inc. | Device-to-device communications apparatus and methods |
EP2931001A1 (en) * | 2014-04-10 | 2015-10-14 | Innovative Sonic Corporation | Method and apparatus for reporting buffer status for device to device communication in a wireless communication system |
CN109995536A (en) * | 2019-03-15 | 2019-07-09 | 广州杰赛科技股份有限公司 | A kind of block chain common recognition method, apparatus and readable storage medium storing program for executing |
WO2020052423A1 (en) * | 2018-09-14 | 2020-03-19 | 腾讯科技(深圳)有限公司 | Communication system, method, server and computer readable storage medium |
CN111444211A (en) * | 2020-03-26 | 2020-07-24 | 腾讯科技(深圳)有限公司 | Block chain consensus node checking method, device, equipment and storage medium |
CN112020018A (en) * | 2020-08-26 | 2020-12-01 | 济南浪潮高新科技投资发展有限公司 | Block chain accounting group generation method, consensus method and block chain system |
CN112887120A (en) * | 2019-11-30 | 2021-06-01 | 华为技术有限公司 | Information processing method and device |
CN112988878A (en) * | 2021-05-06 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Regional thermodynamic diagram processing method and device based on block chain and computer equipment |
-
2021
- 2021-12-07 CN CN202111486832.5A patent/CN114338668B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012039467A (en) * | 2010-08-09 | 2012-02-23 | Panasonic Corp | Radio communication device |
WO2015142898A1 (en) * | 2014-03-18 | 2015-09-24 | Sharp Laboratories Of America, Inc. | Device-to-device communications apparatus and methods |
EP2931001A1 (en) * | 2014-04-10 | 2015-10-14 | Innovative Sonic Corporation | Method and apparatus for reporting buffer status for device to device communication in a wireless communication system |
WO2020052423A1 (en) * | 2018-09-14 | 2020-03-19 | 腾讯科技(深圳)有限公司 | Communication system, method, server and computer readable storage medium |
CN109995536A (en) * | 2019-03-15 | 2019-07-09 | 广州杰赛科技股份有限公司 | A kind of block chain common recognition method, apparatus and readable storage medium storing program for executing |
CN112887120A (en) * | 2019-11-30 | 2021-06-01 | 华为技术有限公司 | Information processing method and device |
CN111444211A (en) * | 2020-03-26 | 2020-07-24 | 腾讯科技(深圳)有限公司 | Block chain consensus node checking method, device, equipment and storage medium |
CN112020018A (en) * | 2020-08-26 | 2020-12-01 | 济南浪潮高新科技投资发展有限公司 | Block chain accounting group generation method, consensus method and block chain system |
CN112988878A (en) * | 2021-05-06 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Regional thermodynamic diagram processing method and device based on block chain and computer equipment |
Non-Patent Citations (2)
Title |
---|
区块链赋能6G;代玥玥;张科;张彦;;物联网学报(第01期);全文 * |
基于区块链的频谱设备网络中防御拜占庭攻击的分布式共识机制;杨健;陈曦;丁国如;赵杭生;张林元;孙佳琛;;通信学报(第03期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114338668A (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111182568B (en) | Communication method, communication device, computer readable medium and electronic equipment | |
CN110808922B (en) | Message processing method and device, storage medium and electronic equipment | |
CN112188547B (en) | Service processing method and device | |
CN114024876A (en) | A kind of network dialing test method, device, equipment and storage medium | |
CN112188548A (en) | Service processing method and device | |
CN110636522B (en) | A method and device for determining the coverage quality of a communication network | |
CN114338668B (en) | Data verification methods, systems, storage media and equipment based on consensus mechanism | |
CN113487148B (en) | A method and device for obtaining network evaluation results | |
CN113543022A (en) | Method, device, walkie-talkie, device and storage medium for determining transmit power | |
CN114697228A (en) | Data integration method and device and related equipment | |
JP2013207760A (en) | Data collecting method, mobile terminal and data storage device | |
CN110971533A (en) | Method, server apparatus, client apparatus, and medium for data communication | |
CN114071561B (en) | A data reporting method, device, equipment and storage medium | |
CN115022411B (en) | WebRTC-based media server scheduling system, method and device | |
CN108282752B (en) | Method, system, device and storage medium for group callback in broadband cluster system | |
CN111885588B (en) | Method and device for executing electronic card management service | |
CN113595894B (en) | Communication method, device, equipment and medium between service nodes and client nodes | |
CN114040422B (en) | Network parameter configuration method and device | |
CN110856199B (en) | Interference coordination method and device, base station | |
CN111083717B (en) | Data transmission method and device | |
CN113727386A (en) | Communication method and device | |
CN116208942A (en) | Near field communication relay node discovery method and related equipment | |
CN112085604A (en) | A method and device for upgrading smart contracts | |
CN107707383B (en) | Put-through processing method and device, first network element and second network element | |
CN110650433B (en) | Data transmission method, system, device and medium based on 5G communication |
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 |