uint packetSize = 1.2*1024; //1.2KB
uint queueSizeHR = (100000*20)/packetSize;
uint queueSizeRR = (10000*50)/packetSize;
uint numSender = 3;
double errorP = ERROR;
Config::SetDefault("ns3::DropTailQueue::Mode", StringValue("QUEUE_MODE_PACKETS"));
/*
Config::SetDefault("ns3::DropTailQueue::MaxPackets", UintegerValue(queuesize));
*/
//Creating channel without IP address
std::cout << "Creating channel without IP address" << std::endl;
PointToPointHelper p2pHR, p2pRR;
p2pHR.SetDeviceAttribute("DataRate", StringValue(rateHR));
p2pHR.SetChannelAttribute("Delay", StringValue(latencyHR));
p2pHR.SetQueue("ns3::DropTailQueue", "MaxPackets", UintegerValue(queueSizeHR));
p2pRR.SetDeviceAttribute("DataRate", StringValue(rateRR));
p2pRR.SetChannelAttribute("Delay", StringValue(latencyRR));
p2pRR.SetQueue("ns3::DropTailQueue", "MaxPackets", UintegerValue(queueSizeRR));