<div dir="ltr"><div><div><div>Hi Lucas, Thanks a lot for your valuable suggestion, I have collected port stats from all ports of all switches and stored the stats in the following way:<br><br></div><div>if sw_name not in portstats:<br></div> portstats = {'switch_name' : {'port_number' : 'tx_bytes'}, 'h2' : {}...............}<br><br></div>But I am not getting exactly how do I calculate increments by taking difference between previous and current tx_bytes on ports. As I read somewhere that by calculating increment in tx_bytes, link load can be calculated. Could you please guide me in this regard. Thanking you in advance. <br><br></div>Kind Regards,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 5, 2015 at 5:25 PM, Lucas Brasilino <span dir="ltr"><<a href="mailto:lrbbs@cin.ufpe.br" target="_blank">lrbbs@cin.ufpe.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
To collect port data, such as number of bytes, take a look at OF<br>
'Port-status" message, which in Pox it is implemented by the '<br>
'ofp_stats_request' class. At wiki<br>
there is a example about it.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Att<br>
Lucas Brasilino<br>
MSc Student @ Federal University of Pernambuco (UFPE) / Brazil<br>
twitter: @lucas_brasilino<br>
</div></div></blockquote></div><br></div>