[nox-dev] meta.xml converts to meta.json

2011-10-26 Thread 王健
hello,everyone. I am a new comer of openflow, now i want to use the mobilevms 
app, but my branch of NOX is destiny, i need to convert the meta.xml to 
meta.json, because the old version of NOX uses meta.xml to describe the 
compenents, but the NOX destiny uses meta.json to describe the compenents. i 
also konw that the nox-convert-meta.py script(in src/scripts) is meant for 
doing this, but i do not konw how to use it , anyone who can help me,thank you 
very much. It is better to show the output of the meta.json for mobilevms.The 
attachment is meta.xml file for mobilevms. Look forward to hear form you~
 best  wishes
   
wang jian
   on Wednesday 
, Ocotober 26, 2011?xml version=1.0 encoding=UTF-8?
components:components xmlns:components=http://www.noxrepo.org/components.xsd;
  component
namemobilevms/name
dependency
  namepython/name
/dependency
dependency
  namepyrouting/name
/dependency
dependency
  namepyauthenticator/name
/dependency
pythonnox.netapps.mobilevms.mobilevms/python
  /component
  component
namebasicrouting/name
dependency
  namepyrouting/name
/dependency
dependency
  nameauthenticator/name
/dependency
dependency
  namebroadcast_resolve/name
/dependency
pythonnox.netapps.mobilevms.basicrouting/python
  /component
/components:components
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Error building dev/destiny-fast branch

2011-10-26 Thread Murphy McCauley
This branch is quite a bit behind the actual development.  We're preparing to 
release the updated codebase in the near future.

But for one thing, Python doesn't work in it.  So you probably need to do 
--with-python=no when you run configure.

Hope that helps.

-- Murphy

On Oct 25, 2011, at 8:49 PM, Andreas Voellmy wrote:

 Thanks. I tried editing the conflict marker out in a couple ways that seemed 
 reasonable to me, but I got other compile errors. Does anyone know if there 
 is a known working version of this branch in the repository, and how I can 
 get back to it? 
 
 Thanks, 
 Andreas
 
 2011/10/25 Zoltán Lajos Kis zoltan.lajos@ericsson.com
 Seems like someone checked in a conflict marker to that file:
 
 http://noxrepo.org/cgi-bin/gitweb.cgi?p=nox;a=blob;f=src/nox/coreapps/pyrt/context.i;h=cb8641d72feb3a1f0543e97830a2addd55d502b9;hb=dev/destiny-fast#l83
 
 Z.
 
 
 From: nox-dev-boun...@noxrepo.org [nox-dev-boun...@noxrepo.org] On Behalf Of 
 Andreas Voellmy [andreas.voel...@gmail.com]
 Sent: Wednesday, October 26, 2011 4:40 AM
 To: nox-dev@noxrepo.org
 Subject: [nox-dev] Error building dev/destiny-fast branch
 
 Hi,
 
 I'd like to try the destiny-fast branch (I saw it mentioned here: 
 http://www.openflow.org/wk/index.php/Controller_Performance_Comparisons), so 
 I did the following
 
 git clone git://noxrepo.org/noxhttp://noxrepo.org/nox
 cd nox
 git checkout dev/destiny-fast
 
 Is that the right way to get this branch? After that I ran
 ./boot.sh
 mkdir build
 cd build
 ../configure
 make
 
 and got the following error:
 
 Making all in pyrt
 make[8]: Entering directory 
 `/home/av/Download/nox-destiny/nox/build/src/nox/coreapps/pyrt'
 /usr/bin/swig -c++ -python  -DSWIGWORDSIZE64 
 -I../../../../../src/include/openflow -I../../../../../src/nox/lib/ -outdir 
 ./. -o oxidereactor_wrap.cc -module oxidereactor 
 ../../../../../src/nox/coreapps/pyrt/oxidereactor.i
 /usr/bin/swig -c++ -python  -DSWIGWORDSIZE64 -outdir ./. -o 
 deferredcallback_wrap.cc -module deferredcallback 
 ../../../../../src/nox/coreapps/pyrt/deferredcallback.i
 /usr/bin/swig -c++ -python  -DSWIGWORDSIZE64 
 -I../../../../../src/include/openflow -I../../../../../src/nox/lib/ -outdir 
 ./. -o pycomponent_wrap.cc -module pycomponent 
 ../../../../../src/nox/coreapps/pyrt/component.i
 ../../../../../src/nox/coreapps/pyrt/context.i:79: Error: Syntax error in 
 input(3).
 make[8]: *** [pycomponent.py] Error 1
 
 Does anyone know what went wrong and how to fix this?
 
 Thanks,
 Andreas
 
 
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] meta.xml converts to meta.json

2011-10-26 Thread Murphy McCauley
To use it, you just do something like:
python nox-convert-meta.py meta.xml  meta.json

But here's the result:
{
  components: [
{
  python: nox.netapps.mobilevms.mobilevms, 
  dependencies: [
python, 
pyrouting, 
pyauthenticator
  ], 
  name: mobilevms
}, 
{
  python: nox.netapps.mobilevms.basicrouting, 
  dependencies: [
pyrouting, 
authenticator, 
broadcast_resolve
  ], 
  name: basicrouting
}
  ]
}

Just paste that into a meta.json file and hopefully you're good to go.

-- Murphy

On Oct 25, 2011, at 11:09 PM, 王健 wrote:

 hello,everyone. I am a new comer of openflow, now i want to use the mobilevms 
 app, but my branch of NOX is destiny, i need to convert the meta.xml to 
 meta.json, because the old version of NOX uses meta.xml to describe the 
 compenents, but the NOX destiny uses meta.json to describe the compenents. i 
 also konw that the nox-convert-meta.py script(in src/scripts) is meant for 
 doing this, but i do not konw how to use it , anyone who can help me,thank 
 you very much. It is better to show the output of the meta.json for 
 mobilevms.The attachment is meta.xml file for mobilevms. Look forward to hear 
 form you~
  best  wishes
nb sp;
wang jian
on 
 Wednesday , Ocotober 26, 2011
 
 
 meta.xml___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Error building dev/destiny-fast branch

2011-10-26 Thread Amin Tootoonchian
I only updated the 'switch' app in that code base, and I never looked
at 'hub'. My guess is that the hub app is doing so little that locking
within boost::asio scheduler outweights the actual work done by the
hub app. We need to make sure that the amount of work done by each
thread upon its invocation is significantly more than the locking
overhead in boost::asio's internal job queue.

If that is the case, since we are working on a new release, it doesn't
make much sense to fix it in that code base. Could you wait for that?

Cheers,
Amin

P.S.: Btw, passing '--enable-ndebug' to configure should boost the performace.

On Wed, Oct 26, 2011 at 2:08 PM, Andreas Voellmy
andreas.voel...@gmail.com wrote:
 Thanks. The code compiled after configuring without python.
 I was able to get roughly the same kind of performance out of the 'switch'
 application that is mentioned on the performance page
 (http://www.openflow.org/wk/index.php/Controller_Performance_Comparisons).
 However, the 'hub' controller doesn't have much speedup when running with
 more threads. For example, when running with one thread I get a throughput
 of 213868.81 and when I run it with 8 threads I get a throughput
 of 264017.35. (To run with 8 threads, I am starting the controller like
 this: ./nox_core -i ptcp: hub -t 8; I am testing with cbench in
 throughput mode cbench -p  -t)
 Is this - that 'hub' gets not much speedup while 'switch' gets lots of
 speedup - expected with this branch of NOX? Is there something that needs to
 be done to hub in order to enable the framework to run it concurrently?
 Regards,
 Andreas

 On Wed, Oct 26, 2011 at 5:53 AM, Murphy McCauley jam...@nau.edu wrote:

 This branch is quite a bit behind the actual development.  We're preparing
 to release the updated codebase in the near future.
 But for one thing, Python doesn't work in it.  So you probably need to do
 --with-python=no when you run configure.
 Hope that helps.
 -- Murphy
 On Oct 25, 2011, at 8:49 PM, Andreas Voellmy wrote:

 Thanks. I tried editing the conflict marker out in a couple ways that
 seemed reasonable to me, but I got other compile errors. Does anyone know if
 there is a known working version of this branch in the repository, and how I
 can get back to it?
 Thanks,
 Andreas

 2011/10/25 Zoltán Lajos Kis zoltan.lajos@ericsson.com

 Seems like someone checked in a conflict marker to that file:


 http://noxrepo.org/cgi-bin/gitweb.cgi?p=nox;a=blob;f=src/nox/coreapps/pyrt/context.i;h=cb8641d72feb3a1f0543e97830a2addd55d502b9;hb=dev/destiny-fast#l83

 Z.

 
 From: nox-dev-boun...@noxrepo.org [nox-dev-boun...@noxrepo.org] On Behalf
 Of Andreas Voellmy [andreas.voel...@gmail.com]
 Sent: Wednesday, October 26, 2011 4:40 AM
 To: nox-dev@noxrepo.org
 Subject: [nox-dev] Error building dev/destiny-fast branch

 Hi,

 I'd like to try the destiny-fast branch (I saw it mentioned here:
 http://www.openflow.org/wk/index.php/Controller_Performance_Comparisons), so
 I did the following

 git clone git://noxrepo.org/noxhttp://noxrepo.org/nox
 cd nox
 git checkout dev/destiny-fast

 Is that the right way to get this branch? After that I ran
 ./boot.sh
 mkdir build
 cd build
 ../configure
 make

 and got the following error:

 Making all in pyrt
 make[8]: Entering directory
 `/home/av/Download/nox-destiny/nox/build/src/nox/coreapps/pyrt'
 /usr/bin/swig -c++ -python  -DSWIGWORDSIZE64
 -I../../../../../src/include/openflow -I../../../../../src/nox/lib/ -outdir
 ./. -o oxidereactor_wrap.cc -module oxidereactor
 ../../../../../src/nox/coreapps/pyrt/oxidereactor.i
 /usr/bin/swig -c++ -python  -DSWIGWORDSIZE64 -outdir ./. -o
 deferredcallback_wrap.cc -module deferredcallback
 ../../../../../src/nox/coreapps/pyrt/deferredcallback.i
 /usr/bin/swig -c++ -python  -DSWIGWORDSIZE64
 -I../../../../../src/include/openflow -I../../../../../src/nox/lib/ -outdir
 ./. -o pycomponent_wrap.cc -module pycomponent
 ../../../../../src/nox/coreapps/pyrt/component.i
 ../../../../../src/nox/coreapps/pyrt/context.i:79: Error: Syntax error in
 input(3).
 make[8]: *** [pycomponent.py] Error 1

 Does anyone know what went wrong and how to fix this?

 Thanks,
 Andreas


 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev



 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev


