Hi.
I am running a C++ component that prints statistics of flows collected in
switches with the flow_stats_in_event.
I am also running the dpctl dump-flows command in mininet to compare the
values and they are very different.
The request is as follows:
*request.table_id = 0xff;
request.out_port = OFPP_NONE;
request.match.wildcards = htonl(0xffffffff);*
Some values printed with *dpctl dump-flows* are:
*cookie=0, duration_sec=6s, table_id=1, priority=32768, n_packets=9,
n_bytes=882*
And it seems correct.
In Flow_stats_in_event handler I wrote:
if(fsie.flows.size()>0){
lg.dbg("duration_sec: %"PRIu32,fsie.flows.at
(0).duration_sec);
lg.dbg("packet_count: %"PRIu64,fsie.flows.at
(0).packet_count);
lg.dbg("priority: %"PRIu16,fsie.flows.at(0).priority);
lg.dbg("byte_count: %"PRIu64,fsie.flows.at(0).byte_count);
lg.dbg("length: %d",fsie.flows.at(0).length);
lg.dbg("table_id: %d",fsie.flows.at(0).table_id);
}
But the values printed are:
*00533|openflow-event|DBG:received stats reply from 000000000001
00534|newcomp|DBG:Size of flows: 2
00535|newcomp|DBG:duration_sec: 922746880
00536|newcomp|DBG:packet_count: 7710162562058289152
00537|newcomp|DBG:priority: 128
00538|newcomp|DBG:byte_count: 17737427132398698496
00539|newcomp|DBG:length: 24576
00540|newcomp|DBG:table_id: 1
*What am I missing?*
*If I wasn't detailed enough please let me know.*
*Best Regards.
--
Ricardo Bennesby da Silva
Ciência da Computação - UFAM
LabCIA - Laboratório de Computação Inteligente e Autonômica
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev