Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 22:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Question about sockets

Discussion on Question about sockets within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Question about sockets

So, after skimming through a few public sources I noticed one thing in common - all sockets are running under TCP protocol and not UDP.

I'd like to get an good explanation why this is, since TCP wants an acknowledgement after sending a packet, and UDP does not, UDP should be the right choise to minimize lag, right?

Thanks
_Emme_ is offline  
Old 05/04/2011, 20:26   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
The client no likes/uses UDP.

Why does the client not like UDP;
- UDP is never used to send important information, as it is less accurate and 'makes mistakes', where TCP offers error correction.
Basser is offline  
Old 05/04/2011, 20:35   #3
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
Originally Posted by Basser View Post
The client no likes/uses UDP.
Oh, so the client only want Tcp protocols? Would be fun to see if someone manages to get it working on Udp and see how much packet loss it would be really, could speed it up a whole lot if there's a lot of players active etc.
_Emme_ is offline  
Old 05/04/2011, 21:27   #4


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
KraHen is offline  
Old 05/04/2011, 22:17   #5
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
I hope this helps.

Syst3m_W1z4rd is offline  
Old 05/04/2011, 22:27   #6
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
@System_Wizard
I know what Tcp and Udp is, duh....


Ok, so let's say UDP will loose a lot of packets (don't think anyone actually tried, but we put this in worst-scenario), how about going with RUDP (Reliable User Data Protocol). RUDP includes retransmission of lost packets and flow control, and is also faster than TCP.

Why haven't anyone tried this, seems like the right way to go to reduce lag?
_Emme_ is offline  
Old 05/04/2011, 22:35   #7
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Quote:
Originally Posted by EmmeTheCoder View Post
@System_Wizard
I know what Tcp and Udp is, duh....


Ok, so let's say UDP will loose a lot of packets (don't think anyone actually tried, but we put this in worst-scenario), how about going with RUDP (Reliable User Data Protocol). RUDP includes retransmission of lost packets and flow control, and is also faster than TCP.

Why haven't anyone tried this, seems like the right way to go to reduce lag?
UDP is mostly used for streaming media like sounds and videos, because it's about speed.
TCP would be most common to use, because it can handle it, if you're sending the data to fast or any data is lost, where UDP wouldn't do anything, if the client isn't receiving anything.
Syst3m_W1z4rd is offline  
Old 05/04/2011, 23:36   #8
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
Originally Posted by Syst3m_W1z4rd View Post
UDP is mostly used for streaming media like sounds and videos, because it's about speed.
TCP would be most common to use, because it can handle it, if you're sending the data to fast or any data is lost, where UDP wouldn't do anything, if the client isn't receiving anything.
Please, no. TCP is based on UDP with a few layers added on it to retransmit lost packets, flow control, acknowledgement and a few other things, hence why it's slower than UDP.
And, UDP is not chose for it's speed when it comes to streaming, VoIP and when speaking in the phone, it's used so it won't retransmit lost packets, because if it would it would overlap the current packet, or getting played twice etc etc.
_Emme_ is offline  
Old 05/05/2011, 00:00   #9


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
UDP can be used for a lot of program if you can handle the fact that you may have loose packets... Like checking every packet you are supposed to receive on the two sides (Client/Server) and if you lost a packet, you'll need to resend it... But for games like CO2, it would be very hard... TCP is slower, but the difference isn't too important for CO2.
CptSky is offline  
Old 05/05/2011, 00:32   #10


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
UDP would be useless in this case, essentially your saying that we can happily increase the speed at which packets are sent but equally happily sacrifice the reliability of packets getting to the client, this principle works well for things like Voip because it doesnt matter if the packets dont get there, you wouldnt even notice 1 missing packet in a Voip stream.

However for the conquer client, and indeed most games of this nature 1 missed packet can result in huge repercussions on the clients end, what happens if you missed a jump packet being sent to the client, something so small means that the player's next jump could result in them being disconnected, or that in the middle of pvp players just stand still and bug out, or if the item removal packet isnt sent to the client then the player is under the impression that the item is still there.

Having to then resend the packet further complicates the procedure, and on top of all of these disadvantages is the fact that the client just isnt designed for this type of protocol and the bandwidth that the server would require would increase because of the constant resending.

Reducing lag on a private server isnt about the protocol being used in the first place, its about how the server handles its packets, if the server isnt handling the packets fast enough in the first place then changing over to UDP would simply reduce performance further and based upon what i've seen released in the community thats what it comes down to.
Korvacs is offline  
Old 05/05/2011, 00:56   #11
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
uses UDP.

That should solve any questions on whether it's reliable enough for Conquer or not.
_tao4229_ is offline  
Old 05/05/2011, 08:55   #12
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
Originally Posted by _tao4229_ View Post
uses UDP.

That should solve any questions on whether it's reliable enough for Conquer or not.
According to my network teacher who has scholarship in CCNA 1-3, he claims UDP would be the best choise for a MMORPG, even though the work to go there and handle it. Maybe RUDP is an option though, as it is as reliable as TCP but faster
_Emme_ is offline  
Old 05/05/2011, 09:45   #13


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Actually Heroes of Newerth uses BOTH tcp and udp, and just because a game was designed around using UDP doesnt mean that conquer could use it, i think that should be clear to everyone >_>"
Korvacs is offline  
Old 05/05/2011, 10:01   #14
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
Originally Posted by Korvacs View Post
Actually Heroes of Newerth uses BOTH tcp and udp, and just because a game was designed around using UDP doesnt mean that conquer could use it, i think that should be clear to everyone >_>"
How about RUDP then? As reliable as TCP with retransmitting lost packets, still faster than tcp
_Emme_ is offline  
Old 05/05/2011, 10:15   #15


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Quote:
Originally Posted by EmmeTheCoder View Post
How about RUDP then? As reliable as TCP with retransmitting lost packets, still faster than tcp
Your talking about completely changing the client's way to handle packets, unless you have the source i wouldnt even attempt it, you would have to change so much code, and at the end of the day the way the source handles the packets is the bottle neck anyway, not the protocol.

This is made even more obvious by the fact that so many games and applications still use TCP instead of UDP/RUDP.

So even if you did change the protocol over somehow, which i honestly dont believe you will be able to do, the performance that you will gain will be made completely redundant by the fact that the source isnt upto handling the packets in the first place.
Korvacs is offline  
Reply


Similar Threads Similar Threads
Sockets
02/23/2010 - Conquer Online 2 - 1 Replies
Somebody can tell me socketing teories?Or where i can find them?
[Help]3rd sockets
05/11/2009 - CO2 Private Server - 6 Replies
im trying to wonder how to code in a 3rd sock to gears... any ideas?
[Question] Fake Sockets with itemtype.dat
04/18/2007 - Conquer Online 2 - 8 Replies
Hey everyone. I remember reading a thread about editing the itemtype.dat file to make items seem like they've got 2socs or super gems etc. I tried to search for it but nothing much came up. Does anyone have an idea on how to do it? Thanks for the reply in advance. ^^ shadowHacker
Sockets first to log in after SM
03/14/2007 - Conquer Online 2 - 13 Replies
If i was the first to log in after SM will the 1st met be the socket? or is there a certian amount i would have to spam? Thanks :) cheers i have quit this game for a while but I am back now. :P
sockets
12/17/2006 - Conquer Online 2 - 7 Replies
To Mr.Experts out there, stop misleading the noobs.... Don't make these poor fellas go around wasting their time getting their gears to 0 dura, waking up at some particular time standing at coord x,y to go spamming THIS IS PLAIN EVIL, my cousin is only 12 and I know alot of kids around his age are not intelligent enough to discern from facts and theories... 1.Stop arguing whether if it existed or not....It doesn't matter really!! 2.Before TQ's recent patches...this is how everyone I've...



All times are GMT +2. The time now is 22:35.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.