Re: [nox-dev] problem with swig

2010-12-06 Thread majumdar
results of apt-get install swig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
swig is already the newest version.
The following packages were automatically installed and are no longer
required:
  linux-headers-2.6.32-24 linux-headers-2.6.32-24-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 96 not upgraded.
result of ../configure
checking build number... none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands +=... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library 

Re: [nox-dev] problem with swig

2010-12-06 Thread majumdar
BTW I'm using the tutorial given at
http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup

So I'm using NOX 0.6

Thanks
Abhishek

 Can you please post the results of running apt-get install swig and also
 the results of running ../configure ?

 Also, which version of NOX are you using?

 -- Murphy

 On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:

 Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
 everything and in /nox/build when i do ../configure it recognizes and
 then gives configure: error: Could not link against !

 Thanks
 Abhishek Majumdar


 On 12/5/2010 10:35 PM, kk yap wrote:
 Hi Abhishek,

 Let's see... Try make install and ldconfig?

 Jokes aside, please let us know your OS, distro, etc. for anyone to
 give advice.  It works perfectly on Ubuntu (Lucid Lynx) for me.  In
 fact, we have a pseudo-package that installs the requisites using
 apt-get.

 Regards
 KK

 On 5 December 2010 20:24, Abhishek Majumdarmajum...@cse.unl.edu
 wrote:
 When I try to install the pre-requisites, it says swig package cannot
 be
 found. I separately installed libboost, it can now detect, but cannot
 link i
 guess. please help ASAP.

 --
 Thanks
 Abhishek Majumdar


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


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




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


Re: [nox-dev] problem with swig

