netdev
[Top] [All Lists]

Re: way of figuring out total number of retransmitted packets on a TCP s

To: Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx>
Subject: Re: way of figuring out total number of retransmitted packets on a TCP socket?
From: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Wed, 20 Oct 2004 15:14:48 -0700
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20041020130134.GC24757@xi.wantstofly.org>
References: <20041020130134.GC24757@xi.wantstofly.org>
Sender: netdev-bounce@xxxxxxxxxxx
On Wed, 20 Oct 2004 15:01:34 +0200
Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx> wrote:

> I'm looking for a way of counting the total number of retransmitted packets
> sent on a TCP connection.  I tried querying TCP_INFO:tcpi_retransmits, but
> that seems to be not the metric I'm looking for.
> 
> Anyone got any ideas?  (Apart from using tcpdump+tcptrace.)

tcpi_retransmits only accounts for timeout based retransmits.

Retransmits which occur dynamically due to fast-retransmit
and other non-timeout based decisions are accounted for
in "tcpi_retrans", so that is probably the value you are
looking for.

Unlike another person's response to this thread, you don't
need the huge web100 patch to get at this information :-)

<Prev in Thread] Current Thread [Next in Thread>