• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:42
CEST 08:42
KST 15: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
Maestros of the Game: Live Finals Preview (RO4)4TL.net Map Contest #21 - Finalists4Team TLMC #5: Vote to Decide Ladder Maps!0[ASL20] Ro8 Preview Pt1: Mile High15Team TLMC #5 - Finalists & Open Tournaments2
Community News
herO joins T121Artosis vs Ret Showmatch47Classic wins RSL Revival Season 22Weekly Cups (Sept 15-21): herO Goes For Four2SC2 5.0.15 PTR Patch Notes + Sept 22nd update293
StarCraft 2
General
SC2 5.0.15 PTR Patch Notes + Sept 22nd update Had to smile :) Maestros of the Game: Live Finals Preview (RO4) herO joins T1 Storm change is a essentially a strict buff on PTR
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris SC2's Safe House 2 - October 18 & 19 Master Swan Open (Global Bronze-Master 2) Sparkling Tuna Cup - Weekly Open Tournament Prome's Evo #1 - Solar vs Classic (SC: Evo)
Strategy
Custom Maps
External Content
Mutation # 492 Get Out More Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense
Brood War
General
Artosis vs Ret Showmatch ASL20 General Discussion Thoughts on rarely used units StarCraft 1 Beta Test (Video) ASL 20 Soundtrack
Tourneys
Azhi's Colosseum [ASL20] Ro8 Day 2 [ASL20] Ro8 Day 1 [Megathread] Daily Proleagues
Strategy
Current Meta I am doing this better than progamers do. Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Liquipedia App: Now Covering SC2 and Brood War! Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The Big Programming Thread Trading/Investing Thread
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List BarCraft in Tokyo Japan for ASL Season5 Final
Blogs
[AI] Sorry, Chill, My Bad :…
Peanutsc
Try to reverse getting fired …
Garnet
[ASL20] Players bad at pi…
pullarius1
Customize Sidebar...

Website Feedback

Closed Threads



Active: 567 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 3h 18m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
UpATreeSC 45
StarCraft: Brood War
firebathero 903
Noble 51
League of Legends
JimRising 601
Counter-Strike
Stewie2K1036
Super Smash Bros
Mew2King78
Other Games
summit1g9131
WinterStarcraft493
NeuroSwarm151
XaKoH 37
ArmadaUGS17
kaitlyn2
Organizations
Other Games
gamesdonequick525
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH151
• Sammyuel 30
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo694
• HappyZerGling78
Upcoming Events
Replay Cast
3h 18m
BSL Team Wars
12h 18m
Team Bonyth vs Team Sziky
BSL
14h 48m
Artosis vs Sziky
Afreeca Starleague
1d 3h
Soma vs BeSt
Wardi Open
1d 4h
OSC
1d 17h
Sparkling Tuna Cup
2 days
Afreeca Starleague
2 days
Bisu vs Larva
LiuLi Cup
3 days
OSC
3 days
[ Show More ]
The PondCast
4 days
Wardi Open
5 days
[BSL 2025] Weekly
6 days
[BSL 2025] Weekly
6 days
Safe House 2
6 days
Liquipedia Results

Completed

Proleague 2025-09-25
Maestros of the Game
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
EC S1
ESL Pro League S22
FERJEE Rush 2025
Birch Cup 2025
DraculaN #2
LanDaLan #3
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
IEM Cologne 2025
FISSURE Playground #1

Upcoming

IPSL Winter 2025-26
SC4ALL: Brood War
BSL 21 Team A
BSL Season 21
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
WardiTV TLMC #15
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
Frag Blocktober 2025
Urban Riga Open #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 © 2025 TLnet. All Rights Reserved.