[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] speed and delay question with uc/os-ii
From: |
K.J. Mansley |
Subject: |
Re: [lwip-users] speed and delay question with uc/os-ii |
Date: |
25 Aug 2004 09:35:08 +0100 |
On Wed, 2004-08-25 at 09:13, address@hidden wrote:
> Hi!
>
> I'm using lwip with uc/os-ii. I'd like to know which is the wastest &
> delayless
> way to send data (size of data to send is about 4260 Bytes).
>
> I'm using TCP with netconn_write() at the moment but have a little problems
> with
> delay (20 ms) & retransmissions...
>
> So, is UPD faster way or should i use tcp_write() or something like that??? I
> think that with UDP i could get rid of these retransmissions.
The raw API (e.g. tcp_write() etc) will be faster than using netconn_*
UDP may make a small difference, as it's a simpler protocol, but if
you're losing data you'll need to do retransmissions whatever transport
protocol you choose. I would try to work out why data need to be
retransmitted, and address that. If you are just doing a single short
transfer over each connection you may find UDP helps by not having the
"slow start" phase of TCP.
Hope that helps,
Kieran