SDN Full Viva Preparation
SDN Full Viva Preparation
Concept: Mininet is a network emulator that runs a collection of end-hosts, switches, and controllers
on a single system. It helps simulate SDN environments easily for testing and learning. Mininet can
Q: What is Mininet?
Application:
Used for prototyping and testing SDN solutions in labs and research before real-world deployment.
Concept: Mininet allows the creation of custom topologies involving hosts, switches, and controllers.
Switches forward packets, hosts generate traffic, and controllers manage the network. The topology
A: Open vSwitch.
Application:
Used in SDN testing labs to evaluate different network designs and controller behaviors.
Concept: Python can be used to define advanced topologies in Mininet by subclassing Topo. Users
can add custom numbers of hosts, switches, and links. It gives flexibility beyond the CLI-based
topologies.
A: Topo class.
A: addSwitch().
A: addLink().
Application:
Used in research to simulate specific network scenarios like ring, mesh, or tree topologies.
Concept: Wireshark can capture OpenFlow messages between controller and switches. It helps
visualize flow installation, packet-ins, and flow mods. Understanding these packets is crucial for
SDN debugging.
A: OpenFlow.
A: openflow_v4 or of.
Application:
5. Flow Table Rules Implementation Using POX Controller with Learning Switch
Concept: POX is a Python-based SDN controller that can implement learning switch logic. It learns
MAC addresses and installs flow rules to reduce broadcast traffic. This improves performance by
A: forwarding.l2_learning.
A: ./pox.py forwarding.l2_learning.
A: Python.
Application:
Used in educational environments to teach basic flow control and packet forwarding.
Concept: Firewall rules can be implemented by the controller to block or allow traffic based on
IP/MAC. POX can install rules to drop certain packets based on predefined criteria. This enables
Concept: Open vSwitch (OVS) lets users manage flow tables using ovs-ofctl commands. You can
dump, add, and delete flow entries for switches. It allows low-level control over OpenFlow switches.
A: OpenFlow.
Application:
Used in data centers and labs for fine-grained control of packet forwarding.
Concept: A time-based controller can trigger actions at scheduled intervals. In POX, timers from
Timer class are used to implement alarms or events. It can monitor or respond to periodic tasks in
the network.
A: pox.lib.recoco.Timer.
Q: What is a use case for time-based alarms?
A: Proactive.
Application:
Concept: In disaster recovery, the SDN controller reroutes traffic around failed links. Ryu, a
Python-based controller, can detect failures and install new rules. It ensures service continuity even
A: Ryu.
A: OpenFlow.
Application:
Used in critical infrastructures (e.g., hospitals, finance) to ensure network uptime during outages.