Yes, a gameserver on TCP is really a bad idea because the handshake creates a very high overhead. I'm pretty sure you can test it out by yourself by adding -tcp to your client's startup line, and see if you enjoy playing with a choke of about 60. Which is why UDP is used instead: while it's easier to spoof the IP and DDOS without risking to be IP blocked, it's still better than not being to play the game at all.

Le 2011-01-28 09:20, Emil Larsson a écrit :
Since it requires a handshake, TCP is impossible to spoof (unlike UDP). It
would make it a bit easier to block IP's since a handshake will fail if a
spoofed IP is used. Of course, most DOS bugs in SRCDS are from bugs and lack
of packet caching/priority.

However it also have higher overhead, which is why you rarely see
gameservers using it as a protocol.

On Fri, Jan 28, 2011 at 3:05 PM, Saul Rennison<saul.renni...@gmail.com>wrote:

I thought that TCP would solve the issue for queries and stuff like
that but in practice TCP is just as prone to DDoS as UDP -.-

On Friday, 28 January 2011, Marco Padovan<evolutioncr...@gmail.com>
wrote:
TCP for example...

Il 28/01/2011 13:45, frostschutz ha scritto:

On Thu, Jan 27, 2011 at 06:53:08PM -0500, clad iron wrote:

Would there be a way for the engine to identify
exactly where it's coming from and drop the connection ?

It's UDP, there are no connections and you can't stop others
from sending packets to you. So the best you can do is drop
without spending any unnecessary CPU time.

The protocol unfortunately is DDoS by design - if a game has
a ton of players and in one second 100 people around the
world refresh their server list at the same time, your server
has 100 queries to reply to 100 different IPs... per second.
So all you can do is make those queries faster.

Usually games just don't have enough players for this to be
a problem, but Valve is a monster in that regard.

The protocol could be designed differently to make it easier
to drop / delay unwanted packets, but protocol redesign is
not something you do on a regular basis for gameservers. ;)

Regards
frostschutz

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

--

Thanks,
  - Saul.

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to