• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 23:42
CET 05:42
KST 13:42
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !6Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
ComeBackTV's documentary on Byun's Career ! When will we find out if there are more tournament Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump
Tourneys
RSL Offline Finals Info - Dec 13 and 14! Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1: Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
screp: Command line app to parse SC rep files FlaSh on: Biggest Problem With SnOw's Playstyle How Rain Became ProGamer in Just 3 Months BGH Auto Balance -> http://bghmmr.eu/ [BSL21] RO8 Bracket & Prediction Contest
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET [BSL21] RO8 - Day 2 - Sunday 21:00 CET
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers Fighting Spirit mining rates
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
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 Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI Russo-Ukrainian War Thread YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
The (Hidden) Drug Problem in…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2384 users

Some notes regarding SC2 networking - Page 6

Forum Index > SC2 General
167 CommentsPost a Reply
Prev 1 4 5 6 7 8 9 Next All
ToeJam
Profile Joined April 2009
United States282 Posts
March 25 2010 21:17 GMT
#101
I love your posts R1CH. You always share such insightful information. I truly appreciate it.

If I was as leetskeet as you I'd totally hack TL and steal your icon !
FrostedMiniWeet
Profile Joined July 2009
United States636 Posts
Last Edited: 2010-03-25 21:37:47
March 25 2010 21:34 GMT
#102
I'm on windows 7 64-bit and I see a DWORD (32-bit) and a QWORD (64-bit) R1CH says to use DWORD but I'm assuming he's on a 32 bit windows program. Should I use QWORD since I'm on a 64-bit?


using a DWORD or a QWORD in the registry has nothing to do with the cpu architecture. The registry is like a simple database, and a DWORD or QWORD is just the size on disk that the field will occupy. This would only become a problem if the value is too large to fit in the DWORD, and the program reading the registry truncates the QWORD value by casting it to a DWORD. Stick with DWORD, since that is the size of the field that is expected.
sword_siege
Profile Joined September 2002
United States624 Posts
Last Edited: 2010-03-25 23:57:29
March 25 2010 23:57 GMT
#103
I'm going to go out on a limb here and say DWORD = Double (2x16 = 32) and QWORD = Quadruple (4x16 = 64) given that you're storing one bit (0 or 1) I think both options are just fine :-)
Grobyc
Profile Blog Joined June 2008
Canada18410 Posts
March 26 2010 06:12 GMT
#104
awesome, thanks R1CH! you're a beast
If you watch Godzilla backwards it's about a benevolent lizard who helps rebuild a city and then moonwalks into the ocean.
Beardfish
Profile Blog Joined January 2006
United States525 Posts
March 26 2010 14:23 GMT
#105
How much truth is there in this post? (Taken from bleepingcomputer forums)
Setting the TcpAckFrequency may improve your apparent ping but will not improve your actual network speed. If anything, it may make it worse by increasing the number of actual packets being transmitted by your machine for the same amount of data.

When a computer connects to another computer using TCP it performs what is known as the TCP Three-way Handshake. what happens is this:

