CoDel AQM discussions
 help / color / mirror / Atom feed
* [Codel] Network test tools for many parallel/concurrent connections?
@ 2013-05-14 13:48 Jesper Dangaard Brouer
  2013-05-14 14:46 ` [Codel] [Bloat] " Dave Taht
  2013-05-14 15:47 ` Stephen Hemminger
  0 siblings, 2 replies; 8+ messages in thread
From: Jesper Dangaard Brouer @ 2013-05-14 13:48 UTC (permalink / raw)
  To: codel, bloat


(I'm testing fq_codel and codel)

I need a test tool that can start many TCP streams (>1024).
During/after the testrun I want to know if the connections got a fair
share of the bandwidth.

Can anyone recomment tools for this?

After the test I would also like to, "deep-dive" analyse one of the TCP
streams to see how the congestion window, outstanding-win/data is
behaving.  Back in 2005 I used-to-use a tool  called
"tcptrace" (http://www.tcptrace.org).
Have any better tools surfaced?

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Sr. Network Kernel Developer at Red Hat
  Author of http://www.iptv-analyzer.org
  LinkedIn: http://www.linkedin.com/in/brouer

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

* Re: [Codel] [Bloat] Network test tools for many parallel/concurrent connections?
  2013-05-14 13:48 [Codel] Network test tools for many parallel/concurrent connections? Jesper Dangaard Brouer
@ 2013-05-14 14:46 ` Dave Taht
  2013-05-14 19:48   ` Jesper Dangaard Brouer
  2013-05-14 15:47 ` Stephen Hemminger
  1 sibling, 1 reply; 8+ messages in thread
From: Dave Taht @ 2013-05-14 14:46 UTC (permalink / raw)
  To: Jesper Dangaard Brouer; +Cc: codel, bloat

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

I still use tcptrace and xplot.org for deep dives.

I just fired off 2048 netperfs to localhost on my laptop.  It started
bogging down at 1000 but made it to the end, all connections chugging away.

Probably a better tool would be the apache benchmark `ab` or something else
that is built to stress out web sites.
On May 14, 2013 10:15 AM, "Jesper Dangaard Brouer" <jbrouer@redhat.com>
wrote:

>
> (I'm testing fq_codel and codel)
>
> I need a test tool that can start many TCP streams (>1024).
> During/after the testrun I want to know if the connections got a fair
> share of the bandwidth.
>
> Can anyone recomment tools for this?
>
> After the test I would also like to, "deep-dive" analyse one of the TCP
> streams to see how the congestion window, outstanding-win/data is
> behaving.  Back in 2005 I used-to-use a tool  called
> "tcptrace" (http://www.tcptrace.org).
> Have any better tools surfaced?
>
> --
> Best regards,
>   Jesper Dangaard Brouer
>   MSc.CS, Sr. Network Kernel Developer at Red Hat
>   Author of http://www.iptv-analyzer.org
>   LinkedIn: http://www.linkedin.com/in/brouer
> _______________________________________________
> Bloat mailing list
> Bloat@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/bloat
>

[-- Attachment #2: Type: text/html, Size: 1966 bytes --]

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

* Re: [Codel] [Bloat] Network test tools for many parallel/concurrent connections?
  2013-05-14 13:48 [Codel] Network test tools for many parallel/concurrent connections? Jesper Dangaard Brouer
  2013-05-14 14:46 ` [Codel] [Bloat] " Dave Taht
@ 2013-05-14 15:47 ` Stephen Hemminger
  2013-05-14 17:01   ` Dave Taht
  2013-05-14 19:20   ` Jesper Dangaard Brouer
  1 sibling, 2 replies; 8+ messages in thread
From: Stephen Hemminger @ 2013-05-14 15:47 UTC (permalink / raw)
  To: Jesper Dangaard Brouer; +Cc: codel, bloat

On Tue, 14 May 2013 15:48:38 +0200
Jesper Dangaard Brouer <jbrouer@redhat.com> wrote:

> 
> (I'm testing fq_codel and codel)
> 
> I need a test tool that can start many TCP streams (>1024).
> During/after the testrun I want to know if the connections got a fair
> share of the bandwidth.
> 
> Can anyone recomment tools for this?
> 
> After the test I would also like to, "deep-dive" analyse one of the TCP
> streams to see how the congestion window, outstanding-win/data is
> behaving.  Back in 2005 I used-to-use a tool  called
> "tcptrace" (http://www.tcptrace.org).
> Have any better tools surfaced?
> 


You may want to look at some of the "realistic" load tools since
in real life not all flows are 100% of bandwidth and long lived.

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

* Re: [Codel] [Bloat] Network test tools for many parallel/concurrent connections?
  2013-05-14 15:47 ` Stephen Hemminger
@ 2013-05-14 17:01   ` Dave Taht
  2013-05-14 18:13     ` Jim Gettys
  2013-05-14 19:20   ` Jesper Dangaard Brouer
  1 sibling, 1 reply; 8+ messages in thread
From: Dave Taht @ 2013-05-14 17:01 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: codel, Jesper Dangaard Brouer, bloat

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

On May 14, 2013 12:21 PM, "Stephen Hemminger" <stephen@networkplumber.org>
wrote:
>
> On Tue, 14 May 2013 15:48:38 +0200
> Jesper Dangaard Brouer <jbrouer@redhat.com> wrote:
>
> >
> > (I'm testing fq_codel and codel)
> >
> > I need a test tool that can start many TCP streams (>1024).
> > During/after the testrun I want to know if the connections got a fair
> > share of the bandwidth.
> >
> > Can anyone recomment tools for this?
> >
> > After the test I would also like to, "deep-dive" analyse one of the TCP
> > streams to see how the congestion window, outstanding-win/data is
> > behaving.  Back in 2005 I used-to-use a tool  called
> > "tcptrace" (http://www.tcptrace.org).
> > Have any better tools surfaced?
> >
>
>
> You may want to look at some of the "realistic" load tools since
> in real life not all flows are 100% of bandwidth and long lived.

You may want to look at some realistic load tools since in real life
99.9Xx% of all flows are 100% of bandwidth AND long lived.

At various small timescales a flow or flows can be 100% of bandwidth.

But it still takes one full rate flow to mess up your whole day.

This is why I suggested ab.

Here bandwidth is an average usually taken over a second and often much
more. If you sample at a higher resolution, like a ms, you are either at
capacity or empty.

Another way of thinking about it is for example, mrtg takes samples every
30 seconds and the most detailed presentation of that data it gives you is
on a 5 minute interval. The biggest fq codel site I have almost never shows
a 5 minute average over 60% of capacity, but I know full well that Netflix
users are clobbering things on a 10 sec interval and that there are
frequent peaks where it is running at capacity for a few seconds at a time
from looking at the data on a much finer interval and the fq codel drop
statistics.

> _______________________________________________
> Bloat mailing list
> Bloat@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/bloat

[-- Attachment #2: Type: text/html, Size: 2698 bytes --]

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

* Re: [Codel] [Bloat] Network test tools for many parallel/concurrent connections?
  2013-05-14 17:01   ` Dave Taht
@ 2013-05-14 18:13     ` Jim Gettys
  0 siblings, 0 replies; 8+ messages in thread
From: Jim Gettys @ 2013-05-14 18:13 UTC (permalink / raw)
  To: Dave Taht; +Cc: codel, Jesper Dangaard Brouer, bloat

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

There are really three kinds of killer traffic here, and it's important to
understand the differences so as to best design testing:

   1) long lived flows that clobber you and ruin your whole day.

   2) "streaming" video traffic (e.g. netflix, youtube, hulu), that are
actually "chunking" data over TCP, and putting periodic latency into your
connection as they temporarily build some queue.

fq_codel can deal really, really well with both 1 and 2.  But the number of
flows is usually not very large.

   3) the DOS attacks of visiting a new sharded web page on your
broadband/wireless connection, where you get the multiplication of N
connections * TCP Initial Window size, sometime resulting in pulses of
order hundred packets in a ton of new flows.  I've measured transient
latency of order 100's of milliseconds on a 50Mbps cable system! These web
sites generate a bunch of flows effectively simultaneously, each with often
only a few packets so never even do slow start to speak of.

Exactly what damage is done given 3, using fq_codel's algorithm isn't
entirely clear to me.  Many/most images on such sharded web sites are quite
small, even less than one packet at times.

fq_codel is clearly radically better than nothing at handling 3, but I
suspect we still have work to do...  Spdy will help if/when fully deployed,
but the ability to game buffers remains, and will continue to provide
incentive to anti-social applications to mis-behave.  We're really far from
done, but as Matt Mathis notes, what we have now in fq_codel is soooo,
sooooo much better than the current disaster, we shouldn't wait to deploy
something 'better' while working out problems like that.

I've thought for a while that exactly how we want to define a "flow" may
depend on where we are in the network: what's appropriate for an ISP is
different than what we do in the home, for example.

How best to test for the problems these generate, at various points in the
network, is still a somewhat open question.  And ensuring everything works
well at scale is extremely important.

I'm glad Jesper is doing scaling tests!
                                        - Jim



On Tue, May 14, 2013 at 1:01 PM, Dave Taht <dave.taht@gmail.com> wrote:

>
> On May 14, 2013 12:21 PM, "Stephen Hemminger" <stephen@networkplumber.org>
> wrote:
> >
> > On Tue, 14 May 2013 15:48:38 +0200
> > Jesper Dangaard Brouer <jbrouer@redhat.com> wrote:
> >
> > >
> > > (I'm testing fq_codel and codel)
> > >
> > > I need a test tool that can start many TCP streams (>1024).
> > > During/after the testrun I want to know if the connections got a fair
> > > share of the bandwidth.
> > >
> > > Can anyone recomment tools for this?
> > >
> > > After the test I would also like to, "deep-dive" analyse one of the TCP
> > > streams to see how the congestion window, outstanding-win/data is
> > > behaving.  Back in 2005 I used-to-use a tool  called
> > > "tcptrace" (http://www.tcptrace.org).
> > > Have any better tools surfaced?
> > >
> >
> >
> > You may want to look at some of the "realistic" load tools since
> > in real life not all flows are 100% of bandwidth and long lived.
>
> You may want to look at some realistic load tools since in real life
> 99.9Xx% of all flows are 100% of bandwidth AND long lived.
>
> At various small timescales a flow or flows can be 100% of bandwidth.
>
> But it still takes one full rate flow to mess up your whole day.
>
> This is why I suggested ab.
>
> Here bandwidth is an average usually taken over a second and often much
> more. If you sample at a higher resolution, like a ms, you are either at
> capacity or empty.
>
> Another way of thinking about it is for example, mrtg takes samples every
> 30 seconds and the most detailed presentation of that data it gives you is
> on a 5 minute interval. The biggest fq codel site I have almost never shows
> a 5 minute average over 60% of capacity, but I know full well that Netflix
> users are clobbering things on a 10 sec interval and that there are
> frequent peaks where it is running at capacity for a few seconds at a time
> from looking at the data on a much finer interval and the fq codel drop
> statistics.
>
> > _______________________________________________
> > Bloat mailing list
> > Bloat@lists.bufferbloat.net
> > https://lists.bufferbloat.net/listinfo/bloat
>
> _______________________________________________
> Bloat mailing list
> Bloat@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/bloat
>
> 

[-- Attachment #2: Type: text/html, Size: 7042 bytes --]

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

* Re: [Codel] [Bloat] Network test tools for many parallel/concurrent connections?
  2013-05-14 15:47 ` Stephen Hemminger
  2013-05-14 17:01   ` Dave Taht
@ 2013-05-14 19:20   ` Jesper Dangaard Brouer
  1 sibling, 0 replies; 8+ messages in thread
From: Jesper Dangaard Brouer @ 2013-05-14 19:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: codel, bloat

On Tue, 14 May 2013 08:47:26 -0700
Stephen Hemminger <stephen@networkplumber.org> wrote:

> You may want to look at some of the "realistic" load tools since
> in real life not all flows are 100% of bandwidth and long lived.

Well perhaps it would be easier to use some apache load test tool, but
in this test scenario I just want see how well fq_codel scales with
many concurrent bulk transfers.

Can people on the list recommend any commercial test-equip solutions?

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Sr. Network Kernel Developer at Red Hat
  Author of http://www.iptv-analyzer.org
  LinkedIn: http://www.linkedin.com/in/brouer

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

* Re: [Codel] [Bloat] Network test tools for many parallel/concurrent connections?
  2013-05-14 14:46 ` [Codel] [Bloat] " Dave Taht
@ 2013-05-14 19:48   ` Jesper Dangaard Brouer
  2013-05-14 22:26     ` Rick Jones
  0 siblings, 1 reply; 8+ messages in thread
From: Jesper Dangaard Brouer @ 2013-05-14 19:48 UTC (permalink / raw)
  To: Dave Taht; +Cc: codel, bloat

On Tue, 14 May 2013 07:46:02 -0700
Dave Taht <dave.taht@gmail.com> wrote:

> I still use tcptrace and xplot.org for deep dives.

Okay, I just hoped something new popped up.

Didn't we add some tcp trace system to the kernel?


> I just fired off 2048 netperfs to localhost on my laptop.  It started
> bogging down at 1000 but made it to the end, all connections chugging
> away.

So you just did a for loop with netperf's I assume.
If so, remember to adjust the "ulimit" of the shell.
Run 'ulimit -a' and you most likely need to adjust "ulimit -u".

I also played with "iperf --parallel" but iperf is not consistently
starting all the TCP connections.


> Probably a better tool would be the apache benchmark `ab` or
> something else that is built to stress out web sites.

Yes, I guess that might be the easiest "quick" solution.

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Sr. Network Kernel Developer at Red Hat
  Author of http://www.iptv-analyzer.org
  LinkedIn: http://www.linkedin.com/in/brouer

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

* Re: [Codel] [Bloat] Network test tools for many parallel/concurrent connections?
  2013-05-14 19:48   ` Jesper Dangaard Brouer
@ 2013-05-14 22:26     ` Rick Jones
  0 siblings, 0 replies; 8+ messages in thread
From: Rick Jones @ 2013-05-14 22:26 UTC (permalink / raw)
  To: Jesper Dangaard Brouer; +Cc: codel, bloat

It will not match what one can get from tcptrace, or commercial 
solutions, but netperf can be asked to emit a number of potentially 
"intersting" things.  Using the "omni output selectors" one can request 
statistics for some interesting latencies:

raj@tardy:~$ netperf -- -O ? | grep LAT
RT_LATENCY
MIN_LATENCY
MAX_LATENCY
P50_LATENCY
P90_LATENCY
P99_LATENCY
MEAN_LATENCY
STDDEV_LATENCY

For a STREAM test those will be based on time in the send call.  For a 
MAERTS test those will be time in the receive call.  For an RR test 
those will be the round-trip times at the application layer.

You can also ./configure --enable-histogram and if the verbosity is set 
to 2 or more, a histogram of the distribution will be emitted which will 
resemble:

Histogram of time spent in send() call.
UNIT_USEC     :    0:    0:  434: 404912: 715323: 800663: 263305: 9336: 
2439: 1522
TEN_USEC      :    0: 2276:   41:   48:   97:   67:   79:   17:    5:    7
HUNDRED_USEC  :    0:   28:    2:    2:    0:    2:    0:    0:    1:    1
UNIT_MSEC     :    0:    3:    2:    0:    1:    0:    1:    0:    0:    0
TEN_MSEC      :    0:    0:    0:    0:    0:    0:    0:    0:    0:    0
HUNDRED_MSEC  :    0:    0:    0:    0:    0:    0:    0:    0:    0:    0
UNIT_SEC      :    0:    0:    0:    0:    0:    0:    0:    0:    0:    0
TEN_SEC       :    0:    0:    0:    0:    0:    0:    0:    0:    0:    0
 >100_SECS: 0
HIST_TOTAL:      2200614

when running under Linux, netperf also knows how to report the number of 
TCP retransmissions encountered over the life of the data connection:

raj@tardy:~$ netperf -- -O ? | grep -i retran
LOCAL_TRANSPORT_RETRANS
REMOTE_TRANSPORT_RETRANS

And if you want to have an idea of what each individual netperf was 
doing in terms of mbit/s or trans/s over discrete points in its 
lifetime, you can ./configure --enable-demo and it will emit interim 
results at roughly the requested interval which can then be 
post-processed.  An example of that being done can be found in 
doc/examples/runemomniaggdemo.sh script and doc/examples/post_proc.py

happy benchmarking,

rick jones

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

end of thread, other threads:[~2013-05-14 22:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-14 13:48 [Codel] Network test tools for many parallel/concurrent connections? Jesper Dangaard Brouer
2013-05-14 14:46 ` [Codel] [Bloat] " Dave Taht
2013-05-14 19:48   ` Jesper Dangaard Brouer
2013-05-14 22:26     ` Rick Jones
2013-05-14 15:47 ` Stephen Hemminger
2013-05-14 17:01   ` Dave Taht
2013-05-14 18:13     ` Jim Gettys
2013-05-14 19:20   ` Jesper Dangaard Brouer

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