The invention discloses an ad hoc
network simulation method based on
network virtualization, belongs to the technical field of computer communication, and aims to solve the problems of insufficient compatibility, inflexible link control and weak topology time-varying
simulation capability of traditional ad hoc
network simulation. The core of the
system is that a
simulation architecture comprising a
simulation configuration module, a service
application module, a communication node module, an analog channel module and a
data acquisition module is constructed, service application and a real equipment
protocol stack are packaged through a container
virtualization technology, and a real product and an upper-layer service
application software protocol are supported to be directly deployed without
transplantation. The
system is compatible with a two-layer
Ethernet and a three-layer IP protocol, integrates a
communication link electromagnetic propagation model, is combined with OpenvSwitch and TC tools, is matched with a
software defined network technology to control link quality and
network topology time-varying characteristics, is adaptive to static and dynamic topology scenes, improves simulation authenticity and flexibility, and provides reliable support for ad hoc
network testing.