1. Client computer sends a SYN (synchronize) packet to the server computer
2. Server computer sends a SYN-ACK (SYN-acknowledged) packet to the client computer
3. Client computer sends a final ACK (ACK acknowledged packet to the server computer.

Thus begins the TCP connection.

All these SYN, SYN-ACK, and ACK packets carry no actual data. The Windows network stack, since Windows 2000 has, by default, only responded to every other TCP SYN packet unless additional data packets are not received within a specific period of time (per RFC-1122). This reduces the total number of non-data packets that must be sent. Changing the referenced registry value to 1 will cause Windows to respond to every SYN packet, thus doubling the TCP overhead for a connection. While this will likely improve the "ping" rating you get in online games (since it takes a SYN packet less time to be ACKed) it will not increase the actual speeds of data transfer but reduce it.
Myrmidon
Profile Blog Joined December 2004
United States9452 Posts
Last Edited: 2010-03-26 16:11:44
March 26 2010 16:09 GMT
#106
As far as I know (granted, I have no idea what the actual Windows networking stack does), the above is correct I think? I don't know the exact details.

As R1CH said in the first post and the blurb you quoted reiterates, increasing TCPAckFrequency will increase the overhead associated with a connection because it increases the number of non-data packets that are sent. Adding in these extra non-data packets reduces the amount of actual data packets that can be delivered, which reduces your potential max bandwidth.

For our purposes, we want to reduce TCP latency at the expense of bandwidth. Lower latency is better. Essentially, there's a tradeoff involved, and the default setting is geared towards what is best for most people. We're tweaking the default setting to get better performance in our particular game scenario because bandwidth is not a concern for us.

edit: to be a little more accurate (but R1CH already explained it), increasing the ACK frequency just reduces the latency in the case that a TCP packet was lost. By requiring more ACKs, you find out sooner if a packet was lost, so it can be retransmitted (and received) faster.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
March 26 2010 17:04 GMT
#107
On March 25 2010 05:00 R1CH wrote:
"Drop hacks" / Lag
...
In theory this should allow a large number of spectators to be in a game without impacting the latency for the players - if a spectator lags, who cares?


I could be wrong, but I think I remember seeing lag screens where observers were lagging, particularly during Zotac streams.
Is there a special reason for those lags or did Blizzard not actually implement observer slots the who-cares-if-they-lag way despite being rather simple to implement?
If you have a good reason to disagree with the above, please tell me. Thank you.
Neo27
Profile Blog Joined August 2009
United States154 Posts
March 26 2010 17:09 GMT
#108
Thanks for the info R1CH. You are totally like a Serra Angel, no deck is complete without you.
"I was born too damn early! Where were these games when I was a kid?" - Angry Video Game Nerd
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
March 29 2010 08:53 GMT
#109
Um, a semi- sc2 related question.
I have a beta key from a friend, but i can't download it , ( i believe my school blocks p2p sharing ) .
I tried disabling p2p and that didn't work
I guess they blocked the ports for sc2 ... or something...
Wondering if anyone has an idea of what i could do
"come korea next time... FXO house... 10 korean, 10 korean"
Metaspace
Profile Joined November 2006
Austria670 Posts
March 29 2010 12:10 GMT
#110
This design sucks! A game which needs manual registry tweaking to function properly, awesome.
Thats's what we expect of a multibillion dollar software firm.

The decision to use TCP when it's an industry standard to use UDP in comparable games (for obvious reasons!) is another epic fail.

And:

Why did they choose a central server with all disadvantages (bottleneck, latency) and then not make use of advantages this setup would offer (prevent maphacking etc.)?

Answer: They want to control network play, and give a shit about a good game.
Wir haben zuwenig Vespingas!
Marksman
Profile Blog Joined May 2009
Malaysia523 Posts
March 29 2010 12:25 GMT
#111
On March 25 2010 05:00 R1CH wrote:

You may notice there is still the "Waiting for players" screen. Rather than allow the server to continue if one player is lagging, it pauses the game for everyone. This was done out of fairness I imagine, since if someone is lagging it would not be fair for them to have to engage the other players army. Technically there is no reason why the game can't keep going similar to how HoN handles latency where only the player lagging experiences any lag. In theory this should allow a large number of spectators to be in a game without impacting the latency for the players - if a spectator lags, who cares?



Can someone kindly explain to me in detail on this? Sometimes I find games stop sometimes with this window and sometimes it stops without this window at all. So I'm wondering what's causing the second case. Note: Game wasn't paused by a player. Thanks.
I live by the LoL
wintergt
Profile Joined February 2010
Belgium1335 Posts
March 29 2010 12:55 GMT
#112
LAN crack will be out soon (first vid out possibly tomorrow), blizz should just put it in the game themselves, instead of forcing people to hack it..
here i am
CharlieMurphy
Profile Blog Joined March 2006
United States22895 Posts
March 29 2010 14:55 GMT
#113
ok this is awesome, but are there any drawbacks to doing the ack registry thing? Sorry if this has been asked already.
..and then I would, ya know, check em'. (Aka SpoR)
sword_siege
Profile Joined September 2002
United States624 Posts
March 29 2010 15:06 GMT
#114
On March 29 2010 23:55 CharlieMurphy wrote:
ok this is awesome, but are there any drawbacks to doing the ack registry thing? Sorry if this has been asked already.
Yes, this has been answered already. In fact, in the original post. For your convenience, it increases your bandwidth but increases your responsiveness or latency as well.
CharlieMurphy
Profile Blog Joined March 2006
United States22895 Posts
March 29 2010 15:17 GMT
#115
On March 29 2010 17:53 HeavOnEarth wrote:
Um, a semi- sc2 related question.
I have a beta key from a friend, but i can't download it , ( i believe my school blocks p2p sharing ) .
I tried disabling p2p and that didn't work
I guess they blocked the ports for sc2 ... or something...
Wondering if anyone has an idea of what i could do

quite offtopic, but did you try downloading the installer to a usb or external drive and transporting it over? I used my 80g ipod for stuff like this all the time. In fact I even have scbw installed with chaoslauncher on my ipod and I can plug it in and play anywhere without installing.
..and then I would, ya know, check em'. (Aka SpoR)
CharlieMurphy
Profile Blog Joined March 2006
United States22895 Posts
Last Edited: 2010-03-29 15:34:52
March 29 2010 15:23 GMT
#116
R1ch
Change TcpAckFrequency to 1:

How
Run registry editor (Start, Run, regedit) and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. You will see a list of random looking keys, find the one that has the "IPAddress" value that matches your current IP. Right click on the right side and go New -> DWORD. Call it TcpAckFrequency with a value of 1.

Why this works
Usually TCP delays sending acknowledgments of received data until either more data has been received OR a timeout period elapses. This timeout period may be because the sending side is waiting for the ack before sending more data. By setting TcpAckFrequency to 1, you send an acknowledgment immediately rather than waiting, preventing miniature "stalls" in the data stream. Note that this WILL reduce your bandwidth, as you will be sending more ack packets, thus using more network resources.


If i'm on a wifi router connection, do I need to find the computer IP or my network IP?
So like 192.168.1.103 which would be specific , or 22.172.226.22 which would be my whole house.
Also, in the case of the specific one, it seems to change from time to time for whatever reason. Will I have to change the registry setting every time as well?

In every directory, I'm seeing 0.0.0.0 for the IP , but in a couple of them I do see the DhcpIPadress value at 192.168.1.103

On March 25 2010 18:05 Qiin wrote:
Show nested quote +
On March 25 2010 17:48 Shauni wrote:
Regarding the fix. I have 5 folders in the registry but every 'IPAddress' has the value of 0.0.0.0. Two of the folders however, have DhcpIpAddress set as my internal IP. How do I know which folder to add the key dword in?


Usually the folder with the MOST stuff is the right one.

I've got 11 folders, 3 of which have a lot of shit. what kind of vague/uneducated reply is this >.<

On March 25 2010 19:04 SoleSteeler wrote:
Show nested quote +
On March 25 2010 18:05 Qiin wrote:
On March 25 2010 17:48 Shauni wrote:
Regarding the fix. I have 5 folders in the registry but every 'IPAddress' has the value of 0.0.0.0. Two of the folders however, have DhcpIpAddress set as my internal IP. How do I know which folder to add the key dword in?


Usually the folder with the MOST stuff is the right one.


http://www.wowinterface.com/downloads/info13581-LeatrixLatencyFix.html

Just run that script. Very simple, easy to use, easy to remove etc.


also, anyone who is having the same problems the download from this link is here
http://www.wowinterface.com/downloads/dl.php?s=a7d40c29ec44de35bad9006f38adfeb7&id=13581
..and then I would, ya know, check em'. (Aka SpoR)
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
March 30 2010 01:06 GMT
#117
On March 30 2010 00:17 CharlieMurphy wrote:
Show nested quote +
On March 29 2010 17:53 HeavOnEarth wrote:
Um, a semi- sc2 related question.
I have a beta key from a friend, but i can't download it , ( i believe my school blocks p2p sharing ) .
I tried disabling p2p and that didn't work
I guess they blocked the ports for sc2 ... or something...
Wondering if anyone has an idea of what i could do

quite offtopic, but did you try downloading the installer to a usb or external drive and transporting it over? I used my 80g ipod for stuff like this all the time. In fact I even have scbw installed with chaoslauncher on my ipod and I can plug it in and play anywhere without installing.

yea im just gonna go to my friends apartment and do this later. just wondering if anyone hosted it somewhere, not trusting any cracked stuff.
"come korea next time... FXO house... 10 korean, 10 korean"
fonger
Profile Blog Joined March 2006
United Kingdom1218 Posts
Last Edited: 2010-04-02 03:41:38
April 02 2010 03:40 GMT
#118
On March 29 2010 21:10 Metaspace wrote:
This design sucks! A game which needs manual registry tweaking to function properly, awesome.
Thats's what we expect of a multibillion dollar software firm.

The decision to use TCP when it's an industry standard to use UDP in comparable games (for obvious reasons!) is another epic fail.

Remember that this is still beta. Assuming sensible modularity, it wouldn't be difficult for Blizzard to rework the network engine to use UDP before release.

And:

Why did they choose a central server with all disadvantages (bottleneck, latency) and then not make use of advantages this setup would offer (prevent maphacking etc.)?

Answer: They want to control network play, and give a shit about a good game.

I think you might want to do some research on exactly what foolproof maphack-prevention in an RTS of SC2's scale would entail before bashing them like that. I'm pretty sure it's already been discussed in this thread.

Edit: ehh, was browsing and didn't notice the dates. Anyway, thanks R1CH for the info ^^
Shadowfury333
Profile Blog Joined March 2008
Canada314 Posts
April 03 2010 00:00 GMT
#119
On April 02 2010 12:40 fonger wrote:Remember that this is still beta. Assuming sensible modularity, it wouldn't be difficult for Blizzard to rework the network engine to use UDP before release.


Perhaps, but keep in mind that using UDP, as has been discussed, requires constructing a sufficiently reliable Application-layer netcode for StarCraft 2 to work properly with packet loss/re-ordering/etc. Basically, Blizzard would have to write a bunch of code to handle what TCP does automatically.

However, if they do this, it would be very appreciated. At the very least they could scale the forced command lag to match network conditions.

I think you might want to do some research on exactly what foolproof maphack-prevention in an RTS of SC2's scale would entail before bashing them like that. I'm pretty sure it's already been discussed in this thread.


Although I doubt this is possible given how many machines would have to be dedicated to maphack prevention, what about threading? Why not have some independent thread be created for every Nth packet of the game, which is analyzed for map-hacking independent of the routing thread? Should one of the players be found to be map-hacking, then it is simply a matter of dropping that player.

The flaws of this are somewhat obvious, though. The most notable is practicality. Blizzard would probably require a room of computers just for checking each game for maphacking, independent of the server (some sort of RPC setup would be needed here).
Darkness called...but I was on the phone, so I missed him. I tried to *69 darkness, but his machine picked up. I yelled "Pick up the phone, Darkness", but he ignored me. Darkness must have been screening his calls.
space_yes
Profile Joined April 2010
United States548 Posts
Last Edited: 2010-04-03 22:57:36
April 03 2010 22:54 GMT
#120
On April 03 2010 09:00 Shadowfury333 wrote:
Perhaps, but keep in mind that using UDP, as has been discussed, requires constructing a sufficiently reliable Application-layer netcode for StarCraft 2 to work properly with packet loss/re-ordering/etc. Basically, Blizzard would have to write a bunch of code to handle what TCP does automatically.

It's not that bad for a company like Blizzard.

On March 25 2010 05:00 R1CH wrote:
Things that will NOT help
There is a huge amount of useless information on the Internet that offers supposedly improved performance. The following will NOT improve your network quality at all: Opening your ports. Changing "TCPNoDelay" registry setting.


The TCPNoDelay enables/disables the Nagle algorithm. This can be disabled dynamically by an application using winsock. SC2 probably does this automatically. You guys may want to set your TCPAckFrequency back to its default when you're not gaming if you stream lots of data and don't have a sick internet connection.


Prev 1 4 5 6 7 8 9 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 6h 18m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 219
ProTech144
Ketroc 44
StarCraft: Brood War
Sharp 1118
Bale 109
scan(afreeca) 40
Pusan 35
Noble 30
Mong 27
Hm[arnc] 13
Icarus 8
ZergMaN 7
Dota 2
monkeys_forever472
League of Legends
JimRising 512
C9.Mang0410
Super Smash Bros
hungrybox353
Other Games
summit1g10668
XaKoH 378
ViBE196
Mew2King55
Trikslyr37
Livibee32
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• practicex 19
• intothetv
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• Azhi_Dahaki20
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21786
League of Legends
• Scarra1104
• Rush914
• Doublelift748
• Lourlo514
Upcoming Events
WardiTV 2025
6h 18m
ByuN vs Creator
Clem vs Rogue
Scarlett vs Spirit
ShoWTimE vs Cure
OSC
9h 18m
Big Brain Bouts
12h 18m
YoungYakov vs Jumy
TriGGeR vs Spirit
CranKy Ducklings
1d 5h
WardiTV 2025
1d 6h
Reynor vs MaxPax
SHIN vs TBD
Solar vs herO
Classic vs TBD
SC Evo League
1d 7h
Ladder Legends
1d 14h
BSL 21
1d 15h
Sziky vs Dewalt
eOnzErG vs Cross
Sparkling Tuna Cup
2 days
Ladder Legends
2 days
[ Show More ]
BSL 21
2 days
StRyKeR vs TBD
Bonyth vs TBD
Replay Cast
3 days
Wardi Open
3 days
Monday Night Weeklies
3 days
WardiTV Invitational
5 days
Replay Cast
6 days
WardiTV Invitational
6 days
ByuN vs Solar
Clem vs Classic
Cure vs herO
Reynor vs MaxPax
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 1
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL Season 19: Qualifier 2
CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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 © 2025 TLnet. All Rights Reserved.