02-28-2011 08:57 PM
We have a web server, which is implemented with lwIP in socket mode (in Xilkernel), that we are trying to upload and download files from using HTTP POST and GET. The documentation for lwIP says that the max bandwidth, under good circumstances, for both upload and download is 7Mbps. We are currently pulling ~5Mbps for our HTTP GET (downloading a file from the server), which is quite acceptable for us. However, we are having issues with the HTTP POST (uploading a file to the server). We have been stuck on this issue for quite some time now. We are getting ~20Kbps (a complete maximum). Not only are our upload speeds quite shot, but the TCP/IP interaction is not very stable. We are getting a number of different packet issues, which we identified by Wiresharking the transaction:
The Retransmissions and Window Updates are quite frequent and happen about every 2-5 packets received by the web server.
Our server is running in thread priority mode (with the web server thread and netif thread at highest priorities). We have a low priority debug thread that toggles the LEDs every 10ms, so when the server is being taxed (e.g. When we have an HTTP GET and a client is downloading a file from the server) the LEDs lag, and don't blink because of the low priority. This does NOT happen when we are testing the HTTP POST.
Any help would be greatly appreciated. Thank you.
03-09-2011 02:05 PM
We are on the same subnet, but it is not a direct physical connection. Both the PC and the Spartan 3E are connected via a router.