Setting up wireless ad hoc networks
Setting up wireless ad-hoc networks is highly useful to simulate monitoring an environment using Wi-Fi nodes and offering emergency communication in case of no infrastructure for rescue operations. In ns-3, using various propagation loss, delay, and error models, placement and mobility models, and ad hoc routing algorithms, it is possible to set up realistic ad hoc networks. In this section, we will discuss the following hands-on activity to show how to set up a wireless ad hoc network:
- We assume we want to set up a wireless ad hoc network in a building containing multiple floors and rooms.
- Wi-Fi ad hoc nodes are randomly distributed in rooms of the building.
- All Wi-Fi nodes randomly move inside building rooms and building boundaries only.
- Wi-Fi nodes send data at a constant rate to their gateway node. Two of the Wi-Fi nodes are designated as gateway nodes (or sink nodes).
- Any Wi-Fi ad hoc routing algorithm can be configured...