| View previous topic :: View next topic |
| Author |
Message |
Eugene V. Goldberg Guest
|
Posted: Wed Sep 17, 2003 12:34 pm Post subject: is it possible to increase transfer speed with UDP |
|
|
Hey guys,
Is it possible to increase data transfer rate using UDP between
two hosts, lets say i know for sure that connection hardware speed
is stable...Can i use custom integrity scheme to avoid waiting for packet
confirmations etc?
Any tips and links would be greatly appreciated.
Thanx,
Eugene.
|
|
| Back to top |
|
 |
tcpip Guest
|
Posted: Wed Sep 17, 2003 2:02 pm Post subject: Re: is it possible to increase transfer speed with UDP |
|
|
If you do not care about loosing some data some times - definitly yes.
rgds.
"Eugene V. Goldberg" <egold (AT) mts-nn (DOT) ru> wrote
| Quote: | Hey guys,
Is it possible to increase data transfer rate using UDP between
two hosts, lets say i know for sure that connection hardware speed
is stable...Can i use custom integrity scheme to avoid waiting for packet
confirmations etc?
Any tips and links would be greatly appreciated.
Thanx,
Eugene.
|
|
|
| Back to top |
|
 |
Francois Piette Guest
|
Posted: Wed Sep 17, 2003 2:27 pm Post subject: Re: is it possible to increase transfer speed with UDP |
|
|
| Quote: | Is it possible to increase data transfer rate using UDP between
two hosts, lets say i know for sure that connection hardware speed
is stable...Can i use custom integrity scheme to avoid waiting for packet
confirmations etc?
|
You will reinvent TCP...
UDP is an unreliable protocol by design. If you need a reliable link, then
use TCP or build your own error detection and correction system.
Even with stable connection speed, you will loose UDP datagrams in high
trafic situation, specially if you have a fast network and fast sending
computer with slow receiving computer. You will also loose packets when you
have different network segments with different speed. For example a
GigabitThernet as backbone and FastEthernet to the user.
--
Contribute to the SSL Effort. Visit
http://overbyte.delphicenter.com/eng/ssl.html
--
[email]francois.piette (AT) overbyte (DOT) be[/email]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be
|
|
| Back to top |
|
 |
Martin James Guest
|
Posted: Wed Sep 17, 2003 4:43 pm Post subject: Re: is it possible to increase transfer speed with UDP |
|
|
"Francois Piette" <francois.piette (AT) overbyte (DOT) be> wrote
| Quote: | Is it possible to increase data transfer rate using UDP between
two hosts, lets say i know for sure that connection hardware speed
is stable...Can i use custom integrity scheme to avoid waiting for
packet
confirmations etc?
You will reinvent TCP...
|
IP is missing a reliable datagram protocol. TCP is fine if you have a byte
stream, but sucks if you want to send a datagram-type structure. I wonder
why such an obviously useful protocol was never included with IP? Wierd.
Rgds,
Martin
|
|
| Back to top |
|
 |
tcpip Guest
|
Posted: Wed Sep 17, 2003 5:09 pm Post subject: Re: is it possible to increase transfer speed with UDP |
|
|
do not use it. there are plenty protocols much better, e.g. ipx or try ipv6
rgds
| Quote: | IP is missing a reliable datagram protocol. TCP is fine if you have a byte
stream, but sucks if you want to send a datagram-type structure. I wonder
why such an obviously useful protocol was never included with IP? Wierd.
Rgds,
Martin
|
|
|
| Back to top |
|
 |
