Hi Shinpei Muraoka, Thank you for your reply, Let me at first to say thank you very much for your notes. Now I will stop to trace the source code , I will follow your advice and run Ryu app and mininet at first.
Thank you very much, Best Regards Munther Numan Master Student Faculty of Engineering University Putra Malaysia -----Original Message----- From: Shinpei Muraoka [mailto:[email protected]] Sent: Tuesday, November 15, 2016 4:37 PM To: [email protected]; [email protected] Subject: Re: [Ryu-devel] Simple_Switch_App-analysis Hi, > my notes : > > is the ev content multiple thing ? so we need only the message inside > ev ? therefor we save the message inside ev to msg ? > The ev is data of only one message. I think that using the msg is due to easiness of understanding of the source code. Using ev.msg makes the source code redundant. > msg = I think it is the message exchange between open flow switch and > controller. > It is correct. The msg is data for the message exchange between open flow switch and controller. > > > Is the msg content multiple thing ? so we need only the datapath > inside msg ? therefor we save the datapath inside msg to datapath ? We need only the datapath inside msg. I think that using the datapath is due to easiness of understanding of the source code. Using ev.msg.datapath makes the source code redundant. > > datapath = I think it is the open flow switch id that send the > message > The datapath is class to describe an OpenFlow switch connected to controller. Please refer to the following. http://ryu.readthedocs.io/en/latest/ryu_app_api.html#ryu-controller-controller-datapath > > > Is the datapath content multiple thing ? so we need only the ofproto > inside datapath ? > We need only the ofproto inside datapath. > therefor we save the ofprot inside datapath to ofproto ? > Ofproto = I think it is the open flow protocol type such as open flow > 1.0 or open flow 1.3 The ofproto is a module which exports OpenFlow definitions. For example, in the case of OpenFlow1.3, it refers to ryu/ofproto/ofproto_v1_3.py. > > I do not what mean by parser ? and what is function , if know please > told me . > > Parser = ? The parser is a module which exports OpenFlow wire message encoder and decoder. For example, in the case of OpenFlow1.3, it refers to ryu/ofproto/ofproto_v1_3_parser.py. Best of luck. Thanks, On 2016年11月14日 20:21, Munther Numan wrote: > Dears Colleagues, > > > > After am reading the simple_switch_13.py application , I have some > notes and I have some miss understanding point , please if you can > help me to get full idea about what happen in this application . > > In the application: > > There are two type of message the application deal with it : > > 1- Switch features message > > 2- Packet in message > > By the way the event is corresponding with the message. > > > > The switch features message is first message after handshake occur > between controller and OpenFlow switch. > > The function used in switch feature message is : > > def switch_features_handler(self,ev) > > msg = ev.msg > > datapath = msg.datapath > > ofproto = datapath.ofprot > > parser = datapath.openflow_parser > > > > my notes : > > is the ev content multiple thing ? so we need only the message inside > ev ? therefor we save the message inside ev to msg ? > > msg = I think it is the message exchange between open flow switch and > controller. > > > > Is the msg content multiple thing ? so we need only the datapath > inside msg ? therefor we save the datapath inside msg to datapath ? > > datapath = I think it is the open flow switch id that send the > message > > > > Is the datapath content multiple thing ? so we need only the ofproto > inside datapath ? therefor we save the ofprot inside datapath to ofproto ? > > Ofproto = I think it is the open flow protocol type such as open flow > 1.0 or open flow 1.3 > > > > I do not what mean by parser ? and what is function , if know please > told me . > > Parser = ? > > > > Am I right? , please told me if am I right or not ? > > Best Regards > > Munther Numan > Master Student > Faculty of Engineering > University Putra Malaysia > > > > > > > > > > ---------------------------------------------------------------------- > -------- Developer Access Program for Intel Xeon Phi Processors Access > to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > > > > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
