Hi everyone
I'm currently working on MANETs and discovered an inconsistency with the FlowMonitor.
My code is attached and is an adjusted version of the manet-routing-compare example.
I have two ways of measuring the amount of rx and tx packets.
Firstly using the FlowMonitor, and secondly using my own callbacks with a tracesource on the OnOffApplication at the sender side and the PacketSink at the receiver side.
When using AODV or DSDV the numbers are equal, but when using OLSR as a routing protocol the amount of sent packets differs.
For some reason, when using OLSR, FlowMonitor does not seem to capture all packets that are sent over the network.
You can very this behaviour by running the script with '--protocol=1' (OLSR) and '--protocol=2' (AODV).
This will output 2 files, my-adhoc_metrics.xml (based on my tracesources) and my-adhoc_flows.xml (FlowMonitor output).
Can anyone explain this difference?
Thanks in advance
Hendrik Depauw