Skip to contentSkip to conversation

Congestion Avoidance Monitoring Tools

DISCUSSION Piet Delaney 5 participants 7 messages Apr 21, 2006 – Apr 24, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I'm upgrading our 2.6.12 kernel to 2.6.13, which includes significant congestion avoidance code additions and changes. I was wondering if there are any tools folks can recommend for testing the kernel to make sure the congestion avoidance code is operating correctly. For example the displaying of the congestion window as a function of time while undergoing convergence. For causing congestion I could modify a kernel to discard packets once in a while on a lab gateway and hit it with iperf. HP's netperf looks interesting.

Any suggestions?

-piet

Signature · 2 lines
---
[email protected]
#1 lore raw
Quoted 9 lines · Piet Delaney

I'm upgrading our 2.6.12 kernel to 2.6.13, which includes significant congestion avoidance code additions and changes. I was wondering if there are any tools folks can recommend for testing the kernel to make sure the congestion avoidance code is operating correctly. For example the displaying of the congestion window as a function of time while undergoing convergence. For causing congestion I could modify a kernel to discard packets once in a while on a lab gateway and hit it with iperf. HP's netperf looks interesting.

Quoted 5 lines

Any suggestions?

-piet

Hi,

Try having a look at the output of 'ss -i' (you may need to update to the latest iproute2 tools). You could either try and parse the text output of that or use the same inet_diag interface that ss uses to poll for the data it at regular intervals.

Signature · 4 lines
Thomas Young
http://cubinlab.ee.unimelb.edu.au/~tyo/
Research Assistant
CUBIN Research Centre - University of Melbourne
#2 lore raw
Quoted 16 lines · Tom Young
Quoted 9 lines · Piet Delaney

I'm upgrading our 2.6.12 kernel to 2.6.13, which includes significant congestion avoidance code additions and changes. I was wondering if there are any tools folks can recommend for testing the kernel to make sure the congestion avoidance code is operating correctly. For example the displaying of the congestion window as a function of time while undergoing convergence. For causing congestion I could modify a kernel to discard packets once in a while on a lab gateway and hit it with iperf. HP's netperf looks interesting.

Quoted 5 lines

Any suggestions?

-piet

Quoted 6 lines

Hi,

Try having a look at the output of 'ss -i' (you may need to update to the latest iproute2 tools). You could either try and parse the text output of that or use the same inet_diag interface that ss uses to poll for the data it at regular intervals.

Another way is to use tcptrace on a tcpdump file
(http://jarok.cs.ohiou.edu/software/tcptrace/)
It finds a lot of statistics about the dumped TCP connections.

Newer ethereal also has some TCP plotting functions that are useful. They don't display the congestion window directly, but you can see it indirectly.

-Andi

#3 lore raw
Quoted 19 lines · Andi Kleen
Quoted 18 lines · Tom Young
Quoted 9 lines · Piet Delaney

I'm upgrading our 2.6.12 kernel to 2.6.13, which includes significant congestion avoidance code additions and changes. I was wondering if there are any tools folks can recommend for testing the kernel to make sure the congestion avoidance code is operating correctly. For example the displaying of the congestion window as a function of time while undergoing convergence. For causing congestion I could modify a kernel to discard packets once in a while on a lab gateway and hit it with iperf. HP's netperf looks interesting.

Quoted 5 lines

Any suggestions?

-piet

Hi,

Quoted 8 lines
Quoted 4 lines

Try having a look at the output of 'ss -i' (you may need to update to the latest iproute2 tools). You could either try and parse the text output of that or use the same inet_diag interface that ss uses to poll for the data it at regular intervals.

Another way is to use tcptrace on a tcpdump file
(http://jarok.cs.ohiou.edu/software/tcptrace/)
It finds a lot of statistics about the dumped TCP connections.

Tcptrace looks pretty good, graphing the sequence numbers as a function of time was one of the features I'm looking for.

Quoted 3 lines

Newer ethereal also has some TCP plotting functions that are useful. They don't display the congestion window directly, but you can see it indirectly.

I never tried the ethereal graph facility, looks like another great idea.

Thanks,
-piet

Quoted 2 lines

-Andi

Signature · 2 lines
---
[email protected]
#4 lore raw
In reply to Piet Delaney
Quoted 9 lines · On Thu, 20 Apr 2006 22:26:14 -0700 Piet Delaney <[email protected]> wrote:

I'm upgrading our 2.6.12 kernel to 2.6.13, which includes significant congestion avoidance code additions and changes. I was wondering if there are any tools folks can recommend for testing the kernel to make sure the congestion avoidance code is operating correctly. For example the displaying of the congestion window as a function of time while undergoing convergence. For causing congestion I could modify a kernel to discard packets once in a while on a lab gateway and hit it with iperf. HP's netperf looks interesting.

Quoted 5 lines

Any suggestions?

-piet

2.6.13 still had lots of problems, things didn't really get working right till 2.6.15 or later. Especially with TSO.

I have a tool using kprobe's see http://developer.osdl.org/shemminger/prototypes/tcpprobe.tar.gz
I try to keep it up to date with current kernel and build process, last used it on 2.6.16.

#5 lore raw
Quoted 2 lines · * Stephen Hemminger | 2006-04-21 08:19:17 [-0700]:

2.6.13 still had lots of problems, things didn't really get working right till 2.6.15 or later. Especially with TSO.

--verbose?

Quoted 3 lines

I have a tool using kprobe's see http://developer.osdl.org/shemminger/prototypes/tcpprobe.tar.gz
I try to keep it up to date with current kernel and build process, last used it on 2.6.16.

wget http://developer.osdl.org/shemminger/prototypes/tcpprobe.tar.gz

Ended with following error code: ;-)

00:32:48 ERROR 403: Forbidden.

HGN

Signature · 1 line
Microsoft is to software what McDonalds is to gourmet cooking.
#6 lore raw
Quoted 11 lines · On Mon, 24 Apr 2006 00:52:35 +0200 Hagen Paul Pfeifer <[email protected]> wrote:
Quoted 2 lines · * Stephen Hemminger | 2006-04-21 08:19:17 [-0700]:

2.6.13 still had lots of problems, things didn't really get working right till 2.6.15 or later. Especially with TSO.

--verbose?

Quoted 3 lines

I have a tool using kprobe's see http://developer.osdl.org/shemminger/prototypes/tcpprobe.tar.gz
I try to keep it up to date with current kernel and build process, last used it on 2.6.16.

Quoted 8 lines

wget http://developer.osdl.org/shemminger/prototypes/tcpprobe.tar.gz

Ended with following error code: ;-)

00:32:48 ERROR 403: Forbidden.

HGN

Fixed