8

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

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

1 Answer 1

6

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
   193.252.122.103:443 193.252.122.103:80 198.133.219.25:443 198.133.219.25:80  207.46...
1  192.168.8.1         192.168.8.1        192.168.8.1        192.168.8.1        192.16...
2  82.251.4.254        82.251.4.254       82.251.4.254       82.251.4.254       82.251...
3  213.228.4.254       213.228.4.254      213.228.4.254      213.228.4.254      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.

3
  • Can you please point us to those six lines of code ?
    – MiniMe
    Jul 4, 2017 at 17:46
  • 1
    @MiniMe : Added to answer. 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
    Jul 5, 2017 at 2:30

Your Answer

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

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