Skip to content

9618 · Unit 2 · Paper 1: Theory fundamentals

Communication.

9618 · Unit 2 · Communication
Revisionbyexamplicity

Networks: LANs and WANs

§2.1 · Networks · purpose of networking, LAN and WAN

One printer, one set of files and one internet connection can serve a whole office once its computers are linked. A network connects two or more devices so that they can communicate and share data and resources.

LAN at the head office (city A)LAN at a branch (city B)SwitchRouterRouterSwitchtelecoms provider’slines, leasedWAN linkjoins the two sitesLAN: one site · infrastructure owned by the companyLAN: one site · infrastructure owned by the companyWAN: sites far apart, joined by transmission media the company leases, not ownsLAN · head office (city A)Company-owned local infrastructureSwitchRouterLAN · branch (city B)Company-owned local infrastructureSwitchRouterWide area network (WAN)Provider’sleased linesTransmission media join the two cities.

Two LANs, one in each city, each wired and owned by the company. The dashed link between the routers is the WAN: lines leased from a telecoms provider.

Why connect devices in a network?

Six benefits. Be able to give two and say what each lets the users do.

  • Share files: one up-to-date copy for everyone
  • Share hardware: one printer for many computers
  • Share software: install it once on a server
  • Communicate: email, messages, video calls
  • Manage centrally: security, updates, backups
  • Log on anywhere: reach your files from any PC

LAN or WAN?

Size is only one difference: a LAN and a WAN are also owned, wired and secured differently. Be able to compare the two on one feature at a time: area, infrastructure, media, speed, security.

FeatureLAN (local area network)WAN (wide area network)
Geographical areasmall: one room, building or sitelarge: towns, cities or countries apart
Infrastructurenormally privately owned, dedicateduses external or leased links; may use shared hardware
Transmission mediacopper or fibre-optic cables and WiFileased lines, telephone network, satellite
Typical transfer ratehigherlower; actual speed depends on the links
Securityeasier: one organisation controls it allharder: data crosses other owners’ lines
Why a LAN suits a parcel depot on one site: every scanner, PC and printer sits within one small geographical area, and the depot lays and owns its cables, so it leases no external infrastructure.
Your turn

1 A college links the computers in its one building with cables it laid itself. LAN or WAN?

2 A bank links its branches in three cities over lines rented from a telecoms company. LAN or WAN? Give the two features that decide it.

3 Give two benefits of connecting the college’s computers in a network.

  1. 1
    a LAN: one site, and the college owns the cables
  2. 2
    a WAN: the branches are far apart (a large geographical area), and the lines are leased, not owned
  3. 3
    any two: share files, share a printer, install software once, communicate, manage security and backups centrally, log on from any PC
Tick what you can do now
Exam focusCompare one feature for both: a LAN spans a small area, whereas a WAN spans a large one. Infrastructure also differs: privately owned for a LAN, external or leased for a WAN. A LAN can be wired or wireless.
Practise with s25/12 Q6(a); w24/13 Q9(a); w25/12 Q5(a); s23/12 Q1(a) (older paper: network benefits); w21/11 Q8(a) (older paper: LAN justification)
1 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Client-server and peer-to-peer

§2.1 · Networks · network models

On any network, some computer has to hold the files and answer the requests. A network model sets the role of each computer. In client-server the roles are fixed: one serves, the others ask. In peer-to-peer every computer has the same status.

Client-serverPeer-to-peerServerClientClientClient1request2processes it3responseThe server provides the service; each client requests it.Peer APeer BPeer CPeer DA requests a fileB supplies itB requestsa file from DB is a server for A and, at the sametime, a client of D. All peers are equal.
Client-server: fixed rolesServer2 processes the requestClientClientClient1 request3 responsePeer-to-peer: equal statusA requests a fileB supplies itB requestsD suppliesABCDB serves A while using D as a client.

Follow the numbers in client-server: request, processing, response. In peer-to-peer, find B: it supplies A and asks D at the same time.

Roles of the computers

Learn the server and the client first; a peer is both of them at once.

Server

  • Holds the shared files, data and applications.
  • Answers each client: does the processing a request needs and returns the result.
  • Manages security and backups centrally.

Client

  • Asks the server for a service (a request).
  • Shows the user whatever the server sends back.
  • Uses services but does not provide them.

Peer

  • Every peer has equal status: none is in charge.
  • Each peer both requests files and supplies them: a client and a server.
  • Each peer secures its own files and resources.

Describe the roles in a scenario

For each service, say what the client sends and what the server does before it replies.

ServiceClient → requestServer → response
Library renewalsmember’s phone app sends the loan to renewholds loan records; checks and updates the loan, then returns the new due date
Route-planning websitebrowser sends the start and end points; draws the returned routeholds map data and route software; calculates and returns the route
Your turn

1 In the peer-to-peer figure, B sends a file to A while it asks D for another. What is B’s role for A, and for D?

2 A weather app on a phone shows tomorrow’s forecast. What does the client send, and what does the server do?

3 Four laptops share files with no server, and none is in charge. Which model is this?

  1. 1
    a server for A (it supplies the file) and a client of D (it requests one)
  2. 2
    the phone sends a request for the place and day; the server holds the forecast data, finds the forecast and returns it for the app to show
  3. 3
    peer-to-peer: every peer has equal status
Tick what you can do now
Exam focusName each device in the scenario and give its role: the library’s server stores the records and answers requests; the member’s phone (client) makes the request and shows the reply. For peer-to-peer, say peers have equal status and each both requests and supplies files.
Practise with s24/11 Q5(a); s25/13 Q3(c); s21/11 Q4(a) (older paper: peer roles)
2 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Choosing a network model

§2.1 · Networks · network models

Neither model wins everywhere: a school and a group of gamers need different things. To choose, weigh security, backup, consistency, cost and availability against what the situation needs.

Benefits and drawbacks

Compare the two models one feature at a time. Each drawback needs its consequence.

Client-serverPeer-to-peer
Securitymanaged centrally: access rights, anti-malwareno central security: only as secure as the weakest computer; malware can spread
Backupthe server’s data is backed up centrallyno central backup: if a peer loses unbacked-up files, there is no central copy to recover
Files and softwareone central copy, so data stays consistentspread across the peers; versions and software may differ
Cost and set-upa server and a specialist to run itno server to buy: cheap and simple for a few computers
Availabilitythe server is a single point of failure; many requests can congest itfiles are available only while their peer is switched on; a peer slows while others use it

Justify the model for the situation

Choose a model, then give reasons that come from the situation.

SituationModelLinked reasons
A clinic’s appointment booking systemclient-servercentral access rights protect bookings; one shared record helps prevent conflicting appointments
A school of 900 studentsclient-servercentral backups and access rights; log on anywhere and reach your files
Four friends sharing photos at homepeer-to-peerno server to buy or manage; each friend shares their own files
Thousands of players fetching one big game updatepeer-to-peereach player who has a piece passes it on, so no single server carries the whole load

Two points that catch people out when they choose: what a model does not describe, and that one network can use both.

Do not confuse

  • The models describe the roles of the computers, not how they are cabled.
  • Either model can run on a star or a bus network.

Mixing models

  • A large network can use both.
  • One office’s subnetwork can run peer-to-peer while the main services are client-server.
