Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 13th, 2005, 10:39 PM   #1
galapogos
Newbie
 
Join Date: Feb 2005
Posts: 4
Rep Power: 0 galapogos is on a distinguished road
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!
galapogos is offline   Reply With Quote
Old Feb 14th, 2005, 6:03 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
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.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:02 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC