Begin File: ttcp.tgz Description:tool for measure tcp throughput Keywords: TCP BENCHMARK Version: Entered-date: Author: Ported-by: Original-site: Copying-policy: public domain Supplemental: * Test TCP connection. Makes a connection on port 5001 * and transfers fabricated buffers or data copied from stdin. * * Usable on 4.2, 4.3, and 4.1a systems by defining one of * BSD42 BSD43 (BSD41a) * Machines using System V with BSD sockets should define SYSV. * * Modified for operation under 4.2BSD, 18 Dec 84 * T.C. Slattery, USNA * Minor improvements, Mike Muuss and Terry Slattery, 16-Oct-85. * Modified in 1989 at Silicon Graphics, Inc. * catch SIGPIPE to be able to print stats when receiver has died * for tcp, don't look for sentinel during reads to allow small transfers * increased default buffer size to 8K, nbuf to 2K to transfer 16MB * moved default port to 5001, beyond IPPORT_USERRESERVED * make sinkmode default because it is more popular, * -s now means don't sink/source * count number of read/write system calls to see effects of * blocking from full socket buffers * for tcp, -D option turns off buffered writes (sets TCP_NODELAY sockopt) * buffer alignment options, -A and -O * print stats in a format that's a bit easier to use with grep & awk * for SYSV, mimic BSD routines to use most of the existing timing code * Modified by Steve Miller of the University of Maryland, College Park * -b sets the socket buffer size (SO_SNDBUF/SO_RCVBUF) * Modified Sept. 1989 at Silicon Graphics, Inc. * restored -s sense at request of tcs@brl archive contents: drwxrwxr-x 0 root techies Jan 22 14:03 ttcp/ -rwxrwxr-x 0 root techies 62181 Oct 20 21:49 ttcp/ttcp -rw-rw-r-- 0 root techies 17909 Oct 30 13:53 ttcp/ttcp.c -rw-rw-r-- 0 root techies 790 Nov 6 11:45 ttcp/ttcp.use End