• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 12:56
CEST 18:56
KST 01:56
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt2: News Flash8[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy12ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
Weekly Cups (March 23-29): herO takes triple5Aligulac acquired by REPLAYMAN.com/Stego Research3Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool49Weekly Cups (March 9-15): herO, Clem, ByuN win4
StarCraft 2
General
What mix of new & old maps do you want in the next ladder pool? (SC2) herO wins SC2 All-Star Invitational Weekly Cups (March 23-29): herO takes triple Team Liquid Map Contest #22 - Presented by Monster Energy Aligulac acquired by REPLAYMAN.com/Stego Research
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays World University TeamLeague (500$+) | Signups Open
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
Mutation # 519 Inner Power The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat
Brood War
General
[ASL21] Ro24 Preview Pt2: News Flash BGH Auto Balance -> http://bghmmr.eu/ Pros React To: SoulKey vs Ample ASL21 General Discussion RepMastered™: replay sharing and analyzer site
Tourneys
[ASL21] Ro24 Group E [Megathread] Daily Proleagues [ASL21] Ro24 Group D [ASL21] Ro24 Group C
Strategy
What's the deal with APM & what's its true value Fighting Spirit mining rates Simple Questions, Simple Answers
Other Games
General Games
Starcraft Tabletop Miniature Game Stormgate/Frost Giant Megathread Nintendo Switch Thread General RTS Discussion Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI European Politico-economics QA Mega-thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1723 users

Some notes regarding SC2 networking - Page 2

Forum Index > SC2 General
167 CommentsPost a Reply
Prev 1 2 3 4 5 7 8 9 Next All
asdfTT123
Profile Blog Joined June 2009
United States989 Posts
March 24 2010 20:59 GMT
#21
Great write-up, many thanks!
n.Die_Jaedong <3
psyote
Profile Blog Joined January 2008
Germany15 Posts
March 24 2010 20:59 GMT
#22
So does the server do anything more than just relaying the packets send from one client to the other?

I guess if the server does more like computing and storing lot of state it would not scale very good and require lots of ressources.

What about the annoncement that there will be LAN Latency if 2 clients are in the same network?
In this scenario there could not be a need for a server during the game.
R1CH
Profile Blog Joined May 2007
Netherlands10342 Posts
Last Edited: 2010-03-24 21:17:27
March 24 2010 21:15 GMT
#23
On March 25 2010 05:55 mgj wrote:

Improving Latency

I just want to attach a link for the curious: http://en.wikipedia.org/wiki/Nagle's_algorithm

This is actually unrelated to nagling. I didn't mention nagling at all because currently there is no way to force it on or off for a specific program and disabling nagling globally would have serious impacts to TCP performance if the application didn't expect it. Nagling can be controlled by the application via use of the TCP_NODELAY socket option.

I have a program I made to analyze the benefit of nagling by tracking the amount of send calls vs bytes sent, I just played a game of SC2 and verified that SC2 does indeed disable nagling by itself.
AdministratorTwitter: @R1CH_TL
TL+ Member
Skaff
Profile Joined February 2010
United States240 Posts
March 24 2010 21:23 GMT
#24
I am curious what protocol you would assume SC2 could use over TCP? UDP could be used, but in general it is not considered as reliable. There is no real "connection" made and there is no sense of confirmation if packets sent have been received (or received in order). A lot of this stuff is very important when dealing with games

I assume you would the UDP protocol or some type of connection based layer on top of the UDP protocol? The big thing with TCP is that it adds some overhead to ensure that packets sent are received. I see a RTS being a game heavly based in the player input. The actions that are made are 100% necessary to ensure the same results are happening on both ends of the connection.

I will try to use an example of a RTS vs a FPS. In a FPS, obviously user input is still big. It impacts everything in the game. However sometimes lag occurs and players end up warping around. To the best of my knowledge this is the client getting forced updated by where the character "should" be relative to the rest of the players. This is also very powerful if you are the host in these games since you will know where everyone is with 100% accuracy!

In a RTS, you can have a ton of units. Generally all the commands need to be ensured that they are being sent to your peers and are arriving in the proper order. I have seen some personal RTS projects developed by some friends that had some real weak networking implementation. Either some lag would happen at some point and the game end up splitting into two different versions of the "same" game. The commands would be sent and the updates would be made based upon what was currently going on with the other clients (have to remember this is an example of a student and not a professional).

All in all... I figure Blizzard knows what they are doing in this regard. I can only speculate to the reasons why because I am no expert in the network protocols or network programming. One fun read if you are interested about some "high concepts" of TCP vs UDP can be found here (http://gafferongames.com/networking-for-game-programmers/udp-vs-tcp/).
VTArlock
Profile Blog Joined December 2009
United States1763 Posts
March 24 2010 21:30 GMT
#25
I understand absolutely none of this tech talk, but if its going to help me micro.. I'm all for it
+1 for I love r1ch
Why?
theqat
Profile Blog Joined March 2008
United States2856 Posts
March 24 2010 21:31 GMT
#26
Skaff I'm not sure you understand who R1CH is
mgj
Profile Blog Joined March 2010
191 Posts
Last Edited: 2010-03-24 21:40:15
March 24 2010 21:33 GMT
#27
R1CH: I have a program I made to analyze the benefit of nagling by tracking the amount of send calls vs bytes sent, I just played a game of SC2 and verified that SC2 does indeed disable nagling by itself.


Cool, had no idea. Disregard my link everyone.

Skaff I'm not sure you understand who R1CH is

R1CH is obviously a clever guy, but i really dont agree with this mentality. If you disagree with him, why hold back because of his status on the site? He seems like a reasonable guy, the worst thing that could happen is a good discussion where both parties end up understanding the issue better.

edit: Need to figure out how to include usernames in quotes =P
stenole
Profile Blog Joined April 2004
Norway869 Posts
March 24 2010 21:36 GMT
#28
If you use UDP, you won't just send the same information as with TCP and expect it to work. You would program your own network code to deal with acknowledge and resending packets in order to get information there as reliable as possible while still keeping within set deadline limits.
mgj
Profile Blog Joined March 2010
191 Posts
Last Edited: 2010-03-24 21:43:16
March 24 2010 21:42 GMT
#29
edit: Not really relevant for this thread.
Excalibur_Z
Profile Joined October 2002
United States12240 Posts
March 24 2010 21:49 GMT
#30
On March 25 2010 06:31 theqat wrote:
Skaff I'm not sure you understand who R1CH is


I know who he is (goony goon goonerson) but that doesn't necessarily make him 100% right. Skaff brings up some good points that, while admittedly already addressed in R1CH's post, have some merit.

By the way, Skaff, SC supported UDP so to some extent it's the application's management of the netcode that matters as much as the protocol you decide to use.
Moderator
R1CH
Profile Blog Joined May 2007
Netherlands10342 Posts
Last Edited: 2010-03-24 21:51:27
March 24 2010 21:49 GMT
#31
On March 25 2010 06:36 stenole wrote:
If you use UDP, you won't just send the same information as with TCP and expect it to work. You would program your own network code to deal with acknowledge and resending packets in order to get information there as reliable as possible while still keeping within set deadline limits.

Exactly right. If a packet containing a position update was lost, why wait and retransmit it if the next update contains a new transmission? If a unit command is lost, with the right coding you can isolate that very quickly and in fact retransmit faster than if it happened with TCP. UDP also performs better when data bursting since you don't run into issues such as the send or receive window sizes. You can have packets arrive out of order and reassemble them and even make use of partial date without waiting for the other fragments. UDP essentially lets you build your own protocol with exactly the amount of reliability and features you need rather than being confined to the features of TCP.

Skaff I'm not sure you understand who R1CH is

I don't like this attitude either, I'm not perfect - I thought SC2 used UDP until very recently when I bothered to actually get some packet analysis done. I can and will be wrong and it's important to question things.
AdministratorTwitter: @R1CH_TL
TL+ Member
NonY
Profile Blog Joined June 2007
8751 Posts
March 24 2010 21:50 GMT
#32
Thanks R1CH. I love having some idea of how stuff works.
"Fucking up is part of it. If you can't fail, you have to always win. And I don't think you can always win." Elliott Smith ---------- Yet no sudden rage darkened his face, and his eyes were calm as they studied her. Then he smiled. 'Witness.'
Jsanko
Profile Joined March 2010
Slovakia120 Posts
March 24 2010 22:08 GMT
#33
Great post
Mineralzzzzz...
Marradron
Profile Blog Joined January 2009
Netherlands1586 Posts
March 24 2010 22:17 GMT
#34
Rich, you claim sc2 is server based. Yet then how does AI work ? since there are hacked versions of sc2 with difrent AI ? is the server just a medium to send data from player to player ?
Marradron
Profile Blog Joined January 2009
Netherlands1586 Posts
March 24 2010 22:20 GMT
#35
BTW another post (A)

could it be that blizzard is only doing the server thing for Beta so they can gather all data from games and basicly have acces to all replays ?
ven
Profile Blog Joined December 2008
Germany332 Posts
March 24 2010 22:24 GMT
#36
On March 25 2010 05:00 R1CH wrote:
"Drop hacks" / Lag
Since other players also connect to Blizzard's server, not you, there is no way to be "drop hacked" in SC2. Drop hacking involves terminating the connection to the other player via some means - trivial in BW since both players are connected to each other - desynchronize the connection and you get a drop. However in SC2, since you are only connected to Blizzard's server, not the other player, the most you can do is disconnect yourself from the server, causing you to drop. Since the server knows who disconnected, it can award the win to the remaining player.

Note that this does not preclude any bugs in SC2 that might allow someone to purposefully cause a drop condition by sending malformed packets that crash the server (thus dropping everyone), but given the server architecture, drop hacking should not be an issue in SC2 provided the servers are reliable and well-coded.

There should be a little bit more emphasis on the second paragraph. Warcraft 3's Battle.net worked the same way and they had a lot of issues with disconnect hacks and even crash hacks. Some of which got fixed only very recently. While it's a lot harder to do with a client/server architecture and Blizzard probably learned a lot from Warcraft 3, I don't think it's as safe as you make it sound.
You can reach the rainbow. I'll be there to help.
Adeeler
Profile Blog Joined June 2009
United Kingdom764 Posts
March 24 2010 22:30 GMT
#37
Nice post but Blizzard need to make a blue post or something properly telling us these same things also about the drop hacks/dropping situation.

Map Hacking, yes it "can" be a complex issue but no it is far easier to program in extremely extremely difficult to decode data containing all the data about things in a game then non-programmers understand. Something may sound complex to the layman but usually its so simple when you get down to the actual coding its shocking its not been sorted before now especially given Blizzards ambitions for SC2.
R1CH
Profile Blog Joined May 2007
Netherlands10342 Posts
March 24 2010 22:56 GMT
#38
On March 25 2010 07:24 ven wrote:
There should be a little bit more emphasis on the second paragraph. Warcraft 3's Battle.net worked the same way and they had a lot of issues with disconnect hacks and even crash hacks. Some of which got fixed only very recently. While it's a lot harder to do with a client/server architecture and Blizzard probably learned a lot from Warcraft 3, I don't think it's as safe as you make it sound.

I would hope they have proper input validation figured out by now, it's not rocket science.
AdministratorTwitter: @R1CH_TL
TL+ Member
calcarus
Profile Joined March 2010
Australia103 Posts
March 24 2010 23:02 GMT
#39
Interesting stuff, i wish i payed more attention in networking at uni
"All I know, is that I know nothing" - Socrates
DeCoup
Profile Joined September 2006
Australia1933 Posts
March 24 2010 23:06 GMT
#40
I just performed the registry change recommended by r1ch in the OP. It has reduced around half-1 second off my latency (by feel). TYVM! I'm in AU.
"Poor guy. I really did not deserve that win. So this is what it's like to play Protoss..." - IdrA
Prev 1 2 3 4 5 7 8 9 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 7h 5m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech157
MindelVK 6
UpATreeSC 5
StarCraft: Brood War
Bisu 3213
EffOrt 1724
Mini 682
Larva 655
Stork 504
actioN 388
firebathero 310
Snow 291
Hyuk 148
hero 133
[ Show more ]
Aegong 78
Barracks 70
Backho 50
sorry 34
Shine 33
Terrorterran 27
JulyZerg 25
IntoTheRainbow 22
Dewaltoss 19
Bale 19
ggaemo 14
SilentControl 8
Dota 2
qojqva3105
capcasts20
Counter-Strike
fl0m1695
byalli322
Other Games
FrodaN2035
Liquid`RaSZi1583
Grubby1557
B2W.Neo838
Beastyqt334
DeMusliM325
Hui .149
QueenE100
RotterdaM94
Mew2King66
Trikslyr59
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Reevou 12
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• HerbMon 36
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV961
League of Legends
• Nemesis3467
• TFBlade1318
Other Games
• Shiphtur228
Upcoming Events
PiGosaur Cup
7h 5m
Replay Cast
16h 5m
Afreeca Starleague
17h 5m
BeSt vs Leta
Queen vs Jaedong
Kung Fu Cup
18h 5m
Replay Cast
1d 7h
The PondCast
1d 17h
OSC
2 days
RSL Revival
2 days
TriGGeR vs Cure
ByuN vs Rogue
Replay Cast
3 days
RSL Revival
3 days
Maru vs MaxPax
[ Show More ]
BSL
4 days
RSL Revival
4 days
uThermal 2v2 Circuit
4 days
BSL
5 days
Replay Cast
6 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Acropolis #4 - TS6
WardiTV Winter 2026
NationLESS Cup

Ongoing

BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
RSL Revival: Season 4
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Season 20: Qualifier 2
Escore Tournament S2: W1
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
StarCraft2 Community Team League 2026 Spring
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.