CN - Practical 02 - Kanhaiya Mittal
CN - Practical 02 - Kanhaiya Mittal
Aim :
Network simulation using tools like Cisco Packet Tracer, NetSim, OMNeT++, NS2, NS3, etc.
Brief Theory :
Cisco Packet Tracer- Packet Tracer allows users to create simulated network topologies by dragging and
dropping routers, switches and various other types of network devices. A physical connection between
devices is represented by a 'cable' item. Cisco Systems claims that Packet Tracer is useful for network
experimentation.
NetSim-NetSim is an end-to-end, full stack, packet level network simulator and emulator. It provides
network engineers with a technology development environment for protocol modeling, network R&D
and military communications.
A network simulator enables users to virtually create a network comprising of devices, links, applications
etc, and study the behavior and performance of the Network.
kmittal
Figure 5.2 NetSim Enviroment
Some example applications of network simulators are
Building the model – Create a network with devices, links, applications etc
Running the simulation - Run the discrete event simulation (DES) and log different performance
metrics
Visualizing the simulation - Use the packet animator to view the flow of packets
Analyzing the results - Examine output performance metrics such as throughput, delay, loss etc. at
multiple levels - network, link, queue, application etc.
Developing your own protocol / algorithm - Extend existing algorithms by modifying the simulator’s
source C code
kmittal
Components
NS2- NS2 stands for Network Simulator Version 2. It is an open-source event-driven simulator designed
specifically for research in computer communication networks.Ns2 is an event driven simulator, which
is a open source simulator mainly used for academic research in the areas of Computer Networks,
MANETs, WSNs.NS-2 can be used to implement network protocols such as TCP and UPD, traffic source
behavior such as FTP, Telnet, Web, CBR and VBR, router queue management mechanism such as Drop
Tail, RED and CBQ, routing algorithms and many more. In ns2, C++ is used for detailed protocol
implementation and Otcl is used for the setup.
Features of NS2
2. It provides substantial support to simulate bunch of protocols like TCP, FTP, UDP, https and DSR.
Basic Architecture
NS2 consists of two key languages: C++ and Object-oriented Tool Command Language (OTcl). While
the C++ defines the internal mechanism (i.e., a backend) of the simulation objects, the OTcl sets up
simulation by assembling and configuring the objects as well as scheduling discrete events. The C++ and
the OTcl are linked together using TclCL
kmittal
NS3- Computer network simulation in the sense connection of two or more computer system linked
together for communication. Networking is the practice of interfacing two or more computing devices
with each other for the purpose of sharing data. Computer networks are built with a combination of
hardware and software.ns-3 is a discrete-event network simulator, targeted primarily for research and
educational use. ns-3 is free software, licensed under the GNU GPLv2 license, and is publicly available
for research, development, and use.
NS-3 is intended to provide better support than in NS-2 for the following items:
• Modularity of components
• Scalability of simulations
• Integration/reuse of externally developed code and software utilities
• Emulation
• Tracing and statistics
• Validation
Result-
Network simulation is done using tools like Cisco Packet Tracer, NetSim, OMNeT++, NS2, NS3, etc.
kmittal