# Efficient Mobile Vehicle Data Sharing Scheme Based on Consortium Blockchain
## 5 Simulation Analysis
### Performance Analysis of the Stackelberg Game Solution Scheme
#### 5.1.2 Simulation Analysis  
In this section, we first simulate the performance of the Stackelberg game algorithm in a buyer case, that is, when the buyer \(b_{i}\) releases requests to a nearby RSU in a time slot. 1. The relationship between the \(b_{i}\) maximum amount of data and \(b_{i}\) income that the seller is willing to sell to the buyer. Assuming that in the network area, the number of mobile vehicles \(n=50\), and they are willing to share with the \(b_{i}\) buyer. Set the \(b_{i}\) price for purchasing 128M data from other data institutions as \(p_{avg}=0.5 RC\) (RC represents resource currency units), and the income that the buyer can receive as \(\eta_{i}=1 RC/128M\) the balance parameters \(\beta_{i}=1\), the inconvenience parameters \(\alpha\) of all vehicles are randomly distributed within [0, 0.5], the \(\tau\) minimum unit value of the price is 0.01 RC. In addition, assuming that the maximum amount of data that each vehicle is sharing is \(D_{k},k\in[0,n]\), and the data they are willing to sell is consistent, it is a dead core \(D_{1}=D_{2}=\ldots=D_{n}\), and \(D_{k}\) does not exceed the range of [1 GB, 6 GB]. Each scheme performs 50 simulations, with the average as the final value, thus enabling a convincing simulation analysis of the data sharing for each vehicle in various traffic environments. First, the simulation of the BCB scheme is completed, and the total amount of data purchased by the \(b_{i}\) buyer can be obtained. Then, the total data amounts purchased by the other two schemes are the same as that of the BCB scheme, and on that basis, the buyer's incomes under three sets of schemes are compared. In the \(D_{k}\) process of continuous change, the income fluctuations of the buyers under the three schemes are shown in Figure 4.  
Figure 4 shows that in the process of continuously increasing the maximum data \(D_{k},k\in[0,n]\) amount shared by the vehicle to the \(b_{i}\) buyer, the benefit of the buyer shows a trend of increase in all schemes. The reason is that \(D_{k}\) in the improvement process, buyers can obtain more data, and earn considerably more income. In addition, when the data purchased by the buyer are consistent, compared with the baseline schemes SPRS and POS,the BCB scheme can bring higher returns to the buyer. The reason is that the BCB scheme can better balance between the buyer's bid and the seller's shared data volume, and the buyer can obtain more considerable returns based on reasonable bidding. 2. The impact of vehicle density on buyers' income  
Assume that the number of vehicles in the 600 m \(\times\) 600 m network area continuously varies within the [50, 300] range, and \(D_{k},k\in[0,n]\) the maximum amount of data each seller is willing to provide the \(b_{i}\) buyer is [2 GB, 3 GB], the data amount \(D_{k}\) is close to reality, taking different values, and the remaining parameters are consistent with the previous simulations. Assuming the same data purchase volume of \(b_{i}\) buyers under the three sets of schemes, 50 simulations are completed with the average as the final results. Figure 5 shows the fluctuation of buyer benefits under each scheme. Figure 5 shows that in the process of continuous improvement in vehicle density, the buyer's income basically maintains rising momentum. The reason is that the more data the buyer can obtain, the higher the satisfaction of its demand and the higher the benefit. However, in the case of 200 vehicles, the benefit of the buyer's price in all schemes is reduced, because the value in the BCB scheme \(D_{k}\) is within the [2 GB, 3 GB] range, and it is randomly selected. In the case of 200 vehicles, the amount of data that the vehicle is willing  
Figure 4: The impact of the most data provided by vehicle to the buyer’s benefit. Figure 5: The impact of vehicle density on the buyer’s benefit. to sell is not much, so the total data available to the buyer is less, and the benefit does not increase and decrease.