Time Sequenced Headers - tsh files are in binary format, where each 44-byte chunk corresponds to the header of a packet in transmission on the link. This format is described at <http://pma.nlanr.net/Traces/tsh.format.html>. Note that TSH records have a fixed length, and thus may be broken in case some IP options are passed.
Coral/OC3MON - format used by OC3MON from Coral. Binary, 60-byte fixed records per packet, described at <http://pma.nlanr.net/Traces/coral.format.html>
FR - Binary, 24-byte fixed records per packet. See <http://pma.nlanr.net/Traces/fr.format.html>
FR+ - Binary, 44-byte fixed records per packet. See <http://pma.nlanr.net/Traces/fr+.format.html>
Network Simulator version 2 (ns-2) TrafficTrace - Traces used by the Application/Traffic/Trace agent in the ns-2 network simulator. Each record contains to 32-bit fields: the time in microseconds until generation/arrival of the next packet, and the size of the current packet. See <http://www.isi.edu/nsnam/ns/> for more information.
Input and output formats are specified via the
-i
and
-o
options (see OPTIONS). By default,
ntrc
reads from
STDIN
and writes to
STDOUT.
Optional arguments may be used to specify the names of the files to read from, and write to, respectively.
-
is used to denote standard input in case one wants to explictly specify an
output file while reading from
STDIN.
For instance,
ntrc -ifr -insg - trace.ns
converts standard input in FR format to an ns-2 TrafficTrace file stored in
trace.ns.
Note that, due to their size, most traffic traces taken from high-speed links are in .gz compressed format. Such traces must therefore be decompressed with gzip(1) prior to use with ntrc.
Upon succesful completion ntrc returns zero. Positive values are returned if either incompatible options were passed or a write error occured. Negative values are returned if a read error occured.
Many more common formats that are not supported yet will be supported in future releases of this package.
This manpage was written in a rush, and is therefore quite poorly written. Improvements to this documentation are more than welcome.
Note that this is an alpha version, and bugs are expected. Please contact the author if you notice anything fishy.
Questions regarding ntrc are welcome. Questions regarding the specifics of the trace file formats (other than bug reports) will be silently discarded, and should instead be directed to the relevant mailing-lists (e.g., ns-users@isi.edu).
Fall, K., and Varadhan, K., (eds.), "Ns notes and documentation", work in progress. <http://www.isi.edu/nsnam/ns/ns-documentation.html>
NLANR Passive Measurement Analysis website, <http://pma.nlanr.net/Traces/>
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software must display the following acknowledgment: This product includes software developed by Nicolas Christin.
4. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.