Пользователь
Забыли пароль? Регистрация
Сейчас на сайте

Пользователей на сайте: 37

0 пользователей, 37 гостей

Nagle's Algorithm

#1
bombr3s
  • Статус: Легенда
  • Сообщения: 5573
  • Карма: 61
  • Возраст: 36
  • Пол:
кто 4то про это знает ?? работает ? =) http://en.wikipedia.org/wiki/Nagle's_algorithm

If you havent already, you can disable Nagle Algorithm from your registry.

Since you'll be messing with your registry, it's up to you whether or not you want to.

Before I tell you how to disable Nagle, let me tell you what it is.

Nagle Algorithm is a system which restricts the number of packets being sent to and from a network. Ping is then determined by the amount of time the packets are sent over a network. Disabling Nagle Algorithm equates to more packets being sent over a network, which equates to lower ping.

Alright now. Even if you didn't understand any of that, here are the steps:

======For Vista Users=======
1. Go to the Start Menu.
2. Type "regedit.exe" or just "regedit" (No quotations).
3. Browse to HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\Tcpip\Parameter s\Interfaces\
4. Look for a folder that contains your LOCAL IP ADDRESS under the Data column. The folder that it's in should be named similar, but not restricted to {1C3DE298-6536-4E3B-8BE6-457838544F56}. If there are more than 1 folders that contain your local IP, follow steps 5~8 in those folders.
5. Go to [Edit]-[New]-[DWORD (32-bit) Value]
6. Name the new file TcpAckFrequency. This is CaSe SeNsItIvE.
7. Right Click on TcpAckFrequency and select [Modify]
8. Set the Value Data to 1 and check off Hexadecimal.
9. Restart your computer.
=========================

========For XP Users========
1. Go to Start Menu.
2. Click the "Run" button.
3. Type in "regedit.exe" and hit enter. (No quotations)
4. Browse to HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\Tcpip\Parameter s\Interfaces\
5. Look for a folder that contains your LOCAL IP ADDRESS under the Data column. The folder that it's in should be named similar, but not restricted to {1C3DE298-6536-4E3B-8BE6-457838544F56}. If there are more than 1 folders that contain your local IP, follow steps 6~9 in those folders.
6. Go to [Edit]-[New]-[DWORD (32-bit) Value]
7. Name the new file TcpAckFrequency. This is CaSe SeNsItIvE.
8. Right Click on TcpAckFrequency and select [Modify]
9. Set the Value Data to 1 and check off Hexadecimal.
10. Restart your computer.
=========================

You may or may not notice a difference in performance, but the restriction is gone, and as long as you don't change computers, other online games should run with Nagle disabled. Those who are very close to the server should feel very minimal changes, though they will feel a big change if they are trying to communicate to a server that's overseas.

=========================
Another thing you can do to speed up your computer a little bit is adding the key TcpNoDelay to the registry. The process is the same for both Vista and XP so here goes:

1. Right click your desktop.
2. Select New > Notepad Document
3. Copy and paste this into the notepad.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers]

"TCPNoDelay"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers\OCMsetup]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers\Security]

"SecureDSCommunication"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers\setup]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Setup][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers]

"TCPNoDelay"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers\OCMsetup]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers\Security]

"SecureDSCommunication"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers\setup]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Setup]

4. Go to File > Save As
5. Save the name as "NoDelay.reg" (No quotes)
6. Look for a file on your desktop that looks like a defragmenting box.
7. Right click the file and select MERGE.
8. If you don't notice a difference, try to restart your computer.

As stated already, this won't change your ping very dramatically, or at all. However, for some people, it will change a little bit.

0 пользователя(ей) сказали спасибо:

#2
Harry_Potter
  • Статус: Патриот
  • Сообщения: 678
  • Карма: -9
  • Возраст: 32
  • Пол:
2 bombr3s
Убирает ограничение ТCP/IP насколько я понял??

Сам пробовал?
заметен ли эффект?)

0 пользователя(ей) сказали спасибо:

#3
bombr3s
  • Статус: Легенда
  • Сообщения: 5573
  • Карма: 61
  • Возраст: 36
  • Пол:
нет не ограни4ения .. с пакетами 4ё-то связано ... я се сделал ток х3 ... написано надо 4тоб сервак далеко от тебя был тогда разница видна .. я пока дело имел ток с эстонскими серваками )

0 пользователя(ей) сказали спасибо:

Пользователи читающие эту тему: 2

1 пользователь, 1 гость