> > I have a simple simulation where from a lab of 10 computers I send traffic > to a router and from the router to a Server.The simulation lasts > 20seconds and in the 11th second there is a link drop for the line of the > router to the server up to the 14th second when the line is up again : > > $ns rtmodel-at 11.0 down $Router $Server > > $ns rtmodel-at 14.0 up $Router $Server > > The trace-queue file after a 20 second simulation is the one below and the > statistics are : > > Packets lost in queue : 2 > > Packets received in queue : 4 > > Packets send from the queue : 4 > > The statistics for a 11 second(at the 11th second the line drops) > simulation > are: > > Packets lost in queue : 0 > > Packets received in queue : 9 > > Packets send from the queue : 9 > > The statistics for a 11.5 second(0.5 second after the line drops) > simulation > are: > > Packets lost in queue : 2 > > Packets received in queue : 0 > > Packets send from the queue : 0 > > As you notice up to the 11th second there are 9 packets received in queue > kai 9 packets send from the queue, which can be confirmed from the > trace-queue file because up to the 11th second there are 9 (+) and 9 (-).A > short after the line drop at 11.5 second packets received in queue go to 0 > and so do packets send from the queue and of course there are 2 packet > drops > (you can see the 2 (d) in the trace-queue file below). And then up to the > 20th second there are other 4(+) and 4(-) so the statistics say that there > are 4 packets send and 4 received. > > My QUESTION is why after the 11th second,the packets lost in queue and > packets > send from queue go to zero(0) and it starts again counting?? > > Wouldnt it be right the statistics in the 20th secons be the > following????? > > Packets lost in queue : 2 > > Packets received in queue : 13(9+4) > > Packets send from the queue : 13(9+4) > > Please help me! > > Thank you all in advance. > > Panagiotis. > > > > + 0.00017 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 4 > > - 0.00017 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 4 > > + 1.963644 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 2941 > > - 1.963644 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 2941 > > + 2.007106 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 3050 > > - 2.007106 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 3050 > > + 2.277944 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 3732 > > - 2.277944 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 3732 > > r 3.000172 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 4 > > + 3.897909 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 7458 > > - 3.897909 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 7458 > > r 4.963646 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 2941 > > r 5.007108 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 3050 > > r 5.277946 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 3732 > > + 5.911069 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 12152 > > - 5.911069 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 12152 > > r 6.897911 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 7458 > > + 7.989345 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 16972 > > - 7.989345 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 16972 > > r 8.91107 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 12152 > > + 9.958517 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 21524 > > - 9.958517 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 21524 > > + 10.5 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 22795 > > - 10.5 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 22795 > > r 10.989346 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 16972 > > d 11 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 21524 > > d 11 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 22795 > > + 14 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 30921 > > - 14 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 30921 > > + 15.879823 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 35360 > > - 15.879823 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 35360 > > r 17.000002 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 30921 > > + 17.821118 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 39913 > > - 17.821118 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 39913 > > r 18.879824 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 35360 > > + 19.931895 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 44789 > > - 19.931895 0 22 rtProtoDV 23 ------- 0 0.1 22.4 -1 44789 > >
