⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ttcp.1

📁 网络测试
💻 1
字号:
'\"macro stdmacro.TH TTCP 1 local.SH NAMEttcp \- test TCP and UDP performance.SH SYNOPSIS.B ttcp \-t.RB [ \-u ].RB [ \-s ].RB [ \-p\0 \fIport\fP ].RB [ \-l\0 \fIbuflen\fP ].RB [ \-b\0 \fIsize\fP ].RB [ \-n\0 \fInumbufs\fP ].RB [ \-A\0 \fIalign\fP ].RB [ \-O\0 \fIoffset\fP ].RB [ \-f\0 \fIformat\fP ].RB [ \-D ].RB [ \-v].RB host.RB [ < in ].br.B ttcp \-r.RB [ \-u ].RB [ \-s ].RB [ \-p\0 \fIport\fP ].RB [ \-l\0 \fIbuflen\fP ].RB [ \-b\0 \fIsize\fP ].RB [ \-A\0 \fIalign\fP ].RB [ \-O\0 \fIoffset\fP ].RB [ \-f\0 \fIformat\fP ].RB [ \-B ].RB [ \-T ].RB [ \-v ].RB [ > out ].SH DESCRIPTION.I Ttcptimes the transmission and reception of data between two systems using the UDP or TCP protocols.It differs from common ``blast'' tests, which tend to measure the remote.I inetdas much as the network performance, and which usually do not allow measurements at the remote end of a UDP transmission..PPFor testing, the transmitter should be started with \f3\-t\f1 and \f3\-s\f1after the receiver has been started with \f3\-r\f1 and \f3\-s\f1.Tests lasting at least tens of seconds should be used to obtain accuratemeasurements.Graphical presentations of throughput versus buffer size forbuffers ranging from tens of bytes to several ``pages'' can illuminatebottlenecks..PP.I Ttcpcan also be used as a ``network pipe'' for moving directory hierarchiesbetween systems when routing problems exist or when the use of othermechanisms is undesirable. For example, on the destination machine, use:.Exttcp \-r \-B | tar xvpf \-.Ee.PPand on the source machine:.Extar cf \- directory | ttcp \-t dest_machine.Ee.PPAdditional intermediate machines can be included by:.Exttcp \-r | ttcp \-t next_machine.Ee.SH OPTIONS.TP 10\-tTransmit mode..TP 10\-rReceive mode..TP 10\-uUse UDP instead of TCP..TP 10\-sIf transmitting, source a data pattern to network;if receiving, sink (discard) the data.Without the \f3\-s\f1 option, the default is to transmit data from.I stdinor print the received data to.IR stdout ..TP 10\-l \fIlength\fPLength of buffers in bytes (default 8192).For UDP, this value is the number of data bytes in each packet.The system limits the maximum UDP packet length. This limit can be changed with the \f3\-b\f1 option..TP 10\-b \fIsize\fPSet size of socket buffer.  The default varies from system to system.This parameter affects the maximum UDP packet length.It may not be possible to set this parameter on some systems(for example, 4.2BSD)..TP 10\-n \fInumbufs\fPNumber of source buffers transmitted (default 2048)..TP 10\-p \fIport\fPPort number to send to or listen on (default 2000).On some systems, this port may be allocated to another network daemon..TP 10\-DIf transmitting using TCP, do not buffer data when sending(sets the TCP_NODELAY socket option).It may not be possible to set this parameter on some systems(for example, 4.2BSD)..TP 10\-BWhen receiving data, output only full blocks, using the block size specified by \f3\-l\f1.This option is useful for programs, such as \f2tar\f1(1), that requirecomplete blocks..TP 10\-A \fIalign\fPAlign the start of buffers to this modulus (default 16384)..TP 10\-O \fIoffset\fPAlign the start of buffers to this offset (default 0).For example, ``\-A8192 \-O1'' causes buffers to start at the second byteof an 8192-byte page..TP 10\-f \fIformat\fPSpecify, using one of the following characters, the format of the throughput rates as kilobits/sec ('k'), kilobytes/sec ('K'), megabits/sec ('m'), megabytes/sec ('M'), gigabits/sec ('g'), or gigabytes/sec ('G').The default is 'K'..TP 10\-T``Touch'' the data as they are read in order to measure cache effects..TP 10\-vVerbose: print more statistics..TP 10\-dDebug: set the SO_DEBUG socket option..SH SEE ALSOping(1M), traceroute(1M), netsnoop(1M)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -