I am trying to calculate the jain's fairness for different densities using a trace file in vanet-routing-compare.cc. As per papers that I have read, for less densities (~50 veh), channel is pretty much clear and whoever wants to transmit, they get the access to the channel. When congestion increases, channel becomes saturated, and no everyone gets the same amount of channel access. I am talking about the default 10 Hz 802.11p.
For Jain's fairness, I need how many times each vehicle was able to send their packets successfully, and I think it is indicated by the Callback
std::string dequeue_path= "/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/*/$ns3::OcbWifiMac/*/Queue/Dequeue";
Config::Connect (dequeue_path, MakeCallback (&BsmApplication::DequeueTrace));
But the result that I get using this is that every vehicle had the exact same number of packet being dequeued for both high and low density, which shouldn't be happening. A paper that analysed this (
link), which shows that fairness should reduce when vehicle densities increase. So is the Callback that I am calling the right one to call for the indication that a vehicle has got access to the channel ?