{"id":100476,"date":"2026-01-23T17:52:09","date_gmt":"2026-01-23T16:52:09","guid":{"rendered":"https:\/\/dyb.fr\/?p=100476"},"modified":"2026-01-23T17:52:09","modified_gmt":"2026-01-23T16:52:09","slug":"cest-quoi-un-hysteresis-anti-flap","status":"publish","type":"post","link":"https:\/\/dyb.eu\/blog\/cest-quoi-un-hysteresis-anti-flap\/","title":{"rendered":"C&rsquo;est quoi un hysteresis anti-flap ?"},"content":{"rendered":"<figure class=\"wp-block-post-featured-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"1024\" src=\"https:\/\/dyb.eu\/blog\/wp-content\/uploads\/2026\/01\/hyperthesis-anti-flap.png\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" style=\"object-fit:cover;\" srcset=\"https:\/\/dyb.eu\/blog\/wp-content\/uploads\/2026\/01\/hyperthesis-anti-flap.png 1536w, https:\/\/dyb.eu\/blog\/wp-content\/uploads\/2026\/01\/hyperthesis-anti-flap-1280x853.png 1280w, https:\/\/dyb.eu\/blog\/wp-content\/uploads\/2026\/01\/hyperthesis-anti-flap-980x653.png 980w, https:\/\/dyb.eu\/blog\/wp-content\/uploads\/2026\/01\/hyperthesis-anti-flap-480x320.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) and (max-width: 1280px) 1280px, (min-width: 1281px) 1536px, 100vw\" \/><\/figure>\n\n\n<p class=\"wp-block-paragraph\">Un <strong>hysteresis anti-flap<\/strong> (ou <em>hyst\u00e9r\u00e9sis anti-basculement<\/em>) est un <strong>m\u00e9canisme de stabilit\u00e9<\/strong> utilis\u00e9 en r\u00e9seau\/syst\u00e8mes pour <strong>\u00e9viter qu\u2019un \u00e9tat change trop souvent<\/strong> quand une condition est instable ou proche d\u2019un seuil.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 En clair :<br><strong>\u00e7a emp\u00eache une bascule ON\/OFF permanente quand un lien \u201cflotte\u201d<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Le probl\u00e8me : le <em>flapping<\/em><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Le <em>flap<\/em>, c\u2019est quand une liaison ou une route :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>monte \u2192 descend \u2192 remonte \u2192 redescend\u2026<\/li>\n\n\n\n<li>souvent \u00e0 cause de :\n<ul class=\"wp-block-list\">\n<li>pertes de paquets intermittentes<\/li>\n\n\n\n<li>latence variable<\/li>\n\n\n\n<li>micro-coupures<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Exemple concret chez toi (FTTO \/ FTTH) :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>FTTO perd 2\u20133 pings<\/li>\n\n\n\n<li>pfSense bascule sur FTTH<\/li>\n\n\n\n<li>FTTO revient 10 secondes plus tard<\/li>\n\n\n\n<li>pfSense rebascule<br>\u27a1\ufe0f R\u00e9sultat : <strong>instabilit\u00e9 r\u00e9seau<\/strong>, sessions cass\u00e9es, VPN qui sautent.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">La solution : l\u2019hysteresis anti-flap<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">L\u2019hyst\u00e9r\u00e9sis impose <strong>deux seuils ou des d\u00e9lais diff\u00e9rents<\/strong> :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>un pour <strong>quitter<\/strong> un \u00e9tat<\/li>\n\n\n\n<li>un autre pour <strong>y revenir<\/strong><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Exemple simple<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Action<\/th><th>Condition<\/th><\/tr><\/thead><tbody><tr><td>Lien d\u00e9clar\u00e9 DOWN<\/td><td>5 pings perdus cons\u00e9cutifs<\/td><\/tr><tr><td>Lien d\u00e9clar\u00e9 UP<\/td><td>20 pings OK cons\u00e9cutifs<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u27a1\ufe0f Le lien doit \u00eatre <strong>clairement mauvais<\/strong> pour \u00eatre abandonn\u00e9<br>\u27a1\ufe0f et <strong>clairement stable<\/strong> pour \u00eatre repris<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Exemple r\u00e9seau (pfSense \/ multi-WAN)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sans hysteresis :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FTTO \u2193 \u2192 bascule FTTH\nFTTO \u2191 \u2192 rebascule FTTO\nFTTO \u2193 \u2192 bascule FTTH\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Avec hysteresis :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FTTO \u2193 (confirm\u00e9 sur X secondes) \u2192 bascule FTTH\nFTTO \u2191 mais pas assez longtemps \u2192 on reste sur FTTH\nFTTO \u2191 stable pendant Y secondes \u2192 retour FTTO\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">O\u00f9 on retrouve \u00e7a<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>pfSense \/ OPNsense<\/strong>\n<ul class=\"wp-block-list\">\n<li>Gateway monitoring<\/li>\n\n\n\n<li>Failover multi-WAN<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>OSPF \/ BGP<\/strong>\n<ul class=\"wp-block-list\">\n<li>timers hello\/dead<\/li>\n\n\n\n<li>dampening<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Load balancers<\/strong><\/li>\n\n\n\n<li><strong>HA \/ VRRP \/ CARP<\/strong><\/li>\n\n\n\n<li><strong>Syst\u00e8mes industriels \/ \u00e9lectroniques<\/strong>\n<ul class=\"wp-block-list\">\n<li>thermostats, capteurs<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Termes \u00e9quivalents que tu verras<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>Anti-flap<\/em><\/li>\n\n\n\n<li><em>Hysteresis<\/em><\/li>\n\n\n\n<li><em>Hold-down timer<\/em><\/li>\n\n\n\n<li><em>Failback delay<\/em><\/li>\n\n\n\n<li><em>Dampening<\/em><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">En r\u00e9sum\u00e9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 <strong>Un hysteresis anti-flap = un garde-fou contre les bascules nerveuses<\/strong><br>\ud83d\udc49 Il <strong>sacrifie un peu de r\u00e9activit\u00e9<\/strong> pour <strong>beaucoup plus de stabilit\u00e9<\/strong><br>\ud83d\udc49 Indispensable dans ton cas <strong>FTTO \u2194 FTTH + OSPF + WireGuard<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Un hysteresis anti-flap (ou hyst\u00e9r\u00e9sis anti-basculement) est un m\u00e9canisme de stabilit\u00e9 utilis\u00e9 en r\u00e9seau\/syst\u00e8mes pour \u00e9viter qu\u2019un \u00e9tat change trop souvent quand une condition est instable ou proche d\u2019un seuil. \ud83d\udc49 En clair :\u00e7a emp\u00eache une bascule ON\/OFF permanente quand un lien \u201cflotte\u201d. Le probl\u00e8me : le flapping Le flap, c\u2019est quand une liaison ou [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":100477,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,24],"tags":[50,23],"class_list":["post-100476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-adminsys","category-reseaux","tag-network","tag-pfsense"],"_links":{"self":[{"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/posts\/100476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/comments?post=100476"}],"version-history":[{"count":1,"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/posts\/100476\/revisions"}],"predecessor-version":[{"id":100478,"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/posts\/100476\/revisions\/100478"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/media\/100477"}],"wp:attachment":[{"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/media?parent=100476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/categories?post=100476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dyb.eu\/blog\/wp-json\/wp\/v2\/tags?post=100476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}