[Tutorial] How to improve ping / reduce lag in SAAF.

Bilal

Fired Staff
Nov 5, 2016
41
9
8
17
Faisalabad, Pakistan.
We all know how much lag sucks. Sometimes, it makes it impossible for us to play. The real suspect is our ISP (internet service provider) but thankfully, there are a few tricks to improve ping and packet loss in SAAF (and other online games as well), or basically, reduce lag. There are three things you can do:

Make sure you're logged in as administrator before attempting the following steps.

1. Changing the MTU.
A maximum transmission unit (MTU) is the largest size packet or frame, specified in octets (eight-bit bytes), that can be sent in a packet- or frame-based network such as the Internet. The Internet's Transmission Control Protocol (TCP) uses the MTU to determine the maximum size of each packet in any transmission. (Source: Click here). Open up the spoiler below and follow the steps.
To change the MTU, search "cmd", right click, and start it as administrator. Type the following:
Code:
netsh interface ipv4 show subinterface
It will show you something like this: (There can be variations in some cases)


Now, check which MTU quantity would be the best for your case. This can be done by: (Default: 1500, Suggested: 1473, DO NOT go below 1400)
Code:
ping www.saaf.tk -f -l [1400-1500]. (Try any number between 1400 to 1500, when it says 0% loss, that's the one you're looking for).

For me, it was 1440.

Once you've found your lucky number, type the following. Change the "mtu=" value to your lucky number. (Press enter after typing every line, it should say "Ok".)
Code:
netsh interface ipv4 set subinterface "Wi-Fi" mtu=1440 store=persistent
netsh interface ipv4 set subinterface "Loopback Pseudo-Interface 1" mtu=1440 store=persistent
netsh interface ipv4 set subinterface "Ethernet" mtu=1440 store=persistent
netsh interface ipv4 set subinterface "Local Area Connection* 2" mtu=1440 store=persistent

That's it for changing MTU. Move to the next step.

2. Setting up static IP address.
A static IP address is a number (in the form of a dotted quad) that is assigned to a computer by an Internet service provider (ISP) to be its permanent address on the Internet. (Source: Click here). Open up the spoiler below and follow the steps.
First of all, open up your router configuration. (Default: 192.168.1.1, Username: admin, Password: admin - You can locate login credentials on the back side of your router) I have PTCL AN-1020-25 router, but your router settings must be quite similar.

Click on Advanced Settings > Lan > Add Entries.


Open up "cmd" / command prompt once again. Find your Mac Address / Physical Address by typing ipconfig /all.


Write your Physical Address / Mac Address in the field given. Write any IP address between 192.168.1.1 and 192.168.1.255. That will become your static IP for your PC, that means, your router will not assign that IP address to any other device in your home.

That's it, move to the next step.

3. Changing DNS server.
Domain Name Servers (DNS) are the Internet's equivalent of a phone book. They maintain a directory of domain names and translate them to Internet Protocol (IP) addresses. This is necessary because, although domain names are easy for people to remember, computers or machines, access websites based on IP addresses. (Source: Click here). Click on the spoiler below and follow the steps.
Open "Network and Sharing Center", click on "Change adapter settings".


Right click on "Wi-Fi" or "Ethernet" if you have a wired connection. Click "Properties", and find "Internet Protocol Version 4 (TCP/Ipv4)". Double click on it, and check "Use the following IP address" and fill in the IP address you chose while setting up a static IP address. The subnet mask will automatically appear. You can find out your default gateway by opening up command prompt and typing ipconfig /all.
Check "Use the following DNS server addresses", and write 8.8.8.8 in the "Preferred DNS server" and 8.8.4.4 in the "Alternate DNS server". Check "Validate settings upon exit" and click on "Ok".

Reboot your modem and you're good to go!

I hope this helped you guys, if it did, leave a positive rating. If anyone finds any mistake in my tutorial or wants to add something, be sure to let me know so I can edit the post. Thanks.
 
  • Like
Reactions: Michel and Yoobi

Dollarman 2.0

