forked from bottlerocket-os/bottlerocket
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wicked: reduce initial DHCPv6 solicitation delay to 100 ms
Reduce the maximum initial solicitation delay to 100 ms from the spec-mandated value of 1000 ms to reduce the average and variance in time to node readiness. This is not strictly compliant with RFC 3315 (treating the initial delay as a MUST), and only tolerated by its successor RFC 8415 (changing it to a SHOULD). This change therefore is not a good candidate for upstreaming. Signed-off-by: Markus Boehme <[email protected]>
- Loading branch information
1 parent
53fe4ae
commit 01a3274
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
packages/wicked/1008-dhcp6-reduce-maximum-initial-solicitation-delay-to-1.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 5aa6eff182204b312007ac44dcfffdf4dc6b7428 Mon Sep 17 00:00:00 2001 | ||
From: Markus Boehme <[email protected]> | ||
Date: Fri, 26 May 2023 16:21:11 +0200 | ||
Subject: [PATCH] dhcp6: reduce maximum initial solicitation delay to 100 ms | ||
|
||
While RFC 3315 requires the initial solicitation delay to be randomly | ||
chosen between 0 and 1000 ms to prevent a thundering herd of synchronized | ||
clients during mass reboots, not all clients (e.g. systemd-networkd) follow | ||
this. Reduce the maximum delay to 100 ms which, together with natural | ||
jitter during boot, still seems plenty and cuts down the time to lease. | ||
|
||
Note that the more recent RFC 8415 softened its stance a bit. The | ||
initial solicitation delay "SHOULD" be followed, i.e. is recommended but | ||
not required. | ||
|
||
Signed-off-by: Markus Boehme <[email protected]> | ||
--- | ||
src/dhcp6/protocol.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/dhcp6/protocol.h b/src/dhcp6/protocol.h | ||
index cd917ba..5f40902 100644 | ||
--- a/src/dhcp6/protocol.h | ||
+++ b/src/dhcp6/protocol.h | ||
@@ -119,7 +119,7 @@ enum NI_DHCP6_MSG_TYPE { | ||
* Parameter Value Description | ||
* --------------------------------------------------------------------------- | ||
*/ | ||
-#define NI_DHCP6_SOL_MAX_DELAY 1000 /* Max delay of first Solicit */ | ||
+#define NI_DHCP6_SOL_MAX_DELAY 100 /* Max delay of first Solicit */ | ||
#define NI_DHCP6_SOL_TIMEOUT 1000 /* Initial Solicit timeout */ | ||
#define NI_DHCP6_SOL_MAX_RT 3600000 /* Max Solicit timeout value */ | ||
#define NI_DHCP6_REQ_TIMEOUT 1000 /* Initial Request timeout */ | ||
-- | ||
2.40.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters