Hi,
FlowMonitor can NOT track broadcast or multicast packets. There was a bug allowing that, but it has been fixed (plus, the number reported were wrong).
About your question, you're seeing a single flow because there IS a single flow.
Source: 10.1.1.18 - you installed the source on one node only:
source = Socket::CreateSocket (c.Get (17), tid);
Destination: same, it's only one:
InetSocketAddress remote = InetSocketAddress (Ipv4Address("255.255.255.255"), 80);
Note, the broadcast address is translated into a local scope broadcast: 10.1.1.255
Source and Destination ports: always the same.
For FlowMonitor, it's one single flow.
And that's why the numbers are wrong and FlowMon can't track broadcast flows.
One source, and n receivers. Who's going to measure what ? What should be measured ? How ?
- The time a packet has been received by the last receiver ?
- How to define a packet "loss" ?
- Etc.
Use unicast flows. Those are measured correctly.
T.