{"id":22352765,"url":"https://github.com/alinpahontu2912/simple-router","last_synced_at":"2025-03-26T12:14:08.193Z","repository":{"id":207572130,"uuid":"387444478","full_name":"alinpahontu2912/Simple-Router","owner":"alinpahontu2912","description":"First Homework for Communication Protocols course","archived":false,"fork":false,"pushed_at":"2021-07-19T11:44:50.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T13:24:14.433Z","etag":null,"topics":["arp","communication-protocol","icmp","ip","router"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"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/alinpahontu2912.png","metadata":{"files":{"readme":"README","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}},"created_at":"2021-07-19T11:44:01.000Z","updated_at":"2021-07-28T19:46:50.000Z","dependencies_parsed_at":"2023-11-16T14:45:26.205Z","dependency_job_id":null,"html_url":"https://github.com/alinpahontu2912/Simple-Router","commit_stats":null,"previous_names":["alinpahontu2912/simple-router"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinpahontu2912%2FSimple-Router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinpahontu2912%2FSimple-Router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinpahontu2912%2FSimple-Router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alinpahontu2912%2FSimple-Router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alinpahontu2912","download_url":"https://codeload.github.com/alinpahontu2912/Simple-Router/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245650484,"owners_count":20650105,"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":["arp","communication-protocol","icmp","ip","router"],"created_at":"2024-12-04T12:27:06.635Z","updated_at":"2025-03-26T12:14:08.175Z","avatar_url":"https://github.com/alinpahontu2912.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple Router Implementation\n\n\tImplemented a simple router using the following communication protocols:\nEthernet, Ip, ICMP and ARP. \n\n\tEthernet protocol: gives information about the source and destination mac\nadresses and specify the type of the protocol in the received packet.\n\t\n\tIf the ethernet type is ARP:\n\t\t- if the ARP message is a request, a reply will be sent with the wanted\nmac adress\n\t\t- if the ARP message is a reply, the arp table will be updated and the\nremaining messages will be sent to the newly found destination\n\n\tIf the ethernet type is IP:\n\t\t- if it also contains an ICMP header, is destinated to the router and\nthe message is of type ECHO REQUEST, an ECHO REPLY will be sent back\n\t\t- if the checksum is wrong, the packet will be dropped\n\t\t- if the packet is about to expire, an ICMP error message will be sent \nback to the source of the packet\n\t\n\tForwarding process:\n\t\t- when a packet is received, the next hop will have to be determined \nfrom the route table entries:\n\t\t\t- if there is no good entry in the route table, an ICMP error of \ntype DESTINATION UNREACHABLE will be sent back\n\t\t- I will then search for the destination MAC in the arp table:\n\t\t\t- if there is good entry, an ARP request will be sent, so that the\nwanted MAC adress can be found (the message is a broadcast message, thus the \ndestination MAC of this request wwill be ff:ff:ff:ff:ff:ff)\n\t\t- if both an arp entry and route tanle entry are found, the message is \nsent to the next destination.\n\nBonus: tried to implement the checksum modificiation using the incremental \nalgorithm from RFC 1624 (Equation number 4). The 16-bit field value is formed\nout of the ttl field (8 bits), which is followed by the protocol field(8 bits).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falinpahontu2912%2Fsimple-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falinpahontu2912%2Fsimple-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falinpahontu2912%2Fsimple-router/lists"}