{"id":176,"date":"2021-11-29T22:22:42","date_gmt":"2021-11-29T21:22:42","guid":{"rendered":"https:\/\/mokrane-assam.com\/?p=176"},"modified":"2026-11-29T22:27:32","modified_gmt":"2026-11-29T21:27:32","slug":"ripv2-basics-hop-count-timers-and-loop-prevention","status":"publish","type":"post","link":"https:\/\/mokrane-assam.com\/index.php\/2021\/11\/29\/ripv2-basics-hop-count-timers-and-loop-prevention\/","title":{"rendered":"RIPv2 Basics: Hop Count, Timers, and Loop Prevention"},"content":{"rendered":"<p class=\"wp-block-paragraph\">RIPv2 is the protocol people learn first and dismiss fastest \u2014 but its timers and loop-prevention tricks are exactly the mechanisms that reappear, dressed up, in every distance-vector design since. This walk-through takes RIPv2 from &#8220;it counts hops&#8221; to the parts that actually bite in production: the count-to-infinity problem and the four timers that paper over it.<\/p><h2 class=\"wp-block-heading\">1. RIPv1 vs RIPv2 \u2014 what actually changed<\/h2><p class=\"wp-block-paragraph\">RIPv2 is still a distance-vector protocol that advertises its whole table periodically, but it fixed the three things that made RIPv1 unusable on real networks: it carries the <strong>subnet mask<\/strong> in every route (so VLSM and CIDR work), it sends updates to <strong>multicast 224.0.0.9<\/strong> instead of broadcast, and it supports <strong>authentication<\/strong>.<\/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=\"RIPv1 vs RIPv2\"><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\">RIPv1 vs RIPv2<\/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=\"86\" width=\"400\" height=\"128\" rx=\"10\" fill=\"#fff\" stroke=\"#cbd5e1\"\/><text x=\"240\" y=\"110\" text-anchor=\"middle\" fill=\"#9f1239\" font-size=\"13\" font-weight=\"700\">RIPv1<\/text><text x=\"240\" y=\"138\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">Classful \u2014 no subnet mask in updates<\/text><text x=\"240\" y=\"160\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">Broadcast 255.255.255.255<\/text><text x=\"240\" y=\"182\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">No authentication<\/text><rect x=\"480\" y=\"86\" width=\"400\" height=\"128\" rx=\"10\" fill=\"#ecfdf5\" stroke=\"#166534\"\/><text x=\"680\" y=\"110\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"13\" font-weight=\"700\">RIPv2<\/text><text x=\"680\" y=\"138\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">Classless \u2014 carries subnet mask (VLSM\/CIDR)<\/text><text x=\"680\" y=\"160\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">Multicast 224.0.0.9<\/text><text x=\"680\" y=\"182\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">Plaintext or MD5 authentication<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">2. The metric is hop count \u2014 and it is small<\/h2><p class=\"wp-block-paragraph\">RIPv2 ranks routes by a single number: how many routers a packet crosses. The best path is simply the fewest hops, regardless of link speed \u2014 a 10 Mbps path of 2 hops beats a 10 Gbps path of 3. The ceiling is the whole design: <strong>15 hops is the maximum<\/strong>, and <strong>16 means unreachable (infinity)<\/strong>. That small ceiling is not a limitation bolted on; it is the mechanism that stops routing loops from counting upward forever.<\/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 190\" font-family=\"'Segoe UI',Roboto,Helvetica,Arial,sans-serif\" role=\"img\" aria-label=\"RIPv2 hop-count ceiling\"><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=\"190\" 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\">RIPv2 hop-count ceiling<\/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=\"80\" height=\"40\" rx=\"8\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"80\" y=\"135\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">1<\/text><rect x=\"145\" y=\"110\" width=\"80\" height=\"40\" rx=\"8\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"185\" y=\"135\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">&#8230;<\/text><rect x=\"250\" y=\"110\" width=\"80\" height=\"40\" rx=\"8\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"290\" y=\"135\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">14<\/text><rect x=\"355\" y=\"110\" width=\"80\" height=\"40\" rx=\"8\" fill=\"#dcfce7\" stroke=\"#166534\"\/><text x=\"395\" y=\"135\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">15<\/text><rect x=\"460\" y=\"110\" width=\"80\" height=\"40\" rx=\"8\" fill=\"#fee2e2\" stroke=\"#C8102E\"\/><text x=\"500\" y=\"135\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">16<\/text><text x=\"300\" y=\"100\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"12\" font-weight=\"700\">reachable (1-15)<\/text><text x=\"550\" y=\"100\" text-anchor=\"middle\" fill=\"#C8102E\" font-size=\"12\" font-weight=\"700\">16 = infinity (unreachable)<\/text><text x=\"460\" y=\"175\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">The low ceiling bounds the count-to-infinity problem \u2014 not an accident<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">3. How updates move<\/h2><p class=\"wp-block-paragraph\">Each router floods its <strong>entire<\/strong> routing table to its neighbors every <strong>30 seconds<\/strong> over UDP port 520, to multicast 224.0.0.9. There is no neighbor relationship and no acknowledgement \u2014 a router simply trusts what it hears and adds one hop. Simplicity is the point, and also the weakness: with no handshake, convergence rides entirely on timers.<\/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=\"RIPv2 periodic updates\"><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\">RIPv2 periodic updates<\/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=\"60\" y=\"95\" width=\"130\" height=\"50\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"125\" y=\"125\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">R1<\/text><rect x=\"395\" y=\"95\" width=\"130\" height=\"50\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"460\" y=\"125\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">R2<\/text><rect x=\"730\" y=\"95\" width=\"130\" height=\"50\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"795\" y=\"125\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">R3<\/text><line x1=\"190\" y1=\"120\" x2=\"395\" y2=\"120\" stroke=\"#166534\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"292\" y=\"110\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"10.5\">full table \/ 30s<\/text><line x1=\"525\" y1=\"120\" x2=\"730\" y2=\"120\" stroke=\"#166534\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"627\" y=\"110\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"10.5\">full table \/ 30s<\/text><text x=\"460\" y=\"175\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">UDP 520 \u00b7 multicast 224.0.0.9 \u00b7 each hop adds +1 to the metric<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">4. The four timers<\/h2><p class=\"wp-block-paragraph\">Because there is no handshake, four timers govern every route&#8217;s life. <strong>Update<\/strong> (30 s) paces advertisements. <strong>Invalid<\/strong> (180 s) marks a route unusable if no update refreshes it. <strong>Hold-down<\/strong> (180 s) then refuses worse news about that route, giving the network time to agree it is gone. <strong>Flush<\/strong> (240 s) finally removes it. Those numbers are why RIPv2 converges in minutes, not milliseconds.<\/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=\"RIPv2 timers\"><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\">RIPv2 timers<\/text><text x=\"892\" y=\"37\" text-anchor=\"end\" fill=\"#38bdf8\" font-size=\"13\" font-weight=\"600\" letter-spacing=\"1\">NET BY ME<\/text><line x1=\"60\" y1=\"150\" x2=\"860\" y2=\"150\" stroke=\"#cbd5e1\" stroke-width=\"2\"\/><circle cx=\"110\" cy=\"150\" r=\"6\" fill=\"#0A66C2\"\/><text x=\"110\" y=\"128\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11\" font-weight=\"600\">Update<\/text><text x=\"110\" y=\"175\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">30s<\/text><circle cx=\"360\" cy=\"150\" r=\"6\" fill=\"#f59e0b\"\/><text x=\"360\" y=\"128\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11\" font-weight=\"600\">Invalid<\/text><text x=\"360\" y=\"175\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">180s<\/text><circle cx=\"610\" cy=\"150\" r=\"6\" fill=\"#f59e0b\"\/><text x=\"610\" y=\"128\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11\" font-weight=\"600\">Hold-down<\/text><text x=\"610\" y=\"175\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">180s<\/text><circle cx=\"820\" cy=\"150\" r=\"6\" fill=\"#C8102E\"\/><text x=\"820\" y=\"128\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"11\" font-weight=\"600\">Flush<\/text><text x=\"820\" y=\"175\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">240s<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">5. Count-to-infinity \u2014 the problem everything else fixes<\/h2><p class=\"wp-block-paragraph\">Here is the failure the whole protocol is built around. A network goes down; before the news reaches everyone, a router still advertising the dead route feeds it back to the router that just lost it. Each bounce adds a hop, and the two routers count upward \u2014 2, 3, 4\u2026 \u2014 believing they still have a path. Without a ceiling they would count forever; with one, they count to <strong>16<\/strong> and finally declare it dead.<\/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=\"Count-to-infinity\"><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\">Count-to-infinity<\/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=\"200\" height=\"60\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"220\" y=\"125\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">R1<\/text><text x=\"220\" y=\"146\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"10.5\">&#8220;I reach Net X in 3&#8221;<\/text><rect x=\"600\" y=\"100\" width=\"200\" height=\"60\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"700\" y=\"125\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">R2<\/text><text x=\"700\" y=\"146\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"10.5\">&#8220;then I reach it in 4&#8221;<\/text><line x1=\"320\" y1=\"120\" x2=\"600\" y2=\"120\" stroke=\"#C8102E\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"112\" text-anchor=\"middle\" fill=\"#C8102E\" font-size=\"10.5\">stale route (+1)<\/text><line x1=\"600\" y1=\"145\" x2=\"320\" y2=\"145\" stroke=\"#C8102E\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"162\" text-anchor=\"middle\" fill=\"#C8102E\" font-size=\"10.5\">bounced back (+1)<\/text><text x=\"460\" y=\"200\" text-anchor=\"middle\" fill=\"#9f1239\" font-size=\"11\" font-weight=\"600\">Metric climbs 3 -> 4 -> 5 &#8230; -> 16 = unreachable. The ceiling ends the loop.<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">6. Split horizon and poison reverse<\/h2><p class=\"wp-block-paragraph\">The first defense is <strong>split horizon<\/strong>: never advertise a route back out the interface you learned it on \u2014 if R2 learned Net X from R1, it does not tell R1 about Net X. <strong>Poison reverse<\/strong> strengthens it: R2 <em>does<\/em> advertise it back, but with a metric of 16 (poisoned), explicitly saying &#8220;do not use me to reach this.&#8221; Poisoning is louder and faster than silence, at the cost of larger updates.<\/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=\"Split horizon and poison reverse\"><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\">Split horizon and poison reverse<\/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=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"215\" y=\"132\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"600\">R1 (owns Net X)<\/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\">R2<\/text><line x1=\"310\" y1=\"118\" x2=\"610\" y2=\"118\" stroke=\"#166534\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"110\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"10.5\">Net X, metric 1<\/text><line x1=\"610\" y1=\"140\" x2=\"310\" y2=\"140\" stroke=\"#C8102E\" stroke-width=\"2\" marker-end=\"url(#ar)\"\/><text x=\"460\" y=\"158\" text-anchor=\"middle\" fill=\"#C8102E\" font-size=\"10.5\">Net X, metric 16 (poison reverse)<\/text><text x=\"460\" y=\"194\" text-anchor=\"middle\" fill=\"#64748b\" font-size=\"11\">Split horizon alone would simply stay silent on the return path<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">7. Triggered updates and hold-down<\/h2><p class=\"wp-block-paragraph\">Waiting 30 seconds to announce a failure is too slow, so a <strong>triggered update<\/strong> fires immediately when a metric changes \u2014 the bad news races ahead of the periodic clock. <strong>Hold-down<\/strong> then does the opposite for good news: after a route is marked down, the router ignores any update offering a worse-or-equal metric for the hold-down period, so a stale advertisement cannot resurrect a route that is genuinely gone.<\/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=\"Triggered updates and hold-down\"><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\">Triggered updates and hold-down<\/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=\"60\" y=\"90\" width=\"360\" height=\"80\" rx=\"10\" fill=\"#fff\" stroke=\"#0A66C2\"\/><text x=\"240\" y=\"118\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"700\">Triggered update<\/text><text x=\"240\" y=\"142\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">change -> advertise NOW, don&#8217;t wait 30s<\/text><text x=\"240\" y=\"160\" text-anchor=\"middle\" fill=\"#166534\" font-size=\"10.5\">speeds the spread of bad news<\/text><rect x=\"500\" y=\"90\" width=\"360\" height=\"80\" rx=\"10\" fill=\"#fff\" stroke=\"#f59e0b\"\/><text x=\"680\" y=\"118\" text-anchor=\"middle\" fill=\"#9a3412\" font-size=\"12\" font-weight=\"700\">Hold-down<\/text><text x=\"680\" y=\"142\" text-anchor=\"middle\" fill=\"#334155\" font-size=\"11\">ignore worse-or-equal news for the timer<\/text><text x=\"680\" y=\"160\" text-anchor=\"middle\" fill=\"#9a3412\" font-size=\"10.5\">blocks stale routes from reappearing<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">8. What RIPv2 added for the real world<\/h2><p class=\"wp-block-paragraph\">Beyond classless masks and multicast, RIPv2 carries three fields that matter operationally: a <strong>next-hop<\/strong> field (so a router can point traffic at a better gateway on a shared segment it is not itself using), a <strong>route tag<\/strong> (a label to mark routes redistributed from another protocol, so they can be filtered or re-exported cleanly), and <strong>MD5 authentication<\/strong> (so a rogue device cannot inject routes). Those are the features that let RIPv2 survive at the edges of networks that otherwise run OSPF or EIGRP.<\/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=\"RIPv2 operational fields\"><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\">RIPv2 operational fields<\/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=\"95\" width=\"260\" height=\"70\" rx=\"10\" fill=\"#e0f2fe\" stroke=\"#0A66C2\"\/><text x=\"170\" y=\"125\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"700\">Next-hop field<\/text><text x=\"170\" y=\"148\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">point at a better gateway<\/text><rect x=\"330\" y=\"95\" width=\"260\" height=\"70\" rx=\"10\" fill=\"#e0f2fe\" stroke=\"#0A66C2\"\/><text x=\"460\" y=\"125\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"700\">Route tag<\/text><text x=\"460\" y=\"148\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">mark redistributed routes<\/text><rect x=\"620\" y=\"95\" width=\"260\" height=\"70\" rx=\"10\" fill=\"#e0f2fe\" stroke=\"#0A66C2\"\/><text x=\"750\" y=\"125\" text-anchor=\"middle\" fill=\"#0f172a\" font-size=\"12\" font-weight=\"700\">MD5 auth<\/text><text x=\"750\" y=\"148\" text-anchor=\"middle\" fill=\"#475569\" font-size=\"10.5\">reject rogue updates<\/text><\/svg><\/figure><h2 class=\"wp-block-heading\">Takeaways<\/h2><p class=\"wp-block-paragraph\">RIPv2 is worth understanding not because you will design with it, but because its problems are universal: a metric needs a ceiling, bad news must travel faster than good news, and a protocol with no handshake must lean on timers. Every modern IGP solves these more elegantly \u2014 but RIPv2 is where the questions were first asked plainly.<\/p><p class=\"wp-block-paragraph\"><em>Generic, vendor-neutral fundamentals from my own study and lab work. No client- or employer-specific configuration.<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>RIPv2 is the protocol people learn first and dismiss fastest \u2014 but its timers and loop-prevention tricks are exactly the mechanisms that reappear, dressed up, in every distance-vector design since. This walk-through takes RIPv2 from &#8220;it counts hops&#8221; to the parts that actually bite in production: the count-to-infinity problem and the four timers that paper<\/p><\/div>\n<div class=\"blog-btn\"><a href=\"https:\/\/mokrane-assam.com\/index.php\/2021\/11\/29\/ripv2-basics-hop-count-timers-and-loop-prevention\/\" 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-176","post","type-post","status-publish","format-standard","hentry","category-basic"],"_links":{"self":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/176","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=176"}],"version-history":[{"count":1,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/176\/revisions"}],"predecessor-version":[{"id":177,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/176\/revisions\/177"}],"wp:attachment":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/media?parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/categories?post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/tags?post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}