Questions tagged [nam]
14 questions
2
votes
1 answer
How to get nam working with ns2 simulator
Currently I have installed ns2 in my linux pc and when I run the following on terminal
$ ns sampleprog.tcl
all I get is
nam:
There should have been a nam pop up window opening instead.
I don't know how to solve this problem as I have installed…

Chinmay Naik
- 23
- 5
1
vote
0 answers
1
vote
1 answer
Network Animator not working in ubuntu 20.04
i successfully installed NAM on NS2, but when i run NAM with command nam, it gives following output.
nam:
Can anyone help , what the isssue is

Muhammad Nadeem
- 21
- 1
1
vote
1 answer
GUI programs in tcl. how to compile it in ns2?
When I tried to compile a program taken from internet
proc demo {} {
canvas .c -bg white
frame .f
button .f.c -text Clear -command {.c delete all}
button .f.co -text Complete -command {showComplete .c}
button .f.tr…

charu
- 13
- 2
1
vote
1 answer
Label-Color, Color, and Shape issues for NS2 (nam) nodes in Tcl
I am trying to label, change shape, and change label-color of nodes in NS2 2.35/nam 1.15. I am able to add the label and change the color of the nodes correctly (although color requires 2 lines). However, I would like to make that node a square AND…

Sam Dean
- 379
- 9
- 19
1
vote
2 answers
How to set position and orientation of nodes displayed in NAM using TCL code?
Using NS2 and NAM, I want to display a tree topology containing many nodes. How to set position of nodes and orientation as displayed in the image. First image shows before editing and changing the position of nodes in NAM tool. Second image…

Dipankar Nalui
- 1,121
- 5
- 18
- 33
1
vote
0 answers
Explain network congestion and packet loss using NS, NAM and XGRAPH
I have created in NS two nodes connected over a 4Mbps connection with a delay of 10ms.
Node1 is a transmitter and Node2 is a receiver.
The transmitter node sends packets at a rate of 10ms (0.01s).
Packet transmission starts at 2s in the…

Dimitris Karagiannis
- 8,942
- 8
- 38
- 63
1
vote
1 answer
ns2 cannot connect to existing nam instance
I'm trying to run the below code using nam.
set ns [new Simulator]
set nf [open lab1.nam w]
$ns namtrace-all $nf
set f [open lab1.tr w]
proc record {} {
global sink f
set ns [Simulator instance]
set time 0.12
set bw [$sink set bytes_]
set now…

user7375077
- 95
- 7
0
votes
0 answers
How to create a application specific adaptive congestion control algorithm based on parameter like the port number in ns2
I have been assigned the project to Create a application specific adaptive congestion control algorithm based on parameter like the port number in ns2 network simulator. How do I go about it ? I don't know how to use port number in ns2 simulator.…

Chinmay Naik
- 23
- 5
0
votes
0 answers
How to implement in DVMRP, MOSPF in NS2
I am trying to implement the above multicast protocol using ns2, but i am unable to find correct source on how to build the protocol.
I read through the documentation, all they said about was Centralised Multicast, Dense Mode, Shared Tree Mode and…
0
votes
1 answer
npm, nvm, node versions
I've got myself into a muddle trying to install a version of node under 6.0.0 in order to use the Domo Dev Studio.
I seem to have a version of node installed which isn't visible on nvm...
Bryonys-MBP:domo bryonymiles$ nvm ls
v5.12.0
…

Bmil
- 362
- 2
- 13
0
votes
0 answers
hidden node in network simulation in Ns2
I want to show the effect of hidden nod in Ns2 (Network simulation)
and because of that I get throughout from trace file with awk
but actually, my throughout is not changed when I move nodes close to the destination node.
my tcl code is this:
#…

Mohsen Rahnamaei
- 401
- 1
- 3
- 15
0
votes
1 answer
Segmentation Fault(core dumped) in nam
I have installed ns2 and % sign appears when I type ns on terminal.But when I type nam,the nam window is not opening and segmentation fault(core dumped) error appears.Also when I run "ns filename.tcl" the nam window doesn't open.What should I do?

Gaurav Sawant
- 63
- 1
- 2
- 7
0
votes
2 answers
Wireless Adhoc network animation in NAM
I've simulated an adhoc network using ns2, and generated NAM trace file. When I open this file using NAM, it shows nodes by numbered circles, but when I play the animation, nothing happens. Also reducing or increasing speed does not change the…

Ahmad
- 5,551
- 8
- 41
- 57