https://github.com/openmohan/tcpbenchmarking
Checking on how different TCP variants perform in NS2 simulation.
https://github.com/openmohan/tcpbenchmarking
ns2-programming ns2-tutorial tcp
Last synced: about 1 month ago
JSON representation
Checking on how different TCP variants perform in NS2 simulation.
- Host: GitHub
- URL: https://github.com/openmohan/tcpbenchmarking
- Owner: openmohan
- Created: 2019-02-27T07:18:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T07:52:13.000Z (about 6 years ago)
- Last Synced: 2025-02-01T18:24:14.922Z (3 months ago)
- Topics: ns2-programming, ns2-tutorial, tcp
- Language: Tcl
- Size: 1.33 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TCPBenchmarking
Checking on how different TCP variants perform in NS2 simulation.Completely based on paper “Simulation-based Comparisons of Tahoe, Reno, and SACK TCP” by Kevin Fall & Sally Floyd.
Simulate the network topology used by Fall and Floyd in their paper:

Running simulations: (scripts, simulator code and output are attached)
Example: TCP - packet loss :
1. Go in to tahoe folder and run ‘ns tcp_drop_tahoe.tcl ’
2. Based on the output files will be created in the appropriate folder
3. Go in to the appropriate folder and run `cat out.tr | ../../Utils/packageplot.pl ` . It must have created three output files (ack.tahoe, dropped.tahoe, sent.tahoe)
4. Go into gnuplot terminal by running `gnuplot`
5. Run the commands to plot the dropped packets, send packets and ack packets in graph and save as image
```
gnuplot
plot [0:6] "sent.tahoe" with points,"dropped.tahoe", "ack.tahoe" with dots
set terminal pngcairo
set output 'output.png'
replot
unset output
```
6. For calculating avg.throughput and number of packets run
`perl ../../Utils/throughputCalculator.pl out.tr 4 0.0 4.0 1.0`

7. For additional details, go to the site http://www.jgyan.com/analyzer/ and upload out.nam file