Net App 4 – simple switching hub using Ryu controller
In this section, you will be learning about how a simple switch hub functions based on instructions on the Ryu controller. We shall be using the SDN hub starter kit VM in Chapter 5, Setting Up the Environment, which has the Ryu controller along with Mininet. The switching hub, which shall be covered in this section, has various capabilities:
- The ability to learn and retain the MAC addresses of hosts connected to any of its ports
- The ability to forward packets to the port of a host whose MAC address has been learned earlier
- The ability to flood packets on all its ports except the incoming ports for packets whose destination MAC address is not present in the MAC address table
In a simple switching hub, the MAC address uses the packet-in function of OpenFlow. This is used by the controller to receive the packet from the switch. These packets are analyzed by the switch where the MAC address is being learned based on the host and the port to which...