Software-
Defined
Networking.

CPEG 440 · Computer Networks · Fall 2026
American University of Kuwait · Prof. Mounib Khanafer
  • Mahmoud AlBustan62138
  • Ali Musallam61615
  • Khaled AlMezal65777

Every router decides for itself.

R1example config
hostname R1 router ospf 1 network 10.0.1.0 0.0.0.255 area 0 network 10.0.12.0 0.0.0.3 area 0 ip access-list extended GUEST deny ip 10.0.9.0 0.0.0.255 any permit ip any any
R2example config
hostname R2 router ospf 1 network 10.0.2.0 0.0.0.255 area 0 network 10.0.12.0 0.0.0.3 area 0 network 10.0.23.0 0.0.0.3 area 0 ip access-list extended GUEST deny ip 10.0.9.0 0.0.0.255 any
R3example config
hostname R3 router ospf 1 network 10.0.3.0 0.0.0.255 area 0 network 10.0.23.0 0.0.0.3 area 0 ! GUEST rule missing here

One policy, typed by hand into every box. Miss one, and the network quietly does something else.

Two jobs in every box.

Control planeData plane
decidesthe path across the networkthe output port for each packet
scopenetwork-wideone router
speedsecondsnanoseconds
exampleOSPF, BGPforwarding table lookup

In a traditional network, both live inside every router.

Move the control plane out.

before · every router has both planes after · one controller, simple switches controldata controldata controldata controller OpenFlow datadatadata

Four pillars.

  1. 01The planes are split.Switches only forward packets.
  2. 02Flows, not destinations.A rule can match many header fields.
  3. 03An external controller.A network operating system with a view of the whole network.
  4. 04The network is programmable.Applications on the controller decide how it behaves.

Three layers, two interfaces.

applications
routing·access control·load balancing·traffic engineering
↕ northbound
REST or language API
controller
Network operating system. Holds the topology, link state, hosts and every installed rule.
↕ southbound
OpenFlow · P4Runtime · NETCONF
switches
Match each packet against rules and apply the action.

One table, many devices.

$ ovs-ofctl dump-flows s1 · example
priomatchactionsacts like
300tcp,nw_dst=10.1.2.0/24,tp_dst=22dropa firewall
200ip,nw_dst=10.1.2.5output:3a router
100dl_dst=00:1a:2b:3c:4d:5eoutput:1a layer-2 switch
0anything else (table miss)CONTROLLERasks the controller

What a box does depends on its rules, not on what kind of box it is.

A new flow, step by step.

controller switch host A host B 1 · first packet 2 · packet-in 3 · flow-mod + packet-out 4 · delivered 5 · later packets match the new rule and never reach the controller
1host A → switch · no rule matches nw_dst=10.0.0.2
2OFPT_PACKET_IN in_port=1 reason=no_match
3OFPT_FLOW_MOD add ip,nw_dst=10.0.0.2 actions=output:2 · OFPT_PACKET_OUT output:2
4switch → host B
5flow table · ip,nw_dst=10.0.0.2 actions=output:2 n_packets grows

Controllers grew up.

  1. 2008NOXOne of the first OpenFlow controllers.
  2. 2014ONOS, OpenDaylightOpen source, built for production, run as a cluster.
  3. 2021Google OrionRuns Google's data center fabric and its global WAN.
40×faster convergence
1.16Mnetwork updates per second
16×larger networks
50×, 100×less data-plane downtime in Jupiter, B4
Orion, as reported by Google

P4 programs the switch itself.

OpenFlow 1.0 match fields12
in_port dl_src dl_dst dl_vlan dl_vlan_pcp dl_type nw_tos nw_proto nw_src nw_dst tp_src tp_dst
Later versions: 40+.
Every new field needed switch support.
P4_16 · parser and tableexample
parser MyParser(packet_in pkt, out headers_t hdr) { state start { pkt.extract(hdr.ethernet); transition select(hdr.ethernet.etherType) { 0x0800: parse_ipv4; default: accept; } } state parse_ipv4 { pkt.extract(hdr.ipv4); transition accept; } } table ipv4_lpm { key = { hdr.ipv4.dstAddr: lpm; } actions = { ipv4_forward; drop; } } // the controller fills this table through P4Runtime

The biggest networks use it.

