| Wireless Ad Hoc network is a distributed network without center and basic facilities.It is widely favored by experts and scholars because of its real-time deployment,flexibility and easy expansion.With the rapid development of Ad Hoc technology,its application scenarios are gradually increasing.In order to accommodate more and more complex application scenarios,more and more Ad Hoc network protocols have been proposed.For the verification of Ad Hoc network protocol,the traditional method is to use simulation.However,in view of the limitations of simulation,it is often difficult to find some problems.In order to improve the reliability of simulation verification,the paper considers the combination of virtual nodes in the simulation network and actual nodes in the real world and then realizes the virtual-real network simulation system.This paper focuses on the actual nodes in the system,and the main contributions include the following three aspects.First,this paper deeply analyzes the problems of external nodes accessing the simulation network,and designs the node-mapping scheme combined with the characteristics of Ad Hoc.The scheme solves the problem of information interaction between the actual nodes and the virtual nodes,without making a lot of changes to the original simulation network.Second,this paper follows the Ad Hoc network protocol in the original simulation,and designs and develops the actual node by module in the embedded Linux environment.Each module cooperates with each other to jointly realize the functions of node perception,autonomous networking,routing control,data transmission and so on.At the same time,this paper also develops a variety of control instruction interfaces to provide means for human intervention in node behavior and business scenario editing.Finally,through the mapping scheme,the actual node is connected to the simulation network.And the function verification of the actual node is completed in the form of virtual real joint simulation.Third,this paper proposes a cluster head update strategy based on trajectory prediction(CHEBTP),which aims at the problems of unstable cluster structure and poor network quality in existing ad hoc networks.By adjusting the cluster head node in time,the strategy can prolong the communication time between the nodes in the cluster and the cluster head node.The strategy is verified in the built simulation environment.And the results show the strategy effectively improves the stability of Ad Hoc network,compared with the traditional cluster head election algorithm. |