Hi What if I want to match packet-in and flow-mod without buffering (buffer_id). According to OF 1.5.1 spec, the buffer_id refers to a packet buffered at the switch and sent to the controller by a packet-in message. If no buffered packet is associated with the flow mod, it must be set to OFP_NO_BUFFER.
Spec is not clear for me. If I want to see the whole packet, I set the table-miss entry's max_length to OFP_NO_BUFFER, then switch sends packet-in with buffer-id set to OFP_NO_BUFFER and the controller also sends flow-mods with buffer-id set to OFP_NO_BUFFER. In this case, how can I match packet-in and flow-mod? I think, xid must be used to relate the packet-in and flow-mod. I think, you are assigning a different meaning to buffer-id. - Volkan ________________________________________ From: Jason Kölker [ja...@koelker.net] Sent: Monday, May 16, 2016 7:04 PM To: Ali Volkan Atli Cc: ryu-devel@lists.sourceforge.net Subject: Re: [Ryu-devel] Question about PACKET_IN xid On Mon, May 16, 2016 at 1:20 PM, Ali Volkan Atli <volkan.a...@argela.com.tr> wrote: > Hi > > I'm working with RYU controller and trying to understand why transaction ID > (xid) field in PACKET_IN messages is not parsed in ryu-controller? Why can't > we use packet_in with xid as a request for flow-mod (which will be reply for > packet_in request)? I'M trying to match packet-in and flow-mod messages, is > it possible? Openflow doesn't send an xid with packet_in, it sends a buffer_id: http://flowgrammable.org/sdn/openflow/message-layer/packetin/#tab_ofp_1_3 When you send your flow mod back you pass in the buffer_id from the packet_in to tell the switch what packet this is in reponse to: https://github.com/osrg/ryu/blob/a3c8c591d9e6fe1353f7ba54f56a40f09d301f79/ryu/app/simple_switch_13.py#L51-L64 Happy Hacking! 7-11 ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel