Traffic Generator Example

103 views
Skip to first unread message

Silvestre Malta

unread,
Apr 12, 2021, 4:59:29 AM4/12/21
to ns-3-...@googlegroups.com

Hi,

 

I am new to NS3 and I have still a lot to learn, right now I am studying and making coding changes in some of the examples provided in tutorial, to understand the basics of NS3.

 

My goal is to create a simulation with "n" wifi stations connected to an AP, that is connected to a CSMA network with a "server" node.

I want to launch IP traffic from the wifi stations nodes to the server and collect information on the AP such as:

  • incoming traffic
  • outgoing traffic
  • number of connections
  • network traffic load.

 

I want to run the simulation for a week, configuring a traffic fluctuation from the nodes to the server depending on the time (more traffic during working hours, less traffic at night).

I would like to collect the data in the AP in order to prepare a Dataset to use in machine learning to predict the network traffic load in the AP.

 

Would someone be kind enough to indicate to me if NS3 has an example similar to the one I want to implement? that I can study?

 

Thank you very much,

Silvestre Malta

 

Rahul Singh Gulia

unread,
Apr 13, 2021, 10:31:06 AM4/13/21
to ns-3-users
Hi Silvester,

Yes that can be done. Please look at the /ns3/examples/tutorial/third.cc code to connect multiples nodes to a AP via WiFi.

Also the AP can be connected to a remote server via PointToPointHelper class if you want, or via wireless mode. Please check PointToPointHelper class for wired connection, and /src/wifi/examples to connect AP to a remote server. 


-Best
R.G

Reply all
Reply to author
Forward
0 new messages