Keywords

15.1 Introduction

Blockchain technology has the capability to contribute to several fields. Blockchain can contour the eHealth record process and contribute better visibility and efficiency over the supply chain to provision eminent value to the customers and trading relations. Moreover, Blockchain can trace possession of real estate and alter the mode of sharing data and forbidding fraudulence. Blockchain can also revolutionize the Internet of Things and vehicular communication [1].

The vehicle is experiencing revolutionary growth in research and industry such as intelligent vehicles (IV), vehicle communications, self-driving vehicles, but it still suffers from many security vulnerabilities. Traditional security methods are incapable to provide secure vehicular communication. The major issues in vehicular communication are trust, data accuracy and reliability of communication data in the communication channel [2]. Blockchain technology works for the cryptocurrency, Bit-coin, to develop trust and reliability in peer-to-peer networks which have alike topologies to Vehicle Communication Networks (VCN). But Blockchain doesn’t have any standard consensus protocol for resource constraint applications such as vehicular communication environment. In this paper, we propose a novel Adaptive Proof of Driving (APoD) consensus algorithm for Blockchain based Vehicular Communication Networks (VCN), especially for resource constraint environments. Our developed algorithm will provide secure, trusted and reliable communication environment for vehicle based on reputation. The aim of our paper is to improve the power consumption, miner congestion, and cost efficiency of blockchain system for vehicular networks. We evaluate our proposed approach with the help of congestion less intersection use case for adaptive and secure distributed consensus. We have depicted in the Fig. 15.1 is current vehicle communication environment.

Fig. 15.1
figure 1

Current vehicle communication environment [1]

The remainder of the work is outlined as follows, Sect. 15.2 has discussed a review of related work, and further, we have explained our proposed consensus algorithm for intelligent vehicles communication environment in Sect. 15.3. We have discussed an intelligent vehicle communication use case model in Sect. 15.4. At last we have concluded our article in Sect. 15.5.

15.2 Related Work

It is challenging to build a secure distributed consensus scheme but there are tremendous benefits for several applications. Bitcoin and other similar cryptocurrencies used in the financial technology are familiar. Bitcoin has several insufficiencies and several altcoin [3] schemes have been proposed to make them better but still not all deficiencies are sufficiently covered. All present cryptocurrency approaches concentrates on payment transaction and maintaining fairness is critical in such transactions as payments are done in exchange of service or goods and there is no identity reliability of the participants and also we cannot practically resolve any subsequent dispute. Another limitation is link ability, making personally identifying the Bitcoin transaction [4]. Zero cash [5] is an alternate which provision payer and payee unlink ability earned as altcoin strategies [6]. Other applications of distributed consensus other than Fin tech are driverless vehicles [7], autonomous robots, supply chain management and sharing information in the Internet of Things (IoT).

There are different requirements for every application and it is critical to decide a distributed consensus which is compatible, suitable and fulfill the requirements for that application. Energy efficiency is a critical requirement and blockchain based on “proof of work” consensus scheme like Bitcoin are not favorable in terms of usage of energy.

The traditional Byzantine fault tolerant scheme also consume a lot of energy as every participant need to send and receive the broadcasted message. We aim to develop a consensus schemes which are energy efficient. Figure 15.2 shows several existing consensus algorithms and their work.

Fig. 15.2
figure 2

Existing consensus algorithms for blockchain technology

  • Challenges of Existing Blockchain Consensus

As of now, there is no standard Consensus scheme fully compatible for Vehicular Communication Network (VCN). However, researchers are using traditional consensus schemes (CheapBFT [8], MinBFT/MinZyzzyva [9], and Proof of Work (PoW) [2]) in VCN. There are various limitations of consensus schemes in Distributed Computing such as safety (all valid participant’s agreement on consistent value) and liveness (all valid participants finally determine a value). According to Bracha and Toueg [8] if more than f participants are Byzantine then consensus in a loosely synchronous communication model is not feasible among n = 3f + 1 participants. Likewise, Brewer et al. [9]’s “CAP theorem” states that consistency, availability and partition-tolerance cannot be assured at the same time in a distributed system. Classical PBFT [10] consensus schemes are established on state machine replication and are becoming obsolete due to their huge cost of computation, bandwidth and expected number of autonomous servers [11].

