Questions tagged [ns2]

Network Simulator version 2, more popularly known as ns-2, is an open source event driven network simulator. With ns-2 one can simulate a wide range of network environments in wired, wireless or even in mixed mode. Major networking standards, including Ethernet, WLAN, satellite networks, Bluetooth, and so on, are supported by ns-2.

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

How to integrate ZRP routing protocol in OMNET++ for FANET?

Integration of ZRP routing protocol in OMNET++ I am trying to do a project on FANET using OMNET simulator. OMNET version: 6.0.1 INET: 4.4 OS: Windows Can someone please guide me how to integrate ZRP ...
nisar007's user avatar
0 votes
0 answers
20 views

Reverse AODV in NS2 with blackhole attack

Hi everybody I am wanting to simulate the Reverse AODV protocol in NS2 with black hole attack. Can someone help me, many thanks I don't know how to change the AODV code in NS2 to the Reverse AODV ...
thành nguyễn trọng's user avatar
0 votes
0 answers
13 views

Simulation of sending a video using ns2

how to simulate sending a video in ns2 like using ftp for sending files? Source code for multistreaming in sctp using ns2
ALBIN MICHAEL's user avatar
0 votes
1 answer
30 views

ns2 help - wireless LAN (AD HOC)

cannot get it to run, and now got an error node out of range --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---     _o186: no target for slot 4294967295     _o186 type: Classifier/Hash/...
gentleGIANT's user avatar
0 votes
1 answer
97 views

Is there a way to solve build type guess under Desktop Arm Ubuntu 20.04 in VM Fusion of M1 Mac?

Background: I should install a package called "NS2" in Ubuntu. My Ubuntu is 20.04 Version with an arm architecture. Our teacher doesn't allow us to use the 'sudo apt-get install ns2' way to ...
AlphaNNN's user avatar
0 votes
1 answer
70 views

network simulation using ns2 software

When executing the following code: I faced this error: ns2 AOMDV simulation error Network is not my field. thus I need your help seriously. num_nodes is set 0 warning: Please use -channel as shown in ...
Pom Hertom's user avatar
0 votes
1 answer
84 views

faced this problem when runnning ns2 .tcl file Segmentation fault (core dumped)

faced this problem when try to run ns2 simulation.tcl file below this error "Segmentation fault (core dumped)" ` `# define options set val(chan) Channel/WirelessChannel ...
Pom Hertom's user avatar
0 votes
0 answers
17 views

Negative Throughput in ns2 Wireless Simulation using TCP WestwoodNR

I am conducting a wireless simulation in ns2, using a flatgrid size of 1000x1000, 40 nodes, and 20 flows. The nodes use MAC 802.11 and DSDV routing protocol. For each flow, I randomly select a node to ...
swamp's user avatar
  • 286
0 votes
0 answers
25 views

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 ...
Chinmay Naik's user avatar
0 votes
0 answers
16 views

Add custom/new attribute in RREQ AODV ns2

I want to incorporate a new attribute called "Battery Warning Status" in the RREQ of AODV in ns2. This attribute will allow a node (node A) to determine which path to take when sending a ...
amirul hafiz's user avatar
2 votes
1 answer
1k views

How to get nam working with ns2 simulator [closed]

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 ...
Chinmay Naik's user avatar
3 votes
1 answer
266 views

Is ns2 installable for M1 Mac?

In our Lab, we were asked to install ns2. I tried running a script from a GitHub repo. But, after executing, it failed to run. I saw this ns3 google group. It mentioned that ns-3.33 was able to ...
Vedanta Mohapatra's user avatar
0 votes
0 answers
16 views

how to develop Mobile Agent using java

I am try to develop mobile agent using java programing language in order to detect malicious attack in MANET network.and then I went to run this method on ns2 simulator,But ns2 does not support java ...
wendwesen werku's user avatar
0 votes
0 answers
38 views

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 ...
Santosh Kumar Doodala's user avatar
0 votes
1 answer
109 views

TCL NS-2 error: 'Error when calling class $cls: $args" $...".'

