Poor ethernet transfer speed?

25 Mar 2011

Hi Guys,

I am working on a data gathering application on the Mbed, and I am starting to get worried about poor transfer speed.

I am using a TCP socket which works. But my effective transfer speed is around 1900 bytes/second!

I suspect the low throughput is caused by a late TCPSOCKET_WRITEABLE. I am wondering if there is anything I can do to speed up the transfer rate.

I am wondering if it would be worth the hazzle to do a UDP socket instead and handle the sequence of recieved data packets manually.

What speeds have you achieved?

Kind regards

Jesper

28 Mar 2011

I assume the low seed is related to limited memory, and hence limited number of packets in transit.

Have anyone had luck in adjusting lwipopts.h for higher speeds?

I assume values like this would have something to do with the low transfer speed.

/* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments. */

  1. define MEMP_NUM_TCP_SEG 16

Jesper

30 Mar 2011

Increase the memory from 2000 to 10000 that helps. I got speeds from 20KB/s to 60KB/s. :)