![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 4
Rep Power: 0
![]() |
UDP or TCP sockets programming questions
Hi,
I'm in the process of developing a client-server software that handles high bandwidth data transfers between multiple clients(around 10) and a central server on Gigabit ethernet(private LAN). The bandwidth requirements are going to be close to 100Mbps per client, and latency is an issue, so I was thinking of using UDP instead of TCP. Does that seem like a good idea? I've presently coded a basic client-server model that does file transfer, but I'm having problems with packets not being received in order or dropped completely, due to the nature of UDP. If I delay the packet sends by say, inserting printfs for each packet sent, then all is fine. Are there any common solutions for dropped, out of order packets for UDP data transfer? I have a 32bit sequence number in my packet structure, but I can't think of a good way of getting them in order. I certainly can detect non-sequential packets on the server though. Any ideas? Thanks! |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Usually, you send a hash along with the results, and compare it with the data at the other end. Take a look at Tiger Tree Hashing - it seems to be what you'll need.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|