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
2
votes
1 answer

bash: ./ns: No such file or directory

I am trying to execute a TCL script in NS2 simulator but I see this error: bash: ./ns: No such file or directory The path is `ns-2.35/tcl/ex/wpan.' When I execute this file in ns-2.35, it runs well. How can I fix this?
eli
  • 21
2
votes
0 answers

What version of gcc should i install on ubuntu 19.4 and how?

So i tried installing gcc 4.8 on Ubuntu 19.4 but i keep getting errors. I figured it must be happening because Ubuntu 19.4 does not support gcc 4.8. The error says that the package might be obsolete. What do i do? Please help!
1
vote
2 answers

How to install ns2 and ns3 together?

Can I install ns2 and ns3 together in Ubuntu 16.04?
Sousou
  • 13
1
vote
1 answer

NS-2.31 Make fail while adding a transport layer protocol

While adding a transport layer protocol in ns-2.31 in ubuntu 14.04, I am coming across the following error that I have been unable to resolve. "make: *** [dtsncc/dtsncc-cache.o] Error 1" (screenshot available…
1
vote
2 answers

how to set a node to sleep in ns2

I just want to set a node to sleep in "ns-2" and i have searched in protocols and i found a lot of objects and functions about sleep but i couldn't use them in other protocols to set a node to sleep. When i use them i get Segmentation fault or…
Jenova
  • 58
  • 1
  • 11
1
vote
1 answer

gcc not found while executing shell script

invalid command name "gcc" while executing "gcc rsa.c -o rsa -lm" (file "./run.sh" line 1) does gcc-4.9.2 works correctly on ns-2.35 or is it gcc-4.4
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 error : Segmentation fault (core dumped)

I'm trying to use ns2 in ubuntu 14.04 (32 bit). But I'm having a great trouble using nam I can use ns2 command easily $ ns example.tcl But the nam is not working properly. On executing the below command $ nam example.nam I'm getting error…
1
vote
1 answer

How to install ns2 on Ubuntu

If I upgrade Ubuntu 12.04 to 14.04, will NS2 still be supported? I am currently using NS2 on Ubuntu 12.04.
1
vote
1 answer

how to show GUI of ns2?

I have installed NS2 (network simulator 2.34) on my ubuntu 12.4. But when I execute the ns ns-simple.tcl in the terminal only the following messages have been shown without any GUI or schematic of my network: CBR packet size = 1000 CBR interval =…
frogatto
  • 924
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…
mehdihaddoud
  • 11
  • 1
  • 3
1
vote
0 answers

How to install ns2 simulation on Ubuntu 18.04.5

I am trying to install ns2 simulations on ubuntu 18.04.5, But got an error. I was followed this step https://www.absingh.com/ns2/ E: Unable to locate package ns2
1
vote
0 answers

Why showing this error in running mptcp?

Could anybody please help me. Why showing this error while I am trying to run the command for sample mptcp? The file is available here https://github.com/wangzhizhou/Network-Simulator-Installation-Guideline-For-Ubuntu/blob/master/README.md invalid…
1
vote
1 answer

How do I move a file from the Downloads folder into the opt folder on Ubuntu?

I am trying to install a network simulator onto Ubuntu on my virtual machine(VMWare). It requires me to move the file downloaded into the opt folder in order for me to run other commands for installation. Tried this: sudo cp -r…
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
2 3 4