🤖 AI Summary
To address data flow disruptions caused by link failures and congestion in medium-scale enterprise LANs, this paper proposes a lightweight, scalable fault-tolerant switching architecture. We construct a dynamic topology model using NetworkX and simulate link failures and traffic congestion via Scapy. Based on this, we design and implement adaptive fault detection, fast path rerouting, and traffic scheduling algorithms. The system enables controller-free, protocol-agnostic millisecond-scale automatic failover. Experimental evaluation demonstrates that under single-link failure and sudden congestion scenarios, the packet delivery ratio remains above 99.2%, the average recovery time is below 80 ms, and packet loss is reduced by 92% compared to conventional non-fault-tolerant approaches. These results significantly enhance network robustness and service availability.
📝 Abstract
Ensuring uninterrupted data flow in modern networks requires robust fault-tolerant mechanisms, especially in environments where reliability and responsiveness are critical. This paper presents the design and simulation of a fault-tolerant network switching system using Python-based algorithms. A simulated enterprise-level Local Area Network (LAN) was modeled using NetworkX to represent switch-router interconnectivity with redundant links. Fault scenarios, including link failure and congestion, were injected using Scapy, while automatic failover and rerouting were implemented via custom Python logic. The system demonstrates resilience by dynamically detecting path failures, redistributing network traffic through redundant links, and minimizing downtime. Performance evaluations reveal significant improvements in packet delivery continuity, faster recovery times, and reduced packet loss compared to non-fault-tolerant baselines. The implementation provides a scalable and lightweight approach to integrating fault-tolerance features into mid-scale networks, with potential application in enterprise information technology infrastructures and academic simulations.