Ns3 Projects for B.E/B.Tech M.E/M.Tech PhD Scholars.  Phone-Number:9790238391   E-mail: ns3simulation@gmail.com

What is Nam File in Ns2

Our technical experts have years of experience in this field over their experience, we have derived this article. Now let’s have a look about the significance of Nam in network simulator 2.

Step: 1 Download Nam in Ns2

Initially, we have to download the Nam package nam_1.15-10_i386.deb from the below mentioned URL to integrate with network simulator 2.


Link to Download Nam in Ns2

Step: 2 Installation of Nam

Following that, we have to execute the below mentioned commands in the terminal window to install Nam.

sudo dpkg –install nam_1.15-10_i386.deb

Command to Install Nam

Step: 3 Ns2 Source Code for Nam

In addition, we have highlighted the network simulator code to define the Nam trace file object.

set namtrace                [open Simulation.nam w]

$ns trace-all $tracefd

$ns namtrace-all-wireless $namtrace $val(x) $val(y)

Step: 4 Start Nam in Ubuntu for Ns2

To start Nam in Ubuntu, we have to implement the below mentioned commands in the terminal window to acquire the below mentioned results.


Start Nam in Ubuntu for Ns2

As the consequent process, we have to select the auto generated Ns2 trace file which is stored along with the file extension .nam.

Selection of Auto Generated Ns2 Trace File

Finally, we will acquire the below mentioned image as result based on Nam Ns2 trace file.

Ns2 Trace File Based Nam Result

We are providing 24/7 research support for the scholars, so you can reach us at any time to acquire a whole heap about the Ns2.