You are on page 1of 22

REDUCING LAG

Tutorial: Reducing LAG


Made for: MMORPG Mabinogi Players
Made by: Felipe Nascimento (Diiv)
January 26, 2015
REDUCING LAG

Goals
In this guide I will explain some technical steps to be taken to reduce the LAG to play
Mabinogi and other online games.
I will use multiple images and try to simplify the most of the steps that should be
taken so that anyone can apply the techniques without advanced IT knowledge.

I hope everyone who apply these tweak techniques should be able to play Mabinogi
decently.
REDUCING LAG

Windows Resources
1º - In Windows open Control Panel

2º - Click in Programs
REDUCING LAG

3º - Click in Turn Windows features on or off


REDUCING LAG

4º - Mark all options like the image below to the Microsoft Message Queue
(MSMQ) Server

5º - Click OK

6º - Restart your PC the modifications take effect


REDUCING LAG

Command Prompt
In the Command Prompt is possible to send commands and create rules to tell how
your Windows/Network will behave.

1º - Open the Start Menu in Windows (Windows Key)

2º - Type CMD and click with the right button of your mouse when appear the icon,
then run as administrator
REDUCING LAG

3º - Send the six commands below:


PS: Press Return after typing each line

netsh int tcp set heuristics disabled

netsh int tcp set global autotuninglevel=disabled

netsh int tcp set global congestionprovider=ctcp

netsh int tcp set global rss=enabled

netsh int tcp set global chimney=enabled

netsh int tcp set global dca=enabled


REDUCING LAG

Windows Registry
Below see an example on how create your first KEYWORD in the Windows Registry.

1º - In Windows open the Run Tool (Windows key + R)

2º -Type Regedit then click OK

3º - With the Regedit opened, go to the folder:


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters

5º - Go to Parameters, click with the right button of the mouse in the right panel and
choose the option New > DWORD (32 bits)
REDUCING LAG

6º - Type the name TCPNoDelay, respect the case sensitive

7º - Click with the right button on the KEYWORD created and choose Modify

8º - Change the value to 1 in HEXADECIMAL then click OK


REDUCING LAG

TCP 1323 Options

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters

2º - Create a DWORD with the name:


Tcp1323Opts

3º - Change the value in DECIMAL to:


1

NetDMA (TCPA)

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters

2º - Create a DWORD with the name:


EnableTCPA

3º - Change the value in DECIMAL to:


1

Checksum Offloading (DisableTaskOffload)

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters
REDUCING LAG

2º - Create a DWORD with the name:


DisableTaskOffload

3º - Change the value in DECIMAL to:


0

DefaultTTL

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters

2º - Create a DWORD with the name:


DefaultTTL

3º - Change the value in DECIMAL to:


64

TcpMaxDataRetransmissions

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters

2º - Create a DWORD with the name:


TCPMaxDataRetransmission

3º - Change the value in DECIMAL to:


7
REDUCING LAG

SynAttackProtect

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters

2º - Create a DWORD with the name:


SynAttackProtect

3º - Change the value in DECIMAL to:


1

EnableConnectionRateLimiting

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters

2º - Create a DWORD with the name:


EnableConnectionRateLimiting

3º - Change the value in DECIMAL to:


0
REDUCING LAG

Network Throttling Index

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT
\CurrentVersion\Multimedia\SystemProfile

2º - Altere a seguinte chave que já existe para o valor correspondente em


HEXADECIMAL:
NetworkThrottlingIndex = ffffffff

Set DNS and Hosts Priority

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\ServiceProvider

2º - Change the value of the KEYWORD that already exist in DECIMAL to:
LocalPriority =4
HostsPriority =5
DnsPriority =6
NetbtPriority =7
REDUCING LAG

TcpTimedWaitDelay (port allocation)

1º - With the regedit open, navigate to the folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters

2º - Create a DWORD with the name:


MaxUserPort

3º - Change the value in DECIMAL to:


65534

4º - Create a DWORD with the name:


TcpTimedWaitDelay

5º - Change the value in DECIMAL to:


30

Network Memory Allocation - Part 1

1º - With the regedit open, navigate to the folder:


HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory
Management

2º - Change the value of the KEYWORD that already exist in DECIMAL to:
LargeSystemCache =1
REDUCING LAG

Network Memory Allocation - Part 2

1º - With the regedit open, navigate to the folder:


HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

2º - Change the value of the KEYWORD that already exist in DECIMAL to:
Size = 3
REDUCING LAG

Leatrix Latency Fix


A tool that will simplify some other steps in the regedit is the Leatrix Latency Fix.

