Procedures to writing script in ns3

  1. Including necessary files
  2. Use appropriate namespace
  3. Set simulation time resolution
  4. Enable logging for different modules
  5. Creating codes
  6. Create net devices with MAC and PHY
  7. Attach Net devices to nodes and set interconnections
  8. Install protocol stack in nodes
  9. Set network address for interfaces
  10. Setup routing
  11. Install applications in nodes
  12. Setup tracing
  13. Set application start and stop time
  14. Set simulation start time
  15. Run simulation
  16. Release resources at end of the simulation


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.

Comments

Popular posts from this blog

[Solved] Error: No such keg: /usr/local/Cellar/gcc

[How To] Unfollow Non-followers on Instagram