___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Sending UDP traffic in openflow network

2011-10-26 Thread Murphy McCauley
You'll probably find more help for this on the ovs-discuss mailing list.

Good luck!

-- Murphy

On Oct 26, 2011, at 5:34 PM, Shan Hu wrote:

 Hi guys,
 
 Im trying to test the Qos Rate-Limiting of Kernel vSwitch, i use iperf as my 
 measurement tool.
 Everything is working fine with TCP part,that is, after i limit rate of one 
 port to, say 50Mbps,
 the rate is limited to 50Mbps correctly and packets are tranferred 100%. 
 But when i turn to UDP part,i ran into problems.I have to limit bandwidth to 
 at most 4Mbps in order to tranfer
 100% packets.And if i use bandwidth more than 4Mbps, the lost packets 
 increase, the worst packet lost percentage is almost 99%.
 
 Firstly i thought it is iperf's problem, so i tried to run iperf in normal 
 network,i set bandwidth to 50Mbps,
 and things work fine.
 So can anyone give me some ideas where the problem might be?
 
 regards,
 Shan 
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Error building dev/destiny-fast branch

2011-10-26 Thread Andreas Voellmy
On Wed, Oct 26, 2011 at 8:42 PM, Amin Tootoonchian a...@cs.toronto.eduwrote:

 I only updated the 'switch' app in that code base, and I never looked
 at 'hub'. My guess is that the hub app is doing so little that locking
 within boost::asio scheduler outweights the actual work done by the
 hub app. We need to make sure that the amount of work done by each
 thread upon its invocation is significantly more than the locking
 overhead in boost::asio's internal job queue.


I'm unclear about how components in the destiny branch work. Do the handlers
run concurrently by default, or is there something extra that one has to
write to get them to execute concurrently? If something extra is needed,
what is it in switch.cc that makes it execute concurrently? Or are you
saying that the event handlers in 'hub' are indeed running concurrently, but
they aren't doing enough work to get much performance gain? (By the way, I
was looking at /src/nox/coreapps/switch/switch.cc
and /src/nox/coreapps/hub/hub.cc)

Thanks,
Andreas


