DCCP protocol discussions
 help / color / mirror / Atom feed
* Re: Regression Tests
@ 2007-06-25  9:36 Gerrit Renker
  2007-06-27  4:49 ` Ian McDonald
  2007-06-27  9:06 ` Gerrit Renker
  0 siblings, 2 replies; 3+ messages in thread
From: Gerrit Renker @ 2007-06-25  9:36 UTC (permalink / raw)
  To: dccp

[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]

Ian -

|  Results here now:
|  http://linux-net.osdl.org/index.php/DCCP_Testing#Regression_testing

many thanks indeed for working out these test cases and reference points.
Testing is really very much needed at this stage and the input is helpful.

The test setup is very useful and I am strongly in favour of using
 
     http://linux-net.osdl.org/index.php/DCCP_Testing#Regression_testing

as a kind of benchmark for all further development on the test tree - to see
whether results deteriorate.

If you have links to scripts you use that would be great. 



I am getting confused by Perry's throughput calculator. Attached is a
simple bc(1) script which can be made executable and takes s, R, p.

I get different results from the ones on the web page (using 1424 bytes):

  * for the 150ms / 10% case, I get Xcalc = 132.44  Kbits/sec and 
  * for the  40ms / 1%  case, I get Xcalc =   3.27  Mbits/sec

But this may likely be due to using slightly different `s' and rounding errors;
for live testing it is reasonably close.

[-- Attachment #2: throughput_calculator.bc --]
[-- Type: text/plain, Size: 710 bytes --]

#!/usr/bin/bc -l
#
# Compute the allowed sending rate X_calc using the formula of [RFC 3448, 3.1].
#
# This script can be run standalone, or using a pipe.
# For example, to compute  for 
#   *   s=1424  bytes, 
#   * RTT= 150  milliseconds, and 
#   *  p =  10  %,
# use
#	 echo 1424 150 10 | ./throughput_calculator.bc
#
# The result is about 132 Kbits/sec

scale = 3

define f(p) { return sqrt(2*p/3) + 12 * sqrt(3*p/8) * (32 * p^3 + p) }
define xcalc(s,r,p) { return s*8 * 10^3/(r * f(p/100.0)) }

print "TFRC throughput calculator\n\n"

print "s   in bytes: "; s = read()
print "RTT in msecs: "; r = read()
print "p   in %    : "; p = read()

print "\nXcalc = ", xcalc(s,r,p) / 1024.0, " Kbits/sec\n"
quit

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-27  9:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-25  9:36 Regression Tests Gerrit Renker
2007-06-27  4:49 ` Ian McDonald
2007-06-27  9:06 ` Gerrit Renker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox