?? trpr.html
字號(hào):
<tt> [flow <type,srcAddr/port,dstAddr/port>,flowId]</tt> <br> <tt> [exclude <type,srcAddr/port,dstAddr/port>,flowId]</tt> <br> <tt> [input <inputFile>] [output <outputFile></tt><tt>]<br> </tt><tt>[link <src>[,<dst>]][send | recv]<br> </tt><tt>[range [<startSec>][:<stopSec>]][offset <hh:mm:ss>]<br> [summary][histogram][replay <factor>]</tt> <br> <tt> [png <pngFile>][post <postFile>][multiplot][ramp][alimit <bytes>]</tt> <br> </p> <p> NOTE: T<i>ype, addr, or port parameters can be "wildcarded" with an 'X' character.</i> <br> </p> <h3> Command Line Parameters and Options:</h3> <table width="100%" nosave=""> <tbody> <tr nosave=""> <td valign="top" width="30%" nosave="">version</td> <td>Causes <i>trpr</i> to display program version number and exit.</td> </tr> <tr> <td>drec</td> <td><i>trpr</i> will expect to process a <i>drec</i> log file instead of <i>tcpdump</i> hex output.</td> </tr> <tr> <td valign="top">ns<br> </td> <td valign="top"><i>trpr</i> will expect to process a <i>ns</i> trace file instead of <i>tcpdump</i> hex output.<br> </td> </tr> <tr nosave=""> <td valign="top" nosave="">raw</td> <td>When this option is given, the <outputFile> will only include unlabeled sets of plotting data without the default <i>gnuplot</i> compatible headers. This is useful to get the "raw" plot data for importing into a spreadsheet or other plotting program.</td> </tr> <tr nosave=""> <td valign="top" nosave="">key</td> <td>With this option, trpr will print a "key" to the data plotsets in the <outputFile>. This consists of one comma-delimited line with a leading "#" character. This line is printed when new flows of data are detected and another data set column is output. The first column is marked "Time". Subsequent columns are labeled with a description of the flow data being plotted.</td> </tr> <tr> <td valign="top">rate<br> </td> <td valign="top">Causes <i>trpr</i> to create plots of data rate versus time. The <u>window</u> command can be used to set <i> trpr</i> 's rate averaging window. The <u>rate </u>command is the implicit default plot mode for <i>trpr.</i><br> </td> </tr> <tr nosave=""> <td valign="top" nosave="">interarrival</td> <td>Causes <i>trpr</i> to create plots of differential interarrival packet delays for detected flows instead of the default data rate versus time plot.</td> </tr> <tr nosave=""> <td valign="top" nosave="">latency</td> <td>Causes <i>trpr</i> to create plots of transmission delay for <i> drec</i> flows instead of the default data rate versus time plot. This type of plot is only available for <i>drec</i> operation.</td> </tr> <tr> <td>loss</td> <td>Causes <i>trpr</i> to create plots of packet loss based onreceived sequence numbers for <i>drec</i> flows instead of the defaultdata rate versus time plot. This type of plot is only availablefor <i>drec</i> operation. The <u>window</u> command can beused to set <i> trpr</i> 's loss averaging window. The "window" specified should be large enough to encompass several expected packetevents for desired results.</td> </tr> <tr> <td valign="top">count<br> </td> <td valign="top">Causes <i>trpr</i> to create plots of packet counts versus time instead of the default data rate versus time plot. The <u>window</u> command can be used to set <i>trpr</i>'s count accumulation window. The <u>rate </u>command is the implicit default plot mode for <i>trpr.</i><br> </td> </tr> <tr nosave=""> <td valign="top" nosave="">real</td> <td>When this option is given, <i>trpr</i> will output plotting commands and data to its <tt>stdout</tt>. This output is intended for the <tt> stdin</tt> of gnuplot for real-time plotting. However, note that this output can be redirected to a file for storage, and then later that file can be directed to the input of <i>gnuplot</i> for "playback". Note that the "real-time" mode can be used simultaneously with <i>trpr</i> 's cumulative "non-real-time" <u>output</u> option. Note that the "real time" graph update occurs once per <u>window</u> time. This option can also be used with pre-existing trace files. Use the replay command to limit the actual graph animation rate or the tracefile will be parsed at "cartoon rate" (i.e. as fast as possible).</td> </tr> <tr nosave=""> <td valign="top" nosave="">gif <gifFile></td> <td>This option commands <i>gnuplot</i> to create a "gif" (Graphics Interchange Format) file when it plots instead of the default X11 display. The <gifFile> parameter is the name of the file <i>gnuplot</i> will create when it processes <i>trpr</i>'s output. This can be used in either real-time or non-real-time operation. In real-time operation, the <gifFile> will be periodically overwritten according to <u>window</u> setting.</td> </tr> <tr nosave=""> <td valign="top" nosave="">post <postFile></td> <td>This option commands <i>gnuplot</i> to create a Postscriptfile when it plots instead of the default X11 display. The <postFile> parameter is the name of the file <i>gnuplot</i> will create when it processes <i>trpr</i> 's output. This can be used in either real-time or non-real-time operation. In real-time operation, the <postFile> will be periodically overwritten according to <u>window</u> setting.</td> </tr> <tr nosave=""> <td valign="top" nosave="">multiplot</td> <td valign="top" nosave="">With <i>gnuplot</i>, <i>trpr</i> will create a "multiplot" graph with one graph per detected flow (stackedvertically). (This only works with the real-time upated (<u>real</u>command) graphing mode for now).</td> </tr> <tr> <td valign="top">ramp<br> </td> <td valign="top">By default, <i>trpr </i>creates "stair step" plots of its averaging <u>window</u> results (i.e. 2 data points per window). The optional <u>ramp </u>command causes <i>trpr </i>to create plots with one data point per averaging window (at the window's end), thus "ramping" from one window to the next. This may be useful for alternative post-processing of <i>trpr</i>'s output files or to reduce the number of data points onplots with an extremely large number of data points where the <u>window</u> start/stop points are indiscernable anyway.<br> </td> </tr> <tr nosave=""> <td valign="top" nosave="">window <sec></td> <td>This parameter sets the step size of <i>trpr</i>'s window-based data rate and packet loss averaging algorithms. The step size unit is time in seconds. This algorithm counts the cumulative quantity of data (or packet loss) in each window of time and calculates the kilobits-per-second (kbps) (or loss fraction) value for each step. These discrete values of data rate (or loss fraction) versus time comprise <i>trpr</i> 's plot data. Two points are plotted, one at each time window's beginning and one at its end, to form a "stair step" plot. The <u> window</u> command also controls the <i>gnuplot</i> real-timegraph update rate for <u> real</u> command operation. The <u> window</u> <sec> value can be specified as "-1" to cause <i>trpr</i> to average across the entire trace file (or the periodspecified by the <u>range</u> command). Note the negative <u>window</u> value should <b>not</b> be used in combination withthe <u>real</u> command. <br> Default = 1 second.</td> </tr> <tr nosave=""> <td valign="top" nosave="">history <sec></td> <td>This parameter determines the range (in time units of seconds) of the X-axis of the graphs produced in <i>trpr</i>'s real-time mode. As time progresses, the <i>gnuplot</i> graphs will scroll in "strip-chart" fashion to display the current <u>history</u> of network activity. <br> Default = 20 seconds.</td> </tr> <tr nosave=""> <td valign="top" nosave="">auto <type,srcAddr:port,dstAddr:port,id></td> <td>This command instructs <i>trpr</i> to automatically discover and plot "flows" of network data according to the matching (type,src,dst,id) criteria provided. Otherwise, <i>trpr</i> only plots "flows" given by the <u> flow</u> option described below. Valid valuesfor <type> include "X", "udp", "tcp", or the numeric value of theIP protocol type of interest. The "X" value "wildcards" the <type>so that <i> trpr</i> will automatically create a plot on the graphfor any type of IP protocol which meets the given <source,destination> criteria. The source and destination addresses (srcAddr &dstAddr) must be given in dotted decimal notation or may also be wildcardedwith an "X" character. The <source,destination> portion mayalso be omitted and then will be automatically wildcarded. The optional "id" portion of the flow description corresponds to any "flow id" whichmay apply to the data analyzed. This currently only applies to <u>drec </u>log files when the user wishes to additionally differentiate <u> drec</u> flows by their "flow id". (See the <i>mgen </i>user's guide for more information). As an example, "<tt> auto udp</tt>"will cause <i>trpr</i> to enumerate individual plots for each unique UDPprotocol flow detected regardless of source or destination. The sourceand destination port numbers can be explicitly specified or wildcarded withan "X" or implicitly through omission. Note that flows which match those given with the <u>flow</u> option (see below) will notbe tested against the <u>auto</u> criteria. The <u> auto</u> option may be used multiple times on the <i>trpr</i> command line to establishmultple sets of automatic flow matchiing criteria (e.g. <tt>trpr autoudp auto tcp ...</tt> ").</td> </tr> <tr nosave=""> <td valign="top" nosave="">flow <type,srcAddr:port,dstAddr:port,id></td> <td>This command instructs <i>trpr</i> to look for and plot specific "flows" which match the given (type,src,dst) criteria. All flows which match the given criteria are accumulated together onto a singleplot line. The address and port criteria are given in the same wayas for the <u>auto</u> command and may be wildcarded in the same way. For example, the option "<tt>flow udp</tt>" will cause <i>trpr</i> toaccumulate all detected UDP traffic (regardless of source and destinationsince they are implicitly wildcarded here) into a single plot. Thusthe command "<tt>trpr flow udp flow tcp ...</tt>" will produce a graphwith two lines, one plotting cumulative UDP traffic and the other plottingcumulative TCP traffic detected by <i> tcpdump</i>. As with the <u>auto</u>option, the <u>flow</u> option may be used multiple times on the commandline and may be used in conjunction with the <u>auto</u> option. Flowsof network traffic matching the criteria specified with the <u>flow</u> option
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -