Skip to content

NineKa/COMP535-Simulate-Link-State-Routing-Protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulate Link State Routing Protocol with Java Socket Programming

Build Status

Goal

In this project, you are supposed to develop a pure user-space program which simulates the major functionalities of a routing device running a simplified Link State Routing protocol. To simulate the real-world network environment, you have to start multiple instances of the program, each of which connecting with (some of) others via socket. Each program instance represents a router or host in the simulated network space; Correspondingly, the links connecting the routers/hosts and the IP addresses identifying the routers/hosts are simulated by the in-memory data structures. By defining the format of the messages transmitting between the program instances, as well as the parser and the handlers of these messages, you simulate the routing protocol with the user- space processes.

Command-line Console

Status Command
attach [Process IP] [Process Port] [IP Address] [Link Weight]
attach "[Configure File]" [Link Weight]
start
connect [Process IP] [Process Port] [IP Address] [Link Weight]
connect "[Configure File]" [Link Weight]
disconnect [Port Number]
detect [IP Address]
neighbors
quit

Debug Command-line

Command Description
debug info print current router simulated IP address, process IP address and process port number on screen
debug lsd print link state database on screen

About

A simulation of Link State Routing Protocol using sockets

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published