BCA / B.Tech 17 min read

NS2 & NAM | What are NS2 and NAM?

NS2 & NAM in Hindi  | What are NS2 and NAM? 


  • NS2 (Network Simulator Version 2) and NAM (Network Animator) are both network simulation and animation tools used in the field of networking and telecommunication research.
  • The main purpose of NS2 and NAM is to simulate and study network protocols, network traffic, and other network-related aspects. Both tools together help in analyzing the behavior and performance of a network, especially when it is difficult to study a network in real-time.
  • Both NS2 and NAM are important tools for network research and simulation. NS2 provides a powerful platform for the simulation of network protocols and network traffic, while NAM provides the user with the facility to view the structure and performance of the network in a graphical and
  • animated form. These tools are very helpful in understanding the complexity of the network, developing new protocols, and solving networking problems.
  • NS2 (Network Simulator 2)  : NS2 is a popular open-source simulation tool designed to test network protocols, networking architectures, traffic modeling, and various network scenarios. It is mainly used to test TCP/IP, UDP, FTP, and other network protocols.
Introduction of NS2 in Hindi | Introduction to NS2:

NS2 is based on C++ and OTcl (Object-oriented Tool Command Language). It provides a platform for simulation, where various network situations can be simulated. The main purpose of NS2 is to understand the complexity of network protocols and to see their behavior in different network setups.

Main Features of NS2 in Hindi | Main features of NS2:

  • Open-source and free: NS2 is open-source software that anyone can use. It is available under the GNU General Public License (GPL).
  • Flexible and comprehensive: NS2 has the ability to simulate the TCP/IP protocol stack and various network layers (from the physical layer to the application layer). It can simulate both wired and wireless networks.
  • Customizable: Users can customize network protocols and simulation models according to their needs. New features can also be added through C++ and OTcl scripts.
  • Wide support for network protocols: This tool can simulate various protocols such as TCP, UDP, HTTP, FTP, DSR, AODV, and other wireless network protocols.
  • Wireless network support: In NS2, simulation of wireless network protocols can also be done along with wired networks. It can also be used for mobile networks, MANET (Mobile Ad Hoc Network), and WSN (Wireless Sensor Network).

Working of NS2 in Hindi | Working of NS2:

The working process of NS2 is as follows:

  • Scripting of the protocol: First, an OTcl script is created for the simulation, in which information about the network topology, protocols, number of nodes, connections, and data transfer is given.
  • Compiling: After compiling the script, the simulation process is started by NS2. This process determines how the nodes of the network will interact with each other and how data will be exchanged.
  • Generation of a trace file: After the simulation is over, NS2 creates a trace file, which contains all the events that occurred during the simulation and information about the network. This trace file helps the user to analyze the results of the simulation.
  • NAM for visualization: With the help of the trace file, the user can view the results of the simulation graphically using the NAM (Network Animator) tool.
Applications of NS2 in Hindi | Areas of use of NS2:

  • Educational Research: NS2 is used in universities and research institutes to study and research networking protocols.
  • Networking companies: Various networking companies like CISCO use NS2 to simulate network protocols and new technologies.
  • Wireless network simulation: NS2 is used in the simulation and development of protocols for wireless networks, MANETs, and sensor networks.
What is NAM (Network Animator)? 

NAM (Network Animator) is a graphical tool of NS2, which is used to visualize the results of a network simulation. It is a kind of animation tool that graphically shows the activities of nodes, data transfer, packet transmission, and network performance in the network.

Introduction of NAM in Hindi | Introduction to NAM:

  • NAM is used on the basis of trace files created by NS2. When a network simulation is run in NS2, its result is saved in the form of a trace file, which can be viewed in an animated form through NAM. This allows the user to understand the structure and activities of the network.

Features of NAM in Hindi | Features of NAM:

  • Graphical network visualization: Through NAM, the user can see the network topology in graphical form. In this, nodes, links, packet transfer, and other network activities are displayed.
  • Animation of packet transfer: Through NAM, it can be seen how packets are sent from one node to another, and how they are delivered between them. This animation helps users to analyze the traffic of the network.
  • Checking for errors and traffic patterns: During the animation, the user can identify problems in the network, such as packet loss, delay, congestion, etc., and find a solution for them.
  • Time-based simulation: NAM is a time-based simulation tool that provides the facility to adjust the simulation time through a slider. This allows the user to see the status of the network at different times.
Working of NAM in Hindi | Working of NAM:

  • Loading data from a trace file: First, the trace file generated by NS2 is loaded into NAM. This trace file contains information about the events that occurred during the simulation and the network.
  • Creation of animation: After the trace file is loaded, NAM converts that data into an animation and displays it to the user in a graphical interface, where all the components of the network such as nodes, links, and packet movement are shown.
  • Analysis of network events: NAM helps the user to understand the events of the network. The user can see the performance of the network by rewinding and forwarding the animation.

Areas of use of NAM:

  • Networking research: Researchers use NAM to understand the activities of network simulations. This helps them to analyze the behavior and performance of the network.
  • Teaching and training: NAM is also used in networking courses, where students can understand the structure of the network and the working methods of protocols in a graphical form.

In this Chapter

NS2 & NAM | What are NS2 and NAM?
Auto-Configuration and Anycast
Modified EUI-64 | What is Modified EUI-64?
Architecture of Mobile Computing
Wireless LAN in Hindi | What is Wireless LAN?
Wireless User Devices
MAC Protocol | What is MAC Protocol?
IEEE 802.11 | What is IEEE 802.11
Mobile IP | What is Mobile IP
Wireless TCP/IP
Unicast & Multicast Communication
Bluetooth | What is Bluetooth?
Purpose & installation of NS2 & NAM
Background of NS2 & NAM
Architecture of NS2 & NAM
Interface of OTcl & C++
Trace Files & Formats
Protocol Support of NS2
Simulation Object of NS2 & NAM
Basic Syntax of NS2 & NAM
Node Creation of NS2 & NAM
Running NS2 & NAM
Finish Procedure NS2 & NAM
Invoking external commands within NS2
Nodes & Agents of NS2 & NAM
NS2 Commands
Creating Links in Wired Network
Setting Link Parameters
Sending Traffics Through NS2 Links
Routing Protocol Support of NS2
Scenarios in Wired Networks
Additional Parameters
Setting node positions
God object & topography
Protocol Support
Scenarios in Wireless Networks
What is the Internet? Difference Between Intranet and Extranet
Types of Internet
OSI Model and its Layers
Computer Network (CN) All Important Questions and Answers in English (MDSU)
BCA | Computer Network | 2025 Paper | MDSU Exam Paper
Importance of the Layer Model in Computer Networks
Network Classification
Network Topology
Network Switching & Components
Ethernet
Token Ring
Basic Networking Concepts & Cabling
What is a Computer in English?
Bridges in Computer Networks
Routers in Computer Networks
Gateways in Computer Networks
Public & Private Networks
FDMA (Frequency Division Multiple Access)
BCA | CN(Computer Network) Paper | 2023 MDSU Exam Paper
What is World Wide Web (WWW)
TDMA, SDMA, CDMA
Personal Communication System | What is PCS
IPv4 | What is IPv4?
Subnetting IPv4 Address
Casting in IPv4
Private IPv4 Addressing
IPv4 Address Scheme
IPv6 Addressing Scheme
Types of IPv6 Addressing