Monitoring, Debugging, Tracing, and Evaluating Network Topologies in ns-3
In order to set up and evaluate complex simulations, it is necessary to learn how to display various simulation details, such as information, events, and errors, as well as handling errors, crashes, and debugging. It also involves inspecting nodes and protocols of simulation topologies. In this chapter, to carry out the aforementioned tasks to perfection, we discuss the important features of ns-3, such as logging, debugging, tracing, and validating simulation results.
Logging is an important ns-3 feature that helps users to monitor simulation details such as events, logic, warnings, errors, and debug messages. ns-3 supports a flexible way to include log statements and enable or disable logging details in simulation programs. Another important feature ns-3 users must know of is debugging. It is common to face various errors and crashes during simulation execution. In order to resolve simulation errors and crashes...