CN113076560A - Block chain-based vehicle management method, device, equipment and storage medium - Google Patents

Block chain-based vehicle management method, device, equipment and storage medium Download PDF

Info

Publication number
CN113076560A
CN113076560A CN202110479619.5A CN202110479619A CN113076560A CN 113076560 A CN113076560 A CN 113076560A CN 202110479619 A CN202110479619 A CN 202110479619A CN 113076560 A CN113076560 A CN 113076560A
Authority
CN
China
Prior art keywords
vehicle
block
block chain
preset
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110479619.5A
Other languages
Chinese (zh)
Inventor
李卫兵
王伟
董伟
郭威
汪岳
周昊
王凯
陈佳
毛家林
杨帅杰
周敏春
刘捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Jianghuai Automobile Group Corp
Original Assignee
Anhui Jianghuai Automobile Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Jianghuai Automobile Group Corp filed Critical Anhui Jianghuai Automobile Group Corp
Priority to CN202110479619.5A priority Critical patent/CN113076560A/en
Publication of CN113076560A publication Critical patent/CN113076560A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/273Asynchronous replication or reconciliation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Bioethics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention relates to the technical field of automobile communication, and discloses a vehicle management method, a device, equipment and a storage medium based on a block chain, wherein the method comprises the following steps: obtaining a score of an event message uploaded by a first vehicle in the Internet of vehicles; calculating according to the event message score to obtain the variation of the trust value; determining a miner node of the block chain; packing the change quantity of the trust value into a miner node to form new block data; and updating the block data to the block chain so that the block chain determines the trust data of the first vehicle through a preset accumulation method to realize the management of the first vehicle. According to the invention, the event message is scored and uploaded to the base station, the base station is used for storing and managing, the processing efficiency is improved, each base station forms a block chain based on distributed consensus, different block data are set for different base stations according to the variation of the trust value, so that the event message is added into the block chain more quickly, and the data security is ensured.

Description