15.3 Proposed Adaptive Proof of Driving (APoD) Methodology

We have developed a decentralized distributed reputation based Vehicular Communication Networks (VCN) that use Blockchain technology to build trust among vehicles. The proposed Blockchain technology for vehicular communication is based on novel consensus algorithm, Adaptive Proof of Driving (APoD) which, increases performance and throughput by reducing miner congestion. Our proposed algorithm provides secure reliable scalable consensus mechanism for vehicular network, by combining two schemes, First Come First Serve (FCFS) and Priority (Reputation) scheme as shown in step 1 and step 2 in Fig. 15.2. The FCFS scheme maintains the timestamp list using the blockchain server and priority scheme gives preference to lower timestamp and reputed Vehicles. To validate the reputed vehicles, we have introduced Vehicle Reputation Point (VRP) which is an issued unique crypto ID for each vehicle and the same VRP are used to enable the flow of reputation points, which act as a reputation value for vehicle to get involved in the information exchange between vehicles. For the data management of the VRP, we are using blockchain technology in the intelligent transportation system (ITS), which stores all VRP details of every vehicle and is accessed ubiquitously by vehicles [12].

  • Adaptive Proof of Driving (APoD) Consensus Algorithm

We propose an Adaptive Proof of Driving (APoD) consensus algorithm which uses two schemes, First Come First Serve (FCFS) and Priority to drop-off the congestion of miners to increase the performance. Figure 15.3 shows our proposed Consensus approach. The two steps step 1 and step 2 are defined below.

Fig. 15.3
figure 3

Proposed adaptive proof of work consensus approach

  • First Come and First Serve (FCFS): First Come and First Scheme uses timestamp \(t_{s}\) to reduce the miner congestion in the vehicular communication network. If timestamp \(t_{i}\) of a vehicle \(V_{i}\) is less than the timestamp \(t_{j}\) of a vehicle \(V_{j}\), then vehicle \(V_{i}\) is added in the miner list as it has lower timestamp.

  • Priority Scheme: The blockchain server maintains the miner list of first come messages based on the Vehicular Reputation Point (VRP) of each vehicle. The priority scheme uses the Vehicular Reputation Points (\(VRP\)) to decide the priority given to vehicles in the Miner list. The higher priority vehicles are trusted and given incentives in terms of \({\text{VRP}}\). If \(VRP\) of a vehicle \(V_{i} { }\) is greater than the \(VRP\) of a vehicle \(V_{j}\), then vehicle \(V_{i}^{^{\prime}} {\text{s }}\) broadcasted message is trusted and is awarded some Reward Points.

Below is the pseudo code of APoD Consensus scheme:

Pseudocode of APoD Consensus Scheme

FCF S \(\left( {{\varvec{V}}\left( {{\varvec{t}}_{{\varvec{s}}} } \right)} \right)\)

  1. 1.

    For timestamp instant \(t_{s}\)

  2. 2.

    If \(\left( {V_{i} (t_{i} )} \right) < \left( {V_{j} (t_{j} )} \right)\)

  3. 3.

    \(Miner_{list} \leftarrow V_{i}\)

  4. 4.

    \(return\,Miner_{list}\)

    \({\varvec{Priority}}\left( {{\varvec{Miner}}_{{{\varvec{list}}}} \left( {{\varvec{VRP}}} \right)} \right)\)

  5. 5.

    For Vehicular Reputation Points \(VRP\)

  6. 6.

    If \(\left( {VRP[V_{i} ] > VRP[V_{j} ]} \right)\)

  7. 7.

    \(VRP[V_{i} \left] { \leftarrow VRP[V_{i} } \right] + Reward\,Points\)

  8. 8.

    \(return\,VRP[V_{i} ]\)

  9. 9.

    \(else\,VRP[V_{j} ] \leftarrow VRP[V_{j} ] + Reward\,Points\)

  10. 10.

    \(return\,VRP[V_{j} ]\)

Our proposed APoD algorithm is energy efficient, cost efficient and builds trust and reliability in the blockchain network.

15.4 Intelligent Vehicle Communication Use Case Scenario