Francois PIETTE Guest
|
Posted: Wed Sep 17, 2003 6:00 pm Post subject: Re: is it possible to increase transfer speed with UDP |
|
|
| Quote: | IP is missing a reliable datagram protocol. TCP is fine if you have a
byte
stream, but sucks if you want to send a datagram-type structure.
|
There is no problem at all sending datagram-type structure.
There are mainly two solutions:
1) Prefix your datagram with a byte count
2) Append a delimiter to your datagram, escaping this delimiter if present
in the datagram
Both solutions are easy to implement, specially with ICS and in anywase is
much easier that implementing an eror detection and correction system with
UDP.
--
Contribute to the SSL Effort. Visit
http://overbyte.delphicenter.com/eng/ssl.html
--
[email]francois.piette (AT) overbyte (DOT) be[/email]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Sep 17, 2003 6:02 pm Post subject: Re: is it possible to increase transfer speed with UDP |
|
|
"Martin James" <mjames_falcon (AT) dial (DOT) pipex.com> wrote
| Quote: | TCP is fine if you have a byte stream, but sucks if you
want to send a datagram-type structure.
|
TCP works just fine for packet-based protocols as well as stream-based ones.
Gambit
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
|
|
| Back to top |
|
 |
Martin James Guest
|
Posted: Wed Sep 17, 2003 6:44 pm Post subject: Re: is it possible to increase transfer speed with UDP |
|
|
"Francois PIETTE" <francois.piette (AT) overbyte (DOT) be> wrote
| Quote: | IP is missing a reliable datagram protocol. TCP is fine if you have a
byte
stream, but sucks if you want to send a datagram-type structure.
There is no problem at all sending datagram-type structure.
There are mainly two solutions:
1) Prefix your datagram with a byte count
2) Append a delimiter to your datagram, escaping this delimiter if present
in the datagram
Both solutions are easy to implement, specially with ICS
|
Yeeess... ish. The 'solutions' above are another protocol on top of TCP on
top of IP. I would like a reliable datagram protocol on top of IP so you
don't have to enstream & destream your data to fit into TCP. The only
obvious reason why there is no such IP protocol is that the Unix developers
who thought up the protocols couldn't be bothered 'cos they were ony ever
going to use 'readLn' anyway.
and in anywase is
| Quote: | much easier that implementing an eror detection and correction system with
UDP.
|
I agree on that one!
Rgds,
Martin
|
|
| Back to top |
|
 |
Martin James Guest
|
Posted: Wed Sep 17, 2003 6:46 pm Post subject: Re: is it possible to increase transfer speed with UDP |
|
|
"Remy Lebeau (TeamB)" <gambit47 (AT) yahoo (DOT) com> wrote
| Quote: |
"Martin James" <mjames_falcon (AT) dial (DOT) pipex.com> wrote in message
news:3f688eed (AT) newsgroups (DOT) borland.com...
TCP is fine if you have a byte stream, but sucks if you
want to send a datagram-type structure.
TCP works just fine for packet-based protocols as well as stream-based
ones. |
Exactly - 'packet-based protocols '. You need to have an application-layer
streamer/destreamer to make it work. You cannot send a reliable datagram
with TCP or UDP.
Rgds,
Martin
|
|
| Back to top |
|
 |
SocketSlave Guest
|
Posted: Fri Sep 19, 2003 2:24 pm Post subject: Re: is it possible to increase transfer speed with UDP |
|
|
Isn't one of the best things about UDP the broadcast and multicast ability?
I can see one tricky problem if you are going to create a reliable protocol
that can do this and that is that you dont know how many people are
listening to your broadcasts. So how will you decide when everyone has your
datagram?
"Martin James" <mjames_falcon (AT) dial (DOT) pipex.com> wrote
| Quote: |
"Remy Lebeau (TeamB)" <gambit47 (AT) yahoo (DOT) com> wrote in message
news:3f68a189$1 (AT) newsgroups (DOT) borland.com...
"Martin James" <mjames_falcon (AT) dial (DOT) pipex.com> wrote in message
news:3f688eed (AT) newsgroups (DOT) borland.com...
TCP is fine if you have a byte stream, but sucks if you
want to send a datagram-type structure.
TCP works just fine for packet-based protocols as well as stream-based
ones.
Exactly - 'packet-based protocols '. You need to have an
application-layer
streamer/destreamer to make it work. You cannot send a reliable datagram
with TCP or UDP.
Rgds,
Martin
|
|
|
| Back to top |
|
 |
|