Skip to content

MKagesawa/Networking_Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Networking_Simulation

Sliding window protocol, congestion collapse, EWMA, AIMD, stop and wait protocol

Dependency

  • Python3
  • Matplotlib

AIMD_SlidingWindow_StopAndWait Folder

Stop and Wait Protocol

python3 simulator.py --seed 1 --host_type StopAndWait --ticks 50 --rtt_min 10

Sliding Window Protocol

python3 simulator.py --seed 1 --host_type SlidingWindow --ticks 50 --window_size 5 --rtt_min 2

Congestion Collapse

python3 simulator.py --seed 1 --host_type SlidingWindow --ticks 10000 --rtt_min 10 --window_size 10

AIMD

python3 simulator.py --seed 1 --host_type Aimd --ticks 10000 --rtt_min 10 --queue_limit 5

Plotting

To plot the results, use plotter.py file

LS_DV_Router Folder

Run with File Input

python3 simulator.py LS (or DV) file_input --graph_file line.graph

Run with Random Input

python3 simulator.py DV (or LS) rand_input --link_prob 0.5 --seed 1 --num_routers 10

Input Packet Queueing

Run Parallel Iterative Match (PIM) Algorithm

python3 pim.py 16 0.5 1 4 Inputs: , , ,

Run First-In, First-Out (FIFO) Algorithm

python3 fifo.py 16 0.4 1 Inputs: , ,

About

Sliding window, congestion collapse, ewma, stop and wait

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages