lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] size of packet


From: Oscar F
Subject: Re: [lwip-users] size of packet
Date: Thu, 4 Mar 2010 13:22:23 +0100

Thank you,

for example if i want to send a size about 1Mbyte,
i am going to use this function send (..., 1Mbyte,...); with this size, but this packet then will be divided in several packet won´t be?

My aim is to send a big packet, about 29Mbytes

Thanks
Oscar




On Thu, Mar 4, 2010 at 1:12 PM, Kieran Mansley <address@hidden> wrote:
On Thu, 2010-03-04 at 12:58 +0100, Oscar F wrote:
> Hello everybody,
>
>
> My application use lwip 3.1. with AVR32 EVK1100
>
> I have a important question. i want to send 50Kbytes, and use the
> fuctions send(....).
>
> why in the sniffer did i see the packet divided in several sizes.

Because lwIP is allowed to chop your sends up into packets in whatever
way is most convenient.  It might for example only have 100 bytes of
spare TCP window and decide to send a 100 byte packet to fill the window
instead of waiting for more space.  It might only have 100 bytes in the
send queue and so decide to send a 100 byte packet to use it up.  It
might not want the hassle of merging separate send calls together into
one packet.  And so on.

> is there any possibility to put the packet full in the network?

To always only send MTU packets?  No, that's not really possible.

> What is the maximun size on the packet that i can use, because the
> library the function size, has a length 64 bit?

The maximum packet size is set by the network: it's the MTU of the
interface.

Kieran



_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users



--
"En la vida hay tres cosas que nunca dan marcha atras, la palabra pronunciada, la flecha lanzada y la oportunidad perdida"

reply via email to

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