I have installed NS-2.35 in Ubuntu 22.04.1. I am running a TCL code (which is working fine in my friend's machine) but I am getting the following error: num_nodes is set 101 INITIALIZE THE LIST ...
Zainab Iftikhar's user avatar
2 votes
2 answers
2k views

NS3 bash: ./waf: No such file or directory error

charlie@charlie:~/Desktop/ns-allinone-3.36.1/ns-3.36.1$ ls AUTHORS build-support CMakeLists.txt doc ns3 scratch testpy.supp VERSION bindings CHANGES.md contrib ...
Haneel Kumar Nagineni's user avatar
0 votes
0 answers
109 views

Error: sendmsg() to UDP should not be -1 while executing a TCL script (using NS & NAM)

I'm writing a script in TCL using NS and NAM. What is the statement question I'm trying to solve? Here it is: Following is the TCL script I have written to solve the above problem. I'm using NS2 and ...
VenoM's user avatar
  • 453
0 votes
1 answer
113 views

How to set packet color in NetAnim inside ns3

AnimationInterface anim("DDoSim.xml"); ns3::AnimationInterface::SetConstantPosition(nodes.Get(0), 0, 0); ns3::AnimationInterface::SetConstantPosition(nodes.Get(1), 10, 10); ns3::...
Mohammad Saif Khan's user avatar
0 votes
0 answers
32 views

Evaluation metrics in network simulator 2 ns2

I have a wireless network project which is written for detecting Sybil attacks in ns2 and now I'm supposed to evaluate some metrics e.g. Detection rate(DR), False positive rate (FPR), and Average ...
Sahar Zamanian's user avatar
0 votes
1 answer
86 views

While simulating a routing protocol for Wireless Sensor Network in NS2, accessing the nodes from inside the a function gives error "No such variable"

I am trying to write a code for 60 nodes and 1 mobile sink among which 18 nodes act as high-tier nodes or Backbone nodes. The mobile sink updates the location periodically to only the Backbone nodes ...
Shanks's user avatar
  • 3
0 votes
1 answer
362 views

calculate end to end delay

In Computer Network lesson I need to calculate end-to-end delay in python, I know that I have to use tr output which is created by tcl, and this tcl is running with ns2. I know the end-to-end formula ...
ryhn's user avatar
  • 96
1 vote
0 answers
336 views

nam: child process exited abnormally

Could not open GUI of network simulator using nam
Shaunak's user avatar
  • 23
1 vote
1 answer
85 views

What to do get rid of this error in Ubuntu?

set tracefile [open out.tr w] $ns trace-all $namfile When I am running the above TCL code this is showing in terminal. I have just started learning TCL so don't know what to do anything this error. ...
Mridul Kaushik's user avatar
0 votes
0 answers
144 views

File tcl is empty

please when i put this command in the terminal "./traceExporter.py --fcd-input guindy.xml --ns2mobility-output high.tcl" the result file is empty please what is the solution ?
Narimane's user avatar
2 votes
0 answers
198 views

sybil attack simulation by ns2 in Ubuntu

this is an anomaly detection simulation ns-2.35 I ran in Ubuntu ver16.04 *set val(chan) Channel/WirelessChannel ;# channel type # here we detect the channel Wireless channel or Satelite ...
Sahar Zamanian's user avatar
1 vote
1 answer
634 views

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's user avatar
0 votes
1 answer
61 views

What is the problem in rebuild of ns2 after adding multiple file as macng.cc and macng.h?

I added multiple files as macng.cc and macng.h but when rebuild , ns2 do not run and do not install, and there is error with ns command .and do not created macng.o file. make depend , make clean , ...
requestion's user avatar
0 votes
1 answer
97 views

What does number of nodes mean in ns3 vanet simulation

I have to compare omnet++ and ns3 on basis of vehicular network simulations. I have a question. In the example vanet-routing-compare.cc in ns3. What does the number of node means?? As i'm importing my ...
Rida Sagheer's user avatar
-1 votes
1 answer
258 views

HOw to calculate the throughput from a trace file

for this command $ grep ^r lab3.tr | grep "2 6" -c | awk "{s+=$6}END{print s}" I am getting this error awk: line 1: syntax error at or near } and what does "h" stand ...
Vijay Patil's user avatar
0 votes
1 answer
69 views

How to Simulate the performance, throughput, end2end delay, average of consumed energy and PDR for routing protocols in WSN?

i have an issue with my study task, and in need to Simulate the performance, throughput, end2end delay, average of consumed energy and PDR for EAR (Energy Aware Routing protocol) , MQOSR and SR-MQOSR ...
Ali Mehrez's user avatar
0 votes
0 answers
48 views

Is there a way to rebuild ns2 in fedoracore4 linux OS after replace multiple files in core of ns2?

How to rebuild ns2 in Fedora Core 4 Linux OS after replacing multiple files in the core of ns2? Do I have to uninstall and reinstall the ns2 completely or is there any other way?
requestion's user avatar
0 votes
0 answers
74 views

can't read ftp2 no such variable

i run ns2 code but it is throwing a warning with error warning: no class variable LanRouter::debug_ see tcl-object.tcl in tclcl for info about this warning. can't read "ftp2": no such ...
Sairaj Chonche's user avatar
0 votes
1 answer
719 views

Error while running ns2 Simulator:-Cant read "ns_03":-No such Variable

This is my very first program on ns2 on UNIX 14.04. I am trying to build a three nodes point – to – point network with duplex links between them. Set the queue size, vary the bandwidth and find the ...
Karthik KK's user avatar
0 votes
1 answer
72 views

How to remove linker error w.r.t. ltclcl in ns-2.29 installation?

