Scripts for Bandwidth Measurement

The information available from active tests such as BWCTL can be enhanced by embedding them in scripts which collect TCP stats before and even during the BWCTL test.

UNIX/Linux Scripts

  • BWCTL Script by Toby Rodwell (new version required for Linux 2.6.19) From an idea by Baruch Even (the Hamilton Institute) this script captures 'netstat' statisitics before and after a BWCTL run, and during the run periodically executes the command /usr/sbin/ss which shows socket state, including (importantly) the value for cwnd and ssthresh. Informal, non-rigorous testing indicates that in order to avoid reducing the achieveable throughput then (on a Pentium 4 3GHz, 512MB RAM device) the 'ss' command should not be run more frequently than every 0.1 or 0.2s
    • Scipt usage:- tcptest <target BWCTL server> <test duration in seconds> <'ss' check interval in seconds>
    • Example command:- tcptest 60 0.2
    • Example results of script

-- TobyRodwell - 25 Jun 2006

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-02-06 - TobyRodwell
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2004-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.