Your turn

1 Three flatmates share one printer and their holiday photos. Which model, and why?

2 A dental practice stores every patient’s records. Which model, and why?

3 Develop this drawback of peer-to-peer: “no central backup”.

  1. 1
    peer-to-peer: no server to buy or manage for so few computers; each shares their own files
  2. 2
    client-server: central access rights protect the records, and the server is backed up centrally
  3. 3
    each peer must back up its own files, so if one peer’s disk fails, files it had not backed up are lost: there is no central copy to recover
Tick what you can do now
Exam focusDevelop each drawback: “no central backup, so a friend loses unbacked-up photos, there is no central copy to recover”. Link the justification to the scenario, not to networks in general.
Practise with s24/11 Q5(a); s25/13 Q3(c); s21/11 Q4(b) (older paper: developed peer drawbacks)
3 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Thin clients and thick clients

§2.1 · Networks · thin-client and thick-client

A client can do most of the work itself, or leave almost all of it to the server. Thin and thick clients are both client-server. They differ in where the processing, software and data are, not in the size of the computer.

Thin clientClient devicefew resourcesInput and outputProcessingApplication softwareData storageServerdoes the workInput and outputProcessingApplication softwareData storageinput, requestsoutput, resultsThick clientClient deviceown resourcesInput and outputProcessingApplication softwareData storageServershared dataInput and outputsome processingApplication softwareData storageinput, requestsoutput, resultsSolid: done on that computer. Dashed: not done there.
Thin clientClient deviceServerInput and outputdone—Processing—doneApplication software—doneData storage—doneClientServerRequests ↓ · results ↑Thick clientClient deviceServerInput and outputdone—ProcessingdonesomeApplication softwaredone—Data storagedonedoneClientServerRequests ↓ · results ↑

Read each row across and find where Processing and Data storage sit: on the client, or on the server.

Compare the two

Where the processing happens decides what each client needs from the network and the server. Be able to say, for each characteristic, which way round it is for a thin and a thick client.

CharacteristicThin clientThick client
Processingminimal: sends input, displays resultsdoes most of its own processing
Software and dataon the server; none stored on the clientinstalled and stored locally
Local resourcesfew: little memory, processing or storageneeds a more powerful device
Network and serverheavily reliant: stops if either failsworks on local files; shared data still needs the server
Load on the serverhigh: it does the work for every clientlower: the clients share the work
Updatesmade once, centrally, on the servermade on every client

Apply it to the scenario

Give a characteristic, then what it means for the people in the scenario.

Thin-client characteristicHow it applies: doctors review X-ray scans on tablets
Data is not stored on the clientevery scan stays on the hospital’s server; none is saved on a tablet
Reliant on the network and serverif the hospital link or the server goes down, no doctor can open a scan
Few local resources neededa basic tablet is enough: the server does the heavy image work
Minimal processing on the clientthe tablet sends each zoom or note; the server works it out and sends back the new view
Your turn

1 Which client has the application software installed on it?

2 A college’s server goes down for an hour. Which students can carry on with files saved on their own computers: those on thin clients or on thick clients?

3 Give one reason a library might choose thin clients for its 30 catalogue terminals.

  1. 1
    the thick client
  2. 2
    those on thick clients: they store and process their own files; a thin client can do nothing without the server
  3. 3
    for example: cheap devices with few resources are enough, or software is updated once on the server instead of on 30 terminals
Tick what you can do now
Exam focusGive a characteristic and what it means in the scenario: “the tablet holds no scans, so a doctor can review nothing while the server is unreachable”. Thick client: the client does most of its own processing; the server does minimal processing.
Practise with s24/12 Q3(b); s26/11 Q7(a); s23/12 Q1(e) (older paper: thick client)
4 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Bus and star topologies

§2.1 · Networks · topologies

The same computers can be cabled together in more than one shape, and the shape changes what one broken cable does. A topology is the way the devices on a network are connected. It decides how a packet travels from one host to another.

Bus: one shared cableStar: a central switchABCDE12ignoresignoresignoresaccepts31 A puts a packet (frame) for D on the cable.2 It travels both ways, to every device.3 Only D’s address matches, so only D accepts it.Terminators absorb the signal at the cable ends.SwitchABCDE1231 A sends the packet (frame) to the switch.2 The switch reads its destination address.3 It forwards the packet only to E.
Bus: A sends to DAsendsBignoresCignoresDacceptsEignoresThe frame spreads both ways; ends terminate it.Star: A sends to ESwitchABCDESwitch forwards the frame only towards E.

Compare where the frame goes: on the bus it reaches every device, on the star only the device it is for.

Bus or star?

Compare the two feature by feature, then justify one for a situation with linked reasons.

BusStar
If a cable failsa break in the main cable stops the whole network, or the part beyond the breakonly the device on that cable is affected; but if the central switch fails, every device loses its connection
Collisions and speedone transmission at a time on the shared cable, so collisions are likely and it slows down with many devices or heavy trafficeach device has its own full-duplex link to the switch: no collisions on those links, so better performance (a star built on a hub still has collisions)
Privacyevery transmission reaches every devicea switch sends data only to the intended recipient
Cost and growthleast cable and no central device, so cheap; does not scale: every device added shares the one cablemore cable plus a switch; a new device plugs into a free port; faults are easier to find

A justification picks the rows that matter for the situation and links each one to what it means there.

Why a star suits 16 public library PCs

  1. 1
    Each of the 16 PCs has its own link to the switch.
  2. 2
    A fault in one PC’s cable cuts off only that PC, because no cable is shared, so other readers keep working.
  3. 3
    Each link is full-duplex, so frames do not collide on it and the network stays quick when the library is busy.
Your turn

1 On the bus in the figure, B sends a frame to E. Which devices does the signal reach, and which one accepts it?

2 On the star, the cable to C breaks. Which devices lose their connection?

3 On the star, the switch fails. How many of the five devices can still send to each other?

  1. 1
    it reaches A, C, D, E; only E accepts it, because only E’s address matches
  2. 2
    only C: every other device has its own link
  3. 3
    none: every frame passes through the central switch
Tick what you can do now
Exam focusBus: every device receives the broadcast frame, and only the one whose address matches accepts it. Star: the frame goes first to the central device (a switch), which reads the destination address and passes it to that device alone. Do not say a bus sends data straight to the recipient.
Practise with s24/13 Q5(b); w25/12 Q5(c); s26/11 Q7(b)(ii); w23/11 Q2(d) (older paper: justify star)
5 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Mesh and hybrid topologies

§2.1 · Networks · topologies

In a bus or a star, one broken link can cut a device off. A mesh gives more than one route between two hosts, so data can go round a failure. A hybrid joins parts with different topologies.

Mesh: several routesHybrid: two stars joined by a busABCDEFBlue: A to F through B and D. When the B–D link fails,the nodes relay the packet another way (violet).This mesh has 9 links; a full mesh of 6 needs 6 × 5 ÷ 2 = 15.bus backboneSwitchPQRSwitchSTU123P to U: 1 to its switch, 2 broadcast along the bus,3 the second switch forwards it only to U.
Partial mesh: same nine linksABCDEFBlue: A → B → D → FB–D broken: A → C → D → FSix fully connected nodes would need 15 links.Hybrid: two stars joined by a busSwitchPQRSwitchSTUP → first switch → bus → second switch → U