2010-12-06 Thread Murphy McCauley
The information on that page is long out of date.  The noxrepo wiki 
(http://noxrepo.org/noxwiki) is much more in line with reality.  The packages 
listed on that page are for Debian, and the NOX it has you fetch is no longer 
0.6.0.

Please try the following (copy/pasted from the noxrepo wiki), and then re-run 
../configure:

sudo apt-get install autoconf automake g++ libtool swig make git-core 
libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev python-twisted 
python-simplejson python-dev


-- Murphy

On Dec 6, 2010, at 6:36 AM, majum...@cse.unl.edu wrote:

 BTW I'm using the tutorial given at
 http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup
 
 So I'm using NOX 0.6
 
 Thanks
 Abhishek
 
 Can you please post the results of running apt-get install swig and also
 the results of running ../configure ?
 
 Also, which version of NOX are you using?
 
 -- Murphy
 
 On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:
 
 Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
 everything and in /nox/build when i do ../configure it recognizes and
 then gives configure: error: Could not link against !
 
 Thanks
 Abhishek Majumdar
 
 
 On 12/5/2010 10:35 PM, kk yap wrote:
 Hi Abhishek,
 
 Let's see... Try make install and ldconfig?
 
 Jokes aside, please let us know your OS, distro, etc. for anyone to
 give advice.  It works perfectly on Ubuntu (Lucid Lynx) for me.  In
 fact, we have a pseudo-package that installs the requisites using
 apt-get.
 
 Regards
 KK
 
 On 5 December 2010 20:24, Abhishek Majumdarmajum...@cse.unl.edu
 wrote:
 When I try to install the pre-requisites, it says swig package cannot
 be
 found. I separately installed libboost, it can now detect, but cannot
 link i
 guess. please help ASAP.
 
 --
 Thanks
 Abhishek Majumdar
 
 
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 
 


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


Re: [nox-dev] problem with swig

2010-12-06 Thread Abhishek Majumdar

I still got that configure : error: could not link against !

Thanks
Abhishek Majumdar


On 12/6/2010 8:43 AM, Murphy McCauley wrote:

The information on that page is long out of date.  The noxrepo wiki 
(http://noxrepo.org/noxwiki) is much more in line with reality.  The packages 
listed on that page are for Debian, and the NOX it has you fetch is no longer 
0.6.0.

Please try the following (copy/pasted from the noxrepo wiki), and then re-run 
../configure:

sudo apt-get install autoconf automake g++ libtool swig make git-core 
libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev python-twisted 
python-simplejson python-dev


-- Murphy

On Dec 6, 2010, at 6:36 AM, majum...@cse.unl.edu wrote:


BTW I'm using the tutorial given at
http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup

So I'm using NOX 0.6

Thanks
Abhishek


Can you please post the results of running apt-get install swig and also
the results of running ../configure ?

Also, which version of NOX are you using?

-- Murphy

On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:


Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
everything and in /nox/build when i do ../configure it recognizes and
then gives configure: error: Could not link against !

Thanks
Abhishek Majumdar


On 12/5/2010 10:35 PM, kk yap wrote:

Hi Abhishek,

Let's see... Try make install and ldconfig?

Jokes aside, please let us know your OS, distro, etc. for anyone to
give advice.  It works perfectly on Ubuntu (Lucid Lynx) for me.  In
fact, we have a pseudo-package that installs the requisites using
apt-get.

Regards
KK

On 5 December 2010 20:24, Abhishek Majumdarmajum...@cse.unl.edu
wrote:

When I try to install the pre-requisites, it says swig package cannot
be
found. I separately installed libboost, it can now detect, but cannot
link i
guess. please help ASAP.

--
Thanks
Abhishek Majumdar


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


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




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


Re: [nox-dev] problem with swig

2010-12-06 Thread Murphy McCauley
Can you send the config.log file from your build directory, as well as the 
output from uname -a and cat /etc/issue ?

-- Murphy

On Dec 6, 2010, at 6:51 AM, Abhishek Majumdar wrote:

 I still got that configure : error: could not link against !
 
 Thanks
 Abhishek Majumdar
 
 
 On 12/6/2010 8:43 AM, Murphy McCauley wrote:
 The information on that page is long out of date.  The noxrepo wiki 
 (http://noxrepo.org/noxwiki) is much more in line with reality.  The 
 packages listed on that page are for Debian, and the NOX it has you fetch is 
 no longer 0.6.0.
 
 Please try the following (copy/pasted from the noxrepo wiki), and then 
 re-run ../configure:
 
 sudo apt-get install autoconf automake g++ libtool swig make git-core 
 libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev 
 python-twisted python-simplejson python-dev
 
 
 -- Murphy
 
 On Dec 6, 2010, at 6:36 AM, majum...@cse.unl.edu wrote:
 
 BTW I'm using the tutorial given at
 http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup
 
 So I'm using NOX 0.6
 
 Thanks
 Abhishek
 
 Can you please post the results of running apt-get install swig and also
 the results of running ../configure ?
 
 Also, which version of NOX are you using?
 
 -- Murphy
 
 On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:
 
 Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
 everything and in /nox/build when i do ../configure it recognizes and
 then gives configure: error: Could not link against !
 
 Thanks
 Abhishek Majumdar
 
 
 On 12/5/2010 10:35 PM, kk yap wrote:
 Hi Abhishek,
 
 Let's see... Try make install and ldconfig?
 
 Jokes aside, please let us know your OS, distro, etc. for anyone to
 give advice.  It works perfectly on Ubuntu (Lucid Lynx) for me.  In
 fact, we have a pseudo-package that installs the requisites using
 apt-get.
 
 Regards
 KK
 
 On 5 December 2010 20:24, Abhishek Majumdarmajum...@cse.unl.edu
 wrote:
 When I try to install the pre-requisites, it says swig package cannot
 be
 found. I separately installed libboost, it can now detect, but cannot
 link i
 guess. please help ASAP.
 
 --
 Thanks
 Abhishek Majumdar
 
 
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 


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


Re: [nox-dev] problem with swig

2010-12-06 Thread Syed Akbar Mehdi
I encountered the same configure: error: Could not link against !. Try
installing the libboost-all-dev as well as boost-build packages. Maybe
this is overkill but, in my case it made this error go away.

sudo aptitude install boost-build libboost-all-dev

--Akbar

On Mon, Dec 6, 2010 at 9:06 PM, majum...@cse.unl.edu wrote:

 Output of uname -a:
 Linux Ubuntu10VM 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC
 2010 i686 GNU/Linux
 Output of cat /etc/issue:
 Ubuntu 10.04.1 LTS \n \l



  Can you send the config.log file from your build directory, as well as
 the
  output from uname -a and cat /etc/issue ?
 
  -- Murphy
 
  On Dec 6, 2010, at 6:51 AM, Abhishek Majumdar wrote:
 
  I still got that configure : error: could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/6/2010 8:43 AM, Murphy McCauley wrote:
  The information on that page is long out of date.  The noxrepo wiki
  (http://noxrepo.org/noxwiki) is much more in line with reality.  The
  packages listed on that page are for Debian, and the NOX it has you
  fetch is no longer 0.6.0.
 
  Please try the following (copy/pasted from the noxrepo wiki), and then
  re-run ../configure:
 
  sudo apt-get install autoconf automake g++ libtool swig make git-core
  libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev
  python-twisted python-simplejson python-dev
 
 
  -- Murphy
 
  On Dec 6, 2010, at 6:36 AM, majum...@cse.unl.edu wrote:
 
  BTW I'm using the tutorial given at
 
 http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup
 
  So I'm using NOX 0.6
 
  Thanks
  Abhishek
 
  Can you please post the results of running apt-get install swig and
  also
  the results of running ../configure ?
 
  Also, which version of NOX are you using?
 
  -- Murphy
 
  On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:
 
  Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
  everything and in /nox/build when i do ../configure it recognizes
  and
  then gives configure: error: Could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/5/2010 10:35 PM, kk yap wrote:
  Hi Abhishek,
 
  Let's see... Try make install and ldconfig?
 
  Jokes aside, please let us know your OS, distro, etc. for anyone to
  give advice.  It works perfectly on Ubuntu (Lucid Lynx) for me.  In
  fact, we have a pseudo-package that installs the requisites using
  apt-get.
 
  Regards
  KK
 
  On 5 December 2010 20:24, Abhishek Majumdarmajum...@cse.unl.edu
  wrote:
  When I try to install the pre-requisites, it says swig package
  cannot
  be
  found. I separately installed libboost, it can now detect, but
  cannot
  link i
  guess. please help ASAP.
 
  --
  Thanks
  Abhishek Majumdar
 
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 

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


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


Re: [nox-dev] problem with swig

2010-12-06 Thread Murphy McCauley
Yeah, I think this will probably work.

apt-get install libboost-dev

might also do the trick (and not be overkill).

-- Murphy

On Dec 6, 2010, at 12:07 PM, Syed Akbar Mehdi wrote:

 I encountered the same configure: error: Could not link against !. Try 
 installing the libboost-all-dev as well as boost-build packages. Maybe 
 this is overkill but, in my case it made this error go away. 
 
 sudo aptitude install boost-build libboost-all-dev
 
 --Akbar
 
 On Mon, Dec 6, 2010 at 9:06 PM, majum...@cse.unl.edu wrote:
 Output of uname -a:
 Linux Ubuntu10VM 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC
 2010 i686 GNU/Linux
 Output of cat /etc/issue:
 Ubuntu 10.04.1 LTS \n \l
 
 
 
  Can you send the config.log file from your build directory, as well as the
  output from uname -a and cat /etc/issue ?
 
  -- Murphy
 
  On Dec 6, 2010, at 6:51 AM, Abhishek Majumdar wrote:
 
  I still got that configure : error: could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/6/2010 8:43 AM, Murphy McCauley wrote:
  The information on that page is long out of date.  The noxrepo wiki
  (http://noxrepo.org/noxwiki) is much more in line with reality.  The
  packages listed on that page are for Debian, and the NOX it has you
  fetch is no longer 0.6.0.
 
  Please try the following (copy/pasted from the noxrepo wiki), and then
  re-run ../configure:
 
  sudo apt-get install autoconf automake g++ libtool swig make git-core
  libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev
  python-twisted python-simplejson python-dev
 
 
  -- Murphy
 
  On Dec 6, 2010, at 6:36 AM, majum...@cse.unl.edu wrote:
 
  BTW I'm using the tutorial given at
  http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup
 
  So I'm using NOX 0.6
 
  Thanks
  Abhishek
 
  Can you please post the results of running apt-get install swig and
  also
  the results of running ../configure ?
 
  Also, which version of NOX are you using?
 
  -- Murphy
 
  On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:
 
  Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
  everything and in /nox/build when i do ../configure it recognizes
  and
  then gives configure: error: Could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/5/2010 10:35 PM, kk yap wrote:
  Hi Abhishek,
 
  Let's see... Try make install and ldconfig?
 
  Jokes aside, please let us know your OS, distro, etc. for anyone to
  give advice.  It works perfectly on Ubuntu (Lucid Lynx) for me.  In
  fact, we have a pseudo-package that installs the requisites using
  apt-get.
 
  Regards
  KK
 
  On 5 December 2010 20:24, Abhishek Majumdarmajum...@cse.unl.edu
  wrote:
  When I try to install the pre-requisites, it says swig package
  cannot
  be
  found. I separately installed libboost, it can now detect, but
  cannot
  link i
  guess. please help ASAP.
 
  --
  Thanks
  Abhishek Majumdar
 
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 
 
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 

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


Re: [nox-dev] working of switch api on link failure

2010-12-06 Thread kk yap
Hi,

Pardon my laziness in not reading the patches.  I am confused here.  Two points:
1) Switch does not depend on topology or discovery, so how do you get
link failure?

2) There is no spanning tree implementation in NOX (distributed by
default), i.e., you cannot have a redundant network with NOX.  So, how
can you possibly hope to find the host on a different route when a
link failure occurs?  On that note, why does handling link failure
even matters?

Regards
KK

On 6 December 2010 12:14, Srini Seetharaman seeth...@stanford.edu wrote:
 Hi Sachin
 You raise a good point. There is no code that performs the needed
 cleanup on link failure. I've attached two patch files that shud work
 for the switch module and the routing module. This will clear the flow
 rules on the switch for that out_port that went down, and also clear
 any learned MAC address (in case of the switch module).

 The code is not necessarily optimized. But, it has been tested to work
 fine with HP switches in a small lab setup. Please let us know whether
 this solves your problem.

 NOX-Admins - Please accept this patch if you find it worthwhile.

 Thanks
 Srini.

 On Fri, Nov 26, 2010 at 7:09 AM, sachin sharma
 sharon_sac...@yahoo.co.in wrote:
 Hi,
 I have gone through the switch api of code at nox
 (/home/user/newnox/src/nox/coreapps/switch/switch.cc)  but i do not find any
 action of switch on link failure.

  when i run nox with this switch api then flow entries are getting added in
 openvswitch. But when I make one of outgoing link down. then after some
 time, older flow entry gets vanishes and new flow entry is getting added in
 my flow table with available port. But new entry addition time is greater
 than flow expired time ( in my case it is 50 seconds).

 But I am not able to find the code in nox which does this action on link
 failure.  Can anyone explain me that which part of code at nox is called
 when nox detects link failure on any datapath port.

 Thank You!
 Sachin Sharma




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



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



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


Re: [nox-dev] working of switch api on link failure

2010-12-06 Thread Srini Seetharaman
 Pardon my laziness in not reading the patches.  I am confused here.  Two 
 points:
 1) Switch does not depend on topology or discovery, so how do you get
 link failure?

Oh, with switch, I use the port_status_change event and clear flow
rules (and the archived Mac_source for the port).

 2) There is no spanning tree implementation in NOX (distributed by
 default), i.e., you cannot have a redundant network with NOX.  So, how
 can you possibly hope to find the host on a different route when a
 link failure occurs?  On that note, why does handling link failure
 even matters?

If a silent host (connected to port X) had moved to port Y, then your
table will still think the host is located on port X. Even if there
existed a chance of reaching host thro' port Y, the controller won't
really try that.

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


Re: [nox-dev] working of switch api on link failure

2010-12-06 Thread kk yap
Hi Srini,

1) The archived port would be the same port?

2) My point precisely.  So, what does clearing the flow entries achieve here?

I contend that custom controllers might want to implement this
flushing on their own.  The patch is probably most useful as a
component that other controllers can load on demand.  Patching this on
switch and routing would add to clutter with little utility in my
opinion.

Regards
KK

PS I am happy to push this functionality as a component.

On 6 December 2010 12:43, Srini Seetharaman seeth...@stanford.edu wrote:
 Pardon my laziness in not reading the patches.  I am confused here.  Two 
 points:
 1) Switch does not depend on topology or discovery, so how do you get
 link failure?

 Oh, with switch, I use the port_status_change event and clear flow
 rules (and the archived Mac_source for the port).

 2) There is no spanning tree implementation in NOX (distributed by
 default), i.e., you cannot have a redundant network with NOX.  So, how
 can you possibly hope to find the host on a different route when a
 link failure occurs?  On that note, why does handling link failure
 even matters?

 If a silent host (connected to port X) had moved to port Y, then your
 table will still think the host is located on port X. Even if there
 existed a chance of reaching host thro' port Y, the controller won't
 really try that.


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


Re: [nox-dev] working of switch api on link failure

2010-12-06 Thread sachin sharma
Hi Srini,

Thank you very much for the patch.

Switch.cc implements  L2  learning. But  in this patch, action are taken on 
link 
failure. This does not match with MAC learning. 


The code of switch.cc works fine. But only the issue is that it does not 
implement aging timer. 


Aging timer is explained below:

http://noxrepo.org/pipermail/nox-dev_noxrepo.org/2010-December/001845.html

I think if we implement this then MAC learning code would work well for 
protection scenarios as well.

So from my point of view,  we should not take the action on link status change.

The patch would work fine. But this could be a enhancement over MAC learning. 

Best Regards,
Sachin Sharma





From: Srini Seetharaman seeth...@stanford.edu
To: kk yap yap...@stanford.edu
Cc: sachin sharma sharon_sac...@yahoo.co.in; nox-dev@noxrepo.org
Sent: Mon, 6 December, 2010 9:43:43 PM
Subject: Re: [nox-dev] working of switch api on link failure

 Pardon my laziness in not reading the patches.  I am confused here.  Two 
points:
 1) Switch does not depend on topology or discovery, so how do you get
 link failure?

