Hi Yiannis, Yes. I do install the flow after the packet in.
However, i check for the reason (ofp_packet_in_reason) for packet in (ofp_packet_in). if the reason is OFPR_ACTION then I do not install the flow. if the reason is No match, then I install the rule with 2 actions. One to forward it to the destination and other to send it to the controller. I find that ofdatapath is crashing in lib/ofbuf.c. I can send the ofdatapath log as well as pcap capture file if required. Is multiple actions not supported in ofdatapath ? Thanks a lot for help. Regards, Vishal On Fri, May 6, 2011 at 7:31 PM, Yiannis Yiakoumis <[email protected]>wrote: > (dropping nox-dev as this sounds cloer to an openflow related issue) > > Hi Vishal, > > Do you install the flow after a packet-in request? If so, make sure that > you install one only when a packet-in is due to no-match-found, otherwise > you'll end with a loop between the controller and the switch. > > Regards, > Yiannis > > On Fri, May 6, 2011 at 3:23 PM, Vishal <[email protected]> wrote: > >> Hello Murphy, >> >> I changed max_len to 128 for the action -> send to >> openflow.OFPP_CONTROLLER and tried again. >> >> what i observe is : The switch sends a Port Status Message >> (ofp_port_status) with OFPPR_MODIFY with reason field set as "Some >> attribute of the port has changed". >> >> The Physical Port Header field shows Port #: Local (local openflow "port") >> and Port Name : tap1. >> >> After this message is received the connection between controller and >> switch is down. >> >> I suspect this change in port status happens because the controller sends >> -> off_action with OFPAT_OUTPUT --> with output port to Controller. >> >> This is how i started the ofdatapths-> *ofdatapath >> punix:/var/run/dp0.sock -i eth0,eth2 --local-port=tap:tap1* >> >> **Is this a bug with openflow datapath or I am doing something wrong ? >> >> I would really appreciate any help in debugging this and making it work. >> >> Thanks a lot, >> >> Regards, >> Vishal >> >> On Thu, May 5, 2011 at 8:31 PM, Murphy McCauley <[email protected]> wrote: >> >>> This looks fine to me on quick glance. Even if it wasn't, I'd say it >>> shouldn't >>> crash ofdatapath. You might want to bring it up on one of the OpenFlow >>> mailing lists like openflow-discuss (or maybe openflow-support now?). >>> >>> -- Murphy >>> >>> On Thursday, May 05, 2011 03:13:00 PM Vishal wrote: >>> > Hi, >>> > >>> > I want to duplicate a particular data flow to the controller. >>> > >>> > My set up includes nox based controller and userspace openflow switches >>> > (ofdatapath and ofprotocol) running on ubuntu. >>> > >>> > In pyswitch.py, I set up the following 'action': >>> > >>> > actions = [[openflow.OFPAT_OUTPUT, [0, prt[0]]], >>> *[openflow.OFPAT_OUTPUT, >>> > [0, openflow.OFPP_CONTROLLER]]*] >>> > install_datapath_flow(dpid, flow, CACHE_TIMEOUT, >>> > openflow.OFP_FLOW_PERMANENT, >>> > actions, bufid, openflow.OFP_DEFAULT_PRIORITY, inport, buf) >>> > >>> > It seems this is not working and causes the ofdatapath process to >>> crash. >>> > >>> > Is the above way correct way to apply multiple forwarding action for a >>> > matching flow? >>> > >>> > Does userspace openflow ofdatapath does not support multiple actions or >>> > action involving sending the flow to the controller. >>> > >>> > Thanks a lot for help, >>> > >>> > Regards, >>> > Vishal >>> >> >> >> _______________________________________________ >> openflow-discuss mailing list >> [email protected] >> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss >> >> >
_______________________________________________ openflow-discuss mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
