Hi tommaso thanks again,
About bugs.... Not sure... I havent seen other experiments in AODV like this one to have a way to compare. About 2) , I only ran 2 experiments in my file. My steps are described below:
In the file posted above (3rd post) in the main class I make 2 calls to the MaspExample class()
test.CaseRun(120,heightField,widthField,speed,1024,10000,0.4,AODV,false,false,PRINTFILE);
test.CaseRun(120,heightField,widthField,speed,1024,10000,0.4,AODV,false,false,PRINTFILE);
This represents 2 experiments with the same attributes: topology of 120 nodes, distributed on a rectangle of widthField x heightField using packets of 1024 bytes with an application data rate of 10000bps
(0.4 is only used when I set my protocol, and the other flags control prints).
In order to ensure the same topology distribution in both experiments , I assigned a stream to the RandomRectanglePositionAllocator in the file the following way. (Using stream 3)
Ptr<UniformRandomVariable> x = CreateObject<UniformRandomVariable>();
x->SetAttribute ("Min", DoubleValue (0));
x->SetAttribute ("Max", DoubleValue (m_widthField));
Ptr<UniformRandomVariable> y = CreateObject<UniformRandomVariable>();
y->SetAttribute ("Min", DoubleValue (0));
y->SetAttribute ("Max", DoubleValue (m_heightField));
Ptr<RandomRectanglePositionAllocator> alloc =CreateObject<RandomRectanglePositionAllocator>();
alloc->SetX (x);
alloc->SetY (y);
alloc->AssignStreams(3);
Now , this makes the topology have the same distribution every time but it does not affect the random variables inside the AODV protocol. (mostly jitters I think)
I thought I could address this issue by using "AssignStreams" in the AodvHelper. I have a node container called clientNodes and a single mobile node called mobileNode
I tried setting this after the InternetsStackHelper like this:
NodeContainer testContainer;
testContainer.Add(clientNodes);
testContainer.Add(mobileNode);
aodvProtocol.AssignStreams(testContainer,4);
Or like this :
aodvProtocol.AssignStreams(clientNodes,4);
aodvProtocol.AssignStreams(mobileNode,4);
Both tries, still result in different packets received. I only made those simulations described above(test.caserun.......). Is it me doing something wrong or is it a bug in AODV?, are there any examples that shows AODV using AssignStreams to secure the same results in the experiments?
I just dont seem to find the reason after setting so many specific things
What does other people do in their experiments?? Just assume there will be different values of the same experiment and do an average for the results?
Best Regards,
Jack