[nox-dev] Rewrite MAC Address OpenFlow

2011-05-27 Thread alexander scaranti
Hi,

I'm not able to change the MAC address of an HTTP packet OpenFlow
follows the code I'm using to "try" to change, but it is coming out in
error:
actions = [openflow.OFPAT_SET_DL_DST, "00:00:00:00:00:02"]
self.install_datapath_flow (dpid, flow, 5, 0, actions, bufid,
openflow.OFP_DEFAULT_PRIORITY, inport, packet)

I am developing a python load balancer. What am I doing wrong?

Thanks,

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


[nox-dev] openvswitch controller communication

2011-05-27 Thread Avinash Lakshman
Hi All

May not be the right forum but I would sincerely appreciate a pointer. How
does the openvswitch communicate with a controller? What marshaling
technique is used given that the controller can be implemented in any
language? Where can I read about this?

Thanks in advance
Avinash
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Bob Lantz
I agree that it's probably not a NOX problem. I'm not sure mininet will help 
directly either, though our VM should mostly work out of the box.

I would suggest making absolutely sure that your switches are starting and 
loading correctly.

On May 27, 2011, at 12:23 PM, Murphy McCauley wrote:

> I forgot to mention that I think OpenFlow VMS is no longer really supported, 
> with the idea being that mininet supercedes it.  Maybe KK will chime in here. 
> :)
> 
> It seems like maybe you have a problem with the switches/VMs and not really a 
> NOX issue.  You could try putting a print statement in pyswitch's packet_in 
> handler to see if it's even getting any packets.
> 
> -- Murphy
> 
> On Friday, May 27, 2011 11:56:13 AM Daniel Philip wrote:
>> I tried but still facing the same error. Host Unreachable on Host 1 screen.
>> Also, I notice the following error message in all the screens (Of1, Of2,
>> Host 1, Host 2)
>> 
>> modprobe: FATAL: Could not load /lib/modules/2.6.27-rcl/modules.dep: No
>> such file or directory
>> 
>> Could you please clarify if this is what is causing the problem?
>> 
>> Thanks,
>> Daniel
>> 
>> On Fri, May 27, 2011 at 8:33 PM, Murphy McCauley  wrote:
>>> If your topology has no loops, try "nox_core -v -v -i ptcp:6633
>>> pyswitch".
>>> 
>>> Also, if you're not using the destiny branch, you might try that...
>>> 
>>> -- Murphy
>>> 
>>> On Friday, May 27, 2011 11:06:55 AM Daniel Philip wrote:
 Hi,
 
 As per the manual:
 
 $ nox_core -i ptcp:6633 routing
 
 Thanks,
 Daniel
 
 On Fri, May 27, 2011 at 8:03 PM, Murphy McCauley  wrote:
> What is the commandline you're using to run NOX?
> 
> -- Murphy
> 
> On Friday, May 27, 2011 10:48:41 AM Daniel Philip wrote:
>> Hi,
>> 
>> I tried to set up the example network as in OpenFlowVMS description
>> page.
> 
> I
> 
>> also installed and could run successfully NOX controller as well as
>> I
> 
> could
> 
>> run the vms-start.py.
>> the screen for Of1, Of2, Host 1, Host 2 are successful. But, the
>> ping failed. Host unreachable from host1 to host2 or vice versa.
>> 
>> Could you please advice?
>> 
>> Thanks,
>> Daniel
> ___
> 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] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Daniel Philip
OK. Thank you. I will try that too. In the meanwhile, I am also going to try
out Mininet.

Thanks again,
Daniel

On Fri, May 27, 2011 at 9:23 PM, Murphy McCauley  wrote:

