source: network-demos/ttcp/ttcp_orig/ttcp.1 @ 481950e

4.11netdemos-4-5-branchnetwork-demos-4-10-branchnetwork-demos-4-6-branchnetwork-demos-4-7-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branchrtems-4-5-branch
Last change on this file since 481950e was c87143a, checked in by Joel Sherrill <joel.sherrill@…>, on 07/30/98 at 14:42:29

base from Eric Norum -- Demos.30May1998.tar.gz

  • Property mode set to 100644
File size: 3.8 KB
Line 
1'\"macro stdmacro
2.TH TTCP 1 local
3.SH NAME
4ttcp \- test TCP and UDP performance
5.SH SYNOPSIS
6.B ttcp \-t
7.RB [ \-u ]
8.RB [ \-s ]
9.RB [ \-p\0 \fIport\fP ]
10.RB [ \-l\0 \fIbuflen\fP ]
11.RB [ \-b\0 \fIsize\fP ]
12.RB [ \-n\0 \fInumbufs\fP ]
13.RB [ \-A\0 \fIalign\fP ]
14.RB [ \-O\0 \fIoffset\fP ]
15.RB [ \-f\0 \fIformat\fP ]
16.RB [ \-D ]
17.RB [ \-v]
18.RB host
19.RB [ < in ]
20.br
21.B ttcp \-r
22.RB [ \-u ]
23.RB [ \-s ]
24.RB [ \-p\0 \fIport\fP ]
25.RB [ \-l\0 \fIbuflen\fP ]
26.RB [ \-b\0 \fIsize\fP ]
27.RB [ \-A\0 \fIalign\fP ]
28.RB [ \-O\0 \fIoffset\fP ]
29.RB [ \-f\0 \fIformat\fP ]
30.RB [ \-B ]
31.RB [ \-T ]
32.RB [ \-v ]
33.RB [ > out ]
34.SH DESCRIPTION
35.I Ttcp
36times the transmission and reception of data between two systems using
37the UDP or TCP protocols.
38It differs from common ``blast'' tests, which tend to measure the remote
39.I inetd
40as much as the network performance, and which usually do not allow
41measurements at the remote end of a UDP transmission.
42.PP
43For testing, the transmitter should be started with \f3\-t\f1 and \f3\-s\f1
44after the receiver has been started with \f3\-r\f1 and \f3\-s\f1.
45Tests lasting at least tens of seconds should be used to obtain accurate
46measurements.
47Graphical presentations of throughput versus buffer size for
48buffers ranging from tens of bytes to several ``pages'' can illuminate
49bottlenecks.
50.PP
51.I Ttcp
52can also be used as a ``network pipe'' for moving directory hierarchies
53between systems when routing problems exist or when the use of other
54mechanisms is undesirable. For example, on the destination machine, use:
55.Ex
56ttcp \-r \-B | tar xvpf \-
57.Ee
58.PP
59and on the source machine:
60.Ex
61tar cf \- directory | ttcp \-t dest_machine
62.Ee
63.PP
64Additional intermediate machines can be included by:
65.Ex
66ttcp \-r | ttcp \-t next_machine
67.Ee
68.SH OPTIONS
69.TP 10
70\-t
71Transmit mode.
72.TP 10
73\-r
74Receive mode.
75.TP 10
76\-u
77Use UDP instead of TCP.
78.TP 10
79\-s
80If transmitting, source a data pattern to network;
81if receiving, sink (discard) the data.
82Without the \f3\-s\f1 option, the default is to transmit data from
83.I stdin
84or print the received data to
85.IR stdout .
86.TP 10
87\-l \fIlength\fP
88Length of buffers in bytes (default 8192).
89For UDP, this value is the number of data bytes in each packet.
90The system limits the maximum UDP packet length. This limit can be
91changed with the \f3\-b\f1 option.
92.TP 10
93\-b \fIsize\fP
94Set size of socket buffer.  The default varies from system to system.
95This parameter affects the maximum UDP packet length.
96It may not be possible to set this parameter on some systems
97(for example, 4.2BSD).
98.TP 10
99\-n \fInumbufs\fP
100Number of source buffers transmitted (default 2048).
101.TP 10
102\-p \fIport\fP
103Port number to send to or listen on (default 2000).
104On some systems, this port may be allocated to another network daemon.
105.TP 10
106\-D
107If transmitting using TCP, do not buffer data when sending
108(sets the TCP_NODELAY socket option).
109It may not be possible to set this parameter on some systems
110(for example, 4.2BSD).
111.TP 10
112\-B
113When receiving data, output only full blocks,
114using the block size specified by \f3\-l\f1.
115This option is useful for programs, such as \f2tar\f1(1), that require
116complete blocks.
117.TP 10
118\-A \fIalign\fP
119Align the start of buffers to this modulus (default 16384).
120.TP 10
121\-O \fIoffset\fP
122Align the start of buffers to this offset (default 0).
123For example, ``\-A8192 \-O1'' causes buffers to start at the second byte
124of an 8192-byte page.
125.TP 10
126\-f \fIformat\fP
127Specify, using one of the following characters,
128the format of the throughput rates as
129kilobits/sec ('k'), kilobytes/sec ('K'),
130megabits/sec ('m'), megabytes/sec ('M'),
131gigabits/sec ('g'), or gigabytes/sec ('G').
132The default is 'K'.
133.TP 10
134\-T
135``Touch'' the data as they are read in order to measure cache effects.
136.TP 10
137\-v
138Verbose: print more statistics.
139.TP 10
140\-d
141Debug: set the SO_DEBUG socket option.
142.SH SEE ALSO
143ping(1M), traceroute(1M), netsnoop(1M)
144
Note: See TracBrowser for help on using the repository browser.