Hello, I have a Ptr<Node> and want to install QueueDisc on it for which I need a NetDevice.
The way to create I have found out is the following :
PointToPointHelper p2ph;
p2ph.SetDeviceAttribute("DataRate", DataRateValue(DataRate("1000Mb/s")));
p2ph.SetDeviceAttribute("Mtu", UintegerValue(2500));
p2ph.SetChannelAttribute("Delay", TimeValue(Seconds(0.005)));
NetDeviceContainer internetDevices;
internetDevices.Add( p2ph.Install(pgw, remoteHost));
And then install the queueing discipline using
TrafficControlHelper tch;
tch.SetRootQueueDisc("ns3::CoDelQueueDisc");
QueueDiscContainer queueDiscs;
queueDiscs = tch.Install(internetDevices);
Now when I write : Ptr<QueueDisc> q1 = queueDiscs.Get(0); will I get the queue on the device or on the point to point link ?
If the queue is on the link, can you guide me how to obtain the queue on a device ?