> I forgot to mention that I think OpenFlow VMS is no longer really
> supported,
> with the idea being that mininet supercedes it.  Maybe KK will chime in
> here.
> :)
>
> It seems like maybe you have a problem with the switches/VMs and not really
> a
> NOX issue.  You could try putting a print statement in pyswitch's packet_in
> handler to see if it's even getting any packets.
>
> -- Murphy
>
> On Friday, May 27, 2011 11:56:13 AM Daniel Philip wrote:
> > I tried but still facing the same error. Host Unreachable on Host 1
> screen.
> > Also, I notice the following error message in all the screens (Of1, Of2,
> > Host 1, Host 2)
> >
> > modprobe: FATAL: Could not load /lib/modules/2.6.27-rcl/modules.dep: No
> > such file or directory
> >
> > Could you please clarify if this is what is causing the problem?
> >
> > Thanks,
> > Daniel
> >
> > On Fri, May 27, 2011 at 8:33 PM, Murphy McCauley  wrote:
> > > If your topology has no loops, try "nox_core -v -v -i ptcp:6633
> > > pyswitch".
> > >
> > > Also, if you're not using the destiny branch, you might try that...
> > >
> > > -- Murphy
> > >
> > > On Friday, May 27, 2011 11:06:55 AM Daniel Philip wrote:
> > > > Hi,
> > > >
> > > > As per the manual:
> > > >
> > > > $ nox_core -i ptcp:6633 routing
> > > >
> > > > Thanks,
> > > > Daniel
> > > >
> > > > On Fri, May 27, 2011 at 8:03 PM, Murphy McCauley 
> wrote:
> > > > > What is the commandline you're using to run NOX?
> > > > >
> > > > > -- Murphy
> > > > >
> > > > > On Friday, May 27, 2011 10:48:41 AM Daniel Philip wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I tried to set up the example network as in OpenFlowVMS
> description
> > > > > > page.
> > > > >
> > > > > I
> > > > >
> > > > > > also installed and could run successfully NOX controller as well
> as
> > > > > > I
> > > > >
> > > > > could
> > > > >
> > > > > > run the vms-start.py.
> > > > > > the screen for Of1, Of2, Host 1, Host 2 are successful. But, the
> > > > > > ping failed. Host unreachable from host1 to host2 or vice versa.
> > > > > >
> > > > > > Could you please advice?
> > > > > >
> > > > > > Thanks,
> > > > > > Daniel
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Unable to run components under 'netapps'

2011-05-27 Thread Murphy McCauley
Did you run the boot.sh script specifying only core apps?

Perhaps even more importantly, it seems like you're using a very old version 
of NOX.  Unless your switches don't support OpenFlow 1.0 or you have some 
other reason not to do so, I would suggest you start by upgrading to NOX 
destiny.

-- Murphy

On Friday, May 27, 2011 12:18:42 PM andrea simeoni wrote:
> Hi guys,
> 
> I have successfully installed a Virtual Machine containing NOX and Mininet.
> Following the walkthrough  I was able to transform an HUB to a learning
> switch.
> 
> Moreover I premit that I've well understood how components are linked by
> mean of "meta.xml" files,
> 
> Now I'm trying to use the "sample_routing" component present in
> "noxcore/src/nox/netapps.."
> But when I issue the command
> 
> 
> ./nox_core -v -i ptcp:6633 sample_routing
> 
> I get the following error:
> 
> 00017|nox|ERR:Application 'sample_routing' description not found.
> 
> I'm ONLY able to launch components in the 'coreapps' directory
> Notice that in my installation I can't find two directories
> 
> noxcore/build/src/nox/netapps
> noxcore/build/src/nox/webapps
> 
> while it's only present
> 
> noxcore/build/src/nox/coreapps
> 
> moreover the following three directories exist
> 
> noxcore/src/nox/netapps
> noxcore/src/nox/webapps
> noxcore/src/nox/coreapps
> 
> Maybe that is the problem?
> 
> Could someone help me?
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Murphy McCauley
I forgot to mention that I think OpenFlow VMS is no longer really supported, 
with the idea being that mininet supercedes it.  Maybe KK will chime in here. 
:)

It seems like maybe you have a problem with the switches/VMs and not really a 
NOX issue.  You could try putting a print statement in pyswitch's packet_in 
handler to see if it's even getting any packets.

-- Murphy

