Night-time in Neuland: The firewall was not to blame
Summary
In September 2018 Lutz Donnerhacke is asked to replace a supposedly faulty firewall that a customer has to restart almost every morning. Once syslog is switched back on, it turns out that the provider restarts its access equipment at night and forgets the DHCP lease in the process. Because the firewall renews its ten-hour lease every five hours, the outage only hits the customer on some days.
The arithmetic behind the pattern
Under RFC 2131 a DHCP client by default tries to renew its lease after half of its duration (T1), and at the latest after 87.5 percent with any server (T2). With a ten-hour lease, the firewall therefore renews every five hours. If the provider restarts its equipment between three and five in the morning, the line stays dead until the next renewal is due.
A five-hour interval shifts the renewal time by four hours each day, because 24 is not a multiple of five. That is why, depending on the day, the connection came back before work started or only afterwards. Restarting the firewall fetches a new lease immediately and so looks like a repair.
The title
#Neuland ("new territory") is a satirical German name for the internet, based on a remark by Angela Merkel. The closing line alludes to Heinrich Heine's 1844 poem "Nachtgedanken": "Denk ich an Deutschland in der Nacht, / Dann bin ich um den Schlaf gebracht" (When I think of Germany at night, I am robbed of sleep).
Ideas
- Failures that are too regular argue against a hardware defect.
- Without external logging, the time before each restart is missing.
- DHCP lease times can explain fault patterns that change from day to day.
- A restart fixes symptoms when it renews state as a side effect.
- Providers use the night for unannounced maintenance.
- Random ordering of maintenance restarts makes troubleshooting even harder.
Insights
- A workaround such as the time switch hides the cause and distorts observations.
- Correlation with a new device is not proof, however plausible it seems.
- Neither side fully sees faults at the interface between customer and provider.
Quotes
- Denk ich an #Neuland in der Nacht, bin ich um den Schlaf gebracht. (Lutz Donnerhacke, after Heinrich Heine)
Facts
- The firewall renewed its ten-hour DHCP lease every five hours.
- The internet interface dropped briefly between three and five in the morning.
- The provider had added the customer's equipment to a list of automatic restarts.
- RFC 2131 sets T1 by default to half the lease duration.
References
- Lutz Donnerhacke: Nachts in Neuland (German)
- DHCP lease: time-limited address assignment.
- Syslog: external event logging for network devices.
- RFC 2131: Dynamic Host Configuration Protocol (1997)
- Wikipedia: Nachtgedanken (Heinrich Heine, German)
Remarks
- The cause is reconstructed, not proven by provider logs; but the timing arithmetic fits all observations.
Recommendations
- Send logs from network edge devices permanently to an external syslog server.
- When outages recur at night, ask the provider about maintenance windows.
- Time lease renewals so that they fall before working hours.
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.