I am searching for a specific tool to visualize a network topology.
I found images at this serverfault question. Does anyone know what tool they were using?

I checked most of the recommendations from this superuser question but haven't found it yet

enter image description here

  • 1
    Are you looking for a tool to find the topology or to generate such graphs? Or a 2-in-1 tool? Commented May 27, 2014 at 20:02
  • I may have used the wrong terminology. Such graph is what I'm looking for
    – nixda
    Commented May 27, 2014 at 20:29

1 Answer 1


This sort of diagram is typical of those created with GraphWiz using the dot language.

Also worth taking a look at scapy especially the traceroute demo, e.g. the following generated from only about 6 lines of code:

enter image description here

The above example is from http://www.secdev.org/projects/scapy/demo.html and was generated, from within the scapy shell with:

>>> res,unans = traceroute(["www.microsoft.com","www.cisco.com","www.yahoo.com","www.wanadoo.fr","www.pacsec.com"],dport=[80,443],maxttl=20,retry=-2)
Received 190 packets, got 190 answers, remaining 10 packets  207.46...
1        192.16...
2       82.251...
3      213.22...
>>> res.graph()                          # piped to ImageMagick's display program. Image below.
>>> res.graph(type="ps",target="| lp")   # piped to postscript printer
>>> res.graph(target="> /tmp/graph.svg") # saved to file 

but to generate the same from the python prompt would require a couple of additional imports that are imported by default in the scapy shell.

  • Can you please point us to those six lines of code ?
    – MiniMe
    Commented Jul 4, 2017 at 17:46
  • 1
    @MiniMe : Added to answer. Commented Jul 4, 2017 at 21:09
  • 1
    Thanks a lot Steve. I just did some reading and I realized that all that is in the documentation :-) Shame on me :-)
    – MiniMe
    Commented Jul 5, 2017 at 2:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.