{"id":182,"date":"2022-11-29T22:35:24","date_gmt":"2022-11-29T21:35:24","guid":{"rendered":"https:\/\/mokrane-assam.com\/?p=182"},"modified":"2026-11-29T22:35:54","modified_gmt":"2026-11-29T21:35:54","slug":"spanning-tree-les-bases-pont-racine-roles-de-port-et-rstp","status":"publish","type":"post","link":"https:\/\/mokrane-assam.com\/index.php\/2022\/11\/29\/spanning-tree-les-bases-pont-racine-roles-de-port-et-rstp\/","title":{"rendered":"Spanning Tree \u2014 Les bases : pont racine, r\u00f4les de port et RSTP"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Le Spanning Tree est le protocole qui emp\u00eache un r\u00e9seau de niveau 2 boucl\u00e9 de s&#8217;autod\u00e9truire. Les trames Ethernet n&#8217;ont pas de TTL, donc une seule boucle de commutation ne ralentit pas le r\u00e9seau \u2014 elle le fait fondre, en quelques secondes. Le r\u00f4le de STP est de trouver chaque chemin redondant et de le bloquer d\u00e9lib\u00e9r\u00e9ment, en ne laissant qu&#8217;un seul arbre sans boucle, puis de d\u00e9bloquer un secours d\u00e8s que le chemin actif tombe.<\/p><p class=\"wp-block-paragraph\"><em>Cet article conserve volontairement les termes techniques standards en anglais (ceux que l&#8217;on retrouve dans la CLI, la documentation et les RFC). Pour ne pas vous surprendre \u00e0 l&#8217;int\u00e9rieur d&#8217;un texte en fran\u00e7ais, en voici la traduction&nbsp;:<\/em><\/p><figure class=\"mkz-gloss\" style=\"margin:20px auto;max-width:920px\"><table style=\"width:100%;border-collapse:collapse;font-family:'Segoe UI',Roboto,Arial,sans-serif;font-size:14px;border:1px solid #e2e8f0\"><thead><tr style=\"background:#17263f;color:#fff\"><th style=\"text-align:left;padding:10px 14px;border:1px solid #0f172a\">Terme (anglais)<\/th><th style=\"text-align:left;padding:10px 14px;border:1px solid #0f172a\">Sens en fran\u00e7ais<\/th><\/tr><\/thead><tbody><tr style=\"background:#ffffff\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>STP (Spanning Tree Protocol)<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Protocole qui construit un arbre de niveau 2 sans boucle en bloquant les liens redondants.<\/td><\/tr><tr style=\"background:#f1f5f9\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>BPDU (Bridge Protocol Data Unit)<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Trame de contr\u00f4le \u00e9chang\u00e9e par les commutateurs pour construire l&#8217;arbre.<\/td><\/tr><tr style=\"background:#ffffff\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Bridge ID<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Identifiant de pont : priorit\u00e9 (2 octets, d\u00e9faut 32768) + adresse MAC.<\/td><\/tr><tr style=\"background:#f1f5f9\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Root Bridge<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Pont racine : le commutateur de plus faible Bridge ID, racine de l&#8217;arbre.<\/td><\/tr><tr style=\"background:#ffffff\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Root Port (RP)<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Port racine : sur un commutateur, le meilleur port vers la racine (co\u00fbt le plus faible).<\/td><\/tr><tr style=\"background:#f1f5f9\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Designated Port (DP)<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Port d\u00e9sign\u00e9 : l&#8217;unique port qui achemine vers la racine sur un segment.<\/td><\/tr><tr style=\"background:#ffffff\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Blocking \/ Forwarding<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Bloquant (ne transmet pas) \/ transmetteur (transmet) : \u00e9tats d&#8217;un port.<\/td><\/tr><tr style=\"background:#f1f5f9\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Listening \/ Learning<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">\u00c9coute \/ apprentissage : \u00e9tats transitoires, 15 s chacun (forward delay).<\/td><\/tr><tr style=\"background:#ffffff\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Forward delay \/ Max age \/ Hello<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Temporisateurs STP : 15 s \/ 20 s \/ 2 s.<\/td><\/tr><tr style=\"background:#f1f5f9\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Path cost<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Co\u00fbt de chemin : valeur cumul\u00e9e par lien selon le d\u00e9bit, qui d\u00e9cide de l&#8217;arbre.<\/td><\/tr><tr style=\"background:#ffffff\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>RSTP (802.1w)<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Rapid STP : convergence rapide par poign\u00e9e de main, r\u00f4les alternate\/backup.<\/td><\/tr><tr style=\"background:#f1f5f9\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Alternate \/ Backup port<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Port de secours pr\u00e9calcul\u00e9 vers la racine \/ vers un segment.<\/td><\/tr><tr style=\"background:#ffffff\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Proposal \/ Agreement<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Proposition \/ accord : \u00e9change RSTP permettant de transmettre instantan\u00e9ment.<\/td><\/tr><tr style=\"background:#f1f5f9\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Edge port \/ PortFast<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Port de bordure (vers un h\u00f4te) qui passe directement en transmission.<\/td><\/tr><tr style=\"background:#ffffff\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>BPDU Guard<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">D\u00e9sactive un port de bordure d\u00e8s qu&#8217;il re\u00e7oit un BPDU (commutateur pirate).<\/td><\/tr><tr style=\"background:#f1f5f9\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Root Guard<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Rejette un BPDU sup\u00e9rieur sur un port pour prot\u00e9ger l&#8217;emplacement de la racine.<\/td><\/tr><tr style=\"background:#ffffff\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Loop Guard<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Maintient un port bloquant si les BPDU cessent, pour \u00e9viter une boucle silencieuse.<\/td><\/tr><tr style=\"background:#f1f5f9\"><td style=\"padding:8px 14px;border:1px solid #e2e8f0;white-space:nowrap\"><strong>Broadcast storm<\/strong><\/td><td style=\"padding:8px 14px;border:1px solid #e2e8f0;color:#334155\">Temp\u00eate de broadcast : une trame qui boucle ind\u00e9finiment et sature les liens.<\/td><\/tr><\/tbody><\/table><\/figure><h2 class=\"wp-block-heading\">1. Pourquoi une boucle de niveau 2 est fatale<\/h2><p class=\"wp-block-paragraph\">Un paquet IP a un TTL qui d\u00e9cr\u00e9mente \u00e0 chaque saut et finit par mourir. Une trame Ethernet n&#8217;en a pas. Mettez deux commutateurs en boucle et un seul broadcast circule ind\u00e9finiment, multipli\u00e9 \u00e0 chaque commutateur, jusqu&#8217;\u00e0 saturer les liens \u2014 une <strong>temp\u00eate de broadcast<\/strong>. Pire, la m\u00eame MAC source arrive sur deux ports, donc la table MAC <strong>oscille<\/strong> et le routage unicast casse aussi. Il n&#8217;y a pas d&#8217;auto-gu\u00e9rison ; la boucle doit \u00eatre emp\u00each\u00e9e, pas subie.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 230\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Pourquoi une boucle de niveau 2 est fatale\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"230\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Pourquoi une boucle de niveau 2 est fatale<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"250\" y=\"90\" width=\"150\" height=\"50\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"325\" y=\"120\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">Commutateur A<\/text><rect x=\"520\" y=\"90\" width=\"150\" height=\"50\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"595\" y=\"120\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">Commutateur B<\/text><line x1=\"400\" y1=\"105\" x2=\"520\" y2=\"105\" stroke=\"#C8102E\" stroke-width=\"2.5\" marker-end=\"url(#ar)\"\/><line x1=\"520\" y1=\"125\" x2=\"400\" y2=\"125\" stroke=\"#C8102E\" stroke-width=\"2.5\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"165\" text-anchor=\"middle\" fill=\"#9f1239\" font-size=\"12\" font-weight=\"700\">un broadcast boucle sans fin (pas de TTL) -> temp\u00eate<\/text><text x=\"460\" y=\"195\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">La table MAC oscille aussi, la m\u00eame source apparaissant sur deux ports<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">2. L&#8217;\u00e9lection du pont racine<\/h2><p class=\"wp-block-paragraph\">STP construit un arbre enracin\u00e9 sur un commutateur. Chaque commutateur commence par se pr\u00e9tendre racine et annonce son <strong>Bridge ID<\/strong> \u2014 une priorit\u00e9 sur 2 octets (d\u00e9faut 32768) plus son adresse MAC \u2014 dans des <strong>BPDU<\/strong>. Le commutateur de <strong>plus faible Bridge ID<\/strong> gagne ; comme les priorit\u00e9s sont souvent \u00e9gales, la plus faible MAC l&#8217;emporte par d\u00e9faut \u2014 raison pour laquelle on fixe la priorit\u00e9 explicitement, plut\u00f4t que de laisser le plus vieux commutateur devenir racine par accident.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 230\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"\u00c9lection du pont racine\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"230\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">\u00c9lection du pont racine<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"360\" y=\"86\" width=\"200\" height=\"56\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"460\" y=\"108\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"12\" font-weight=\"700\">RACINE (plus faible ID)<\/text><text x=\"460\" y=\"128\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"10.5\">priorit\u00e9 4096<\/text><rect x=\"120\" y=\"180\" width=\"180\" height=\"50\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"210\" y=\"205\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\">Comm. (prio 32768)<\/text><rect x=\"370\" y=\"180\" width=\"180\" height=\"50\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"460\" y=\"205\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\">Comm. (prio 32768)<\/text><rect x=\"620\" y=\"180\" width=\"180\" height=\"50\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"710\" y=\"205\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11.5\">Comm. (prio 32768)<\/text><line x1=\"420\" y1=\"142\" x2=\"250\" y2=\"180\" stroke=\"#166534\" stroke-width=\"2\"\/><line x1=\"460\" y1=\"142\" x2=\"460\" y2=\"180\" stroke=\"#166534\" stroke-width=\"2\"\/><line x1=\"500\" y1=\"142\" x2=\"700\" y2=\"180\" stroke=\"#166534\" stroke-width=\"2\"\/><text x=\"460\" y=\"252\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">Bridge ID = priorit\u00e9 (2 octets) + MAC. Priorit\u00e9 \u00e9gale -> plus faible MAC gagne.<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">3. Chaque commutateur choisit un port racine<\/h2><p class=\"wp-block-paragraph\">Une fois la racine connue, chaque commutateur non-racine choisit un <strong>port racine<\/strong> \u2014 son meilleur chemin de retour vers la racine, celui de plus faible <strong>co\u00fbt de chemin cumul\u00e9<\/strong>. Le co\u00fbt s&#8217;accumule par lien selon le d\u00e9bit, donc le commutateur compare le co\u00fbt total sur chacun de ses liens montants et garde le moins cher. Les \u00e9galit\u00e9s se d\u00e9partagent sur le Bridge ID du voisin, puis son identifiant de port.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 230\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Choix du port racine\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"230\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Choix du port racine<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"360\" y=\"86\" width=\"200\" height=\"46\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"460\" y=\"114\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"12\" font-weight=\"700\">RACINE<\/text><rect x=\"360\" y=\"190\" width=\"200\" height=\"50\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"460\" y=\"220\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">Commutateur X<\/text><line x1=\"420\" y1=\"132\" x2=\"420\" y2=\"190\" stroke=\"#166534\" stroke-width=\"2.5\"\/><text x=\"360\" y=\"165\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"11\" font-weight=\"700\">co\u00fbt 4 (1G)<\/text><text x=\"380\" y=\"182\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"10\">PORT RACINE<\/text><line x1=\"500\" y1=\"132\" x2=\"640\" y2=\"160\" stroke=\"#cbd5e1\" stroke-width=\"2\"\/><rect x=\"620\" y=\"150\" width=\"150\" height=\"46\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"695\" y=\"178\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11\">Commutateur Y<\/text><line x1=\"560\" y1=\"210\" x2=\"640\" y2=\"190\" stroke=\"#C8102E\" stroke-width=\"2\" stroke-dasharray=\"5 3\"\/><text x=\"600\" y=\"228\" text-anchor=\"middle\" fill=\"#9f1239\" font-size=\"10.5\">via Y : co\u00fbt 8 (pire)<\/text><text x=\"460\" y=\"256\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">Port racine = co\u00fbt total le plus faible vers la racine ; le chemin plus cher est \u00e9cart\u00e9<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">4. Chaque segment choisit un port d\u00e9sign\u00e9<\/h2><p class=\"wp-block-paragraph\">Chaque segment de lien a aussi besoin d&#8217;exactement un <strong>port d\u00e9sign\u00e9<\/strong> \u2014 le port responsable de l&#8217;acheminement vers la racine sur ce segment, choisi comme celui qui annonce le plus faible co\u00fbt. Tous les ports du pont racine sont d\u00e9sign\u00e9s. Tout port qui n&#8217;est ni port racine ni port d\u00e9sign\u00e9 est mis en <strong>blocage<\/strong> \u2014 c&#8217;est le port que STP ferme pour briser la boucle.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 220\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Ports d\u00e9sign\u00e9s et blocage\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"220\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Ports d\u00e9sign\u00e9s et blocage<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"120\" y=\"86\" width=\"160\" height=\"46\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"200\" y=\"114\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"12\" font-weight=\"700\">RACINE<\/text><rect x=\"120\" y=\"170\" width=\"160\" height=\"46\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"200\" y=\"198\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\">Comm. A<\/text><rect x=\"640\" y=\"170\" width=\"160\" height=\"46\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"720\" y=\"198\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\">Comm. B<\/text><line x1=\"200\" y1=\"132\" x2=\"200\" y2=\"170\" stroke=\"#166534\" stroke-width=\"2.5\"\/><text x=\"200\" y=\"155\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"9\">RP<\/text><line x1=\"280\" y1=\"100\" x2=\"720\" y2=\"170\" stroke=\"#166534\" stroke-width=\"2.5\"\/><text x=\"500\" y=\"128\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"9\">RP (B)<\/text><line x1=\"280\" y1=\"193\" x2=\"640\" y2=\"193\" stroke=\"#0A66C2\" stroke-width=\"2\"\/><rect x=\"300\" y=\"182\" width=\"36\" height=\"22\" rx=\"4\" fill=\"#dcfce7\"\/><text x=\"318\" y=\"198\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"9\">DP<\/text><rect x=\"580\" y=\"182\" width=\"60\" height=\"22\" rx=\"4\" fill=\"#fee2e2\"\/><text x=\"610\" y=\"198\" text-anchor=\"middle\" fill=\"#9f1239\" font-size=\"9\">BLOQUE<\/text><text x=\"460\" y=\"214\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">Un port d\u00e9sign\u00e9 par segment ; le perdant est bloqu\u00e9<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">5. Les \u00e9tats de port et les timers lents<\/h2><p class=\"wp-block-paragraph\">STP classique ne transmet pas imm\u00e9diatement. Un port gravit <strong>Blocage \u2192 \u00c9coute \u2192 Apprentissage \u2192 Transmission<\/strong>, passant un <strong>forward delay<\/strong> (15 s) dans chacun de l&#8217;\u00e9coute et de l&#8217;apprentissage, pour ne pas cr\u00e9er de boucle transitoire pendant que la topologie se stabilise. Avec un hello de 2 s et un max-age de 20 s, une panne peut mettre <strong>30 \u00e0 50 secondes<\/strong> \u00e0 se r\u00e9tablir \u2014 glacial par les standards actuels, et la raison d&#8217;\u00eatre de RSTP.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 200\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"\u00c9tats de port STP\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"200\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">\u00c9tats de port STP<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"40\" y=\"110\" width=\"150\" height=\"46\" rx=\"9\" fill=\"#fee2e2\" stroke=\"#C8102E\"\/><text x=\"115\" y=\"138\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11\" font-weight=\"600\">Blocage<\/text><rect x=\"225\" y=\"110\" width=\"150\" height=\"46\" rx=\"9\" fill=\"#fff7ed\" stroke=\"#f59e0b\"\/><text x=\"300\" y=\"138\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11\" font-weight=\"600\">\u00c9coute<\/text><rect x=\"410\" y=\"110\" width=\"150\" height=\"46\" rx=\"9\" fill=\"#fff7ed\" stroke=\"#f59e0b\"\/><text x=\"485\" y=\"138\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11\" font-weight=\"600\">Apprentissage<\/text><rect x=\"595\" y=\"110\" width=\"150\" height=\"46\" rx=\"9\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"670\" y=\"138\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11\" font-weight=\"600\">Transmission<\/text><line x1=\"190\" y1=\"133\" x2=\"225\" y2=\"133\" stroke=\"#64748b\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><line x1=\"375\" y1=\"133\" x2=\"410\" y2=\"133\" stroke=\"#64748b\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><line x1=\"560\" y1=\"133\" x2=\"595\" y2=\"133\" stroke=\"#64748b\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"180\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">hello 2s \u00b7 forward delay 15s (\u00e9coute+apprentissage) \u00b7 max-age 20s -> ~30-50s<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">6. RSTP \u2014 convergence en millisecondes<\/h2><p class=\"wp-block-paragraph\">Rapid STP (802.1w) garde le m\u00eame calcul d&#8217;arbre mais remplace les timers par une poign\u00e9e de main. Il ajoute les r\u00f4les <strong>alternate<\/strong> et <strong>backup<\/strong> \u2014 un secours pr\u00e9calcul\u00e9 vers le port racine et vers un port d\u00e9sign\u00e9 \u2014 donc un basculement est un changement de r\u00f4le, pas une attente de 30 secondes. Un \u00e9change <strong>proposal\/agreement<\/strong> permet \u00e0 deux commutateurs de convenir de transmettre instantan\u00e9ment, et les <strong>edge ports<\/strong> (vers les h\u00f4tes) transmettent imm\u00e9diatement. La convergence passe de dizaines de secondes \u00e0 moins d&#8217;une seconde.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 220\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"RSTP : proposal et agreement\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"220\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">RSTP : proposal et agreement<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"120\" y=\"100\" width=\"190\" height=\"56\" rx=\"10\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"215\" y=\"132\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"12\" font-weight=\"700\">Commutateur 1<\/text><rect x=\"610\" y=\"100\" width=\"190\" height=\"56\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"705\" y=\"132\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">Commutateur 2<\/text><line x1=\"310\" y1=\"118\" x2=\"610\" y2=\"118\" stroke=\"#0A66C2\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"110\" text-anchor=\"middle\" fill=\"#0A66C2\" font-size=\"11\">Proposal<\/text><line x1=\"610\" y1=\"140\" x2=\"310\" y2=\"140\" stroke=\"#166534\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"158\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"11\">Agreement -> les deux transmettent<\/text><text x=\"460\" y=\"194\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">R\u00f4les : Root \u00b7 Designated \u00b7 Alternate (secours racine) \u00b7 Backup \u00b7 Edge<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">7. Le co\u00fbt de chemin \u2014 la table qui d\u00e9cide l&#8217;arbre<\/h2><p class=\"wp-block-paragraph\">Comme tout l&#8217;arbre tient au co\u00fbt cumul\u00e9, conna\u00eetre les valeurs par lien, c&#8217;est ce qui permet de le pr\u00e9voir et de le fa\u00e7onner. L&#8217;\u00e9chelle historique (short) plafonne bas, donc les liens modernes s&#8217;y confondent ; la m\u00e9thode <strong>long<\/strong> les \u00e9tale. Fixez les co\u00fbts d\u00e9lib\u00e9r\u00e9ment sur les liens cl\u00e9s plut\u00f4t que d&#8217;accepter des valeurs par d\u00e9faut qui enverraient le trafic par le chemin le plus long.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 230\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Co\u00fbt de chemin STP\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"230\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Co\u00fbt de chemin STP<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"30\" y=\"80\" width=\"860\" height=\"30\" rx=\"6\" fill=\"#0f172a\"\/><text x=\"200\" y=\"100\" text-anchor=\"middle\" fill=\"#fff\" font-size=\"11\" font-weight=\"700\">D\u00e9bit du lien<\/text><text x=\"500\" y=\"100\" text-anchor=\"middle\" fill=\"#fff\" font-size=\"11\" font-weight=\"700\">Co\u00fbt short (historique)<\/text><text x=\"760\" y=\"100\" text-anchor=\"middle\" fill=\"#fff\" font-size=\"11\" font-weight=\"700\">Co\u00fbt long<\/text><rect x=\"30\" y=\"110\" width=\"860\" height=\"30\" fill=\"#ffffff\" stroke=\"#e2e8f0\"\/><text x=\"200\" y=\"130\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">10 Mbit\/s<\/text><text x=\"500\" y=\"130\" text-anchor=\"middle\" fill=\"#C8102E\" font-size=\"11\" font-weight=\"600\">100<\/text><text x=\"760\" y=\"130\" text-anchor=\"middle\" fill=\"#0A66C2\" font-size=\"11\" font-weight=\"600\">2 000 000<\/text><rect x=\"30\" y=\"140\" width=\"860\" height=\"30\" fill=\"#f1f5f9\" stroke=\"#e2e8f0\"\/><text x=\"200\" y=\"160\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">100 Mbit\/s<\/text><text x=\"500\" y=\"160\" text-anchor=\"middle\" fill=\"#C8102E\" font-size=\"11\" font-weight=\"600\">19<\/text><text x=\"760\" y=\"160\" text-anchor=\"middle\" fill=\"#0A66C2\" font-size=\"11\" font-weight=\"600\">200 000<\/text><rect x=\"30\" y=\"170\" width=\"860\" height=\"30\" fill=\"#ffffff\" stroke=\"#e2e8f0\"\/><text x=\"200\" y=\"190\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">1 Gbit\/s<\/text><text x=\"500\" y=\"190\" text-anchor=\"middle\" fill=\"#C8102E\" font-size=\"11\" font-weight=\"600\">4<\/text><text x=\"760\" y=\"190\" text-anchor=\"middle\" fill=\"#0A66C2\" font-size=\"11\" font-weight=\"600\">20 000<\/text><rect x=\"30\" y=\"200\" width=\"860\" height=\"30\" fill=\"#f1f5f9\" stroke=\"#e2e8f0\"\/><text x=\"200\" y=\"220\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">10 Gbit\/s<\/text><text x=\"500\" y=\"220\" text-anchor=\"middle\" fill=\"#C8102E\" font-size=\"11\" font-weight=\"600\">2<\/text><text x=\"760\" y=\"220\" text-anchor=\"middle\" fill=\"#0A66C2\" font-size=\"11\" font-weight=\"600\">2 000<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">8. Prot\u00e9ger l&#8217;arbre<\/h2><p class=\"wp-block-paragraph\">Un arbre correct peut quand m\u00eame \u00eatre cass\u00e9 par un commutateur fautif ou malveillant, donc STP embarque des protections. <strong>PortFast<\/strong> fait transmettre les ports de bordure imm\u00e9diatement ; <strong>BPDU Guard<\/strong> d\u00e9sactive un port PortFast d\u00e8s qu&#8217;il entend un BPDU (quelqu&#8217;un a branch\u00e9 un commutateur sur un port d&#8217;acc\u00e8s) ; <strong>Root Guard<\/strong> rejette un BPDU sup\u00e9rieur sur un port, pour qu&#8217;un commutateur pirate ne puisse pas voler le r\u00f4le de racine ; <strong>Loop Guard<\/strong> maintient un port en blocage si les BPDU cessent myst\u00e9rieusement, au lieu de le laisser d\u00e9river vers la transmission et former une boucle.<\/p><figure class=\"mkz-diagram\" style=\"margin:24px auto;max-width:920px\"><svg style=\"width:100%;height:auto;display:block;margin:0 auto\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 920 210\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"Protections STP\"><defs><linearGradient id=\"hg\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/><\/linearGradient><marker id=\"ar\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#0A66C2\"\/><\/marker><\/defs><rect x=\"0\" y=\"0\" width=\"920\" height=\"210\" rx=\"14\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/><rect x=\"0\" y=\"0\" width=\"920\" height=\"60\" rx=\"14\" fill=\"url(#hg)\"\/><rect x=\"0\" y=\"40\" width=\"920\" height=\"20\" fill=\"#0f172a\"\/><text x=\"28\" y=\"37\" fill=\"#ffffff\" font-size=\"19\" font-weight=\"700\">Protections STP<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><rect x=\"30\" y=\"90\" width=\"210\" height=\"90\" rx=\"10\" fill=\"#e0f2fe\" stroke=\"#0A66C2\"\/><text x=\"135\" y=\"118\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"700\">PortFast<\/text><text x=\"135\" y=\"140\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">ports de bordure transmettent<\/text><text x=\"135\" y=\"158\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">h\u00f4tes, pas commutateurs<\/text><rect x=\"255\" y=\"90\" width=\"210\" height=\"90\" rx=\"10\" fill=\"#fef2f2\" stroke=\"#C8102E\"\/><text x=\"360\" y=\"118\" text-anchor=\"middle\" fill=\"#9f1239\" font-size=\"12\" font-weight=\"700\">BPDU Guard<\/text><text x=\"360\" y=\"140\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">BPDU en bordure -> d\u00e9sactiv\u00e9<\/text><text x=\"360\" y=\"158\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">stoppe les commutateurs pirates<\/text><rect x=\"480\" y=\"90\" width=\"210\" height=\"90\" rx=\"10\" fill=\"#fff7ed\" stroke=\"#f59e0b\"\/><text x=\"585\" y=\"118\" text-anchor=\"middle\" fill=\"#9a3412\" font-size=\"12\" font-weight=\"700\">Root Guard<\/text><text x=\"585\" y=\"140\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">rejette un BPDU sup\u00e9rieur<\/text><text x=\"585\" y=\"158\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">prot\u00e8ge l&#8217;emplacement racine<\/text><rect x=\"705\" y=\"90\" width=\"185\" height=\"90\" rx=\"10\" fill=\"#ecfdf5\" stroke=\"#166534\"\/><text x=\"797\" y=\"118\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"12\" font-weight=\"700\">Loop Guard<\/text><text x=\"797\" y=\"140\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">BPDU cessent -> reste bloquant<\/text><text x=\"797\" y=\"158\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">\u00e9vite les boucles silencieuses<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">\u00c0 retenir<\/h2><p class=\"wp-block-paragraph\">Le Spanning Tree, c&#8217;est une seule id\u00e9e appliqu\u00e9e sans rel\u00e2che : choisir une racine, mesurer le co\u00fbt vers elle, garder un chemin, bloquer les autres, et basculer sur un secours en cas de panne. RSTP rend ce basculement rapide ; les guards garantissent que l&#8217;arbre reste l\u00e0 o\u00f9 vous l&#8217;avez con\u00e7u. Ma\u00eetrisez le Bridge ID, la table de co\u00fbts et les r\u00f4les de port, et rien de ce que fait STP ne vous surprendra.<\/p><p class=\"wp-block-paragraph\"><em>Fondamentaux g\u00e9n\u00e9riques et neutres, issus de mon \u00e9tude et de mes labs. Aucune configuration sp\u00e9cifique \u00e0 un client ou un employeur.<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>Le Spanning Tree est le protocole qui emp\u00eache un r\u00e9seau de niveau 2 boucl\u00e9 de s&#8217;autod\u00e9truire. Les trames Ethernet n&#8217;ont pas de TTL, donc une seule boucle de commutation ne ralentit pas le r\u00e9seau \u2014 elle le fait fondre, en quelques secondes. Le r\u00f4le de STP est de trouver chaque chemin redondant et de le<\/p><\/div>\n<div class=\"blog-btn\"><a href=\"https:\/\/mokrane-assam.com\/index.php\/2022\/11\/29\/spanning-tree-les-bases-pont-racine-roles-de-port-et-rstp\/\" class=\"home-blog-btn\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-182","post","type-post","status-publish","format-standard","hentry","category-basic"],"_links":{"self":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/comments?post=182"}],"version-history":[{"count":1,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/182\/revisions\/183"}],"wp:attachment":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/media?parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/categories?post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/tags?post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}