Compare what each one does with a packet: the mesh routes round the broken B–D link; in the hybrid, each part moves the packet its own way.

Mesh

  • Each device links to at least one other, most to more than one: multiple routes.
  • Devices act as relays, each handing a packet on; if a link fails, it goes another way.
  • Dedicated links, not one main line: fewer collisions.
  • Drawback: many links and ports: costly, complex.

Hybrid

  • Combines two or more different topologies, e.g. stars on a bus, or a mesh backbone linking stars.
  • Each part moves a packet its own way: broadcast on a bus, forwarded by a star’s switch.
  • Joins existing networks without rebuilding them.
  • Drawback: more complex to design and manage.

For the networks shown: tick each that fits

StatementBusStarMesh
a break in the shared cable cuts off the devices beyond it✓
each device has its own link to one switch✓
a packet can reach its destination by two different routes✓
whichever single cable breaks, everything else on the network still works✓✓
two frames sent at the same moment can collide on the cable✓
Your turn

For 1 to 5, say which topologies fit: bus, star or mesh. More than one can fit.

1 A break in the shared cable cuts off the devices beyond it.

2 Each device has its own link to one switch.

3 A packet can reach its destination by two different routes.

4 Whichever single cable breaks, everything else on the network still works.

5 Two frames sent at the same moment can collide on the cable.

6 A full mesh links every device to every other. How many links does a full mesh of 5 devices need?

  1. 1
    bus
  2. 2
    star
  3. 3
    mesh
  4. 4
    star and mesh
  5. 5
    bus
  6. 6
    5 × 4 ÷ 2 = 10
Tick what you can do now
Exam focusFor a mesh, give the reason resilience improves: another route is available when a link fails, because devices relay packets. A star is also robust to a failed line, but not to a failed central device.
Practise with s24/11 Q8(a); s23/13 Q2(b)(i), (b)(ii) (older paper: mesh mechanism and benefits)
6 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Cloud computing

§2.1 · Networks · cloud computing

Files, programs and even processing power can live on a computer you never see. Cloud computing is the use of a remote server for a service, for files or for software, usually reached over the internet.

Public cloudPrivate cloudthird-party provider’s serversinternetCompany Aa studentCompany Bservers dedicated to Company Aprivate network or internetA: officeA: at homeA: travelling
Public cloudProvider's shared infrastructureInternetCompany AStudentCompany BPrivate cloudDedicated to company APrivate network / internetA: officeA: homeA: travel

In both kinds the servers are somewhere the user never sees. What differs is who shares them: many customers, or Company A alone.

Public or private?

A hospital and a student backing up photos want very different things from a cloud. Be able to say who owns each kind, who can use it and when to choose it.

Public cloudPrivate cloud
Owned and run bya third-party provider, shared by many customersthe organisation or a third party, for it alone; own servers still need administration
Who can use itanyone who signs up with the right credentialsonly the organisation’s selected users
Reached overthe public interneta private internal network or the internet
Choose it whenthe content is for anyone who wants it, and sharing the provider’s servers with other customers lowers the costthe organisation wants control of security, privacy and backup, and storage tailored to it

Benefits and drawbacks depend on who hosts it

Almost every point follows from one fact: someone else runs the servers, for good and for bad.

Provider-managed benefits

  • No own servers or expertise to run them.
  • Use software without buying outright; staff can change laptops and retain remote files.
  • Backups and recovery can be included: check the provider’s arrangements.
  • Files open on any device online and are easy to share; add capacity as needed.

Hosted service: drawbacks

  • Internet access is needed; an internal private cloud needs its internal network instead.
  • Large uploads and downloads can be slow.
  • Relies on the provider’s security and backup: remote files could be exposed or lost if these fail.
  • Provider downtime stops access.
  • Fees continue for as long as the service is used.
Your turn

1 A photo-sharing service runs on a provider’s servers, and anyone can sign up. Public or private cloud?

2 A bank keeps customer accounts on cloud servers that only its own staff can reach. Which kind is this, and what does the bank gain?

3 A student keeps all their coursework in a public cloud. Give two drawbacks.

  1. 1
    public: a third-party service anyone can sign up to
  2. 2
    private: only the bank’s users can reach it, so the bank controls security, privacy and backup
  3. 3
    any two: no internet, no access; the provider’s downtime stops access; it relies on the provider’s security and backup; large files are slow to upload; fees continue
Tick what you can do now
Exam focusA public cloud does not mean anyone can open your files: it is a third-party service that anyone can sign up to. A private cloud is only available to one organisation, which gains control of security and backup.
Practise with s24/13 Q5(a)(i), (a)(ii); w25/12 Q8(a)(i), (a)(ii); s26/12 Q6(d); s26/13 Q3(c)(iii); s22/13 Q8(a), (b) (older paper: cloud definitions); w23/13 Q3(a)(i) (older paper: public-cloud choice)
7 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Wired and wireless networks

§2.1 · Networks · wired and wireless

A cable ties a device to one spot; radio lets it move, at a price. Devices connect by cable (copper or fibre-optic) or wirelessly by radio waves, e.g. WiFi. The choice changes speed, reliability, security, mobility and cost.

WiredWirelessSwitchcableThe signal stays inside the cable.To intercept it, someone must reachthe cable itself.WAPstrong signalweaker, throughan internal walloutside thebuilding, stillin range
Wired: signal confined to the cableSwitchPhysical connection is needed.Wireless: radio spreads beyond the WAPBuildingWAPnearbywalloutsidebut in rangeThe wall weakens radio; the boundary does not stop it.

Compare who can pick up the signal: to tap the cable someone must reach it, but the WiFi rings spread through a wall and out of the building.

Differences and their implications

Each difference has a consequence. Give both when you compare.

WiredWireless
Speedhigher bandwidth; consistentusually lower; shared, and falls with distance
Reliabilitystable: little interferenceaffected by walls, distance and other devices
Securitydata must be tapped at the cableanyone in range can intercept the signal: encrypt it
Mobilitydevices stay where the cable isdevices move freely within range
Setting upcables must be laid: costly and disruptiveno cabling: quicker, cheaper, easy to add devices
Devicesneeds a port and a NICneeds a WNIC; phones often have no port

Justify the choice

One situation favours a cable; in the other, each kind of link does the job it suits.

Why a cable suits large video uploads

  • A student at a library desk uploads big video files to the school server.
  • A wired link has higher bandwidth, so each upload finishes sooner.
  • A cable gives a steady link that walls, distance and other signals do not weaken.

Why a hospital uses both

  • Wired at ward desks: fast, steady access to patient records that never travel by radio.
  • Wireless on rounds: nurses carry tablets from bed to bed.
  • Older monitors may have only a network port; phones may have only WiFi.
Your turn

1 A gamer wants the steadiest connection to the router in the next room. Wired or wireless? Give a linked reason.

2 Why is data on a wireless network easier to intercept than data on a cable?

3 A café lets customers’ phones join its network. Wired or wireless? Give two reasons.

  1. 1
    wired: a cable is not weakened by walls, distance or other signals, so the link stays steady
  2. 2
    radio signals spread out in range of the access point, so anyone in range can receive them; to tap a cable someone must reach the cable
  3. 3
    wireless: phones often have no network port, and customers move around; no cables to lay to every table