On Friday, May 27, 2011 11:56:13 AM Daniel Philip wrote:
> I tried but still facing the same error. Host Unreachable on Host 1 screen.
> Also, I notice the following error message in all the screens (Of1, Of2,
> Host 1, Host 2)
> 
> modprobe: FATAL: Could not load /lib/modules/2.6.27-rcl/modules.dep: No
> such file or directory
> 
> Could you please clarify if this is what is causing the problem?
> 
> Thanks,
> Daniel
> 
> On Fri, May 27, 2011 at 8:33 PM, Murphy McCauley  wrote:
> > If your topology has no loops, try "nox_core -v -v -i ptcp:6633
> > pyswitch".
> > 
> > Also, if you're not using the destiny branch, you might try that...
> > 
> > -- Murphy
> > 
> > On Friday, May 27, 2011 11:06:55 AM Daniel Philip wrote:
> > > Hi,
> > > 
> > > As per the manual:
> > > 
> > > $ nox_core -i ptcp:6633 routing
> > > 
> > > Thanks,
> > > Daniel
> > > 
> > > On Fri, May 27, 2011 at 8:03 PM, Murphy McCauley  wrote:
> > > > What is the commandline you're using to run NOX?
> > > > 
> > > > -- Murphy
> > > > 
> > > > On Friday, May 27, 2011 10:48:41 AM Daniel Philip wrote:
> > > > > Hi,
> > > > > 
> > > > > I tried to set up the example network as in OpenFlowVMS description
> > > > > page.
> > > > 
> > > > I
> > > > 
> > > > > also installed and could run successfully NOX controller as well as
> > > > > I
> > > > 
> > > > could
> > > > 
> > > > > run the vms-start.py.
> > > > > the screen for Of1, Of2, Host 1, Host 2 are successful. But, the
> > > > > ping failed. Host unreachable from host1 to host2 or vice versa.
> > > > > 
> > > > > Could you please advice?
> > > > > 
> > > > > Thanks,
> > > > > Daniel
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] Unable to run components under 'netapps'

2011-05-27 Thread andrea simeoni
Hi guys,

I have successfully installed a Virtual Machine containing NOX and Mininet.
Following the walkthrough  I was able to transform an HUB to a learning
switch.

Moreover I premit that I've well understood how components are linked by
mean of "meta.xml" files,

Now I'm trying to use the "sample_routing" component present in
"noxcore/src/nox/netapps.."
But when I issue the command


./nox_core -v -i ptcp:6633 sample_routing

I get the following error:

00017|nox|ERR:Application 'sample_routing' description not found.

I'm ONLY able to launch components in the 'coreapps' directory
Notice that in my installation I can't find two directories

noxcore/build/src/nox/netapps
noxcore/build/src/nox/webapps

while it's only present

noxcore/build/src/nox/coreapps

moreover the following three directories exist

noxcore/src/nox/netapps
noxcore/src/nox/webapps
noxcore/src/nox/coreapps

Maybe that is the problem?

Could someone help me?
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Daniel Philip
I tried but still facing the same error. Host Unreachable on Host 1 screen.
Also, I notice the following error message in all the screens (Of1, Of2,
Host 1, Host 2)

modprobe: FATAL: Could not load /lib/modules/2.6.27-rcl/modules.dep: No such
file or directory

Could you please clarify if this is what is causing the problem?

Thanks,
Daniel



On Fri, May 27, 2011 at 8:33 PM, Murphy McCauley  wrote:

> If your topology has no loops, try "nox_core -v -v -i ptcp:6633 pyswitch".
>
> Also, if you're not using the destiny branch, you might try that...
>
> -- Murphy
>
> On Friday, May 27, 2011 11:06:55 AM Daniel Philip wrote:
> > Hi,
> >
> > As per the manual:
> >
> > $ nox_core -i ptcp:6633 routing
> >
> > Thanks,
> > Daniel
> >
> > On Fri, May 27, 2011 at 8:03 PM, Murphy McCauley  wrote:
> > > What is the commandline you're using to run NOX?
> > >
> > > -- Murphy
> > >
> > > On Friday, May 27, 2011 10:48:41 AM Daniel Philip wrote:
> > > > Hi,
> > > >
> > > > I tried to set up the example network as in OpenFlowVMS description
> > > > page.
> > >
> > > I
> > >
> > > > also installed and could run successfully NOX controller as well as I
> > >
> > > could
> > >
> > > > run the vms-start.py.
> > > > the screen for Of1, Of2, Host 1, Host 2 are successful. But, the ping
> > > > failed. Host unreachable from host1 to host2 or vice versa.
> > > >
> > > > Could you please advice?
> > > >
> > > > Thanks,
> > > > Daniel
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] send_openflow_packet interface with buffer and ofp_action_header

2011-05-27 Thread Murphy McCauley
send_openflow_packet()'s API is kind of broken due to changes made since 
earlier versions of OpenFlow, and is very, very likely to be removed 
altogether in the next major release of NOX.  There are other ways to do the 
same thing.  If you look at the source of send_openflow_packet(), you'll see 
that it just calls some other functions to do all the work, which should give 
you an idea of other ways you might do it, but I don't remember a super easy 
way off the top of my head.

BUT, I think you can basically just take a buffer full of actions, cast it to 
an array of ofp_action_header, and it'll work fine with send_openflow_packet() 
(though it's pretty ugly).  To get a buffer full of actions from an 
ofp_action_list, use myactionlist.mem_size() to allocate a buffer of the 
correct size (use this number for the actions_len argument to 
send_openflow_packet() too), and then use myactionlist.pack(mybuffer) to fill 
the 
buffer with the actions.

For help creating a Buffer, look in include/buffer.hh.  There are at least a 
couple subclasses, but Array_buffer is probably a safe choice.  Should be as 
easy as new Array_buffer(your_data, your_data_length).

-- Murphy

On Thursday, May 26, 2011 02:11:12 PM Gopinath Palani wrote:
> Hello ,
> 
> Please let me know how to use
> send_openflow_packet(const datapathid&, const Buffer& packet, const
> ofp_action_header actions[],unit16_t actions_len,unit16_t in_port,bool
> block); my requirement is to create udp packet and send it to a particular
> tp_dst and port, It will be helpful if someone guide me in
> creating a Buffer,
> and I'm able to create ofp_action_list with actions for OFPAT_SET_TP_DST
> and OFPAT_OUTPUT but don't know how to convert ofp_action_list to
> ofp_action_header type.
> 
> Thanks
> Gopinath
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Murphy McCauley
If your topology has no loops, try "nox_core -v -v -i ptcp:6633 pyswitch".

Also, if you're not using the destiny branch, you might try that...

-- Murphy

On Friday, May 27, 2011 11:06:55 AM Daniel Philip wrote:
> Hi,
> 
> As per the manual:
> 
> $ nox_core -i ptcp:6633 routing
> 
> Thanks,
> Daniel
> 
> On Fri, May 27, 2011 at 8:03 PM, Murphy McCauley  wrote:
> > What is the commandline you're using to run NOX?
> > 
> > -- Murphy
> > 
> > On Friday, May 27, 2011 10:48:41 AM Daniel Philip wrote:
> > > Hi,
> > > 
> > > I tried to set up the example network as in OpenFlowVMS description
> > > page.
> > 
> > I
> > 
> > > also installed and could run successfully NOX controller as well as I
> > 
> > could
> > 
> > > run the vms-start.py.
> > > the screen for Of1, Of2, Host 1, Host 2 are successful. But, the ping
> > > failed. Host unreachable from host1 to host2 or vice versa.
> > > 
> > > Could you please advice?
> > > 
> > > Thanks,
> > > Daniel
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Daniel Philip
Hi,

As per the manual:

$ nox_core -i ptcp:6633 routing

Thanks,
Daniel

On Fri, May 27, 2011 at 8:03 PM, Murphy McCauley  wrote:

> What is the commandline you're using to run NOX?
>
> -- Murphy
>
> On Friday, May 27, 2011 10:48:41 AM Daniel Philip wrote:
> > Hi,
> >
> > I tried to set up the example network as in OpenFlowVMS description page.
> I
> > also installed and could run successfully NOX controller as well as I
> could
> > run the vms-start.py.
> > the screen for Of1, Of2, Host 1, Host 2 are successful. But, the ping
> > failed. Host unreachable from host1 to host2 or vice versa.
> >
> > Could you please advice?
> >
> > Thanks,
> > Daniel
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Murphy McCauley
What is the commandline you're using to run NOX?

-- Murphy

On Friday, May 27, 2011 10:48:41 AM Daniel Philip wrote:
> Hi,
> 
> I tried to set up the example network as in OpenFlowVMS description page. I
> also installed and could run successfully NOX controller as well as I could
> run the vms-start.py.
> the screen for Of1, Of2, Host 1, Host 2 are successful. But, the ping
> failed. Host unreachable from host1 to host2 or vice versa.
> 
> Could you please advice?
> 
> Thanks,
> Daniel
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Error message while running the nox controller

2011-05-27 Thread Murphy McCauley
I don't think I'm aware of any bugs that would cause this in stock NOX, but 
can you retry with the destiny branch?  If it continues to happen with the 
destiny branch, can you please use tcpdump or wireshark to send a trace of the 
connection between NOX at the switch?

-- Murphy

On Friday, May 27, 2011 10:36:10 AM ahmad numan wrote:
> ./nox_core -V gives output
> 
> "*NOX 0.9.0(zaku)~full~beta (nox_core)*"
> 
> I download using git*
> *
> 
> *git clone git://noxrepo.org/nox*
> 
> 
> Ahmed bilal
> 
> On Fri, May 27, 2011 at 9:12 PM, Murphy McCauley  wrote:
> > Which version of NOX is this?  Has it been modified at all?
> > 
> > -- Murphy
> > 
> > On Friday, May 27, 2011 05:58:16 AM ahmad numan wrote:
> > > Hello
> > > I configured a linux powered machine to run as OpenFlow switch (OVS)
> > > and connect it with out-of-band NOX controller (NOX controller was
> > 
> > initialized
> > 
> > > by following instruction "*nox_core -i ptcp:6633 routing*"). When I
> > > connected the switch with controller i got following error message
> > > 
> > > *openflow-event|ERR:received Openflow error packet from
> > 
> > dpid=002320ba0007:
> > > type=1, code=7, 24 bytes of data*
> > > 
> > > and the "*ovs-openflowd*" terminal showed following error*
> > > 
> > > "attempt to reuse the buffer*"
> > > 
> > > while discussing on ovs-discuss mailing list they suggest that "Send a
> > > given buffer_id only in a single OpenFlow request". Guide me how can I
> > > solve this problem
> > > 
> > > Thanks
> > > Ahmed Bilal
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] Unable to Ping (OpenflowVMS)

