Reg:GSoC'17 Project selection

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Reg:GSoC'17 Project selection

vineethkvs
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reg:GSoC'17 Project selection

Tommaso Pecorella
Hi Vineeth,

you’re right about the fact that (compared to other Python libraries) using ns-3 is more difficult.

The problem could be that ns-3 is difficult no matter what language you use, and that the Pyhon interface is not documented separately.
I don’t use Python myself, but as far as I know you can use all the public functions of the C++ classes. Check the Python examples and compare them with the C++ doxygen pages.

Others more expert on Python could be more precise, sorry.

Cheers,

T.


> On 12 Mar 2017, at 15:09, SAI VINEETH KUMAR REDDY K V <[hidden email]> wrote:
>
> Hi all,
>
> Its been only a short time that i started using NS3, actually i was
> originally interested in using ns3 as it had the flexibility to use python
> alongside c++. But as a starter, there isn't that great support for ns3.
> Could you all give me the possibilities of how NS3 user experience could be
> improved for python users who are new to network simulations.
>
> Thanking you,
>
> --
> Regards,
> Vineeth KVS
> UG-3 ECE,
> Indian Institute Of Information Technology Chittoor,Sri City
> <http://www.iiits.ac.in>

--------------------------------------------------------------
*** My POTS number is changed. Please update your records. ***
--------------------------------------------------------------

When life gives you lemons, don’t make lemonade.
Make life take the lemons back! Get mad!
-- Cave Johnson

--------------------------------------------------------------

Tommaso Pecorella - Ph.D.

Assistant professor
Dpt. Ingegneria dell'Informazione
Università di Firenze

CNIT - Università di Firenze Unit

via di S. Marta 3
50139, Firenze
ITALY

email: [hidden email]
       [hidden email]

phone : +39-055-2758540
mobile: +39-320-4379803
fax   : +39-055-2758570






Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reg:GSoC'17 Project selection

Tom Henderson-2
In reply to this post by vineethkvs
On 03/12/2017 07:09 AM, SAI VINEETH KUMAR REDDY K V wrote:
> Hi all,
>
> Its been only a short time that i started using NS3, actually i was
> originally interested in using ns3 as it had the flexibility to use
> python alongside c++. But as a starter, there isn't that great support
> for ns3. Could you all give me the possibilities of how NS3 user
> experience could be improved for python users who are new to network
> simulations.

There are probably other improvements that Python-oriented users can
suggest, but here is one idea.

There is a longstanding limitation regarding the hooking of trace
sources in Python:

https://www.nsnam.org/bugzilla/show_bug.cgi?id=127

Basically, we cannot write Python code such as this:

    def my_callback(packet):
       print packet

    ns3.Config.Connect("/NodeList/*/....", my_callback)


There are some ideas on how to attack this listed in that tracker issue,
but no one has had time to try to implement it.

Once trace sources are better supported, a next step might be to make
some user-friendly integration of matplotlib for plotting data generated
by the simulation.

Better documentation about using the Python API, and how to debug
Python-based ns-3 programs, would also be helpful.

- Tom
Loading...