University of Auckland · FACULTY OF COMPUTER SCIENCE

COMPSCI110 · Introduction to Computer Systems

- one subject, every graph, every model, every mark
Computer Science14 Chapters9-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 6 of 11 · COMPSCI 110

Computer Networks

Module 6 of University of Auckland COMPSCI110 covers how computers communicate over the Internet: protocols, the choice between packet and circuit switching, the tiered ISP hierarchy, the four sources of packet delay (with the examinable formula d_trans = L/R), throughput and bottleneck links, and the five-layer Internet model with encapsulation. It carries 5 marks on the final exam — one of the heavier modules — and the delay calculations are reliable marks if you keep the units straight.

In this chapter

What this chapter covers

  • 01Protocols (rules for message format, order and actions) and guided vs unguided media
  • 02Packet switching (dynamic sharing, no reservation, buffers can drop packets) vs circuit switching (a fixed, guaranteed reserved rate)
  • 03Forwarding (move a packet input-port → output-port via a local table) vs routing (compute the network-wide path)
  • 04The ISP hierarchy: access ISPs can't all interconnect directly, so a tiered structure with tier-1 transit and IXPs; large content providers run private networks
  • 05The four sources of nodal delay: d_proc + d_queue + d_trans + d_prop, with d_trans = L/R and d_prop = d/s (s ≈ 2×10⁸ m/s)
  • 06Throughput and the bottleneck link: end-to-end rate ≈ the minimum link rate on the path
  • 07The five-layer Internet stack (application, transport, network, link, physical) and encapsulation — each layer adds its own header
Worked example · free

Transmission delay, propagation delay and the bottleneck

Q [4 marks]. A packet of length L = 3 Mbit (3×10⁶ bits) is sent over a link of rate R = 1.5 Mbps. (a) Find the transmission delay. (b) If the link is 3000 km long and signals travel at s = 2×10⁸ m/s, find the propagation delay. (c) If the path then continues over a 1 Mbps link, what is the end-to-end throughput?
  • +1Transmission delay is d_trans = L / R = 3×10⁶ bits ÷ 1.5×10⁶ bits/s = 2 s. This is the time to push all the bits onto the link, so it depends on packet size and link rate.
  • +1Propagation delay is d_prop = d / s = 3×10⁶ m ÷ (2×10⁸ m/s) = 0.015 s = 15 ms (3000 km = 3×10⁶ m). It depends on distance and signal speed — NOT on packet size.
  • +1These are two of the four delay sources; the other two are processing (checking errors, choosing the output link — sub-millisecond) and queuing (congestion-dependent). Total nodal delay = d_proc + d_queue + d_trans + d_prop.
  • +1End-to-end throughput is set by the slowest (bottleneck) link: min(1.5 Mbps, 1 Mbps) = 1 Mbps. Adding faster links wouldn't help — the 1 Mbps hop caps the rate.
(a) d_trans = 2 s. (b) d_prop = 15 ms. (c) end-to-end throughput ≈ 1 Mbps, set by the bottleneck link.
Sia tip — Keep d_trans and d_prop distinct: transmission uses the RATE and SIZE (L/R), propagation uses the DISTANCE and SPEED (d/s). A bigger packet increases d_trans but leaves d_prop unchanged; a longer link does the reverse. And throughput is always the minimum link rate, never the sum. Ask Sia to vary L, R and d and re-solve so the two formulas stop blurring together.
Glossary

Key terms

Protocol
A set of rules governing the format, order and actions of messages exchanged between communicating devices — what a message looks like, when it may be sent, and how each side responds. The Internet is a stack of protocols, one set per layer.
Packet vs circuit switching
Packet switching splits data into packets that share link capacity dynamically with no reservation — efficient for bursty traffic, but a packet meeting a busy link waits in the output buffer and may be dropped if no buffer is free. Circuit switching reserves a fixed, guaranteed rate for the whole call, wasting capacity when idle but never contending.
Transmission delay (d_trans = L/R)
The time to push all of a packet's bits onto the link: packet length L (bits) divided by link rate R (bits/s). It scales with packet size and inversely with link speed, and is independent of how far the link stretches.
Propagation delay (d_prop = d/s)
The time for a bit to travel the length of the link: distance d divided by signal speed s (about 2×10⁸ m/s in typical media). It depends on distance, not on packet size or link rate — the opposite dependencies to transmission delay.
Bottleneck link & throughput
Throughput is the actual bits-per-second delivered between sender and receiver. On a path of several links it is limited by the slowest one — the bottleneck link — so end-to-end throughput ≈ min(link rates). Upgrading any other link changes nothing until the bottleneck is fixed.
Five-layer Internet model
Top to bottom: application (HTTP/SMTP — messages), transport (TCP/UDP — segments), network (IP/routing — datagrams), link (Ethernet/Wi-Fi — frames) and physical (bits on the wire). End systems run all five; routers use network/link/physical; each layer adds its own header (encapsulation) on the way down.
FAQ

