Slashdot Mirror


Unix TCP Equivalent Settings in Windows 2000?

sameerdesai asks: "While working on a project that required client-server functionality I was running into processes that wouldn't finish and eventually hang. While running packet tracing, I found out the tcp_fin_wait_2_timeout setting on the server side (UNIX) was too low for the Windows client, and after increasing that value it worked great. I am trying to apply a similar technique for a Windows server and was wondering what the equivalent registry key is for UNIX's tcp_fin_wait_2_timeout setting? Also, is there a guide out there that compares TCP setting in UNIX with Windows?"

11 of 65 comments (clear)

  1. Danger Wil Robinson... by hoggoth · · Score: 5, Insightful

    I will not deploy any software that requires me to start tweaking obscure registry values that change my server's basic TCP behavior. I'm sure I'm not alone in this.

    I don't know what you are planning to do with this project, ie: sell it to the masses, make it open source, use it in house. Just keep this in mind.

    --
    - For the complete works of Shakespeare: cat /dev/random (may take some time)
    1. Re:Danger Wil Robinson... by Curtman · · Score: 5, Insightful

      Thats a very unrealistic thing to say. There is no magical configuration that will be optimal in all circumstances. Tweaking your registry to try and get a few extra FPS out of Doom3 is one thing, but administering a large database with many users is something completely different.

  2. The registry key for windows by esac17 · · Score: 5, Informative

    Is HKLM\System\CurrentControlSet\Services\Tcpip\Param eters
    REG_DWORD
    30

    Setting this to anything below 30 decimal will just set it to 30 anyway though.

    http://www.microsoft.com/windows2000/techinfo/re sk it/en-us/default.asp?url=/windows2000/techinfo/res kit/en-us/regentry/58811.asp

    1. Re:The registry key for windows by sporktoast · · Score: 5, Informative

      Looks like you forgot to mention one thing, and the slashed up URL made it slightly more difficult to discover.

      There are about a hundred different entries contained in HKLM\System\CurrentControlSet\Services\Tcpip\Param eters. The REG_DWORD in question is the one labeled "TcpTimedWaitDelay". Accepted values are between 30 and 300 (seconds).

      --
      In a related story, the IRS has recently ruled that the cost of Windows upgrades can NOT be deducted as a gambling loss.
  3. Re:Today on Ask Google by DjReagan · · Score: 3, Funny

    Now why didn't I think of looking in /proc on my Windows machine? Oh yeah.. that's right.. its because IT DOESN'T EXIST.

    Now, if I was doing on my Linux machine, that would work fine. But that wasn't what the guy's question was now, was it?

    --
    "When I grow up, I want to be a weirdo"
  4. Fishy by ezzzD55J · · Score: 4, Insightful
    This state is the amount of time a TCP implementation will keep a TCP connection open that it has closed itself, i.e., sent a FIN for (it has no more data to send). However, the other TCP is still allowed to send as much data as it likes, until it sends a FIN (once that FIN is ACKked by this side, _then_ the connection is really released - all that remains is the blue/red army problem which isn't the topic now).

    So, what is this application doing relying on a timeout value in this phase? It would be terrible to be dependent on a TCP implementation in an application!

  5. Why bother tweaking registry values when you by Anonymous Coward · · Score: 3, Funny

    can change hard-coded values in Linux source code and recompile.

  6. Re:User Friendly by shufler · · Score: 3, Informative

    Ubscure interface?

    REGEDIT [/v|-v] [/s|-s] <FILENAME>

    [/s|-s]
    When a filename is specified on the command line, this switch is used to suppress any informational dialog boxes that would normally be displayed. This is useful when the Setup program for an application wants to execute REGEDIT.EXE with a .REG file, but does not want the user to be confused by any dialog boxes that are displayed.

    Put what you need in the file you wish to import.

    http://support.microsoft.com/default.aspx?scid=htt p://support.microsoft.com:80/support/kb/articles/Q 82/8/21.ASP&NoWebContent=1

  7. Re:User Friendly by dpilot · · Score: 3, Informative

    "REGEDIT " isn't the obscure part. Just IMHO everything about the bits and handles after that is about equally obscure between regedit and /proc. Both are equally unfriendly. But you can do /proc without a special GUID program, so also IMHO it wins the toss.

    --
    The living have better things to do than to continue hating the dead.
  8. Re:I don't get it by the+last+username · · Score: 5, Funny
    Sure. All you have to do is...

    Convince IT management it's a good idea

    Reduce Windows IT support headcount (make people redundant)

    Hire Linux IT support/developers

    Obtain budget for new hardware (I assume you didn't really mean that all the other apps on that server have to be ported from Visual Basic, so we're actually talking about a new server here)

    Explain increased staff costs and new hardware to senior management

    Explain free, "unsupported" software to senior management (or did you want funding for a Redhat support contract too?)

    Convince senior management it's a good idea

    Then either...

    Install Linux

    Port app to Linux

    Test

    or...

    Update CV (called a resume in French)

    Hit the job websites

    Phew! Well, at least you didn't have to...

    Change a single registry setting on an otherwise working system

    I'm happy running Linux at home (actually I run BSD, but that's besides the point), but I'd need a damn good reason before I'd suggest "just installing Linux" in a Windows-only shop.