Basic codes to test switch functionality using switchyard.
Algorithm used for learning switch:
- Start with empty table.
- When frame arrive with destination & its not in table, broadcast frame to all ports.
- Store src address from where the packet arrived.
- Remove stale address.
Code for myswitch and test cases are provided.
Challenge is mentioned at: https://github.com/jsommers/switchyard/blob/master/examples/exercises/learning_switch/learning_switch.rst