Oh, with switch, I use the port_status_change event and clear flow
rules (and the archived Mac_source for the port).

 2) There is no spanning tree implementation in NOX (distributed by
 default), i.e., you cannot have a redundant network with NOX.  So, how
 can you possibly hope to find the host on a different route when a
 link failure occurs?  On that note, why does handling link failure
 even matters?

If a silent host (connected to port X) had moved to port Y, then your
table will still think the host is located on port X. Even if there
existed a chance of reaching host thro' port Y, the controller won't
really try that.


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


Re: [nox-dev] working of switch api on link failure

2010-12-06 Thread kk yap
Hi Sachin,

Thanks for all the heads-up.

For aging, I am a little wary about the consequence of implementing
aging.  Wireless clients (esp. phones with WiFi) tends to be fairly
silent these days.  I don't have numbers for that, but it might be
good to have some value to play with before pushing such a patch.  I
will see how I can get some of these numbers.

Thanks.

Regards
KK

On 6 December 2010 13:09, sachin sharma sharon_sac...@yahoo.co.in wrote:
 Hi Srini,

 Thank you very much for the patch.

 Switch.cc implements  L2  learning. But  in this patch, action are taken on
 link failure. This does not match with MAC learning.

 The code of switch.cc works fine. But only the issue is that it does not
 implement aging timer.

 Aging timer is explained below:

 http://noxrepo.org/pipermail/nox-dev_noxrepo.org/2010-December/001845.html

 I think if we implement this then MAC learning code would work well for
 protection scenarios as well.

 So from my point of view,  we should not take the action on link status
 change.

 The patch would work fine. But this could be a enhancement over MAC
 learning.

 Best Regards,
 Sachin Sharma

 
 From: Srini Seetharaman seeth...@stanford.edu
 To: kk yap yap...@stanford.edu
 Cc: sachin sharma sharon_sac...@yahoo.co.in; nox-dev@noxrepo.org
 Sent: Mon, 6 December, 2010 9:43:43 PM
 Subject: Re: [nox-dev] working of switch api on link failure

 Pardon my laziness in not reading the patches.  I am confused here.  Two
 points:
 1) Switch does not depend on topology or discovery, so how do you get
 link failure?

 Oh, with switch, I use the port_status_change event and clear flow
 rules (and the archived Mac_source for the port).

 2) There is no spanning tree implementation in NOX (distributed by
 default), i.e., you cannot have a redundant network with NOX.  So, how
 can you possibly hope to find the host on a different route when a
 link failure occurs?  On that note, why does handling link failure
 even matters?

 If a silent host (connected to port X) had moved to port Y, then your
 table will still think the host is located on port X. Even if there
 existed a chance of reaching host thro' port Y, the controller won't
 really try that.



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


Re: [nox-dev] working of switch api on link failure

2010-12-06 Thread Srini Seetharaman
Sachin brought up a valid point that the switch and routing modules
are lacking on actions to take when a port or link goes down. Note
that the code available right now in NOX may cause packet loss if the
dst host moved to a new location and stays silent at the new location
(Ageing or host table flushing needs to be implemented for this to
work)

Whether you want MAC entries to expire like a learning switch, or
whether you want to proactively flush out entries made, is left to
you. The code for the latter is in the patch I mailed earlier.

Thanks
Srini.

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


[nox-dev] NoX routing does not work

2010-12-06 Thread Jean Tourrilhes
Hi,

I had reported this bugs a few weeks ago, and it's not
fixed. I need to run NoX to debug the interactions between NoX and my
switch, but if NoX does not run...

Ok this is what I do :

--
$ tar -xvzf nox-zaku-10dec02.tar.gz
$ cd nox-zaku-10dec02/
$ ./boot.sh
$ mkdir build/
$ cd build/
$ ../configure
$ make -j3
$ cd src
$ make check
$ su
# ./nox_core -v -i ptcp:2710 routing


And, as soon as the first ping packet arrives, NoX just blows
up in an infinite loop of DBG messages and . See log below...

A tcpdump shows that packet are not going through at all.
When ARP is cold, I get no flow tables. When ARP was already
resolved, it seems that I get a flow entry for the ARP return path.

-
open...@champagne./ovs-ofctl dump-flows tcp:15.9.114.10:2710
stats_reply (xid=0xdafa376e): flags=none type=1(flow)
  cookie=0x728445cfe2b112af, duration_sec=3s, duration_nsec=84900ns, 
table_id=1, priority=65535, n_packets=2, n_bytes=120, 
idle_timeout=5,arp,in_port=17,dl_vlan=65535,dl_vlan_pcp=0,dl_src=00:15:17:19:a3:fc,dl_dst=00:15:17:19:c7:80,nw_src=10.10.10.33,nw_dst=10.10.10.34,opcode=1,icmp_type=0,icmp_code=0,actions=output:24
-

Note also that both the switch and the pyswitch modules
are working properly, but I need routing to work.

Thanks in advance !

Jean

