TTCP requires Cisco IOS® Software Version 11.2 or higher and Feature
Sets IP Plus (is- images) or Service Provider (p- images). Note: The
ttcp command is a hidden, unsupported, privileged mode command. As
such, its availability may vary from one Cisco IOS software release to
another, such that it might not exist in some releases. Some
platforms, for instance, require the Cisco IOS Enterprise feature set
in order to perform this activity.
customer-dialin-sj>ttcp transmit or receive [receive]: transmit Target IP address: 10.1.1.52 perform tcp half close [n]: use tcp driver [n]: send buflen : #buffers长度 send nbuf : 50 #buffers数量 bufalign : bufoffset : port : sinkmode [y]: buffering on writes [y]: show tcp information at end [n]: ttcp-t: buflen=8192, nbuf=50, align=16384/0, port=5001 tcp ->10.1.1.52 ttcp-t: connect (mss 1460, sndwnd 4096, rcvwnd 4128)
ttcp-t: buflen=8192, nbuf=50, align=16384/0, port=5001 tcp -> 10.1.1.52 ttcp-t: connect (mss 1460, sndwnd 4096, rcvwnd 4128) ttcp-t: 409600 bytes in 84544 ms (84.544 real seconds) (~3 kB/s) +++ ttcp-t: 50 I/O calls ttcp-t: 0 sleeps (0 ms total) (0 ms average)
Since it is most common to evaluate connect speeds in kbps (kilobits
per second, or 1000 bits per second) rather that KBps (kilobytes per
second, or 1024 bytes per second), we must use the information from
TTCP to calculate the bit rate (in kbps). Use the number of bytes
received and the transfer time to calculate the actual bit rate for
the connection. Calculate the bit rate by converting the number of
bytes into bits and then divide this by the time for the transfer. In
this example, the windows PC received 409600 bytes in 84.94 seconds.
We can calculate the bit rate to be (409600 bytes * 8 bits per byte)
divided by 84.94 seconds=38577 BPS or 38.577 kbps.