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.

Overview:

ns-2 is written in C++ and OTcl. An overview of its architecture can be found in NS by Example. To simulate a problem one has to write a TCL script, which is executed by the ns interpreter. After successful execution, a trace file is obtained, which can be processed to evaluate different network parameters.

Installation:

ns-2 can be installed both on Linux or Windows. However, for Windows you would be required to install Cygwin first. Details about installation can be found in The Network Simulator: Building Ns.

Useful links:

641 questions
-2
votes
1 answer

Data mules in ns2

I want to create a 2x4 grid in ns2 in which sensor nodes are deployed uniformly in each grid. Now the only function of sensor nodes sense data and communicate it to data mules(mobile nodes) To ensure equal node on every mobile node, the sensor nodes…
-2
votes
1 answer

How to calculate throughput for individual links (there by fairness index) using old wireless trace format file in ns2?

I am stuck as in how to identify the different connections(flows) in trace file.
SriChakra
  • 39
  • 1
  • 8
-2
votes
1 answer

How to Add a New Protocol in Network Simulator 2

I have never added a new protocol to NS2 so can anyone please give a complete step by step Introduction to adding a new protocol in ns2???
Cruizer Blade
  • 36
  • 1
  • 7
-3
votes
3 answers

error while Linking c++ and ns2?

had done following steps Download "ex-linkage.cc" file, and save it under the "ns-2" directory. Open "Makefile", add "ex-linkage.o" at the end of object file list. Re-compile NS using the "make" command. Download the "ex-linkage.tcl" file that…
Midhun Mohan
  • 552
  • 5
  • 18
-3
votes
1 answer

Creating a new routing protocol for ns2

How can you create new mobile adhoc network routing protocols for ns2? I am still relatively new to ns2, and I already read some answers regarding my question, but I honestly still don't quite get it. I was hoping to find a much easier way of…
Jihad
  • 1
  • 3
-3
votes
1 answer

I have added a randomized aodv to ns 2.35 and I'm getting the following error.I have added all the .h and .cc file in their respective places

trace/cmu-trace.cc:971:40: error: ‘acces’ is not a member of ‘hdr_raodv’ trace/cmu-trace.cc:1017:14: error: ‘RAODVTYPE_RREP’ was not declared in this scope make: *** [trace/cmu-trace.o] Error 1 Please do help me.
user3400176
  • 49
  • 1
  • 4
-3
votes
1 answer

How the following code is working in c++

Scheduler::Scheduler() : clock_(SCHED_START), halted_(0){ } How the above is valid in c++, which was available in scheduler.cc of NS2 So any one kindly explain about the above code. Thanks in advance
-3
votes
1 answer

How to execute Sql query from ns2 backend files?

Is it possible to execute sql queries from ns2 backend files? or is it posible in tcl?
Naveen.S
  • 730
  • 5
  • 21
-4
votes
2 answers

How to implement DSR and DSDV Code in NS-2

How to implement the tcl script for DSR protocol for 50 node in Ns-2? Also i need the code for DSDV protocol i am doing a performance evaluation for them.
Rami Ahmed
  • 1
  • 1
  • 1
-4
votes
1 answer

no ‘void beeGenerator::initialize()’ member function declared in class

Ohayou. I've had read about this error in many topics before asking, but I couldn't solve this by myself. I'm sorry for bother about it. My problem is: I have two files, one is a .cpp and other a .h file. My cpp file is: #include…
Marji
  • 3
  • 2
-5
votes
1 answer

blackhole attack splittingobject error

i too have same problem. please provide a clear solution for me... following error is obtained when i run blackhole.tcl file. ns: _o108 blackhole: (_o108 cmd line 1) invoked from within "_o108 cmd blackhole" invoked from within "catch…
Lava23
  • 1
1 2 3
42
43