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

RE: [ns] Question about trace file and delay calculation



Hi Alberto,

You can find this information in the NS manual (I think it's chapter 37), where this is quite clearly explained. I don't remember the exact meaning of right-most parameters in the trace file. The first parameter symbolizes the 'action' (enque, receive, ..). The second is the timestamp. Then you have the source and destination node, the protocol, the packet size, etc.

To calculate the delay you should post-process the trace file with AWK.

Espero que te sea de ayuda.

Best regards,

Jorge

-----Mensaje original-----
De:	ALBERTO FELIPE PEREZ [SMTP:alberto.felipe@upcnet.es]
Enviado el:	jueves, 19 de julio de 2001 19:08
Para:	ns-users@ISI.EDU
Asunto:	[ns] Question about trace file and delay calculation

Hi all,
I'm using ns-allinone-2.1b7a and when I run a MIP simulation I obtain a very long trace file that contains something like this:
+ 0 0 1 tcp 1000 ------- 1 0.0 3.2 0 0
- 0 0 1 tcp 1000 ------- 1 0.0 3.2 0 0
v 0.0001 link-down 2 3
v 0.0001 link-down 3 2
r 0.009 0 1 tcp 1000 ------- 1 0.0 3.2 0 0
+ 0.009 1 3 tcp 1000 ------- 1 0.0 3.2 0 0
- 0.009 1 3 tcp 1000 ------- 1 0.0 3.2 0 0
r 0.018 1 3 tcp 1000 ------- 1 0.0 3.2 0 0
+ 0.018 3 1 ack 40 ------- 1 3.2 0.0 0 1
- 0.018 3 1 ack 40 ------- 1 3.2 0.0 0 1
r 0.02316 3 1 ack 40 ------- 1 3.2 0.0 0 1
+ 0.02316 1 0 ack 40 ------- 1 3.2 0.0 0 1
- 0.02316 1 0 ack 40 ------- 1 3.2 0.0 0 1
r 0.02832 1 0 ack 40 ------- 1 3.2 0.0 0 1
+ 0.02832 0 1 tcp 1000 ------- 1 0.0 3.2 1 2
.....................

Could you tell me what those fields mean?
And whith this, which is the best and fastest way to calculate the delay?

Thank you in advance.

- 0.02832 0 1 tcp 1000 ------- 1 0.0 3.2 1 2
+ 0.02832 0 1 tcp 1000 ------- 1 0.0 3.2 2 3