Skip to content
BoKSA

02 – Network Performance, the Layered Model and the Physical Layer

02 – Network Performance, the Layered Model and the Physical Layer

Course: ICT Basic course · Level: introductory Book: Kurose & Ross, 9th ed., chapter 1 (delay, loss, throughput; protocol layers) and parts of chapters 6–7 (physical media, wireless)

Learning goals

After this article you can:

  • name and calculate the four types of delay in a packet-switched network;
  • explain packet loss, throughput and the bottleneck link;
  • describe the TCP/IP model (5 layers) and the OSI model (7 layers), and explain encapsulation;
  • describe common physical media (copper, fibre, radio) and today's speeds;
  • explain the difference between a hub, a switch, a router, an access point and a modem/ONT.

Part A – Performance: delay, loss and throughput

A.1 Four sources of delay

When a packet travels from one router to the next, it experiences four kinds of delay:

1
 packet arrives ─► [processing] ─► [queue ....] ─► [transmission: bits onto the wire] ─► ~~~ propagation ~~~ ─► next router
Delay Symbol What causes it Typical size
Processing d_proc Checking the header for errors, deciding the output link microseconds
Queuing d_queue Waiting in the buffer until the link is free 0 to many ms; depends on congestion
Transmission d_trans = L / R Pushing all bits of the packet onto the link (L = packet length in bits, R = link rate in bit/s) depends on L and R
Propagation d_prop = d / s Bits travelling through the medium (d = distance, s = propagation speed ≈ 2×10⁸ m/s in copper/fibre) depends on distance

Total nodal delay: d_nodal = d_proc + d_queue + d_trans + d_prop

Transmission vs. propagation – the car analogy (Kurose & Ross): cars (bits) travel in a caravan (packet). The toll booth needs 12 seconds per car to let it through (transmission). The road between two toll booths takes time to drive (propagation). Transmission depends on packet size and link speed; propagation depends only on distance.

Worked example A 1,500-byte packet (= 12,000 bits) is sent over a 100 Mbit/s link of 2,000 km.

  • d_trans = 12,000 / 100,000,000 = 0.12 ms
  • d_prop = 2,000,000 m / 2×10⁸ m/s = 10 ms

So over long distances, propagation is the main delay. This is why gamers prefer a server "close by", and why CDNs put copies of content near users.

A.2 Queuing delay and packet loss

Traffic intensity = La / R (a = average packet arrival rate).

  • La/R ≈ 0 → hardly any queuing
  • La/R → 1 → queuing delay grows very fast
  • La/R > 1 → more work arrives than can be served: the queue fills up and packets are lost

Lost packets are re-sent by the sender (TCP) or simply missing (UDP, e.g. a short glitch in a video call).

Bufferbloat: cheap routers with very large buffers can give high delay (hundreds of ms) when the link is full, for example when someone is uploading. Modern techniques such as AQM (FQ-CoDel, CAKE) and L4S (low latency, standardised in 2023) keep queues short.

A.3 Throughput and the bottleneck

Throughput is the rate (bit/s) at which data actually arrives at the receiver. End-to-end throughput = the rate of the slowest link on the path, the bottleneck.

Example: server → 10 Gbit/s → Internet core → 1 Gbit/s → your fibre connection → 300 Mbit/s → your old Wi-Fi. Your download is at most 300 Mbit/s. Wi-Fi is the bottleneck.

A.4 Measuring it: ping and traceroute

1
2
3
ping -c 4 www.hva.nl            # Linux/macOS (Windows: ping www.hva.nl)
traceroute www.hva.nl           # Linux/macOS (Windows: tracert www.hva.nl)
mtr www.hva.nl                  # Linux: ping + traceroute combined, live
  • ping measures the RTT (round-trip time).
  • traceroute shows every router (hop) on the way and the delay to each one.

Part B – The layered model

B.1 Why layers?

