Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1629990

Re: Get amount of fast retransmissions from TCP info

From Lars Erik Storbukås <storbukas.dev@gmail.com>
Newsgroups linux.kernel
Subject Re: Get amount of fast retransmissions from TCP info
Date 2017-04-24 22:30 +0200
Message-ID <tzSMr-3ex-37@gated-at.bofh.it> (permalink)
References <tzRGF-2y4-5@gated-at.bofh.it> <tzS9H-2HD-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


2017-04-24 21:42 GMT+02:00 Neal Cardwell <ncardwell@google.com>:
> On Mon, Apr 24, 2017 at 3:11 PM, Lars Erik Storbukås
> <storbukas.dev@gmail.com> wrote:
>> I'm trying to get amount of congestion events in TCP caused by
>> DUPACK's (fast retransmissions), and can't seem to find any variable
>> in the TCP info struct which hold that value. There are three
>> variables in the TCP info struct that seem to hold similar congestion
>> values: __u8 tcpi_retransmits;__u32 tcpi_retrans; __u32
>> tcpi_total_retrans;
>>
>> Does anyone have any pointers on how to find this value in the TCP code?
>>
>> Please CC me personally if answering this question. Any help is
>> greatly appreciated.
>
> [I'm cc-ing the netdev list.]
>
> Do you need this per-socket? On a per-socket basis, I do not think
> there are separate totals for fast retransmits and timeout
> retransmits.
>
> If a global number is good enough, then you can get that number from
> the global network statistics. In "nstat" output they look like:
>
>   TcpExtTCPFastRetrans = packets sent in fast retransmit / fast recovery
>
>   TcpExtTCPSlowStartRetrans = packets sent in timeout recovery
>
> It sounds like TcpExtTCPFastRetrans is what you are after.
>
> Hope that helps,
> neal

Thanks for your answer Neal.

Yes, I need this information per-socket. What would be the most
appropriate place to update this value?

If none of the variables (mentioned above) contain any value in
regards to fast retransmits, what does the different values represent?

/Lars Erik

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Get amount of fast retransmissions from TCP info Lars Erik Storbukås <storbukas.dev@gmail.com> - 2017-04-24 21:20 +0200
  Re: Get amount of fast retransmissions from TCP info Neal Cardwell <ncardwell@google.com> - 2017-04-24 21:50 +0200
    Re: Get amount of fast retransmissions from TCP info Lars Erik Storbukås <storbukas.dev@gmail.com> - 2017-04-24 22:30 +0200
      Re: Get amount of fast retransmissions from TCP info Neal Cardwell <ncardwell@google.com> - 2017-04-24 23:10 +0200
        Re: Get amount of fast retransmissions from TCP info Lars Erik Storbukås <storbukas.dev@gmail.com> - 2017-04-24 23:40 +0200
          Re: Get amount of fast retransmissions from TCP info Andreas Petlund <apetlund@simula.no> - 2017-04-25 00:30 +0200
            Re: Get amount of fast retransmissions from TCP info Lars Erik Storbukås <storbukas.dev@gmail.com> - 2017-05-03 21:50 +0200
              Re: Get amount of fast retransmissions from TCP info Neal Cardwell <ncardwell@google.com> - 2017-05-03 22:10 +0200

csiph-web