New Member
Apr 5, 2017
202
6
0
16
Mauritius
Coo, it'll be good for users who have this problem. I had it before but it has been fixed now :) Thanks for this tutorials ;)
 

Bilal

Fired Staff
Nov 5, 2016
41
9
8
17
Faisalabad, Pakistan.
Update - 20/7/2017

There are a few more things which you should change in your router settings. These would further enhance your gaming and browsing experience. (My ping reduced from 220 with constant packet loss to 180 with no packet loss).
  • Head to your router configuration, navigate through Advanced Setup to Quality of Service and disable it. Most routers come with enabled Quality of Service as a part of factory settings.
  • Find DSL and disable ADSL2, ADSL2+, AnnexL, AnnexM. Keep G.Dmt, G.lite, T1.413 enabled.
  • If you still notice packet loss or high latency after following all of the steps correctly, it could be a problem with your router, or the server might be facing lag issues. A temporary fix is to reboot your modem at least 5 times, with 10 seconds gap between each reboot.
* All of the steps are tested by me, and do not pose any threat. It's completely safe with no disadvantages.
 

Bilal

Fired Staff
Nov 5, 2016
41
9
8
17
Faisalabad, Pakistan.
Update - 21/7/2017
  • After finding out your optimal MTU, add 28 to it which would make it the max amount of MTU your router can have. For example, my optimal MTU is 1464, if I add 28 to it, that's 1492. You must change your MTU to 1492 (in my case).
  • Open your router configuration. Navigate to Wireless > Advanced. Make sure "Channel" is set on "Auto". If it shows "Interference severe", change the channel from Auto to 1-5.
  • Ethernet is preferred for online gaming over Wi-Fi.

 
Last edited by a moderator:

Bilal

Fired Staff
Nov 5, 2016
41
9
8
17
Faisalabad, Pakistan.
Update - 24/7/2017
  • To reduce ping spikes (ping jumping up and down frequently), open the command prompt and type the following.
    Code:
    netsh wlan set autoconfig enabled=no interface="Wi-Fi"
    It should respond with, Auto configuration has been disabled on interface "Wi-Fi". If it doesn't, then you might have mistyped your interface=" part. You can identify your wireless interface by typing,
    Code:
    netsh interface ipv4 show subinterface
    This will stop your device from searching internet connections and updating wifi signals frequently, thus reducing ping spikes. Bare in mind that once you disable that, you will need to re-enable it to connect to your internet if you disconnected / restarted your computer or laptop. For that, I have a simple solution and that is to make two shortcuts on your desktop, and name them ON and OFF so you can turn this feature on and off at will. You can do this by right clicking on desktop > shortcut > type in the field given:
    Code:
    %comspec% /c netsh wlan set autoconfig enabled=no interface="Wi-Fi"
    Once you click next, it will ask you to name the file, you can name it OFF.exe since it will turn off the autoconfig feature. Create another shortcut on your desktop and type in the first field:
    Code:
    %comspec% /c netsh wlan set autoconfig enabled=yes interface="Wi-Fi"
    Name it ON.exe as it will turn on autoconfig. Now, you can enable or disable this feature at will, though upon restart, autoconfig will be enabled automatically so you will have to disable it every time by double clicking the "OFF.exe" icon on your desktop. You must start ON.exe or OFF.exe as administrator as it requires administrator privileges.
  • You must do all the steps in the topic while MTA is closed in order for the changes to take effect.
  • If your internet is not showing any problems, I suggest you skip this part, as it will only help those who have to suffer through ping spikes a lot.
If you have any sort of queries, pm me or leave a comment.
 
  • Like
Reactions: 4 people

Brian

New Member
Mar 1, 2017
16
2
0
15
Philippines
Good Tutorial, but im having a problem.. when i type the following and change the "mtu" value.. it says The filename, directory name, or volume label syntax is incorrect... pls help me to fix this problem . im really happy for you to help me this
 

Attachments

General
Help Users
  • No one is chatting at the moment.
    Join our discord: discord.saaf.tk
    Drifter Drifter: Check My Video Boyz