lwip-users
[Top][All Lists]
Advanced

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

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


From: Kieran Mansley
Subject: Re: [lwip-users] A question about the LwIP stats
Date: Thu, 25 Jun 2009 14:28:06 +0100

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





reply via email to

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