{"id":22085975,"url":"https://github.com/university-project-repos/routinginformationprotocolsimulation","last_synced_at":"2025-03-23T22:17:26.944Z","repository":{"id":251510514,"uuid":"837606024","full_name":"University-Project-Repos/RoutingInformationProtocolSimulation","owner":"University-Project-Repos","description":"Dynamic RIP distance-vector routing protocol simulation project for the University of Canterbury 'Internet Technologies \u0026 Engineering' COSC364 course. Slightly modified for modern Python3 versions.","archived":false,"fork":false,"pushed_at":"2024-08-09T18:35:59.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T22:17:23.142Z","etag":null,"topics":["bellman-ford-algorithm","collaborative-development","computer-network","computer-science","computer-simulation","distance-vector-routing","dynamic-routing","graph-theory","internet-engineering","internet-technology","network-layer","python-3","rip-protocol","rip-routing","routing-algorithm","routing-protocols","socket-io","udp","university-of-canterbury","university-project"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/University-Project-Repos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-03T13:18:34.000Z","updated_at":"2024-11-14T22:23:16.000Z","dependencies_parsed_at":"2024-12-03T09:17:46.523Z","dependency_job_id":null,"html_url":"https://github.com/University-Project-Repos/RoutingInformationProtocolSimulation","commit_stats":null,"previous_names":["university-project-repos/rip_routing_simulation","university-project-repos/routinginformationprotocolsimulation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/University-Project-Repos%2FRoutingInformationProtocolSimulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/University-Project-Repos%2FRoutingInformationProtocolSimulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/University-Project-Repos%2FRoutingInformationProtocolSimulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/University-Project-Repos%2FRoutingInformationProtocolSimulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/University-Project-Repos","download_url":"https://codeload.github.com/University-Project-Repos/RoutingInformationProtocolSimulation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175488,"owners_count":20572787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bellman-ford-algorithm","collaborative-development","computer-network","computer-science","computer-simulation","distance-vector-routing","dynamic-routing","graph-theory","internet-engineering","internet-technology","network-layer","python-3","rip-protocol","rip-routing","routing-algorithm","routing-protocols","socket-io","udp","university-of-canterbury","university-project"],"created_at":"2024-12-01T01:17:25.427Z","updated_at":"2025-03-23T22:17:26.926Z","avatar_url":"https://github.com/University-Project-Repos.png","language":"Python","readme":"# COSC364 RIP Assignment\n\nSimulates RIP routing protocol. \n\nReads _id_, _port_, and _output_ data from `.config` files with multiple example networks provided.\n\nCompleted to satisfaction for submission only just in the final moments with a significant bug fix and half an hour remaining to write a report - it was a very hectic and chaotic semester.\n\n### Authors:\n\n* [Liam Laing](https://profiles.canterbury.ac.nz/Liam-Laing)\n* [Adam Ross](https://github.com/r055a)\n\n# Instructions\n\n## Requirements\n\n* Python3\n\n## Run\n\n#### Single RIP router .config file\n\n`python3 rip_node.py \u003csingle .config file\u003e`\n\n#### Network of multiple RIP router .config files\n\n`python3 rip_network.py \u003cdirectory containing .config files\u003e`\n\n# Example\n\nRIP routing simulation for router #1 when using a four-node network with router #3 inactived:\n\n```\nWelcome to the RIP router program. Awaiting initialization...\nRouter #1 has initialized successfully\n\n----ROUTER #1 INITIALIZATION CONFIRMATION----\nRouter #1 ports: [1774, 1040, 1041]\nRouter #1 sockets and bounded ports: \n(2, \u003csocket.socket fd=5, family=2, type=2, proto=0, laddr=('127.0.0.1', 1774)\u003e)\n(3, \u003csocket.socket fd=6, family=2, type=2, proto=0, laddr=('127.0.0.1', 1040)\u003e)\n(4, \u003csocket.socket fd=7, family=2, type=2, proto=0, laddr=('127.0.0.1', 1041)\u003e)\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   |  True  |  False  |#\n #|  3 | 1035 |    3   |  True  |  False  |#\n #|  4 | 9035 |    1   |  True  |  False  |#\n ###########################################\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |    1   |#\n #|      3      |    4      |    2   |#\n #|      4      |    4      |    1   |#\n ######################################\n\nRouter #2 is unresponsive for 4s\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   | False  |  False  |#\n #|  3 | 1035 |    3   |  True  |  False  |#\n #|  4 | 9035 |    1   |  True  |  False  |#\n ###########################################\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |   16   |#\n #|      3      |    4      |    2   |#\n #|      4      |    4      |    1   |#\n ######################################\n\nTriggered routing table updates to all neighbours at 3.16s\n\nRouter #3 is unresponsive for 4s\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   | False  |  False  |#\n #|  3 | 1035 |    3   | False  |  False  |#\n #|  4 | 9035 |    1   |  True  |  False  |#\n ###########################################\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |   16   |#\n #|      3      |    4      |    2   |#\n #|      4      |    4      |    1   |#\n ######################################\n\nTriggered routing table updates to all neighbours at 3.16s\n\nRouter #4 is unresponsive for 4s\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   | False  |  False  |#\n #|  3 | 1035 |    3   | False  |  False  |#\n #|  4 | 9035 |    1   | False  |  False  |#\n ###########################################\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |   16   |#\n #|      3      |    4      |   16   |#\n #|      4      |    4      |   16   |#\n ######################################\n\nTriggered routing table updates to all neighbours at 3.16s\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   |  True  |  False  |#\n #|  3 | 1035 |    3   | False  |  False  |#\n #|  4 | 9035 |    1   | False  |  False  |#\n ###########################################\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   |  True  |  False  |#\n #|  3 | 1035 |    3   |  True  |  False  |#\n #|  4 | 9035 |    1   | False  |  False  |#\n ###########################################\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   |  True  |  False  |#\n #|  3 | 1035 |    3   |  True  |  False  |#\n #|  4 | 9035 |    1   |  True  |  False  |#\n ###########################################\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |    1   |#\n #|      3      |    4      |    2   |#\n #|      4      |    4      |    1   |#\n ######################################\n\nRouter #3 is unresponsive for 4s\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   |  True  |  False  |#\n #|  3 | 1035 |    3   | False  |  False  |#\n #|  4 | 9035 |    1   |  True  |  False  |#\n ###########################################\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |    1   |#\n #|      3      |    4      |    2   |#\n #|      4      |    4      |    1   |#\n ######################################\n\nTriggered routing table updates to all neighbours at 0.96s\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |    1   |#\n #|      3      |    3      |   16   |#\n #|      4      |    4      |    1   |#\n ######################################\n\nRouter #2 is unresponsive for 4s\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   | False  |  False  |#\n #|  3 | 1035 |    3   | False  |  False  |#\n #|  4 | 9035 |    1   |  True  |  False  |#\n ###########################################\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |   16   |#\n #|      3      |    3      |   16   |#\n #|      4      |    4      |    1   |#\n ######################################\n\nTriggered routing table updates to all neighbours at 0.92s\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   |  True  |  False  |#\n #|  3 | 1035 |    3   | False  |  False  |#\n #|  4 | 9035 |    1   |  True  |  False  |#\n ###########################################\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |    1   |#\n #|      3      |    3      |   16   |#\n #|      4      |    4      |    1   |#\n ######################################\n\nRouter #3 is unresponsive for 24s\n\n ###########################################\n #|  ROUTER #1 NEIGHBOUR ROUTER(S) STATUS |#\n #|---------------------------------------|#\n #| ID | Port | Metric | Active | Garbage |#\n #|---------------------------------------|#\n #|  2 | 1025 |    1   |  True  |  False  |#\n #|  3 | 1035 |    3   | False  |   True  |#\n #|  4 | 9035 |    1   |  True  |  False  |#\n ###########################################\n\n ######################################\n #|     ROUTER #1 ROUTING TABLE      |#\n #|----------------------------------|#\n #| Destination | First Hop | Metric |#\n #|----------------------------------|#\n #|      2      |    2      |    1   |#\n #|      4      |    4      |    1   |#\n ######################################\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funiversity-project-repos%2Froutinginformationprotocolsimulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funiversity-project-repos%2Froutinginformationprotocolsimulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funiversity-project-repos%2Froutinginformationprotocolsimulation/lists"}