AS Level · Topic 2.1
A-Level Computer Science 9618 / Topic 2 / AS

Roads and traffic.

People use the words internet and web as if they meant the same thing. They do not: one is the hardware, the other is a service that runs on it. This lesson separates them, looks at the hardware that carries the internet to your home, and explains how video and music are streamed.

The key idea

The internet is the global network of interconnected networks: the physical infrastructure of cables, routers and links. The World Wide Web is a collection of web pages and resources, linked by hyperlinks and reached using HTTP(S) and a browser; it is just one service that runs over the internet. The internet is supported by modems, the PSTN, dedicated lines and the cell phone network. Bit streaming sends audio or video as a continuous stream of bits that is played as it arrives, from a buffer, either real-time (live) or on-demand (pre-recorded); the connection's bit rate must be at least the stream's bit rate.

bit streaming with a buffer mediaserver bit stream buffer (filling) playback data arrives at the bit rate of the connection; it is played from the buffer if the buffer empties because the connection is too slow, playback pauses
Fig. 1: a streamed file is played from a buffer while the rest of it is still arriving
Section 01

Internet or web?

In the lab, send a message across a network of routers. That network of routers and links is the internet; a web page is just one kind of data it carries.

The internetThe World Wide Web (WWW)
a global network of interconnected networksa collection of linked web pages, documents and resources
hardware and infrastructure: cables, routers, servers, satellitescontent and a service: web pages written in HTML, identified by URLs
uses the TCP/IP protocols to move packetsuses HTTP and HTTPS, accessed with a web browser
carries many services: email, file transfer, VoIP, streaming, online games and the webis one of the services that runs over the internet
Examiner trap

"The internet is the web" and "you use a browser to get on the internet" both lose marks. Email, for example, uses the internet but not the web.

Section 02

Internet hardware.

The syllabus names four things that connect homes, businesses and mobile users to the internet.

HardwareWhat it is and does
Modem (modulator-demodulator)converts the computer's digital signals into analogue signals for transmission over a telephone line, and converts received analogue signals back into digital
PSTN (public switched telephone network)the worldwide network of telephone lines and exchanges originally built for voice calls; it also carries internet data, from slow dial-up to broadband over the same copper lines into homes
Dedicated (leased) linea permanent, private connection between two sites, rented from a telecoms company; not shared, so it has a guaranteed bit rate and is more secure, but it is expensive
Cell phone networkan area is divided into cells, each with a base station (mast); mobile devices connect by radio to the nearest mast, and the network hands the connection on as the user moves; 4G and 5G give mobile internet access
Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

Which statement is correct?

Quick check+10 XP

In the lab, why can packets of one message take different routes?

Quick check+10 XP

What does a modem do?

Quick check+10 XP

Which is an example of real-time bit streaming?

Section 03

Bit streaming.

Streaming lets you start watching before the whole file has arrived. Whether it plays smoothly depends on the bit rate.

Worked example Data used by a stream
A film is streamed at 5 Mbps for 1 hour. How much data is transferred, in gigabytes? (1 Mbps = 1 000 000 bits per second; 1 GB = 1 000 000 000 bytes.)
  1. Bits per second: 5 000 000.
  2. Seconds in an hour: 60 × 60 = 3600.
  3. Total bits: 5 000 000 × 3600 = 18 000 000 000 bits.
  4. Bytes: 18 000 000 000 ÷ 8 = 2 250 000 000 bytes = 2.25 GB.
Answer: 2.25 GB
Worked example Will it play smoothly?
A family's broadband has a bit rate of 20 Mbps. Three people each start streaming a video that needs 8 Mbps. What happens?
  1. Total bit rate needed: 3 × 8 = 24 Mbps.
  2. 24 Mbps is more than the 20 Mbps available.
  3. Data arrives more slowly than it is played, so the buffers empty.
Answer: The videos pause to buffer (or the service lowers the quality)
Your turn
A song is streamed at 320 kbps (320 000 bits per second) and lasts 4 minutes. How many megabytes (1 MB = 1 000 000 bytes) are transferred?
Examiner trap

Watch the units: bit rates are in bits per second (lower-case b), file sizes usually in bytes (upper-case B). Divide by 8 to convert bits to bytes.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to AS Paper 1 and Paper 2 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

Which is a feature of a dedicated line?

Exam style+20 XP

A video is streamed at 4 Mbps for 10 minutes. How much data is transferred? (1 MB = 1 000 000 bytes)

Exam style+20 XP

Why does on-demand streaming usually buffer less than real-time streaming?

Exam style+20 XP

What happens when the bit rate of a connection is lower than the bit rate of a stream?

Skill unlocked

The internet and the web, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
The internet versus the WWW, internet hardware (modem, PSTN, dedicated lines, cell phone network), bit streaming and bit rate calculations.