I am trying to install ns-allinone-2.29 on Ubuntu 18.04. I need to implement Media Independent Handovers using the NIST-MIH patch. I have followed all instructions given in https://sourceforge.net/p/...
Rajeshwari Madli's user avatar
1 vote
1 answer
97 views

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 ...
charu's user avatar
  • 13
0 votes
1 answer
122 views

Implementing Boyer Watson algorithm for Delaunay Triangulation in Network Simulator ns2

I want to implement Delaunay Triangulation in Network Simulator ns2. Till now I know how to add nodes, how to make them move, How to set a traffic, and the basic things. Sample tcl scripts runs ...
charu's user avatar
  • 13
0 votes
1 answer
277 views

wrong # args: should be "_o3 self class proc file optx opty"

When I ran the tcl code, the following error appeared: wrong # args: should be "o3 self class proc file optx opty" (Simulator namtrace-all-wireless line 1) invoked from within "$ns ...
JIN ZHANG's user avatar
0 votes
0 answers
31 views

Which one os better for Ns2 and sumo installation Cygwin or ubuntu?

which one is preferable for installation and execution's of NS2 and SUMO .Cygwin or ubuntu?
FariE AHmAd's user avatar
0 votes
0 answers
255 views

NS2: Node mobility error when assigning mobile nodes

I tried making a mobility node from the existing NS-2.35 M-DART protocol by modifying some of the script line. But when I run the sccript there is an error says: anal2@ubuntu:~/Downloads/test2$ ns ...
Emyr's user avatar
  • 45
1 vote
0 answers
114 views

NS2: Packets won't forward data

I modified the M-DART tcl file in NS2 to run multi-channels instead of single channel. I already assigned the sending and receiving nodes but the packets did not forwarded to the destination node. The ...
Emyr's user avatar
  • 45
1 vote
0 answers
69 views

NS 2: Skipping duplicate node

I modified the M-DART tcl files and when I run NS2 animation, it pops out this: Skipping duplicate node (1), etc... The modified script: ########################################### # Define ...
Emyr's user avatar
  • 45
1 vote
1 answer
431 views

NS 2.35 segmentation fault (core dumped) when running MDART protocol

When I run MDART routing protocol tcl script in NS 2.35, it says: When configured, ns found the right version of tclsh in /usr/bin/tclsh8.6 but it doesn't seem to be there anymore, so ns will fall ...
Emyr's user avatar
  • 45
1 vote
1 answer
112 views

Modififed MDART TCL does not recognize variable

I tried modifying M-DART TCL file from single channel to multi-channel while making sure DHT is still functioning and not applying multi-path protocol. The error that I get is as below: When ...
Emyr's user avatar
  • 45
1 vote
2 answers
76 views

Sconfig 0.00000 tap: on snoop: rts? on errs? on

I am working on a project in Mobile Ad Hoc Network(MANET) ,using ns.35 and when executing this code using DSR # Define options set val(chan) Channel/WirelessChannel ;# channel type set ...
sally's user avatar
  • 21
1 vote
0 answers
95 views

Nodes with different energies

I am working on my project. It is about detection of selfish nodes depending on the energy of the node. Here I have 20 nodes of the same energy, then I added 5 more but with different energies. The ...
sally's user avatar
  • 21
0 votes
0 answers
163 views

How to introduce new queue command in ns2?

This is not a duplicate of how to implement multiple queues in Ns-2. Goal - I wanted to change internals of how queues behave without disturbing the existing queues. What I did - So I duplicated ...
Vishwajith.K's user avatar
0 votes
1 answer
498 views

Network simulator2(ns2) using cygwin giving the error: "cannot execute binary file exec format error in cygwin"

I am trying to run Network simulator 2 called as ns2 on windows10 OS using cygwin. For which i have downloaded cygwin n installed , keep all the files and directory inside the cygwin directory. When i ...
srbhthkr's user avatar
3 votes
0 answers
273 views

Please Tell me how to implement OSPF routing protocol [closed]

Please help me by providing the code for ospf implementation(just basic implementation needed to show what ospf does). It can be any language like python(preferred),Java,c++,ns2,matlab etc.,. If I get ...
saideepak Gorla's user avatar
1 vote
0 answers
95 views

Accessing NS2 packet header to get received data in a wireless network

I have an encryption protocol implemented in NS2 (Elliptic curve to be exact). I built a wireless network in TCL. The cc code encrypts the message that it got from the TCL then stores the encrypted ...
Mona Khammash's user avatar
0 votes
0 answers
111 views

Changing ns2 code for MAC 802_3 to turn off collission detection

I've been working on ns2 simulations for the past few weeks and need to change the implementation in ns-2.35/mac/mac-802_3.cc to turn off collision detection. This is the code that runs whenever a ...
Vipul Sharma's user avatar

1
2 3 4 5
13