5.1 Internet & Web

Cambridge IGCSE Computer Science, syllabus 0478. Paper 1, theory.

The Internet and the World Wide Web

They are not two names for the same thing. The Internet is the global infrastructure. The Web is one service that uses it. This lesson follows topic 5.1 from that distinction through URLs, HTTP, browsers, page retrieval and cookies.

  • Infrastructure
  • Protocols
  • Page retrieval
  • Cookies

5.1.1

The Internet is not the Web

Cambridge tests this distinction directly. Marks are lost when the answer talks about Wi-Fi versus computers, instead of infrastructure versus content.

The Internet

  • A global network of interconnected computer networks.
  • Hardware: fibre-optic and copper cables, routers, switches, satellites and servers.
  • It runs on foundational protocols such as TCP/IP.
  • Analogy: the roads, tracks and bridges.

The World Wide Web

  • A collection of websites, web pages and multimedia.
  • Resources: HTML files, CSS, images and other media.
  • It is accessed over the Internet using HTTP and HTTPS.
  • Analogy: the traffic carrying people and cargo.

Sort the statements

Decide whether each one belongs to the Internet or to the World Wide Web.

Fibre-optic cables, routers, switches and satellites

HTML pages, stylesheets, images and video on websites

Communication using TCP/IP

Pages fetched with HTTP and HTTPS

Like the roads, tracks and bridges

Like the traffic carrying people and cargo

5.1.2

Three parts of a URL

A Uniform Resource Locator is a text address for one web resource. People use it so they do not have to remember a numerical IP address.

1. Protocol

https:// The rules the browser and the server follow. HTTPS tells you the transfer will be encrypted.

2. Domain name

www.cambridgeinternational.org The readable name of the host that stores the site.

3. File path

/programmes/igcse/index.html The folder and file requested on that server.

5.1.3

HTTP asks. HTTPS hides the reply.

Hypertext Transfer Protocol is a request-response conversation between the browser and a web server. It moves text, images, sound and video. HTTPS is that same conversation with SSL/TLS encryption.

HTTP

  • Rules for transmitting web resources across the Web.
  • The browser sends a request. The server sends a response.
  • Data travels as plaintext, so it can be read if someone intercepts it.

HTTPS

  • Protects the transfer against eavesdropping and tampering.
  • SSL/TLS scrambles the data. Intercepted packets are not readable.
  • Used for banking, checkout pages, login forms and cloud storage.

Watch one message travel

Type a fake checkout message. The left pane is what HTTP would expose. The right pane is a classroom picture of scrambling, not real TLS.

HTTP · plaintext


            

HTTPS · illustrated scramble


            

5.1.4

The browser renders the page

A web browser is client software. It requests files from a web server and turns HTML into the page on screen. It reads HTML, CSS and, on modern pages, JavaScript, then draws the layout, type, controls and media.

1. Address bar

The field where the user types a URL or a search.

2. Navigation

Back, forward, and refresh, reload or stop.

3. Bookmarks

Saved shortcuts to URLs the user wants again.

4. History

A dated list of URLs already visited.

5. Tabs

Several pages open in one window.

6. Cookies

The browser stores, updates and deletes cookies from servers.

Which function is it?

5.1.5

How a page is fetched

Walk the six steps in order. The first three resolve the name. The last three fetch the files and draw them.

  1. YouType a URL
  2. BrowserClient software
  3. DNSName to IP
  4. Web serverHolds the files

Put the steps in order

Click a step to add it. Click a chosen step to remove it.

Open the CompSimu simulation and step through a page fetch. You type a URL. The DNS returns an IP address. The browser then asks the web server for the files and renders the page.

5.1.5 continued

DNS is a phone directory, not the website

Routers use numerical IP addresses such as 198.51.100.42. People remember names such as cambridgeinternational.org. The Domain Name Server translates the name into the number.

What DNS does

It receives a domain name, searches its database, and returns the matching IP address so the browser can contact the right server.

What DNS does not do

It does not store the HTML, the images or the rest of the page. After the IP address comes back, the browser still has to request the files from the web server.

Resolve a name

5.1.6

Cookies remember what HTTP forgets

A cookie is a small text file the browser stores because a web server asked it to. HTTP itself is stateless: each request arrives with no memory. Cookies carry a little state, such as a login or a basket.

What cookies are used for

  • Keeping someone logged in as they move between pages.
  • Holding the items in a shopping cart.
  • Storing preferences such as language or a chosen theme.
  • Recording browsing patterns for analytics and adverts.

Two lifetimes

  • Session: kept in RAM, deleted when the browser closes. Used for a live cart or a login that lasts one visit.
  • Persistent: kept on secondary storage (HDD or SSD) until an expiry date or until the user deletes it. Used for “remember me” and saved preferences.

Close the browser and see what survives

Set a few cookies, then close the browser. Only the persistent cookies should remain.

RAM · session cookies

HDD / SSD · persistent cookies

Exam practice

Write first, then open the scheme

These are the three questions from the lesson. The keyword check is a study aid. You still award the marks from the scheme.

Question 1 2 marks

Explain why an e-commerce website uses HTTPS instead of HTTP when a customer is entering payment details.

Question 2 3 marks

Describe the role of a Domain Name Server (DNS) when a web page is retrieved.

Question 3 2 marks

State two differences between a session cookie and a persistent cookie.

Written marks you awarded 0 / 7
Quick check 0 / 8

Quick check

Eight short questions. The explanation appears as soon as you choose.

Section 5.1 review

Leave the lesson able to say these

Tick an idea only when you can say it without looking. The ticks stay in this browser.

0 / 8