Programming Challenge: Routing Information Protocol
Explore how to implement the Routing Information Protocol (RIP) in Python using a provided network simulator. Learn to work with router objects, ports, and routing tables to simulate real-world routing behavior. This lesson helps you understand and apply fundamental network layer routing concepts through practical coding.
We'll cover the following...
Problem Statement
In this challenge, you will implement the routing information protocol that we just studied in the last lesson! You’re given some starter code files.
Starter Code
For this coding challenge, we are providing you with a network simulator written in python3. The implementation of our simplified version of RIP is also required in Python. Let’s look at the starter code module by module.
topology_reader.py
This is the entry point to our code. It takes a network topology in the form of a Python list as input and returns a list of router objects that reflect that topology. Here’s what the topology looks like:
Sample Input
The list consists of sublists. Each sublist represents one router. So [1, [11, 2, 21, 1], [12, 4, ...