Introduction to ns-3 Rehmat Ullah Marwat Malik Nadeem
Ns-3 is not an extension of ns-2; it is a new simulator. The two simulators are both written in C ++ but ns-3 is a new simulator that does not support the ns-2 APIs. Some models from ns-2 have already been ported from ns-2 to ns-3. NS3(Network Simulator 3)
Network Simulator. Written completely in C++ Ns-3 is a library written in C++ Uses WAF build system Similar to “make” Simulation programs are C++ executables Not really an evolution of NS-2 Implementation Using NS3
Experience of working on: Linux platform C++ and/or Python programming language TCP/IP protocol suit Unix Network Programming ( e.g sockets) Assumptions
Discrete Event Simulation Events model packet transmission, receipt, Timers, etc. Create a list of events On what time event will be occur Like Delay Event, Drop Event etc. That’s why called discrete event technology. Network Simulation Basics-1
Create Topology Nodes, links, Queues, Routing, etc. Create Data Demand on Network Web Browsers, FTP transfers, Peer-to- peer Searching and Downloads. Run the Simulation Analyze Results Network Simulation Basics-2
Trace File Log every packet receipt, transmit, queued, drop. Custom Tracing User specifies which packets/links/nodes to trace Reduces size of trace file and post-analysis time Analyzing Results
A Node is a husk of a computer to which applications, stacks, and NICs are added NS-3 and Autonomic Network NS-3 Node Structure Application Application Application
NS-3 and Autonomic Network Key Abstractions and The Basic NS-3 Flow Model Application Application Protocol stack Node NetDevice NetDevice Application Application Protocol stack Node NetDevice NetDevice Sockets-like API Channel Channel Packet(s)
Web site: http://www.nsnam.org Mailing list: http://mailman.isi.edu/mailman/listinfo/ns-developers Tutorial: http://www.nsnam.org/docs/tutorial/tutorial.html Wiki : http://www.nsnam.org/wiki/index.php/Main_Page Resources