# Blockchain-Assisted Adaptive Reconfiguration Method for Trusted UAV Network
## 4 Recommended Scheme  
The scale of UAVs can effectively improve the destructiveness of the UAV network, which requires the scalability of the UAV network. Poorly controlled routing overheads can lead to a rapid increase in routing overheads required for network maintenance and route discovery until all wireless bandwidth is consumed and the network collapses. The purpose of the UAV network is to exchange information and intelligence between nodes and collaborate on tasks, and excessive routing overhead also affects the ability to carry business data streams. In addition to network size, node density also has a serious impact on routing overhead. The UAV network also suffers from the Byzantine problem, where interference from errant nodes also generates inefficient routing overhead. Therefore, to maintain the high availability of the UAV network, the network is dynamically reconfigured based on the status of the nodes at the current stage in terms of location, trustworthiness, etc. The network is reconfigured in such a way that nodes in good condition are selected to form the upper management network, while untrustworthy nodes are isolated from the network. The network is reconfigured in such a way that the most trusted nodes are involved in each phase of the network, thus reducing routing blindness and minimizing routing overhead. The recommended solution in this paper is the Blockchain-assisted Trusted Zone Routing Protocol (BC_TZRP), a cross-layer routing protocol over the link, network and application layers, including the Neighbor Node Detection Subprotocol (NDP) at the link layer, the Intra-Zone Routing Subprotocol (IARP), the Inter-Zone Routing Subprotocol (EARP) and the Border Broadcast Routing Subprotocol (BRP) at the network layer, and the Blockchain at the application layer. It includes two major functions: firstly, a real-time check of all nodes to generate state record transactions; and secondly, a two-stage consensus of authorized nodes, with the consensus result serving as the basis for reconfiguring the network. The process is that at the link layer nodes detect current neighboring nodes through NDP, and the improved IARP protocol of this method sends topology information to these neighboring nodes in addition to each node monitoring the forwarding behavior of its neighboring nodes, giving different scores for different behaviors, and counting the local trust loss of all its own nodes by consensus cycle, and sending the statistics and the list of neighbors as local state record transactions sent to authorized nodes, authorized node information in the latest block of the blockchain, the specific process is reflected in Algorithm 1; second, two-stage consensus is run on authorized nodes, authorized nodes receive local state transaction records from all nodes and reach data consensus in the form of a common subset, each authorized node invokes the smart contract in the Genesis block to make decisions on data consensus results, so on each authorized node, the Therefore, at each authorized node, the same data result with the same smart contract will reach a consensus decision result, see Algorithm 2. Therefore, each authorized node synchronizes a new block, and the node receiving the new block updates the blockchain and builds a new trusted network based on the configuration information in the latest block. It is worth noting that the local state record transactions at each stage are for decision consensus and do not need to be saved to the blockchain, which only needs to save the result of the decision, a fixed very small block header. Therefore the latest block in the blockchain holds the current global trustworthiness of the network nodes and the configuration information of the upper layer network, a light storage blockchain. The routing protocol, aided by the blockchain, circumvents untrustworthy nodes, enables cross-zone routing through the upper layer network, reduces redundant forwarding and reconstructs low-overhead trusted routes.