Skip to content

Implementation of Linux traceroute command in Python 3.8 with path graph rendering (using GraphViz)

Notifications You must be signed in to change notification settings

k-souvatzidaki/traceroute-graphs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traceroute Graphs

About

An implementation of the traceroute command in pure Python 3.8, using raw sockets and the ICMP protocol.
A path diagram with the results of the command is rendered using the Diagrams module with GraphViz.

Requirement

The module runs only on Linux systems (I tested it in Ubuntu 20.04), due to raw socket incompatibility of other OS distributions. Also, root-level access is required when executing the script (use sudo 😃)

Install Dependencies and Run

sudo apt install graphviz
pip3 install diagrams
sudo python3 main.py

Examples

google run example google graph example

About

Implementation of Linux traceroute command in Python 3.8 with path graph rendering (using GraphViz)

Topics

Resources

Stars

Watchers

Forks

Languages