Block chain-based vehicle management method, device, equipment and storage medium
Technical Field
The present invention relates to the field of automotive communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for vehicle management based on a block chain.
Background
With the rapid development of automobile intelligentization and networking technologies, automobile products have evolved into ethernet mobile networking terminals. In a vehicle-mounted wireless communication technology (V2X) scene, due to the high mobility of vehicle networking nodes, vehicles usually encounter many strange vehicles during driving, so that the reliability of received messages is questionable, and if malicious nodes appear in the network, the normal operation of the network is disturbed in a mode of intentionally broadcasting false event messages, the safety and efficiency of traffic are seriously threatened, so that how to evaluate the reliability of vehicle broadcast messages in the vehicle networking becomes a safety problem to be solved urgently. The existing trust management method can be a distributed management mechanism, in the distributed management mechanism, the tasks of trust data storage and management are usually undertaken by the vehicle itself or a base station, when other vehicle trust data needs to be inquired, the vehicle firstly inquires trust data information stored by the vehicle itself, if the inquiry cannot be carried out, the vehicle is connected with a nearby base station to send an inquiry request, and the base station inquires the data and then sends the data to the vehicle, but due to the limitations of the vehicle perception capability and observation conditions, the trust database independently maintained by the vehicle may not be completely reliable; because the nodes such as the base station and the like are distributed outdoors, the safety protection measures are not as strict as those of the central node, and the nodes cannot be maintained in time by an administrator, so that the safety and the reliability of the nodes are deficient.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a vehicle management method, a device, equipment and a storage medium based on a block chain, and aims to solve the technical problem of safety requirements in the prior art.
In order to achieve the above object, the present invention provides a block chain-based vehicle management method, including the steps of:
obtaining a score of an event message uploaded by a first vehicle in the Internet of vehicles;
calculating according to the event message score to obtain the variation of the trust value;
determining a miner node of the block chain;
packing the change quantity of the trust value into the miner node to form new block data;
and updating the block data to a block chain, so that the block chain determines the trust data of the first vehicle through a preset accumulation method, and the management of the first vehicle is realized.
Optionally, before obtaining the score of the event message uploaded by the first vehicle, the method includes:
acquiring an event message sent by a second vehicle according to a first vehicle, and verifying the authenticity of the event message through the first vehicle;
when the first vehicle verifies that the event message is not tampered, the event message is scored through the first vehicle, and an event message score is obtained.
Optionally, the calculating according to the event message score to obtain a variation of the trust value includes:
determining a preset number of positive scores and a preset number of negative scores corresponding to the scores of the event messages;
and calculating according to the preset number of the positive scores and the preset number of the negative scores to obtain the variation of the trust value.
Optionally, the calculating according to the preset number of positive scores and the preset number of negative scores to obtain a variation of the trust value includes:
calculating the preset number according to the positive grading and the preset number according to the negative grading through a first preset formula to obtain the variation of the trust value;
wherein the first preset formula is as follows:
Figure BDA0003047542720000021
wherein omicron represents the variation of the trust value, m represents the preset number of positive scores, n represents the preset number of negative scores, and theta1Represents a positive scoring weight, θ2Indicating a negative scoring weight.
Optionally, the determining the miner node of the block chain includes:
determining block information of a preset miner node;
calculating according to the block information to obtain a hash value of the block;
judging whether the hash value is less than or equal to a preset hash threshold value;
and if the hash value is less than or equal to a preset threshold value, determining that the preset miner node is a miner node of the block chain.
Optionally, the updating the block data to a block chain to enable the block chain to determine trust data of the first vehicle through a preset accumulation method to implement management of the first vehicle includes:
updating the block data to a block chain so that the block chain verifies the block, adding the block data to the block chain after the block chain verifies the block, and determining the trust data of the first vehicle by a preset accumulation method so as to realize the management of the first vehicle.
Optionally, the calculating according to the block information to obtain the hash value of the block includes:
calculating the block information according to a second preset formula to obtain a hash value of the block;
wherein the second preset formula is as follows:
Hash(ID||PraHash||TimeStamp||nonce);
wherein, the ID is an identity number, the prelash is a hash value of a previous block, the TimeStamp is a TimeStamp, and the nonce is a random number.
In addition, to achieve the above object, the present invention further provides a block chain based vehicle management apparatus, including:
the acquisition module is used for acquiring the scores of the event messages uploaded by the first vehicle in the Internet of vehicles;
the computing module is used for computing according to the event message score to obtain the variation of the trust value;
the determining module is used for determining the miner nodes of the block chain;
the block generation module is used for packaging the change quantity of the trust value into the miner node to form new block data;
and the trust data determining module is used for updating the block data to a block chain so that the block chain determines the trust data of the first vehicle through a preset accumulation method to realize the management of the first vehicle.
Further, to achieve the above object, the present invention also proposes a block chain-based vehicle management apparatus including: a memory, a processor and a blockchain based vehicle management program stored on the memory and executable on the processor, the blockchain based vehicle management program configured to implement the steps of the blockchain based vehicle management method as described above.
Furthermore, to achieve the above object, the present invention also proposes a storage medium having stored thereon a blockchain-based vehicle management program that, when executed by a processor, implements the steps of the blockchain-based vehicle management method as described above.
The method comprises the steps of obtaining a score of an event message uploaded by a first vehicle in the Internet of vehicles; calculating according to the event message score to obtain the variation of the trust value; determining a miner node of the block chain; packing the change quantity of the trust value into a miner node to form new block data; and updating the block data to the block chain so that the block chain determines the trust data of the first vehicle through a preset accumulation method to realize the management of the first vehicle. The event messages are scored and uploaded to the base stations, the base stations are used for storing and managing, processing efficiency is improved, each base station forms a block chain based on distributed consensus, different block data are set for different base stations according to the variation of the trust value, the event messages are added into the block chains more quickly, and accordingly data security is guaranteed.
Drawings
Fig. 1 is a schematic structural diagram of a block chain-based vehicle management device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a block chain-based vehicle management method according to the present invention;
FIG. 3 is a block chain structure diagram illustrating a vehicle management method based on block chains according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of a blockchain-based vehicle management method according to the present invention;
FIG. 5 is a flowchart illustrating a third embodiment of a block chain based vehicle management method according to the present invention;
fig. 6 is a block diagram of a first embodiment of a block chain-based vehicle management apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a block chain-based vehicle management device of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the block chain-based vehicle management apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of a blockchain-based vehicle management apparatus and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a blockchain-based vehicle management program.
In the block chain-based vehicle management apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the block chain-based vehicle management apparatus of the present invention may be provided in a block chain-based vehicle management apparatus that calls a block chain-based vehicle management program stored in the memory 1005 through the processor 1001 and executes a block chain-based vehicle management method provided by an embodiment of the present invention.
An embodiment of the present invention provides a vehicle management method based on a block chain, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of a vehicle management method based on a block chain according to the present invention.
In this embodiment, the block chain-based vehicle management method includes the following steps:
step S10: and obtaining the scores of the event messages uploaded by the first vehicle in the internet of vehicles.
It should be noted that the execution subject in this embodiment may be a vehicle management device based on a block chain, and may also be other devices that can implement the same or similar functions.
It will be appreciated that the event message score is generated by the receiver of the event message, i.e. the first vehicle, for assessing the trustworthiness of the received event message, and is reported periodically by the vehicles, with the base station acting as the collector and manager of this data.
It should be understood that, since the vehicles are equipped with the sensing module, the calculating module and the communication module, the data collection, processing and communication can be completed, each vehicle maintains a reference vehicle set during the driving process, and the members of the set are a plurality of vehicles which are close to the vehicle and drive in front of the vehicle. The vehicle senses the surrounding environment in real time by using the sensing module, detects specific events, such as traffic accidents, road damages and the like, judges and scores whether a certain event message is credible or not according to the specific events, and uploads the scoring data of the event message to a nearby base station, wherein the scoring of the event message can comprise positive scoring and negative scoring.
Step S20: and calculating according to the event message score to obtain the variation of the trust value.
It should be understood that, based on the score data of the event message uploaded by the first vehicle, the base station calculates the variation of the trust value for each involved vehicle, in this embodiment, the variation of the trust value may be between +1 and-1, and the higher the ratio of the positive score received by the corresponding vehicle is, the larger the value of the variation of the trust value is.
Step S30: and determining the miner nodes of the block chain.
It should be noted that, as shown in fig. 3, fig. 3 is a block chain structure diagram, and it can be seen from the diagram that a block chain is formed by connecting a series of blocks, each block contains a certain amount of data, and the last block hash value, so that all the blocks are connected into a whole. In addition, the block usually contains a random number, which is an answer to a very complex mathematical problem, and it is necessary to have a very large computational resource to obtain the answer, in the specific implementation process, the base stations can be connected into a distributed block chain network, and by connecting the base stations into a distributed block chain network, the problems of high time delay, poor expansibility, single point failure and the like existing in a centralized trust management mechanism can be effectively solved, and the security and consistency of data storage can be ensured.
It can be understood that in the trust management mechanism based on the blockchain, in order to ensure the consistency of the data stored by each base station, the blockchain system needs to select a temporary central node at intervals to generate a new block and broadcast the new block to other nodes, and the temporary central node is called a miner, so that the miner node can be selected in a workload proving manner.
Step S40: and packaging the change quantity of the trust value into the miner node to form new block data.
It should be understood that once a base station is selected as a mineworker node, all the trust value change quantities obtained by the base station are packaged into the mineworker node to form a new block, so that the block is quickly added into the block chain.
It can be understood that the base station packs the trust value variation together with the timestamp, the check information, etc. to form a block data, and adds the block to the block chain through the distributed consensus algorithm.
Step S50: and updating the block data to a block chain, so that the block chain determines the trust data of the first vehicle through a preset accumulation method, and the management of the first vehicle is realized.
It should be noted that each node adds a new block to its own stored block chain and continues to generate its own new block, so as to update the trust value, and then, by accumulating the change amounts of all the trust values of the first vehicle stored in the block chain by using a specific method, the first vehicle integrated trust value can be obtained, so as to implement the management of the first vehicle. The specific method may be set by a person skilled in the art, and the embodiment does not limit this.
The embodiment comprises the steps of obtaining a score of an event message uploaded by a first vehicle in the Internet of vehicles; calculating according to the event message score to obtain the variation of the trust value; determining a miner node of the block chain; packing the change quantity of the trust value into a miner node to form new block data; and updating the block data to the block chain so that the block chain determines the trust data of the first vehicle through a preset accumulation method to realize the management of the first vehicle. By establishing the vehicle trust score, storing and calculating by using the base stations, and forming a block chain by each base station based on distributed consensus, the trust value information calculation efficiency is ensured, the data security is improved, and the vehicle trust management under the V2X scene is realized.
Referring to fig. 4, fig. 4 is a flowchart illustrating a block chain-based vehicle management method according to a second embodiment of the present invention.
Based on the first embodiment, before the step S10, the block chain-based vehicle management method of the present embodiment further includes:
step S101: the method comprises the steps that an event message sent by a second vehicle is obtained according to a first vehicle, and the authenticity of the event message is verified through the first vehicle.
It will be appreciated that the second vehicle is a vehicle in which the first vehicle maintains a set of reference vehicles during travel, the members of the set being vehicles which are closer to the vehicle and which are traveling in front of the vehicle, and the vehicles being the corresponding second vehicles.
It should be understood that, after receiving the event message sent by the second vehicle, the first vehicle needs to verify the validity of the public key certificate of the second vehicle, that is, verify the validity of the signature by using the public key of the second vehicle, so as to verify the authenticity of the event message.
Step S102: when the first vehicle verifies that the event message is not tampered, the event message is scored through the first vehicle, and an event message score is obtained.
It should be noted that after confirming that the message is not tampered with, the message receiver needs to perform a comprehensive judgment according to all received messages to determine whether an event described in the message occurs, and according to the judgment result, the first vehicle can score each message, where the event message score includes a positive score and a negative score, and by generating a positive score, for example, +1, for the message whose content meets the judgment result, a negative score, for example, -1, is given for the message whose content does not meet the judgment result. Finally, the first vehicle uploads all event message scores it generates at intervals to a nearby base station for further storage and processing.
Further, the step S20 includes:
step S201, determining a preset number of positive scores and a preset number of negative scores corresponding to the event message scores.
It should be noted that, since the event message score includes a positive score and a negative score, since the message may have multiple receivers, and the positions, reference sets, etc. of the receivers are different, the score for a specific event message may also be different, for example, regarding a certain event message, the base station receives 7 positive scores and 3 negative scores, the former is a majority score, and the latter is a minority score, so that the base station may determine that the preset number of positive scores is 7 and the preset number of negative scores is 3.
And step S202, calculating according to the preset number of the positive scores and the preset number of the negative scores.
Further, step S202 includes:
calculating the preset number according to the positive grading and the preset number according to the negative grading through a first preset formula to obtain the variation of the trust value;
wherein the first preset formula is as follows:
Figure BDA0003047542720000081
wherein omicron represents the variation of the trust value, m represents the preset number of positive scores, n represents the preset number of negative scores, and theta1Represents a positive scoring weight, θ2Indicating a negative scoring weight.
It can be understood that after the vehicle uploads the score value to the base station, the base station is responsible for calculating the variation of the trust value of each vehicle according to the score, the base station calculates the variation of the trust value caused by the issuance of the event message by comprehensively considering the proportion of the positive score and the negative score, and the positive score weight and the negative score weight can be set by those skilled in the art, which is not limited in this embodiment, so that the variation of the trust value decreases as the proportion of the negative score increases.
The embodiment verifies the authenticity of the event message by the first vehicle by acquiring the event message sent by the second vehicle according to the first vehicle; when the first vehicle verifies that the event message is not tampered, the event message is scored through the first vehicle to obtain an event message score, a base station obtains the event message score uploaded by the first vehicle in the internet of vehicles, determines the preset number of positive scores and the preset number of negative scores corresponding to the event message score, and then calculates according to the preset number of positive scores and the preset number of negative scores to obtain the variation of the trust value, so that the safety of data is further effectively improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a block chain-based vehicle management method according to a third embodiment of the present invention.
A third embodiment of the block chain-based vehicle management method according to the present invention is proposed based on the first embodiment or the second embodiment, and in this embodiment, explained based on the first embodiment, the step S30 includes:
step S301: and determining block information of the preset miner node.
It should be noted that the block information may include: a base station identity number, a previous block hash value, a timestamp, and a random number.
Step S302: and calculating according to the block information to obtain the hash value of the block.
Further, step S402 includes:
calculating the block information according to a second preset formula to obtain a hash value of the block;
wherein the second preset formula is as follows:
Hash(ID||PraHash||TimeStamp||nonce);
wherein, the ID is an identity number, the prelash is a hash value of a previous block, the TimeStamp is a TimeStamp, and the nonce is a random number.
It can be understood that, since the base station identity number, the previous block hash value, the TimeStamp and the random number of the block information packet are combined by calculating the base station identity number ID, the previous block hash value prelahh, the TimeStamp and the random number nonce, the hash value of the block is obtained.
Step S303: and judging whether the hash value is less than or equal to a preset hash threshold value.
It should be noted that the preset hash threshold may be a hash threshold corresponding to a base station, and since each base station has substantially the same computing capability and the number of vehicles served by different base stations has a large difference, the number of scores received by each base station also has a large difference in the same time period, how to add a block containing more scores and having a greater influence on the vehicle trust value to a block chain as soon as possible becomes a problem to be solved, so that different hash thresholds may be set for different base stations.
Step S303: and if the hash value is less than or equal to a preset threshold value, determining that the preset miner node is a miner node of the block chain.
It should be understood that, for example, the identity number of a certain base station is set to IDiJudging that the hash value is less than or equal to the hash threshold value according to the following formula:
Hash(IDi||PraHash||TimeStamp||nonce)≤Si
wherein S isiThe hash threshold value is a hash threshold value corresponding to a certain base station, and the hash threshold value positively correlates with the sum of the absolute values of the trust value variation values contained in the new block by the base station.
It can be understood that if the absenteeism node satisfies the above formula, it means that the absenteeism node can be set as the absenteeism node of the block chain.
Further, step S50 includes:
step S501: updating the block to a block chain so that the block chain verifies the block, adding the block to the block chain after the block chain verifies the block, and determining the trust data of the first vehicle by a preset accumulation method so as to realize the management of the first vehicle.
It can be understood that, first, the block data is updated to the block chain, and the block chain receives new block data sent by the miner node, and the fields of the block data, such as the block hash value, the random number nonce, and the like, need to be checked to verify the integrity and the authenticity of the data.
It should be understood that after the verification is passed, the vehicle comprehensive trust data can be obtained by accumulating the variation of all trust values of the vehicle stored in the blockchain by using a specific method so as to realize the management of the first vehicle.
It should be noted that, by using the software and hardware resources of the base station as the edge calculation and storage node, when the vehicle needs to query the trust data of other vehicles, the vehicle directly sends a query request to a nearby base station, and the base station returns the query data to the vehicle, so that the data processing efficiency is ensured, and the low-delay requirement is met.
In the embodiment, the change amount of the trust value is obtained by obtaining the score of the event message uploaded by the first vehicle in the internet of vehicles and calculating according to the score of the event message, the block information of the preset miner node is determined, calculating according to the block information to obtain the hash value of the block, judging whether the hash value is less than or equal to a preset hash threshold value, if the hash value is less than or equal to the preset threshold value, determining that the preset miner node is a miner node of a block chain, packaging the variation of the trust value into the miner node to form new block data, updating the block data to the block chain so that the block chain verifies the block data, and after the verification is passed, adding the block data to the block chain, and determining the trust data of the first vehicle by a preset accumulation method so as to realize the management of the first vehicle. The block chain technology is applied to the field of vehicle networking trust management, the advantages of the block chain technology can be fully exerted, vehicles can efficiently acquire the trust value of a message sender by using trust data stored in a base station, the credibility of received messages is further evaluated, and vehicle-to-vehicle information management under a V2X scene is realized, so that the safety of data is guaranteed.
Furthermore, an embodiment of the present invention further provides a storage medium, where a blockchain-based vehicle management program is stored, and the blockchain-based vehicle management program implements the steps of the blockchain-based vehicle management method as described above when executed by a processor.
Further, referring to fig. 6, an embodiment of the present invention further provides a block chain-based vehicle management apparatus, including:
the obtaining module 10 is configured to obtain a score of an event message uploaded by a first vehicle in the internet of vehicles.
It will be appreciated that the event message score is generated by the receiver of the event message, i.e. the first vehicle, for assessing the trustworthiness of the received event message, and is reported periodically by the vehicles, with the base station acting as the collector and manager of this data.
It should be understood that, since the vehicles are equipped with the sensing module, the calculating module and the communication module, the data collection, processing and communication can be completed, each vehicle maintains a reference vehicle set during the driving process, and the members of the set are a plurality of vehicles which are close to the vehicle and drive in front of the vehicle. The vehicle senses the surrounding environment in real time by using the sensing module, detects specific events such as traffic accidents, road damages and the like, judges and scores whether a certain event message is credible or not according to the specific events, and uploads the scoring data of the event message to a nearby base station.
And the calculating module 20 is configured to calculate according to the event message score to obtain a variation of the trust value.
It will be appreciated that based on the event message score data uploaded by the first vehicle, the base station calculates for each vehicle involved a change in its trust value, in this embodiment between +1 and-1.
A determination module 30 for determining a miner node of the blockchain.
It should be noted that, as shown in fig. 3, fig. 3 is a schematic diagram of a block chain structure, a block chain is formed by connecting a series of blocks, each block includes a certain amount of data, and a last block hash value, so that all the blocks are connected into a whole. In addition, the block usually contains a random number, which is an answer to a very complex mathematical problem, and it is necessary to have a very large computational resource to obtain the answer, in the specific implementation process, the base stations can be connected into a distributed block chain network, and by connecting the base stations into a distributed block chain network, the problems of high time delay, poor expansibility, single point failure and the like existing in a centralized trust management mechanism can be effectively solved, and the security and consistency of data storage can be ensured.
It can be understood that in the trust management mechanism based on the blockchain, in order to ensure the consistency of the data stored by each base station, the blockchain system needs to select a temporary central node at intervals to generate a new block and broadcast the new block to other nodes, and the temporary central node is called a miner, so that the miner node can be selected in a workload proving manner.
And the block generation module 40 is configured to package the variation of the trust value into the miner node to form new block data.
It should be understood that once a base station is selected as a mineworker node, all the trust value change quantities obtained by the base station are packaged into the mineworker node to form a new block, so that the block is quickly added into the block chain.
It can be understood that the base station packs the trust value variation together with the timestamp, the check information, etc. to form a block data, and adds the block to the block chain through the distributed consensus algorithm.
And the trust data determining module 50 is configured to update the block data to a block chain, so that the block chain determines the trust data of the first vehicle through a preset accumulation method, so as to implement management of the first vehicle.
It should be noted that each node adds a new block to its own stored block chain and continues to generate its own new block, so as to update the trust value, and then, by accumulating the change amounts of all the trust values of the first vehicle stored in the block chain by using a specific method, the first vehicle integrated trust value can be obtained, so as to implement the management of the first vehicle. The specific method may be set by a person skilled in the art, and the embodiment does not limit this.
The embodiment comprises the steps of obtaining a score of an event message uploaded by a first vehicle in the Internet of vehicles; calculating according to the event message score to obtain the variation of the trust value; determining a miner node of the block chain; packing the change quantity of the trust value into a miner node to form new block data; and updating the block data to the block chain so that the block chain determines the trust data of the first vehicle through a preset accumulation method to realize the management of the first vehicle. By establishing the vehicle trust score, storing and calculating by using the base stations, and forming a block chain by each base station based on distributed consensus, the trust value information calculation efficiency is ensured, the data security is improved, and the vehicle trust management under the V2X scene is realized.
In an embodiment, the obtaining module 10 is further configured to obtain, according to a first vehicle, an event message sent by a second vehicle, and verify the authenticity of the event message by the first vehicle; when the first vehicle verifies that the event message is not tampered, the event message is scored through the first vehicle, and an event message score is obtained.
In an embodiment, the calculating module 20 is further configured to determine a preset number of positive scores and a preset number of negative scores corresponding to the event message score; and calculating according to the preset number of the positive scores and the preset number of the negative scores to obtain the variation of the trust value.
In an embodiment, the calculating module 20 is further configured to calculate the preset number according to the positive score and the preset number according to the negative score through a first preset formula to obtain a variation of the trust value; wherein the first preset formula is as follows:
Figure BDA0003047542720000131
wherein, o represents the variation of the trust value, m represents the preset number of the front scores, nRepresenting said preset number of negative scores, theta1Represents a positive scoring weight, θ2Indicating a negative scoring weight.
In an embodiment, the determining module 20 is further configured to determine block information of a preset miner node; calculating according to the block information to obtain a hash value of the block; judging whether the hash value is less than or equal to a preset hash threshold value; and if the hash value is less than or equal to a preset threshold value, determining that the preset miner node is a miner node of the block chain.
In an embodiment, the trust data determining module 50 is further configured to update the block data to a block chain, so that the block chain verifies the block data, add the block data to the block chain after the block chain verifies the block data, and determine the trust data of the first vehicle by using a preset accumulation method, so as to implement management of the first vehicle.
In an embodiment, the calculating module 20 is further configured to calculate the hash value of the block according to the block information by using a second preset formula; wherein the second preset formula is as follows:
Hash(ID||PraHash||TimeStamp||nonce);
wherein, the ID is an identity number, the prelash is a hash value of a previous block, the TimeStamp is a TimeStamp, and the nonce is a random number.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not elaborated in this embodiment may refer to the block chain-based vehicle management method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A block chain-based vehicle management method is characterized by comprising the following steps:
obtaining a score of an event message uploaded by a first vehicle in the Internet of vehicles;
calculating according to the event message score to obtain the variation of the trust value;
determining a miner node of the block chain;
packing the change quantity of the trust value into the miner node to form new block data;
and updating the block data to a block chain, so that the block chain determines the trust data of the first vehicle through a preset accumulation method, and the management of the first vehicle is realized.
2. The blockchain-based vehicle management method of claim 1, wherein prior to obtaining the score for the event message uploaded by the first vehicle, comprising:
acquiring an event message sent by a second vehicle according to a first vehicle, and verifying the authenticity of the event message through the first vehicle;
when the first vehicle verifies that the event message is not tampered, the event message is scored through the first vehicle, and an event message score is obtained.
3. The blockchain-based vehicle management method according to claim 1, wherein the calculating according to the event message score to obtain a change amount of the trust value includes:
determining a preset number of positive scores and a preset number of negative scores corresponding to the scores of the event messages;
and calculating according to the preset number of the positive scores and the preset number of the negative scores to obtain the variation of the trust value.
4. The blockchain-based vehicle management method according to claim 3, wherein the calculating according to the preset number of positive scores and the preset number of negative scores to obtain a change amount of the trust value includes:
calculating the preset number according to the positive grading and the preset number according to the negative grading through a first preset formula to obtain the variation of the trust value;
wherein the first preset formula is as follows:
Figure FDA0003047542710000021
wherein omicron represents the variation of the trust value, m represents the preset number of positive scores, n represents the preset number of negative scores, and theta1Represents a positive scoring weight, θ2Indicating a negative scoring weight.
5. The blockchain-based vehicle management method of claim 1, wherein the determining the mineworker node of a blockchain includes:
determining block information of a preset miner node;
calculating according to the block information to obtain a hash value of the block;
judging whether the hash value is less than or equal to a preset hash threshold value;
and if the hash value is less than or equal to a preset threshold value, determining that the preset miner node is a miner node of the block chain.
6. The blockchain-based vehicle management method according to claim 1, wherein the updating the blockchain to enable the blockchain to determine the trust data of the first vehicle through a preset accumulation method to realize the management of the first vehicle comprises:
updating the block data to a block chain so that the block chain verifies the block data, adding the block data to the block chain after the block chain passes the verification, and determining trust data of the first vehicle by a preset accumulation method so as to realize management of the first vehicle.
7. The block chain-based vehicle management method according to claim 5, wherein the calculating according to the block information to obtain the hash value of the block comprises:
calculating the block information according to a second preset formula to obtain a hash value of the block;
wherein the second preset formula is as follows:
Hash(ID||PraHash||TimeStamp||nonce);
wherein, the ID is an identity number, the prelash is a hash value of a previous block, the TimeStamp is a TimeStamp, and the nonce is a random number.
8. A blockchain-based vehicle management apparatus, comprising:
the acquisition module is used for acquiring the scores of the event messages uploaded by the first vehicle in the Internet of vehicles;
the computing module is used for computing according to the event message score to obtain the variation of the trust value;
the determining module is used for determining the miner nodes of the block chain;
the block generation module is used for packaging the change quantity of the trust value into the miner node to form new block data;
and the trust data determining module is used for updating the block data to a block chain so that the block chain determines the trust data of the first vehicle through a preset accumulation method to realize the management of the first vehicle.
9. A blockchain-based vehicle management apparatus, comprising: a memory, a processor, and a blockchain based vehicle management program stored on the memory and executable on the processor, the blockchain based vehicle management program configured to implement the blockchain based vehicle management method of any of claims 1 to 7.
10. A storage medium having stored thereon a blockchain-based vehicle management program that, when executed by a processor, implements the blockchain-based vehicle management method according to any one of claims 1 to 7.
CN202110479619.5A 2021-04-29 2021-04-29 Block chain-based vehicle management method, device, equipment and storage medium Pending CN113076560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110479619.5A CN113076560A (en) 2021-04-29 2021-04-29 Block chain-based vehicle management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110479619.5A CN113076560A (en) 2021-04-29 2021-04-29 Block chain-based vehicle management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113076560A true CN113076560A (en) 2021-07-06

