.. _example_protocols_rip_timers_garbage-collection: ################## Garbage-Collection ################## Test to verify RIP **garbage collection timer** for removing stale routes. This validates the **two-stage removal process:** After routes are marked **invalid** by the ``timeout timer`` (``metric 16``), the ``garbage collection timer`` **completely removes** them from the routing table. This test simulates neighbor loss by removing RIP configuration. ********************************* Test RIP Garbage Collection Timer ********************************* Description =========== Verify ``RIP`` **garbage collection timer** completely removes invalid routes. **DUT0** advertises the route ``10.10.10.0/24`` to **DUT1**. Then ``RIP`` is deleted from **DUT0** to simulate a neighbor loss. After 5 seconds, the route is marked as **invalid** with ``metric 16``. After an additional 5 seconds, the route is **completely removed** from the routing table. This demonstrates the **two-stage process** that prevents stale routes from persisting indefinitely. Scenario ======== .. include:: garbage-collection/testripgarbagecollectiontimer .. raw:: html