Computer Networks FAQ

What are the four sources of packet delay?

Processing delay (the router checks the packet and picks an output link — usually sub-millisecond), queuing delay (waiting behind other packets, which grows with congestion), transmission delay d_trans = L/R (pushing the bits onto the link) and propagation delay d_prop = d/s (the bits travelling the link's length). Their sum is the nodal delay at one hop; end-to-end delay adds up the nodal delays along the path.

What's the difference between packet and circuit switching?

Circuit switching reserves a dedicated, fixed-rate path for the entire session — guaranteed bandwidth, but idle capacity is wasted. Packet switching sends independent packets that share links on demand — far more efficient for bursty computer traffic, at the cost of possible queuing and, if buffers fill, packet loss. The Internet is packet-switched; the classic reason is that reservation doesn't suit bursty data.

Can AI help me with computer networks in COMPSCI110?

Yes, as a study aid. Sia can work a delay calculation with you, check your unit conversions (bits vs Mbit, metres vs km), explain why the bottleneck link caps throughput, and quiz you on the five layers and their data units. Use it to understand the method and rehearse — it explains and checks your reasoning but does not do graded work or the exam for you, and the University of Auckland's academic-integrity rules apply to controlled assessments.

d_trans vs d_prop — how do I tell which is which?

Look at what the numbers describe. Transmission delay is about the packet and the pipe's width: L/R, bits divided by bits-per-second. Propagation delay is about the pipe's length: d/s, distance divided by signal speed. A quick tell: doubling the packet size doubles d_trans but leaves d_prop alone; doubling the link length doubles d_prop but leaves d_trans alone. Mixing them up is the module's most common mark-loser.

What are the five layers of the Internet model?

Application (HTTP, SMTP — the unit of data is a message), transport (TCP/UDP — a segment), network (IP and routing — a datagram), link (Ethernet, Wi-Fi — a frame) and physical (raw bits on the medium). End systems implement all five; a router works up to the network layer. As data goes down the stack each layer wraps it in its own header — that's encapsulation.

Study strategy

Exam move

Networks is 5 marks and splits into calculation and recall — prepare both. For calculation, drill the two delay formulas until you never confuse them: d_trans = L/R (size over rate) and d_prop = d/s (distance over speed), watching units carefully (convert Mbit ↔ bits and km ↔ m before dividing). Practise a full nodal-delay sum and a bottleneck-throughput question (throughput = the minimum link rate, never the total). For recall, make crisp flashcards for the facts that appear as MCQs: packet vs circuit switching (dynamic sharing vs guaranteed reserved rate), forwarding (local table) vs routing (network-wide path), why access ISPs can't all interconnect directly, and the five layers with their data units (message/segment/datagram/frame/bits) in order. Finish by being able to explain encapsulation in one sentence — each layer adds a header on the way down — because that ties the stack together.

Working through Computer Networks in COMPSCI 110? Sia is AskSia’s AI Computer Science tutor — ask any COMPSCI 110 Computer Networks question and get a clear, step-by-step explanation grounded in how COMPSCI 110 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 12 of your University of Auckland subjects - and 1,000+ Bibles across every Australian university.
Sia - your COMPSCI110 tutor, unlimited, worked the way the exam marks it
The full 9-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$25/ month
30-day money-back · cancel in one tap · how it works
Unlock the full COMPSCI110 Bible + 12 University of Auckland subjects解锁完整 COMPSCI110 Bible + University of Auckland 12 门科目
$25/mo