Hi Carlos,
I guess you need to calculate the bandwidth to get the actual or real-time value
by getting the PortStatsReply periodically.
For a simple example, the following calculates the bps for the forwarded
packets.
<tx_bytes/sec> = (<stats_now.tx_bytes> - <stats_prev.tx_bytes>)
/ (<stats_now.duration_sec> - <stats_prev.duration_sec>)
Thanks,
Iwase
On 2017年11月28日 22:34, Jose Carlos Ferreira de Melo Junior wrote:
Hi everyone,
Once more I'm here asking for help and I would very happy with this one.
Could anyone tell me how can I collect the bandwidth of a specific port of the
switch so I could apply some rule regarding this information??
I've tried some class like PortDescReply and PortStatsReply but they dont return
right values.
Thanks in advance
--
Best Regards
José Carlos Ferreira
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel