{"id":15348172,"url":"https://github.com/ironcore864/my-traceroute-python","last_synced_at":"2026-03-07T10:30:17.428Z","repository":{"id":73865952,"uuid":"182692856","full_name":"IronCore864/my-traceroute-python","owner":"IronCore864","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-22T09:03:57.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T12:46:26.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/IronCore864.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":"2019-04-22T08:59:13.000Z","updated_at":"2019-04-22T09:03:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8ab312f-d248-4ba7-a380-94af7356ee13","html_url":"https://github.com/IronCore864/my-traceroute-python","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"e4c646c2402efb0d2b7e67e75080e9fa81f73eba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Fmy-traceroute-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Fmy-traceroute-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Fmy-traceroute-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Fmy-traceroute-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IronCore864","download_url":"https://codeload.github.com/IronCore864/my-traceroute-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239898461,"owners_count":19715212,"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":[],"created_at":"2024-10-01T11:45:14.150Z","updated_at":"2026-03-07T10:30:17.352Z","avatar_url":"https://github.com/IronCore864.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nDoing a \"traceroute\" to a destination host, output the path, and find the slowest host.\n\nSince traceroute is not heavily depending on performance (networking time is the most cost), I choose Python for quicker implementation than golang.\n\nI did not fully implement the checksum part myself but referred to some articles and algorithms. I think there might be a better library to do checksum in python but I didn't find a good one in a short time.\n\n# Dependency\n\n- python (2 and 3 both works)\n- root (SUID won't work for scripts; without root permission there will be an error message \"You need to be root to run this program!\")\n- pytest\n\nRun:\n\n```\npip3 install -r requirements.txt\n```\n\n# Run\n\nExample:\n\n```\nsudo python3 mytraceroute.py www.google.com\n```\n\n# Test\n\n```\nsudo python3 -m pytest --capture=sys\n```\n# References\n- [ICMP](https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol)\n- [Internet Control Message Protocol (ICMP) Parameters](https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml#icmp-parameters-codes-0)\n- [Internet Checksum specified in RFC 1071](https://osqa-ask.wireshark.org/questions/11061/icmp-checksum)\n- [in_cksum in iputils](https://github.com/iputils/iputils/blob/master/ping.c#L1103)\n- [An Article on Internet Checksum](https://www.jianshu.com/p/1e4805c62415)\n- [An Implementation of Checksum](https://github.com/pferate/python_ping/blob/master/ping.py#L265)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironcore864%2Fmy-traceroute-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fironcore864%2Fmy-traceroute-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironcore864%2Fmy-traceroute-python/lists"}