To download, just click on the link below or use the same wich is already in the
Dropbox folder:
http://www.leatrix.com/leatrix-latency-fix

PS: In case that when you choose to install it appear the message "Partially Intalled"
just click on "Remove" then "Install" again.
REDUCING LAG

MTU
This feature is what makes the most difference in the LAG because it reduces the
size of packets sent over the network making them processed faster, but have to pay
attention to a side effect, which reduces the download speed of your PC while it is
being used.
So I will teach how to activate only when you are actually playing Mabinogi and then
turn off the time you want the download speed return to normal.

1º - Right click on top of your connection which is there on the right side near the
Windows clock.
Choose “Open Network and Sharing Center”

2º - In the left menu, click:


Change adapter settings

3º - See which connection is being used, has to be the one that is active (without X)
Probably it will be “Local Connection”

4º - Right button, choose Rename, change the connection name to:


internet
REDUCING LAG

In dropbox folder has the .bat files:


MTU 128, MTU 256 and MTU 1500

MTU 128 = Smallest possible value


For some this value is bad, slow to load House Board, Pets, etc.
But for anyone who has an internet with high download speed, this value can be
useful

MTU 256 = Recommended Value


This is the value that most people use to play Mabinogi, it does not interfere with
navigation (Facebook, Youtube, etc.) and greatly reduces the LAG

MTU 1500 = Default Value


This is the default value, which all PCs come already configured, when done playing
Mabinogi just switch to this value to download speed return to normal

1º - Right Click on the MTU file you want (preferably the MTU 256):
Run as Administrator

2º - Enter the game and be happy

3º - Finished playing and want to make an Anime download:


Run as Administrator in the MTU 1500, it will make the download speed
return to normal
REDUCING LAG

Softwares

Even after all these things still have to improve even more, using VPN software.

The best option is the WTFast paid version (US $ 9.99 per month), some members
use the free version of that to authenticate on facebook every 15 days and said that
also works.

Download:
https://www.wtfast.com

With paid WTFast you have an advanced feature called Chained Connection, which
lets you choose the initial server (near where you live) and the end server (Los
Angeles) which is near the server Nexon.

This advanced feature varies from person to person, and you have to find the ideal
server attempting to trial and error.

Ex: In my case the ideal is: [Brazil BR6] to [Los Angeles CA4]

Paying attention that I live in São Paulo and have Fiber 100MB internet, but to
another person who lives in another state or country and have another internet ISP,
this could change a lot the best combination by WTFast.

With basic WTFast plan, you will receive the default connection they think is best for
you, so you can't change the start/end points.
REDUCING LAG

Network Card (NIC)

This tip is for those who use the wired network card, do not try this with a wireless
network card because most do not support.

1º - Press the Windows Key + Pause Break

2º - On the left side click on Device Manager

3º - Click on Network Adapters

4º - Right Click on top of your wired network card and select the Properties option

5º - Click in the Advanced tab and change the values of the following:

Energy Efficiency = Disabled


Flow Control = Disabled
Moderate Interruption = Disabled
Receive Buffer = 256
Side Scaling = Disabled
Speed & Duplex = 1.0 Gbps Full Duplex (100Mbps depending on the board)
SWOI = Disabled
Transmit Buffer = 256

6º - Click OK and wait your network restart

PS. Some items may not appear or be with a similar name, no problem because
each network adapter can change according to manufacturer settings.
REDUCING LAG

Power Shell

These tips are valid only for Windows users 8 / 8.1 / 10

With the recent update from Microsoft, most of the network resources can be
customized by Power Shell, which is nothing more than an "evolved command
prompt"

1º - Open the Start Menu in Windows (Windows key)

2º - Type PowerShell and when you see the icon, Right Click button and run as
administrator

3º - Send the six commands:


PS: Press Return after typing each line

set-NetTCPSetting -SettingName InternetCustom -Timestamps Disabled

set-NetTCPSetting -SettingName InternetCustom -InitialRto 1000

set-NetTCPSetting -SettingName InternetCustom -NonSackRttResiliency Disabled

set-NetTCPSetting -SettingName InternetCustom -MaxSynRetransmissions 2

set-netTCPSetting -settingname InternetCustom -InitialCongestionWindow 10

netsh int tcp set global rsc=enabled


REDUCING LAG

References

Many of these tips i discovered in forums, since the time of Mabinogi Beta version,
that was when I felt motivated to improve my LAG.

For those who are curious and want to delve into the subject, below is a forum that
has most of the articles together made by Philip (lol my American version).

SpeedGuide
http://www.speedguide.net/articles.php?category=93

You might also like