Quick Intro About Ns3 Network simulator: – [Ns3 Tutorial]
- Ns3 uses the waf build system
- It’s simulation programs are C++ executable or python scripts
- Developed after the network simulator 2 tool
Features of NS3 Network Simulator [ Ns3 Tutorial]
- Can be connected to a real network
- It’s a discrete event simulator
- Tracing facility for getting output.
- Build using C++ and also python binding is available.
List of modules in NS3 Network simulator [NS3 Tutorial]:
- Flow-monitor internet
- Aodv applications bridge click
- Lte mesh mobility mpi
- Config-store core csma
- Netanim network
csma-layout dsdv Emu energy
Basics of NS3 Network Simulator [NS3 Tutorial]
- It’s a network simulator
- Ns-3 was written using the C++ languages
- Binding in python language
- This is developed for network research and education
Characteristics of ns3:
- Live visualize
- Direct code execution
- Logging facility for debugging
- Modular design/Open source
Actively developed
Sample code for udpechoclient application of ns3:
UdpEchoClientHelper echoClient (csmaInterfaces.GetAddress (nCsma), 9);
echoClient.SetAttribute (“MaxPackets”, UintegerValue (1));
echoClient.SetAttribute (“Interval”, TimeValue (Seconds (1.0)));
echoClient.SetAttribute (“PacketSize”, UintegerValue (1024));
ApplicationContainer clientApps = echoClient.Install (p2pNodes.Get (0));
clientApps.Start (Seconds (2.0));
clientApps.Stop (Seconds (10.0));
Procedures to writing script in ns3:
- Including necessary files
- Use appropriate name space
- 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 simulation
Current Work Load
- Wireless Sensor Network
- Cognitive Radio Network
- Network Attack
- IoT
- LTE
- MANET
- SDN
- VANET
- 4g,5g
- WBAN
- WI-FI
- WI-MAX
- Video streaming
- Sensor Network
- OFDMA
- Multi-Cast
- Grren Networks
- Vertical Handover
- Optical Network
- Distributed Computing
- Device to Device