Thanks to the guys for helping me. In most sample, I only find output 'trace-all'. How can I customize trace file (out.tr), so that the output file are only print the TCP and UDP packet. How does this trace file are generated when we use syntax like:
set f [open out.tr w] $ns trace-all $f --------------------------------- Get your own web address. Have a HUGE year through Yahoo! Small Business.