Networks are complex: hardware, software, many vendors, many media. Layering splits the problem into pieces:

  • each layer offers a service to the layer above it and uses the service of the layer below it;
  • you can change one layer (e.g. Wi-Fi instead of Ethernet) without changing the others;
  • an app developer doesn't need to know how bits travel over fibre.

B.2 The Internet protocol stack (TCP/IP – 5 layers)

# Layer Job Unit of data Examples Where implemented
5 Application Network applications message HTTP, DNS, SMTP, SSH, QUIC* apps (user space)
4 Transport Process-to-process delivery segment TCP, UDP operating system
3 Network Host-to-host delivery, routing datagram / packet IP (v4/v6), ICMP OS + routers
2 Link Delivery to the next device on the same link frame Ethernet, Wi-Fi, 5G network card (NIC) + driver
1 Physical Moving individual bits bit copper, fibre, radio hardware

* QUIC runs on top of UDP and does transport tasks, but it lives inside the application.

B.3 The OSI model (7 layers)

The OSI reference model (ISO, 1984) has two extra layers between transport and application: Session (5) and Presentation (6). In the Internet these functions are handled by the application itself (e.g. TLS for encryption, JSON/UTF-8 for presentation).

1
2
3
4
5
6
7
8
OSI                     TCP/IP
7 Application  ┐
6 Presentation ├──►     Application
5 Session      ┘
4 Transport    ──►      Transport
3 Network      ──►      Network (Internet)
2 Data link    ──►      Link
1 Physical     ──►      Physical

You'll still hear OSI numbers used in practice: "a layer 2 switch", "a layer 3 switch", "a layer 7 firewall / load balancer".

B.4 Encapsulation

Every layer adds its own header (and sometimes a trailer) to the data from the layer above:

1
2
3
4
5
Application:                          [ HTTP message ]
Transport:                   [TCP hdr][ HTTP message ]                ← segment
Network:              [IP hdr][TCP hdr][ HTTP message ]               ← datagram
Link:        [Eth hdr][IP hdr][TCP hdr][ HTTP message ][Eth trailer]  ← frame
Physical:    0101110100101011010101...                                 ← bits

At the receiver, every layer removes its own header again (decapsulation). A switch only looks up to layer 2; a router up to layer 3; your browser handles all 5. You'll see this clearly in Wireshark.


Part C – The physical layer and network hardware

C.1 Physical media

Medium Type Today's typical speeds Notes
Twisted pair (UTP/STP) guided, copper Cat5e: 1 Gbit/s · Cat6: 1–10 Gbit/s (≤55 m) · Cat6a: 10 Gbit/s (100 m) · Cat8: 25/40 Gbit/s (≤30 m, data centres) Most common LAN cable. Max. 100 m per segment
Coaxial cable guided, copper DOCSIS 3.1: ~1–2 Gbit/s down · DOCSIS 4.0 up to 10 Gbit/s Cable Internet (Ziggo)
Fibre optic guided, light 1–10 Gbit/s at home (FTTH: GPON / XGS-PON) · 100/400/800 Gbit/s in backbones and data centres Very low loss, no electromagnetic interference, hard to tap. Single-mode (long distance), multi-mode (short)
Wi-Fi radio Wi-Fi 5 (802.11ac), Wi-Fi 6/6E (802.11ax), Wi-Fi 7 (802.11be): multiple Gbit/s in theory 2.4 / 5 / 6 GHz bands
Cellular radio 4G LTE: tens–hundreds of Mbit/s · 5G: hundreds of Mbit/s to Gbit/s 3G has been switched off in NL; 2G is being phased out too
Satellite radio GEO: high delay (~600 ms RTT) · LEO (Starlink, OneWeb): 25–60 ms RTT LEO = low earth orbit, thousands of satellites

Still in use? - Coax Ethernet (10BASE2) and Token Ring: obsolete, not used any more. - DSL over telephone copper is still in use, but KPN is replacing it with fibre. Fibre and cable are the standard in NL. - Cat5e is still everywhere and fine for 1 Gbit/s. Install Cat6a or fibre in new buildings.

