Hi, Tahereh
I reproduced your situation.
I inspected the EventOFPPortStatsReply packets from OVS by using wireshark,
apparently ovs always replies that its max_speed=0 and curr_speed=10000000,
regardless of whether pings are send or not.
Ryu seems to get EventOFPPortStatsReply correctly and I think the
problem is in OVS.
Could you ask to OVS team?
Thanks,
Fujimoto
On 2017年06月28日 04:46, Tahereh Yaghoubi wrote:
Hi ,
I'm getting OF_PORT information by using OFPDescStatsReply event. But
for all of ports, these values max_speed=0, curr_speed=10000000 are
set while I can receive EventOFPPortStatsReply in all ports correctly.
Also I can ping all of hosts. my app OFPPortDescStatsRequest code is:
req = parser.OFPPortDescStatsRequest(datapath, 0)
datapath.send_msg(req)
and I'm getting its reply as:
@set_ev_cls(ofp_event.EventOFPPortDescStatsReply, MAIN_DISPATCHER) def
port_desc_stats_reply_handler(self, ev): ports = [] for p in
ev.msg.body: ports.append('port_no=%d hw_addr=%s name=%s config=0x%08x
' 'state=0x%08x curr=0x%08x advertised=0x%08x ' 'supported=0x%08x
peer=0x%08x curr_speed=%d ' 'max_speed=%d' % (p.port_no, p.hw_addr,
p.name <http://p.name>, p.config, p.state, p.curr, p.advertised,
p.supported, p.peer, p.curr_speed, p.max_speed))
I'm using ovs 2.7, openflow 13 and mininet.
Could you please say in which condition curr_speed and max_speed gets
this value?
Thanks in advanced
------------------------------------------------------------------------------
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