Git Product home page Git Product logo

distance_vec_routing's Introduction

Project 3: Distance Vector Routing Algorithm

Environment

my personal python environment is Python 3.9.10. But I do not use the specific feature. So, the python version just over 3 is ok. I recommended running this code on a python 3.6 above.

How to run the code

You need two terminal. For we have server and router, two character. On the first Terminal you run the command:

python ServerStarter.py

Please make Sure that you start the server first. This is important. Then you can run the command:

python RouterStarter.py

This will use multi-thread to start all the router in parallel.

Then the final result tabel will show on the server's terminal.

If you want change

about the .ini file

if you want to change the router's data or the router's number. You can just adjust the config.ini file in the root directory.

about the port

The port using in this project is for server: 5555 for router, it will base on .ini file's data. It will base on the router's number to automatically using the port number start from 5560. For example, if I have 3 router in the ini file, my router's port will be 5560,5561,5562.

If you want to change the router number or the IP number(default '127.0.0.1' Your local IP) You need go the ServerStarter.py and the RouterStarter.py to change it by yourself.

distance_vec_routing's People

Contributors

skyright7 avatar

Watchers

 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.