Tick what you can do now
Exam focusThe marks are for the linked reasons, not the choice: “wired, because it has higher bandwidth, so a large upload finishes sooner”. “More secure” needs the reason: radio signals can be intercepted by anyone in range.
Practise with w25/13 Q4(a), (b); s21/11 Q4(c)(ii) (older paper: connection justification); s23/13 Q2(d) (older paper: benefits of both)
8 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Transmission media

§2.1 · Networks · copper, fibre-optic, radio, microwave, satellite

One message from your phone can travel as radio waves, then as electricity in copper, then as light in glass. Copper carries electrical signals, fibre pulses of light, wireless media electromagnetic waves.

Copper carries electrical signals, fibre pulses of light, wireless media electromagnetic waves.

Copper cableelectrical signalstwisted pair or coaxialFibre-optic cablepulses of lightin glass fibresRadio wavesall directionspass through walls; WiFiMicrowavesa narrow beamdishes in line of sightSatelliterelayed by satellitebetween ground stationstwisted paircoaxialcladdingcorewallline of sight
Copper: electrical signalstwisted paircoaxialFibre-optic: pulses of lightRay reflects within the core; cladding surrounds it.Radio: spreads in many directionsWAPReceiverPasses through walls, but is weakened.Microwave: line of sightFacing dishes need an unobstructed path.Satellite: ground → relay → grounduplinkdownlink

For each medium, find what carries the bits and how the signal travels from one end to the other.

Characteristics of each medium

Every medium trades something away. For each one, be able to say how it carries data, one strength and one limitation.

MediumHow it carries data · strengthsLimitations
Copper cableelectrical signals along copper wires; cheap, flexible, easy to installlower bandwidth; interference; repeaters needed sooner
Fibre-optic cablepulses of light in glass fibres; higher bandwidth; the signal weakens less, so fewer repeaters; no electrical interference; hard to tapmore expensive; more easily damaged; specialist installation
Radio waves (incl. WiFi)electromagnetic waves sent in all directions; pass through walls; used by WiFilower bandwidth; interference; anyone in range can receive it
Microwaveselectromagnetic waves in a narrow beam between dishes; higher bandwidth than radioneed line of sight; affected by rain; relay towers over long distances
Satellitesmicrowaves from a ground station to a satellite and back down; reach remote areashigh latency; needs a dish and extra equipment; weather weakens it

Bandwidth and latency are easy to mix up: a satellite link has plenty of one and suffers from the other.

Worked example: why a satellite link lags

satellite 20 200 km up · radio signals ≈ 300 000 km/s
2 × 20 200 = 40 400 kmground to satellite and down again40 400 ÷ 300 000 ≈ 0.13 sdelay for one message2 × 40 400 ÷ 300 000 ≈ 0.27 srequest and reply

Over 2 000 km of glass fibre, where light travels at about 200 000 km/s: 2 000 ÷ 200 000 = 0.01 s.

Do not confuse

  • Bandwidth: how much data a link can carry each second.
  • Latency: the delay before data arrives. A satellite link can have high bandwidth and still lag, because the signal travels so far.
  • Repeaters regenerate an attenuated (weakened) signal.
  • The example uses an idealised path: real slant paths are longer, and processing and queuing are left out.

Do not confuse

Bandwidth is how much data a link can carry each second. Latency is the delay before data arrives. A satellite link can have high bandwidth and still lag, because the signal travels so far.

Repeaters regenerate an attenuated (weakened) signal.

Idealised two-altitude path: real slant paths are longer, and processing and queuing are excluded.

Your turn

1 Which medium carries data as pulses of light?

2 A satellite orbits 36 000 km up. Signals travel at about 300 000 km/s. How long does one message take to go up and come down again?

3 Why do microwave dishes need line of sight, when WiFi radio waves pass through walls?

  1. 1
    fibre-optic cable
  2. 2
    2 × 36 000 = 72 000 km; 72 000 ÷ 300 000 = 0.24 s
  3. 3
    microwaves are sent in a narrow beam from one dish to the next; radio waves spread in all directions
Tick what you can do now
Exam focusDescribe a medium by how it carries data: fibre-optic transmits data as pulses of light; radio waves and microwaves transmit electromagnetic waves. Compare fibre and copper feature by feature: cost, bandwidth, how far before a repeater, interference, how easily tapped or damaged.
Practise with w24/13 Q9(b); s22/12 Q9(b) (older paper: paired cable differences); w22/13 Q7(b) (older paper: satellite comparison)
9 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

LAN hardware

§2.1 · Networks · hardware to support a LAN

A LAN needs devices that pass the data along, each with its own job. A switch joins the devices on one site, a router joins the LAN to other networks, and a WAP lets wireless devices join.

SwitchServerPC with a NICPrinterRouterinternetWAPlaptop (WNIC)phone (WNIC)Repeaterdistant PClong cable runBridgeLAN segment 2One LAN: each device has its own jobPC with a NICServerPrinterSwitchRepeaterlong cable rundistant PCRouterinternetWAPlaptop (WNIC)phone (WNIC)BridgeLAN segment 2

The switch sits at the centre. Find each device on its line out from the switch, then look up its job.

The job of each device

In a diagram these boxes can look alike, but each one moves data in its own way. Be able to name each device in the figure and say what it does.

DeviceWhat it does
Switchthe central device: stores the MAC addresses of connected devices and forwards each packet only to its intended recipient
Serverprovides services to other devices: shared files, applications, printing, backups
NIC (network interface card)connects a device to a wired network; its MAC address identifies the device
WNIC (wireless NIC)joins a device to a wireless network, turning data into radio waves and back; its MAC address identifies the device there
WAP (wireless access point)lets wireless devices join the wired LAN by radio
Cablescarry the data between devices: twisted-pair copper or fibre-optic
Bridgelinks two LAN segments that use the same protocol
Repeaterregenerates a weakened signal so it can travel further

Two slips to avoid: lines drawn between devices in a star, and devices with similar jobs mixed up.

Drawing a star topology

  • Draw one line from each device to the switch, and none between devices.
  • Name each device you draw.

Do not confuse

  • “Data between two networks”: router.
  • “Connects two LANs or segments”: bridge.
  • A hub sends to every device; a switch only to the recipient.
Your turn

1 Which device lets a laptop join the wired LAN by radio?

2 Which device regenerates a weakened signal on a long cable?

3 Which device links two LAN segments that use the same protocol?

4 Which device forwards each packet only to the device it is for, using MAC addresses?

  1. 1
    a WAP (wireless access point)
  2. 2
    a repeater
  3. 3
    a bridge
  4. 4
    a switch
Tick what you can do now
Exam focusName the device and say what it does. Keep the jobs apart: a switch forwards by MAC address inside a LAN; a repeater regenerates a weak signal; a bridge joins two segments; a WAP lets wireless devices onto the wired LAN.
Practise with s25/12 Q6(d), (e); w25/12 Q5(b); s22/12 Q9(a) (older paper: device matching); w23/11 Q2(b) (older paper: bridge and WAP)
10 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

The router

§2.1 · Networks · role and function of a router

A packet leaving a LAN may cross many networks, and at every junction something must choose the way on. A router connects networks and sends each packet on using its destination IP address.

Home LAN192.168.1.10192.168.1.11SwitchRouterLAN: 192.168.1.1internet: 203.0.113.25R1R2R3R4web server198.51.100.20to 198.51.100.201R1 receives the packet2reads its destination IP address, 198.51.100.203finds the matching network in its routing table4forwards the packet to the next router, R2Routing table in R1 (simplified)destination networksend to198.51.100.0 to .255R2203.0.113.0 to .255home routerany other addressR3
Home devices192.168.1.10 / .11SwitchHome routerLAN: 192.168.1.1Public: 203.0.113.25to 198.51.100.20R1R2R3R4Web server198.51.100.20R1 reads the destination IP; matching table:198.51.100.0/24→ R2203.0.113.0/24→ home routerother addresses→ R3

Follow the packet from the home LAN to the web server, and see how R1 uses its routing table to choose the next router.

Moving packets between networks

  • Takes in packets from the LAN and from the internet.
  • Looks at where each is going: its destination IP address.
  • Finds that network in its routing table, which names the next hop.
  • Sends the packet on along the best route: to the next router or into the LAN.
  • Revises the table as routes change.

Extra jobs of a home or office router

  • Holds the LAN’s public IP address, supplied by the ISP, and is its gateway.
  • Allocates private IP addresses to devices.
  • Keeps a table of IP and MAC addresses.
  • Translates private/public addresses (NAT); may adapt packet format for the next network.
  • Acts as a firewall; may include a WAP and modem.

Router or not?

TaskRouterNot the router
chooses the next hop for a packet from a table✓
turns a domain name into an IP address✓ a DNS server does this
regenerates a weak signal on a long cable✓ a repeater does this
hands out private addresses to devices that join✓
Your turn

1 Use R1’s routing table. A packet arrives for 198.51.100.77. Where does R1 send it?

2 A packet arrives for 192.0.2.5. Where does R1 send it, and why?

3 Router or not? Choosing the next hop for a packet from a table.

4 Router or not? Turning a domain name into an IP address.

5 Router or not? Regenerating a weak signal on a long cable.

6 Router or not? Handing out private addresses to devices that join.

  1. 1
    R2: 198.51.100.77 is in the network 198.51.100.0 to .255
  2. 2
    R3: it matches no listed network, so it takes the “any other address” row
  3. 3
    router
  4. 4
    not the router: a DNS server does this
  5. 5
    not the router: a repeater does this
  6. 6
    router
Tick what you can do now
Exam focusExplain what the router does with each packet: checks its destination IP address, looks that network up in the routing table, and sends the packet on. Finding the IP address for a domain name is the DNS’s job, not the router’s.
Practise with s24/12 Q3(c)(i); w23/11 Q2(a) (older paper: additional router functions); s21/11 Q4(c)(i) (older paper: router matching)
11 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Ethernet

§2.1 · Networks · Ethernet

Devices that share a cable must agree how to take turns, or their signals crash into each other. Ethernet is the rule set (protocol) that most wired LANs follow. It packs data into frames, and on a shared cable it handles collisions with CSMA/CD.

The parts of an Ethernet frame

Destination MAC addresswhich device it is forSource MAC addresswhich device sent itDatathe packet being carriedError-checking datashows if it was damaged
Destination MAC addresswhich device it is for1Source MAC addresswhich device sent it2Datathe packet being carried3Error-checking datahelps detect damage4

How a collision happens on a shared cable

Follow the numbers in order. Time runs down the page; each sloping line is a signal crossing the cable.

ADthe shared cable3 the signals collide1 senses the cable is idle;starts sending5 D’s signal arrives: Adetects the collision, jams2 A’s signal has not arrived,so D also senses idle; sends4 A’s signal arrives: D detectsthe collision, stops and jamstime runs downwards · blue: A sending · violet: D sending · amber: jamming signal
ADCable position →12345Time runs downwards · amber = jamming1A senses idle and starts (time 0).2D still senses idle and starts (30).3Signal fronts meet on the cable (65).4A's signal reaches D: D detects, jams (100).5D's signal reaches A: A detects, jams (130).

A switch takes away the shared cable, and with it the collisions. Compare the two kinds of Ethernet, then follow one file across a shared cable.

Shared Ethernet (bus, or a hub)Switched Ethernet (star with a switch)
all devices share one transmission mediumeach device has its own full-duplex link to the switch
every frame reaches every device; only one can send at a timethe switch holds each frame briefly and passes it only to its addressee
two devices can start at once: collisions, so CSMA/CD is neededframes cannot meet on a device’s own link, so CSMA/CD is not needed (a star built on a hub still has collisions)

Sending a file from A to D on a shared cable

  • The file goes out in frames; each carries D’s and A’s MAC addresses.
  • A listens first and starts only when the cable is quiet (CSMA/CD).
  • The frame spreads along the bus to every device; only D, whose address matches, keeps it.
  • If A’s frame meets another, A waits a random time and sends it again.
Your turn

1 Name the four parts of an Ethernet frame.

2 In the collision figure a signal takes 100 time units to cross the cable. If D had started sending at time 50 instead of 30, at what time would the two signals meet?

3 Why does a star built on a switch not need CSMA/CD?

  1. 1
    destination MAC address, source MAC address, data, error-checking data
  2. 2
    75: A’s signal has travelled for 75 units and D’s for 25; 75 + 25 = 100, one whole crossing, so the two fronts meet
  3. 3
    each device has its own full-duplex link to the switch, so two frames never meet on one cable
Tick what you can do now
Exam focusDescribing Ethernet: data travels in frames, each with the sender’s and receiver’s MAC addresses and error-checking data; it is the protocol of wired LANs; a shared cable uses CSMA/CD. On a bus, add that every device receives the frame and only the addressee keeps it.
Practise with s26/11 Q7(b)(i); w25/12 Q5(d); s23/12 Q1(d) (older paper: Ethernet definition)
12 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

CSMA/CD

§2.1 · Networks · collision detection and avoidance

On a shared cable, collisions cannot be prevented completely, so Ethernet needs a plan for them. Carrier Sense Multiple Access with Collision Detection (CSMA/CD) is the protocol it uses: it cuts down collisions, detects the ones that still happen, and recovers from them.

Frame readyto sendIs the channelbusy?Transmit, listeningfor a collisionCollisiondetected?TransmissioncompleteNoNoWait until freeYesStop sending; senda jamming signalYesWait a random time(longer after repeated collisions)then listen again before resendingFrame AChosen wait: 3 slots
Frame readyChannelbusy?Wait untilchannel is freeYesNoTransmit; listenfor a collisionCollisiondetected?TransmissioncompleteNoStop sending; senda jamming signalYesWait a random timeLonger after repeatedcollisions; then listen againFrame AChosen wait:3 slots

Start at Frame ready and follow the arrows. The amber boxes are what happens after a collision; after the wait, the device listens again.

What the name means

Each part of the name is one thing the device does. Be able to say all three.

Carrier sense

A device listens to the channel and sends only when no other data is being transmitted.

Multiple access

Many devices share one cable, so two of them can begin sending at the same moment.

Collision detection

While sending, the device keeps listening; if the signals overlap it detects the collision.

