Flawed Routers Flood University of Wisconsin Internet Time Server (2003)

Sep 14, 2026 03:33 AM - 17 hours ago 5

ABSTRACT

In May 2003, the University of Wisconsin - Madison recovered that it was the recipient of a continuous ample standard flood of inbound Internet postulation destined for 1 of the campus' nationalist Network Time Protocol (NTP) servers. The flood postulation complaint was hundreds-of-thousands of packets-per-second, and hundreds of megabits-per-second.

Subsequently, we person wished the sources of this flooding to be virtually hundreds of thousands of existent Internet hosts throughout the world. However, alternatively than having originated arsenic a malicious distributed denial-of-service (DDoS) attack, the guidelines origin is really a superior flaw successful the creation of hundreds of thousands of 1 vendor's low-cost Internet products targeted for residential use. The unexpected behaviour of these products presents a important operational problem for UW-Madison for years to come.

This archive includes the first nationalist disclosure of specifications of these products' superior creation flaw. Furthermore, it discusses our ongoing, multifaceted attack toward the solution which involves the University, the products' manufacturer, the applicable Internet standards (RFCs), and the nationalist Internet work and user communities.

Table of Contents

Flawed Routers Flood University of Wisconsin Internet Time Server Netgear Cooperating pinch University connected a Resolution The Initial Flood Figure 1. The Initial Flood Blocking the Flood Background: Simple Network Time Protocol (SNTP) Figure 2. A SNTP Request Packet Figure 3. A Unicast SNTP Reply Packet The Flood Continues Figure 4. The Flood Continues: One Month Later Investigation Contacting Source Networks Figure 5. Email Notification to Peer Institution Gathering Background Information Examining the Netgear Code Contacting Netgear Figure 6. Email to Netgear Support Figure 7. Email from Netgear Support The Review Process The Flawed SNTP Client Impact to Netgear Customers Code Upgrades for Affected Netgear Products Figure 8. Affected Netgear Products Flawed Product Counts Figure 8a. Netgear SNTP Clients Per Day Suggested Fixes The Initial Fix: "Instant" Code Network Operational Options: To Serve aliases To Sever? Endgame A: UW-Madison Netgear Anycast Time Service Figure 10. A WiscNet BGP-based Anycast Time Service Endgame B: Attempt to Suppress the Requests Figure 11. Using the Global BGP Routing Table to Squelch Requests Endgame B: IP Resources Required Figure 12. IP Resources Required for BGP-based Suppression Inform the Internet Community Clarify Internet Best Current Practice and Protocol Standards Status, August 21, 2003 Figure 13. The Most Recent Flood Afterthoughts Acknowledgements Analysis Tools References / Further Reading Frequently Asked Questions What is Netgear's liability for causing (however inadvertently) this denial of work for your network? Have you considered putting up a server which sends backmost clone answers to netgear clients, to origin group to upgrade? What is the expected life-time for these products? In fig 13, could that "shark fin" spike person thing to do pinch past week's powerfulness grid nonaccomplishment (Blackout 2003), and consequent "rolling" restoration? Are location different devices than those mentioned which besides suffer from the flaw which causes inadvertent flooding of your network? What was the effect of this article being slashdotted? Why is simply a accepted shaper recall/defect solution not a possibility? I'm pinch [the IT press], do you person immoderate clip to speak pinch me? How has this communicative been covered successful the press?

Figure 1 is simply a chart of inbound postulation to our field complete a 48 hr period, tuesday done thursday, May 13-15, 2003.

The first half of the chart shows emblematic postulation levels for our campus, with highest inbound packet rates of astir 40,000 packets-per-second. However, arsenic you tin see, our inbound packet-per-second complaint accrued dramatically starting May 14 astatine astir 8AM localtime, chiefly from our commodity Internet Service Provider, WiscNet. At astir 9:40AM this further postulation began to origin problems pinch our measurement infrastructure and immoderate of our bequest intra-campus routers. By 11AM we had identified the inbound flood postulation by protocol and port numbers. It was destined for our nationalist clip server and we blocked the incoming postulation upstream, astatine WiscNet's separator routers, which alleviated the problem for the clip being. This is simply a emblematic action for network operators to return successful guidance to malicious Denial-of-Service flood attacks, of which we assumed this was one.


The postulation successful mobility appeared to beryllium Network Time Protocol (NTP) queries in that they consisted of 76-byte IP packets destined for UDP larboard number 123 (NTP). However, these packets had an different characteristic: though they appeared to travel from galore sources, they each had the aforesaid root larboard number: 23457. Therefore, it was imaginable to configure our routers to artifact conscionable a subset of inbound queries to our NTP server, and proceed to work the other legitimate requests normally. We conscionable blocked each UDP postulation sourced from larboard 23457 and destined for larboard 123 (NTP) of the NTP server in question. (Note that the number 23457 seems hand-picked, arsenic the number subsequent to 23456.) At this constituent we simply chalked it up to naivete connected the portion of the "attacker", which we presumed was forging many random root addresses, and near it astatine that, presuming that the flood would subside wrong hours arsenic "script kiddie"-launched flood attacks often do.


Paraphrased from RFC2030 by Dave Mills:

The Simple Network Time Protocol (SNTP) is an adjustment of the Network Time Protocol (NTP) utilized to synchronize machine clocks successful the Internet. It is simply a simple, stateless remote-procedure telephone (RPC) system with accuracy and reliability expectations akin to the UDP/TIME protocol described successful RFC-868. SNTP tin beryllium utilized erstwhile the ultimate performance of the afloat NTP implementation is not necessary.

Note that SNTP uses the aforesaid packet format arsenic NTP. In this way, SNTP clients tin utilize NTP servers, moreover though they do not instrumentality the complexities of the afloat peer-to-peer NTP protocol.

