Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



TCP Acknowledgement Frequency Configuration and Need Consultant in San Jose Area

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 28-03-2007
Will
 
Posts: n/a
TCP Acknowledgement Frequency Configuration and Need Consultant in San Jose Area

We are having severe file server performance issues in a Windows network,
and I need some help in diagnosing behavior I am seeing.

Windows 2003 clients and servers can alter the default TCP ACK frequency by
setting a value named TcpAckFrequency for each specific adapter located in
the registry key:

\\HKLM\system\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{999...999}

The value of TcpAckFrequency is the number of packets after which a TCP ACK
is sent. Higher values for TcpAckFrequency mean fewer ACKs are being sent
out.

In the following report, the client is Windows 2003 and the server is
Windows 2000. I can change TCP ACK behavior on the client and not on the
server. Server runs on a 10/100 ethernet and client is on a gigabit
ethernet.

On the client, TcpAckFrequency defaults to 2. At this setting, copying a
250 MB file from the server takes 45 seconds. That's not a terrible
result, but I'm just establishing a baseline.

Microsoft Windows 2003 performance guidelines recommends a setting for TCP
ACK of 13 for gigabit Ethernet. Setting TcpAckFrequency to 13 on the
client yields copy time of 20+ minutes!!

Microsoft recommends a TCP ACK setting of 5 for 10/100 networks. Setting
to 5 yields copy time of 18 minutes!!

I tried going the other direction and setting to TcpAckFrequency of 1.
This yields copy time of 2 minutes.

Finally, I tried setting to TcpAckFrequency of 3. This yields copy time of
13 minutes.

Can someone explain to me why increasing the TcpAckFrequency even slightly
is completely destroying performance of this file copy? The result is
very surprising to me.

On a related note, I am looking for a TCP expert who is also a Windows
networking expert in the South San Francisco Bay Area to help us out on this
problem. We are having numerous strange anomalies, including file copies
that just terminate without finishing, and it is obvious something fairly
serious is broken. If you are interested in doing that work as a
contractor please forward resume to westes AT earthbroadcast.com.

--
Will



Reply With Quote
  #2  
Old 28-03-2007
Arkady Frenkel
 
Posts: n/a
Re: TCP Acknowledgement Frequency Configuration and Need Consultant in San Jose Area

Setting TcpAckFrequency to 13 mean that you ignore delault TcpDelAckTicks of
200 ms and miniport send it after 13 packets, so maybe such delay much
bigger than 200 ms, only after that ( due to Nagle algorithm ) peer can
continue to send next packet of the data.
You can remove Nagle on peer socket and check what happen but that generally
strongly not recommended practice.
Arkady

"Will" <westes-usc@noemail.nospam> wrote in message
news:J_OdncVL4pC3nZfbnZ2dnUVZ_qarnZ2d@giganews.com...
> We are having severe file server performance issues in a Windows network,
> and I need some help in diagnosing behavior I am seeing.
>
> Windows 2003 clients and servers can alter the default TCP ACK frequency
> by setting a value named TcpAckFrequency for each specific adapter located
> in the registry key:
>
> \\HKLM\system\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{999...999}
>
> The value of TcpAckFrequency is the number of packets after which a TCP
> ACK is sent. Higher values for TcpAckFrequency mean fewer ACKs are being
> sent out.
>
> In the following report, the client is Windows 2003 and the server is
> Windows 2000. I can change TCP ACK behavior on the client and not on the
> server. Server runs on a 10/100 ethernet and client is on a gigabit
> ethernet.
>
> On the client, TcpAckFrequency defaults to 2. At this setting, copying a
> 250 MB file from the server takes 45 seconds. That's not a terrible
> result, but I'm just establishing a baseline.
>
> Microsoft Windows 2003 performance guidelines recommends a setting for TCP
> ACK of 13 for gigabit Ethernet. Setting TcpAckFrequency to 13 on the
> client yields copy time of 20+ minutes!!
>
> Microsoft recommends a TCP ACK setting of 5 for 10/100 networks. Setting
> to 5 yields copy time of 18 minutes!!
>
> I tried going the other direction and setting to TcpAckFrequency of 1.
> This yields copy time of 2 minutes.
>
> Finally, I tried setting to TcpAckFrequency of 3. This yields copy time
> of 13 minutes.
>
> Can someone explain to me why increasing the TcpAckFrequency even slightly
> is completely destroying performance of this file copy? The result is
> very surprising to me.
>
> On a related note, I am looking for a TCP expert who is also a Windows
> networking expert in the South San Francisco Bay Area to help us out on
> this problem. We are having numerous strange anomalies, including file
> copies that just terminate without finishing, and it is obvious something
> fairly serious is broken. If you are interested in doing that work as a
> contractor please forward resume to westes AT earthbroadcast.com.
>
> --
> Will
>