What each step is for

StepWhy
Listen before sendingavoids interrupting a transmission already on the cable
Keep listening while sendingtwo devices can both sense an idle cable and start together
Send a jamming signalwarns every device that a collision has happened
Wait a random timethe two devices are unlikely to choose the same wait, so they do not collide again
Wait longer after each repeatspreads out the retries when the network is busy

Drawbacks of CSMA/CD

  • Not scalable: more devices mean more collisions and longer waits.
  • The wait grows after each repeated collision, so a frame can be held up for a long time on a busy cable.
  • No priority: an urgent frame waits like any other.
Your turn

1 Put these in order after a collision is detected: wait a random time; send a jamming signal; listen again; stop sending; resend the frame.

2 Why is the wait random and not the same for every device?

3 Two devices both sense an idle cable and start sending together. Which part of CSMA/CD deals with this?

  1. 1
    stop sending; send a jamming signal; wait a random time; listen again; resend the frame
  2. 2
    with equal waits the same two devices would start together again and collide again
  3. 3
    collision detection: each keeps listening while it sends, so both detect the collision
Tick what you can do now
Exam focusAfter a collision: abort the transmission, send a jamming signal, wait a random time, then listen again before resending; the wait increases after repeated collisions. Equal waits are wrong: the same two devices would collide again.
Practise with s24/13 Q5(c)(i), (c)(ii); w25/12 Q5(d)
13 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Bit streaming

§2.1 · Networks · bit streaming

Nobody wants to wait for a whole film to download. Bit streaming sends bits as a continuous, ordered stream along a communication path, so playback starts before the whole file has arrived.

Live camerareal-timeRecorded filmon-demandCompressmedia serverstored, compressedinternet0110100111010010…a continuous, ordered bit streamUser’s devicebuffertemporary storageplayerplays from the buffer at thestream’s bit ratecontrol data: request more data, pause, skip (on-demand)
Live camerapictures and soundCompresswhile filmingRecorded mediastored, compressedMedia serverInternetUser's buffer: temporary storesteady playback ratePlayerViolet: on-demand request, pause or skip to server

Two sources feed one media server. Follow the bits through the internet into the buffer on the user’s device; the line back to the server carries the control data.

Real-time or on-demand?

The difference is when the content is made, and that decides what a viewer can do with it.

Real-time (live)On-demand
Contentsent as it is produced, direct from the sourcepre-recorded, stored on a media server and sent when the user chooses
Controlwatched as it happens; cannot be re-watched later unless recordedcan be paused, rewound, re-watched or skipped
Delaymust stay small, so viewers see each goal as it is scoreda short wait while the buffer fills is acceptable
Examplesa live sports match, a radio phone-infilms, music and lessons from a streaming service

How real-time bit streaming works

Four stages, in order. Be able to give the whole chain and say why the buffer is there.

Your turn

1 A school concert is watched online as it happens. Real-time or on-demand?

2 Which can a viewer pause and rewind: a real-time stream or an on-demand one?

3 Why does the device put the bits in a buffer before playing them?

  1. 1
    real-time: sent as it is produced
  2. 2
    on-demand: it is pre-recorded and stored on the media server
  3. 3
    bits arrive at an uneven rate but must be played at a steady one; the buffer holds a short store so playback does not stop each time the arrival rate drops
Tick what you can do now
Exam focusTo explain real-time bit streaming, give the whole chain in order: compress, stream to a media server, fill a buffer on the device, play from it. Say why the buffer is there: data arrives at an uneven rate but is played at a steady one.
Practise with s24/11 Q2(e)(i), (e)(ii); s25/11 Q2(a); w24/13 Q9(c)
14 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Bit rate, broadband speed and buffering

§2.1 · Networks · bit streaming

When a video freezes, data is arriving too slowly. The bit rate of a stream is the number of bits that must be played each second; the broadband speed must keep up, or the buffer runs out.

A 4 Mbit/s stream when the connection slows down

Read the two charts on one time line: the top shows how fast data arrives against the bit rate, the bottom shows the buffer filling and draining.

Data rate (Mbit/s)0246broadband speed: 5connection slows to 2bit rate of the stream: 4Data in the buffer (Mbit)0510152025081624324048time (s)playback starts, and restarts, once 4 Mbit is in the bufferfills: 5 in, 4 outdrains: 2 in, 4 outshaded: buffer empty, playback paused
Data rate (Mbit/s)02460816243240480510152025081624324048Blue: arrives 5, then 2 · dashed: plays 4Data in the buffer (Mbit)time (s)Start / restart at 4 Mbit.Amber: playback paused while buffer refills.First empty ≈ 31.6 s; peak ≈ 23.2 Mbit.

Why bit rate and broadband speed matter

Compare the broadband speed with the bit rate to say what the buffer does.

When…What happens
broadband speed ≥ bit ratedata arrives at least as fast as it is played: the buffer stays full enough and playback is smooth
broadband speed < bit ratethe buffer drains; when it is empty, playback pauses while it refills
the bit rate is highercan support better quality at comparable encoding settings (more pixels, frames or samples per second), but a faster connection is needed
stronger lossy compressiona lower bit rate is needed, so people with less bandwidth can still watch, at lower quality

The data a stream uses grows with its bit rate and the time watched; the buffer is what lets the download and the player run at different speeds.

Worked example: data used

4 Mbit/s · one hour of playback · decimal units · no protocol overhead
4 000 000 × 3600 = 14 400 000 000 bits÷ 8 = 1 800 000 000 bytes= 1.8 GB

What a buffer is for

  • A buffer is a temporary store between a part that sends data and a part that uses it.
  • Each part can then run at its own speed: here, the download and the player.
  • A print queue works the same way.
Your turn

1 Read the chart. At what time does the buffer first run empty and playback pause?

2 A 4 Mbit/s stream is watched on a 6 Mbit/s connection. Does the buffer fill or drain, and by how much each second?

3 A 5 Mbit/s stream is played for 30 minutes. How much data is that, in GB?

  1. 1
    at about 31.6 s: from 20 s only 2 Mbit arrives each second but 4 is played, so the buffer drains
  2. 2
    it fills: 6 − 4 = 2 Mbit more each second
  3. 3
    5 000 000 × 1800 = 9 000 000 000 bits; ÷ 8 = 1 125 000 000 bytes = 1.125 GB
Tick what you can do now
Exam focusA buffer smooths short drops in speed; it cannot fix a connection that is slower than the bit rate. Explain the chain: data arrives more slowly than it is played, the buffer empties, playback pauses. Stronger lossy compression lowers the bit rate at the expense of quality, so less bandwidth is needed.
Practise with s25/11 Q2(a), (b)(i); w24/13 Q9(c); w22/13 Q1(c) (older paper: buffer purpose and other example)
15 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

The internet, the WWW and their hardware

§2.1 · Networks · the internet and the WWW

Email works without a single web page. The internet is the network hardware and connections; the World Wide Web is the web pages stored on web servers and reached over the internet.

Home LANRouter and modemTelephoneexchange (PSTN)phonelineISPthe internetnetworks of routers joinedby fibre-optic cablesweb serverone cellMobile networkOffice AOffice Bdedicated (leased) lineprivate, not shared
Home PC / laptopRouter + modemPSTN exchangetelephone networkphone lineISPMobile phoneCell towerradioMobile networkcore equipmentInternet routerslinks include fibreWeb serverSeparate private connection: leased lineOffice AOffice B

