Questions tagged [ns2]

The Network Simulator - ns-2

Ns-2 is a discrete event simulator targeted at networking research. Ns-2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks. for more information see this wikipedia page

49 questions
1
vote
0 answers

NS2 program TCP over noisy channel error

Set error model on link n2 to n3 set loss_module [new ErrorMode] $loss_module set rate_ 0.1 Create the Simulator instance set ns [new Simulator] $ns color Red $ns color Blue Open NAM trace file $set nf [open out.nam w] $ns namtrace-all $nf Open the…
1
vote
1 answer

NAM GUI does not display

I just started using Ubuntu and I need to run NS2 with the NAM gui. I successfully installed ns2 and nam and I am able to run ns2 scripts. However when I try to open NAM from the Terminal, it simply does not work. When I run nam from the terminal, I…
1
vote
1 answer

Why is MESSAGE_PORT always 42?

I am new to NS2. In any tcl file where flooding is done, MESSAGE_PORT is always set to 42. What is the reason behind this?
1
vote
0 answers

Topology not creating from OSM wizard (Browser) (file:///home/rehan/sumo-0.32.0/tools/webWizard/index.html)

rehan@rehan-Y11C:~/sumo-0.32.0/tools$ python osmWebWizard.py Building scenario in '/home/rehan/sumo-0.32.0/tools/2019-11-15-12-29-32' Downloading map data 200 OK Converting map data Usage: osmWebWizard.py [options] osmWebWizard.py: error: typemap…
1
vote
0 answers

NS2 Installation in ubuntu 18.04

I was trying to install ns2 from source. I followed the steps given here https://www.nsnam.com/2018/06/installation-of-ns2-in-ubuntu-1804.html. I am getting the following error. config.status: creating Makefile config.status: creating…
1
vote
0 answers

./trgraph: error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory

Good morning community, i wanted to install tracegraph on Ubuntu 16.04 - 32 bit: i downloaded "tracegraph202" and i extracted it. i downloaded "mglinstaller" and i extracted it into "tracegraph202". into /home/pc/Desktop/tracegraph202/ ->…
Rahal
  • 31
1
vote
1 answer

ns2 installation problem in ubuntu

I have gcc-7.2.0 I want to install ns2.35 which requires gcc-4.4. How to solve this problem. I have tried many commands and have downloaded Gcc4.4 tar file. please help me for solving this problem.
Akhil
  • 31
1
vote
1 answer

Error while installing NS2 on Ubuntu 17.01

The following error keeps appearing while installing ns2 on Ubuntu 17.01: mdart/mdart_adp.cc: In member function ‘void ADP::sendDarq(nsaddr_t, int)’: mdart/mdart_adp.cc:108:21: error: reference to ‘hash’ is ambiguous nsaddr_t dstAdd_ =…
Rery
  • 11
0
votes
1 answer

DSR, OLSR and ZRP simulation problems in NS2

I am trying to simulate each type of routing protocoles in NS2. I started with AODV and DSDV, it worked very well, but when I tried to simulate DSR I got this error "core dumped", and for OLSR and ZRP I got this one: (_o16 cmd line 1) …
Abdel
  • 1
0
votes
0 answers

Problem launching nam

i have a problem launching nam. I get a permissions error and it never displays the network animation window. I am running Ubuntu 22.04.
0
votes
0 answers

where is ns-2.35 and tcl8.5.8 directories in file system stored?

I used sudo apt-get install ns2 to install ns2. I want to know where are the above mentioned directories stored on my system?
-1
votes
1 answer

Installation of more than one version of ns-2 on the same machine

I have an already working installation of NS 2.35 in my machine. I need to install NS 2.27 on the same machine. My question is will there be a conflict between both versions that will make either of the installation to stop working.