[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] netconn_write throughput stuck at 1024 bytes
From: |
Jonathan Larmour |
Subject: |
Re: [lwip-users] netconn_write throughput stuck at 1024 bytes |
Date: |
Wed, 21 Jan 2009 02:32:33 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.8-1.1.fc3.4.legacy (X11/20060515) |
DownyTif wrote:
first, I want to say that I'm new to this lwip world. I'm trying to make a
Ethernet speed test using the EVK1100 board from ATMEL (AVR32). The
communication will be between the board and a PC using 2 ports, one
dedicated to bidir requests/responses between the board and the host, the
other dedicated to maximum speed data sending from the board to the host. I
would like to be able to send packets of 32768 bytes.
Do you really mean "packets" there? Is this ethernet? Ethernet's normal
MTU is around 1500 bytes, unless you're going to be using jumbo frames.
You can send larger IP packets, but they get fragmented down to the MTU
size, which is inefficient.
Presently, for some reason, I can't send packets bigger than 1024 bytes.
Do you mean the data doesn't get sent at all, or it gets sent, but not all
2048 bytes in one packet on the wire?
Even if I write this:
writeRet = netconn_write(pNewConnection, g_pSDRAM, 2048, NETCONN_COPY);
what I get on the PC is 1024-byte packets. Tracing in the code, I found that
my connection is correctly configured ("pcb->mss" is 2048) but for some
reason, "pcb->mss" becomes 1460 somewhere (found by tracing in tcp_out.c).
pcb->mss is set according to the MSS provided by the remote host when
establishing the TCP connection. The remote host is probably setting its
MSS option to 1460. Use a packet sniffer on the PC to see what's going on
(tcpdump, ethereal, wireshark, etc.). You would need to configure your
remote host's TCP stack to indicate a larger MSS.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------ Opinions==mine
- [lwip-users] netconn_write throughput stuck at 1024 bytes, DownyTif, 2009/01/20
- Re: [lwip-users] netconn_write throughput stuck at 1024 bytes,
Jonathan Larmour <=
- Re: [lwip-users] netconn_write throughput stuck at 1024 bytes, DownyTif, 2009/01/21
- Re: [lwip-users] netconn_write throughput stuck at 1024 bytes, Kieran Mansley, 2009/01/21
- Re: [lwip-users] netconn_write throughput stuck at 1024 bytes, address@hidden, 2009/01/21
- Re: [lwip-users] netconn_write throughput stuck at 1024 bytes, DownyTif, 2009/01/22
- Re: [lwip-users] netconn_write throughput stuck at 1024 bytes, address@hidden, 2009/01/23
- Re: [lwip-users] netconn_write throughput stuck at 1024 bytes, address@hidden, 2009/01/23