C.2 Network devices

Device Layer What it does
Hub (legacy) 1 Repeats every incoming bit on all ports. All devices share one collision domain. Obsolete: replaced by switches. You may still find them in very old installations
Switch 2 Learns which MAC address is on which port and forwards frames only to the right port. Full-duplex, no collisions. Managed switches support VLANs (see article 14)
Router 3 Connects different networks (subnets) and forwards packets based on IP addresses using a forwarding table
Layer-3 switch 2+3 A switch that can also route between VLANs, very fast in hardware. Common in campus/data-centre networks
Wireless Access Point (AP) 2 Connects Wi-Fi clients to the wired network (a "wireless switch port")
Modem / ONT / cable modem 1–2 Converts the provider's signal (DSL, coax, fibre) into Ethernet
Firewall 3–7 Filters traffic according to rules (see article 18)

The home "router" from your provider is actually a box that combines a modem/ONT + router + switch + Wi-Fi AP + firewall + DHCP server + DNS forwarder.


Try it yourself

  1. Use the Kurose & Ross interactive animations (transmission vs. propagation delay, queuing): https://gaia.cs.umass.edu/kurose_ross/interactive/
  2. Run ping and traceroute/tracert to www.hva.nl, www.google.com and www.abc.net.au (Australia). Explain the differences in RTT using propagation delay.
  3. Calculate: how long does it take to send a 10 MB file over a 50 Mbit/s link? (Hint: 1 byte = 8 bits.)
  4. Check the cable under your desk: what category is printed on it?

Check your understanding

  1. Which delay depends on packet length, and which on distance?
  2. What happens when the traffic intensity is larger than 1?
  3. What is the bottleneck link, and how does it determine throughput?
  4. Name the five layers of the TCP/IP stack and give one protocol for each.
  5. What is encapsulation?
  6. Why have hubs been replaced by switches?

References

Book

  • Kurose & Ross, 9th ed., chapter 1 ("Delay, loss and throughput", "Protocol layers and their service models"), chapter 6 (link layer), chapter 7 (wireless and mobile networks)

Videos

Articles and tools


Cyber Security

Why is this important for cyber security?

  • Availability is part of security. The CIA triad (Confidentiality, Integrity, Availability) means that delay, loss and throughput are security topics too. A DDoS attack works by pushing the traffic intensity far above 1: queues fill up, packets are dropped and legitimate users can't get through.
  • Every layer can be attacked:
Layer Example attack
Physical cutting/tapping cables, Wi-Fi jamming, plugging a rogue device into an open wall socket
Link MAC flooding, ARP spoofing, rogue access points ("evil twin")
Network IP spoofing, route hijacking (BGP), ICMP floods
Transport SYN floods, port scanning
Application phishing, SQL injection, DNS spoofing
  • Physical media differ in how easy they are to eavesdrop on. Radio (Wi-Fi, 5G) can be received by anyone nearby. Copper leaks electromagnetic signals. Fibre is hard (but not impossible) to tap.
  • Network devices are attractive targets. A compromised router or firewall sees all traffic. Routers and VPN appliances are often among the most actively exploited devices (see the CISA "Known Exploited Vulnerabilities" list).

What can you do to make it safe?

  • Defence in depth: put security measures on several layers, not just one (e.g. a firewall and encryption and strong authentication).
  • Physical security: lock server rooms and network cabinets, and disable unused wall sockets/switch ports.
  • Use WPA3 (or at least WPA2-AES) on Wi-Fi. Never use WEP or open networks for sensitive work.
  • Keep firmware up to date on routers, switches, APs and modems, and replace devices that no longer get updates (end-of-life).
  • Monitor performance: an unexpected rise in delay or traffic can be the first sign of an attack or an infected device.
  • Have DDoS protection for important online services (via your ISP or a CDN/scrubbing service).

Extra references