Re: [Ryu-devel] Modify simple switch app to show flow stats - IP TCP/UDP Protocols

2017-07-31 Thread Boyan Mladenov
Thank you very much. On Mon, Jul 31, 2017 at 2:12 AM, Fujimoto Satoshi < satoshi.fujimo...@gmail.com> wrote: > Hi, Boyan > > get_protocol() returns None if the argument doesn't match to the packet. > So, I guess Ryu might catch a packet other than TCP or UDP, such as SCTP. > > If you doesn't need

Re: [Ryu-devel] Modify simple switch app to show flow stats - IP TCP/UDP Protocols

2017-07-30 Thread Fujimoto Satoshi
Hi, Boyan get_protocol() returns None if the argument doesn't match to the packet. So, I guess Ryu might catch a packet other than TCP or UDP, such as SCTP. If you doesn't need to make a flow for other than TCP or UDP, the code should be like this: if pkt.get_protocol(tcp.tcp): l4

Re: [Ryu-devel] Modify simple switch app to show flow stats - IP TCP/UDP Protocols

2017-07-28 Thread Boyan Mladenov
Hi, Fujimoto Satoshi Thank you very much for the attachment, it is really helpful. When i run the application i get the following error and i just can't understand why, because everything seems right. Any suggestions? File "/home/boyan/.local/lib/python2.7/site-packages/ryu/base/app_manager.py

Re: [Ryu-devel] Modify simple switch app to show flow stats - IP TCP/UDP Protocols

2017-07-26 Thread Fujimoto Satoshi
Hi, Boyan Sorry for delaying. You can use get_protocol() to extract informations from packet. For example, get_protocol(tcp.tcp) will get a TCP instance if the packet is a TCP protocol packet. And the TCP instance has sport/dport fields, so you can get informations to build your flows: http://

[Ryu-devel] Modify simple switch app to show flow stats - IP TCP/UDP Protocols

2017-07-24 Thread Boyan Mladenov
Dear, all I am trying to modify the simple_switch_13.py so that i can extract and save flow statistics about the IP src/dst TCP/UDP sport/dport. I got familiar with the simple switch and the traffic monitor from where i get the function for continuously showing and the data. Also the functions abo