Consider the following scenario:
- You are using a computer that is running Windows Vista, Windows Server 2003, or Windows XP.
- You try to print to a Line Printer Remote (LPR) printer by using LPR port monitor software or TCP/IP port monitor software.
This problem occurs because some printers use delayed acknowledgement (ACK) algorithms to decrease TCP overhead. A delayed ACK of up to 200 milliseconds may occur if a printer that uses these algorithms receives an odd number of packets from a computer that sends print jobs to the printer. During this 200-millisecond delay, the computer waits to send additional data to the printer. These 200-millisecond delays accumulate over time, and they eventually cause a significant reduction in the overall transfer speed of the print job.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in WindowsTo work around this problem, increase the size of the default Winsock send buffer, and then use the LPR port monitor to send the print job. To increase the size of the buffer, follow these steps.
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters
- On the Edit menu, point to New, and then click DWORD Value.
- Type DefaultSendWindow, and then press ENTER.
- In the details pane, double-click DefaultSendWindow.
- Click Decimal, type 64512 in the Value data box, and then click OK.
- Exit Registry Editor.
For more information about the DefaultSendWindow registry value, visit the following Microsoft TechNet Web site:
http://technet2.microsoft.com/WindowsServer/en/library/94d21089-411b-4bce-a823-49a77a46e7661033.mspx?mfr=trueFor more information about a similar behavior in Winsock applications, click the following article number to view the article in the Microsoft Knowledge Base:
823764 Slow performance occurs when you copy data to a TCP server by using a Windows Sockets API program
Article ID: 950326 - Last Review: Jan 7, 2017 - Revision: 1
Windows Vista Enterprise 64-bit Edition, Windows Vista Home Basic 64-bit Edition, Windows Vista Home Premium 64-bit Edition, Windows Vista Ultimate 64-bit Edition, Windows Vista Business, Windows Vista Business 64-bit Edition, Windows Vista Enterprise, Windows Vista Home Basic, Windows Vista Home Premium, Windows Vista Starter, Windows Vista Ultimate, Microsoft Windows XP Home Edition, Microsoft Windows XP Professional, Microsoft Windows Server 2003, Datacenter Edition (32-bit x86), Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems, Microsoft Windows Server 2003, Datacenter x64 Edition, Microsoft Windows Server 2003, Enterprise x64 Edition, Microsoft Windows Server 2003, Enterprise Edition (32-bit x86), Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems, Microsoft Windows Server 2003, Standard x64 Edition, Microsoft Windows Server 2003, Standard Edition (32-bit x86), Windows 7 Service Pack 1, Windows 8, Windows 8.1, Windows 10, Windows 10 Version 1511, Windows 10 Version 1607