Questions tagged [ns-3]

ns-3 (Network Simulator 3) is a event driven simulator to model different types of networks. It is used extensively in networking research.

ns-3 (Network Simulator 3) is a event driven simulator to model different types of networks. It is used extensively in networking research. It supports simulation scripts in python and C++.

Homepage of ns-3 project

436 questions
0
votes
1 answer

Using trace file in NS-3

I want to know how to use your own video trace in an example given in ns-3 examples folder. Do I need to make change in just this line of the code? UdpTraceClientHelper client(server address,port, "url address to that video trace") I am looking for…
Xara
  • 8,748
  • 16
  • 52
  • 82
0
votes
1 answer

For NS-3, Is synchronization needed when using MPI Distributed Simulation?

I am trying to use MPI Distributed Simulation feature of NS-3. I have implemented an application and a node class in my module. I also have a factory class as a singleton object. Do I have to consider synchronization using monitors and Mutex in my…
hashtpaa
  • 389
  • 2
  • 11
0
votes
1 answer

Is the NS-3 TCP/UDP socket non-blocking or blocking?

I am trying to implement a multimedia server application in NS-3 which can serve multiple clients. Can a single NS-3 (TCP? and/or) UDP socket accept multiple simultaneous connections?
Carlo
  • 323
  • 1
  • 2
  • 13
0
votes
1 answer

ns3 buffer.h assert failed

I created a new application for ns3, which seems to run correctly, however, after a few seconds of execution (after many packets have been received correctly), a get the following error: assert failed. cond="m_current + delta <= m_dataEnd",…
user000001
  • 32,226
  • 12
  • 81
  • 108
0
votes
1 answer

How can I use NS-3 to simulate some routing algorithms?

I am trying to do a simulation for networking for some routing algorithms such as OSPF, RIP, IS-IS, DSR using NS3 ( network simulator 3) since it's free. But after reading the ns3-tutorial, I still have no clue where to start in order to simulate…
Shakash3obd
  • 13
  • 2
  • 9
0
votes
1 answer

How to let a uint8_t const* point at the same address as a char*?

In a C++-program I have a char* pointing to the beginning of an array containing BUFFER_SIZE number of chars (each char the size of one byte). I now want to use that code in an NS3-simulation, which packets takes as input a uint8_t const* , pointing…
Anders Branderud
  • 1,878
  • 6
  • 29
  • 45
-1
votes
1 answer

ns3 running failure due to CMakeLists.txt

I have begun to make a network simulation using ns-3.39. However, after installation, I met a problem to run a simulation. When I try to run first.cc in the tutorial folder, the terminal displays: ./first.cc: line 1: /bin: Is a directory ./first.cc:…
PSH
  • 1
-1
votes
2 answers

E: Unable to locate package python-pygraphviz E: Package 'ipython' has no installation candidate

I wanted to use ns3 for which some prerequisites have to be met in Ubuntu. (https://www.nsnam.org/wiki/Installation) First of all I cannot use apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev ipython command as it…
shree
  • 1
  • 1
  • 2
-1
votes
1 answer

I need some solution please

I am getting the following error message: Warning: Environment variable SUMO_HOME is not set, using built in type maps. Warning: Environment variable SUMO_HOME is not set, schema resolution will use slow website lookups. Error: unable to open file…
Jon Sid
  • 11
-1
votes
1 answer

Eclipse C/C++ - MercurialEclipse is not listed to install

According to given instructions online, I am trying to install MercurialEclipse to setup my NS3 application on Eclipse Oxygen. However, I can't find this plugin under "http://cbes.javaforge.com/update" location.
fhm
  • 57
  • 1
  • 11
-1
votes
2 answers

How the ZeroDivisionError process

I would like to know what is the use of ZeroDivisionError and how it works in the following example code? try: hopCounts.append(flow_stats.timesForwarded/ flow_stats.rxPackets) except ZeroDivisionError: …
wayo
  • 19
  • 1
  • 9
-1
votes
1 answer

Flow Monitor Result is not showing in ns3 simulation

Currently i m using ns-3.19 for my simulation I have code of PMIPV6. It is running on my friend system perfectly and showing me Flow Monitor output on the terminal. But when i m running on my system code is running perfectly fine but it is not…
-1
votes
1 answer

In NS-3, How to do you assign node id and how to retrive/display them in the terminal?

I want to display 20 nodes with its unique id. I have created 20 nodes using for loop with the following command. NodeContainer c; c.Create (20); int j; for(j = 0; j < 20; j++) { m.Install (c.Get(j)); } std::count << "Node Id: %d" << ???…
-1
votes
1 answer

how to understand this code from Random Waypoint model

I am new to C++, but here is a piece of code from Random waypoint.This is the refernce of it: http://netdb.cis.upenn.edu/rapidnet/doxygen/html/classns3_1_1_random_waypoint_mobility_model.html#a2b8fc7b2cf1e2ffec7e6c6a9d5f7404 Says:This method…
Shan Huang
  • 39
  • 1
  • 8
-1
votes
1 answer

install ns3.21 in ubuntu16.04 error

When I try to "sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl" 16.04 cannot find the package libgsl0ldbl for the reason that libgsl0-dev is replaced by libgsl-dev and libgsl0ldbl is obslolete, now replaced by libgsl2. I don't know if it…
Meng Li
  • 65
  • 1
  • 7
1 2 3
28
29