ContriHUB / Congestion-Control-Simulator

Simulates TCP congestion control algorithms
MIT License
0 stars 5 forks source link

Add Multi-Node Simulation Support #7

Closed Gprakhar141 closed 8 hours ago

Gprakhar141 commented 9 hours ago

Description

I have implemented support logic for multiple nodes and modelled the nodes and connection between them using graphs and have stored the connections between the nodes in the form of a matrix. I have used react states to store number of nodes and connections between them. A state for nodes is kept in which all the info(cwnd, ssthresh, sent_packets, lost_packets and ack) is stored in the form of array of js objects. I haven't modified the logic behind any algo just optimised them to handle multiple node scenarios.

Related Issue

Implementation of the proposed simulation tool, scaled up to support multiple node network, where congestion control algorithms can operate on a node-to-node basis.

Type of change

Motivation and Context

In real-world networks, multiple nodes interact with one another, leading to various challenges in congestion control and network performance. It helps to visualise the real-world scenarios in which multiple nodes interact and congestion control algos work in the TCP layer.

How Has This Been Tested?

Compiled on local machine and tested using various test cases with different values for each input fields.

Screenshots (if appropriate):

Screenshot 2024-10-10 153641

Checklist:

Nandika-A commented 9 hours ago

@Gprakhar141 Add this PR's link to contrihub's site as well.

Nandika-A commented 8 hours ago

Great work!