[nox-dev] Matching flows on port numbers

2011-09-28 Thread Shrutarshi Basu
Hi,
I'm trying to install a flow that matches on IP as well as port numbers. I'm
using the flow provided by calling extract_flow() on a packet as the
argument to install_datapath_flow() but if I use 'dpctl dump-flows' on a
switch the flow displayed does not have entries for tp_dst or tp_src. Is
there something else I need to be doing in order to get matching on port
numbers?
Thanks
Basu

--
Shrutarshi Basu
Basus.me
The ByteBaker http://bytebaker.com -- because Computer Science is not
about computers
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Multiple Nox with spanning_tree Running the same in the Machine

2011-09-28 Thread Kyriakos Zarifis
It looks like either the socket was left open from an ungraceful shutdown
last time you ran NOX, or another application happens to be using the port
that jsonmessenger is trying to use.  If I recall, that would be port 2703.

If you run lsof -i | grep 2703 you should be able to see which application
is using that port. If it is a zombie NOX (or some other program you don't
care about) you can kill it and try rerunning.

Alternatively (if a program you care about is using 2703), you can try to
make jsonmessenger use another different port.
I think the command for that would be jsonmessenger=tcpport=portnumber

On Wed, Sep 28, 2011 at 1:33 PM, Rafael Lopes rafaell...@gmail.com wrote:

 When i try to run two nox with the spanning_tree i get this error below.

 First: Ok
 openflow@openflowvm:~/nox/build/src$ ./nox_core -v -i ptcp:6634 switch
 spanning_tree routing
 1|nox|INFO:Starting nox_core
 (/home/openflow/nox/build/src/.libs/lt-nox_core)
 2|nox|INFO:nox bootstrap complete

 Second: Error
 openflow@openflowvm:~/nox/build/src$ ./nox_core -v -i ptcp:6635 switch
 spanning_tree routing
 1|nox|INFO:Starting nox_core
 (/home/openflow/nox/build/src/.libs/lt-nox_core)
 2|nox|ERR:Cannot change the state of 'spanning_tree' to INSTALLED:
 'spanning_tree' has an unmet dependency:
'jsonmessenger' ran into an error:
bind: Address already in use

 any idea to solve it ?

 --
 Rafael Lopes Gomes:
  - Msc. Candidate in Computer Science at University of Campinas (UNICAMP)
  - Member of LRC/UNICAMP and GERCOM/UFPA
  - http://www.lrc.ic.unicamp.br/~rafaellgom
 ___
 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] Multiple Nox with spanning_tree Running the same in the Machine

2011-09-28 Thread Murphy McCauley
I think in this case, the other program is another instance of NOX being run 
simultaneously. :)  So the last suggestion applies.  The commandline to start 
the second instance should be something like:

./nox_core -v -i ptcp:6635 jsonmessenger=tcpport=2704 spanning_tree routing

-- Murphy

On Sep 28, 2011, at 2:08 PM, Kyriakos Zarifis wrote:

 It looks like either the socket was left open from an ungraceful shutdown 
 last time you ran NOX, or another application happens to be using the port 
 that jsonmessenger is trying to use.  If I recall, that would be port 2703.
 
 If you run lsof -i | grep 2703 you should be able to see which application 
 is using that port. If it is a zombie NOX (or some other program you don't 
 care about) you can kill it and try rerunning.
 
 Alternatively (if a program you care about is using 2703), you can try to 
 make jsonmessenger use another different port.
 I think the command for that would be jsonmessenger=tcpport=portnumber
 
 On Wed, Sep 28, 2011 at 1:33 PM, Rafael Lopes rafaell...@gmail.com wrote:
 When i try to run two nox with the spanning_tree i get this error below.
 
 First: Ok
 openflow@openflowvm:~/nox/build/src$ ./nox_core -v -i ptcp:6634 switch
 spanning_tree routing
 1|nox|INFO:Starting nox_core
 (/home/openflow/nox/build/src/.libs/lt-nox_core)
 2|nox|INFO:nox bootstrap complete
 
 Second: Error
 openflow@openflowvm:~/nox/build/src$ ./nox_core -v -i ptcp:6635 switch
 spanning_tree routing
 1|nox|INFO:Starting nox_core
 (/home/openflow/nox/build/src/.libs/lt-nox_core)
 2|nox|ERR:Cannot change the state of 'spanning_tree' to INSTALLED:
 'spanning_tree' has an unmet dependency:
'jsonmessenger' ran into an error:
bind: Address already in use
 
 any idea to solve it ?
 
 --
 Rafael Lopes Gomes:
  - Msc. Candidate in Computer Science at University of Campinas (UNICAMP)
  - Member of LRC/UNICAMP and GERCOM/UFPA
  - http://www.lrc.ic.unicamp.br/~rafaellgom
 ___
 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] Matching flows on port numbers

2011-09-28 Thread Murphy McCauley
I'd suggest that the first thing you do is examine the traffic from the 
controller to the switch.  Wireshark with the OpenFlow dissector is the easiest 
way to do this.  Take a look at the flow_mod on the wire and see if it looks 
like you think it should (whether tp_src and tp_dst are set right, etc.).

-- Murphy

On Sep 28, 2011, at 8:13 AM, Shrutarshi Basu wrote:

 Hi,
 I'm trying to install a flow that matches on IP as well as port numbers. I'm 
 using the flow provided by calling extract_flow() on a packet as the argument 
 to install_datapath_flow() but if I use 'dpctl dump-flows' on a switch the 
 flow displayed does not have entries for tp_dst or tp_src. Is there something 
 else I need to be doing in order to get matching on port numbers?
 Thanks
 Basu
 
 --
 Shrutarshi Basu
 Basus.me
 The ByteBaker -- because Computer Science is not about computers
 
 ___
 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