From the course: Network Design and Performance Evaluation with Simulations
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Solution: Generate trace files
From the course: Network Design and Performance Evaluation with Simulations
Solution: Generate trace files
(bright music) (bright music) - [Instructor] To solve this challenge, we'll need to use the knowledge from this chapter to do this. We'll need to add a few lines of code to enable the logging and tracing functionality. We use the "Log Component Enable" method to enable the logging output associated with the log components for UDP echo client application and for UDP echo server application respectively. We then set the log level to log level info to see the informational messages. Although this level is commonly used, other severity levels are available. For more information you can refer to the NS-3 documentation. This line of code enables the PCAP tracing for the ethernet nodes. We invoke the CsmaHelper objects, EnablePcapAll method and pass the file name perfects for the first parameter of the method. The second parameter is set to false as we want to disable the promiscuous mode for packet captures on the…