Family

ID=76616118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110479619.5A Pending CN113076560A (en) 2021-04-29 2021-04-29 Block chain-based vehicle management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113076560A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124990A (en) * 2021-09-29 2022-03-01 安徽江淮汽车集团股份有限公司 Vehicle networking trust management method based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110189128A (en) * 2019-06-06 2019-08-30 西安安盟智能科技股份有限公司 A kind of algorithm and device of the distributed common recognition quickly generated for block
CN111431695A (en) * 2020-03-24 2020-07-17 武汉理工大学 Software defined tactical network node credit management method based on block chain
CN111447177A (en) * 2020-03-02 2020-07-24 西北工业大学 Vehicle networking trust management method based on block chain
WO2020215247A1 (en) * 2019-04-24 2020-10-29 Nokia Technologies Oy Method and apparatus for supporting blockchain-based data storage in vehicular network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020215247A1 (en) * 2019-04-24 2020-10-29 Nokia Technologies Oy Method and apparatus for supporting blockchain-based data storage in vehicular network
CN110189128A (en) * 2019-06-06 2019-08-30 西安安盟智能科技股份有限公司 A kind of algorithm and device of the distributed common recognition quickly generated for block
CN111447177A (en) * 2020-03-02 2020-07-24 西北工业大学 Vehicle networking trust management method based on block chain
CN111431695A (en) * 2020-03-24 2020-07-17 武汉理工大学 Software defined tactical network node credit management method based on block chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124990A (en) * 2021-09-29 2022-03-01 安徽江淮汽车集团股份有限公司 Vehicle networking trust management method based on block chain

