Hi, i have tried to contact with them but they did not reply yet. this app is a request load balancing app between 3 servers using round robin strategy. each request must be forwarded to the controller thus each request has its own flow rule. because of limited flow rules in the flow table, i want to forward the packet to the controller to tell the switch which port the packet is forwarded to without adding flows to the switch. -------------------------------------------- On Thu, 11/24/16, Iwase Yusuke <[email protected]> wrote:
Subject: Re: [Ryu-devel] forward packets without flow table modification To: [email protected] Cc: [email protected] Date: Thursday, November 24, 2016, 5:40 AM Hi, The App you attached seems not be written by Ryu-devel team. Sorry, I don't know further... FYI, This App seems to be designed to install flows reactively against Packet-In messages from switches. I guess it is difficult to determine which packet should be forwarded to the registered servers without Packet-In messages and FlowMod messages. Did you try contacting to the authors of this App? Thanks, Iwase On 2016年11月20日 03:49, Mohamed Ibrahem wrote: > hello guys, > how can i modify this code to forward packets directly without use OFPFlowMod and instructions and just use actions only. > https://github.com/whatever4711/ryu-starter-kit/blob/master/stateless_lb.py > i have modified the code but it make no sense, please help me to solve this problem? > my modification is :- > > if self.rewrite_ip_header: > actions = [ofp_parser.OFPActionSetField(eth_dst=selected_server_mac), > ofp_parser.OFPActionSetField(ipv4_dst=selected_server_ip), > ofp_parser.OFPActionOutput(selected_server_outport) ] > else: > actions = [ofp_parser.OFPActionSetField(eth_dst=selected_server_mac), > ofp_parser.OFPActionOutput(selected_server_outport) ] > > out = ofp_parser.OFPPacketOut(datapath=datapath,buffer_id=msg.buffer_id, > in_port=in_port, actions=actions) > > datapath.send_msg(out) > > thanks in advance > > > ------------------------------------------------------------------------------ > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
