Skip to content

A simple network simulation with ns-3 to compare two types of data traffic.

Notifications You must be signed in to change notification settings

NouamaneA/network-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network Simulation

This project uses ns-3 to simulate a network in order to compare the performance of it with CBR (Constant Bit Rate) or ON/OFF traffic.

Prerequisites:

  • g++
  • ns-3 (the version I use is 3.34)

To compile the code, run: (the commands are given for Linux)

make

or

g++ simulation.cc -l ns3.34-core-debug -l ns3.34-network-debug -l ns3.34-internet-debug -l ns3.34-point-to-point-debug -l ns3.34-applications-debug -l ns3.34-traffic-control-debug -l ns3.34-flow-monitor-debug -o simulation

Finally, to run a simulation plan, you can run the simplan script as follows:

chmod +x ./simplan
./simplan

To compare CBR traffic and ON/OFF traffic, change the values of simDuration and percentCBR. Then, check the text files for the results.

You can also find some of the results I had in the plot directory.

About

A simple network simulation with ns-3 to compare two types of data traffic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published