Procedures to writing script in ns3
Including necessary files Use appropriate namespace Set simulation time resolution Enable logging for different modules Creating codes Create net devices with MAC and PHY Attach Net devices to nodes and set interconnections Install protocol stack in nodes Set network address for interfaces Setup routing Install applications in nodes Setup tracing Set application start and stop time Set simulation start time Run simulation Release resources at end of the simulation source: https://ns3tutorial.com/ns3-tutorial/ This is a checklist of the steps for writing a simulation script in ns-3, the discrete event network simulator, from including headers and setting the time resolution to creating nodes and devices and installing the protocol stack. Following the steps in order matters because each stage depends on the previous one, for example installing the internet stack before assigning addresses. It is a helpful map when starting a new ns-3 scenario.