[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code trace question



At 11:31 ���� 98-03-24 +0100, you wrote:
>In my trace file, I found some "r" code. I don't found this code in the
>doc.
>What does this code mean?
>
>Thanks,
>Anne-Marie.
>
>
>-----------The bedinning of my trace file -------------------------
>+ 0 7 1 tcp 1000 ------- 0 7.0 0.5 0 0
>- 0 7 1 tcp 1000 ------- 0 7.0 0.5 0 0
>+ 0 8 1 tcp 1000 ------- 0 8.0 0.6 0 1
>- 0 8 1 tcp 1000 ------- 0 8.0 0.6 0 1
>+ 0 3 1 tcp 1000 ------- 0 3.0 0.1 0 2
>- 0 3 1 tcp 1000 ------- 0 3.0 0.1 0 2
>+ 0 4 1 tcp 1000 ------- 0 4.0 0.2 0 3
>- 0 4 1 tcp 1000 ------- 0 4.0 0.2 0 3
>+ 0 5 1 tcp 1000 ------- 0 5.0 0.3 0 4
>- 0 5 1 tcp 1000 ------- 0 5.0 0.3 0 4
>+ 0 6 1 tcp 1000 ------- 0 6.0 0.4 0 5
>- 0 6 1 tcp 1000 ------- 0 6.0 0.4 0 5
>r 0.03325 7 1 tcp 1000 ------- 0 7.0 0.5 0 0
>+ 0.03325 1 0 tcp 1000 ------- 0 7.0 0.5 0 0
>- 0.03325 1 0 tcp 1000 ------- 0 7.0 0.5 0 0
>r 0.03325 8 1 tcp 1000 ------- 0 8.0 0.6 0 1
>+ 0.03325 1 0 tcp 1000 ------- 0 8.0 0.6 0 1
>r 0.03325 3 1 tcp 1000 ------- 0 3.0 0.1 0 2
>+ 0.03325 1 0 tcp 1000 ------- 0 3.0 0.1 0 2
>r 0.03325 4 1 tcp 1000 ------- 0 4.0 0.2 0 3
>+ 0.03325 1 0 tcp 1000 ------- 0 4.0 0.2 0 3
>r 0.03325 5 1 tcp 1000 ------- 0 5.0 0.3 0 4
>+ 0.03325 1 0 tcp 1000 ------- 0 5.0 0.3 0 4
>r 0.03325 6 1 tcp 1000 ------- 0 6.0 0.4 0 5
>+ 0.03325 1 0 tcp 1000 ------- 0 6.0 0.4 0 5
>
>
>
>----------------- The code part of the doc
>------------------------------
>     The tracefile format is backward compatible with the  output
>     files  in  the  ns  version  1  simulator so that ns-1 post-
>     processing scripts can still  be  used.   Trace  records  of
>     traffic  for  link objects with Enque, Deque or Drop Tracing
>     have the following form:
>
>              <code> <time> <hsrc> <hdst> <packet>
>
>       where
>
>            <code> := [hd+-] h=hop d=drop +=enque -=deque
>--
>------------------------------------------------------------------------
>Anne-Marie Bustos, [email protected],
>FT/BD/CNET/DSE/ISE
>Phone:(33) 04.92.94.52.25 -  CNET, 06921 Sophia-Antipolis CEDEX, FRANCE.
>
>

r = received

>+ 0 7 1 tcp 1000 ------- 0 7.0 0.5 0 0
>- 0 7 1 tcp 1000 ------- 0 7.0 0.5 0 0
>r 0.03325 7 1 tcp 1000 ------- 0 7.0 0.5 0 0

So, We can guess a Packet at time 0 enqued in 7 (node), deque in 7 (node)
--> Has no queuing delay.
Finally, received in 1 time 0.03325.

7 ---(delay : 0.03325)-- 1

Make it sense?
Good Luck.

--------------------------------------
  Yong-sin Kim. DCN-SSU-KOREA.     
  Lab:02-820-0823 Pager:015-101-3904                      
--------------------------------------