How to obtain various results for each node in ns-2?
I have a problem with getting various results for different nodes in ns-2 simulator. I use different tcl files from different resources to check if they would give me different results but each time, I obtain the same results for all nodes.
For example, what I'm doing is that I'm sending a dropping packet counter from Mac class to udp class in order to do some calculations and print the value of them using certain algorithm. However, each time I got the same results even I'm assigning different traffics at different times with different rates! I think this is maybe because I have same values for the droppingPacket counter over all nodes?
So If I am interested in getting different number of dropping packets for each node? how can I do it? could you have any idea that help me to obtain different results for each node, please?
I attach the Tcl file I am using. I have created 3 nodes and assign between 2 nodes different traffics to be able to get various results with different rates.
Thanks in advance.
|