From: Gerrit Renker <gerrit@erg.abdn.ac.uk>
To: dccp@vger.kernel.org
Subject: Re: Regression Tests
Date: Mon, 25 Jun 2007 09:36:54 +0000 [thread overview]
Message-ID: <200706251036.54465@strip-the-willow> (raw)
[-- 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
next reply other threads:[~2007-06-25 9:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-25 9:36 Gerrit Renker [this message]
2007-06-27 4:49 ` Regression Tests Ian McDonald
2007-06-27 9:06 ` Gerrit Renker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200706251036.54465@strip-the-willow \
--to=gerrit@erg.abdn.ac.uk \
--cc=dccp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox