How dzaleskis/ripv1-routing-simulation works
RIP is a small RIPv1 routing simulator: the console program creates routers, configures neighbors, starts their routing loops, and accepts commands to start, stop, or print a router’s table. Each router exchanges routing packets over loopback UDP and maintains expiring route entries. The excerpts show the startup, request-generation, and storage relationships; omitted Router.cs sections limit confidence about the receive-to-route-update dispatch.
Main entry points: Router.cs Router lifecycle · Program.cs Simulation controller · ExpirableList.cs Expiring list
Components 7
Simulator runtime
- Simulation controller
Program.cs
Routing
- Router lifecycle
Router.cs - UDP packet exchange
Router.cs
Route state
- Route table
Router.cs - Expiring list
ExpirableList.cs
Other components
- Console operator
- Neighbor routers
Connections 8
- Console operator → Simulation controller: enters commands
Program.cs - Simulation controller → Router lifecycle: creates and controls
Program.cs - Router lifecycle → UDP packet exchange: starts exchange
Router.cs - UDP packet exchange → Neighbor routers: sends UDP packets
Router.cs - Neighbor routers → UDP packet exchange: sends UDP packets
Router.cs - Router lifecycle → Route table: maintains routes
Router.cs - Router lifecycle → Expiring list: constructs table storage
Router.cs - Route table → Expiring list: stores entries
Router.cs