Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: UDP connection

by Marshall (Canon)
on May 03, 2012 at 06:55 UTC ( [id://968654]=note: print w/replies, xml ) Need Help??


in reply to UDP connection

I think there are some design problems here. First, why would you use the most complicated model, threads instead of separate processes for each port?

This requirement: I have to use UDP and can't afford to miss anything is incompatible with UDP. UDP is a "connectionless", non-error checked protocol. Sure there is going to be data loss - this is inevitable when transferring lots of data. One of my colleagues measured this on one network at 10% packet loss. With UDP there is no "end to end" error checking or retransmission - this can be like shouting into a crowded sports arena.

Update: I see that BrowserUk hit the send button on a better response than mine. His questions are excellent. Independent of these questions, with UDP some amount of data loss is going to happen and this fundamental requirement of "can't miss anything" cannot be satisfied no matter what when using UDP as the base protocol. Just cannot happen.

Replies are listed 'Best First'.
Re^2: UDP connection
by falstad (Novice) on May 03, 2012 at 07:54 UTC

    I asked the same thing when I got this task... First of all this will run on an internal network of a big company. They have a reliable network with close to zero packet loss even with UDP. (or something like that xD I'm just a pre-graduate trainee here)

    Legacy software... I have to make a client to match the server.. *sigh*

      Perhaps you were given this task because you are a pre-graduate trainee? It could be a test or hazing ritual.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://968654]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-25 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found