Hi,

Umm, I couldn't reproduce your situation.

I use OpenVSwitch, and with it, I could get different duration_sec and duration_nsec values like this:

OFPPortStats(port_no=4294967294,rx_packets=0,tx_packets=0,rx_bytes=0,tx_bytes=0,rx_dropped=0,
tx_dropped=0,rx_errors=0,tx_errors=0,rx_frame_err=0,rx_over_err=0,rx_crc_err=0,collisions=0,
*    duration_sec=739,duration_nsec=140000000*)

What switch do you use?
I guess the problem is in your switch, not in Ryu.
Please ask the development team of your switch.

Thanks,
Fujimoto


On 2017年08月15日 20:07, Moh'd Reza Abbasi wrote:
Hi,
I was experimenting with ryu, openflow stats request/reply, and mininet. I noticed that duration_sec and duration_nsec are always the same for each reply and they have same values i.e duration_sec = duration_nsec.

Is it the right behavior? shouldn't the values be different?
Because openflow specification says: "The duration_sec and duration_nsec fields indicate the elapsed time the port has been configuredinto the OpenFlow pipeline. "

here is a sample of the port_stats_reply:

port stats reply body content [ OFPPortStats(port_no=1,rx_packets=22,tx_packets=0,rx_bytes=1056,tx_bytes=0,rx_dropped=0,tx_dropped=0,rx_errors=0, tx_errors=0,rx_frame_err=0,rx_over_err=0,rx_crc_err=0,collisions=0,*duration_sec=4294967295,duration_nsec=4294967295*), OFPPortStats(port_no=2,rx_packets=22,tx_packets=0,rx_bytes=1056,tx_bytes=0,rx_dropped=0,tx_dropped=0,rx_errors=0, tx_errors=0,rx_frame_err=0,rx_over_err=0,rx_crc_err=0,collisions=0,*duration_sec=4294967295,duration_nsec=4294967295*), ]

Thank you.



------------------------------------------------------------------------------
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

Reply via email to