Hi Kavitesh,

> 1.       I am new to Python so it takes a bit of time for me to get hold
> of the APIs which are available in NOX controller. I am looking for some
> documentation on APIs which I can/would use in programming of NOX
> controller. I am not looking for generic tutorial on Python.
>
 Although not exhaustive, part of the API is described here:
http://noxrepo.org/noxwiki/index.php/Developing_in_NOX
The best to familiarize with the API still remains to look some examples
(e.g. the components in the coreapps/examples/ folder)

> 2.       I was able to run the NOX controller using “./nox_core -v -i
> ptcp: pytutorial” command. In this command the pytutorial is the
> pytutorial.py file. Would we not require to provide a full path for this
> file(~/noxcore/src/nox/coreapps/tutorial/pytutorial.py) or the VMware
> consist of some variables for this particular file? Can I replace this file
> with say my test.py and run the command normally by “./nox_core -v -i ptcp:
> test”
>
Simply replacing / renaming the file would not work; take a look at this:
http://noxrepo.org/noxwiki/index.php/FAQ#Where_can_I_see_and_edit_the_code_that_corresponds_to_different_NOX_components.3F


> 3.       I am trying to figure out a way in which packets coming from
> hosts are parsed by the switch using Python. I would like to know the source
> and destination address of the packets and also the port numbers like
> 8080,121 etc. Any clues to the types of Python APIs which I would be
> requiring would be a great help.
>
 The packet parsing library under nox/lib/packet/ is the API for that. For
example usage you could take a look at 'pyswitch', which does some basic
parsing. That should give you an idea of how the API works

> 4.       Also, for generating traffic between the nodes created using
> mIninet, should I use iPerf or cBench?
>
I have used iPerf and it worked fine


Regards
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to