25-08-2017, 09:32 PM
Network Simulator 2: Introduction
Network Simulator.pdf (Size: 191.97 KB / Downloads: 151)
NS-2
• Developed by UC Berkeley
• Maintained by USC
• Popular simulator in scientific environment
• Other popular network simulators
– Glomosim: UCLA, CMU; ParseC, Mobile Simulation mostly
– OPNET: commercial software, graphical interface, not free;
– Others: commercial ones, not free, e.g. IBM TPNS
Two Languages: C++, OTcl
OTcl: short for MIT Object Tcl,
an extension to Tcl/Tk for object-oriented programming.
• Used to build the network structure and topology
which is just the surface of your simulatoion;
• Easily to configure your network parameters;
• Not enough for research schemes and protocol architecture adaption.
C++: Most important and kernel part of the NS2
• To implement the kernel of the architecture of the protocol designs;
• From the packet flow view, the processes run on a single node;
• To change or “comment out” the existing protocols running in NS2;
• Details of your research scheme
Protocols/Models supported by NS2
• Wired Networking
– Routing: Unicast, Multicast, and Hierarchical Routing, etc.
– Transportation: TCP, UDP, others;
– Traffic sources: web, ftp, telnet, cbr, etc.
– Queuing disciplines: drop-tail, RED, etc.
– QoS: IntServ and Diffserv Wireless Networking
• Ad hoc routing and mobile IP
• Sensor Networks(hmmm)
– SensorSim: built up on NS2, additional features, for TinyOS