Cheers,
 Amin

 P.S.: Btw, passing '--enable-ndebug' to configure should boost the
 performace.

 On Wed, Oct 26, 2011 at 2:08 PM, Andreas Voellmy
 andreas.voel...@gmail.com wrote:
  Thanks. The code compiled after configuring without python.
  I was able to get roughly the same kind of performance out of the
 'switch'
  application that is mentioned on the performance page
  (http://www.openflow.org/wk/index.php/Controller_Performance_Comparisons
 ).
  However, the 'hub' controller doesn't have much speedup when running with
  more threads. For example, when running with one thread I get a
 throughput
  of 213868.81 and when I run it with 8 threads I get a throughput
  of 264017.35. (To run with 8 threads, I am starting the controller like
  this: ./nox_core -i ptcp: hub -t 8; I am testing with cbench in
  throughput mode cbench -p  -t)
  Is this - that 'hub' gets not much speedup while 'switch' gets lots of
  speedup - expected with this branch of NOX? Is there something that needs
 to
  be done to hub in order to enable the framework to run it concurrently?
  Regards,
  Andreas
 
  On Wed, Oct 26, 2011 at 5:53 AM, Murphy McCauley jam...@nau.edu wrote:
 
  This branch is quite a bit behind the actual development.  We're
 preparing
  to release the updated codebase in the near future.
  But for one thing, Python doesn't work in it.  So you probably need to
 do
  --with-python=no when you run configure.
  Hope that helps.
  -- Murphy
  On Oct 25, 2011, at 8:49 PM, Andreas Voellmy wrote:
 
  Thanks. I tried editing the conflict marker out in a couple ways that
  seemed reasonable to me, but I got other compile errors. Does anyone
 know if
  there is a known working version of this branch in the repository, and
 how I
  can get back to it?
  Thanks,
  Andreas
 
  2011/10/25 Zoltán Lajos Kis zoltan.lajos@ericsson.com
 
  Seems like someone checked in a conflict marker to that file:
 
 
 
 http://noxrepo.org/cgi-bin/gitweb.cgi?p=nox;a=blob;f=src/nox/coreapps/pyrt/context.i;h=cb8641d72feb3a1f0543e97830a2addd55d502b9;hb=dev/destiny-fast#l83
 
  Z.
 
  
  From: nox-dev-boun...@noxrepo.org [nox-dev-boun...@noxrepo.org] On
 Behalf
  Of Andreas Voellmy [andreas.voel...@gmail.com]
  Sent: Wednesday, October 26, 2011 4:40 AM
  To: nox-dev@noxrepo.org
  Subject: [nox-dev] Error building dev/destiny-fast branch
 
  Hi,
 
  I'd like to try the destiny-fast branch (I saw it mentioned here:
 
 http://www.openflow.org/wk/index.php/Controller_Performance_Comparisons),
 so
  I did the following
 
  git clone git://noxrepo.org/noxhttp://noxrepo.org/nox
  cd nox
  git checkout dev/destiny-fast
 
  Is that the right way to get this branch? After that I ran
  ./boot.sh
  mkdir build
  cd build
  ../configure
  make
 
  and got the following error:
 
  Making all in pyrt
  make[8]: Entering directory
  `/home/av/Download/nox-destiny/nox/build/src/nox/coreapps/pyrt'
  /usr/bin/swig -c++ -python  -DSWIGWORDSIZE64
  -I../../../../../src/include/openflow -I../../../../../src/nox/lib/
 -outdir
  ./. -o oxidereactor_wrap.cc -module oxidereactor
  ../../../../../src/nox/coreapps/pyrt/oxidereactor.i
  /usr/bin/swig -c++ -python  -DSWIGWORDSIZE64 -outdir ./. -o
  deferredcallback_wrap.cc -module deferredcallback
  ../../../../../src/nox/coreapps/pyrt/deferredcallback.i
  /usr/bin/swig -c++ -python  -DSWIGWORDSIZE64
  -I../../../../../src/include/openflow -I../../../../../src/nox/lib/
 -outdir
  ./. -o pycomponent_wrap.cc -module pycomponent
  ../../../../../src/nox/coreapps/pyrt/component.i
  ../../../../../src/nox/coreapps/pyrt/context.i:79: Error: Syntax error
 in
  input(3).
  make[8]: *** [pycomponent.py] Error 1
 
  Does anyone know what went wrong and how to fix this?
 
  Thanks,
  Andreas
 
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev
 
 
 
  

[nox-dev] how to add the components of mobilevms to NOX destiny

2011-10-26 Thread 王健
hi Kyriakos Zarifis
Thank you very much for your quick reply, the following is my steps:
1) delete the folder(mobilevms) from nox/build/src/nox/netapps

2) copy the folder(mobilevms) to nox/src/nox/netapps (the file meta.xml in 
mobilevms is replaced by the file meta.json)
3) switch to nox directory and run the command: ./boot.sh
 the terminal shows:
building with all apps
Disabling noxext...
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/config.guess'
libtoolize: copying file `config/config.sub'
libtoolize: copying file `config/install-sh'
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `config'.
libtoolize: copying file `config/libtool.m4'
libtoolize: You should add the contents of `config/libtool.m4' to `aclocal.m4'.
libtoolize: copying file `config/ltoptions.m4'
libtoolize: You should add the contents of `config/ltoptions.m4' to 
`aclocal.m4'.
libtoolize: copying file `config/ltsugar.m4'
libtoolize: You should add the contents of `config/ltsugar.m4' to `aclocal.m4'.
libtoolize: copying file `config/ltversion.m4'
libtoolize: copying file `config/lt~obsolete.m4'
libtoolize: You should add the contents of `config/lt~obsolete.m4' to 
`aclocal.m4'.
src/nox/netapps/mobilevms/wireshark_dissectors/dc_cmd/Makefile.am:23: 
`hsapi.la' is not a standard libtool library name
src/nox/netapps/mobilevms/wireshark_dissectors/dc_cmd/Makefile.am:23: did you 
mean `libhsapi.la'?
src/nox/netapps/mobilevms/wireshark_dissectors/dc_cmd/Makefile.am:31: variable 
`dc_cmd_la_LIBADD' is defined but no program or
src/nox/netapps/mobilevms/wireshark_dissectors/dc_cmd/Makefile.am:31: library 
has `dc_cmd_la' as canonical name (possible typo)
src/nox/netapps/mobilevms/wireshark_dissectors/dc_cmd/Makefile.am:30: variable 
`dc_cmd_la_LDFLAGS' is defined but no program or
src/nox/netapps/mobilevms/wireshark_dissectors/dc_cmd/Makefile.am:30: library 
has `dc_cmd_la' as canonical name (possible typo)
src/nox/netapps/mobilevms/wireshark_dissectors/dc_laptop/Makefile.am:23: 
`hsapi.la' is not a standard libtool library name
src/nox/netapps/mobilevms/wireshark_dissectors/dc_laptop/Makefile.am:23: did 
you mean `libhsapi.la'?
src/nox/netapps/mobilevms/wireshark_dissectors/dc_laptop/Makefile.am:31: 
variable `dc_laptop_la_LIBADD' is defined but no program or
src/nox/netapps/mobilevms/wireshark_dissectors/dc_laptop/Makefile.am:31: 
library has `dc_laptop_la' as canonical name (possible typo)
src/nox/netapps/mobilevms/wireshark_dissectors/dc_laptop/Makefile.am:30: 
variable `dc_laptop_la_LDFLAGS' is defined but no program or
src/nox/netapps/mobilevms/wireshark_dissectors/dc_laptop/Makefile.am:30: 
library has `dc_laptop_la' as canonical name (possible typo)
src/nox/netapps/mobilevms/wireshark_dissectors/dc_stats/Makefile.am:23: 
`hsapi.la' is not a standard libtool library name
src/nox/netapps/mobilevms/wireshark_dissectors/dc_stats/Makefile.am:23: did you 
mean `libhsapi.la'?
src/nox/netapps/mobilevms/wireshark_dissectors/dc_stats/Makefile.am:31: 
variable `dc_stats_la_LIBADD' is defined but no program or
src/nox/netapps/mobilevms/wireshark_dissectors/dc_stats/Makefile.am:31: library 
has `dc_stats_la' as canonical name (possible typo)
src/nox/netapps/mobilevms/wireshark_dissectors/dc_stats/Makefile.am:30: 
variable `dc_stats_la_LDFLAGS' is defined but no program or
src/nox/netapps/mobilevms/wireshark_dissectors/dc_stats/Makefile.am:30: library 
has `dc_stats_la' as canonical name (possible typo)
autoreconf: automake failed with exit status: 1