Similar Documents

Publication Publication Date Title
Mirsadeghi et al. A trust infrastructure based authentication method for clustered vehicular ad hoc networks
Olariu et al. The next paradigm shift: from vehicular networks to vehicular clouds
Raya et al. On data-centric trust establishment in ephemeral ad hoc networks
Zhang A survey on trust management for vanets
Studer et al. TACKing together efficient authentication, revocation, and privacy in VANETs
Gazdar et al. An enhanced distributed trust computing protocol for VANETs
Soni et al. Secure communication and implementation technique for sybil attack in vehicular Ad-Hoc networks
CN104333596B (en) Information reliability assessment method in Internet of vehicles environment
CN108810155B (en) Method and system for evaluating reliability of vehicle position information of Internet of vehicles
JP2013513256A (en) Method for public key infrastructure for automotive networks with a limited number of infrastructure servers
CN104702418B (en) A kind of vehicle identity authentication method for dividing equally RSU calculation amounts
Chaurasia et al. Trust computation in VANETs
Shrestha et al. Trustworthy Event‐Information Dissemination in Vehicular Ad Hoc Networks
Kerrache et al. RITA: RIsk‐aware Trust‐based Architecture for collaborative multi‐hop vehicular communications
Wu et al. A dempster-shafer theory based traffic information trust model in vehicular ad hoc networks
Hatzivasilis et al. MobileTrust: Secure knowledge integration in VANETs
Bhargava et al. A Systematic Approach for Attack Analysis and Mitigation in V2V Networks.
CN117202203A (en) Multi-factor comprehensive trust evaluation method in Internet of vehicles environment
CN113076560A (en) Block chain-based vehicle management method, device, equipment and storage medium
Roy et al. BLAME: A blockchain-assisted misbehavior detection and event validation in VANETs
Vulimiri et al. Application of secondary information for misbehavior detection in VANETs
Molina-Gil et al. Data aggregation for information authentication in VANETs
Yakan et al. A novel ai security application function of 5G core network for V2X c-its facilities layer
Wang et al. BIBRM: A Bayesian inference based road message trust model in vehicular ad hoc networks
de Fuentes et al. WEVAN–A mechanism for evidence creation and verification in VANETs

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