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

Where can I read what ns3 module needs to be built?

I work on Windows 7 & I must use the ns3 network simulator, so I install the Cygwin emulator. I successfully download the ns3 from the official cite and install it, but six modules wasn't been installed. I think it's because when I install Cygwin, I…
hunter
  • 103
  • 3
-1
votes
1 answer

Analyzing TCP Traffic

I just ran a simulation for multipath tcp protocol sending 100,000 bytes from client to server in the network simulator 3. I got the trace file (pcap) and analyzed it in Wire Shark. The flow graph is very weird. How can ACKs be sent and received on…
-1
votes
1 answer

Implement P2P file transfer using NS2/NS3

I am working on a peer-to-peer file transfer project that should be implemented either using NS2 or NS3. It would be of great help if anyone could give some pointers or source codes using which I can work on. Note: A simple P2P file transfer code…
Nbn306
  • 11
  • 1
-1
votes
1 answer

Error while creating array of objects in NS-3 (C++)

In an NS-3 .cc file I am trying to create an array of instantiations of the UdpEchoClientHelperclass, just by doing: UdpEchoClientHelper echoClient[NO_OF_NODES]; and when I am trying to build I am getting the error…
nikos
  • 2,893
  • 11
  • 30
  • 39
-1
votes
1 answer

Network simulator - reading packets from file

I would like to ask if it is possible add some packet file like .pcap or .txt (packet statistic) to ns input. For example, if I want insert some packets to device interface. Is it possible with ns2 / ns3? Thank you
-1
votes
1 answer

Bridge between simulated network and real host

I need to build a bridge (tap) between a simulated network (NS-3) and the real Linux host So when the "bridged" node receive a packet in NS-3, the real Linux host receive the packet. How i can build such bridge? Could you give example? Thanks.
-2
votes
1 answer

How to get current timestamp in nanoseconds in C++ without using chrono?

Since chrono is not supported in the Network Simulator -3 tool, I need to code in C++ without using chrono in order to get timestamp in nanoseconds.
-2
votes
1 answer

Repeated errors despite correct namespace

I added a class to ns3 and when using it I keep getting the error: ../scratch/seven.cc: In function ‘int main(int, char**)’: ../scratch/seven.cc:102:3: error: ‘RandomAppHelper’ was not declared in this scope RandomAppHelper source =…
Sie Tw
  • 133
  • 1
  • 12
-2
votes
1 answer

Error while creating C++ array

#include "connection.h" ConnectionType[] ConnectionArray = new ConnectionType[NUMBER_OF_CONNECTIONS]; I get 2 errors Error: expected an identifier Error: expected a ';' I have class ConnectionType { public: Ptr txMstrSocPtr; ///…
Fouda
  • 291
  • 1
  • 4
  • 14
-3
votes
1 answer

ns3 How to create a custom point to point topology

Creating a point to point topology involves two nodes and the code generating such topology is like this: // Default Network Topology // // 10.1.1.0 // n0 -------------- n1 // point-to-point // using namespace…
Zahra
  • 2,231
  • 3
  • 21
  • 41
-3
votes
2 answers

nodes and udp implementation in NS-3

3 and I'm currently trying to alter some of the codes in the examples section without any success. #include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/internet-module.h" #include "ns3/point-to-point-module.h" #include…
romi
  • 3
  • 2
-3
votes
1 answer

Error in a ns-3 simulation?

I am trying to run a simulation but I keep getting some kind of error. I am not an expert on C++, but I think it's due to header file include. I am getting the following error: error: ISO C++ forbids declaration of ‘type name’ with no type…
-4
votes
1 answer

awk script to calculate delay from trace file ns-3

I want to measure time between transmitted and received packets in below trace file. Input: + 0.01 /NodeList/1/DeviceList/1/$ns3::PointToPointNetDevice/TxQueue/Enqueue - 0.01 /NodeList/1/DeviceList/1/$ns3::PointToPointNetDevice/TxQueue/Dequeue r…
josef
  • 3
  • 3
-4
votes
1 answer

NS-3 WIFI Base Station and accesspoint handover

I am a new user of NS-3. Can you help me in writing a code of handover in between nodes in Wi-Fi environment?
-11
votes
1 answer

ISO C++ forbids declaration of ‘multiset’ with no type

I am getting this error while building a software (ns3) using waf In file included from ../src/internet-stack/mp-tcp-typedefs.cc:6: ../src/internet-stack/mp-tcp-typedefs.h:151: error: ISO C++ forbids declaration of ‘multiset’ with no…
Fernando
  • 13
  • 5
1 2 3
28
29