lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Re: A question about the LwIP stats


From: Niels Hendriks
Subject: [lwip-users] Re: A question about the LwIP stats
Date: Fri, 26 Jun 2009 00:27:26 -0700 (PDT)


On Thu, 2009-06-25 at 14:28 +0100, Kieran Mansley wrote:

>> On Thu, 2009-06-25 at 06:11 -0700, Niels Hendriks wrote:
>> I assumed that when the callback function gets called (i.e. data is
>> received) that the TCP received stat is increased by 1.
>> Therefore the func_cnt should be approximately the same als the TCP
>> received stat. What am I missing here?
>
> The tcp.recv counter is incremented for each received packet.  This may
> include packets that are not destined for your application.  The stack
> may also combine multiple received packets into one call to your
> application, for example if there is any out of order segments.
>
> The tcp.sent counter is incremented for each sent packet.  This may
> combine multiple writes by your application, for example if the Nagle
> algorithm is in use.  It may also include packets not sent by your
> application, and will count retransmitted packets as separate from the
> original ones.
>
> Kieran

That clarifies a lot to me.
Because one would conclude that the tcp.recv should be equal or greater then my own counter,
it seems that there is something wrong with my application then. I'll look into it.

Thanks again for the help :-)

Niels


reply via email to

[Prev in Thread] Current Thread [Next in Thread]