when controller receive features-reply packets from switches, RYU controller
will set ofproto.OFP_NO_BUFFER in the default flow_mod , which you can see it
at def switch_features_handler(self, ev).
When a switch does not know how to handle a packet, and it will send the packet
to the controller. If you have set the ofproto.OFP_NO_BUFFER property, and
switches will send all bytes of packet.If not, swicth will send the packet to
the controller which length is miss_len. What's more, switch will keep the
packet on the buffer and assign it a buffer_id.
------------------
Li Cheng ????_____________________________________________________
School of Information and Communication Engineering
Beijing University of Posts and Telecommunications
Beijing 100876, PR China
??????????????????????????????????????????
_____________________________________________________
Mobile Phone:
(+86) 151-1698-3550 Beijing
E-mail:
[email protected]
[email protected]
Homepage:
http://www.muzixing.com
------------------ ???????? ------------------
??????: "Padma Jayasankar";<[email protected]>;
????????: 2015??1??21??(??????) ????1:58
??????: "[email protected]"<[email protected]>;
????: [Ryu-devel] Bufferid in messages
Hi,
One basic doubt. Most of the simple_switch apps have this part of code
# install a flow to avoid packet_in next time
if out_port != ofproto.OFPP_FLOOD:
match = parser.OFPMatch(in_port=in_port, eth_dst=dst)
# verify if we have a valid buffer_id, if yes avoid to send both
# flow_mod & packet_out
if msg.buffer_id != ofproto.OFP_NO_BUFFER:
self.add_flow(datapath, 1, match, actions, msg.buffer_id)
return
else:
self.add_flow(datapath, 1, match, actions)
data = None
if msg.buffer_id == ofproto.OFP_NO_BUFFER:
data = msg.data
In this they check msg.bufferid. When will the value of this be
ofproto.OFP_NO_BUFFER:. What is its significance?
If the message has valid bufferid the packetout message is not sent? why is it
so? Please clarify
Thanks and Regards,
Padma V------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel