← GCSE Computer Science · OCR · GCSE Computer Science revision
⭐ 0
OCR GCSE Computer Science (J277) · 1.3 Networks, connections and protocols
Mini-Lesson

Networks, connections and protocols

5 missions. Guess, learn, then check. Your place is saved.

  1. Mission 1If networks spread viruses, why does every school connect its PCs?
  2. Mission 2One box fails and a whole office goes offline. How?
  3. Mission 3How does your data find one computer among billions online?
  4. Mission 4Routers only use numbers. How does a typed web address find its site?
  5. Mission 5How do two computers that have never met agree how to talk?
Mission 1

If networks spread viruses, why does every school connect its PCs?

Make a guess: If networks spread viruses, why does every school connect its PCs?

Networks · why network and types of network

Why connect computers?

Why network?Stand-aloneeach PC has its own printer and internet lineNetworkedswitchshared printerfile server + backupsone internetconnection
  • A computer network is two or more computers (or other devices) connected so they can share data and resources.
  • Joining them brings gains, and it brings costs and risks:
GainsCosts and risks
Share files and data from any computerHardware (cables, switches, servers) costs money
Share printers and one internet connectionNeeds skilled staff to set up and maintain
Communicate: email, messaging, shared documentsMalware can spread from one computer to others
Back up every computer from one placeHackers can attack from anywhere on the network
Install software and updates centrallyIf a central device or server fails, many users are hit
Quick check
?A small office has five stand-alone computers. Which change would a network bring?
Networks · why network and types of network

Types of network

PAN, LAN and WANLAN, onesite, oneownerLANcity 1LANcity 2LANcity 3WANWAN, widearea, linksLANsThe internet is the biggest WAN.
  • A LAN (local area network) covers a small area, such as one school, and is usually owned and run by one organisation.
  • A WAN (wide area network) covers a wide geographical area and links LANs. It is often under collective or shared ownership.
  • The internet is the biggest WAN.
Networks · why network and types of network

Client-server and peer-to-peer

Client-server and peer-to-peerClient-serverPeer-to-peerserverrequestresponseevery computer is equal
  • On a client-server network, servers provide services and clients request and use them.
  • On a peer-to-peer network there is no server: every computer is equal and shares its own files.
Client-serverPeer-to-peer
Files and backupsStored and backed up centrallySpread across the computers
SecurityManaged in one placeSet on each computer
CostServers and staff are expensiveCheap and simple to set up
Weak spotIf the server fails, its service stopsA computer's files vanish when it is off
Networks · why network and types of network

Wired or wireless?

  • Wired connections use cables; wireless connections use radio waves.
  • The main wired standard is Ethernet; common wireless ones are Wi-Fi and Bluetooth.
  • Copper cable is cheap for short runs. Fibre-optic cable carries more data over long distances with no electrical interference, but costs more.
WiredWireless
Speed and bandwidthUsually higherUsually lower, shared by nearby devices
RangeLonger, especially with fibreLimited; walls and interference weaken it
Latency (delay)LowerHigher
Mobility and set-upDevices fixed; cabling costsDevices can move; cheap to add
SecurityMust plug in to tap itSignals can be picked up nearby
Quick check
?A college has 30 desktop PCs in one room, used to edit large video files stored on a server in the same building. Which connection suits them best?
Networks · why network and types of network

Measuring network performance

  • Bandwidth is the most data a connection can carry each second. Speeds are measured in bits per second (bps), not bytes.
  • The more devices share a network, the less bandwidth each gets, so it slows down.
Mission check

?If networks spread viruses, why does every school connect its PCs?
Mission 2

One box fails and a whole office goes offline. How?

Make a guess: One box fails and a whole office goes offline. How?

Networks · topologies

The star topology

Star topologyPC APC BPC CPC DPC EPC Fswitch
  • A topology is the layout of how the devices on a network are connected.
  • In a star topology, every device has its own cable to one central device, usually a switch. All data passes through the centre, which sends it on to the right device.
AdvantagesDisadvantages
If one cable fails, only that device is cut offIf the central switch fails, the whole network fails
Fast and reliable: few data collisionsLots of cable, so it can be expensive
Easy to add devices and to find faultsThe switch can become a bottleneck when traffic is heavy
Quick check
?On a star network of eight PCs, the cable to PC 3 is cut. What happens?
Networks · topologies

The mesh topology

Mesh topologiesFull mesh: 4 devices, 6 links123456ABCDPartial mesh: data takes another pathABCDE
  • In a mesh topology, devices connect directly to several others, so there are many paths between them.
  • In a full mesh every device connects to every other one. With 4 devices that is 6 links.
  • If a link fails, data is sent along another path: the network self-heals.
AdvantagesDisadvantages
Very reliable: no single point of failureA lot of cable and set-up: expensive
Data can take the fastest free pathComplex to set up and manage
Handles heavy traffic wellMany links are unused much of the time
Calculate
?A small office links 5 computers in a full mesh: every computer has its own cable to every other one. How many cables are needed?
cables
Quick check
?A hospital's patient-monitoring network must keep working even if any one cable is cut. Which topology fits best?
Mission check

?One box fails and a whole office goes offline. How?
Mission 3

How does your data find one computer among billions online?

Make a guess: How does your data find one computer among billions online?

Networks · hardware and addresses

IP addresses

AddressesNICIP address 192.168.0.12
  • An IP address identifies a device on a network, so data can be sent to it. Every packet carries a destination IP address.
  • An IPv4 address is 32 bits, written as four denary numbers from 0 to 255 separated by dots, e.g. 192.168.0.12. Each number is one byte (8 bits).
Networks · hardware and addresses

Routers

Routers pass packets onlaptopphonehome routerserver LANPacket header: to: 203.0.113.5. Each router reads it andpasses the packet one hop nearer.
  • A router connects networks together, for example a home or school LAN to the internet.
  • The internet is a vast number of networks joined by routers.
  • A router reads each packet's destination IP address and sends it to the next router on a route towards it. Hop by hop, the packet reaches the right network.
Quick check
?A packet arrives at a router in the middle of the internet. What does the router use to decide where to send it next?
Networks · hardware and addresses

IPv6

  • IPv4 gives about 4.3 billion addresses (2³²): too few for every phone, laptop and smart device.
  • IPv6 was created to give far more. It is 128 bits, written as eight groups of four hexadecimal digits separated by colons, e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
IPv4IPv6
Size32 bits128 bits
Written as4 denary numbers, 0–255, with dots8 groups of 4 hex digits, with colons
Number of addressesAbout 4.3 billionAbout 3.4 × 10³⁸
Networks · hardware and addresses

MAC addresses

AddressesNICIP address 192.168.0.12
  • A device needs a NIC (network interface card) to join a network.
  • Each NIC is given a MAC address at manufacture: 48 bits, written as 12 hex digits in six pairs, e.g. 00:1A:2B:3C:4D:5E.
  • MAC addresses identify devices within a LAN. A MAC address stays the same; an IP address can change.
Quick check
?A technician sees the address 3C:52:82:1F:A0:6B on a laptop. What kind of address is it?
Networks · hardware and addresses

Devices that build a LAN

Devices that build a LANswitchWAProuterinternetcables: solid lines · radio waves: wireless
  • A switch connects the devices on a LAN. It reads where each packet is going and sends it only to that device.
  • A switch uses MAC addresses to find the right device.
  • A wireless access point (WAP) lets wireless devices join a wired network.
  • Transmission media carry the signals: copper or fibre-optic cable, or radio waves.
Quick check
?A café wants customers' laptops to join its wired network without plugging in any cables. What should it add?
Mission check

?How does your data find one computer among billions online?
Mission 4

Routers only use numbers. How does a typed web address find its site?