Two ways in: a home router and modem over a phone line, through the exchange and the ISP, or a phone through a cell tower. The leased line joins two offices privately.

The internet and the WWW are not the same

A library’s online catalogue uses both: the internet carries the data; the catalogue pages are a website.

The internetThe World Wide Web (WWW)
a global network of networks: the infrastructurea collection of web pages, linked by hyperlinks
cables, routers and servers; uses TCP/IPstored on web servers; reached by URL over HTTP(S)
carries email, video calls, file transfer and the WWWone service that runs on the internet

Hardware that supports the internet

Data cannot reach the internet without equipment to carry it, from a phone line to a cell tower. Be able to say how each one helps data reach the internet.

HardwareHow it supports the internet
Modemturns a computer’s digital data into an analogue signal a phone line can carry, and the modem at the far end turns it back
PSTNthe public switched telephone network: the public phone system, carrying data between switching centres in both directions simultaneously (duplex); some lines need analogue conversion
Dedicated linea private link leased between two sites: capacity is not shared with other customers; the contract specifies the service speed
Cell phone networkan area is divided into cells, each served by one tower; the tower exchanges radio signals with multiple devices simultaneously, using low-power transmitters
Your turn

1 Internet, WWW or both? Sending a message in a chat app.

2 Internet, WWW or both? Reading a news website in a browser.

3 What does a modem do, in both directions?

4 A company joins two offices with a dedicated line. Give one reason.

  1. 1
    the internet only: no web pages are fetched
  2. 2
    both: the pages are on the WWW, carried over the internet
  3. 3
    it turns digital data into an analogue signal for the phone line, and turns the analogue signal back into digital data
  4. 4
    for example: the line is private, so its capacity is not shared with other customers, and the speed is set in the contract
Tick what you can do now
Exam focusFor “internet, WWW or both?”: the internet is used whenever data crosses the network; the WWW only when web pages are fetched from a web server. For a modem, give the conversion both ways: digital to analogue and back.
Practise with s24/12 Q3(c)(ii); s25/11 Q2(c); s25/12 Q6(b); s21/11 Q4(d) (older paper: internet and WWW justification)
16 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

IP addresses: IPv4 and IPv6

§2.1 · Networks · format of an IP address

A letter needs an address before it can be delivered, and so does a packet. An IP address identifies a device’s network connection so that packets can be routed to it. Two versions are in use: IPv4 and the much longer IPv6.

IPv4 address 192.168.12.4192.110000008 bits168.101010008 bits12.000011008 bits4000001008 bits4 groups × 8 bits = 32 bits · each group 0 to 255, written in denary, separated by full stops
IPv4: 192.168.12.4192110000001681010100012000011004000001004 groups × 8 bits = 32 bits · denary 0 to 255
IPv6 address200116 bits:0db816 bits:000016 bits:000016 bits:000016 bits:00c416 bits:0a1f16 bits:004216 bits8 groups × 16 bits = 128 bits · each group is 4 hexadecimal digits, 0000 to FFFF, separated by colons
IPv6: groups in reading order2001:0db8:0000:00000000:00c4:0a1f:00428 groups × 16 bits = 128 bitsEach: 4 hexadecimal digits, 0000 to FFFF

Count the bits under each group: IPv6 has twice as many groups as IPv4, and each is twice as wide.

IPv4IPv6
Size32 bits128 bits
Groups4 groups of 8 bits8 groups of 16 bits
Written indenary, full stopshexadecimal, colons
Range0 to 255 each0000 to FFFF each
Addresses2³² ≈ 4.3 billion: running out2¹²⁸ ≈ 3.4 × 10³⁸

Shortening an IPv6 address

2001:0db8:0000:0000:0000:00c4:0a1f:0042
1 drop the leading zeros in each group
2001:db8:0:0:0:c4:a1f:42
2 replace one run of zero groups with ::
2001:db8::c4:a1f:42

Use :: only once, or nobody can tell how many groups each one replaces.

Valid or invalid?

Check the separators, the number of groups and the range of each group.

AddressTypeReason
300.1.1.7invalidnot IPv4: 300 is over 255. Not IPv6: full stops, and only 4 groups
10.2.2.9IPv44 denary groups, each 0 to 255: 32 bits. Not IPv6: no colons, not 8 groups
2001:db8::c4:a1f:42IPv6shortened: :: stands for the three groups of zeros
2001:db8::4::1invalid:: used twice, so the missing zero groups cannot be counted
Your turn

1 Is 172.16.300.1 a valid IPv4 address? Give the reason.

2 Write 2001:0db8:0000:0000:0000:0000:0000:0001 in its shortest form.

3 How many groups does an IPv6 address have, and how many bits are in each?

  1. 1
    no: 300 is over 255, the largest value one group can hold
  2. 2
    2001:db8::1: drop the leading zeros, then replace the one run of zero groups with ::
  3. 3
    8 groups of 16 bits: 128 bits
Tick what you can do now
Exam focusIf the separators are already named, compare the rest: bits (32 or 128), groups (4 or 8), notation (denary or hexadecimal) and the range of one group (0–255 or 0000–FFFF).
Practise with s24/11 Q8(b)(ii); s25/12 Q6(c); w25/11 Q7(b)
17 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Subnetting

§2.1 · Networks · use of subnetting

A school’s network is easier to manage in parts: one for the offices, one for the science labs. Subnetting divides one network into smaller networks (subnets). An IP address then has two parts: the network ID, shared by every device in the subnet, and the host ID, which picks out one device in it.

Use the subnet mask: IP address AND mask = network address

Where a group of the mask is 255, copy that group into the network ID. Where it is 0, that group belongs to the host ID.

IP addressSubnet maskNetwork IDHost ID
10.4.7.9255.0.0.0104.7.9
192.168.20.77255.255.255.0192.168.2077

Extension: a mask can also split a group of 8 bits, as below.

IP address172.16.45.13010000010Subnet mask255.255.255.19211000000AND: network address172.16.45.12810000000network IDhost IDlast group only: the first threegroups of the mask are 255, so theycopy straight into the network IDnetwork address: 172.16.45.128host ID: 000010 = 226 network bits, 6 host bits
Last octet shown: first three mask octets are 255,so 172.16.45 copies into the network address.IP address172.16.45.13010000010Mask255.255.255.19211000000AND: network172.16.45.12810000000networkhost26 network bits · 6 host bitsHost ID: 000010 = 2

Four subnets of 64 addresses (62 for devices: the first and last are reserved)

The extension’s mask, 255.255.255.192, leaves 6 host bits, so the last group splits into four blocks of 64: one subnet for each department.

RouterAdmin subnet172.16.45.0 to .63Science subnet172.16.45.64 to .127Library subnet172.16.45.128 to .191Staff subnet172.16.45.192 to .255
RouterAdmin subnet172.16.45.0 to .63Science subnet172.16.45.64 to .127Library subnet172.16.45.128 to .191Staff subnet172.16.45.192 to .255

Why subnet a network?

Each benefit needs its reason.

