[Ns-developers] NS-3 GUI (visualization again)

Gustavo Carneiro gjcarneiro at gmail.com
Fri Aug 1 15:22:22 PDT 2008


2008/8/1 Gustavo Carneiro <gjcarneiro at gmail.com>

>
>
> 2008/8/1 Jeremy <jnorman at mines.edu>
>
>> Gustavo,
>>
>> Again, great feedback.
>>
>> 5- The 'placement' files for wired nodes are also a PITA. ...
>> >
>>
>> >From just a quick scan of graphviz I was not able to figure out if there
>> was
>> a separate library. However, it does have command line tools that might be
>> able to be used in the absence of a library. If nothing else, a shell
>> script
>> could be written and distributed with iNSpect so that graphviz can layout
>> the nodes and then have iNSpect run from that automatically. Obviously,
>> there are other options that could quite likely be better as well -- even
>> maybe creating an interpreter that reads straight from graphviz and a
>> command line option that attempts to fork graphviz and pipe information
>> back
>> into iNSpect?
>>
>
> In my Ubuntu system, I have both a graphviz library and graphviz python
> bindings.
>
>
>>
>>
>> In any event, any of the options are probably going to need to wait a few
>> weeks until fall semester starts for the Toilers to do it alone. However,
>> I
>> am going to put a ticket into bugzilla so that we at least look into it.
>>
>
> I'll probably post something quick made in python soon, then let you use it
> (or not) however you see fit.
>

Work in progress / proof of concept, but the following file patches
examples/csma-bridge.py to make it scan the (wired) topology by ns-3
introspection, creates a graphviz graph (requires python graphviz bindings),
does a "twopi" layout, prints the resulting node coordinates, and finally
generates a postscript file (as demonstration).

This just to demonstrate it is possible ;-)

-- 
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ns-3-graphviz.diff
Type: text/x-diff
Size: 1815 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20080801/09cb9ecc/ns-3-graphviz-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topology.ps
Type: application/postscript
Size: 5622 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20080801/09cb9ecc/topology-0001.ps


More information about the Ns-developers mailing list