4)  cd build/
../configure
there is no error here
5) make -j
there is also no error
6) cd src/
  ./nox_core -v -v -i ptcp:6633 mobilevms
the terminal shows:
00043|nox|ERR:Application 'mobilevms' description not found.

Now i try some methods to solve this problem. The first one is: i think the 
wireshark_dissectors folder(in mobilevms) is no usefulness , so i delete it 
from mobilevms and run the ./boot.sh command again(there is no error now), but 
when i run the command
  ./nox_core -v -v -i ptcp:6633 mobilevms
it also shows: 00043|nox|ERR:Application 'mobilevms' description not found.
At this time i copy the meta.json from nox/src/nox/netapps/mobilevms to 
nox/build/src/nox/netapps/mobilevms and then run the command ./nox_core -v -v 
-i ptcp:6633 mobilevms again ,the terminal shows:
00081|nox|ERR:Cannot change the state of 'mobilevms' to INSTALLED:
'mobilevms' ran into an error:
cannot import a Python module 'nox.netapps.mobilevms.mobilevms':
ImportError: No module named mobilevms.mobilevms
Now i have no idea for this, please help me...
best wishes
 
wang jian
Thursday 
October 27, 2011


   
At 2011-10-27 10:50:35,Kyriakos Zarifis kyr.zari...@gmail.com wrote:
You shouldn't copy any source code into the build/ directory. Anything that 
needs