BenefitBecause…
Reduces traffic and congestionpackets between hosts in one subnet never enter the other subnets
Improves securityaccess controls between routed subnets can restrict a break-in’s reach
Easier maintenanceone subnet can be repaired or changed while the others carry on
Easier to expanda new department gets a subnet of its own; the others keep their addresses
Your turn

1 An IP address is 192.168.5.200 with subnet mask 255.255.255.0. Give the network ID and the host ID.

2 An IP address is 10.1.1.70 with mask 255.255.255.192. AND the last group with the mask: what is the network address, and what is the host ID?

3 In the four-subnet figure, which subnet does 172.16.45.150 belong to?

  1. 1
    network ID 192.168.5, host ID 200
  2. 2
    70 = 01000110 and 192 = 11000000; AND gives 01000000 = 64, so the network address is 10.1.1.64; the host bits 000110 = 6
  3. 3
    the Library subnet: .128 to .191
Tick what you can do now
Exam focusNetwork ID: shared by every device in the subnet. Host ID: picks out one device in it. Give each benefit a reason: “reduces congestion, because packets between hosts in one subnet never leave it”. “Faster” alone is not enough.
Practise with w24/13 Q9(d)(ii); s26/11 Q7(c)(ii); s23/13 Q2(e) (older paper: network and host IDs); w22/13 Q7(c)(ii) (older paper: mask calculation)
18 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

Public, private, static and dynamic IP addresses

§2.1 · Networks · types of IP address

Not every device faces the internet or keeps its address. An address is public (seen on the internet) or private (seen only inside its LAN) and, separately, static (does not change) or dynamic (can change).

Laptop · dynamic192.168.1.23Web server · static198.51.100.20Router · NATLAN: 192.168.1.1Public: 203.0.113.25Private LAN: PC 192.168.1.24 (dynamic) · printer 192.168.1.50 (static)Private LANInternetSaved NAT mapping for this request192.168.1.23 ↔ 203.0.113.25Reply destination192.168.1.23Request source: private → publicReply destination: public → private
Laptop · dynamic192.168.1.23PC · dynamic192.168.1.24Printer · static192.168.1.50Router · NATLAN: 192.168.1.1Public:203.0.113.25Web server · static198.51.100.20Private LANInternetSaved NAT mapping for this request192.168.1.23 ↔ 203.0.113.25Reply: public destination → private destinationReply destination192.168.1.23

Follow the request from the laptop: the router swaps its private source address for the public one, keeps the mapping, and swaps it back on the reply.

Public or private, static or dynamic

Each address is public or private, and also static or dynamic. Be able to place a device in one cell and say why.

Static: does not changeDynamic: can change
Public: visible on the internet, unique worldwideweb server, email server: always found at the same addressa home router’s address, given by the ISP and changed from time to time
Private: used only inside the LANa printer or file server the LAN must always finda phone or laptop given an address by the router each time it joins

How an IP address is linked to a device

  1. 1
    The address belongs to the device’s network connection (its NIC or WNIC).
  2. 2
    When the device joins the LAN, the router allocates it a private address (dynamic), or the address is set by hand (static).
  3. 3
    The router keeps a table of each device’s IP and MAC addresses, so packets for that IP address reach that device.

How an IP address is linked to a device

The address belongs to the device’s network connection (its NIC or WNIC). When the device joins the LAN, the router allocates it a private address (dynamic) or the address is set by hand (static). The router keeps a table of each device’s IP and MAC addresses, so packets for that IP address reach that device.

Whether an address is public or private also decides who can reach the device.

Security: private addresses

  • Not reachable directly from the internet: devices are hidden behind the router.
  • NAT maps replies back to private devices. A firewall separately controls which traffic is allowed.
  • Not a guarantee: malware or a user inside the LAN can still attack.

Security: public addresses

  • Visible to every device on the internet, so they can be found and attacked.
  • Protect them with a firewall.
Your turn

1 Is 192.168.4.20 a public or a private address?

2 Is 203.0.113.8 public or private?

3 A school’s printer must always be found at the same address inside its LAN. Which two types of address should it have?

4 What does NAT do to a request that leaves the LAN?

  1. 1
    private: it is in the 192.168.x.x range used only inside LANs
  2. 2
    public: it is in none of the private ranges
  3. 3
    static and private: fixed, and used only inside the LAN
  4. 4
    it replaces the device’s private source address with the router’s public address, and keeps the mapping so the reply can be sent back to the right device
Tick what you can do now
Exam focusFor “static private”, give both halves: the address is fixed, and it is used only inside the LAN. A public address can be seen on the internet; a router holds one public address for the internet side and a private one for the LAN side.
Practise with s24/13 Q5(d); s26/11 Q7(c)(i); w25/11 Q7(a); s24/11 Q8(b)(i); w24/13 Q9(d)(i)
19 / 20
9618 · Unit 2 · Communication
Revisionbyexamplicity

URLs and the DNS

§2.1 · Networks · URL and the role of the DNS

You type a name such as www.example.org, but routers move packets by number. A URL (Uniform Resource Locator) is the text address people use for a resource on the WWW; the DNS (Domain Name System) finds the IP address that matches its domain name.

A URL (Uniform Resource Locator) is the text address people use for a resource on the WWW. Routers need numbers, so the DNS (Domain Name System) finds the IP address that matches its domain name.

https://www.example.org/notes/unit2.htmlprotocolhow to transfer itdomain namewhich web serverpaththe folderfile namethe resource
One URL, read these parts in orderhttps://protocol · how to transferwww.example.orgdomain name · which server/notes/path · the folderunit2.htmlfile name · the resource

Finding www.example.org

No single server knows every name, so the resolver asks in levels. Follow the numbers down the page, from the browser’s question to the web page.

BrowserDNS resolverRoot server.org serverexample.org serverWeb server1 www.example.org?2 where is .org?ask the .org server3 where is example.org?ask example.org’s server4 www.example.org?198.51.100.205 198.51.100.206 request /notes/unit2.html7 the web page
www.example.orgBrowser · uncached lookupDNS resolver1 namequery5 IP reply198.51.100.20Root server2 .org?.org referral.org server3 example.org?authority referralexample.org4 www?198.51.100.20Then the same browser requests the resource:BrowserWeb server198.51.100.206 request/notes/unit2.html7 page replyPage received

The DNS in one idea

  • People remember domain names; packets are routed by IP address.
  • A DNS server returns the matching IP address (steps 1 and 5).

Extra detail

  • Name servers hold parts of the domain-to-IP list in levels.
  • The resolver follows referrals from root to domain servers (steps 2 to 4), then caches the answer.

From URL to web page

Four stages, in order. Be able to say what the DNS does and what happens after it.

Your turn

1 In https://shop.example.net/bags/red.html, name the protocol, the domain name, the path and the file name.

2 What does a DNS server send back to the browser?

3 After the lookup, where does the browser send its request for the page?

  1. 1
    protocol https, domain name shop.example.net, path /bags/, file name red.html
  2. 2
    the IP address that matches the domain name, not the web page
  3. 3
    to the web server at that IP address
Tick what you can do now
Exam focusThe DNS returns an IP address, not the web page. After the lookup the browser sends its request to the web server at that IP address. A router does not look up URLs.
Practise with w25/11 Q7(c)
20 / 20