The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

tsh2ns2.pl - Convert a single TSH trace to ns2 Traffic/Trace binary format

SYNOPSIS

 perl tsh2ns2.pl [-v] TRACE [PREFIX]

DESCRIPTION

tsh2ns2.pl converts a binary TSH TRACE to ns2 Traffic/Trace binary files, generating one file per interface observed in the trace. Use the -v option to display progress information. If PREFIX is provided, tsh2ns2.pl will store the results of the conversion to PREFIX.if-X.bin, where X is the interface number.

For example, if sample.tsh contains traffic from two interfaces, 1 and 2, the following command

 % perl tsh2ns2.pl -v sample.tsh
 Converting sample.tsh to ns2 Traffic/Trace binary format...
 Interface 1 traffic stored in sample.tsh.if-1.bin. Traffic duration: 0.937443 sec
 Interface 2 traffic stored in sample.tsh.if-2.bin. Traffic duration: 0.9365 sec

will generate two ns2 Traffic/Trace files: sample.tsh.if-1.bin and sample.tsh.if-2.bin.

tsh2ns2.pl is stand-alone application based on Net::Traces::TSH, but does not require this module to operate.

DEPENDENCIES

Getopt::Std

VERSION

This is tsh2ns2.pl version 0.01.

SEE ALSO

Net::Traces::TSH

The ns2 website at http://www.isi.edu/nsnam/ns/

AUTHOR

Kostas Pentikousis, kostas@cpan.org

COPYRIGHT AND LICENSE

Copyright 2004 by Kostas Pentikousis. All Rights Reserved.

This program is free software with ABSOLUTELY NO WARRANTY. You can redistribute it and/or modify it under the same terms as Perl itself.