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

* Re: Regression Tests
  2007-06-25  9:36 Regression Tests Gerrit Renker
@ 2007-06-27  4:49 ` Ian McDonald
  2007-06-27  9:06 ` Gerrit Renker
  1 sibling, 0 replies; 3+ messages in thread
From: Ian McDonald @ 2007-06-27  4:49 UTC (permalink / raw)
  To: dccp

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

Gerrit,

It was my fault for using the TFRC throughput page and not changing
delayed acks from 2 to 1 which is used in RFC3448 (and our code) as
the default. I've gone and corrected my figures. I'm now within 1% of
your figures - I think this is rounding error from bc but not 100%
sure. I've attached the spreadsheet I used for verification which
matched Perry's page.

The scripts are all on that page at
http://linux-net.osdl.org/index.php/DCCP_Testing#netem and loading
CCID3 at http://linux-net.osdl.org/index.php/DCCP#Choosing_and_initialising_your_CCID

Maybe I have not worded it well? If not please feel free to improve.

Regards,

Ian

On 6/25/07, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> 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.
>
>


-- 
Web: http://wand.net.nz/~iam4/
Blog: http://iansblog.jandi.co.nz
WAND Network Research Group

[-- Attachment #2: xcalc.sxc --]
[-- Type: application/vnd.sun.xml.calc, Size: 6138 bytes --]

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

* Re: Regression Tests
  2007-06-25  9:36 Regression Tests Gerrit Renker
  2007-06-27  4:49 ` Ian McDonald
@ 2007-06-27  9:06 ` Gerrit Renker
  1 sibling, 0 replies; 3+ messages in thread
From: Gerrit Renker @ 2007-06-27  9:06 UTC (permalink / raw)
  To: dccp

Sorry this was all due to my not reading the page carefully enough. 

You have done an excellent job of setting all this information up (and selecting meaningful 
test cases in the first place), so that it should now be much easier to assess CCID3 performance. 

With the spreadsheet I get the same results also; for quick tests I find Perry's calculator
too powerful (too many knobs), using spreadsheet or calculator is better.

Thanks,
Gerrit

Quoting Ian McDonald:
|  Gerrit,
|  
|  It was my fault for using the TFRC throughput page and not changing
|  delayed acks from 2 to 1 which is used in RFC3448 (and our code) as
|  the default. I've gone and corrected my figures. I'm now within 1% of
|  your figures - I think this is rounding error from bc but not 100%
|  sure. I've attached the spreadsheet I used for verification which
|  matched Perry's page.
|  
|  The scripts are all on that page at
|  http://linux-net.osdl.org/index.php/DCCP_Testing#netem and loading
|  CCID3 at http://linux-net.osdl.org/index.php/DCCP#Choosing_and_initialising_your_CCID
|  
|  Maybe I have not worded it well? If not please feel free to improve.
|  
|  Regards,
|  
|  Ian
|  
|  On 6/25/07, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
|  > 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.
|  >
|  >
|  
|  

^ 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