Why when the time changed backwards, there were many TIME_WAIT sockets

From: Steven Ding (dwj_at_asia.com)
Date: 11/21/04


Date: Sun, 21 Nov 2004 12:02:29 +0800

Several days ago I encountered a very very strange thing.
I set one of my servers' time backward to sometime in year 2003 with
rdate. The server has a lot of TCP connections at that time.

However, several hours later, I found that there were many many sockets
with the state TIME_WAIT and no local ports available.

I know of the TIME_WAIT is used for retransmit the FIN2 ack to the peer
party and it should only be kept in a timer, which in many systems is
about twice the timer for retranssion.

But after I checked I found that TCP timers should be counted by a
"tick" rather than the system time. But the "tick" should not be
affected by the system time. So I wonder why so many TIME_WAIT sockets
cannot be cleaned in this case.

Thanks in advance!



Relevant Pages

  • Re: Why when the time changed backwards, there were many TIME_WAIT sockets
    ... > I set one of my servers' time backward to sometime in year 2003 with ... > about twice the timer for retranssion. ... > affected by the system time. ...
    (comp.unix.programmer)
  • Re: Nasty problem with time service after installing SP1.
    ... Both servers are run-of-the-bill servers. ... `LocalService` never had the right to change the ... system time, and there the knowledgebase article comes into play. ... > account and added the single privilege that it needed. ...
    (microsoft.public.windows.server.general)
  • Re: [PATCH] dynamic tick patch
    ... > HZ=100 does not allow improving the idle loop much further ... You'd need to trap into add_timer to make it a truly dynamic timer, ... I couldn't fix the algorithm you're depending on to get ... accurate system time, and I can guarantee such algorithm never worked ...
    (Linux-Kernel)
  • Re: ntp client over satellite and no CMOS battery
    ... uses the Windows multimedia timers and sets them to highest resolution of 1 ... like NTP looses about 15 to 20 milliseconds, which looks to NTP as if the ... system time has been stepped a bit. ... However, you know that under Windows, NTP uses a timer callback function ...
    (comp.protocols.time.ntp)
  • Re: Nasty problem with time service after installing SP1.
    ... remove the privileges from LocalService, not only does W32Time keep running ... Both servers are run-of-the-bill servers. ... system time, and there the knowledgebase article comes into play. ... > account and added the single privilege that it needed. ...
    (microsoft.public.windows.server.general)

Quantcast