I assume you mean you want to add a flow to a specific table.  This feature is 
not available in OpenFlow 1.0.  So you either need to use a higher version of 
OpenFlow (which POX doesn't support yet and OVS only recently has gained 
experimental support for), or using a Nicira extension.

There are actually two different ways.  I think for both of them (and 
definitely for the second one), you must first enable NXT_FLOW_MOD_TABLE_ID by 
sending an nx_flow_mod_table_id message to a switch.  Once you've done that, 
you can:

1) Use nx_flow_mod. This is the version of flow_mod that uses Nicira Extended 
Match.

2) NXT_FLOW_MOD_TABLE_ID slightly modifies how normal ofp_flow_mods are 
interpreted, making one byte of the command field be the table ID.  There's a 
version of ofp_flow_mod in the nicira module called ofp_flow_mod_table_id which 
adds a table_id field.

-- Murphy

On May 30, 2013, at 10:19 AM, Mayumi Park Campos wrote:

> I just have a question, if I want to add a flow per table I must use de 
> nicira extension? Or there is a way using the other forwarding codes? 
> 
> Thanks :)
> 
> From: rebek_...@hotmail.com
> To: murphy.mccau...@gmail.com
> CC: pox-dev@lists.noxrepo.org
> Subject: RE: [pox-dev] Nicira errors
> Date: Thu, 30 May 2013 13:52:25 -0300
> 
> Thanks for the answers the problem was that I errase a line in the code by 
> mistake 
> 
> Its already working fine
> 
> Sorry for the troubles and thanks again
> 
> 
> Subject: Re: [pox-dev] Nicira errors
> From: murphy.mccau...@gmail.com
> Date: Wed, 29 May 2013 12:47:08 -0700
> CC: pox-dev@lists.noxrepo.org
> To: rebek_...@hotmail.com
> 
> Are you sure you've got the upgraded version running?  Just to make sure so 
> we don't spend time chasing down a dead end, try running this component:
> http://www.noxathome.org/x/Murphy/switch_info.py
> 
> If that does show that you've got the new version running, capture the 
> control traffic using Wireshark/tcpdump or the openflow.debug component 
> (which makes pcap trace files) and post it here.
> 
> -- Murphy
> 
> On May 29, 2013, at 11:17 AM, Mayumi Park Campos wrote:
> 
> Hi, 
> 
> I change de ovs version to de 1.9.0 but I stil get the erro message
> 
> ./pox.py log.level --DEBUG openflow.nicira --convert-packet-in 
> forwarding.l2_nx
> POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.
> INFO:forwarding.l2_nx:Simple NX switch running.
> DEBUG:core:POX 0.1.0 (betta) going up...
> DEBUG:core:Running on CPython (2.7.3/Aug 1 2012 05:16:07)
> DEBUG:core:Platform is 
> Linux-3.2.0-41-generic-pae-i686-with-Ubuntu-12.04-precise
> INFO:core:POX 0.1.0 (betta) is up.
> DEBUG:openflow.of_01:Listening on 0.0.0.0:6633
> INFO:openflow.of_01:[00-50-04-9d-16-db 1] connected
> ERROR:openflow.of_01:[00-50-04-9d-16-db 1] OpenFlow Error:
> [00-50-04-9d-16-db 1] Error: header:
> [00-50-04-9d-16-db 1] Error:   version: 1
> [00-50-04-9d-16-db 1] Error:   type:    1 (OFPT_ERROR)
> [00-50-04-9d-16-db 1] Error:   length:  68
> [00-50-04-9d-16-db 1] Error:   xid:     10
> [00-50-04-9d-16-db 1] Error: type: OFPET_BAD_REQUEST (1)
> [00-50-04-9d-16-db 1] Error: code: OFPBRC_EPERM (5)
> [00-50-04-9d-16-db 1] Error: datalen: 56
> [00-50-04-9d-16-db 1] Error: 0000: 01 04 00 38 00 00 00 0a  00 00 23 20 00 00 
> 00 0d   ...8......# ....
> [00-50-04-9d-16-db 1] Error: 0010: 00 00 00 00 00 00 00 00  fe 00 00 00 00 00 
> 00 01   ................
> [00-50-04-9d-16-db 1] Error: 0020: ff ff ff ff ff ff 00 00  00 00 00 00 00 00 
> 00 00   ................
> [00-50-04-9d-16-db 1] Error: 0030: 00 00 00 08 ff fb 00 00                    
>         ........
> INFO:forwarding.l2_nx:[00-50-04-9d-16-db 1] ready
> 
> 
> The thing that I want to do is to install a flow per table so I'm trying to 
> undestand how does this works
> 
> Tkanks 
> 
> 
> From: rebek_...@hotmail.com
> To: murphy.mccau...@gmail.com
> CC: pox-dev@lists.noxrepo.org
> Subject: RE: [pox-dev] Nicira errors
> Date: Tue, 28 May 2013 16:52:47 -0300
> 
> Thanks Murphy, 
> 
> I'm using the ovs 1.4.6. So I think that would be the problem I'll change to 
> one more recent and see if the problem is fix 
> 
> Thanks so much 
> 
> 
> Subject: Re: [pox-dev] Nicira errors
> From: murphy.mccau...@gmail.com
> Date: Tue, 28 May 2013 12:42:56 -0700
> CC: pox-dev@lists.noxrepo.org
> To: rebek_...@hotmail.com
> 
> Are you using a switch that has the NXT_SET_PACKET_IN_FORMAT and 
> NXT_FLOW_MOD_TABLE_ID Nicira extensions?
> 
> I'm not sure which version of Open vSwitch is the first to support these... 
> maybe 1.8?
> 
> Glancing at the code, I actually don't immediately see where the new 
> packet-in format is actually used.  You could try commenting out the lines 
> which try to turn it on (around 81-83 of l2_nx.py in my local copy).
> 
> (As a sidenote, you're supposed to pass --convert-packet-in to 
> openflow.nicira.  The docs show this, but it's not clear enough -- I'll fix 
> it in carp.  But if you're going to try to disable this feature anyway, it 
> shouldn't matter.)
> 
> -- Murphy
> 
> On May 28, 2013, at 12:23 PM, Mayumi Park Campos wrote:
> 
> Hi all, 
> 
> I try to run pox with this line: 
> 
> ./pox.py log.level --DEBUG openflow.nicira forwarding.l2_nx
> 
> And get this reply on the screen: 
> POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.
> INFO:forwarding.l2_nx:Simple NX switch running.
> DEBUG:core:POX 0.1.0 (betta) going up...
> DEBUG:core:Running on CPython (2.7.3/Aug 1 2012 05:16:07)
> DEBUG:core:Platform is 
> Linux-3.2.0-41-generic-pae-i686-with-Ubuntu-12.04-precise
> INFO:core:POX 0.1.0 (betta) is up.
> DEBUG:openflow.of_01:Listening on 0.0.0.0:6633
> INFO:openflow.of_01:[00-50-04-9d-16-db 1] connected
> ERROR:openflow.of_01:[00-50-04-9d-16-db 1] OpenFlow Error:
> [00-50-04-9d-16-db 1] Error: header:
> [00-50-04-9d-16-db 1] Error:   version: 1
> [00-50-04-9d-16-db 1] Error:   type:    1 (OFPT_ERROR)
> [00-50-04-9d-16-db 1] Error:   length:  32
> [00-50-04-9d-16-db 1] Error:   xid:     6
> [00-50-04-9d-16-db 1] Error: type: OFPET_BAD_REQUEST (1)
> [00-50-04-9d-16-db 1] Error: code: OFPBRC_BAD_SUBTYPE (4)
> [00-50-04-9d-16-db 1] Error: datalen: 20
> [00-50-04-9d-16-db 1] Error: 0000: 01 04 00 14 00 00 00 06  00 00 23 20 00 00 
> 00 10   ..........# ....
> [00-50-04-9d-16-db 1] Error: 0010: 00 00 00 01                                
>         ....
> INFO:forwarding.l2_nx:[00-50-04-9d-16-db 1] ready
> 
> And I lose communication with the hosts
> 
> I don't see where is the problem and don't know how to correct it.
> 
> Thanks in advance 

Reply via email to