BCA / B.Tech 12 min read

Simulation Object of NS2 & NAM

Simulation Object of NS2 & NAM in Hindi | Simulation Objects in NS2 and NAM in Hindi:


  • The combination of NS2 and NAM is a powerful tool for network simulation and visualization. Simulation objects in NS2, such as nodes, links, protocols, and events, control the behavior of the network. NAM presents these simulation objects in graphical form,
  • so that users can clearly see the activities of the network. This combination is an important tool for researchers and teachers, which helps them to understand the complex aspects of networking and to analyze their behavior.
  • NS2 (Network Simulator Version 2) and NAM (Network Animator) are important tools for network simulation and visualization. NS2 is mainly used for network simulation,
  • while NAM is used to display the simulation results in graphical form. In this answer, we will study in detail the concept of simulation objects in NS2 and NAM, their function, and their characteristics.
Simulation Object in NS2 in Hindi | Simulation Objects in NS2

Simulation objects in NS2 represent various network elements, such as nodes, links, protocols, and others. These objects control the process of simulation and represent network behavior.

Main Simulation Objects:

  • Nodes: Nodes are the basic components of a network. Each node has one or more protocol stacks, which control the process of sending and receiving data. There are different types of nodes in NS2, such as:
  • User Nodes: Play the role of clients and servers.
  • Router Nodes: Perform the task of routing data in the network.
  • Links: Links are the communication medium between nodes. In NS2, the characteristics of a link such as bandwidth, delay, and packet loss rate can be defined. These affect the performance of the network during data transfer.
  • Protocols: NS2 supports various network protocols, such as TCP, UDP, ICMP, etc. Each protocol comes with its own specific function and functionality. Protocols control the flow of data during the simulation.
  • Packets: Packets are small parts of data that are transferred between nodes. Different types of packets can be defined in NS2, such as data packets, control packets, etc.
  • Events: The functionality of NS2 is event-driven. In every simulation process, there are various events, such as sending a packet, receiving a packet, timer expiration, etc. These events are run during the simulation and affect the behavior of the simulation.

Simulation Object in NAM in Hindi | Simulation Objects in NAM:

NAM uses the trace files generated by NS2 to present the results of a network simulation in graphical form. The simulation objects in NAM are a visual representation of the simulation objects of NS2.

Main Simulation Objects in NAM:

  • Graphical Nodes: In NAM, each node has a graphical representation. These nodes correspond to the nodes defined in NS2 and show their status, activities, and relationships.
  • Links: In NAM, the links between nodes are displayed in graphical form. These links show the path of data transfer and can also display their bandwidth and delay information.
  • Packet Animation: In NAM, there is a graphical animation of packets, which shows how packets are being transferred between nodes. This animation allows users to see the flow of packets during the simulation.
  • Event Visualization: In NAM, various events that occur during the simulation are visualized, such as sending a packet, receiving a packet, and other activities. This gives users the opportunity to see the activities of the network in real-time.
Relation of  NS2 & NAM in Hindi | Relationship between NS2 and NAM

The use of NS2 and NAM together completes the simulation process:

  • Simulation Setup: In NS2, users set up simulations using an OTcl script. Here, all nodes, links, and protocols are defined.
  • Trace File Generation: When the simulation runs, NS2 generates trace data of various activities. This data is used as input in NAM.
  • Graphical Animation: NAM uses this trace data to generate a graphical animation. This allows users to easily see the behavior and functionality of the network.
  • Result Analysis: The graphical data obtained through NAM helps users to analyze the performance of the network and to understand the impact of various scenarios.

In this Chapter

Simulation Object of NS2 & 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?
NS2 & NAM | What are NS2 and NAM?
Purpose & installation of NS2 & NAM
Background of NS2 & NAM
Architecture of NS2 & NAM
Interface of OTcl & C++
Trace Files & Formats
Protocol Support of NS2
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