ns-3-pyviz (visualizer / debugger)

283 views
Skip to first unread message

Gustavo Carneiro

unread,
Dec 29, 2009, 1:32:55 PM12/29/09
to ns-3-users
Hello,

Since this could be useful to others, I have ported my old gjc/ns-3-pyviz branch to work with ns-3-dev.  ns-3-pyviz is a live simulation visualizer, meaning that it uses no trace files.  It can be most useful for debugging purposes, i.e. to figure out if mobility models are what you expect, where packets are being dropped, etc.  There's also a builtin interactive python console that can be used to debug the state of the running objects.  It works both with Python and pure C++ simulations.

It is mostly working, though it is only marginally tested and some more things could be left to port to the new API.


Have fun.

--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert

Angshuman Chakraborty

unread,
Dec 30, 2009, 2:36:26 AM12/30/09
to ns-3-...@googlegroups.com
sir,
can you tell me that if pyviz also working with AODV which i m simulating.

Angshuman Chakraborty

unread,
Dec 30, 2009, 2:10:32 AM12/30/09
to ns-3-...@googlegroups.com

--

You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


Sir, thank you for your post i think it will help me visualize my simulation a lot. Sir, can you please tell me if i have to reinsert all the codes you have provided since pyviz module (rebased from branch gjc/ns-3-pyviz); not yet working. If so can you tell me how it will work and if there any documentation for pyviz vizualizer.



Gustavo Carneiro

unread,
Dec 30, 2009, 6:34:34 AM12/30/09
to ns-3-...@googlegroups.com


2009/12/30 Angshuman Chakraborty <angshu...@gmail.com>
You have to have your code tree synchronized with ns-3-dev, else it won't work.  Then you have to "hg pull" from ns-3-pyviz-dev, and hg merge/commit.  

Here's an example of how to enable the visualizer in a C++ simulation:


And, yes, visualizer works with AODV in the sense that you can see the traffic transmissions.  However, there's no visualization plugin to inspect the AODV state (e.g. routing table).

Gustavo Carneiro

unread,
Dec 30, 2009, 10:33:38 AM12/30/09
to ns-3-...@googlegroups.com
Added some pyviz instructions to a wiki page.  See here:  http://www.nsnam.org/wiki/index.php/PyViz

2009/12/30 Gustavo Carneiro <gjcar...@gmail.com>

SAYANTAN CHAKRABORTY

unread,
Jan 1, 2010, 4:03:03 AM1/1/10
to ns-3-...@googlegroups.com
may have any guide or mannual for ns-3.6.
 
regards

Reply all
Reply to author
Forward
0 new messages