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

[ns] Analyze the trace file using "tcptrace"?



Hi, NS experts:
   I got two problems when trying to analyze the trace
files generated by NS using "tcptrace"

First Problem:
I ran some emulation program and got a trace file. The
output in the trace file are somehow as following:

+ 2.163227 2 4 live 60 ------- 0 2.0 1.0 -1 1
- 2.163227 2 4 live 60 ------- 0 2.0 1.0 -1 1
+ 2.163372 0 4 live 60 ------- 0 0.0 3.0 -1 2
- 2.163372 0 4 live 60 ------- 0 0.0 3.0 -1 2
+ 2.163526 2 4 live 52 ------- 0 2.0 1.0 -1 3
- 2.163526 2 4 live 52 ------- 0 2.0 1.0 -1 3

the type of the packet tracked is indicated as "live".
But the tcptrace will only process the line if the
type is "tcp" or "ack". But in fact, the emulation I
ran is some tcp traffic like telnet or ftp. Then how
could I analyze the "live" packet in the trace file by
using tcptrace or some other tools?

Second problem:
+ 2.163227 2 4 tcp 60 ------- 0 2.0 1.0 -1 1
                                ^   ^
       _________________________|   |
      |                  ___________|
      |                 |
src-node address(2)   dst-node address(1)
(the number after the dot is each other's port number)

The above is a sample line of a trace file that can by
processed by "tcptrace". But when I run some
wired-cum-wireless simulation problem, I will get
trace files like:

+ 1.015589 0 1 tcp 1000 ------- 0 0.0.0.0 1.0.1.0 0 0
                                  ^^^^^   ^^^^^
src-node address: 0.0.0
dst-node address: 1.0.1

I have to use hierarchical addresses. For this type of
address, it cant be handled by "tcptrace". I have
tried: tcptrace didnt consider this line as a valid
input. So how could I analyze such kind of trace files
generated by wired-cum-wireless simulation program?

Anyone can help me!

Best Regards,
Lao Yu

__________________________________________________
Do You Yahoo!?
Yahoo! Mobile - Jazz up your mobile phone!  Get funky ringtones and logos!
http://mobile.yahoo.com.sg/