Skip to content

gabrielle9talavera/UpdatedNetworkSimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS491FinalProject

AUTHOR: Gabrielle Talavera

DESCRIPTION: This project simulates a dynamic mesh network where nodes and links may fail. Nodes may fail intermittently, and as an input to the simulation, each node and link will have a certain probability to fail. When such failure occurs, the network must adapt and re-route to avoid the faulty node. This network uses the Floyd-Warshall algorithm to route from a source node to the destination.

UPDATED 5/2020: ADDED AUTOMATED TESTS AND DEPLOYMENT

ADDITIONAL FEATURE: This program uses the Floyd-Warshall algorithm to route to a source to destination. There is a feature that can compare the performance of the Floyd-Warshall algorithm with Dijkstra's and the Bellman-Ford algorithm. To compare Floyd-Warshall to Dijkstra's uncomment lines: 107, 112, 122. To compare Floyd-Warshall with the Bellman-Ford algorithm uncomment lines: 108, 113, 123.

RUNNING THE PROGRAM:

Make sure Python is installed. I used version 3.7.4 to build this project. Make sure numpy and networkx packages are downloaded Run the program using 'python sim.py' Follow the prompts that the program gives you when executed OUTPUT:

Original Path Number of hops with no node failures Total Cost of Path Updates: Nodes that fail every cycle. Updated path from source node to destination node Number of hops (how many links it has to pass over) Total Cost of path (all the weights on links added up) If the Dijkstra and Bellman-Ford feature is activated, then the path, hops, and total cost would be printed for these algorithms

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published