2011-05-27 Thread Daniel Philip
Hi,

I tried to set up the example network as in OpenFlowVMS description page. I
also installed and could run successfully NOX controller as well as I could
run the vms-start.py.
the screen for Of1, Of2, Host 1, Host 2 are successful. But, the ping
failed. Host unreachable from host1 to host2 or vice versa.

Could you please advice?

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


Re: [nox-dev] Error message while running the nox controller

2011-05-27 Thread ahmad numan
./nox_core -V gives output

"*NOX 0.9.0(zaku)~full~beta (nox_core)*"

I download using git*
*

*git clone git://noxrepo.org/nox*


Ahmed bilal

On Fri, May 27, 2011 at 9:12 PM, Murphy McCauley  wrote:

> Which version of NOX is this?  Has it been modified at all?
>
> -- Murphy
>
> On Friday, May 27, 2011 05:58:16 AM ahmad numan wrote:
> > Hello
> > I configured a linux powered machine to run as OpenFlow switch (OVS) and
> > connect it with out-of-band NOX controller (NOX controller was
> initialized
> > by following instruction "*nox_core -i ptcp:6633 routing*"). When I
> > connected the switch with controller i got following error message
> >
> > *openflow-event|ERR:received Openflow error packet from
> dpid=002320ba0007:
> > type=1, code=7, 24 bytes of data*
> >
> > and the "*ovs-openflowd*" terminal showed following error*
> >
> > "attempt to reuse the buffer*"
> >
> > while discussing on ovs-discuss mailing list they suggest that "Send a
> > given buffer_id only in a single OpenFlow request". Guide me how can I
> > solve this problem
> >
> > Thanks
> > Ahmed Bilal
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Error message while running the nox controller

2011-05-27 Thread Murphy McCauley
Which version of NOX is this?  Has it been modified at all?

-- Murphy

On Friday, May 27, 2011 05:58:16 AM ahmad numan wrote:
> Hello
> I configured a linux powered machine to run as OpenFlow switch (OVS) and
> connect it with out-of-band NOX controller (NOX controller was initialized
> by following instruction "*nox_core -i ptcp:6633 routing*"). When I
> connected the switch with controller i got following error message
> 
> *openflow-event|ERR:received Openflow error packet from dpid=002320ba0007:
> type=1, code=7, 24 bytes of data*
> 
> and the "*ovs-openflowd*" terminal showed following error*
> 
> "attempt to reuse the buffer*"
> 
> while discussing on ovs-discuss mailing list they suggest that "Send a
> given buffer_id only in a single OpenFlow request". Guide me how can I
> solve this problem
> 
> Thanks
> Ahmed Bilal
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] Error message while running the nox controller

2011-05-27 Thread ahmad numan
Hello
I configured a linux powered machine to run as OpenFlow switch (OVS) and
connect it with out-of-band NOX controller (NOX controller was initialized
by following instruction "*nox_core -i ptcp:6633 routing*"). When I
connected the switch with controller i got following error message

*openflow-event|ERR:received Openflow error packet from dpid=002320ba0007:
type=1, code=7, 24 bytes of data*

and the "*ovs-openflowd*" terminal showed following error*

"attempt to reuse the buffer*"

while discussing on ovs-discuss mailing list they suggest that "Send a given
buffer_id only in a single OpenFlow request". Guide me how can I solve this
problem

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