tsh2ns2.pl - Convert a single TSH trace to ns2 Traffic/Trace binary format
perl tsh2ns2.pl [-v] TRACE [PREFIX]
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.
tsh2ns2.pl
-v
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.
Net::Traces::TSH
Getopt::Std
This is tsh2ns2.pl version 0.01.
The ns2 website at http://www.isi.edu/nsnam/ns/
Kostas Pentikousis, kostas@cpan.org
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.
To install Net::Traces::TSH, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Traces::TSH
CPAN shell
perl -MCPAN -e shell install Net::Traces::TSH
For more information on module installation, please visit the detailed CPAN module installation guide.