We discuss the intersection scenario for, utilizing cost and energy and building trust and reliability in the blockchain based vehicular communication network. In an intersection scenario as shown in Fig. 15.4, all vehicles are coming from all directions at the intersection and all vehicles cannot cross the intersection simultaneously as deadlock situation will happen. Therefore, vehicles must cross the intersection one at a time to avoid deadlock situation. Now, the problem arises as to which vehicle will cross the intersection first and in what order so that all vehicles can cross and there is no deadlock situation. To solve this problem, we applied our proposed Adaptive Proof of Driving (APoD) consensus algorithm which uses two schemes, First Come First Serve (FCFS) and Priority to drop-off the congestion of vehicles, deciding which vehicle to cross the intersection first thereby utilizing energy, cost and building trust and reliability in the blockchain network. The description of each of the scheme is as follows:

Fig. 15.4
figure 4

Overall intelligent vehicle communication based on adaptive proof of driving consensus algorithm

First Come First Serve (FCFS) Scheme: In this scheme the vehicle which arrives first at the intersection, is stored in the miner list which is later used by the priority scheme to determine the priority to mine based on the vehicle’s Vehicle Reputation Point (VRP) to find the order of vehicles to cross the intersection.

For example: Assume four vehicles \(V_{1} ,\,V_{2} ,\, V_{3} ,\,{{and}}\,V_{4}\) arrives at the intersection at 1.65, 1.63, 1.66, 1.61 s respectively, then the vehicle whose arrival time is minimum (arrives first at intersection will be eligible as miner). So, \(V_{4}\) with minimum arrival time of 1.61 s will be the first miner added in the miner list. Thereafter, \(V_{2} ,\,V_{1}\) and \(V_{3}\) will be given preference for mining in ascending order of their arrival time [12].

Priority Scheme: In this scheme, each vehicle in the miner list is assigned a priority based on the Vehicle Reputation point (VRP) it owns as shown in the distributed ledger of each blockchain server in Fig. 15.4. The amount of VRP indicates the trust and reliability the vehicle has. The greater the VRP, the greater is the vehicle’s trust and highest will be the vehicle’s priority. The highest priority vehicle with the lowest arrival time at the intersection will first cross the intersection and the lowest priority vehicle with highest arrival time at the intersection will cross the intersection at the last. The miner vehicle will generate the table accordingly.

Vehicles with same VRP or same priority will follow the FCFS scheme to decide the order in which they will cross the intersection.

For example: The vehicles \(V_{1}\), \(V_{2}\), \(V_{3}\) and \(V_{4}\) have 10, 15, 20, and 35 VRP respectively and the miner list ascending order is {\(V_{4}\), \(V_{2}\), \(V_{1}\), and \(V_{3}\)} then the vehicle \(V_{4}\), having lowest arrival time of 1.61 s and greatest VRP of 35 will be considered the most trusted and reliable vehicle in the network of the four vehicles. Similarly, vehicle \(V_{1}\) having 10 VRP (minimum in the network) will be considered the least trusted and least reliable vehicle in the network of the vehicles. Therefore, vehicle \(V_{4}\) will have the highest priority to do the mining to find out the order of vehicles to cross the intersection.

Note: In same VRP and Time stamp then we will consider 2nd significant figures of the arrival time of the vehicles at the intersection. After applying our proposed APoD algorithm to the intersection scenario shown in Fig. 15.4, the vehicular communication becomes seamless avoiding deadlock and utilizing energy, cost and building trust and reliability in the blockchain based vehicular network.

15.5 Conclusion

We proposed a novel Adaptive Proof of Driving (APoD) consensus algorithm for Blockchain based Vehicular Communication Networks (VCN). Our proposed APoD algorithm provides secure reliable consensus mechanism for vehicular network, by combining two schemes, First Come First Serve (FCFS) and Priority (Reputation) scheme. The FCFS scheme maintains the timestamp list using the blockchain server and priority scheme gives preference to lower timestamp and reputed Vehicles thereby improving the power consumption, miner congestion, and cost efficiency of blockchain system for vehicular networks. To validate the reputed vehicles, we have introduced Vehicle Reputation Point (VRP) which is an issued unique crypto ID for each vehicle and the same VRP are used to enable the flow of reputation points, which act as a reputation value for vehicle to get involved in the information exchange between vehicles. In future, we will implement our consensus algorithm for Blockchain-based secure decentralized reliable vehicular communication networks through simulations and real-life experiments.