-
1|nox|INFO:Starting nox_core 
(/home/opennet/nox/nox-zaku-10dec02/build/src/.libs/lt-nox_core)
2|pyrt|DBG:Loading a component description file 
'nox/coreapps/simple_c_app/meta.json'.
3|pyrt|DBG:Loading a component description file 
'nox/coreapps/messenger/meta.json'.
4|pyrt|DBG:Loading a component description file 
'nox/coreapps/coretests/meta.json'.
5|pyrt|DBG:Loading a component description file 
'nox/coreapps/pyrt/meta.json'.
6|pyrt|DBG:Loading a component description file 
'nox/coreapps/hub/meta.json'.
7|pyrt|DBG:Loading a component description file 
'nox/coreapps/examples/t/meta.json'.
8|pyrt|DBG:Loading a component description file 
'nox/coreapps/examples/meta.json'.
9|pyrt|DBG:Loading a component description file 
'nox/coreapps/switch/meta.json'.
00010|pyrt|DBG:Loading a component description file 
'nox/coreapps/simple_c_py_app/meta.json'.
00011|pyrt|DBG:Loading a component description file 
'nox/coreapps/snmp/meta.json'.
00012|pyrt|DBG:Loading a component description file 
'nox/coreapps/testharness/meta.json'.
00013|pyrt|DBG:Loading a component description file 
'nox/netapps/data/meta.json'.
00014|pyrt|DBG:Loading a component description file 
'nox/netapps/route/meta.json'.
00015|pyrt|DBG:Loading a component description file 
'nox/netapps/user_event_log/meta.json'.
00016|pyrt|DBG:Loading a component description file 
'nox/netapps/topology/meta.json'.
00017|pyrt|DBG:Loading a component description file 
'nox/netapps/tests/meta.json'.
00018|pyrt|DBG:Loading a component description file 
'nox/netapps/discovery/meta.json'.
00019|pyrt|DBG:Loading a component description file 
'nox/netapps/storage/t/meta.json'.
00020|pyrt|DBG:Loading a component description file 
'nox/netapps/storage/meta.json'.
00021|pyrt|DBG:Loading a component description file 
'nox/netapps/lavi/meta.json'.
00022|pyrt|DBG:Loading a component description file 
'nox/netapps/switchstats/meta.json'.
00023|pyrt|DBG:Loading a component description file 
'nox/netapps/flow_fetcher/meta.json'.
00024|pyrt|DBG:Loading a component description file 
'nox/netapps/authenticator/meta.json'.
00025|pyrt|DBG:Loading a component description file 
'nox/netapps/routing/meta.json'.
00026|pyrt|DBG:Loading a component description file 
'nox/netapps/tablog/meta.json'.
00027|pyrt|DBG:Loading a component description file 
'nox/netapps/bindings_storage/t/meta.json'.
00028|pyrt|DBG:Loading a component description file 
'nox/netapps/bindings_storage/meta.json'.
00029|pyrt|DBG:Loading a component description file 
'nox/netapps/hoststate/meta.json'.
00030|pyrt|DBG:Loading a component description file 
'nox/netapps/networkstate/meta.json'.
00031|pyrt|DBG:Loading a component description file 
'nox/netapps/switch_management/meta.json'.
00032|pyrt|DBG:Loading a component description file 
'nox/webapps/webservice/meta.json'.
00033|pyrt|DBG:Loading a component description file 
'nox/webapps/webserver/meta.json'.
00034|pyrt|DBG:Loading a component description file 
'nox/webapps/miscws/meta.json'.
00035|dht-storage|DBG:Creating a table: bindings_host
00036|dht-storage|DBG:Creating a table: bindings_user
00037|dht-storage|DBG:Creating a table: bindings_dladdr
00038|dht-storage|DBG:Creating a table: bindings_link
00039|dht-storage|DBG:Creating a table: bindings_location
00040|pycomponent|DBG:Importing Python module 
nox.netapps.bindings_storage.pybindings_storage
00041|dht-storage|DBG:Creating a 

[nox-dev] NOX Router

2010-12-06 Thread Uday Kiran Medisetty
Hi,

I want to implement a router using NOX. I have a topology in which Host1 is
connected to Switch1, Host2 is connected to Switch2 and both the switches
are connected to the router. When Host1 sends ICMP packet to Host2, it will
set the destination mac address as the interface on router to which switch
is connected. Now on the router, when I see that the mac address is some as
one of it's interfaces, it will check the ip address. Since the ip address
is Host2's ip address, it has to replace the mac with Host2's mac address
and forward it to switch 2.

But on the router, after I change the destination mac in packet_in_callback,
when the packet reaches switch 2, I still see the old mac address. Please
let me know if I am missing something or if there is a simpler way to change
mac address of a packet in packet_in_callback function.

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


Re: [nox-dev] NoX routing does not work

2010-12-06 Thread Jean Tourrilhes
On Mon, Dec 06, 2010 at 03:06:34PM -0800, Srini Seetharaman wrote:
 Hi Jean
 What is the topology you're using? Do you have a loop?

This is a *single* switch. It's connected to another switch,
but that other switch is NOT running OpenFlow. Anyway, that would blow
up with my other controllers...
Now that I think of it, yes, there is a gotcha, this switch
has a LAG. I'll try without the LAG and report...

Regards,

Jean

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


Re: [nox-dev] problem with swig

2010-12-06 Thread Abhishek Majumdar

It works now. Thanks a lot.

Abhishek Majumdar


On 12/6/2010 2:13 PM, Murphy McCauley wrote:

Yeah, I think this will probably work.

apt-get install libboost-dev

might also do the trick (and not be overkill).

-- Murphy

On Dec 6, 2010, at 12:07 PM, Syed Akbar Mehdi wrote:

I encountered the same configure: error: Could not link against !. 
Try installing the libboost-all-dev as well as boost-build 
packages. Maybe this is overkill but, in my case it made this error 
go away.


sudo aptitude install boost-build libboost-all-dev

--Akbar

On Mon, Dec 6, 2010 at 9:06 PM, majum...@cse.unl.edu 
mailto:majum...@cse.unl.edu wrote:


Output of uname -a:
Linux Ubuntu10VM 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24
09:00:03 UTC
2010 i686 GNU/Linux
Output of cat /etc/issue:
Ubuntu 10.04.1 LTS \n \l



 Can you send the config.log file from your build directory, as
well as the
 output from uname -a and cat /etc/issue ?

 -- Murphy

 On Dec 6, 2010, at 6:51 AM, Abhishek Majumdar wrote:

 I still got that configure : error: could not link against !

 Thanks
 Abhishek Majumdar


 On 12/6/2010 8:43 AM, Murphy McCauley wrote:
 The information on that page is long out of date.  The
noxrepo wiki
 (http://noxrepo.org/noxwiki) is much more in line with
reality.  The
 packages listed on that page are for Debian, and the NOX it
has you
 fetch is no longer 0.6.0.

 Please try the following (copy/pasted from the noxrepo wiki),
and then
 re-run ../configure:

 sudo apt-get install autoconf automake g++ libtool swig make
git-core
 libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev
 python-twisted python-simplejson python-dev


 -- Murphy

 On Dec 6, 2010, at 6:36 AM, majum...@cse.unl.edu
mailto:majum...@cse.unl.edu wrote:

 BTW I'm using the tutorial given at


http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup

 So I'm using NOX 0.6

 Thanks
 Abhishek

 Can you please post the results of running apt-get install
swig and
 also
 the results of running ../configure ?

 Also, which version of NOX are you using?

 -- Murphy

 On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:

 Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
 everything and in /nox/build when i do ../configure it
recognizes
 and
 then gives configure: error: Could not link against !

 Thanks
 Abhishek Majumdar


 On 12/5/2010 10:35 PM, kk yap wrote:
 Hi Abhishek,

 Let's see... Try make install and ldconfig?

 Jokes aside, please let us know your OS, distro, etc. for
anyone to
 give advice.  It works perfectly on Ubuntu (Lucid Lynx)
for me.  In
 fact, we have a pseudo-package that installs the
requisites using
 apt-get.

 Regards
 KK

 On 5 December 2010 20:24, Abhishek
Majumdarmajum...@cse.unl.edu mailto:majum...@cse.unl.edu
 wrote:
 When I try to install the pre-requisites, it says swig
package
 cannot
 be
 found. I separately installed libboost, it can now
detect, but
 cannot
 link i
 guess. please help ASAP.

 --
 Thanks
 Abhishek Majumdar


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

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



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




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


Re: [nox-dev] NoX routing does not work

2010-12-06 Thread Jean Tourrilhes
On Mon, Dec 06, 2010 at 03:06:34PM -0800, Srini Seetharaman wrote:
 Hi Jean
 What is the topology you're using? Do you have a loop?

Hi,

I tried with another switch which does NOT have a LAG. This
time, it seems that the forward path is working, and the return path
does not work. And I still have the same DBG message in a tight loop.
(By the way, the -v flag does not seem to show anything
interesting for debugging).
Note, both host connected directly to the switch.

Regards,

Jean

Sender :
-
bourgogne|~# tcpdump -p -n -i eth6
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth6, link-type EN10MB (Ethernet), capture size 96 bytes
15:27:34.096602 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
1, length 64
15:27:35.096092 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
2, length 64
15:27:36.096091 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
3, length 64
15:27:37.096103 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
4, length 64
15:27:38.096091 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
5, length 64
15:27:39.096578 arp who-has 10.10.11.33 tell 10.10.11.34
15:27:39.096595 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
6, length 64
15:27:40.096077 arp who-has 10.10.11.33 tell 10.10.11.34
15:27:40.096096 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
7, length 64
15:27:41.096078 arp who-has 10.10.11.33 tell 10.10.11.34
15:27:41.096098 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
8, length 64
15:27:42.100577 arp who-has 10.10.11.33 tell 10.10.11.34
-

Receiver :
--
bordeaux|/usr/src/ixgbe-3.0.12# tcpdump -p -n -i eth6
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth6, link-type EN10MB (Ethernet), capture size 96 bytes
15:27:34.101970 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
1, length 64
15:27:34.101993 IP 10.10.11.33  10.10.11.34: ICMP echo reply, id 20319, seq 1, 
length 64
15:27:35.097531 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
2, length 64
15:27:35.097541 IP 10.10.11.33  10.10.11.34: ICMP echo reply, id 20319, seq 2, 
length 64
15:27:36.205563 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
3, length 64
15:27:36.205573 IP 10.10.11.33  10.10.11.34: ICMP echo reply, id 20319, seq 3, 
length 64
15:27:37.097740 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
4, length 64
15:27:37.097768 IP 10.10.11.33  10.10.11.34: ICMP echo reply, id 20319, seq 4, 
length 64
15:27:38.224442 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
5, length 64
15:27:38.224453 IP 10.10.11.33  10.10.11.34: ICMP echo reply, id 20319, seq 5, 
length 64
15:27:39.099661 arp who-has 10.10.11.34 tell 10.10.11.33
15:27:39.099745 arp who-has 10.10.11.33 tell 10.10.11.34
15:27:39.099757 arp reply 10.10.11.33 is-at 00:15:17:8f:d6:66
15:27:39.101041 IP 10.10.11.34  10.10.11.33: ICMP echo request, id 20319, seq 
6, length 64
15:27:39.101054 IP 10.10.11.33  10.10.11.34: ICMP echo reply, id 20319, seq 6, 
length 64
15:27:39.158250 arp who-has 10.10.71.1 tell 10.10.71.101
15:27:40.097900 arp who-has 10.10.11.33 tell 10.10.11.34
15:27:40.097908 arp reply 10.10.11.33 is-at 00:15:17:8f:d6:66
--

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


Re: [nox-dev] problem with swig

2010-12-06 Thread Murphy McCauley
Glad to hear it!

Did you try it with just libboost-dev, or did you use libboost-all-dev?  If 
it's the former, I'd like to update the wiki (if it's the latter, I'll have to 
look into it more). :)

-- Murphy

On Dec 6, 2010, at 3:28 PM, Abhishek Majumdar wrote:

 It works now. Thanks a lot.
 Abhishek Majumdar
 
 On 12/6/2010 2:13 PM, Murphy McCauley wrote:
 
 Yeah, I think this will probably work.
 
 apt-get install libboost-dev
 
 might also do the trick (and not be overkill).
 
 -- Murphy
 
 On Dec 6, 2010, at 12:07 PM, Syed Akbar Mehdi wrote:
 
 I encountered the same configure: error: Could not link against !. Try 
 installing the libboost-all-dev as well as boost-build packages. Maybe 
 this is overkill but, in my case it made this error go away. 
 
 sudo aptitude install boost-build libboost-all-dev
 
 --Akbar
 
 On Mon, Dec 6, 2010 at 9:06 PM, majum...@cse.unl.edu wrote:
 Output of uname -a:
 Linux Ubuntu10VM 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC
 2010 i686 GNU/Linux
 Output of cat /etc/issue:
 Ubuntu 10.04.1 LTS \n \l
 
 
 
  Can you send the config.log file from your build directory, as well as the
  output from uname -a and cat /etc/issue ?
 
  -- Murphy
 
  On Dec 6, 2010, at 6:51 AM, Abhishek Majumdar wrote:
 
  I still got that configure : error: could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/6/2010 8:43 AM, Murphy McCauley wrote:
  The information on that page is long out of date.  The noxrepo wiki
  (http://noxrepo.org/noxwiki) is much more in line with reality.  The
  packages listed on that page are for Debian, and the NOX it has you
  fetch is no longer 0.6.0.
 
  Please try the following (copy/pasted from the noxrepo wiki), and then
  re-run ../configure:
 
  sudo apt-get install autoconf automake g++ libtool swig make git-core
  libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev
  python-twisted python-simplejson python-dev
 
 
  -- Murphy
 
  On Dec 6, 2010, at 6:36 AM, majum...@cse.unl.edu wrote:
 
  BTW I'm using the tutorial given at
  http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup
 
  So I'm using NOX 0.6
 
  Thanks
  Abhishek
 
  Can you please post the results of running apt-get install swig and
  also
  the results of running ../configure ?
 
  Also, which version of NOX are you using?
 
  -- Murphy
 
  On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:
 
  Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
  everything and in /nox/build when i do ../configure it recognizes
  and
  then gives configure: error: Could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/5/2010 10:35 PM, kk yap wrote:
  Hi Abhishek,
 
  Let's see... Try make install and ldconfig?
 
  Jokes aside, please let us know your OS, distro, etc. for anyone to
  give advice.  It works perfectly on Ubuntu (Lucid Lynx) for me.  In
  fact, we have a pseudo-package that installs the requisites using
  apt-get.
 
  Regards
  KK
 
  On 5 December 2010 20:24, Abhishek Majumdarmajum...@cse.unl.edu
  wrote:
  When I try to install the pre-requisites, it says swig package
  cannot
  be
  found. I separately installed libboost, it can now detect, but
  cannot
  link i
  guess. please help ASAP.
 
  --
  Thanks
  Abhishek Majumdar
 
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 
 
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 
 

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


Re: [nox-dev] NoX routing does not work

2010-12-06 Thread kk yap
Hi Jean,

I am confused you seem to be giving us partial logs and also your NOX
seems to be slow.  Are you running in a VM?  Anyway, I cannot figure
out what the problem is from all these.  I understand you have flow
setup in one way and not the other.

Can you furnish more information and probably the full NOX output and
pcap exchange of OpenFlow messages? Knowing the line number to focus
on in those logs will help too.  I understand you are a savvy user of
OpenFlow but it is hard to debug from email description, esp. when I
am not clear which is from LAG or non-LAG switch.

Thanks.

Regards
KK

On 6 December 2010 17:06, Jean Tourrilhes j...@hpl.hp.com wrote:
 On Mon, Dec 06, 2010 at 03:06:34PM -0800, Srini Seetharaman wrote:
 Hi Jean
 What is the topology you're using? Do you have a loop?

        Can you look at the attached pcap files ? It's quite clear
 that the second packet is never forwarded or flooded in any way.
        Looking at the trace, it would be nice if NoX would show
 OpenFlow protocol errors in the debug output.
        Regards,

        Jean


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


Re: [nox-dev] problem with swig

2010-12-06 Thread kk yap
Murphy,

The list I use for the package is

Depends: doxygen, doxypy, build-essential, python-dev, autoconf,
automake, make, g++, libtool, python-twisted, python-dev, swig,
libssl-dev, libboost-dev (= 1.34.1), libboost-test-dev,
libboost-filesystem-dev

Suggests: git-core, libsqilte3-dev, python-simplejson

libboost-all-dev is quite a bit to download for me.

Regards
KK


On 6 December 2010 17:45, Murphy McCauley jam...@nau.edu wrote:
 Glad to hear it!
 Did you try it with just libboost-dev, or did you use libboost-all-dev?  If
 it's the former, I'd like to update the wiki (if it's the latter, I'll have
 to look into it more). :)
 -- Murphy
 On Dec 6, 2010, at 3:28 PM, Abhishek Majumdar wrote:

 It works now. Thanks a lot.

 Abhishek Majumdar

 On 12/6/2010 2:13 PM, Murphy McCauley wrote:

 Yeah, I think this will probably work.
 apt-get install libboost-dev
 might also do the trick (and not be overkill).
 -- Murphy
 On Dec 6, 2010, at 12:07 PM, Syed Akbar Mehdi wrote:

 I encountered the same configure: error: Could not link against !. Try
 installing the libboost-all-dev as well as boost-build packages. Maybe
 this is overkill but, in my case it made this error go away.

 sudo aptitude install boost-build libboost-all-dev

 --Akbar

 On Mon, Dec 6, 2010 at 9:06 PM, majum...@cse.unl.edu wrote:

 Output of uname -a:
 Linux Ubuntu10VM 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC
 2010 i686 GNU/Linux
 Output of cat /etc/issue:
 Ubuntu 10.04.1 LTS \n \l



  Can you send the config.log file from your build directory, as well as
  the
  output from uname -a and cat /etc/issue ?
 
  -- Murphy
 
  On Dec 6, 2010, at 6:51 AM, Abhishek Majumdar wrote:
 
  I still got that configure : error: could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/6/2010 8:43 AM, Murphy McCauley wrote:
  The information on that page is long out of date.  The noxrepo wiki
  (http://noxrepo.org/noxwiki) is much more in line with reality.  The
  packages listed on that page are for Debian, and the NOX it has you
  fetch is no longer 0.6.0.
 
  Please try the following (copy/pasted from the noxrepo wiki), and then
  re-run ../configure:
 
  sudo apt-get install autoconf automake g++ libtool swig make git-core
  libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev
  python-twisted python-simplejson python-dev
 
 
  -- Murphy
 
  On Dec 6, 2010, at 6:36 AM, majum...@cse.unl.edu wrote:
 
  BTW I'm using the tutorial given at
 
  http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup
 
  So I'm using NOX 0.6
 
  Thanks
  Abhishek
 
  Can you please post the results of running apt-get install swig
  and
  also
  the results of running ../configure ?
 
  Also, which version of NOX are you using?
 
  -- Murphy
 
  On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:
 
  Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
  everything and in /nox/build when i do ../configure it recognizes
  and
  then gives configure: error: Could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/5/2010 10:35 PM, kk yap wrote:
  Hi Abhishek,
 
  Let's see... Try make install and ldconfig?
 
  Jokes aside, please let us know your OS, distro, etc. for anyone
  to
  give advice.  It works perfectly on Ubuntu (Lucid Lynx) for me.
   In
  fact, we have a pseudo-package that installs the requisites using
  apt-get.
 
  Regards
  KK
 
  On 5 December 2010 20:24, Abhishek Majumdarmajum...@cse.unl.edu
  wrote:
  When I try to install the pre-requisites, it says swig package
  cannot
  be
  found. I separately installed libboost, it can now detect, but
  cannot
  link i
  guess. please help ASAP.
 
  --
  Thanks
  Abhishek Majumdar
 
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 

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





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



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


Re: [nox-dev] NoX routing does not work

2010-12-06 Thread Jean Tourrilhes
On Mon, Dec 06, 2010 at 05:47:46PM -0800, kk yap wrote:
 Hi Jean,
 
 I am confused you seem to be giving us partial logs

Partial log ? I gave you everything I got, after that it
repeat at infinitum. If there some option I need to enable to get
better logs ?

 and also your NOX seems to be slow.

I don't know, it's spewing message very fast !

 Are you running in a VM?

No.

 Anyway, I cannot figure
 out what the problem is from all these.  I understand you have flow
 setup in one way and not the other.

I think the real problem, as seen from the PCAP files, is that
packets are not flooded/forwarded properly.
Note also the fact that NoX send a flow-mod + pkt-out for the
same buffer which generate a switch error. That's an obvious bug.

 Can you furnish more information and probably the full NOX output and
 pcap exchange of OpenFlow messages?

I'll try that.

 Knowing the line number to focus on in those logs will help too.

What does that mean ?

 I understand you are a savvy user of OpenFlow but it is hard to
 debug from email description,

I'm unfamiliar with NoX, so please tell me what you need.

 esp. when I am not clear which is from LAG or non-LAG switch.

Only the very first example had a LAG, all the rest is without
LAG.

 Thanks.
 
 Regards
 KK

Regards,

Jean

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


Re: [nox-dev] problem with swig

2010-12-06 Thread Syed Akbar Mehdi
Actually in my case, libboost-dev did not work. I had to use
libboost-all-dev to make the error go away.

On Tue, Dec 7, 2010 at 6:45 AM, Murphy McCauley jam...@nau.edu wrote:

 Glad to hear it!

 Did you try it with just libboost-dev, or did you use libboost-all-dev?  If
 it's the former, I'd like to update the wiki (if it's the latter, I'll have
 to look into it more). :)

 -- Murphy

 On Dec 6, 2010, at 3:28 PM, Abhishek Majumdar wrote:

  It works now. Thanks a lot.

 Abhishek Majumdar


 On 12/6/2010 2:13 PM, Murphy McCauley wrote:

 Yeah, I think this will probably work.

  apt-get install libboost-dev

  might also do the trick (and not be overkill).

  -- Murphy

  On Dec 6, 2010, at 12:07 PM, Syed Akbar Mehdi wrote:

 I encountered the same configure: error: Could not link against !. Try
 installing the libboost-all-dev as well as boost-build packages. Maybe
 this is overkill but, in my case it made this error go away.

 sudo aptitude install boost-build libboost-all-dev

 --Akbar

 On Mon, Dec 6, 2010 at 9:06 PM, majum...@cse.unl.edu wrote:

 Output of uname -a:
 Linux Ubuntu10VM 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC
 2010 i686 GNU/Linux
 Output of cat /etc/issue:
 Ubuntu 10.04.1 LTS \n \l



  Can you send the config.log file from your build directory, as well as
 the
  output from uname -a and cat /etc/issue ?
 
  -- Murphy
 
  On Dec 6, 2010, at 6:51 AM, Abhishek Majumdar wrote:
 
  I still got that configure : error: could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/6/2010 8:43 AM, Murphy McCauley wrote:
  The information on that page is long out of date.  The noxrepo wiki
  (http://noxrepo.org/noxwiki) is much more in line with reality.  The
  packages listed on that page are for Debian, and the NOX it has you
  fetch is no longer 0.6.0.
 
  Please try the following (copy/pasted from the noxrepo wiki), and then
  re-run ../configure:
 
  sudo apt-get install autoconf automake g++ libtool swig make git-core
  libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev
  python-twisted python-simplejson python-dev
 
 
  -- Murphy
 
  On Dec 6, 2010, at 6:36 AM, majum...@cse.unl.edu wrote:
 
  BTW I'm using the tutorial given at
 
 http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#4_Controller_Setup
 
  So I'm using NOX 0.6
 
  Thanks
  Abhishek
 
  Can you please post the results of running apt-get install swig
 and
  also
  the results of running ../configure ?
 
  Also, which version of NOX are you using?
 
  -- Murphy
 
  On Dec 5, 2010, at 11:44 PM, Abhishek Majumdar wrote:
 
  Its Linux Ubuntu10Vm 2.6.32-25-generic. I separately installed
  everything and in /nox/build when i do ../configure it recognizes
  and
  then gives configure: error: Could not link against !
 
  Thanks
  Abhishek Majumdar
 
 
  On 12/5/2010 10:35 PM, kk yap wrote:
  Hi Abhishek,
 
  Let's see... Try make install and ldconfig?
 
  Jokes aside, please let us know your OS, distro, etc. for anyone
 to
  give advice.  It works perfectly on Ubuntu (Lucid Lynx) for me.
  In
  fact, we have a pseudo-package that installs the requisites using
  apt-get.
 
  Regards
  KK
 
  On 5 December 2010 20:24, Abhishek Majumdarmajum...@cse.unl.edu
  wrote:
  When I try to install the pre-requisites, it says swig package
  cannot
  be
  found. I separately installed libboost, it can now detect, but
  cannot
  link i
  guess. please help ASAP.
 
  --
  Thanks
  Abhishek Majumdar
 
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
  ___
  nox-dev mailing list
  nox-dev@noxrepo.org
  http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
 
 

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





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