|
From: | David Empson |
Subject: | Re: [lwip-users] Help in getting maximum throughput with LWIP. |
Date: | Wed, 31 Mar 2010 10:24:16 +1300 |
1500 is the normal limit on size for the body of an
Ethernet frame. Subtract 20 bytes for the IP header and 20 for the TCP header,
and you are left with 1460 bytes of data delivered via TCP for a standard
Ethernet frame.
There is a mechanism known as "jumbo frames", which
allows up to 9000 bytes in an Ethernet frame. It can only be used if it is
supported by both the sender and receiver (and any switches between
them). Jumbo frames tend to be associated with high speed network
interfaces like Gigabit Ethernet (1000Base-T) but there may be some
100Mbit Ethernet controllers which support jumbo frames. On PCs, jumbo frames
may only be available if enabled via a system configuration setting (which
should only be set if your network infrastructure is compatible with jumbo
frames). If your packets are travelling beyond a LAN, then
you are rarely able to achieve packet sizes larger than 1500 bytes. Many
Internet connections have at least one hop with a maximum frame size somewhat
less than 1500, and the smallest possible limit is 576.
Routers will typically fragment
packets that are too large to send over the next hop, which reduces
efficiency further.
----- Original Message -----
|
[Prev in Thread] | Current Thread | [Next in Thread] |