Hi,
I have set up a simple 5x5 wifi scenario and I try to catch the dropped packets at MAC layer. (I want to solve the
lab-5 example - wifi rts/cts)
I set up the 3 UDP connections at 1Mbps while the link is 802.11b DsssRate1Mbps.
I see that not all packets get delivered but I don't have any drop packet either PHY or MAC.
These are the traces I use:
Config::ConnectWithoutContext("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Mac/MacRxDrop", MakeCallback(&MacDrop));
Config::ConnectWithoutContext("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/PhyRxDrop ", MakeCallback(&PhyDrop));
Config::ConnectWithoutContext("/NodeList/*/DeviceList/*/$ns3::WifiMac/MacRxDrop", MakeCallback(&MacDrop));
Config::ConnectWithoutContext("/NodeList/*/DeviceList/*/$ns3::WifiPhy/PhyRxDrop", MakeCallback(&PhyDrop));
The first set is as it is given in doxygen and the second is a bit altered. but none of these fires the drop function which is just a NS_LOG.
any idea where the problem might be?? Do I have something wrong with the callback? From the FlowMonitor I get both lost and dropped packets, but I don't want them..
An the second (again following the lab questions) is how can I get from the dropped packet, where (which node) it was dropped?
The callback gives a pointer to the packet, from that I can manipulate it and get source and destination but not the "forwarding node" that it was dropped.
Regards,
Konstantinos