Skip to Content
SensorsSensors
  • Article
  • Open Access

18 July 2022

22 Pages

On a Blockchain-Based Security Scheme for Defense against Malicious Nodes in Vehicular Ad-Hoc Networks

,
,
and
1
School of Economics and Management, Chang’an University, Xi’an 710064, China
2
School of Information Engineering, Chang’an University, Xi’an 710064, China
3
Department of Data Science, New Jersey Institute of Technology, Newark, NJ 07102, USA
*
Author to whom correspondence should be addressed.

Abstract

Vehicular ad-hoc networks (VANETs) aim to provide a comfortable driving experience. Sharing messages in VANETs can help with traffic management, congestion mitigation, and driving safety. However, forged or false messages may undermine the efficiency of VANETs. In this paper, we propose a security scheme based on blockchain technology, where two types of blockchain are constructed based on roadside units (RSUs) and Certificate Authorities (CAs), respectively. The proposed security scheme has multifold goals to identify malicious nodes and detect forged messages based on multiple factors, such as reputation of sender nodes, and time and distance effectiveness of messages. In addition, an incentive mechanism is introduced on the RSU blockchain to encourage RSUs to adopt active behaviors. Extensive simulations show that the proposed scheme exhibits superior performances to existing methods in detecting forged messages and identifying malicious nodes. Meanwhile, it provides privacy protection and improves the efficiency of vehicular networks.

1. Introduction

It is estimated that the total number of registered vehicles will reach two billion within the next 10 to 20 years [1]. Vehicular ad-hoc networks (VANETs) has been considered as the foundation of an intelligent transportation system (ITS) to improve transportation efficiency and ensure the safety of both vehicles and drivers. There are two types of communications in VANETs, namely, vehicle-to-vehicle (V2V) communication and vehicle-to-infrastructure (V2I) communication, which are carried out to facilitate cooperation and sharing among vehicles and RSUs.
Compared with the traditional networks, VANETs has its own unique characteristics, such as dynamic topology, high mobility and volatility, which render it vulnerable to various types of attacks from malicious vehicular nodes. Malicious nodes behave in different ways. For example, they may broadcast false information, which causes traffic jams or threatens drivers’ lives; they may intentionally drop a received message or refuse to help other vehicular nodes’ forward messages. Therefore, it has become an important yet practical problem to identify malicious nodes and detect forged messages in VANETs.
There exist many solutions in the literature, which can be divided into three categories. (i) Entity-oriented trust models, which evaluate the trustworthiness levels of vehicle nodes to identify selfish or malicious nodes [2,3]. (ii) Data-oriented trust models, which detect malicious nodes by evaluating the trustworthiness of messages [4]. (iii) Hybrid trust models, which combine both entity-oriented and data-oriented methods [5]. In addition, some security certification schemes have been proposed to determine the legitimacy of a vehicle node, such as the methods based on frequency identification [6], anonymous certificates [7,8] and group signature [9,10].
Blockchain is the underlying technology for the Bitcoin protocol that emerged in 2008 [5]. Blockchain provides a secure shared database as a ledger or log of transactions, without requiring a central trusted party for management. The consistency of blockchain is guaranteed through a distributed consensus protocol, where a set of participants (validators), in a trust-less, peer-to-peer network, collaborate in a completely transparent way to accept only valid transactions. These significant features of blockchain make it an excellent candidate for establishing a desirable trust model in VANETs. However, the original design goal of Bitcoin did not consider the privacy of nodes. By reviewing the ledger, the transactions made with any public key are traceable to a real identity.
Considering the characteristics of blockchain, we propose a security scheme to identify malicious nodes and detect forged messages based on the technology of blockchain while simultaneously preserving the identity privacy of vehicles.
In particular, compared with the existing methods, our work makes the following main contributions:
(1)
We developed a blockchain-based security scheme for VANETs, where the blockchain on RSUs is able to identify malicious nodes and detect forged messages, and the blockchain on CAs is able to issue and revoke certificates for vehicles.
(2)
We designed an incentive consensus mechanism on RSUs to encourage cooperative behaviors using award and punishment measures.
(3)
Combined with the storage characteristics of blockchain, we designed a public–private key pseudonym strategy to protect the privacy of vehicles.
The rest of this paper is organized as follows. In Section 2, we summarize the related work. In Section 3, we formulate the problem under study. Section 4 details the proposed scheme. Section 5 presents and analyzes the simulation results. We conclude our work in Section 6.

3. Problem Statement

In this section, we present application scenarios in VANETs, construct a model of VANETs based on blockchain, and define the objectives of our design.

3.1. Application Scenarios in VANETs

Generally, there are two types of communications in VANETs: vehicle to vehicle (V2V) and vehicle to infrastructures (V2I). Vehicle nodes equipped with sensors communicate with each other. They are able to send, transmit, and share various types of data, such as traffic condition, service information, and entertainment information. Vehicle nodes are also able to communicate with RSUs. Sharing information, especially traffic safety-related messages, is fundamental for vehicles in VANETs.
However, malicious vehicle nodes in VANETs may send forged messages for their own interests. In Figure 1, a malicious vehicle node sends a forged message that reports a crash accident ahead to its neighbor nodes. When a normal node receives the forged message, it will modify its original driving route accordingly. Such false information may affect the drivers’ judgment and endanger the safety of driving. Therefore, identifying forged messages and malicious vehicle nodes is the basis of secure communication in VANETs.
Figure 1. A scenario with malicious nodes in vehicular networks.
In this paper, we propose a security scheme based on blockchain to identify forged safety information (such as inclement weather broadcast, icy road, traffic jam, and traffic accident) and malicious vehicle nodes.

3.2. Blockchain-Based VANETs Model

