Coder Social home page Coder Social logo

go-linkstate-simulation's Introduction

link-state simulation in go

for final project of computer-network course in SBU university (spring 2021) we implemented a Link-state simulation in go.

you can read full description in todo.pdf

brief description

  • there is just one manager with all data's (in yaml files)
  • it launch some router processes and the connect to them with tcp
  • router processes transfer their connectivity table so all of them get whole network information
  • manager command routers to transfer packets, so the routing will be tested.

run

  • in order to run, you should run manager executable
  • but before that, router should be compiled
  • there is a shell script responsible for compiling and running both

configs

  • manager read configs from Yaml files. there are exists in manager folder. fill free to change them
  • there should be just one connection component (all routers should connect to each other indirectly)
  • packets will send in order.

logs

  • manager will print its own logs to stderr

  • routers write logs to separate log files (with name of their indices)

  • if a router fail before initializing the log file, it will send that failing log to manager (manager is watching router processes stderr files)

  • run.sh will print all log files in order with one line between them, so you don't need to do anything in order to see logs.

go-linkstate-simulation's People

Contributors

rsharifnasab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.