What SDN changedResult
Google B4
WAN
central traffic engineering over many pathsmany links near 100%,
70% average
Microsoft SWAN
WAN
central control of how much each service sends60% more traffic
than MPLS TE, in its evaluation
Google Jupiter
data center
optical switches reshaped to fit the traffic30% more throughput,
40% less power

Jupiter also: 10% shorter flow completion, 30% lower cost, 50× less downtime.

Where else it runs.

  1. Cloud virtualizationEach tenant gets its own virtual network, programmed into hypervisor switches (NVP, VMware NSX).
  2. CampusWhere it began with Ethane. Access control, guest and IoT isolation, quarantine.
  3. SD-WANBranches steer each application over MPLS, broadband or LTE/5G by central policy (MEF 70).
  4. 5G coreThe SMF installs forwarding rules in the UPF, so user traffic can be handled close to users.
  5. NFVFirewalls and core functions run as software on servers; SDN connects them.
  6. SecurityRead flow counters, then drop or redirect bad traffic at the edge.

What it gives. What it costs.

  1. A global view for better decisions
  2. New features as software, not firmware
  3. One policy, enforced everywhere
  4. Open interfaces across vendors
  1. scaleToo many packet-ins
  2. reliabilityA single point of failure
  3. securityThe controller is the prize
  4. tablesSwitch memory is costly

In practice: replicate the controller and install rules in advance.

The network
became software.

  1. 01Control moved out of the boxes into a controller you can program.
  2. 02OpenFlow made one table act as a switch, router or firewall. P4 made the switch programmable.
  3. 03Still open: making the controller scale, stay up and stay secure.

Questions.

  • Mahmoud AlBustan62138
  • Ali Musallam61615
  • Khaled AlMezal65777

References.

  1. [1]J. F. Kurose and K. W. Ross, Computer Networking: A Top-Down Approach, 8th ed. Pearson, 2021.
  2. [2]N. McKeown et al., "OpenFlow: Enabling innovation in campus networks," ACM SIGCOMM CCR, vol. 38, no. 2, 2008.
  3. [3]D. Kreutz et al., "Software-defined networking: A comprehensive survey," Proc. IEEE, vol. 103, no. 1, 2015.
  4. [4]M. Casado et al., "Ethane: Taking control of the enterprise," Proc. ACM SIGCOMM, 2007.
  5. [5]E. Haleplidis et al., "SDN: Layers and architecture terminology," RFC 7426, 2015.
  6. [6]P. Berde et al., "ONOS: Towards an open, distributed SDN OS," HotSDN, 2014.
  7. [7]S. Jain et al., "B4: Experience with a globally-deployed software defined WAN," Proc. ACM SIGCOMM, 2013.
  8. [8]P4.org API Working Group, "P4Runtime specification, version 1.4.1," 2024.
  9. [9]Open Networking Foundation, "OpenFlow switch specification, v1.5.1," ONF TS-025, 2015.
  10. [10]N. Gude et al., "NOX: Towards an operating system for networks," ACM SIGCOMM CCR, 2008.
  11. [11]A. D. Ferguson et al., "Orion: Google's software-defined networking control plane," NSDI, 2021.
  12. [12]P. Bosshart et al., "P4: Programming protocol-independent packet processors," ACM SIGCOMM CCR, 2014.
  13. [13]S. Scott-Hayward et al., "A survey of security in software defined networks," IEEE COMST, 2016.
  14. [14]L. Poutievski et al., "Jupiter evolving," Proc. ACM SIGCOMM, 2022.
  15. [15]A. Vahdat, "The evolution of Google's Jupiter data center network," Google Cloud Blog, 2022.
  16. [16]C.-Y. Hong et al., "Achieving high utilization with software-driven WAN," Proc. ACM SIGCOMM, 2013.
  17. [17]T. Koponen et al., "Network virtualization in multi-tenant datacenters," NSDI, 2014.
  18. [18]MEF, "SD-WAN service attributes and services," MEF 70, 2019.
  19. [19]M. Chiosi et al., "Network functions virtualisation: An introduction…," White Paper, 2012.
  20. [20]3GPP, "System architecture for the 5G System (5GS); Stage 2," TS 23.501, Release 17, 2022.
    0:00 · 00:00 / 15:00