Hi,

I mean that how can i measure the instant traffic load of any host that 
connected to OVS?

I know that there is ofp_event.EventOFPPortStatsReply in Ryu documentation, 
but it measures the cumulative load of a port (rx_packets, rx_bytes, 
tx_packets, tx_bytes, …) in a switch that connected to the host. How can i 
use these information to calculate the instant traffic load of a host?

Also, how can I implement master, slave, and equal controllers for a switch 
in Mininet and program them with the Ryu which they control the switch to 
act (for example) like a simple_switch_13?

Thank you,
...................................................
 mehran shetabi
 PhD student
 Computer Engineering Department
 IUST

-----Original Message-----
 From: Yi Tseng <[email protected]>
 To: FUJITA Tomonori <[email protected]>
 Cc: mehran shetabi <[email protected]>, ryu-devel 
<[email protected]>
 Date: Fri, 8 May 2015 16:31:11 +0800
 Subject: Re: [Ryu-devel] Would you please answer these questions?


Hi1. If "load" you mentioned is "traffic load", you can 
sendofp_port_stats_request (openflow 1.3.4 spec, page 94) and calculate port 
loading by port stats information.
2. If you mean "controller loading", just use other library like psutil
https://github.com/giampaolo/psutil [https://github.com/giampaolo/psutil]3. 
You need to implement your communication protocol between controllers, for 
example: use tcp socket connection.
BTW, mininet supports multiple controller, just assign two remote 
controller, for example:
https://github.com/TakeshiTseng/SDN-Work/blob/master/mininet/single/two_controller.py
 
[https://github.com/TakeshiTseng/SDN-Work/blob/master/mininet/single/two_controller.py]
Yi
2015-05-08 10:30 GMT+08:00 FUJITA Tomonori <[email protected] 
[mailto:[email protected]]>:

Please don't drop the mailing list,

 On Thu, 07 May 2015 22:46:20 +0430
 "mehran shetabi" <[email protected] [mailto:[email protected]]> wrote:

 > I mean that is there any class, method, command, library, or event 
manager
 > in Ryu documentation for measuring instant load of any host that 
connected
 > to OVS, and instant load of a controller?

 There isn't.

 > I know that there is ofp_event.EventOFPPortStatsReply in Ryu 
documentation,
 > but it measures the cumulative load of a port (rx_packets, rx_bytes,
 > tx_packets, tx_bytes, …) in a switch that connected to the host, but 
not
 > to the controller.
 >
 > Also, how can I implement master, slave, and equal controllers for a 
switch
 > in Mininet and program them with the Ryu which they control the switch 
for
 > acting like a simple_switch_13, for example?

 Try OFPRoleRequests:

 
http://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#role-request-message 
[http://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#role-request-message]

 I don't know if mininet supports multiple controllers though.

------------------------------------------------------------------------------
 One dashboard for servers and applications across Physical-Virtual-Cloud
 Widest out-of-the-box monitoring support with 50+ applications
 Performance metrics, stats and reports that give you Actionable Insights
 Deep dive visibility with transaction tracing using APM Insight.
 http://ad.doubleclick.net/ddm/clk/290420510;117567292;y 
[http://ad.doubleclick.net/ddm/clk/290420510;117567292;y]
 _______________________________________________
 Ryu-devel mailing list
 [email protected] [mailto:[email protected]]
 https://lists.sourceforge.net/lists/listinfo/ryu-devel 
[https://lists.sourceforge.net/lists/listinfo/ryu-devel]


--

-----Yi Tseng (a.k.a Takeshi)
Taiwan National Chiao Tung University
Department of Computer Science
W2CNLab
-----
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to