BCA / B.Tech 11 min read

Architecture of NS2 & NAM

Architecture of NS2 & NAM in Hindi | Architecture of NS2 and NAM in Hindi:


  • NS2 (Network Simulator Version 2) and NAM (Network Animator) together provide a comprehensive architecture for network simulation and visualization.
  • This architecture helps researchers and teachers to study various aspects of networking. This architecture includes various components that work for simulation, data management, and visualization.
  • NS2 and NAM together provide a strong architecture that plays an important role in networking research. NS2 is a powerful simulation tool, while NAM is an effective visualization tool.
  • Both of these are used to study networking protocols, topologies, and various network scenarios. This architecture helps researchers and teachers to understand the complex aspects of networking and to analyze their behavior.
Architecture of NS2 in Hindi | NS2 Architecture:

The architecture of NS2 is mainly composed of the following components:

  • Network Model: In NS2, models for various network protocols (like TCP, UDP) and network topologies (like wired, wireless) have been created. This includes various nodes that can be simulated, such as hotspots, clients, and servers.
  • OTcl Scripting: In NS2, OTcl is used for scripting. OTcl is an object-oriented scripting language that is used to set up simulations. It is used to define the nodes, links, and protocols of the network.
  • C++ Implementation: The main implementation of NS2 has been done in C++. The logic and data structures required for the simulation are developed in C++. There is interfacing between OTcl and C++, which allows users to call C++ functions through OTcl.
  • Event-Driven Simulation: NS2 is based on an event-driven architecture. This means that the simulation runs according to various events (like data transfer, packet loss) over time. When an event occurs, the corresponding protocol is activated.
  • Tracing and Reporting: NS2 traces various activities during the simulation and generates reports. These trace files help the user to analyze the results of the simulation.
  • Packets and Protocols:  In NS2, various types of packets and protocols have been implemented, such as TCP, UDP, and other protocols, which determine the behavior of the network.
Architecture of NAM in Hindi | NAM Architecture:

The architecture of NAM is designed to visualize the trace data of NS2. The purpose of NAM is to display the results of a network simulation in graphical form. Its components are as follows:

  • Trace Data Input: NAM takes the trace file generated by NS2 as input. This file contains the details of all the activities that occurred during the simulation, such as packet transfer, the status of nodes, and other events.
  • Animation Engine: NAM has an animation engine that reads the trace data and presents it in graphical form. This engine shows the network topology, nodes, and links in an animated form.
  • User Interface: The user interface of NAM provides users with the facility to view and interact with the animation. Users can rewind, forward, and position the animation, which allows them to see the activities of the network at different points in time.
  • Visualization Tools: NAM has various visualization tools, such as graphs, charts, and diagrams, that help users to analyze network performance. This allows users to easily understand packet loss, delay, and other network activities.
Relation of NS2 & NAM in Hindi | Relationship between NS2 and NAM

There is an important relationship between NS2 and NAM:

  • Integration of simulation and visualization: The results of the simulation done in NS2 are visualized by NAM. The user first sets up the simulation in NS2 and then loads the trace data in NAM to see the graphical animation.
  • Reporting and Analysis: The trace file generated by NS2 is used for visualization in NAM, which makes it easy to analyze the performance and behavior of the network.

In this Chapter

Architecture 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
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