← GCSE Computer Science · Eduqas · GCSE Computer Science revision
⭐ 0
Eduqas GCSE Computer Science · 3 Networking
Mini-Lesson

Networking

6 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 4How do two computers that have never met agree how to talk?
  5. Mission 5How does a video arrive in order if its pieces take different routes?
  6. Mission 6Routers only use numbers. How does a typed web address find its site?
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

Backups, archives and disaster recovery

  • Backups: every computer's data can be copied automatically, from one place, to a server or off-site store.
  • Archiving: old files that are rarely used can be moved to cheaper storage on the network but still found later.
  • Disaster recovery: if a building floods or a server fails, data and services can be restored from copies kept at another site.
Networks · why network and types of network

Security, reach and running costs

  • Security: staff can manage user accounts, passwords and access rights for everyone from one place.
  • Globalisation: people in different countries can share data and work on the same files.
  • Cost: switches, cables and servers must be bought, and they all use power.
  • Maintenance: a network needs skilled technicians to keep it running, update it and fix faults.
Quick check
?A company's only server is destroyed in a fire. Which feature lets it be running again the next day?
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.
  • The central device can also be a hub or a computer.
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
Networks · topologies

The bus topology

Bus and ringBusterminatorterminatorbackbonePC 1PC 2PC 3PC 4PC 5RingPC 1PC 2PC 3PC 4PC 5
  • In a bus topology, every device connects to one shared main cable, the backbone, with a terminator at each end.
  • Data sent by one device travels along the whole backbone; only the device it is addressed to keeps it.
  • It is cheap and needs little cable, but if the backbone breaks the whole network fails, and it slows down as devices are added because of data collisions.
Networks · topologies

The ring topology

Bus and ringBusterminatorterminatorbackbonePC 1PC 2PC 3PC 4PC 5RingPC 1PC 2PC 3PC 4PC 5
  • In a ring topology, each device connects to exactly two others, forming a closed loop.
  • Data travels round the ring in one direction, passing through each device until it reaches its destination.
  • There are no collisions, so it copes well with heavy traffic. But one broken link or device can stop the whole ring, and adding a device means breaking the loop.
Quick check
?Why does a bus network slow down as more devices are added?
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.
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.
  • A router stores the addresses of the computers on its 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

Devices that build a LAN

Devices that build a LANswitchWAProuterinternetcables: solid lines · radio waves: wireless
  • A NIC lets a device connect to a network, wired or wireless.
  • A switch connects the devices on a LAN. It reads where each packet is going and sends it only to that device.
  • A wireless access point (WAP) lets wireless devices join a wired network.
  • A hub copies every packet to all devices. A bridge joins two networks that use the same protocols, e.g. two LANs.
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

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.
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.
  • 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 7-layer OSI model

OSI model7 ApplicationHTTP, HTTPS, SMTP, FTP6 Presentation5 Session4 TransportTCP3 NetworkIP2 Data linkEthernet, WiFi (802.11)1 Physical
LayerPurposeExample
7 ApplicationLets network applications use the network, e.g. web pages, file accessHTTP, HTTPS, SMTP, FTP
6 PresentationTranslates data: character encoding, compression, encryptionASCII conversion
5 SessionOpens, manages and closes a communication session between two devicesSimplex, half or full duplex
4 TransportReliable delivery: splits data into segments and acknowledges themTCP
3 NetworkAddressing, routing and traffic control across networksIP
2 Data linkSends frames between two directly connected devices; error checkingEthernet, WiFi (802.11)
1 PhysicalSends raw bits as signals over a cable or radioCables, radio waves
Quick check
?Which OSI layer translates data by encrypting and compressing it?
Mission check

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

How does a video arrive in order if its pieces take different routes?

Make a guess: How does a video arrive in order if its pieces take different routes?

Networks · packets and packet switching

Splitting data into packets

PacketsData is split into packetspacket 1packet 2packet 3packet 4Inside one packetHeaderdestination addresssource addresspacket numberPayloadpayload: the data
  • Before data is sent across a network, it is broken into small pieces called packets.
  • Each packet is sent on its own and the receiving computer joins them back together.
  • Small packets share the network's links fairly: no single huge file blocks a link. If one packet is lost or damaged, only that packet needs to be sent again.
Networks · packets and packet switching

Inside a packet

PacketsData is split into packetspacket 1packet 2packet 3packet 4Inside one packetHeaderdestination addresssource addresspacket numberPayloadpayload: the data
  • The header holds the destination address, the source address (where it came from) and the packet number, used to put the data back in order.
  • The payload is the actual data being carried.
  • A checksum is included so the receiver can check the data has not been corrupted.
Quick check
?A web page is sent as 40 packets. Which part of each packet lets the receiving computer put the page back together in the right order?
Networks · packets and packet switching

Packet switching

Packet switchingSenderReceiver1234Arrive in order2143Reordered1234by packet number
  • In packet switching, each packet is sent across the network separately.
  • Routers read each packet's destination address and send it on towards its destination, one hop at a time.
  • Each packet may take a different route, depending on which links are free or working.
  • So packets can arrive out of order. Once the last packet arrives, the receiver uses the packet numbers to reorder them.
Your answer
?Four packets arrive in this order. Packet 3: "E GA" · Packet 1: "MEET" · Packet 4: "TE" · Packet 2: " AT TH". Type the original message.
Quick check
?A cable between two routers is cut while a file is being sent. What happens to the packets still to be sent?
Networks · packets and packet switching

Routing costs

Routing costs42158102ABCDE
  • Routers look for the lowest-cost route to the destination.
  • Each link between nodes is given a cost, based on things like its length and how fast the nodes on it are.
  • The cost of a route is the total of the costs of the links it uses.
  • The lowest-cost route is not always the one with the fewest hops.
Calculate
?Using the network in the diagram (links: A–B 4, A–C 2, B–C 1, B–D 5, C–D 8, C–E 10, D–E 2), what is the cost of the lowest-cost route from A to E?
Mission check

?How does a video arrive in order if its pieces take different routes?
Mission 6

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
  • A URL (uniform resource locator) is the text address of a web page.
  • Its parts: the scheme (https), subdomain (www), second level domain (example), top level domain (.org) and sub directory (/physics/). The page waves.html sits in that sub directory.
Your answer
?In the URL https://shop.example.com/sale/shoes.html, what is the second level domain?
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 System) 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

What a browser does

  • A web browser's main job is to render HTML and display web pages.
  • It also stores bookmarks, records history, allows multiple tabs, and provides navigation tools and an address bar.
Mission check

?Routers only use numbers. How does a typed web address find its site?
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).
  • Networks allow central backups, archiving and disaster recovery, but cost money to build and maintain.
  • 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.
  • A bus shares one backbone and a ring passes data round a loop: both are cheap, but one break can stop the whole network.
  • An IP address identifies a device on a network. Routers read each packet's destination IP address and forward it hop by hop.
  • Switches send data to one device and a WAP adds wireless devices; hubs copy data to every device and bridges join similar networks.
  • A protocol is a set of rules for transferring data. Both devices must follow the same one, and different jobs use different protocols.
  • The 7-layer OSI model runs from application (7) down to physical (1); each layer has its own purpose and protocols.
  • Standards let hardware and software from different makers work together.
  • Data is split into packets; each has a header (destination address, source address, packet number) and a payload.
  • In packet switching, routers send each packet separately, so packets may take different routes and arrive out of order; the receiver reorders them using the packet numbers.
  • Routers choose the lowest-cost route: add up the link costs along each route.
  • 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.
🏆

Mini-lesson complete!

⭐⭐⭐

You've worked through Networking for Eduqas GCSE Computer Science. 🎉

  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 4How do two computers that have never met agree how to talk?
  5. Mission 5How does a video arrive in order if its pieces take different routes?
  6. Mission 6Routers only use numbers. How does a typed web address find its site?

Your stars: 0 / 0

Next: more GCSE Computer Science · Eduqas lessons and games on the GCSE Computer Science · Eduqas page.

📣 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 · Eduqas

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

Sources (7)

The specification points and sources behind this lesson.

  1. 1 Eduqas GCSE CS spec (2020), 3 Networks; Guidance for Teaching, Networks row and "Topics that have been removed"
  2. 2 Eduqas GCSE CS spec (2020), 3 Networks; Guidance for Teaching, topologies row and "Topics that have been removed"
  3. 3 Eduqas GCSE CS spec (2020), 3 Networks; Guidance for Teaching, hardware descriptions
  4. 4 Eduqas GCSE CS spec (2020), 3 Networks; Guidance for Teaching, OSI model table and protocol descriptions
  5. 5 Eduqas GCSE CS spec (2020), 3 Networks; Guidance for Teaching, TCP/IP packet contents, packet switching, routing costs
  6. 6 Eduqas GCSE CS spec (2020), Component 1 section 3 "Internet"; Guidance for Teaching, Internet row (DNS resolves web addresses; URL five parts) and HTTPS/SSL note
  7. 7 RFC 5737 (IPv4 documentation addresses), https://www.rfc-editor.org/rfc/rfc5737 ; RFC 2606 (reserved example domains), https://www.rfc-editor.org/rfc/rfc2606