Network redundancy (ring topology)
📖 Scenario: You are working with a SCADA system network that uses a ring topology to ensure network redundancy. This means each device is connected to two other devices, forming a closed loop. If one connection fails, data can still travel the other way around the ring.Your task is to represent this network in code and simulate checking the network's redundancy status.
🎯 Goal: Build a simple program that models a ring network of devices and checks if the network is redundant by verifying each device has exactly two connections.
📋 What You'll Learn
Create a dictionary called
network with device names as keys and lists of connected devices as values.Add a variable called
expected_connections set to 2 to represent the ring topology requirement.Write a loop to check each device's connections against
expected_connections and store the results in a dictionary called redundancy_status.Print the
redundancy_status dictionary to show which devices have proper redundancy.💡 Why This Matters
🌍 Real World
Ring topologies are common in SCADA systems to ensure continuous operation even if one connection fails.
💼 Career
Understanding network redundancy helps in maintaining reliable industrial control systems and troubleshooting network issues.
Progress0 / 4 steps