PadhaikoAll subjects

Advanced Topics

Computer Networks (ENCT 304)

Open in the Padhaiko app

7.1 Introduction to software-defined networking (SDN), basic architecture, importance and applications

In traditional networks, every router and switch tightly bundles packet forwarding (data plane) and routing intelligence (control plane) inside proprietary vendor firmware. Software-Defined Networking (SDN) decouples these planes, centralizing control logic in programmable software controllers while leaving switches as fast, simple forwarding hardware.

Definition

Software-Defined Networking (SDN)

Software-Defined Networking (SDN) is a network architecture that separates the control plane (deciding where packets go) from the data plane (forwarding packets), exposing a centralized, software-programmable network view to applications via open APIs.

SDN Architecture (Three Planes and Two Interfaces)

  1. Data (Infrastructure) Plane: Physical and virtual switches (e.g., Open vSwitch) that maintain match-action flow tables (matching L2/L3/L4 header fields and executing actions such as forward, drop, modify, or send to controller).
  2. Control Plane (SDN Controller): Logically centralized software platform (e.g., ONOS, OpenDaylight, Ryu) that maintains a global topology graph and computes forwarding rules for all switches.
  3. Application Plane: Network apps (traffic engineering, load balancers, firewalls, IDS) that read network state and push policies dynamically without touching individual switch CLIs.
AspectTraditional Distributed NetworkingSoftware-Defined Networking (SDN)
Control & Data PlanesTightly coupled inside each closed vendor switch/routerPhysically decoupled; centralized software controller + simple switches
Configuration & PolicyBox-by-box manual CLI/SNMP configurationGlobal programmatic automation via REST APIs
Network VisibilityDistributed local view per routerUnified global topology view at the controller
Innovation SpeedSlow; tied to vendor hardware/OS release cyclesRapid; new routing or security behaviors deployed as software modules

Importance and Applications of SDN


7.2 Network security and its importance

Modern networks carry financial transactions, healthcare records, industrial telemetry, and cloud services, making network security essential to preserve service availability, data privacy, and organizational trust.

The CIA Security Triad

Definition

CIA Triad of Network Security

  1. Confidentiality: Ensures sensitive data is readable only by authorized parties (enforced via encryption such as AES, TLS, and IPsec).
  2. Integrity: Guarantees that messages have not been altered or tampered with in transit (enforced via cryptographic hashes SHA-256, HMAC, and AEAD tags).
  3. Availability: Ensures networks and services remain accessible and responsive to legitimate users even under fault or attack (enforced via redundancy, rate limiting, and DDoS mitigation).

(Modern security also emphasizes Authentication—verifying identity via digital certificates/MFA—and Non-repudiation—proving a sender cannot deny sending a signed message.)

Network Attacks: Passive vs. Active

Core Defense Mechanisms


7.3 Overview of content delivery networks (CDNs), named data networking (NDN), intent based networking (IBN)

1. Content Delivery Networks (CDNs)

A CDN is a geographically distributed network of edge cache servers (Points of Presence, PoPs) placed close to end users (often inside ISP networks).

2. Named Data Networking (NDN)

NDN is a Future Internet architecture based on Information-Centric Networking (ICN) that shifts communication from where data is located (host IP addresses) to what data is requested (hierarchical content names, e.g., /edu/ioe/enct304/lecture1.pdf).

3. Intent-Based Networking (IBN)

IBN builds atop SDN and AI/automation to let operators declare high-level business intent (what the network should achieve, such as "Isolate guest Wi-Fi from lab servers and guarantee latency for video conferencing") rather than low-level device configurations.


7.4 Quantum network, network virtualization and recent trends in networking

1. Quantum Networks

A quantum network transmits quantum bits (qubits)—such as polarized photons over optical fiber or free space—to connect quantum processors or enable provably secure communication.

2. Network Virtualization

Network Virtualization decouples logical network topologies and services from underlying physical hardware:

3. Recent Trends in Networking


Worked Out Examples

Example 7.1

7.1

An OpenFlow SDN switch handles . For each new flow, the very first packet misses the flow table and triggers a Packet-In message to the SDN controller, which replies with a Flow-Mod rule installation. Suppose each established flow subsequently transfers of each directly through the data plane.

  1. Calculate the control-plane bandwidth (in ) exchanged between the switch and the controller.
  2. Calculate the data-plane throughput (in ) forwarded by the switch.
  3. What percentage of total data packets require controller intervention?

Calculating Control-Plane Bandwidth: Each new flow exchanges over the southbound OpenFlow channel. At :

Calculating Data-Plane Throughput and Intervention Ratio: Each flow sends through the hardware flow table:

Since only packet out of every packets per flow triggers a table miss:

Answer:
  1. Control-plane bandwidth: ().
  2. Data-plane throughput: .
  3. Only of packets trigger controller intervention; the remaining are forwarded at hardware line rate.
Example 7.2

7.2

A streaming provider deploys a CDN edge server near a campus. When a requested video segment is cached at the edge (cache hit), the user access latency is . On a cache miss, the request must fetch the segment from the distant origin server with latency . If the CDN achieves a cache hit ratio of ():

  1. Calculate the average user access latency .
  2. Compute the latency speedup factor compared to fetching every segment directly from the origin server.
  3. By what percentage is origin server request traffic reduced?

Computing Average Access Latency: The expected latency is the weighted average of cache-hit and cache-miss latencies:

Computing Speedup Factor and Origin Offload:

  • Latency speedup factor relative to direct origin access ():
  • Because of requests are served entirely by the edge cache without contacting the origin, origin request traffic drops by .
Answer:
  1. Average access latency: .
  2. Latency speedup factor: .
  3. Origin server request traffic reduction: .
Example 7.3

7.3

In the BB84 Quantum Key Distribution (QKD) protocol, suppose an eavesdropper (Eve) intercepts every transmitted photon, measures it in a randomly chosen rectilinear () or diagonal () basis, and resends a photon in that state to Bob.

  1. For a single sifted key bit (where Alice and Bob used the same basis), determine the probability that Eve introduces a bit error.
  2. If Alice and Bob publicly compare sifted check bits to detect eavesdropping, compute the probability (as a percentage) that Eve goes undetected and the probability that Eve is detected.

Determining Single-Bit Error Probability :

  • With probability , Eve guesses the same basis as Alice and Bob, introducing error.
  • With probability , Eve chooses the wrong basis, randomizing the photon polarization relative to Bob's basis; Bob subsequently obtains the wrong bit with probability .
  • Therefore, the error probability per sifted check bit is:

Calculating Detection Probability over Check Bits:

Answer:
  1. Single-bit error probability introduced by Eve: .
  2. Over check bits, probability of going undetected is , and probability of detection is .

Practice Exercises

Practice Exercises — SDN, Network Security, NDN/IBN & Quantum Networks

Question 1

Explain the architecture of Software-Defined Networking (SDN) by describing its three functional planes and the roles of Northbound and Southbound interfaces. State two key advantages of SDN over traditional networking.

SDN Planes and Interfaces:

  • Data Plane: Hardware/virtual switches executing fast packet forwarding using match-action flow tables.
  • Control Plane: Logically centralized SDN controller maintaining global topology and programming switch flow tables via Southbound APIs (e.g., OpenFlow).
  • Application Plane: Traffic engineering, security, and load-balancing apps communicating with the controller via Northbound APIs (e.g., REST).

Key Advantages:

  1. Centralized Global Visibility and Programmability: Simplifies traffic engineering and dynamic rerouting without per-box CLI scripting.
  2. Vendor Neutrality and Rapid Deployment: New network policies roll out as software upgrades rather than waiting for proprietary switch firmware updates.
Answer:

SDN separates forwarding (Data Plane), centralized intelligence (Control Plane), and policy apps (Application Plane), linked via Southbound (OpenFlow) and Northbound (REST) APIs. Its main advantages are centralized global programmability and agile, vendor-neutral policy automation.

Question 2

Distinguish between passive and active network security attacks, give two examples of each, and explain how the CIA Triad guides defensive countermeasures.

Passive vs. Active Attacks:

  • Passive Attacks: Observe or monitor network traffic without modifying data or disrupting service (e.g., eavesdropping/packet sniffing, traffic analysis). Defended primarily by Confidentiality mechanisms (TLS, IPsec, VPN encryption).
  • Active Attacks: Alter data, inject bogus packets, or disrupt availability (e.g., Man-in-the-Middle, DDoS, replay, ARP spoofing). Defended by Integrity (HMAC/AEAD, digital signatures), Authentication (certificates), and Availability controls (firewalls, rate limiting, redundancy).
Answer:

Passive attacks (sniffing, traffic analysis) spy on traffic without altering it and are countered by encryption (Confidentiality). Active attacks (MitM, DDoS, replay) modify or disrupt traffic and require cryptographic Integrity, Authentication, firewalls, and DDoS mitigation (Availability).

Question 3

Compare Content Delivery Networks (CDNs), Named Data Networking (NDN), and Intent-Based Networking (IBN) in terms of their primary goal and key operating mechanism.

Comparing the Three Paradigms:

  • CDN: Reduces latency and origin load by caching popular web/video content on geographically distributed edge servers using DNS/Anycast redirection.
  • NDN: Replaces host-IP addressing with hierarchical content names; consumers send Interest packets and routers use CS (cache), PIT (pending requests), and FIB (name routing) to return signed Data packets from any cache or producer.
  • IBN: Elevates network operations to declarative business intent, automatically translating goals into SDN configurations and continuously verifying compliance via closed-loop telemetry.
Answer:

CDNs cache content at ISP-edge servers to lower latency; NDN routes packets by content name using router CS/PIT/FIB tables instead of IP addresses; IBN translates high-level business intents into automated configurations with continuous closed-loop verification.

Question 4

A CDN edge cache serves hits in , while cache misses take from the origin server. If the cache hit ratio is (), calculate the average access latency and the percentage reduction in latency compared to having no CDN.

Computing Average Latency and Reduction:

Without a CDN, every request takes , so the percentage reduction is:

Answer:

Average access latency is , representing a reduction compared to direct origin access.

Question 5

An SDN switch processes . Each new flow sends a Packet-In to the controller and receives a Flow-Mod reply. Thereafter, each flow forwards data packets of each in the data plane. Calculate the control-plane bitrate and data-plane bitrate (both in ).

Computing Control-Plane and Data-Plane Bitrates:

  • Control-plane traffic per flow :
  • Data-plane traffic per flow :
Answer:

Control-plane bitrate is and data-plane bitrate is .

← Upper Layers and Network Design