Forum Discussion
Altera_Forum
Honored Contributor
21 years agolwip 10Mbps
I am using the Cyclone Development board with uC/OS-II running LWIP and seeing many lost packets, Dup ack, and Out-Of-Order packets with TCP.
I see all of the above issues when using 10Mbps hubs (tried multiple) with only a PC and the Altera board on the network. If I move to a 100Mbps hub I don't see the issues. I find it strange because the throughput should not be to high for 10Mbps networks. With the 100Mbps hub the lwip TCP throughput is only ~4Mbps. Any ideas?4 Replies
- Altera_Forum
Honored Contributor
There were two previous bugs found in the lan91c111 drivers:
http://www.niosforum.com/forum/index.php?a...&f=17&t=619&hl= (http://www.niosforum.com/forum/index.php?act=st&f=17&t=619&hl=) http://www.niosforum.com/forum/index.php?a...&f=17&t=703&hl= (http://www.niosforum.com/forum/index.php?act=st&f=17&t=703&hl=) I believe the first bug fix was incorportated into Nios1.1, but the second was not, and could be related to what you are seeing. If you fix it, post your solution. - Altera_Forum
Honored Contributor
Thanks,
The lost packets and Out-Of-Order pack have gone away. The Dup ack happens less. I added the code to altera_avalon_lan91c111.c as shown in the two postings. - Altera_Forum
Honored Contributor
Were you using Ethereal to see these problems, or another tool?
Any special setup to diagnose? - Altera_Forum
Honored Contributor
I used ethereal to monitor the traffic.
Before the patch, I was seeing every third packet having to be retransmitted due to Dup or lost packets. Now it is less frequent. I still see checksum errors and lost packets at the start of data download on both 100Mbps and 10Mps systems. That can add seconds of over head. So there may be other isssues.