ContriHUB / Congestion-Control-Simulator

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

Multi-Node Simulation Support #5

Closed Nandika-A closed 8 hours ago

Nandika-A commented 1 day ago

🚀Feature Request

Description

The current simulator is designed to simulate network scenarios with only two nodes. Introducing support for multi-node network topologies would allow for more complex and realistic simulations, enabling users to model larger and more diverse network environments.

Why is this feature important to you?

In real-world networks, multiple nodes interact with one another, leading to various challenges in congestion control and network performance.

Describe the solution you'd like

Implement functionality that allows users to define and simulate networks with multiple nodes. This includes designing a system where packets can flow between various nodes, and congestion control algorithms can operate on a node-to-node basis. The user should be able to configure the number of nodes and the connections between them, and the simulator should display how congestion propagates through the network.

Gprakhar141 commented 1 day ago

Thanks for assigning, will start working on it right away.

Gprakhar141 commented 10 hours ago

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.

Kindly ping me if I'm right on it.

Gprakhar141 commented 10 hours ago

Screenshot 2024-10-10 153641

Gprakhar141 commented 10 hours ago

Should I continue and raise my PR or anything else is there I am missing???

Nandika-A commented 10 hours ago

Hi @Gprakhar141! The code review is done only once the PR is raised. So raise the PR as soon as you complete your work and I will provide direct reviews over the changes in the files in the PR. Code snippets aren't required to be sent in the issue comments. Take care from the next time and raise the PR.