Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to see amount of TCP retransmitting

Reply
Thread Tools Display Modes

How to see amount of TCP retransmitting

 
 
John
Guest
Posts: n/a

 
      08-15-2007, 10:29 AM

Hi All,

I would like to see how many retransmissions are made for a given TCP
socket (due to ACKs not received in time). I don't understand the
output of /proc/net/tcp. It has a field called retrnsmt but I don't
know if that's what I want, one web site says that field is unused.

Is there no way to see how many packet has been retransmitted for a
given socket?

 
Reply With Quote
 
 
 
 
Rick Jones
Guest
Posts: n/a

 
      08-15-2007, 05:37 PM
John <(E-Mail Removed)> wrote:
> I would like to see how many retransmissions are made for a given
> TCP socket (due to ACKs not received in time). I don't understand
> the output of /proc/net/tcp. It has a field called retrnsmt but I
> don't know if that's what I want, one web site says that field is
> unused.


> Is there no way to see how many packet has been retransmitted for a
> given socket?


Well, there is always the old fashioned way - tcpdump configured to
only trace those segments belonging to the TCP connection with which
the socket is associated.

If you are running in the context of the process, there is the
(non-portable) TCP_INFO) getsockopt() described in the tcp manpage.

rick jones
--
a wide gulf separates "what if" from "if only"
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
 
John
Guest
Posts: n/a

 
      08-17-2007, 12:13 PM

> Well, there is always the old fashioned way - tcpdump configured to
> only trace those segments belonging to the TCP connection with which
> the socket is associated.


Specifying source and destination IP addresses and ports would do
that,
but how do I filter out only those packet that a retransmitted?

And will not entering promiscuous mode affect the situation quite a
lot?

> If you are running in the context of the process, there is the
> (non-portable) TCP_INFO) getsockopt() described in the tcp manpage.


This is unfortunately not the case.

 
Reply With Quote
 
Rick Jones
Guest
Posts: n/a

 
      08-17-2007, 05:40 PM
John <(E-Mail Removed)> wrote:
> Specifying source and destination IP addresses and ports would do
> that, but how do I filter out only those packet that a
> retransmitted?


SMOPP - Small Matter Of Post Processing You would look at the TCP
segment sequence numbers and the lengths and see if any overlap.
Those are retransmissions.

> And will not entering promiscuous mode affect the situation quite a
> lot?


Promiscuous mode vs not in a "modern" switched network isn't that much
different since 99 times out of 10 your NIC doesn't see anything more
in promiscuous mode than it would have when not.

> > If you are running in the context of the process, there is the
> > (non-portable) TCP_INFO) getsockopt() described in the tcp manpage.


> This is unfortunately not the case.


If one cannot indeed access the FD's via other external means, you
could, in theory, create an LD_PRELOAD library which intercepts calls
to a suitable subset of the socket calls (perhaps just connect() and
accept() but I've not thought it through) and then dups the FDs, and
passes access rights to the dups to another process through a pipe.
That other process then could I presume make the desired getsockopt()
calls.

Of course, if one is already LD_PRELOADing and intercepting socket
calls, one could go further and intercept a few of the more commonly
called socket calls and have some logic which then occasionally
decided to make the setsockopt() calls actually in-process.

rick jones
--
Wisdom Teeth are impacted, people are affected by the effects of events.
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor your usage amount Chris Broadband 8 02-16-2007 04:52 PM
Massive amount of broadcasts from a server. Wingnut Windows Networking 4 11-23-2006 12:31 PM
Power Levels and Amount of Radiation fake.e-mail@stonyx.com Wireless Internet 2 04-24-2006 01:26 AM
Amount of forwarded traffic Ni@m Linux Networking 3 01-03-2006 10:54 AM
Amount of Data down/up loaded Andrew Broadband 7 09-16-2005 12:45 PM



1 2 3 4 5 6 7 8 9 10 11