BCA / B.Tech 18 min read

Additional Parameters

Additional Parameters in Hindi 


  • The structure and operation of a wireless network are very different from a wired network because there is no physical cable connection between the nodes. In a wireless network, data is transmitted through the air, which makes the network more flexible and dynamic,
  • but at the same time, it also adds several additional parameters that need to be taken into account.
  • The simulation of a wireless network is more complex than that of a wired network because it has to take into account several additional parameters and mobility. In NS2, setting these additional parameters correctly makes the simulation more accurate and closer to reality.
  • Parameters such as movement models, antenna models, radio propagation, and battery models play an important role in simulating the real challenges of a wireless network.
  • When simulating a wireless network in NS2 (Network Simulator 2), some additional parameters need to be specified so that the functionality of a real wireless network can be accurately simulated.

In this article, we will discuss these additional parameters, their importance, and how they are used in NS2 in detail.

1. Introduction to wireless networks:

The main basis of a wireless network is that data is sent between nodes through a wireless medium (such as radio waves, infrared, etc.). It has several challenges such as the movement of nodes, signal quality, and the mobility of the network topology, which need to be properly modeled in the simulation.

2. Additional parameters for wireless networks:

In addition to traditional network parameters, wireless networks also have some additional parameters that have a profound impact on the performance of the network. These parameters are designed keeping in mind the dynamic nature of wireless networks.

a. Mobility Model

In a wireless network, nodes are usually not static, but they move. A mobility model is used to determine in which direction, at what speed, and in what way the nodes will move. The most common mobility model is:

Random Waypoint Model: This model selects a random direction and speed for each node, and the node moves in that direction for a certain period of time. Then the node selects a new direction and speed. The code for this model is as follows:


$ns_ at 0.0 "$node_(0) setdest 50 100 10.0"
$ns_ at 2.0 "$node_(1) setdest 75 200 15.0"
In this, the setdest command sets the destination position (x, y) and speed (m/s) of the node.

b. Antenna Model

The characteristics of the antenna are also important in a wireless network because it affects the transmission and reception of radio signals. Two types of antenna models are commonly used in NS2:

Omni-directional Antenna: This sends signals in all directions. It is set as follows:

Phy/WirelessPhy set antenna_ [new Antenna/OmniAntenna]
Directional Antenna: This sends signals only in a specific direction, and it is used when the network requires more targeted communication.

c. Radio Propagation Model

A radio propagation model determines how a signal will propagate through the air and what kind of obstacles it will encounter. This greatly affects the performance of the network because it determines how a signal will be received between nodes.

There are three main propagation models in NS2:

Free Space Model: This model assumes that the signal is transmitted in a straight line, and there are no obstacles on it. It is used when the nodes are in direct line of sight of each other:

Phy/WirelessPhy set propagation_ [new Propagation/FreeSpace]
Two-ray Ground Model: This model takes into account the direct and ground reflection paths of the signal. It is more accurate for long distances:


Phy/WirelessPhy set propagation_ [new Propagation/TwoRayGround]
Shadowing Model: This model takes into account the signal fading due to various obstacles:

Phy/WirelessPhy set propagation_ [new Propagation/Shadowing]

d. Transmission and Interference Range

Each node in a wireless network has a specific transmission range, within which it can send signals to other nodes. In addition, there is also an interference range, in which a node can send a signal, but it can interfere with the signals of other nodes in that range. These ranges are set as follows:

Phy/WirelessPhy set Pt_ 0.2818  ;# Transmit power
Phy/WirelessPhy set freq_ 914e6 ;# Signal frequency
Phy/WirelessPhy set L_ 1.0      ;# System loss

e. Media Access Control (MAC) Protocol

A MAC protocol is used to control the use of the media between nodes in a wireless network. The most commonly used MAC protocol in NS2 is:

MAC 802.11: This is based on the IEEE 802.11 standard, which is used in Wi-Fi networks. Its setup is as follows:

Mac/802_11 set dataRate_ 11Mb

f. Routing Protocols

  • Routing protocols play an important role in wireless networks because the position of the nodes is constantly changing. Some of the main routing protocols are as follows:
  • AODV (Ad-Hoc On-Demand Distance Vector): This is an on-demand routing protocol, in which nodes search for a route only when data needs to be sent.
  • DSDV (Destination-Sequenced Distance-Vector): This is a table-driven protocol, in which each node constantly updates the information of the routes.
g. Battery Model:

Energy management in wireless nodes is a major challenge, especially in mobile and ad-hoc networks. It is necessary to manage the information of the battery capacity and energy consumption of the nodes. The battery model is set as follows:

Node/MobileNode set energyModel_ "EnergyModel"
Node/MobileNode set initialEnergy_ 100.0
Node/MobileNode set txPower_ 0.5
Node/MobileNode set rxPower_ 0.3

In this, initialEnergy_ represents the initial battery level of the node, while txPower_ and rxPower_ represent the energy consumption during transmission and reception.

h. Network Animation (NAM) Setup:

Animation is used to see the activities of the network in the simulation of a wireless network. In NS2, this process is done through NAM (Network Animator), which graphically displays the movement of nodes, signals, and packets.

set namtrace [open out.nam w]
$ns namtrace-all-wireless $namtrace $val(x) $val(y)

3. Importance of additional parameters in a wireless network

  • A mobility model determines how and at what speed nodes move, which causes the network topology to constantly change. This is necessary for the simulation of a mobile network.
  • A radio propagation model represents the accuracy and coverage of a signal. It is necessary to model real-life problems such as signal loss, fading, and interference.
  • An antenna model determines in which direction a signal will be transmitted. The use of different antenna types results in a difference in network performance.
  • A MAC protocol controls media access between nodes. This is important because many nodes transmit data on the same medium in a wireless network.
  • A battery model ensures that the energy consumption of nodes is properly modeled in the simulation, which is important in a real-life network.

In this Chapter

Additional Parameters
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
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
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