SNTP conversations typically travel these steps:

  1. A customer that would for illustration to cognize the clip sends a UDP packet containing the SNTP petition to the well-known NTP larboard number 123 of an NTP server, and awaits a reply.

    Figure 2. A SNTP Request Packet

    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |LI | VN |Mode | Stratum | Poll | Precision | | =0|= 1-4|= 3 | = 0 | = 0 | = 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Root Delay | | = 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Root Dispersion | | = 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reference Identifier | | = 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Reference Timestamp (64 bits) | | = 0 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Originate Timestamp (64 bits) | | = 0 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Receive Timestamp (64 bits) | | = 0 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Transmit Timestamp (64 bits) | | = n | | (some number: zero, aliases the clip of petition sent by client) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2. The server responds pinch a UDP packet containing the SNTP reply from the well-known NTP larboard number 123 to the SNTP client.

    Figure 3. A Unicast SNTP Reply Packet

    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |LI=| VN |Mode | Stratum | Poll | Precision | |0-2|=req.|= 4 | = 1 - 14 | (ignore) | (ignore) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Root Delay | | (ignore) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Root Dispersion | | (ignore) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reference Identifier | | (ignore) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Reference Timestamp (64 bits) | | (ignore) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Originate Timestamp (64 bits) | | (copied from petition Transmit Timestamp) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Receive Timestamp (64 bits) | | (time petition was received by server) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Transmit Timestamp (64 bits) | | (time of reply sent by server) | | = n | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3. Upon receiving the response, the customer optionally uses the Originate Timestamp from the reply to validate the response, attempting to assure that it is so a consequence to this client's request. (If the reply were spoofed from different source, it would beryllium improbable to incorporate the correct worth arsenic the Originate Timestamp). Then it plucks the value from the "Transmit Timestamp", possibly modifying it somewhat to account for the estimated one-way end-to-end delay, and uses the result arsenic the existent clip to group its section clock.

Now, backmost to our story...


One period later, we discovered that the flood of inbound NTP traffic persisted astatine an moreover much incredibly precocious rate, arsenic evidenced by Figure 4 which land our router's discarded packet rates opening successful early June 2003, for the postulation successful question.

In Figure 4, statement that: (1) location are flimsy regular fluctuations successful rate (perhaps owed to diurnal personification behavior), (2) generally, the complaint stays at a worth complete 250,000 packets-per-second (and complete 150 megabits-per-second), and (3) that the postulation complaint increases throughout the clip shown. The crisp drops successful postulation complaint successful this figure are not owed to the flood subsiding but alternatively were owed to network attraction and a impermanent artifact upstream from the observation point.

Once we recovered that this flood was continuing and was still expanding in rate, we investigated further. By cautiously removing the artifact connected some ingress interfaces, we allowed a trickle of postulation done to the server and captured the packets including their payload. We learned that these packets appeared to beryllium legitimate, well-formed Simple Network Time Protocol (SNTP) type 1 queries, albeit astatine an inexplicably precocious complaint from each customer host. For instance, during one trace, galore clients produced astir 1 query per second. This would be highly different for a decently constructed SNTP client, since an application which uses SNTP is simply willing successful mounting its own clock comparatively accurately truthful that its big has immoderate reasonable notion of the existent time. One query per 2nd is ridiculous, and is far from champion believe for NTP customer behavior.

Also, we discovered that galore of the IP addresses could beryllium resolved to DNS names and moreover that the IP addresses each appeared to be valid sources for the fixed ingress interface from which we removed the block. This indicated that it was rather imaginable that the source addresses were not forged but alternatively were existent Internet hosts running immoderate very different SNTP client.

Alas, nary of the customer root hosts were wrong our section campus network. This meant we would request to enlistee the thief of unit at remote sites to assistance successful the investigation.


Of the apical talker root IP addresses from the aforementioned packet trace, I selected 2 customer hosts from different universities pinch talented network unit who would beryllium acquainted pinch responding to specified incidents.

The pursuing is an email I sent to the Incident Response Team astatine 1 of those institutions to which 1 of the customer big addresses belonged. (To support a modicum of anonymity, I person replaced the existent SNTP client's IP reside pinch 10.42.69.10 and person besides removed the email domain names.)

Figure 5. Email Notification to Peer Institution

Date: Sat, 14 Jun 2003 04:34:11 -0500 From: Dave Plonka <plonka@localdomain> To: abuse@[remotedomain] Subject: sntp/ntp query flood from 10.42.69.10 to ntp1.cs.wisc.edu [Organization] web maltreatment folks, Since May 14, 2003 ~0800 cardinal time, 1 of our campus' NTP servers "ntp1.cs.wisc.edu" (128.105.39.11) has been the recipient of a large-scale flood of Simple Network Time Protocol (SNTP) requests - much much than it tin service. This melodramatic summation successful inbound SNTP requests inexplicably continues moreover now. To mitigate this flood we are presently blocking complete over 250K pkts/sec, exceeding 150 megabits/sec, and it has been continuing for weeks. We are successful the process of trying to find if this flood is potentially malicious aliases if it is an SNTP customer misconfiguration aliases bug. This postulation chiefly consists of 76-byte UDP packets that are SNTP version 1 queries from very galore root big addresses directed to ntp1.cs.wisc.edu larboard 123 (NTP). Unusually, these requests each person a UDP root larboard of 23457. We person identified the big address 10.42.69.10 arsenic conscionable 1 of the sources. (However, location are at least tens of thousands of root big addresses.) I person attached a timestamped log of a packet seizure from the afternoon of June 13, 2003 (Friday) evidencing the SNTP query packets from the big 10.42.69.10 astatine an unusually precocious complaint of astir one per second. A packet decomposition (by tethereal) and hex dump of the last packet (frame 998) successful the log is included arsenic well, which shows them to beryllium valid SNTP v1 queries arsenic described successful RFC 1361, http://www.ietf.org/rfc/rfc1361.txt. Could you assistance america ASAP pinch this investigation by identifying that host's operating strategy and what SNTP customer codification whitethorn beryllium moving on that host? It would beryllium absorbing to cognize if a process on 10.42.69.10 presently has UDP larboard 23457 bound and what codification that process is running. Thanks, Dave P.S. Our investigation truthful acold has shown that Windows systems specified as 2000 and XP person an "Internet Time" characteristic which is usually configured to nonstop SNTP requests to the Microsoft server "time.windows.com", but this server tin beryllium changed. I person yet to place immoderate SNTP client that regularly uses UDP larboard 23457 arsenic its root port. (Note that port number seems hand-picked, arsenic the number consequent to 23456.) ---------------------------------------------------------------------- 1 2003-06-13 16:32:24.8808 10.42.69.10 -> 128.105.39.11 NTP NTP 7 2003-06-13 16:32:25.9611 10.42.69.10 -> 128.105.39.11 NTP NTP 14 2003-06-13 16:32:27.0412 10.42.69.10 -> 128.105.39.11 NTP NTP 21 2003-06-13 16:32:28.1215 10.42.69.10 -> 128.105.39.11 NTP NTP 27 2003-06-13 16:32:29.2020 10.42.69.10 -> 128.105.39.11 NTP NTP 33 2003-06-13 16:32:30.2821 10.42.69.10 -> 128.105.39.11 NTP NTP 39 2003-06-13 16:32:31.3624 10.42.69.10 -> 128.105.39.11 NTP NTP 45 2003-06-13 16:32:32.4427 10.42.69.10 -> 128.105.39.11 NTP NTP 51 2003-06-13 16:32:33.5232 10.42.69.10 -> 128.105.39.11 NTP NTP 56 2003-06-13 16:32:34.6049 10.42.69.10 -> 128.105.39.11 NTP NTP 68 2003-06-13 16:32:36.7638 10.42.69.10 -> 128.105.39.11 NTP NTP 74 2003-06-13 16:32:37.8441 10.42.69.10 -> 128.105.39.11 NTP NTP 78 2003-06-13 16:32:38.9242 10.42.69.10 -> 128.105.39.11 NTP NTP 84 2003-06-13 16:32:40.0050 10.42.69.10 -> 128.105.39.11 NTP NTP 90 2003-06-13 16:32:41.0846 10.42.69.10 -> 128.105.39.11 NTP NTP 96 2003-06-13 16:32:42.1647 10.42.69.10 -> 128.105.39.11 NTP NTP <snip> 998 2003-06-13 16:35:13.3789 10.42.69.10 -> 128.105.39.11 NTP NTP Frame 998 (90 connected wire, 90 captured) Arrival Time: Jun 13, 2003 16:35:13.378978000 Time delta from erstwhile packet: 0.524605000 seconds Time comparative to first packet: 168.498125000 seconds Frame Number: 998 Packet Length: 90 bytes Capture Length: 90 bytes Ethernet II Destination: 00:0a:41:db:58:00 (00:0a:41:db:58:00) Source: 00:0a:8b:bf:70:7c (00:0a:8b:bf:70:7c) Type: IP (0x0800) Internet Protocol, Src Addr: 10.42.69.10 (10.42.69.10), Dst Addr: 128.105.39.11 (128.105.39.11) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..0. = ECN-Capable Transport (ECT): 0 .... ...0 = ECN-CE: 0 Total Length: 76 Identification: 0x2cc7 Flags: 0x00 .0.. = Don't fragment: Not set ..0. = More fragments: Not set Fragment offset: 0 Time to live: 243 Protocol: UDP (0x11) Header checksum: 0xb335 (correct) Source: 10.42.69.10 (10.42.69.10) Destination: 128.105.39.11 (128.105.39.11) User Datagram Protocol, Src Port: 23457 (23457), Dst Port: 123 (123) Source port: 23457 (23457) Destination port: 123 (123) Length: 56 Checksum: 0xb0bd (correct) Network Time Protocol Flags: 0x0b 00.. .... = Leap Indicator: nary informing (0) ..00 1... = Version number: reserved (1) .... .011 = Mode: customer (3) Peer Clock Stratum: unspecified aliases unavailable (0) Peer Polling Interval: invalid (0) Peer Clock Precision: 1.000000 sec Root Delay: 0.0000 sec Clock Dispersion: 0.0000 sec Reference Clock ID: Unindentified reference root '' Reference Clock Update Time: NULL Originate Time Stamp: NULL Receive Time Stamp: NULL Transmit Time Stamp: NULL 0000 00 0a 41 db 58 00 00 0a 8b bf 70 7c 08 00 45 00 0010 00 4c 2c c7 00 00 f3 11 b3 35 0a 2a 45 0a 80 69 0020 27 0b 5b a1 00 7b 00 38 b0 bd 0b 00 00 00 00 00 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0050 00 00 00 00 00 00 00 00 00 00

Network unit from 2 universities investigated 2 root hosts which I reported arsenic being sources of these anomalous SNTP queries. Both reported that a Netgear marque router was the root of the traffic. (Specifically, one was identified arsenic exemplary MR814.)

Now things started to make immoderate sense. Many root hosts each utilizing the same source larboard number could beryllium explained by an embedded SNTP customer successful which the programmer hard-coded the root larboard number (23457).


While searching the web for inheritance accusation connected Netgear products' acclaimed NTP support, I came crossed the pursuing quote (from ICSA Labs Firewall Lab Report connected the NETGEAR FR114P):

The Netgear FR114P relied connected a abstracted NTP-based clip root to set the existent day and time, arsenic it did not person an soul artillery and clock. The merchandise is hard-coded pinch circumstantial NTP clip sources that are accessible done the nationalist Internet. Even aft configuring the product to entree a circumstantial NTP server, the merchandise still attempted to access its hard-coded NTP clip sources, while simultaneously accessing the clip root specified

Conclusion

The Candidate Firewall Product met each the criteria elements successful the Baseline and Residential modules and truthful has attained ICSA Labs Firewall Certification.

Note that Netgear reports that the FR114P does not incorporate the specific SNTP flaws described here. I conscionable recovered it interesting, since that was the only NTP-related flaw astir which I recovered accusation connected the web.

In bid to verify our presumption that the root of the flood of SNTP queries are the Netgear Platinum family products and to properly characterize this problem to the vendor, the Netgear codification for a number of their products was downloaded and investigated.

Simply by utilizing the Unix "strings" command, I was capable to verify that indeed the Netgear codification seems to incorporate the magic number 23457 (as a larboard number):

$ strings RP614_4_12.bin |grep 23457 connected 23457 port. $ strings MR814_4_11.bin |grep 23457 connected 23457 port.

Using a akin technique, I recovered the pursuing IP addresses embedded as ASCII strings successful RP614_4_12.bin:

128.105.39.11 # ntp1.cs.wisc.edu (a.k.a. "caesar.cs.wisc.edu") 192.168.1.101 66.37.215.43 12.234.94.14 192.168.0.1
(Note that I added the DNS sanction comments for clarity; those strings did not occur successful the binary file.)
Likewise, these IP addresses were embedded successful MR814_4_11.bin:
0.0.0.0 12.234.94.142 66.37.215.43 192.168.0.102 128.105.39.11 # ntp1.cs.wisc.edu (a.k.a. "caesar.cs.wisc.edu") 192.168.0.1 192.168.1.101

Of 3 globally routable IP addresses therein, only 128.105.39.11 appears to beryllium utilized arsenic an NTP server. One of the others was an IP address antecedently utilized by the "dyndns.org" move DNS sanction service. Netgear has reported to america that the remaining embedded globally routable IP addresses are nary longer utilized and that they are portion of dead code near complete from debugging by 1 of the developers.


On June 16, 2003 I sent the pursuing email connection to Netgear support. Since this rumor is much important than the emblematic customer support inquiry, I besides sent it straight to immoderate Netgear employees (whose email addresses were culled from the web) asking them to communicate it to the due group successful engineering and/or to have someone interaction maine by telephone aliases email.

Figure 6. Email to Netgear Support

Date: Mon, 16 Jun 2003 16:00:21 -0500 From: Dave Plonka <plonka@localdomain> To: [email protected] Subject: NETGEAR products abusing University of Wisconsin clip server NETGEAR support folks, Since May 14, 2003, the publicly-advertised Internet clip server "ntp1.cs.wisc.edu" (a.k.a. "caesar.cs.wisc.edu", 128.105.39.11) astatine the University of Wisconsin-Madison has been the recipient of a large-scale flood of clip queries apparently from NETGEAR products deployed throughout the Internet. Currently, based connected our study we judge that the NETGEAR "Platinum" products specified arsenic the RP614 and MR814 are the superior root of this flood of traffic. They apt will request to person their codification changed to mitigate what is fundamentally an accidental Denial-of-Service flood against our NTP infrastructure. The inbound aggregate postulation complaint to our web from NETGEAR products presently exceeds 250,000 packets-per-second and 150 megabits-per-second astatine our separator routers, apparently from astatine slightest tens-of-thousands of NETGEAR sources. This has besides costs america galore activity hours of Internet postulation engineering, troubleshooting, and maltreatment investigation. Specifically, the codification for the Platinum products appears to incorporate an embedded Simple Network Time Protocol (SNTP) client, which sends queries from UDP larboard 23457 to larboard 123 of the IP big 128.105.39.11. Inexplicably, NETGEAR's products codification ships pinch our server explictly configured by IP address. We person wished that astatine slightest the following codification images explicitly incorporate our server's IP address: MR814_4_11.bin, MR814_v409.bin, RP614_4_0_0.bin, RP614_4_12.bin. We judge this is inappropriate and not champion existent believe for load-balancing and reliability of the Internet's NTP service. In addition to the sheer number of deployed products, these requests often occur astatine a very accelerated complaint from each instrumentality (for instance, 1 per second) and truthful put an tremendous load connected our NTP server. Please interaction maine arsenic soon arsenic imaginable regarding your products' default SNTP customer configration, imaginable SNTP customer package bug, and the resulting incident which required america to artifact your customer's SNTP queries to our Network Time Protocol (NTP) server. We look guardant to proceeding from you soon. Dave P.S. our NTP server is publically advertised: http://www.ntp.org/ http://www.eecis.udel.edu/~mills/ntp/servers.html http://www.eecis.udel.edu/~mills/ntp/clock2a.html P.P.S. NTP champion believe is described successful the "Rules of Engagement" section of this document: http://www.eecis.udel.edu/~mills/ntp/servers.html

After receiving nary consequence for days, I called Netgear's headquarters, leaving messages pinch 2 executives explaining the seriousness of the situation. I besides emailed members of Netgear's executive squad by guessing their email addresses, based upon their email naming convention. I included a "Return-Receipt-To" header, and their Mail-eXchanger notified maine that each were delivered successfully. Here's a information of that message:

At this constituent I person a complete write-up of this continuing incident, including postulation measurement statistic evidencing the flood and an analysis of its guidelines origin fresh to beryllium released publicly.

I perfectly request to perceive from responsible parties astatine NETGEAR immediately, if NETGEAR wishes to statesman a speech earlier this goes public. We're not expecting an contiguous solution; successful fact, I'm fairly certain location is nary complete solution without UW-Madison's involvement.

On Thursday, June 19, I received a voicemail connection from the director of support for Netgear. He confirmed that they person located immoderate fault in their code. Soon afterward, I began to speech email and voicemail with him. Having now established first contact, we proceeded to activity this issue extracurricular of Netgear's support system, continuing connected pinch the review process described below.

Netgear's support statement was wholly unresponsive. Curiously, I did yet person the email connection beneath from Netgear's email-based customer support system, immoderate 23 days aft I submitted the problem study connected June 16.

Figure 7. Email from Netgear Support

Date: Wed, 09 Jul 2003 09:35:46 +1000 From: [email protected] Subject: RE:NETGEAR products abusing University of Wisconsin clip server [#111678] To: plonka@localdomain Thank you for your email. We apologize for the hold successful responding. Due to an unexpected summation successful email measurement we person been incapable to respond successful a timely manner. Your rumor whitethorn person already been resolved. Please reply to this email if you still require assistance and we will respond arsenic quickly arsenic we can. If your issues is resolved you do not request to reply and we will see the lawsuit closed. Again convey you for your patience and understanding. Please thief america service you amended by clicking here mailto:[email protected]?subject=Feedback_us if you would for illustration to provide immoderate different valuable feedback. (Note: this feedback is not sent to an supplier truthful you will not person a reply.)

Shortly aft opening a speech pinch Netgear, I projected the formation of a reappraisal squad to talk imaginable solutions. Netgear agreed, and a reappraisal squad was formed pinch astir 15 members, a third from each of these areas:

  • Netgear employees
  • University employees
  • Independent experts from their respective fields:
    • Regional Internet Registries
    • Internet Measurement Research
    • Network Time Protocol
The independent experts agreed to participate without prematurely disclosing the specifications of the situation.

A number of action items and directions were developed during the review process. These included:

  • Fix the SNTP Client
  • Propose the Network Operational Options
  • Inform the Internet Community
  • Clarify Internet Best Current Practice and Protocol Standards

The Flawed Netgear SNTP Client implementation successful the products affecting UW-Madison has the pursuing characteristics:

  • Uses a hard-coded IP reside for the NTP server 128.105.39.11, that of ntp1.cs.wisc.edu.

  • Uses a fixed UDP root larboard number 23457.
    This was incredibly advantageous arsenic it allowed UW-Madison to identify and count the Netgear clients. However, owed to the wide usage of Network Address Port Translation (NAPT, aliases NAT/PAT) upstream from immoderate Netgear products, the SNTP petition root port number is sometimes rewritten earlier the petition packet reaches its destination.

    Note to web operators: Please do not artifact UDP traffic involving larboard 23457 nor postulation involving our NTP server's IP address of 128.105.39.11. While we admit attempts to help, it may interfere pinch the champion imaginable solution to this problem.
  • Polls astatine one second intervals until it receives a response from the NTP server, aft which it uses a longer canvass interval specified as one minute, 10 minutes, 2 hours, aliases 24 hours, depending upon merchandise exemplary and firmware version.


As of this penning (August 2003) the University is making its best effort to work the Netgear clip requests. As such, users of the affected products should not usually announcement immoderate problems owed to this flaw. Furthermore, based connected acquisition truthful far, it seems that only a mini subset of the customers are moreover alert of the time-related features of these products (which see logging, argumentation scheduling, and email notifications).

In parallel, Netgear has produced and continues to activity connected firmware that does not grounds the aforementioned problems. Customers can upgrade to newer firmware versions, which are disposable for download from Netgear's support site. At the clip of this penning (August 2003), the astir existent type of firmware disposable for the RP614v2, RP614, DG814, and MR814 models does not utilize UW-Madison's time service nor does it canvass excessively frequently.


Based connected accusation supplied aliases confirmed by Netgear, the following products contained these SNTP creation flaws. Where applicable, I have labeled each pinch the earliest type of codification containing a fix:

I person counted much than 500,000 unsocial Netgear sources that queried our time server successful 1 day. This measurement apt underestimates the actual count because of Network Address Port Translation, which modifies the source IP reside and larboard number, and because immoderate broadband residential services driblet the customer's nexus erstwhile the work is not successful use.

As of June 30, 2003, Netgear reported a full of 707,147 affected products manufactured. Some elemental math: If location are 700,000 errant SNTP clients each of which tin make 1 SNTP petition per 2nd to our clip server, past the worst-case aggregate complaint will beryllium about 700,000 packets per second. Since each SNTP packet is 76 bytes in size, that is besides 426 megabits per 2nd of traffic.

Figure 8a shows the existent number of unsocial NTP Netgear customer IP addresses observed per time by a router connected UW-Madison's network. Theoretically, counting the clients successful this measurement could overestimate the count if the clients' DHCP servers changes the customer IP address frequently. However, based connected the number of products reported arsenic having been manufactured, it seems reasonably accurate.


During the reappraisal process a number of improvements to the SNTP client were suggested. These included that an SNTP implementation:
  • SHOULD usage a canvass interval wrong the scope from 64 to 1024 seconds aliases longer
  • SHOULD usage section NTP server(s) aliases multicast erstwhile available, as configured by the usability aliases wished by a find mechanism specified arsenic via the DHCP "Network Time Protocol Servers Option", which is defined successful conception 8.3 of RFC 2132.
  • MAY capacity exponential backoff of canvass interval (within the aforementioned range) upon nonaccomplishment to person a consequence from the NTP server(s)
  • MUST NOT usage a shorter canvass interval upon nonaccomplishment to person a consequence from the NTP server(s)
  • MUST let the usability to configure the query behaviour pinch respect to whether aliases not it is enabled aliases abnormal and pinch respect to which campaigner clip servers tin beryllium queried.
  • SHOULD usage the Domain Name System to find campaigner server(s) IP address(es), truthful that the NTP server's area administrator can power the customer behavior.
  • SHOULD resoluteness the server IP reside via DNS earlier each poll/query, truthful that the pertinent DNS entries' Time-To-Live values are respected.
  • SHOULD support the existing NTP access-control system by, upon receiving a valid `kiss-of-death' packet, reporting the condition and discontinuing queries to the server successful mobility until reinitialization.
  • MAY usage an implementation-defined fixed root larboard number
Some of these person been implemented successful the first fix but others are only nether consideration. Hopefully these suggestions will beryllium evaluated during an upcoming SNTP standardization effort.

During the reappraisal process, we learned that Netgear already was having SNTP-related codification changes developed for the RP614v2 merchandise anterior to my initial notification of the problems the flaw was causing to the University.

Regarding Firmware v5.13 RC7 for the RP614v2, Netgear made this new code disposable to maine connected July 10. My testing recovered that the modified SNTP customer had these characteristics, overmuch arsenic they described:

  • Now requires a DNS server to beryllium configured (or learned via DHCP) before generating immoderate SNTP queries.
  • The codification performs DNS queries for "time-a.netgear.com" and "time-b.netgear.com" astatine 10 infinitesimal intervals until success, alternating names if nary consequence is received. I verified besides that it supported responses pinch CNAMEs aliases aggregate A records arsenic well.
  • Following successful DNS resolution, it sends an NTP query to the resolved IP reside and waits for a reply. If nary reply comes successful 10 minutes, it again resolves the name, and requeries. It appears to springiness up aft five retries.
  • Whenever immoderate configuration alteration is applied via the web interface, it causes the device's timepiece to beryllium zeroed, the NTP server to beryllium re-resolved, and subsequently queried.
However I besides recovered these bugs:
  • The SNTP customer successful this codification does not look to validate the NTP response packet. It will judge immoderate incoming packet to port 23457 arsenic a valid consequence moreover if the flags are group incorrect (for instance, indicating that it is different customer query alternatively than a server response).
  • While the SNTP customer is awaiting a consequence (after querying either time-a aliases time-b) it seems to judge immoderate UDP response packet, moreover if the root IP reside of that UDP packet is not that of the clip server that it queried.
This codification was made disposable for download connected the Netgear web tract for the RP614v2 connected aliases astir July 11, 2003.

Netgear continues to create improvements to their SNTP customer and has vetted the creation pinch the reappraisal team.


These flawed devices are not easy reconfigurable. Representatives from some Netgear and UW-Madison judge that it is not a viable option to trust connected Netgear's customers to upgrade to the newer firmware (the first of which was released successful July) to correct the errant behavior.

Our reappraisal squad has considered a number of imaginable options astir how to woody pinch the errant Netgear clip requests. While I won't discuss all the specifications here, the 2 chiefly endgames connected which we've focused are outlined below.

In this action we would deploy highly-reliable, redundant NTP servers at WiscNet's borders and way the inbound requests destined to 128.104.39.11 to them utilizing BGP anycast. (Anycast is a technique that tin often beryllium employed to way postulation for some stateless RPC services, specified arsenic DNS aliases NTP, which are based upon UDP.) Implementing this action would apt see placing a brace of rack-mount NTP servers astatine each of 3 locations wrong WiscNet: UW-Madison, UW-Milwaukee, UW-Eau Claire. These are nearest the three current separator Internet speech points and truthful supply the most diverse paths for reliability of connectivity to the world Internet.

One chopped advantage of this configuration is that UW-Madison retains arsenic overmuch power arsenic imaginable complete its precious IPv4 address allocations. Because this BGP anycast deployment resides solely within WiscNet (which will grant a azygous /32 host-address route), this option consumes arsenic small of UW-Madison's IP reside abstraction arsenic imaginable - just the reside to which Netgear clip requests were directed.

Endgame A has immoderate risk. Whether aliases not the servers' responses reach the requesting customer big is not wholly wrong the University's control, result immoderate magnitude of flooding will apt continue. There are galore reasons different than server nonaccomplishment for disruptions successful the end-to-end way betwixt the SNTP clients and servers that could cause the clients not to person the responses and to flood requests toward our servers anyway. These see asymmetric routing problems, firewalling policies, and disasters affecting immoderate nexus betwixt the clients and servers. Indeed, moreover while our clip server is dutifully responding to each netgear SNTP requests, we still regularly observe that hundreds of them proceed to flood. Apparently these "zombies" never person our responses.

To limit the anticipation of the aggregate servers being simultaneously isolated from the Internet, 1 could see an moreover more geographically divers group of deployment locations, specified arsenic that done by the AS112 Project, which effectively mitigates the harm caused to the Internet's guidelines name servers by RFC1918-related queries.

Figure 10 is simply a sketch showing really this work would work. The Netgear SNTP requests heading toward UW-Madison are shown successful green. Note that aggregate NTP servers, each pinch the aforesaid IP address, are located successful aggregate locations. WiscNet's separator routers divert the inbound SNTP requests to the nearest server. The server responses are shown successful red. If immoderate of the servers fail, the postulation should route to 1 of the remaining NTP servers pinch the aforesaid address.


To forestall Netgear clip requests from being forwarded to our network would require UW-Madison to sacrifice a artifact of IP reside space within the people B web which includes the IP reside of ntp1.cs.wisc.edu.

Because of the measurement the Internet's backbone routing is operated, and to keep the number of routes manageable, web routes are sometimes not respected unless they are sufficiently large. In today's Internet, that intends a way mightiness not beryllium considered morganatic unless it represents 2,048 aliases 4,096 contiguous addresses. Respectively, network operators would telephone those size "/21" aliases "/20" (pronounced "slash twenty") blocks because they correspond networks having netmasks of 21 or 20 contiguous bits.

Figure 11 is simply a sketch showing this configuration. The BGP updates originating from UW-Madison's separator router are shown successful red. The Netgear SNTP Requests are shown successful green. The ICMP unreachable messages returned to the customer by BGP-aware separator routers passim the Internet are shown in blue. These pass the customer that the web successful which the NTP server would reside is unreachable.


This endgame that tries to suppress the forwarding of requests comes at a important costs to the University - we whitethorn person to sacrifice, likely for the life of the flawed products, arsenic galore arsenic 4,096 IP addresses. Figure 12 shows really our existing 128.105.0.0/16 network could beryllium divided, and the 1 portion "/20" artifact which would beryllium excluded from the Internet's world BGP routing table.

The risks of endgame B see the anticipation that immoderate portions of the Internet mightiness not beryllium capable to scope morganatic field IP addresses that lie adjacent the sacrificial, unadvertised block. Input from the backbone network operations organization and real-world acquisition must determine which solution champion serves the University and Internet organization arsenic a whole.


The nationalist merchandise of this archive is portion of an effort to pass the Internet organization of this flaw and the resulting floods, pinch the hope of minimizing the likelihood of specified a correction being repeated elsewhere. Note that Netgear was notified of our scheme to publicly disclose the specifications herein weeks successful beforehand of its release. Furthermore, earlier revisions of this archive were provided to them for review.

Because of the scope of the resulting problem, pinch hundreds of thousands of ill-behaved Internet hosts distributed world-wide, and because of the standard and unexpected quality of the flooding, with aggregate rates which could wholly capable immoderate web links, I felt that it was important to pass others and solicit proposal from experts.

Following this disclosure, it's my intent to find due venues to further coming and reappraisal the dangers and imaginable solutions to this and akin problems.

For instance, during the reappraisal process we learned that the Commonwealth Scientific & Industrial Research Organisation (CSIRO) successful Australia is having similar problem pinch astir 85,000 SMC marque routers that canvass the CSIRO time server doubly a infinitesimal erstwhile they don't person a response. A communicative astir that incident, "Rogue routers origin havoc for CSIRO", tin beryllium recovered here:

http://australianit.news.com.au/articles/0,7204,6716567%5e15340%5e%5enbv%5e15306-15318,00.html

While the standard of the CSIRO problem is orders-of-magnitude less, with floods of possibly 2,800 packets per 2nd and 1.7 megabits per second, it is strikingly akin and possibly not arsenic apt to beryllium as responsibly addressed pinch the assistance of that manufacturer.


Also during the reappraisal process, immoderate members of the reappraisal squad began work connected Internet Drafts to amended archiving pertinent to this issue. There are astatine slightest 2 specified efforts presently successful their infancy:

  1. I americium successful the process of preparing an Internet Draft, currently titled "Embedding Globally Routable Internet Addresses Considered Harmful", which denounces the believe of embedding unique, globally routable IP addresses successful Internet hosts, describes immoderate of the resulting problems, and considers selected alternatives.
  2. Members of the NTP organization person revised and reviewed the existing Informational RFC2030 that describes SNTP. Through their efforts and perhaps those of different willing parties, it whitethorn beryllium imaginable to revisit NTP and SNTP arsenic a standards way protocol wrong the IETF.

I'm pleased to study that Netgear has cooperated pinch america connected the initial steps of this process and we are forging an statement that will enable us to instrumentality a suitable solution.

For the clip being, UW-Madison continues to work Netgear SNTP requests successful spite of receiving occasional large-scale floods of traffic from Netgear products. A caller incident is shown successful Figure 13. The shark-fin shaped anomaly connected the correct is simply a flood of inbound Netgear clip requests which grew to astir 100,000 packets per second before subsiding.

Both the magnitude and long of the Netgear-caused incidents continue to coming a superior operational problem for UW-Madison. While fundamentally progressive successful a crippled of state roulette astatine the moment, we are hoping to utilize the expertise of some UW-Madison and the Internet usability organization to creation and instrumentality a bully solution.


Here are immoderate questions, offered arsenic nutrient for thought, that were brought to mind by this lawsuit study:
  • What does this unintentional Denial-of-Service flood bespeak astir the viability of immoderate nationalist Internet services?
  • Can the Internet routing infrastructure beryllium improved to alteration little disruptive solutions to specified problems?
  • Are incidents specified arsenic this a apt side-effect of ubiquitous, low-cost, perhaps moreover disposable Internet hosts?
  • Are the manufacturer, vendor, Internet operations, and personification communities willing and capable to cooperate to reside specified problems?

The pursuing provided assistance pinch the information gathering, analysis, and group networking:

  • University of Wisconsin-Madison: Jeff Bartig, Jim Gast, Michael Hare, Adam Kunen, Dave Thompson
  • University of Florida: Robert Bird, Greg Goddard
  • Harvard University: Greg Mazzu
  • k claffy, Nevil Brownlee, George Michaelson

I'd besides convey the members of the reappraisal team, including those remaining anonymous. I'm definite we'll travel to a amended solution because of their participation.


The pursuing devices were utilized during this investigation:
  • MRTG
  • RRDTOOL
  • RRGrapher
  • junipoll
  • flow-tools
  • Cflow
  • FlowScan
  • tcpdump
  • ethereal (now wireshark)
  • sntp.pl
  • strings ;^)

  1. RFC2030: Simple Network Time Protocol (SNTP) Version 4 for IPv4, IPv6 and OSI (status: Informational)
  2. RFC1305: Network Time Protocol (Version 3) Specification, Implementation and Analysis (status: DRAFT STANDARD)
  3. home of the Network Time Protocol (NTP) project
  4. Public NTP Time Servers
  5. Public NTP Secondary (stratum 2) Time Servers
  6. RFC2132: DHCP Options and BOOTP Vendor Extensions
  7. RFC1546: Host Anycasting Service
  8. http://www.networksorcery.com/enp/protocol/sntp.htm
  9. an article connected really to alteration Windows' clip server configuration utilizing regedit
  10. Basic Operation of the Windows Time Service
  11. http://www.microsoft.com/windows2000/docs/wintimeserv.doc
  12. Flawed Routers Flood University of Wisconsin Internet Time Server (NANOG 29 presentation)
  13. A Case Study successful Internet Pathology: Flawed Routers Flood University's Network (LISA '03 talk)

  1. What is Netgear's liability for causing (however inadvertently) this denial of work for your network?

    My activity responsibilities are not ones that would make maine a subordinate successful such negotiations. However, arsenic I reported, an statement is being forged.

    Note to others: Please do not inquire maine for financial aliases ineligible details. This archive is simply a method summary of the business and is not the vehicle by which to present specified details.

    You whitethorn beryllium willing successful this news article: http://www.doit.wisc.edu/news/story.asp?filename=322

  2. Have you considered putting up a server which sends backmost clone answers to netgear clients, to origin group to upgrade?

    Yes, but we didn't see it for long. Both Netgear and others on the reappraisal squad agreed that it would likely have very small effect, since only a mini subset of the customers seem to moreover beryllium alert of the NTP-related features of the affected products. Besides, the projected "dishonest" clip server (which would report the incorrect time) would person to beryllium operated astatine the IP reside that is currently that of our well-known reliable clip server. It would be quite rude for it to abruptly go unreliable since the full purpose of the nationalist clip work is to reply pinch the correct time. The University intends to supply the champion imaginable service, sloppy of how it's abused.
  3. What is the expected life-time for these products?

    Personally, I deliberation its apt that galore of them will beryllium astir until five to 10 years from now. Its only a guess, but possibly the half-life is five years, aft which we'd expect to spot little than 350,000 of the affected products remaining successful use.
  4. In fig 13, could that "shark fin" spike person thing to do pinch past week's powerfulness grid nonaccomplishment (Blackout 2003), and consequent "rolling" restoration?

    No, it did not coincide pinch the blackout that affected the eastbound coast in August 2003. However, I did look for grounds of the blackout successful the netgear SNTP traffic, and recovered only flimsy little during the outage. Relatively small of the Internet was really affected by the powerfulness outage. Early reports were that only a fewer 1000 BGP prefixes from only a mates 100 autonomous systems were offline. Those that were offline were unreachable successful both directions, truthful we didn't person requests from them until powerfulness was returned. The rolling restoration served to administer the load to our server as those netgear clients came online.
  5. Are location different devices than those mentioned which besides suffer from the flaw which causes inadvertent flooding of your network?

    A number of Netgear users person reported to maine that Netgear exemplary RO318, firmware type V3.26, besides utilizes our clip server and besides logs ntp errors to its information log. I person not evaluated this product, truthful do not cognize what retry times it uses, but will study this to Netgear.
  6. What was the effect of this article being slashdotted?

    While having a important effect connected the web server, wide it was an insignificant level of postulation for the campus. The server handled 30 requests a 2nd for a while.

    Here's a chart comparing the web server hits-per-second to the number of Netgear-sourced SNTP petition flows-per-second, erstwhile this study was slashdotted. (Note that astir Netgear clients were receiving replies from our server astatine this time, truthful they were not flooding requests.)

  7. Why is simply a accepted shaper recall/defect solution not a possibility?

    Both Netgear and different members of the reappraisal squad felt that it was unlikely that each but a very mini subset of the owners would return the affected device since they look to beryllium moving fine. Also, very fewer customers have registered these products pinch the manufacturer, truthful it is impractical to interaction them.
  8. I'm pinch [the IT press], do you person immoderate clip to speak pinch me?

    When this study was first presented, an astute assemblage member proposed that the IT property ostensibly plays an important domiciled in evaluating whether aliases not user products comply pinch Internet standards and champion existent practice.

    Given that, if you're pinch the IT property and your publication does Internet merchandise reviews aliases makes "Editor's Choice" awards, I am willing to correspond pinch you by email astir this story. Specifically, the Internet organization whitethorn use from our exploring the IT press' familiarity pinch Internet standards and champion practices and the press' appraisal of its expertise to measure products.

    By tying the reporting of this communicative successful pinch the merchandise information and recommendation usability of the IT press, I'm hopeful that the community could trim the likelihood of specified flaws causing specified problems. It's conscionable an idea, fto maine cognize what you think.

  9. How has this communicative been covered successful the press?

    While surely not an exhaustive list, present is simply a sampling of coverage.
    (Please beryllium alert that immoderate of these articles are misleading aliases incorrect astir the details;
    Only a fewer of them contacted maine to cheque the facts.)
    • Slashdot: Netgear Routers DoS UWisc Time Server
    • The Inquirer: Wisconsin Uni page describes Netgear `flawed routers'
    • Wisconsin Technology Network: Flawed Routers Flood UW Server
    • ZDNet: NetGear flaw triggers accidental DoS attack
    • CNET News.com: NetGear flaw triggers accidental DoS attack
    • ZDNet Australia: UPDATE: Netgear routers onslaught university
    • Network World: Netgear router quirk perturbs college
      (also successful people Network World magazine)
    • TECHWORLD: NetGear sets disconnected denial of work attack
    • Network Computing: Industry Insights: Opportunity Knocks / Quality Counts
    • PC World: NetGear Routers Wage War connected University
      (also successful people successful the November 2003 rumor of PC World magazine)

Copyright 2003, Dave Plonka.

$Id: index.wml,v 1.39 2006/07/19 15:20:28 plonka Exp $
$Log: index.wml,v $ Revision 1.39 2006/07/19 15:20:28 plonka updated fig 8a Revision 1.38 2005/04/28 16:13:02 plonka updated figured 8a added NANOG and LISA talks to references added news communicative url to faq entry fixed a typo Revision 1.37 2004/09/28 18:37:16 plonka fixed a typo Revision 1.36 2004/05/19 22:54:31 plonka updated fig 8a Revision 1.35 2004/02/05 17:29:12 plonka added fig 8a, Netgear SNTP Clients Per Day Revision 1.34 2003/12/04 22:30:58 plonka fixed a typo Revision 1.33 2003/10/16 22:30:05 plonka added a faq entry Revision 1.32 2003/09/15 22:13:13 plonka fixed immoderate typos and the big reside counts for /20 and /21 blocks Revision 1.31 2003/09/12 18:09:49 plonka added info astir codification upgrade for HR314 Revision 1.30 2003/09/10 15:03:26 plonka fixed a typo Revision 1.29 2003/09/10 14:58:50 plonka added utilizing DHCP "Network Time Protocol Servers Option" to "Suggested Fixes" Revision 1.28 2003/08/30 02:22:20 plonka added faq entry Revision 1.27 2003/08/27 18:42:42 plonka added chart evidencing the flash crowd erstwhile this study was slashdotted Revision 1.26 2003/08/26 21:40:46 plonka fixed immoderate typos and reworded a mates sentences Revision 1.25 2003/08/25 23:54:09 plonka added faq entries
More