Author |
so a UDP connection walks into a bar... |
Fattierob Vice Admiral
Joined: April 25, 2003 Posts: 4059
| Posted: 2007-08-13 14:12  
So, a UDP connection walks into a bar and it goes up to the bartender.
"Hi bartender, " it says to the bartender.
"Howdy, UDP connection. What'll it be?" the bartender asks.
"I'll have a beer please. Here's a dollar," says the UDP connection.
The bartender takes the dollar, looks at the UDP connection, and continues wiping glasses.
"So, what'll it be?" the bartender asks the UDP connection.
The UDP connection forks over another dollar and orders a beer again. The bartender takes the dollar and stares expectantly at the UDP connection as he continues to wipe glasses.
"So, what are you gonna drink, little UDP connection?" the bartender asks.
"I would like a beer please," and the UDP connection gives the bartender yet another dollar. The bartender takes the dollar and promptly starts wiping the counter. He looks at the UDP connection and asks,
"Oh, hello there. Can I get you anything?"
"Yes please," responds the UDP connection, "I'd like a beer. Here is a dollar." And the UDP connection gives the bartender yet another dollar.
And so on...
I don't expect many of you to get this.
_________________
|
HMSBlueprint
Joined: October 28, 2006 Posts: 119
| Posted: 2007-08-13 14:18  
i do get that.. if it was tcp it wud remeber
_________________ *w00tness teh panduh love HMS Blueprint {Anti-Doran} long time.
|
Fattierob Vice Admiral
Joined: April 25, 2003 Posts: 4059
| Posted: 2007-08-13 14:20  
Quote:
|
On 2007-08-13 14:18, Agent Cuddly wrote:
i do get that.. if it was tcp it wud remeber
|
|
Actually, the joke is that UDP doesn't know if the packet got to the target or not.
...
*sigh*
_________________
|
Little Pet Slinki Admiral
Joined: April 16, 2006 Posts: 836 From: United Kingdom, South West.
| Posted: 2007-08-13 18:03  
Agent Cuddly has Failed.
[ This Message was edited by: Mr LP Slinki on 2007-08-13 18:03 ]
_________________
|
Coeus Grand Admiral Sundered Weimeriners
Joined: March 22, 2006 Posts: 2815 From: Philly
| Posted: 2007-08-13 18:29  
Wow... I feel... SO sad... thanks rob!
_________________ Do I really look like a guy with a plan?
'I'm gonna go crazy, and I'm taking you with me!'
ICC Security Council Chief Enforcer
|
$yTHe {C?} Grand Admiral Sundered Weimeriners
Joined: September 29, 2002 Posts: 1292 From: Arlington, VA
| Posted: 2007-08-13 20:32  
I'm going to end myself for understanding that joke.
_________________
|
Joe dirt Fleet Admiral
Joined: April 18, 2006 Posts: 273
| Posted: 2007-08-13 23:38  
thank god i didn't under stand that
_________________
|
Axalon Vice Admiral
Joined: June 15, 2003 Posts: 442 From: East Windsor, NJ, USA
| Posted: 2007-08-16 17:08  
Holy Christ, I'm gone a year and these bad jokes that I understand still happen.
This community is dangerously stable.
_________________
|
Eledore Massis [R33] Grand Admiral Templar Knights
Joined: May 26, 2002 Posts: 2695 From: tsohlacoLocalhost
| Posted: 2007-08-17 12:06  
A old one
but since F is trying to use UDP in DarkSpace Beta.
Its a good lesson for people to know the diference between UDP and TCP.
UDP is a small packet protocol, so you can send lot of them this is a fast fast way of getting mutch data to a other location.
However since udp packets can arive dubble, out of order or never as fattie just joked about.
[Wiki for the easy readers]
TCP is a larger packet protocol.
It verifies if the packet has arrived and folows a sequence.
It garuentees delivery of its data and consumes less bandwith.
Problem is tcp can be large so its mostly managed, this creates a problem it might not take the fastes route so the next package wil be delayed becous of the verification. (latency).
[Wiki for the easy readers]
So yes on paper udp is better for games.
Bcous of the smaler packet size you can send more to garuentee the delivery.
problem is if a client's connection is bad you might lose a lot of packets and you wil have to send more to make up creating more bandwith.
funny is if your client has a good connection it might take less bandwith than tcp.
[ This Message was edited by: Eledore[NL] on 2007-08-17 15:17 ]
_________________ DS Discordion
|
doda *EP5 no longer exception...* Grand Admiral
Joined: December 11, 2005 Posts: 1012 From: happy land
| Posted: 2007-08-17 23:54  
ohhhhhhhh, wow that explains why i get so much lag in games but not others
_________________ Please resize your Admin - signature
VCA since June 5th 06
|
Coeus Grand Admiral Sundered Weimeriners
Joined: March 22, 2006 Posts: 2815 From: Philly
| Posted: 2007-08-18 09:56  
Most games use TCP that I recall for a while now.
_________________ Do I really look like a guy with a plan?
'I'm gonna go crazy, and I'm taking you with me!'
ICC Security Council Chief Enforcer
|
Eledore Massis [R33] Grand Admiral Templar Knights
Joined: May 26, 2002 Posts: 2695 From: tsohlacoLocalhost
| Posted: 2007-08-20 12:59  
Quote:
|
On 2007-08-18 09:56, Coeus wrote:
Most games use TCP that I recall for a while now. |
|
most use a combination.
for important data the use tcp but most of the real data wil go trough udp.
take for instance Counter-strike.
location, movement direction, the aiming angle and aiming elevation are trancfered trough udp.
statistics, weapon information, console commands are send trough tcp.
firing and weapon switching are both send udp and tcp. (don't ask me why this is what we noticed)
next up C&C generals zero hour
a map is trancfered using tcp.
your fog of war update information is sent trough udp to the server.
unit orders are send trough tcp. while there current location are transmitted trough udp.
[tested on local lan, with local lan games.]
[both information gatherd on ?? november 2005]
It all depends what you want to send.
most applications require a certain order the process data and or security than tcp would be best.
but if you just want to send information that might be outdated in 5 seconds best to use udp. you might lose some packets but the new update information is already on the way.
_________________ DS Discordion
|
Lord DowneyBUM (UK) Fleet Admiral
Joined: January 13, 2003 Posts: 437 From: London England
| Posted: 2007-08-21 06:37  
you guys really need to get out more.
its summer, except in england. where its bloody damp.
_________________ ,
|
Fattierob Vice Admiral
Joined: April 25, 2003 Posts: 4059
| Posted: 2007-08-21 09:51  
Quote:
|
On 2007-08-21 06:37, Lord DowneyBUM (UK) wrote:
you guys really need to get out more.
its summer, except in england. where its bloody damp.
|
|
been raining for 4 days straight here.
expected to continue another couple of days
_________________
|