Skip to content

A Java based network of routers using Dijkstra's Shortest Path and Socketio to forward packets.

Notifications You must be signed in to change notification settings

RScicomp/Java-SocketIO-Network

Repository files navigation

Networks

This project simulates a network using java's socketio. In the terminal we can create links between routers and assign weights to the links. We set up a link database, and we forward packets using Djikstras Shortest Path algorithm.

Features

Router 192.168.1.2 upon establishing link to Router 192.168.1.3:

Router 192.168.1.3 upon established Link:

Getting Shortest Path Between Routers 192.168.1.2 to 192.168.1.6

Set up

An application to communicate between simulated Routers using socketio. In order to set JAVA_HOME :

open -e .bash_profile and fill in the following with your path

#Maven export M2_HOME=/Users/{User}/apache-maven-3.6.3 export PATH=$PATH:$M2_HOME/bin

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre"

In order to run: java -jar target/COMP535-1.0-SNAPSHOT-jar-with-dependencies.jar conf/router1.conf

About

A Java based network of routers using Dijkstra's Shortest Path and Socketio to forward packets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages