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

Questions on the output trace file



Hi, ns users

I have some questions on the interpretation of the out.tr generated by ns. 

Here is a sample output after my multicast protocol (DM) simulation.
  

r 0.03336 6 8 cbr 210 ------- 0 1.1 31.1 0 0
+ 0.03336 8 16 cbr 210 ------- 0 1.1 31.1 0 0
- 0.03336 8 16 cbr 210 ------- 0 1.1 31.1 0 0
r 0.03349 3 6 cbr 210 ------- 0 1.1 31.1 3 3
+ 0.03349 6 8 cbr 210 ------- 0 1.1 31.1 3 3
- 0.03349 6 8 cbr 210 ------- 0 1.1 31.1 3 3
r 0.03362 1 3 cbr 210 ------- 0 1.1 31.1 6 6
+ 0.03362 3 6 cbr 210 ------- 0 1.1 31.1 6 6
- 0.03362 3 6 cbr 210 ------- 0 1.1 31.1 6 6
+ 0.03375 1 3 cbr 210 ------- 0 1.1 31.1 9 9
- 0.03375 1 3 cbr 210 ------- 0 1.1 31.1 9 9
r 0.03711 6 8 cbr 210 ------- 0 1.1 31.1 1 1
+ 0.03711 8 16 cbr 210 ------- 0 1.1 31.1 1 1
- 0.03711 8 16 cbr 210 ------- 0 1.1 31.1 1 1
r 0.03724 3 6 cbr 210 ------- 0 1.1 31.1 4 4
+ 0.03724 6 8 cbr 210 ------- 0 1.1 31.1 4 4
- 0.03724 6 8 cbr 210 ------- 0 1.1 31.1 4 4
r 0.03737 1 3 cbr 210 ------- 0 1.1 31.1 7 7


Is 1.1 of col 9 ( the one after -------0) stands for the source address, and thefollowing 31.1 is the multicast group adress(or the destination address)??

Here is how I set the source and rcvr in my simulation script.

set cbr1 [new Agent/CBR]
$ns attach-agent $n(1) $cbr1
$cbr1 set dst_ 0x8001

$ns at 2.5 "$n(6) join-group $rcvr(6) 0x8001"
$ns at 3.5 "$n(10) join-group $rcvr(10) 0x8001"
$ns at 5.5 "$n(6) leave-group $rcvr(6) 0x8001"
$ns at 10.5 "$n(18) join-group $rcvr(18) 0x8001"
$ns at 13 "$n(18) leave-group $rcvr(18) 0x8001"
$ns at 18 "$n(18) join-group $rcvr(18) 0x8001"
$ns at 23 "$n(16) join-group $rcvr(16) 0x8001"

How to related "cbr1"with the source address "1.1" shown in the out.tr, similarly "0x8001"<------>"31.1"? I am not sure waht kind of representation has been used even after reading the ns document on trace file formatting?

One more questions is that if I want to trace something else rather than those shown in the existing output trace file, such as end-to-end delay for a multicastsession (defines as the time elapsed when the packet is generated at the source until that packet has been received by a particular receiver), how should I do it, where can I add the extra code???

I hope such long mail will not confuse everyone, any clarification is of great help to me. 

Tks.

shuqian