How vivekbsutar/design-and-development-of-an-interactive-web-based-routing-simulator-for-rip-ospf-and-bgp works
This is a web-based network resilience and failure-investigation platform. Users build or load a topology, inspect routing intelligence, run probe campaigns, inject faults, and investigate observed failures; the system then supports causal analysis, reduction, reproduction, and what-if analysis, with history for review. The README documents the backend REST workflow and the integrated investigation stages. Source excerpts confirm several core calls and data relationships; some UI-to-API and unsampled capability links are documented only at a high level, so they are cited to the README rather than inferred from names.
Main entry points: investigation.py Investigation orchestrator · page.tsx Workspace and history · network.py Network topology · reproducer.py Failure reproducer
Components 23
Web workspace
- Workspace and history
frontend/app/page.tsx - Project state
frontend/app/context/NetworkProjectContext.tsx - Topology editor
frontend/app/components/NetworkCanvas.tsx - Intelligence view
frontend/app/components/NetworkIntelligenceView.tsx - Test and observe
frontend/app/components/TestAndObserveView.tsx - Fault investigation
frontend/app/components/FailureInvestigationView.tsx - Causal resilience
frontend/app/components/CausalAnalysisView.tsx - Reduction and reproduction
frontend/app/components/ReductionView.tsx - What-if analysis
frontend/app/components/WhatIfView.tsx
API and investigation
- REST API
backend/main.py - Investigation orchestrator
backend/experiment/investigation.py - Test campaign
backend/orchestration/campaign.py
Network analysis
- Network topology
backend/topology/network.py - Routing intelligence
backend/intelligence/engine.py - Probe simulator
backend/simulation/simulator.py
Fault and diagnosis
- Fault injection
backend/diagnosis/fault_injection.py - Evidence diagnosis
backend/diagnosis/engine.py
Causal validation
- Failure signature
backend/failure/signature.py - Causal dependencies
backend/causal/dependency.py - Topology reducer
backend/reduction/reducer.py - Failure reproducer
backend/reproduction/reproducer.py - Resilience simulation
backend/resilience/what_if.py
Other components
- Network engineer
Connections 36
- Network engineer → Workspace and history: uses
README.md - Workspace and history → Project state: manages state
frontend/app/page.tsx - Workspace and history → Topology editor: renders
frontend/app/page.tsx - Workspace and history → Intelligence view: renders
frontend/app/page.tsx - Workspace and history → Test and observe: renders
frontend/app/page.tsx - Workspace and history → Fault investigation: renders
frontend/app/page.tsx - Workspace and history → Causal resilience: renders
frontend/app/page.tsx - Workspace and history → Reduction and reproduction: renders
frontend/app/page.tsx - Workspace and history → What-if analysis: renders
README.md - Project state → REST API: calls REST
frontend/app/context/NetworkProjectContext.tsx - Topology editor → Project state: uses topology state
frontend/app/components/NetworkCanvas.tsx - Intelligence view → Project state: uses project state
frontend/app/components/NetworkIntelligenceView.tsx - REST API → Investigation orchestrator: routes workflow
README.md - Investigation orchestrator → Routing intelligence: runs analysis
backend/experiment/investigation.py - Investigation orchestrator → Test campaign: runs tests
backend/experiment/investigation.py - Investigation orchestrator → Fault injection: injects faults
backend/experiment/investigation.py - Investigation orchestrator → Evidence diagnosis: diagnoses handoff
backend/experiment/investigation.py - Investigation orchestrator → Failure signature: generates signature
backend/experiment/investigation.py - Investigation orchestrator → Causal dependencies: builds dependencies
backend/experiment/investigation.py - Investigation orchestrator → Topology reducer: reduces topology
backend/experiment/investigation.py - Investigation orchestrator → Failure reproducer: validates reproduction
backend/experiment/investigation.py - Investigation orchestrator → Resilience simulation: runs what-if
backend/experiment/investigation.py - Routing intelligence → Network topology: analyzes graph
backend/intelligence/engine.py - Test campaign → Probe simulator: runs probes
backend/orchestration/campaign.py - Probe simulator → Network topology: reads network
backend/simulation/simulator.py - Fault injection → Network topology: changes state
backend/diagnosis/fault_injection.py - Evidence diagnosis → Probe simulator: observes probes
- Evidence diagnosis → Network topology: examines network
backend/diagnosis/engine.py - Causal dependencies → Failure signature: derives from
backend/causal/dependency.py - Topology reducer → Failure signature: compares behavior
backend/reduction/reducer.py - Topology reducer → Causal dependencies: preserves dependencies
backend/reduction/reducer.py - Failure reproducer → Topology reducer: runs reduction
backend/reproduction/reproducer.py - Failure reproducer → Failure signature: checks signature
backend/reproduction/reproducer.py - Failure reproducer → Causal dependencies: checks dependencies
backend/reproduction/reproducer.py - Resilience simulation → Network topology: simulates changes
backend/resilience/what_if.py - Resilience simulation → Routing intelligence: evaluates paths
backend/resilience/what_if.py