Make a guess: Routers only use numbers. How does a typed web address find its site?

Networks · the internet and the web

Reading a web address

Parts of a URLhttps://https://= protocolwww.example.orgwww.example.org= domain name/physics/waves.html/physics/waves.html= web page / file name
  • The internet is a worldwide collection of computer networks: the infrastructure.
  • A URL (uniform resource locator) is the text address of a web page.
  • Its parts: the protocol (https), the domain name (www.example.org) and the web page / file name (/physics/waves.html).
Your answer
?In the URL https://shop.example.com/sale/shoes.html, what is the domain name?
Networks · the internet and the web

From name to number

DNS lookupBrowserDNS server 1DNS server 2Web server203.0.113.251www.example.org?2don’t know: askon3203.0.113.254next
  • Every device on the internet is found by its IP address, e.g. 203.0.113.25. Names are easier to remember.
  • The DNS (Domain Name Service, made of many Domain Name Servers) matches domain names to IP addresses.
  • The browser sends the domain name to a DNS server, which returns the IP address.
  • If that server doesn't hold the name, it asks another DNS server. If none does, an error is returned.
Networks · the internet and the web

Fetching the page

HTTP and HTTPSBrowser(client)WebserverHTTP request:GET /physics/waves.htmlresponse: HTML, imagesHTTPS: encryptedBrowser(client)Webserver#9f$Lq2…x8!Rw0k…
  • A web server stores web pages and sends them to clients, such as your browser, that request them.
  • The browser sends an HTTP request to the server's IP address. The server replies with the page's HTML, which the browser renders into the page you see.
  • HTTPS is the secure version: data is encrypted, so intercepted data can't be read.
Quick check
?You type https://www.example.org into a browser for the first time. What must the browser get from a DNS server before it can request the page?
Networks · the internet and the web

Hosting and the cloud

  • Hosting: a website's files are stored on a web server, often a hosting company's, that stays online for clients.
  • The cloud: storage, software or processing provided remotely on servers reached over the internet.
  • Advantages: access anywhere, no hardware to buy or maintain, easy to scale, provider does backups.
  • Disadvantages: needs an internet connection, a third party holds your data, ongoing fees.
Mission check

?Routers only use numbers. How does a typed web address find its site?
Mission 5

How do two computers that have never met agree how to talk?

Make a guess: How do two computers that have never met agree how to talk?

Networks · protocols and layers

Protocols

  • A protocol is a set of rules for transferring data between devices.
  • It sets things like how data is formatted, how devices are addressed and how errors are spotted.
  • Both devices must follow the same protocol, whoever made them. Different jobs use different protocols.
  • A standard is an agreed set of rules for an area of computing. Standards let hardware and software from different makers, and different countries, work together.
Networks · protocols and layers

Protocols for the web and email

  • HTTP: a browser requests web pages from a web server, which sends them.
  • HTTPS: HTTP with encryption, so intercepted data can't be read.
  • FTP: transfers files between computers.
  • SMTP: sends email from an app to a mail server, and between mail servers.
  • IMAP: reads email kept on the server, so every device shows the same inbox.
  • POP: downloads email to one device, usually deleting it from the server.
Networks · protocols and layers

Protocols that move the data

  • TCP splits data into numbered packets, checks they all arrive, has missing ones resent and puts them back in order.
  • IP gives each packet its source and destination IP addresses and routes it across networks.
  • TCP and IP work together, so they are often named as one: TCP/IP.
  • Ethernet is the set of rules for wired LANs; Wi-Fi (802.11) for wireless LANs.
Quick check
?Ama clicks Send in her email app. Which protocol carries the message to her mail server?
Networks · protocols and layers

Why use layers?

LayersSenderReceiver……cable or radio linkEach step down adds a header; each step up removesone.
  • Sending data is split into layers. Each layer does one part of the job and each protocol belongs to one layer.
  • Sent data passes down the layers, each adding its own information. Received data passes back up.
  • Benefits: each layer is a smaller problem; one layer can change without changing the others (swap a cable for Wi-Fi and the browser still works); makers can build for one layer.
Networks · protocols and layers

The 4-layer TCP/IP model

TCP/IP modelApplicationHTTP, HTTPS, FTP, SMTP, POP3, IMAPTransportTCPInternetIPLinkEthernet, Wi-Fi
  • For OCR you don't need to learn the layer names; this model is a worked example of layering.
LayerWhat it doesProtocols and parts
ApplicationWhere network applications, such as web browsers and email programs, workHTTP, HTTPS, FTP, SMTP, POP, IMAP
TransportSets up communication between the two hosts, which agree settings such as packet size; splits data into packetsTCP
InternetAddresses and packages data; routes the packets across the networkIP
LinkThe network hardware, such as the NIC, and the operating system's device driversEthernet, Wi-Fi
Quick check
?Engineers invent a faster type of network cable. Why can web browsers and email apps use it without being rewritten?
Mission check

?How do two computers that have never met agree how to talk?
Recap

Big ideas

  • A network connects devices so they can share data and resources. It brings gains (sharing, central backup and management) and costs (hardware, maintenance, security risks).
  • A LAN covers a small area and is owned by one organisation; a WAN covers a wide area and links LANs. The internet is the biggest WAN.
  • Client-server networks centralise files and security on servers; peer-to-peer networks share them between equal computers.
  • A star links every device to a central switch: a cut cable affects one device, but if the switch fails the whole network fails.
  • A mesh gives devices many paths, so it self-heals, but it needs a lot of cable and is complex to set up.
  • An IP address identifies a device on a network. Routers read each packet's destination IP address and forward it hop by hop.
  • IPv4 is 32 bits (four numbers, 0–255); IPv6 is 128 bits in hex, giving far more addresses.
  • A MAC address is a 48-bit hex address fixed in a NIC when it is made, used to find devices within a LAN.
  • A URL holds a domain name; a DNS server converts it into the web server's IP address.
  • The browser requests the page with HTTP or HTTPS (encrypted) and renders the HTML that comes back.
  • A protocol is a set of rules for transferring data. Both devices must follow the same one, and different jobs use different protocols.
  • Layers split the job so each part can be changed or built separately.
  • Standards let hardware and software from different makers work together.
🏆

Mini-lesson complete!

⭐⭐⭐

You've worked through Networks, connections and protocols for OCR GCSE Computer Science (J277). 🎉

  1. Mission 1If networks spread viruses, why does every school connect its PCs?
  2. Mission 2One box fails and a whole office goes offline. How?
  3. Mission 3How does your data find one computer among billions online?
  4. Mission 4Routers only use numbers. How does a typed web address find its site?
  5. Mission 5How do two computers that have never met agree how to talk?

Your stars: 0 / 0

Next: test yourself in the Verify stage.

📣 Smashed it? Share your score

Challenge a mate to beat your stars, or show a parent how you got on.

→ Back to GCSE Computer Science · OCR

Specification points and sources for this lesson are listed at the bottom of the page.

Sources (6)

The specification points and sources behind this lesson.

  1. 1 OCR J277 spec v3.1, 1.3.1 Networks and topologies; 1.3.2 Wired and wireless networks
  2. 2 OCR J277 spec v3.1, 1.3.1 Networks and topologies
  3. 3 OCR J277 spec v3.1, 1.3.1 (LAN hardware), 1.3.2 (IP and MAC addressing, not-required list)
  4. 4 OCR J277 spec v3.1, 1.3.1 (and 1.3.2 protocols)
  5. 5 OCR J277 spec v3.1, 1.3.2 Wired and wireless networks, protocols and layers
  6. 6 RFC 5737 (IPv4 documentation addresses), https://www.rfc-editor.org/rfc/rfc5737 ; RFC 2606 (reserved example domains), https://www.rfc-editor.org/rfc/rfc2606