NAME
rtcp, stcp – measure TCP bandwidth

SYNOPSIS
ip/rtcp [ –dftv ] [ –a announce–str ] [ –i secs ] [ –L log ] [ –l readsize ] [ –T secs ]

ip/stcp [ –sv ] [ –f file ] [ –F maxfrag ] [ –l writesize ] [ –T totsize ] target

DESCRIPTION
Rtcp and stcp together measure TCP bandwidth between the two machines on which they are run. Rtcp should be run first on the target system, then stcp on the local system. When rtcp is interrupted or exits, stcp will print the average megabytes–per–second transferred during the session. By default, the TCP service used is ttcp (port 5117).

Rtcp's options are:
a   Use an alternate announce–str.
d   Enable verbose debugging output.
f   Use floating point to compute throughput.
i   Print throughput every interval seconds (default 1).
l   Read readsize bytes at a time instead of the default 8192.
L   Write log file.
t   Shuffle bytes read one byte to the left.
T   Receive for secs seconds only.
v   Print more.

Stcp's options are:
f   Read from filename instead of standard input.
F   Set the TCP maximum fragment size to maxfragsize.
l   Write writesize bytes at a time instead of the 8192.
s   Wait for the receiving process to exit.
T   Transmit only totsize bytes.
v   Print more.

EXAMPLES
Measure bandwidth to go. On go, run
ip/rtcp

On the local system, run
ip/stcp –T10000000 go

SOURCE
/sys/src/cmd/ip/rtcp

SEE ALSO
ping(8)
Copyright © 2025 Plan 9 Foundation