We propose to adopt the technology of blockchain in VANETs, as illustrated in Figure 2, where there are four types of entities: vehicle nodes, RSUs, Certificate Authority, and Law Enforcement Authority, as described below.
Figure 2. Blockchain-based vehicle networks.
  • Law Enforcement Authority (LEA): The functions of LEA include registration of vehicles, authorization of a CA to issue certificates, etc.
  • Certificate Authority (CA): A CA issues a certificate for a vehicle when it obtains a warrant from the LEA. All actions of a CA will be recorded transparently in the blockchain of CAs and can be verified by every CA in the VANETs.
  • RSU: All broadcasted messages and transactions are verified by RSUs and then recorded in the RSU blockchain. The main functions of RSU include monitoring behaviors of vehicles and evaluating the reputation scores of each vehicle.
  • Vehicles: Vehicles equipped with OBU devices are moving entities and communicate with each other to share various types of messages.
There are two blockchains in the proposed scheme:
(1)
Blockchain for Certification on CA (BCCA)
BCCA acts as the public ledger for all issued certifications. All actions of a CA are recorded transparently in the BCCA. A transaction in the BCCA refers to a message broadcasted by a CA to issue or revoke a certificate. Each transaction contains the timestamp and the digital signature of the CA. In order to preserve the privacy of vehicles, no information linkable to the real identity is included in the transaction.
(2)
Blockchain for Identification on RSU (BCIR)
BCIR acts as the public ledger for all transactions, which include identifying forged messages or malicious vehicle nodes among RSUs. All actions of a RSU are recorded transparently in the BCIR blockchain. A transaction in BCIR refers to a message broadcasted by a RSU, which is able to identify the trustworthiness of message sharing in VANETs, and also evaluate the behaviors of vehicles. The results of identification or evaluation are broadcasted and regarded as transactions.
BCCA and BCIR bring considerable convenience to data exchange between connected smart device, such as CAs or RSUs. In BCCA, the blockchain technology is able to secure assigning and revoking certifications for vehicles. In BCIR, the blockchain technology is able to secure management of vehicles’ reputations and ensure secure communications between RUSs. Simultaneously, it also can help identify malicious nodes and detect forged messages.
Each vehicle registers with the LEA using its own real identity to ensure the traceability of malicious nodes. The CA assigns a certification to a vehicle if it achieves a warrant from the LEA. Certifications help vehicles construct trusted relationships when a vehicle communicates with other vehicles or RSUs.
In the framework illustrated in Figure 3, node V j receives a message sent by V i . To assess the trustworthiness of the message, V j sends this message to the nearest RSU. To determine the legitimacy of V j , the RSU sends V j ’s pseudonym to the nearest CA when it receives the message from V j . As the blockchain of CA contains the linkages between the vehicles’ pseudonyms and their real identities, the CA is able to identify whether or not V j is a legitimate node and sends the result of identification to the RSU. If V j is not a legitimate node, the RSU drops this message; otherwise, the blockchain of RSU evaluates the trustworthiness of the message and sends the result of evaluation to V j .
Figure 3. The flow chart of detection.

3.3. Design Objectives

Due to the unique characteristics of high mobility and limited connectivity, VANETs are prone to various types of cyber attacks from malicious vehicle nodes, which affect the efficiency of VANETs and threaten the safety of drivers. Towards this end, we propose a detection scheme based on a blockchain consensus mechanism following several design goals:
  • The first goal was to address the problem of centralization in vehicular networks. Our work adopted blockchain technology to construct a novel decentralized architecture for vehicular networks.
  • The second goal was to design a malicious node identification scheme based on an incentive consensus mechanism which is able to identify the legitimacy of a received message and detect malicious nodes by evaluating the trustworthiness of the source nodes. Meanwhile, the consensus is able to stimulate RSUs to enact active behaviors.

4. A Security Scheme Based on a Blockchain Consensus Mechanism

In this section we propose a blockchain-based security method, referred to as BCSM, and present its design details.

4.1. Assumption

Firstly, we give some necessary assumptions as the foundation of the proposed scheme.
(1)
The adversary is not able to compromise more than a half of the vehicles in the network. This is a reasonable assumption in practice.
(2)
Certification Authorities (CAs) and RSUs are equipped with customized hardware with high computing power.
(3)
Cryptography technology provides a secure communication channel between entities as long as the secret key is not compromised.

4.2. Initialization of VANETs Based on Blockchain

Initially, each entity on BCCA and BCIR generates a pair of private and public keys. When a vehicle V i enters VANETs, it sends a message that contains its private information to prove its legitimate identification. If the message is valid, LEA sends a signed warrant to the CA, which then issues an initial certificate to vehicle V i . LEA stores the received message in the database with high-level security, which will be used for tracking the vehicle’s real identity in cases of disputes.
(1)
Blockchain establishment: There are two blockchains set up during this stage. All CAs form a blockchain for certification, and all RSUs form a blockchain for identification. Each member of a blockchain is equal and has the same rights and obligations.
(2)
Certification: V i registers with a CA for the first time by submitting its vehicle ID obtained from the LEA. The CA verifies the vehicle ID and issues a certification to V i , which contains the expiration date, a pseudo-ID P I D V i , the public–private keys, the signatures of authorities, and the initial reputation value assigned for V i .
The blockchain of CA maintains a database, which stores the hash map of a mapping of pseudo-IDs of vehicles with the certificates. This blockchain ensures the traceability of issuing or revoking certificates.

4.3. Detection Scheme

Messages transmitted in VANETs are described in Table 1 and fall into three categories: beacon messages, alert messages, and entertainment messages. Alert messages are broadcast in an emergency and are critical to safe driving. Therefore, in this paper, we focus on how to detect forged alert messages based on the blockchain technology in VANETs. Alert messages normally report emergency situations described in Table 2, where T T L e v e n t and R a n m s g denote life cycle and the longest transmission range of the event reported in an alert message, respectively. As shown in Table 2, alert messages are divided into four categories and have different life cycles.
Table 1. Message packet format.
Table 2. Alert message classification.
As illustrated in Figure 4, the security scheme is comprised of four components: identification of the legitimacy of a vehicle; an incentive consensus mechanism; identification of forged messages and malicious vehicle nodes; and the public–private key mechanism and RSA encryption algorithm are adopted in the scheme to protect the security and privacy of vehicles. The ledgers of BCIR and BCCA in this scheme are illustrated in Figure 5.
Figure 4. The scheme structure.
Figure 5. The ledgers of BCIR and BCCA.
(1)
Verify a vehicle’s legal identification
When V i receives an alert message from V j , it sends the received message to a nearby RSU and requests it to identify the legitimacy of the message. The RSU checks if V i has a legal identification before evaluating the trustworthiness of the message. Algorithm 1 illustrates the steps to verify the identification of V i . For secure communication, the RSA method is adopted in Algorithm 1.
Step 1: Vehicle V i sends a request to a RSU within its communication range to verify the message received from vehicle V j . The request includes the received message, the pseudo-ID P I D V i , and P K V i , which is the public key of V i .
Step 2: After receiving the request, the RSU sends a message, which includes P I D V i and a random value L to the closest CA. Note that L is produced by the method of linear congruence generator (LCG), calculated as:
L 0 = d L r + 1 = ( A ∗ L r + Z ) mod ( M ) ,
where d is a seed value, and its initial value is set to be the current system time; A is a multiplier; Z is an increment value; and M is a modulus. Note that M and Z are prime numbers to each other.
Step 3: When the CA receives the message from the RSU, it checks the ledger of BCCA. If P I D V i is stored in the ledger, then V i is a legitimate vehicle; otherwise, it is an illegitimate one. Then, a session key k s is created by the random value L encrypted with the private key of the CA. E P B R U S [ k s ] is created by encrypting k s with the public key of the RSU P B R S U and E k s [ r e p o r t ] is created by encrypting the checking report with k s . Finally, E k s [ r e p o r t ] and E P B R U S [ k s ] are encrypted with P B R S U and sent to the RSU. The encryption is performed as
E : C = E P B R S U E P B R S U K s E K s r e p o r t ,
where E is a function of encryption and C represents the plaintext.
Step 4: When the RSU receives the encrypted result from the CA, it decrypts the result with its own P K R S U to obtain E k s [ r e p o r t ] and E P B R U S [ k s ] . Then, the RSU decrypts E P B R U S [ k s ] with its P K R S U to obtain k s . Finally, the report is created by decrypting E k s [ r e p o r t ] with k s . This decryption process is described as
D : E P B R S U K s E K s r e p o r t = D P B R S U [ C ] ,
where D is a function of decryption.
Algorithm 1 Verify a vehicle’s legal identification
Input: 
V i , P I D V i , P B R S U and P K C A ;
Output 
verification result;
 1:
V i sends a request to BCIR;
 2:
LCG is used to produce L;
 3:
L and P I D V i are sent to BCCA;
 4:
CA checks the ledger on BCCA;
 5:
if P I D V i is stored in the ledger then
 6:
     V i is a legal vehicle;
 7:
else
 8:
     V i is an illegal vehicle;
 9:
end if
 10:
Encrypt L with P K C A as K s ;
 11:
Encrypt the verification result with K s as E K s r e p o r t ;
 12:
Encrypt E K s r e p o r t and E P B R S U K s with P B R S U ;
 13:
Send E P B R S U [ K s ] | | E K s [ r e p o r t ] to the RSU;
 14:
The RSU decrypts E P B R S U [ K s ] | | E K s [ r e p o r t ] ;
 15:
Output the verification result.
(2)
POS consensus with an incentive mechanism
If V i is verified as a legitimate vehicle by the BCCA blockchain, the BCIR blockchain then identifies whether or not the message sent by V i was forged.
To stimulate the RSUs to take active behaviors, a consensus appropriate for VANETs should be constructed. Consensus in a blockchain is a process where all peers of the network reach a common agreement on the present state of the distributed ledger. At present, the most common consensus algorithms include POW, POS, and PBFT. From the advent of Bitcoin to today, there over 30 consensus algorithms have emerged [37], most of which are based on the above three consensus algorithms.
Unlike other traditional consensus, nodes in BCIR are designed to utilize computing power for forged message validation rather than merely solving the difficult hash problem. Therefore, we designed a novel consensus POS based on an incentive mechanism (POS-I) for BCIR in VANETs. According to the POS consensus with an incentive mechanism, when an RSU enacts active behavior, it receives energy benefit. POS-I is described in Algorithm 2.
Algorithm 2 Consensus mechanism POS-I
Input: 
E g y o , k, T h E g y , Δ T pos , a, J, P r ;
Output 
committer peer;
 1:
RSU sends a request to CA;
 2:
BCCA initializes an election for selecting committer peer;
 3:
for all RSU participating in the election do
 4:
    R l submits Δ E g y c o n s u m e _ l = k 2 ( k + 1 ) E g y o _ l as deposit;
 5:
   Calculate E g y e _ l = E g y o _ l − Δ E g y c o n s u m e _ l ;
 6:
    if  E g y e _ l < T h E g y  then
 7:
         R l cannot participate in the election;
 8:
    else
 9:
         R l is regarded as a candidate;
 10:
   end if
 11:
    Calculate S t a k e R − l = ∑ x = 1 J E g y x ∗ ( 1 + a % ) J ;
 12:
end for
 13:
Selecting the node whose has M a x s t a k e as the committer peer ;
 14:
Calculate Δ E g y r e w o r d = 1 − E g y J − 1 2 ;
 15:
Calculate E g y J = E g y J − 1 × e 1 Δ T J − 1 _ J + Δ E g y c o n s u m e × P r + Δ E g y r e w o r d ;
 16:
Output committer peer.
Step 1: BCCA initializes an election to select a committer peer. The RSUs, which would like to participate in the election, submit deposits in order to become candidates. The energy value of every candidate R S U is reduced as a deposit. The process of calculating deposit is described as:
Δ E g y c o n s u m e _ l = k 2 ( k + 1 ) E g y o _ l ,
where Δ E g y c o n s u m e _ l denotes the submitted deposit, E g y o _ l denotes the current energy value of R S U l , k denotes the total number of participation elections of R S U l , and the initial value k is set to zero.
RSUs have various types of behaviors in VANETs, such as broadcasting messages, participating election of selecting a committer peer, and identifying the trustworthiness of a message. Normally, the energy of a RSU changes with different behaviors. For example, when it broadcasts messages in VNAETs, its energy is consumed. Meanwhile, in order to encourage its active behaviors, it is also rewarded a certain energy. The reward is larger than the consumed energy.
After submitting the deposit, the energy of R l is updated as:
E g y e _ l = E g y o _ l − Δ E g y c o n s u m e _ l .
Step 2: If the energy of R l is lower than T h E g y , which is a threshold, R l is deleted from the candidate group; otherwise, it remains in the candidates group.
Step 3: The total number of elections initialized by BCCA is counted as J. After every election for a committer, the energy of every RSU on BCIR is updated. Stakes refer to the assets (or energy) owned by a node. The idea is that the more active behaviors an RSU has, the more stakes it owns. The stake of each RSU candidate is calculated as
S t a k e R − l = ∑ x = 1 J E g y x ∗ ( 1 + a % ) J ,
where S t a k e R − l denotes the stake of R l , and E g y x denotes the energy value of R l after the x-th election. The RSU, which has the highest stake value among the candidate group, is selected as the committer peer.
Step 4: When the committer peer is selected according to the above process, BCCA refunds a certain percent of deposit to each candidate RSU. Now, BCCA updates all RSUs. The updating process is described as
E g y J = E g y J − 1 × e 1 Δ T J − 1 _ J + Δ E g y c o n s u m e × P r + Δ E g y r e w o r d ,
where E g y J denotes the energy of a RSU after the J t h election initialized by BCCA, E g y J − 1 denotes the energy of a RSU after the ( J − 1 ) t h election, and P r denotes a certain percent of deposit refunded. Especially, we set e 1 Δ T J − 1 _ J to be an attenuation coefficient. Meanwhile, BCCA offers a reward Δ E g y r e w o r d to the committer peer, calculated as
Δ E g y r e w o r d = 1 − E g y J − 1 2 .
As mentioned above, if R S U l is selected as a committer peer on BCIR, it gains the reward energy and be refunded at a certain percentage.
(3)
Verify the integrity of messages
The RSU, which is elected as a committer peer, verifies the message integrity sent from V i . Algorithm 3 describes the verification process for message integrity.
Algorithm 3 Verify message integrity
Input: 
P K c o m m i t t e r , P B c o m m i t t e r , P K C A , P B C A ;
Output 
Message integrity result;
 1:
Calculate the hash code h ( m ) of m;
 2:
Encrypt h ( m ) with the P K c o m m i t t e r as the committer R S U ′ s digital signature;
 3:
Add the digital signature in the message m to get m ′ ;
 4:
Use LCG to get a random number G;
 5:
Encrypt G with the P B c o m m i t t e r as C o m m i t t e r K s ;
 6:
Encrypt m ′ with C o m m i t t e r K s as E C o m m i t t e r K s [ m ′ ] ;
 7:
Encrypt C o m m i t t e r K s with P B C A as E P B C A [ C o m m i t t e r K s ] ;
 8:
Send E C o m m i t t e r K s [ m ′ ] and E P B C A [ C o m m i t t e r K s ] to BCCA;
 9:
CA decrypts E P B C A [ C o m m i t t e r K s ] with P K C A to get C o m m i t t e r K s ;
 10:
Decrypt E C o m m i t t e r K s [ m ′ ] with C o m m i t t e r K s to get digital signature;
 11:
Decrypt digital signature with P B c o m m i t t e r to get h ( m ) ;
 12:
CA on the message m hashes to get H ( m ) ;
 13:
if   h ( m ) = H ( m ) then
 14:
    the m is verified as integrity;
 15:
else
 16:
    the m is tampered;
 17:
end if
 18:
Output the message integrity result.
Step 1: The committer RSU on a message m hashes to get the synopsis of m, which is denoted as h ( m ) . Then, h ( m ) is encrypted with the committer RSU’s private key P K c o m m i t t e r . The result of encryption is considered as the committer RSU’s digital signature and is added in the message m to get m ′ .
Step 2: The committer RSU employs the LCG method to obtain a random number G, and a session key C o m m i t t e r K s is created by encrypting G with the committer RSU’s public key P B c o m m i t t e r .
Step 3: E C o m m i t t e r K s [ m ′ ] , which is created by encrypting m ′ with C o m m i t t e r K s , and E P B C A [ C o m m i t t e r K s ] are sent to the CA, which is the closest to the RSU.
Step 4: The CA decrypts E P B C A [ C o m m i t t e r K s ] with its private key P K C A to get C o m m i t t e r K s , and E C o m m i t t e r K s [ m ′ ] is decrypted with C o m m i t t e r K s to get m and the committer RSU’s digital signature.
Step 5: The committer RSU’s digital signature is decrypted with P B C o m m i t t e r to get h ( m ) . The CA that is the closest to the RSU on the message m hashes to get H ( m ) . If h ( m ) is equal to H ( m ) , m is verified as integrity.
(4)
Verify the legitimacy of messages.
In our scheme, BCIR acts as a distributed public ledger, which stores the reputation values of every vehicle in the blockchain. BCIR first checks the sender vehicle V j ’s reputation and then verifies the trustworthiness of the message. If the reputation of V j is smaller than the reputation threshold R t h r e s h o l d , the message from this node is labeled as forged information. Otherwise, BCIR checks the message based on the evidence with respect to E v e n t T y p e , L o c e v e n t , E v e n t T i m e , time effectiveness, and distance effectiveness.
As mentioned above, the committer RSU follows the message verification policies to determine the message’s trustworthiness as follows:
  • Check the sender’s reputation from the vehicle reputation table on BCIR.
  • Check E v e n t T y p e , L o c e v e n t , and E v e n t T i m e .
  • Check time effectiveness and distance effectiveness.
If the sender’s reputation is larger than R t h r e s h o l d , E v e n t T y p e , L o c e v e n t , and E v e n t T i m e of the received message are checked in the historical event table on BCIR in order to evaluate if an event reported in the message has been stored in the historical event table.
If E v e n t T y p e of a message in the historical event table is the same as m E v e n t T y p e , the message is placed in S m , defined as S m = { e 1 , e 2 , . . . , e z } , where z denotes the total number of messages in S m . For e q ∈ S m , the distance between e q and m is calculated as:
D i s = ( m x L o c e v e n t − e q x L o c e v e n t ) 2 + ( m y L o c e v e n t − e q y L o c e v e n t ) 2 + ( m E v e n t T y p e − e q E v e n t T y p e ) 2 ,
where m L o c e v e n t = < m x L o c e v e n t , m y L o c e v e n t > , where m x L o c e v e n t and m y L o c e v e n t denote the longitude and latitude of m, respectively; and e q L o c e v e n t is defined as < e q x L o c e v e n t , e q y L o c e v e n t > , which denote the longitude and latitude of e q , respectively. The similarity of e q and m is calculated as
S i m e q _ m = 1 1 + D i s .
If S i m e q _ m is larger than T h S i m , m is considered to be the same as e q , and it checks time effectiveness and distance effectiveness. Otherwise, m is treated as a new one.
If Δ t is over T h t , the distance effectiveness is checked; otherwise, it is dropped because it expires:
Δ t < T h t , Δ t = R e c T i m e − E v e n t T i m e .
If Δ t is over T h d , the message is dropped; otherwise, it is considered to be a reliable message:
Δ d < T h d , Δ d = L o c v e h i c l e − L o c e v e n t .
The process for identifying the trustworthiness of a message is illustrated in Algorithm 4.
Algorithm 4 Verify the legitimacy of messages
Input: 
R t h r e s h o l d , T h S i m , T h t , T h d ;
Output 
the legitimacy of messages;
 1:
For a message m;
 2:
if R s o u r c e < R t h r e s h o l d then
 3:
    m is verified as a forged message;
 4:
end if
 5:
for all events recorded in historical event table on BCIR do
 6:
    Compare E v e n t T y p e of the event with m E v e n t T y p e ;
 7:
    if  E v e n t T y p e of the event is the same as m E v e n t T y p e  then
 8:
        Place the event in S m ;
 9:
        for all events in S m  do
 10:
           Calculate S i m = 1 1 + D i s , e q ∈ S m ;
 11:
           if  S i m > T h S i m  then
 12:
               The event in m is the same as e q ;
 13:
           end if
 14:
        end for
 15:
    else
 16:
        Calculate Δ t = R e c T i m e − E v e n t T i m e ;
 17:
        if  Δ t > T h t  then
 18:
           m is outdated and discarded;
 19:
        else
 20:
           Calculate Δ d = L o c v e h i c l e − L o c e v e n t ;
 21:
           if  Δ d < T h d  then
 22:
               m is a legitimate message;
 23:
           end if
 24:
        end if
 25:
    end if
 26:
end for
If the received message is valid and trustworthy based on the aforementioned policy, it is stored in the historical event table on BCIR and the sender vehicle’s reputation is increased. Otherwise, the sender vehicle’s reputation is decreased. When a vehicle’s reputation value is below the threshold R V , it is considered to be a malicious node. The reputation of V i is calculated as
R V j _ T = R V j _ T − 1 × T r u e m s g _ T S u m m s g _ T ,
where R V j _ T represents the reputation value of V j in the time period T, R V j _ T − 1 denotes V j ’s reputation in the time period T − 1 , and S u m m s g _ T and T r u e m s g _ T represent the total numbers of messages and forged messages sent from R V j in the time period T, respectively.

5. Simulation-Based Experiments and Performance Analysis

We present the performance evaluation of our proposed blockchain-based VANETs architecture in this section.

5.1. Simulation Environment

Simulation System Setup

To test and optimize the performance of the security scheme, we used ONE to simulate the network. Meanwhile, the SUMO (Simulation of Urban Mobility) framework was used as the mobility generator to prototype inter-modal traffic systems.
The vehicles in the SUMO simulator are shown as the dynamic nodes in the ONE framework. We programmed their functionality and behavior while the movement utilized the built-in libraries and procedures. In the simulation-based experiments, we used the shortest path map-based movement model in ONE to simulate vehicle behaviors on the road. The model initially places the nodes at random locations, but selects specific destinations for all nodes in the map and uses Dijkstra’s shortest path algorithm to find the shortest path to the destination.
There were two scenarios in the simulation experiments: low traffic density and high traffic density. As shown in Figure 6, the vehicle node performed simulated motion based on the Helsinki City map (Finland). The settings of the nodes are not arbitrary and include various types: emergency vehicles, such as police cars and ambulances; vehicles with fixed lines, such as buses and trams; and randomly distributed vehicles, such as private cars and taxis.
Figure 6. Helsinki City map (Finland).
The specific simulation parameters are shown in Table 3. Each simulation is repeated twenty times to calculate the average. In our experiments, the number of malicious vehicles that sent forged or bogus messages in VANETs varied from 10% to 45%. When the malicious vehicles were over 45%, VANETs had drastically decreasing efficiency and could not provide any reliable services. Hence, we did not consider this extreme situation.
Table 3. Simulation parameter settings.
Additionally, several fixed nodes are manually added to the map to function as RSU infrastructure. The locations of all nodes are shown in Figure 7, where we also identify the specific locations of the deployed RSUs.
Figure 7. Locations of all nodes before the simulation started.
We conducted detailed analysis of the experiments under these parameters and simulation settings in the following section.

5.2. Simulation Results and Analysis

In order to evaluate the proposed scheme, we ran two sets of experiments: the first evaluated the detection of malicious forged messages; the second set evaluated the performance of the protocol combined with the security scheme.

5.2.1. Evaluate the Detection of Forged Messages

To evaluate the detection performance of the proposed scheme, we considered false alarm rate ( F A R ) and missed detection rate ( M D R ) as the performance metrics:
F A R = N f N i ,
M D R = N m i s s N ,
where N f denotes the total number of true messages that are identified as false messages by the method, N i denotes the total number of true messages, N m i s s denotes the total number of false messages that are identified as true messages by the method, and N denotes the total number of false messages.
We chose H C P D S [38] and G B P M [39] as baseline methods for comparison. B C S M is the security mechanism proposed in this paper. Note that there are two blockchains in B C S M : B C C A and B C I R . In our experiments, POS consensus with an incentive mechanism was used to encourage RSUs to take active behaviors. We compared B C S M with the baseline methods mentioned above.
Figure 8 and Figure 9 plot the F A R in high and low traffic density scenarios, respectively. Compared with H C P D S and G B P M , B C S M had lower F A R because it adopts two types of blockchain B C I R and B C C A to validate the legitimacy of sender nodes and identify the trustworthiness of messages transmitted in VANETs.
Figure 8. F A R for low traffic density.
Figure 9. F A R for high traffic density.
Figure 10 and Figure 11 plot the M D R in high and low traffic density scenarios, respectively. As the percentage of malicious nodes increases from 15 % to 45 % , the M D R of H C P D S and G B P M increases. Compared with these two methods, B C S M is able to effectively mitigate the negative effect from the increase of malicious vehicle nodes and maintain a relatively stable level in terms of M D R .
Figure 10. M D R for low traffic density.
Figure 11. M D R for high traffic density.

5.2.2. Evaluate the Performance of Transmission

For the evaluation of message transmission, we considered three performance metrics: delivery rate, delay and overhead rate.
(1)
Delivery rate: It refers to the percentage of successful transmissions among all messages sent by nodes in the network. The higher the delivery rate, the higher the communication quality between nodes, and the better the overall network performance.
(2)
Delay: It refers to the average time from creating a message to successfully delivering the message to the target node. The shorter the delay, the better the overall simulation performance.
(3)
Overhead rate: It refers to the difference between the number of forwarded and the number of delivered messages.
We compare the proposed scheme with A O D V , T B M [40], and B S I A [31], and summarize the simulation results as follows.
Figure 12 and Figure 13 plot the delivery rate in high and low traffic density scenarios, respectively. In either case, as the number of malicious nodes increases, the delivery rate decreases. A O D V has a less packet delivery fraction because malicious nodes drop packets. Compared with other baseline methods, our proposed algorithm shows better performance in terms of delivery rate.
Figure 12. Delivery for low traffic density.
Figure 13. Delivery for high traffic density.
Delay rate is the most important metric for assessing the network performance, as it depicts how an additional overhead of the security measure increases the delay in the process of routing. As shown in Figure 14 and Figure 15, A O D V has the lowest delay rate because it does not consider any security measures. Compared with T B M S and B S I A , B C S M has a lower delay rate.
Figure 14. Delay for low traffic density.
Figure 15. Delay for high traffic density.
Figure 16 and Figure 17 show the comparison results of overhead rate. A O D V has the lowest delay rate because it does not consider any security measures. In low traffic density, the overhead of our proposed algorithm is higher than that of other methods. In high traffic density, compared with other baseline methods, the overhead of our proposed algorithm is slightly higher than those of T B M S and B S I A . Obviously, B C S M is more suitable for urban traffic environments where high traffic density is almost the norm.
Figure 16. Overhead with low traffic density.
Figure 17. Overhead with high traffic density.
B C S M based on blockchain technology provides secure communications for CAs and RSUs. The experimental results show that B C S M effectively improves the efficacy of VANETs. Meanwhile, it achieves better performance in detecting forged messages and identifying malicious nodes.

6. Conclusions and Discussion

Detecting and identifying forged messages and malicious nodes in highly dynamic and complicated mobile networks is a challenging problem. In this paper, we proposed a security scheme based on blockchain technology for communication security in VANETs. The proposed scheme constructs two types of blockchains in VANETs: BCIR on RSUs and BCCA on CAs. An incentive consensus mechanism, which encourages RSUs to take active behaviors in VANETs, was designed for BCIR. BCCA is able to identify if a vehicle has a legitimate identity. The legitimacy of a message is evaluated, taking into account various factors, such as integrity of messages, reputation of the sender node, time effectiveness, and distance effectiveness. Meanwhile, the reputation of a node is decided by its communication behaviors. By analyzing a node’s communication behaviors, the scheme is able to identify whether or not the node is malicious. Moreover, the proposed scheme can protect the privacy of vehicles. Simulation-based experiments show that our scheme is feasible and effective for detecting malicious nodes and identifying forged messages in practical vehicle networks.
In the future, we plan to deepen our research to improve the accuracy of the scheme. We are currently in the process of building a traffic service platform to evaluate the performance of our scheme in real-life transportation networks. We will also consider additional security metrics for performance and robustness evaluation.

Author Contributions

Conceptualization, G.L., N.F. and C.Q.W.; Methodology, G.L. and C.Q.W.; Project administration, N.F.; Software, X.Z.; Writing—original draft preparation, N.F.; writing—review and editing, C.Q.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Key Research and Development Plan Project of Shaanxi Province, China. Grant number: 2022GY-039, 2022GY-030.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

This study is supported by Funds for the Key Research and Development Plan Project of Shaanxi Province, China (2022GY-039, 2022GY-030).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jia, D.; Lu, K.; Wang, J.; Shen, X. A survey on platoon-based vehicular cyber-physical systems. IEEE Commun. Surv. Tutorials 2015, 18, 263–284. [Google Scholar] [CrossRef] [Scilit]
  2. Kerrache, C.A.; Lakas, A.; Lagraa, N. Detection of Intelligent Malicious and Selfish Nodes in VANET using Threshold Adaptive Control. In Proceedings of the International Conference on Electronic Devices IEEE, Coimbatore, India, 20–22 April 2017. [Google Scholar]
  3. Kerrache, C.A.; Calafate, C.T.; Lagraa, N.; Cano, J.-C.; Manzoni, P. Rita: Risk-aware trust-based architecture for collaborative multi-hop vehicular communications. Secur. Commun. Netw. 2016, 9, 4428–4442. [Google Scholar] [CrossRef] [Scilit]
  4. Kothari, A.; Shukla, P.; Pandey, R. Trusit centric approach based on similarity in VANET. In Proceedings of the International Conference on Signal Processing IEEE, Xiamen, China, 21–23 September 2017. [Google Scholar]
  5. Rostamzadeh, K.; Nicanfar, H.; Torabi, N.; Gopalakrishnan, S.; Leung, V. A contex- t-aware trust-based information dissemination framework for vehicular networks. IEEE Internet Things J. 2015, 2, 121–132. [Google Scholar] [CrossRef] [Scilit]
  6. Qun, W.; Huanyan, Q.; Gang, Z. An Identity and Location for Vehicle Networking Methods. Comput. Sci. 2012, 39, 131–134. [Google Scholar]
  7. Li, L. Research on Pseudo-Name Based Privacy Protection in the Internet of Vehicles; Springer: Berlin/Heidelberg, Germany, 2017. [Google Scholar]
  8. Xu, H.; Zhengguo, S.; Daxin, T.; Yunpeng, W.; Xuting, D.; Victor C.M., L. Optimized anonymity updating in VANET based on information and privacy joint metrics. In Proceedings of the 8th ACM International Symposium on Design and Analysis of Intelligent Vehicular Networks and Applications, Montreal, QC, Canada, 25 October 2018; pp. 63–69. [Google Scholar]
  9. Minghui, Z.; Yangyang, D.; Hanxiao, L.Y.U. Research on Group Signature Based Identity Authentication Protocol in Internet of Vehicles. Eng. Sci. Technol. 2018, 50, 134–138. [Google Scholar]
  10. Hong, Z.; Jingyu, W.; Jie, C.; Shun, Z. Efficient conditional privacy-preserving and authentication scheme for secure service provision in VANET. Tsinghua Sci. Technol. 2017, 21, 620–629. [Google Scholar]
  11. Gong, H.; Yu, L.; Zhang, X. Social contribution-based routing protocol for vehicular network with selfish nodes. Int. J. Distrib. Sens. Netw. 2014, 2014, 700–705. [Google Scholar] [CrossRef] [Scilit]
  12. Sedjelmaci, H.; Senouci, S.M.; Abu-Rgheff, M.A. An efficient and lightweight intrusion detection mechanism for service-oriented vehicular networks. IEEE Internet Things J. 2014, 1, 570–577. [Google Scholar] [CrossRef] [Scilit]
  13. Khan, U.; Agrawal, S.; Silakari, S. Detection of malicious nodes (DMN) in vehicular ad hoc networks. Proc. Comput. Sci. 2015, 46, 965–972. [Google Scholar] [CrossRef] [Scilit]
  14. Haddadou, N.; Rachedi, A.; Ghamri-Doudane, Y. A job market signaling scheme for incentive and trust management in vehicular ad hoc networks. Veh. Technol. IEEE Trans. 2015, 64, 3657–3674. [Google Scholar] [CrossRef] [Scilit]
  15. Bali, R.S.; Kumar, N. Secure Clustering for Efficient Data Dissemination in Vehicular Cyber Physical Systems; Elsevier: Amsterdam, The Netherlands, 2016. [Google Scholar]
  16. Shaikh, R.A.; Alzahrani, A.S. Intrusion-aware trust model for vehicular ad hoc networks. Secur. Commun. Netw. 2016, 7, 1652–1669. [Google Scholar] [CrossRef] [Scilit]
  17. Gurung, S.; Lin, D.; Squicciarini, A.C.; Bertino, E. Information-Oriented Trust-Worthiness Evaluation in Vehicular Ad-Hoc Networks; Springer: Berlin/Heidelberg, Germany, 2013; pp. 94–108. [Google Scholar]
  18. Mohamed, M.S.; Hussein, S.; Krings, A. An Enhanced Voting Algorithm for Hybrid Jamming attacks in VANET. In Proceedings of the IEEE 7th Annual Computing and Communication Workshop and Conference(CCWC), Las Vegas, NV, USA, 9–11 January 2017; pp. 1–7. [Google Scholar]
  19. Alturkostani, H.; Krings, A. The impact of jamming on threshold-based agreement in VANET. In Proceedings of the International Conference on Connected Vehicles and Expo (ICCVE), Vienna, Austria, 3–7 November 2014; pp. 882–887. [Google Scholar]
  20. Ahmed, S.; Tepe, K. Recommendation trust for improved malicious node detection in ad hoc networks. In Proceedings of the IEEE 86th VTC-Fall, Toronto, ON, Canada, 24–27 September 2017; pp. 1–5. [Google Scholar]
  21. Yao, X.; Zhang, X.; Ning, H. Using trust model to ensure reliable data acquisition in VANETs. Ad Hoc Netw. 2016, 55, 107–118. [Google Scholar] [CrossRef] [Scilit]
  22. Li, W.; Song, H. ART: An Attack-Resistant Trust Management Scheme for Securing Vehicular Ad Hoc Networks. IEEE Trans. Intell. Transp. Syst. 2016, 17, 960–969. [Google Scholar] [CrossRef] [Scilit]
  23. Ahmed, S.; Tepe, K. Misbehaviour detection in vehicular networks using logistictrust. In Proceedings of the Wireless Communications and Networking Conference (WCNC), Doha, Qatar, 3–6 April 2016; pp. 1–6. [Google Scholar]
  24. Sedjelmaci, H.; Senouci, S.M. An accurate and efficient collaborative intrusion detection framework to secure vehicular networks. Comput. Electr. Eng. 2015, 43, 33–47. [Google Scholar] [CrossRef] [Scilit]
  25. Dhurandher, S.K.; Obaidat, M.S.; Jaiswal, A. Vehicular Security Through Reputation and Plausibility Checks. IEEE Syst. J. 2014, 8, 384–394. [Google Scholar] [CrossRef] [Scilit]
  26. Arora, A.; Yadav, S.K. Block Chain Based Security Mechanism for Internet of Vehicles (IoV). In Proceedings of the 3rd International Conference on Internet of Things and Connected Technologies, (ICIoTCT) 2018, Jaipur, India, 26–27 March 2018; pp. 267–272. [Google Scholar]
  27. Lu, Z.; Liu, W.; Wang, Q.; Qu, G.; Liu, Z. A privacy-preserving trust model based on blockchain for VANETs. IEEE Access 2018, 6, 45655–45664. [Google Scholar] [CrossRef] [Scilit]
  28. Yang, Z.; Yang, K.; Lei, L.; Zheng, K.; Leung, V.C.M. Blockchain-based decentralized trust management in vehicular networks. IEEE Internet Things J. 2018, 6, 1495–1505. [Google Scholar] [CrossRef] [Scilit]
  29. Tsung, Y.Y.; Der, C.L.; Wei, T.C.; Hsun, T.F.; Chang, L.C. Blockchain-Based Traffic Event Validation and Trust Verification for VANETs. IEEE Access 2019, 7, 30868–30877. [Google Scholar]
  30. Wagner, M.; McMillin, B. Cyber-Physical Transactions: A Method for Securing VANETs with Blockchains. In Proceedings of the IEEE Pacific Rim International Symposium on Dependable Computing, PRDC, Taipei, China, 4–7 December 2018; pp. 64–73. [Google Scholar]
  31. Nisha, M.; Priyadarsi, N.; Arushi, A.; Xiangjian, H.; Deepak, P. Blockchain Based Secured Identity Authentication and Expeditious Revocation Framework for Vehicular Networks. In Proceedings of the 17th IEEE International Conference on Trust, Security and Privacy in Computing and Communications/12th IEEE International Conference on Big Data Science and Engineering, New York, NY, USA, 1–3 August 2018; pp. 674–679. [Google Scholar]
  32. Zhaojun, L.; Qian, W.; Gang, Q.; Zhenglin, L. BARS: A Blockchain-Based Anonymous Reputation System for Trust Management in VANETs. In Proceedings of the 17th IEEE International Conference on Trust, Security and Privacy in Computing and Communications, New York, NY, USA, 1–3 August 2018; pp. 98–103. [Google Scholar]
  33. Khan, A.S.; Balan, K.; Javed, Y.; Tarmizi, S.; Abdullah, J. Secure Trust-Based Blockchain Architecture to Prevent Attacks in VANET. Sensors 2019, 19, 4954. [Google Scholar] [CrossRef] [Scilit]
  34. Li, H.; Pei, L.; Liao, D.; Sun, G.; Xu, A.D. Blockchain Meets VANET: An Architecture for Identity and Location Privacy Protection in VANET. Peer-to-Peer Netw. Appl. 2019, 12, 1178–1193. [Google Scholar] [CrossRef] [Scilit]
  35. Javaid, U.; Aman, M.N.; Sikdar, A.B. DrivMan: Driving Trust Management and Data Sharing in VANETs with Blockchain and Smart Contracts. In Proceedings of the IEEE Vehicular Technology Conference, Kuala Lumpur, Malaysia, 28 April–1 May 2019. [Google Scholar]
  36. Dai, C.; Xiao, X.; Ding, Y.; Xiao, L.; Tang, Y.; Zhou, S. Learning Based Security for VANET with Blockchain. In Proceedings of the IEEE International Confrence onCommunication System(ICCS), Chengdu, China, 19–21 December 2018; pp. 210–215. [Google Scholar]
  37. Zheng, Z.; Xie, S.; Dai, H.; Chen, X.; Wang, H. An overview of blockchain technology: Architecture, consensus, and future trends. In Proceedings of the IEEE 6th International Congress on Big Data, BigData Congress 2017, Honolulu, HI, USA, 25–30 June 2017; pp. 557–564. [Google Scholar]
  38. Prabakeran, S.; Sethukarasi, T. Optimal solution for malicious node detection and prevention using hybrid chaotic particle dragonfly swarm algorithm in VANETs. Wirel. Netw. 2020, 26, 5897–5917. [Google Scholar] [CrossRef] [Scilit]
  39. Malhi, A.K.; Batra, S. Genetic-based framework for preventionof masquerade and DDoS attacks invehicularad-hocnetworks. Secur. Commun. Netw. 2016, 9, 1–15. [Google Scholar]
  40. Tripathi, K.N.; Sharma, S.C. A trust based model (TBM) to detect rogue nodes in vehicular ad-hoc networks (VANETS). Int. J. Syst. Assur. Eng. Manag. 2019, 11, 1–15. [Google Scholar] [CrossRef] [Scilit]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.