# Blockchain-Based UAV-Assisted Mobile Edge Computing for Dual Game Resource Allocation
## 4 Analysis of Resource Allocation Experiments
### Blockchain Experiment  
Next, we verified the security role played by the blockchain in the system from multiple aspects through a design comparison experiment. Table 3 lists all the parameters used in the blockchain experiment. In these parameter settings, we simulate high user demand and more complex drone networks as much as possible. Figure 9 clearly shows that the introduction of blockchain has a significant impact on the attack defense capability of the MEC system. The experimental results show that without the use of blockchain, the number of successful attacks remains at a high level, with an average of about 30% successful attacks per experiment, reflecting the vulnerability of the system to malicious behavior. After the introduction of blockchain, the number of successful attacks decreased significantly to about 5%, indicating that the decentralized and tamper-resistant nature of blockchain effectively enhances the security of the system and reduces the success rate of malicious attacks. Although blockchain introduces additional computational overhead and slightly increases the resource burden on the server, this cost is acceptable in terms of improving system security. The results of multiple comparative experiments are consistent, further verifying the stability and effectiveness of blockchain in enhancing the system's ability to resist attacks. This shows that the use of blockchain in MEC systems not only significantly improves data security and tamper resistance, but also helps to enhance the overall defensive performance of the system. \begin{table}
\begin{tabular}{c c c c} \hline \hline
**Simulation Parameters** & **Symbol** & **Value** & **Description** \\ \hline Number of tasks & num\_tasks & 300 & Total number of tasks generated during the experiment \\ Number of drones & num\_ drones & 30 & Number of drones allocated resources \\ Server computing & server\_capacity & 500 & Maximum computing resources of the server \\ Range of task & task\_size & [5, 20] CPU cycles & Range of task computing \\ Range of drone computing & & & resource requirements \\ Range of drone computing & drone\_capacity & [50, 100] & Range of drone computing \\ resource capacity & num\_attacks & 100 & resource capacity \\ Number of simulated attacks & & & Number of malicious attacks \\ \hline Proportion of blockchain & blockchain\_overhead & 0.1 (10\%) & Additional computing overhead \\ computing overhead & & & when using blockchain \\ Range of task data volume & task\_data & [10, 50] MB & Range of task data \\  & & & transfer requirements \\ \hline \hline \end{tabular}
\end{table} 
Table 3: Blockchain experiment parameters. Figure 9: The repeated comparative impact of blockchain on attack defense. The experimental results shown in Figure 10 indicate that the introduction of blockchain technology significantly improves the security and stability of the system. First, in terms of data integrity verification, after using blockchain, the number of verification failures is greatly reduced. Without blockchain, the number of verification failures is high, with an average of 20 verification failures per experiment. After the introduction of blockchain, this number drops to about two. This shows that the immutability and encryption technology of the blockchain significantly improves the credibility of the data, effectively preventing data from being tampered with or damaged during transmission and storage, thereby improving the security of the system. On the other hand, the success rate of identity verification has also improved significantly. Without the blockchain, the average number of successful identity verifications was 80, while after using the blockchain, this number increased to 98. The decentralized identity authentication mechanism of the blockchain reduces the risk of forgery and unauthorized access, thereby greatly improving the reliability of identity verification.