Forum Discussion

samt_81209's avatar
samt_81209
Icon for Nimbostratus rankNimbostratus
Aug 28, 2007

Question on tcp-wan-optimized

Please explain why is the proxy low and high buffer set to the same thing? The default TCP profile has the low set at 4096 and the high at 16384.

 

 

profile tcp tcp-wan-optimized {

 

defaults from tcp

 

selective acks enable

 

nagle enable

 

proxy buffer low 131072

 

proxy buffer high 131072

 

send buffer 65535

 

recv window 65535

 

}

2 Replies

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Increasing the buffer high setting increases the max size of the serverside receive window, allowing servers to send larger amounts of data faster when conditions permit.

     

     

    Increasing the buffer low setting allows the BIG-IP system to buffer more server response data, esp useful for WAN connections, since the client side of the connection is typically "slower" than the server side. Although it does increase the memory required for each connection, it's a much more effective use of your servers than the alternative, which is to slow the server down to the client's speed by closing the server-side receive window.

     

     

    A larger buffer size allows the servers to respond as quickly as they are able & close the connection, and allows BIG-IP to manage the client side of the connection independently. When the buffer high setting is reached, BIG-IP will close the serverside receive window until some of the buffered data is sent to the client. When the amount of data buffered in the proxy buffer has drained to the proxy buffer low threshold setting, the BIG-IP system opens the receive window to the server again, allowing the server to send more data.

     

     

    With the buffer low set to 4096, the server receive window doesn't open again until there is < 4096 bytes of data waiting to be sent to the client.

     

     

    Setting the 2 values the same allows the receive window, once closed, to open again as soon as any data at all is sent to the client, rather than having to wait for the buffer to drain to a significantly lower value: Once the buffer high setting is reached, the recv window is closed. But as soon as BIG-IP transmits any data to the client, the buffer size drops below the buffer low setting, and the receive window is opened immediately.

     

     

    There's a solution on Ask5 (SOL3422) with some additional details that might be helpful: Click here

     

     

    HTH

     

    /deb
    • Craig_Jackson_2's avatar
      Craig_Jackson_2
      Icon for Nimbostratus rankNimbostratus
      Has tcp-wan-optimized been re-examined in more recent releases? Both Linux and Windows are now willing to offer a receive window on the order of 180kB. It seems like 65kB is becoming small in the era of RFC1323 window scaling.