Reply With Quote
  #3  
Old 29-03-2007
Will
 
Posts: n/a
Re: TCP Acknowledgement Frequency Configuration and Need Consultant in San Jose Area

"Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
news:OwsQ%23VRcHHA.4888@TK2MSFTNGP02.phx.gbl...
> Setting TcpAckFrequency to 13 mean that you ignore delault TcpDelAckTicks
> of 200 ms and miniport send it after 13 packets, so maybe such delay much
> bigger than 200 ms, only after that ( due to Nagle algorithm ) peer can
> continue to send next packet of the data.
> You can remove Nagle on peer socket and check what happen but that
> generally strongly not recommended practice.


How would I remove Nagle on the peer socket?

--
Will


Reply With Quote
  #4  
Old 29-03-2007
Arkady Frenkel
 
Posts: n/a
Re: TCP Acknowledgement Frequency Configuration and Need Consultant in San Jose Area

SO_NODELAY option set on the socket with setsockopt()
Arkady

"Will" <westes-usc@noemail.nospam> wrote in message
news:07-dnVTrpqJEYJfbnZ2dnUVZ_h6vnZ2d@giganews.com...
> "Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
> news:OwsQ%23VRcHHA.4888@TK2MSFTNGP02.phx.gbl...
>> Setting TcpAckFrequency to 13 mean that you ignore delault TcpDelAckTicks
>> of 200 ms and miniport send it after 13 packets, so maybe such delay much
>> bigger than 200 ms, only after that ( due to Nagle algorithm ) peer can
>> continue to send next packet of the data.
>> You can remove Nagle on peer socket and check what happen but that
>> generally strongly not recommended practice.

>
> How would I remove Nagle on the peer socket?
>
> --
> Will
>
>



Reply With Quote
  #5  
Old 30-03-2007
Will
 
Posts: n/a
Re: TCP Acknowledgement Frequency Configuration and Need Consultant in San Jose Area

> "Will" <westes-usc@noemail.nospam> wrote in message
> news:07-dnVTrpqJEYJfbnZ2dnUVZ_h6vnZ2d@giganews.com...
>> "Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
>> news:OwsQ%23VRcHHA.4888@TK2MSFTNGP02.phx.gbl...
>>> Setting TcpAckFrequency to 13 mean that you ignore delault
>>> TcpDelAckTicks of 200 ms and miniport send it after 13 packets, so maybe
>>> such delay much bigger than 200 ms, only after that ( due to Nagle
>>> algorithm ) peer can continue to send next packet of the data.
>>> You can remove Nagle on peer socket and check what happen but that
>>> generally strongly not recommended practice.

>>
>> How would I remove Nagle on the peer socket?



"Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
news:egeYzpccHHA.648@TK2MSFTNGP04.phx.gbl...
> SO_NODELAY option set on the socket with setsockopt()
> Arkady


So obviously this isn't a practical solution for any problem I presented.
I'm not going to rewrite Microsoft's code, and the problem I reported was
with the COPY command and any other process that uses the OS primitives
required for file copying from a file server to a client.

--
Will


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "TCP Acknowledgement Frequency Configuration and Need Consultant in San Jose Area"
Thread Thread Starter Forum Replies Last Post
"Local area connection" not valid ip configuration ejrgo Networking & Security 1 17-10-2010 12:37 AM
ASP, SQL Consultant needed divya_r Software Development 5 10-08-2010 05:45 PM
Local Area Connection doesn't have a valid IP configuration Common Networking & Security 4 03-04-2010 06:30 AM
Notification area configuration in windows 7 Chandranath Windows Software 5 31-01-2010 04:44 AM
Carrier Consultant in Chennai alagubharathy Education Career and Job Discussions 2 11-08-2009 01:15 PM


All times are GMT +5.5. The time now is 08:59 PM.