How to improve the LWIP speed
Posted on 2010-11-29
I'm using a FPGA Xilinx virtex5 with a PPC440 embedded (400Mhz with a general clk at 100Mhz).
In order to handle the TCP/IP communication with a computer, i'm using the LWIP 1.3.0 in RAW mode with standalone.
It seems to work well, but i have a problem of throughput. Actually if i send a lot of data without checking them i can reach a throughput near 250Mbits/s. That is really good, but under this condition i can see (with a sniffer like wireshark) there are a lot of data that didn't come out on the LAN. I don't know where they are lost.
If i decrease my throughput in order to have no data lost i can reach only 9Mbits/s that is too slow for my application. Actually for my application i need at least 40Mbits/s (5MBytes/s).
I'm beginner with LWIP, but i red there are a lot of optimization parameters as buffer size or whatever. Also i red about LWIP v3.0, is it better ? what should i do ?
Can someone help me to increase the speed of my LWIP please.
Thank you very much.