• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:01
CEST 23:01
KST 06:01
  • 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
Serral wins EWC 202540Tournament Spotlight: FEL Cracow 202510Power Rank - Esports World Cup 202580RSL Season 1 - Final Week9[ASL19] Finals Recap: Standing Tall15
Community News
Weekly Cups (Jul 28-Aug 3): herO doubles up5LiuLi Cup - August 2025 Tournaments3[BSL 2025] H2 - Team Wars, Weeklies & SB Ladder10EWC 2025 - Replay Pack4Google Play ASL (Season 20) Announced55
StarCraft 2
General
TL Team Map Contest #5: Presented by Monster Energy Cow Gallstones for sale Whastapp:+44 7944332320 Clem Interview: "PvT is a bit insane right now" Serral wins EWC 2025 Would you prefer the game to be balanced around top-tier pro level or average pro level?
Tourneys
WardiTV Mondays $5,000 WardiTV Summer Championship 2025 Sparkling Tuna Cup - Weekly Open Tournament LiuLi Cup - August 2025 Tournaments Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
External Content
Mutation # 485 Death from Below Mutation # 484 Magnetic Pull Mutation #239 Bad Weather Mutation # 483 Kill Bot Wars
Brood War
General
How do you go up to people? How do the new Battle.net ranks translate? Nobody gona talk about this year crazy qualifiers? Help, I can't log into staredit.net BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues [ASL20] Online Qualifiers Day 2 Cosmonarchy Pro Showmatches [ASL20] Online Qualifiers Day 1
Strategy
Simple Questions, Simple Answers [G] Mineral Boosting Muta micro map competition Does 1 second matter in StarCraft?
Other Games
General Games
Stormgate/Frost Giant Megathread Total Annihilation Server - TAForever Nintendo Switch Thread Beyond All Reason [MMORPG] Tree of Savior (Successor of Ragnarok)
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread US Politics Mega-thread 9/11 Anniversary Possible Al Qaeda Attack on 9/11
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
The Link Between Fitness and…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
Customize Sidebar...

Website Feedback

Closed Threads



Active: 588 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
RotterdaM Event
16:00
Rotti's All Random #2
RotterdaM1193
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 1329
IndyStarCraft 253
UpATreeSC 122
Nathanias 83
StarCraft: Brood War
Calm 3170
Mini 568
ggaemo 321
Larva 261
BeSt 239
firebathero 165
Barracks 118
Mong 57
IntoTheRainbow 11
Dota 2
capcasts311
Counter-Strike
fl0m2260
Stewie2K1106
byalli402
Foxcn257
Super Smash Bros
PPMD45
Mew2King38
Heroes of the Storm
Liquid`Hasu678
Other Games
Grubby5738
Beastyqt668
shahzam272
KnowMe225
Pyrionflax86
Sick57
ZombieGrub31
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 22 non-featured ]
StarCraft 2
• kabyraGe 253
• StrangeGG 49
• davetesta45
• musti20045 18
• Kozan
• Migwel
• sooper7s
• AfreecaTV YouTube
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• blackmanpl 39
• FirePhoenix8
• Pr0nogo 4
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22583
League of Legends
• Doublelift3638
• TFBlade846
Other Games
• imaqtpie1891
• WagamamaTV373
Upcoming Events
OSC
2h 59m
WardiTV Summer Champion…
13h 59m
WardiTV Summer Champion…
17h 59m
PiGosaur Monday
1d 2h
WardiTV Summer Champion…
1d 13h
Stormgate Nexus
1d 16h
uThermal 2v2 Circuit
1d 18h
The PondCast
2 days
WardiTV Summer Champion…
2 days
Replay Cast
3 days
[ Show More ]
LiuLi Cup
3 days
uThermal 2v2 Circuit
3 days
RSL Revival
4 days
RSL Revival
4 days
uThermal 2v2 Circuit
4 days
Sparkling Tuna Cup
5 days
uThermal 2v2 Circuit
5 days
Wardi Open
6 days
RotterdaM Event
6 days
Liquipedia Results

Completed

ASL Season 20: Qualifier #2
FEL Cracow 2025
CC Div. A S7

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
HCC Europe
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025

Upcoming

ASL Season 20
CSLPRO Chat StarLAN 3
BSL Season 21
BSL 21 Team A
RSL Revival: Season 2
Maestros of the Game
SEL Season 2 Championship
WardiTV Summer 2025
uThermal 2v2 Main Event
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall 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.