On 5/31/21 1:28 AM, Vignesh K wrote:
> Hello everyone,
>
> Kindly please find the description of the issue in the above mail thread.
>
> I'm unable to trace the packets in queue of the child queue discs. In
> NS3 documentation, it is mentioned with respect to the Root queue discs,
>
>
https://www.nsnam.org/docs/models/html/queue-discs.html#fig-multi-queue-aware-queue-disc
> /NodeList/[i]/$ns3::TrafficControlLayer/RootQueueDiscList/[j]/InternalQueueList/1
I don't see any documented examples in the mainline code for this type
of tracing; I only see an example of Config::Connect in the example
program traffic-control.cc, but that is for the root QueueDisc.
What I would recommend, if you want/need to use the Config path to
access these, is to dump out the config paths into a text file and then
read through that text file to find the paths you are interested in.
The example program src/config-store/examples/config-store-save.cc shows
an example of how to do this.
First, include this header:
#include "ns3/config-store-module.h"
then, right before you call Simulator::Run(), insert these statements:
// Output config store to txt format
Config::SetDefault ("ns3::ConfigStore::Filename", StringValue
("output-attributes.txt"));
Config::SetDefault ("ns3::ConfigStore::FileFormat", StringValue
("RawText"));
Config::SetDefault ("ns3::ConfigStore::Mode", StringValue ("Save"));
ConfigStore outputConfig2;
outputConfig2.ConfigureAttributes ();
Then run your program. You will then find a file called
'output-attributes.txt' with all of the available paths that were found
(and hopefully it gives you a clue of the path string to connect to a
child queue disc).
- Tom