next up previous contents
Next: Adding new traffic control Up: Simulation output Previous: Output filtering   Contents


Graphical output

Filtered output can be further processed with the script tcsim_plot, which uses gnuplot to generate plots.

Usage:

tcsim_plot $[$-a samples$]$ $[$-j$]$ $[$-m$]$ $[$-p ps_file$\vert$-jpeg jpeg_file$\vert$-png png_file$]$ $[$-t plot_type$]$ $[$-cmd gnuplot_command $\ldots$$]$ $[$file $\ldots]$

-a samples
Average over the number of samples
-j
Time is in jiffies, not seconds (i.e. tcsim was run with -j)
-m
Generate monochrome output
-cmd gnuplot_command
Send command to gnuplot before plotting
-p ps_file
Generate Postscript output
-jpeg jpeg_file
Generate JPEG output
-png png_file
Generate PNG (Portable Network Graphics) output
-t plot_type
Specifies the plot type

If the file name for -p, -jpeg, or -png is -, tcsim_plot writes the data to standard output and suppresses forwarding of tcsim_filter snapshots.

The following plot types are available:

rate
Bit rate (based on the inter-arrival time)
iat
Packet inter-arrival time
cumul
Cumulative amount of data
delay
Queuing delay, measured at dequeue time

rate and iat normally require averaging in order to produce useful results. With rate, packets apparently arriving at the same time are treated like one large packet arriving at that time.

Examples:

tcsim examples/dsmark+policing | tcsim_filter | \
  tcsim_plot -t cumul

tcsim examples/dsmark+policing | tcsim_filter | \
  tcsim_plot -a 10

tcsim examples/ef-prio | tcsim_filter tos | \
  tcsim_plot -t delay


next up previous contents
Next: Adding new traffic control Up: Simulation output Previous: Output filtering   Contents
Martin A. Brown 2003-11-06