Cambridge AS & A Level · Part 1 · Chapter 2
Communication and Networking Technologies
How computers are joined together, from one cable between two machines to the whole Internet, and how a name like a web address turns into a number a router can use. Every figure, question and exam question from the chapter is here, with labs to try each idea.
Guru Jazzy🎯 Learning objectives
By the end of this chapter you should be able to:
- explain the purpose and benefits of networking devices
- describe the characteristics of a LAN and a WAN
- explain the client-server and peer-to-peer models, and the difference between a thin client and a thick client
- describe the bus, star, mesh and hybrid topologies
- Explain cloud computing
- Compare wired and wireless networks
- describe the hardware of a LAN and the role of a router
- describe Ethernet and how collisions are detected and avoided
- Explain bit streaming
- explain the difference between the World Wide Web and the Internet, and the hardware the Internet needs
- Explain IP addresses, URLs and the DNS
🧭 2.01 Why connect computers?
The first networks were WANs
In the 1970s a large organisation typically ran one big mainframe at its head office, with simple terminals attached. Linking mainframes at different sites with a wide area network (WAN) brought three benefits:
- a job could be run on a computer at another site
- data kept in archives somewhere else could be reached
- people at different sites could send each other messages, an early form of email
Then came LANs
In the 1980s cheap personal computers arrived, and the local area network (LAN) joined the PCs on one site. A LAN made these things possible:
- an application server holding software every PC could run
- a file server where users keep and share files
- a print server so many users can share one printer
- Email between users on the site
- The hope of a paperless office
Telling them apart today
| A typical WAN today | A typical LAN today | |
|---|---|---|
| What it joins | LANs at separate sites | devices on one site |
| Ownership | not owned by the organisation; links are leased from a PSTN or similar provider | owned by the organisation |
| The link | a dedicated, usually fibre-optic, link from one site's switch to another's | twisted-pair cable or WiFi |
| End-systems | none attached directly: each site has its own switch | attached directly |
| Other networks | is the connection between sites | one of many; it has a device that connects it to other networks |
🎮 LAN or WAN?
One possible answer
- It receives print jobs from many users and holds them in a queue (spooling), so nobody waits for the printer.
- It sends the jobs to the printer one at a time, and can give some jobs priority.
- It lets users pause or cancel their own jobs and reports problems such as "out of paper".
- It can record who printed what, for accounting or limits.
Internetworking
In the 1990s networks were joined into bigger and bigger internetworks, the biggest being the Internet. The 2000s added mobile phones and wireless connections, so people could be online almost anywhere.
🖥️ The client-server model
When PCs joined a network, the processing could happen in two places. In the client-server model a server offers a service and clients request it. There are two kinds of client:
The model is still widely used. Examples:
- a database server answering queries from many users
- a web application, where a user finds or supplies information through a browser
- e-commerce: browsing, ordering and paying on a shop's website
🎮 Thin or thick?
📁 Sharing files: peer-to-peer or client-server?
In a peer-to-peer (P2P) network each computer is both a client and a server: it can share its own files and download from others.
Peer-to-peer wins because…
- there is no single server, so no single point of congestion
- A big file is fetched in separate parts…
- …from many hosts at once, so it arrives faster
Client-server wins because…
- the organisation controls what can be downloaded and by whom
- files sit on one server that is regularly scanned for malware, so they are better protected
🎮 Which would you pick?
🕸️ 2.02 Network topologies
Any transmission between two devices needs five things:
- A sender
- A receiver
- A transmission medium to carry it
- The message itself
- a protocol: the agreed rules both ends follow
Which way can data flow?
| Mode | Meaning | Everyday example |
|---|---|---|
| Simplex | one direction only | a broadcast TV signal |
| Half duplex | either direction, but only one at a time | a walkie-talkie ("over") |
| Full duplex | both directions at the same time | a phone call |
Who receives the message?
- Broadcast: one sender, every device on the network receives it.
- Multicast: one sender, a chosen group receives it.
- Unicast: one sender, one receiver.
🎮 Mode and message type
Each scenario asks either about the direction of flow or about who receives it.
➖ Point-to-point and bus Figures 2.01–2.02
A point-to-point network is one dedicated link between two end-systems. It can be simplex, half duplex or full duplex. A WAN link between two sites is built this way.
In a bus topology every end-system taps into one shared cable:
- it is a multipoint connection, and a message sent by one is a broadcast that every other end-system receives
- only one end-system can transmit at a time
- it is quite resilient: if one end-system fails, the others carry on (but a break in the main cable stops it)
⭐ Mesh and star Figures 2.03–2.04
In a mesh every end-system has a direct link to every other, so every link can be full duplex and messages never queue for a shared cable. For end-systems it is unrealistic: with n devices you need n(n − 1)/2 cables. It is used where reliability really matters, such as between switches in a WAN and between routers on the Internet.
In a star each end-system has its own link to a central device. Messages go through it, so the central device must not fail. This is the usual layout of a LAN, and the central device is usually the one that connects the LAN to the Internet.
🔬 Lab: build a network and break it
Choose a topology and the number of end-systems. Then fail a device or cut a cable and see who can still talk.
Tap a device to fail it or repair it:
🧮 How many cables for a full mesh?
One possible answer
At home every phone and laptop connects to one WiFi router: a star. A school computer lab is a star of PCs round a switch, and the lab switches link to a core switch, so the school network is a star of stars. Turning on your phone's hotspot makes your phone the centre of a small star.
Hybrid networks
A hybrid network joins two or more networks with different topologies, using a special device to connect them. A common example is adding a WiFi network to an existing wired LAN: a wireless access point plugs into the LAN's switch.
🧵 2.03 Transmission media: cables
There are three types of cable: twisted pair, coaxial and fibre-optic. To choose between them, think about:
- Cost
- bandwidth: how much data per second
- attenuation: how quickly the signal weakens with distance, which is worse at high frequencies
- interference: noise picked up from other signals and electrical equipment
- how often repeaters are needed to boost the signal
| Twisted pair | Coaxial | Fibre-optic | |
|---|---|---|---|
| Cost | lowest | higher | highest |
| Bandwidth (data rate) | lowest | higher | much higher |
| Attenuation at high frequency | affected | most affected | least affected |
| Interference | worst | less | least |
| Repeaters needed | more often | more often | less often |
Table 2.01, rebuilt: comparing the three cable types.
Each type comes in different grades and standards, so these are general trends. Fibre is the usual choice for new installations, but replacing working copper is not always worth the cost.
Twisted pair is the cable of the telephone network and of most high-speed LANs. Twisting each pair of wires together cancels out much of the interference.
Show an answer
- UTP (unshielded) relies only on the twisting. It is cheap, thin and flexible: the normal cable for offices, homes and classrooms.
- STP (shielded) adds a foil or braided metal screen round the pairs. The screen blocks electrical interference and crosstalk between pairs.
- So STP is used where there is a lot of electrical noise: factories, near motors, lifts or power cables, or for very high data rates. It costs more, is stiffer and the shield has to be earthed.
Coaxial cable is used for cable TV and has been used for metropolitan area networks (MANs). Fibre-optic cable, usually bundled as in (b), carries data over long distances: between cities, countries and across oceans.
🎮 Choose the cable
📡 Wireless media Figure 2.07
All three are electromagnetic waves; the only difference between them is their frequency (or wavelength).
| Going up in frequency, from radio to infrared… | Trend |
|---|---|
| Bandwidth (data rate) | increases ↑ |
| Attenuation, mainly from rain | increases ↑ |
| Need for repeaters | increases ↑ |
| Ability to focus the beam in one direction | increases ↑ |
| Ability to pass through a wall | decreases ↓ |
| Interference | no clear trend |
Radio 3 kHz–3 GHz · Microwave 3–300 GHz · Infrared 300 GHz–400 THz
Infrared cannot get through walls, so it only works inside one room (think TV remote). For most purposes microwave is the best compromise.
🎮 Radio, microwave or infrared?
Cable or wireless?
- People call cable guided and wireless unguided, but that is misleading: a microwave beam can be aimed very precisely.
- Wireless frequencies are regulated; you cannot just use any frequency you like.
- Laying a cable across land needs the landowner's permission.
- For global links the choice is between fibre on the sea bed and satellites.
- Wireless suffers more from interference, but usually needs fewer repeaters.
- A mobile phone can only use wireless; at home you can choose either.
🛰️ Satellites Figure 2.08
Satellites carry signals where cables cannot go. Their orbits avoid the two Van Allen belts, zones of charged particles that would damage them.
| Orbit | Height | Satellites for global coverage | Used for |
|---|---|---|---|
| GEO (geostationary) | 35 786 km | 3 | stays over one spot: TV, long-distance links |
| MEO (medium Earth) | about 15 000 km | about 10 | GPS (navigation) |
| LEO (low Earth) | under 5 000 km | about 50; hundreds are in orbit | satellite phones and Internet |
The big drawback is delay: the signal has a long way to go. GPS and Internet access in remote places still need satellites, but undersea fibre has taken over most long-distance traffic.
🧮 Task 2.01: how long to the satellite?
Signals travel at about 300 000 km per second. Work out the delay in milliseconds.
🔌 2.04 LAN hardware
Wired LANs
The first LANs used coaxial cable in a bus; now twisted pair and fibre are normal. On a bus, each end-system plugs into a socket on the cable, and each end of the cable needs a terminator so signals are not reflected back. Twisted-pair cables end in RJ-45 connectors. A star needs more, and longer, cables because every end-system has its own run to the centre.
- A long cable weakens the signal (attenuation), so a repeater is fitted to boost it.
- A bus can be split into segments joined by a bridge. The bridge stores the addresses of the end-systems on each side, so it only passes on messages meant for the other segment.
- Every end-system needs a network interface card (NIC). Each NIC has a unique physical address (more in Chapter 17.05).
- In a star the central device is a hub, a switch or a router. Today it is most likely a switch.
- The servers for a LAN are attached like any other end-system.
Wireless LANs
A wireless LAN (WLAN) is usually called WiFi; the standard is IEEE 802.11 and it uses radio frequencies. A wireless access point (WAP) is wired to the LAN, and each device has a wireless network interface card (WNIC).
🎮 Name that device
🔁 2.05 Ethernet
Ethernet is the most common technology for wired LANs. It is standardised as IEEE 802.3, and there have been five generations:
| Generation | Data rate |
|---|---|
| Standard Ethernet | 10 Mbps |
| Fast Ethernet | 100 Mbps |
| Gigabit Ethernet | 1 Gbps |
| 10 Gigabit Ethernet | 10 Gbps |
| 100 Gigabit Ethernet | 100 Gbps |
The original, now legacy, Ethernet was a bus, or a star with a hub in the middle. Either way, every message was a broadcast on a shared medium, so two end-systems could transmit at once and their signals would collide.
CSMA/CD: carrier sense multiple access with collision detection
- Before sending, an end-system checks the voltage on the medium (carrier sense).
- If there is a voltage, someone else is transmitting, so it waits a random time and checks again.
- If the medium is idle, it starts to transmit.
- While transmitting, it keeps checking for a collision.
- If there is no collision, it carries on to the end.
- If there is a collision, it stops, sends a jamming signal so everyone knows, waits a random time and tries again.
🔬 Lab: collisions on a shared bus
Four stations share one cable. Queue some frames and step through. Two stations that find the bus idle in the same tick will collide. Then switch to switched Ethernet and try again.
Modern Ethernet is switched. Each end-system has its own full-duplex link to a switch, and the switch buffers frames and sends each one only to its destination. Nothing shares a medium, so there are no collisions and CSMA/CD is no longer needed.
🎮 Put CSMA/CD in order
Use ▲ and ▼ to put the steps in order, then check.
How to find out
On Windows open Settings → Network & internet → Ethernet (or run Get-NetAdapter in PowerShell) and look at the link speed. 100 Mbps means Fast Ethernet; 1 Gbps means Gigabit Ethernet. On a Mac, hold Option and click the network icon. School switches often have 10 Gbps fibre links between them.
🌍 2.06 The Internet's infrastructure
The Internet is the biggest internetwork in existence. Nobody designed it as a whole; it grew, one connection at a time.
Internet service providers
You connect through an Internet service provider (ISP). ISPs form a hierarchy:
- Access ISPs connect homes and businesses.
- They connect to middle-tier (regional) ISPs…
- …which connect to tier-1 ISPs, the global backbone carriers.
- ISPs at the same level can link at an Internet exchange point (IXP) instead of paying a higher tier to carry their traffic.
- Big content providers run their own networks and connect directly to these levels.
🎮 Trace a request up the hierarchy
Put the hops in order, from your laptop to a server on another continent.
One possible answer
The home broadband and mobile companies you see advertised in Thailand, such as AIS, True, 3BB and NT, are access ISPs (the big ones also run regional networks). Tier-1 carriers are international companies you rarely hear of, because they only sell to other ISPs.
Routers
The backbone is a mesh, and at each node sits a router. When data arrives, the router chooses the best next link towards its destination.
How to find out
Search for TeleGeography's submarine cable map. It shows every cable and its landing stations. Thailand has landing stations on both the Gulf of Thailand coast and the Andaman coast, so from Bangkok the nearest is a few hundred kilometres away.
The public switched telephone network (PSTN)
- The old telephone network (sometimes called POTS, plain old telephone service) was built for voice. A modem converted computer data into sound, giving slow dial-up access, shared and only when needed.
- An organisation could instead lease a dedicated line, permanently connected at a guaranteed speed. Leased lines are how WANs (and MANs) were built.
- PSTNs have since upgraded their main lines to fibre and digital technology. They now act as ISPs themselves, offering broadband and WiFi hotspots.
The cell phone network
Mobile phone companies are ISPs too. A phone talks by radio to a cell tower, and the mobile network passes the data on to the Internet.
🎮 Who does what?
🕸️ 2.07 Applications that use the Internet
The World Wide Web is not the Internet
People say "the web" and "the Internet" as if they were the same. They are not. The Internet is the internetwork: cables, routers and protocols. The World Wide Web (WWW) is a distributed application that runs on it: a huge collection of websites made of web pages. What makes a web page special is that it contains hyperlinks that jump straight to other pages.
🎮 Web or Internet?
Cloud computing
Cloud computing means providing computing services, usually over the Internet. An organisation can set up a private cloud in one of three ways:
- it builds and runs the cloud itself, on its own site, on a private network
- it pays a third party to build and run an on-site system on a private network
- it pays a third party to build and run a system it reaches over the Internet
The alternative is a public cloud, built, owned and run by a cloud service provider and open to individuals and organisations.
Cloud services are the familiar ones from file servers and application servers, reached through a browser from any device, anywhere. The difference is scale: they run on mainframes or server farms. The service is one of:
- infrastructure provision: storage and processing power you set up yourself
- platform provision: a ready environment to develop and test software
- software provision: finished applications
- more processing performance than you could own
- Huge storage capacity
- Development and testing facilities
- Runs high-performance applications
- No need to buy software licences
- No in-house technical expertise needed
- The provider can get at your data
- Privacy of personal data
- security: the provider might be attacked
- Data could be lost if the provider fails
🎮 Cloud decisions
🎬 Bit streaming Figure 2.09
Media such as video and music can be sent as a stream. A plain byte stream would be far too big, so the file is compressed and sent as a bit stream. There are two kinds:
- On-demand: the file already exists on a server. The user asks for it, the data goes into a buffer, and a media player plays it from there.
- Real-time (live): the event is being recorded as you watch, and the stream is sent out through a content provider's servers.
- The server sends data into the buffer faster than the player removes it.
- The player watches two marks. At the high-water mark it sends control data telling the server to stop (or slow down). At the low-water mark it tells the server to start again.
- The buffer must never fill up (data would be lost) or run empty (the video freezes).
- The user's connection must be fast enough for the bit rate. Servers keep several versions at different compression levels so a slower connection can still play.
🔬 Lab: keep the video playing
Buffer 1 MiB, low-water mark 100 KiB, high-water mark 900 KiB. Set the network speed and the video's bit rate, then press Play 60 s. Try a network slower than the bit rate.
🧮 Task 2.02: buffer arithmetic
The first question uses the coursebook's numbers. Assume the buffer starts empty and playback starts straight away. Bit rates use k = 1000; memory uses KiB = 1024 bytes.
🔢 2.08 IP addressing
The Internet runs on the TCP/IP protocol suite (Chapter 17). Every device needs an IP address. The version in general use is IPv4, which uses 32 bits: that allows 232 addresses. Since 210 ≈ 1000, that is roughly 4 × 1000 × 1000 × 1000: about four billion.
With about seven billion people, and roughly half of them online, four billion would just about do if each user needed one address. It is not that simple.
netID and hostID
The original scheme was hierarchical. Some bits give the network (netID) and the rest give the device on it (hostID). Routers only look at the netID to get the data to the right network; the hostID is only examined on arrival. (Strictly, a "host" is a network interface: a router with several interfaces needs several addresses.)
Classes
Addresses were allocated in classes. There were five; these are the first three:
| Class | Starts with | netID bits | hostID bits | Networks × hosts |
|---|---|---|---|---|
| Class A | 0 | 7 | 24 | 27 = 128 networks of 224 hosts |
| Class B | 10 | 14 | 16 | 214 networks of 216 hosts |
| Class C | 110 | 21 | 8 | 221 ≈ 2 million networks of 28 = 256 hosts |
Huge organisations got Class A. The trouble came when LANs of PCs became common: there were too few Class B netIDs, but a Class C network had too few hostIDs.
Dotted decimal notation
The hardware uses the 32-bit binary code. For people, each byte is written as its denary value, 0–255, with dots between: 10000000 00001100 00000010 00011110 is written 128.12.2.30.
🧮 Binary ⇄ dotted decimal
🎮 Which class?
Some options
- Plain 32-bit binary: exact, but very hard to read or copy.
- Hexadecimal bytes: 80.0C.02.1E. Shorter, and each hex digit is exactly 4 bits.
- Octal, three bits per digit.
- One single denary number: 2148270622. Compact, but the bytes are hidden.
- Different groupings, such as two 16-bit numbers.
Denary bytes won because most people find denary easiest, and each part still matches one byte.
🧩 Classless inter-domain routing (CIDR) Figure 2.10
CIDR keeps the idea of a netID and a hostID but lets the split point move. An 8-bit suffix says how many bits are the netID. With suffix 21, the netID is 21 bits and 11 bits are left for hostIDs: 211 = 2048 hosts. No bits are needed to show a class any more, but old Class A, B and C addresses still work with suffixes 8, 16 and 24.
🔬 Lab: CIDR explorer
Type an address and a suffix. The netID bits are shaded orange and the hostID bits blue. It starts on the coursebook's own example.
🧮 Find the hostID
Type your address below (for example a.b.c.d/n) and the checker will test it.
🏢 Sub-netting Figures 2.11–2.12
Sub-netting gives the hostID its own structure. Take an organisation of about 150 workstations, with six department LANs and a head-office LAN.
Under the original scheme each LAN would need its own Class C netID, each pointing at that LAN's gateway (a device that connects networks using different protocols, and acts as, or connects to, a router). That is 7 × 256 = 1792 addresses for 150 machines: 1642 wasted, and nobody else can use them.
With sub-netting the organisation gets one Class C netID, say 194.10.9.0 to 194.10.9.255. Every address points to one router. The router reads the 8-bit hostID: the top 3 bits pick the LAN and the other 5 bits pick the workstation. For example:
- 00001110: workstation 14 on LAN 0, the head office
- 01110000: workstation 16 on LAN 3
Only 106 of the 256 addresses are unused, which leaves room to grow, and six netIDs stay free for other organisations.
🧮 Route it through the router
Network 194.10.9.0; top 3 bits of the hostID = LAN (0 = head office), last 5 bits = workstation.
🔒 Network address translation (NAT) Figure 2.13
NAT breaks the rule that every IP address must be unique. Large organisations want private networks (intranets) that use the same protocols as the Internet. Isolation used to be the point, for security, but now they want Internet access as well.
The NAT box has one IP address that is visible on the Internet, used for sending and receiving. Inside, addresses must come from three ranges set aside for private networks (you do not need to learn them):
| Lower bound | Upper bound |
|---|---|
| 10.0.0.0 | 10.255.255.255 |
| 172.16.0.0 | 172.31.255.255 |
| 192.168.0.0 | 192.168.255.255 |
Any number of private networks can use the same addresses at the same time, and neither the Internet nor other private networks know. Software in the NAT box examines every incoming and outgoing transmission and can run a security check before passing incoming data to the right internal address. The loose arrows from the internal router show that the network inside can take any shape.
🎮 Private or public?
Static and dynamic addresses
An ISP has a large but limited set of hostIDs, often fewer than its number of customers. Luckily not everyone is online at once. So the ISP normally gives a user a dynamic address: it can change it when it likes, and it goes back into the pool when the user disconnects. A static address never changes, and costs extra.
How to find out
- Run ipconfig (Windows) or look in your phone's WiFi details. At home you will almost certainly see a private IPv4 address such as 192.168.x.x, given out dynamically by the router.
- That means your router is doing NAT: websites see the router's one public address, not yours.
- You may also see one or more IPv6 addresses, and a /24 style mask showing CIDR in use.
6️⃣ IPv6
Combining these IPv4 tricks keeps the Internet working, but not for ever. The replacement, IPv6, uses 128-bit addresses: 2128 of them, which allows much richer structure. They are written in colon hexadecimal: eight 16-bit groups of four hex digits. Two shortcuts are allowed:
- leading zeros in a group can be dropped: 00A1 → A1
- one run of all-zero groups can be replaced by :: (only once per address)
- an IPv4 address can be written inside IPv6, as in ::192.0.2.46
| IPv6 address | What it shows |
|---|---|
| 2001:0DB8:00A1:0000:0000:0000:0BAD:F00D | a full address |
| 2001:DB8:A1:0:0:0:BAD:F00D | leading zeros dropped |
| 2001:DB8:A1::BAD:F00D | the run of zero groups replaced by :: |
| ::192.0.2.46 | an IPv4 address used in IPv6 |
🧮 Shorten the IPv6 address
Write it as short as the rules allow.
Show the working
- 2128 ≈ 3.4 × 1038 addresses.
- The Earth's surface is about 4πr2 with r ≈ 6.37 × 106 m, so about 5.1 × 1014 m2.
- 3.4 × 1038 ÷ 5.1 × 1014 ≈ 6.7 × 1023 addresses per square metre.
Yes, easily: that is more than the number of atoms in a gram of most things. In practice addresses are given out in large structured blocks, so far fewer are actually used, but there is still plenty.
🔎 2.09 Domain names
Nobody wants to type a dotted decimal address to reach a web page or send an email. The domain name service (DNS, also called the domain name system) was invented in 1983 to give hosts readable names and to look up the IP address for any name.
- The database is spread over a huge number of domain name servers across the Internet, arranged in a hierarchy.
- Powerful root servers sit at the top. They are replicated: several copies of all their data are always kept.
- The name space is split into non-overlapping zones. Each zone has a primary name server holding its database, and secondary servers copy from it.
- There are over 250 top-level domains: generic ones such as .com, .edu and .gov, and country ones such as .uk, .nl and .th.
- A domain name is part of a URL (uniform resource locator), which identifies a web page, or of an email address. A domain is named by the path upwards from it: eng.cisco.com is the eng subdomain of the cisco domain in the com top-level domain.
Name resolution
Looking up a name to find its IP address is name resolution. A query has three possible outcomes:
- The domain is controlled by the server that was asked: it returns an authoritative, correct address.
- It is not, but the address is in the server's cache of recent lookups: that is returned, though it might be out of date.
- The domain is remote: the query goes to a root server, which gives the address of the name server for the top-level domain; that server gives the next one down, and so on until a server can give an authoritative address.
🔬 Lab: resolve a URL
Type a URL or pick one. Resolve the same one twice to see the cache at work. Your local name server is authoritative for school.example. (The IP addresses here are made up, from ranges reserved for examples.)
🎮 Valid IPv4 address?
Like exam question 6: each address is meant to be dotted decimal.
Some ideas
- Use precise keywords and put exact phrases in quotes: "IPv6 address" abbreviation rules.
- Narrow to trusted sources with site:, for example a standards body or a university.
- Check the date: networking figures go out of date fast.
- Compare two independent sources before you trust a number.
- Write down where each fact came from as you go.
📌 Summary
- Files can be shared using client-server or peer-to-peer networking.
- A LAN is most often a star.
- The main media are copper cable (twisted pair, coaxial), fibre-optic cable and wireless (radio, microwave, infrared).
- Choose a medium by bandwidth, attenuation, interference and the need for repeaters.
- CSMA/CD has been used to detect and deal with collisions on a shared medium.
- The Internet is the largest internetwork; ISPs provide access to it.
- Its infrastructure relies on PSTNs and cell phone companies.
- The World Wide Web is a distributed application that runs on the Internet.
- Addressing today is IPv4; IPv6 is the coming replacement.
- The DNS turns a domain name into an IP address.
🃏 Key-term flashcards
Tap a card to flip it.
✅ Quick quiz
📝 Exam-style questions
Write your answer first, then open the model answer. These are my mark-scheme-style points, not official mark schemes.
(i) Twisted pair; coaxial; fibre-optic.
(ii) Any two, each identified and explained:
- Bandwidth: the data rate the network needs, especially on links between buildings that carry everyone's traffic. Fibre has by far the highest.
- Attenuation: the signal weakens over distance; runs between buildings may be long, and copper suffers more at high frequencies.
- Interference: electrical noise from equipment or power cables corrupts data; twisted pair is worst, fibre is immune.
- Repeaters: long copper runs need repeaters more often, adding equipment and points of failure.
(i) WiFi (IEEE 802.11, radio): wireless access points connected to the wired network in each building, with a WNIC in each device. Or a point-to-point microwave link between buildings, using directional antennas with a clear line of sight.
(ii) No cables to lay between or through buildings, so it is quicker to set up and devices can be moved or added easily.
(iii) Any one: more interference; signals blocked or weakened by walls; signals can be picked up outside the building, so security is weaker; usually a lower data rate than cable.
(i) The public switched telephone network: the telephone companies' network, which carries voice calls and also data.
(ii)
- The company leases dedicated lines from the PSTN between its buildings (or to the Internet).
- A leased line is permanently connected, with a guaranteed transmission speed.
- The PSTN's lines are now fibre and digital, so high data rates are possible.
- The PSTN installs and maintains the links; it can also act as the company's ISP, providing broadband Internet access.
(i) Software: a hierarchical, distributed database. Hardware: domain name servers.
(ii)
- Web browser: the user types a URL; the browser takes the domain name from it and asks the DNS for the web server's IP address, then sends the request to that address.
- Email: the domain name after the @ in the recipient's address is looked up to find the IP address of the mail server that should receive the message.
(i) Dotted decimal notation. The 32 bits are split into four bytes; each byte is written as its denary value (0–255), with dots between them.
(ii) Class C: 205 = 11001101, which starts with 110.
(iii)
- The address is hierarchical: the netID identifies the network and the hostID identifies the device on that network.
- Routers only need the netID to send data across the Internet to the right network…
- …so routing tables stay small and routing is efficient; the hostID is only examined when the data reaches that network.
10011000. The suffix 24 means the first 24 bits are the netID, so the hostID is the last 8 bits: the byte 152 in binary.
- The media player uses a buffer on the user's computer.
- The server sends data into the buffer at a higher bit rate than the player takes it out.
- Playback only starts once enough data has built up in the buffer.
- The player watches a high-water mark: when it is reached, it sends control data to the server to stop or slow the transmission, so the buffer does not overflow.
- It also watches a low-water mark: when it is reached, it tells the server to send again (or faster), so the buffer never empties.
- The user's connection must have enough bandwidth for the video's bit rate.
- The server can offer the video at several compression levels, so a lower bit rate can be used on a slower connection.
(a) Inside a private network (an intranet or a home or school LAN) that is separated from the Internet, for example behind a NAT box or router. The same addresses can be reused in many different private networks.
(b)
- Three address ranges are reserved for private use and are never allocated as public addresses.
- Routers on the Internet do not forward data addressed to a private address.
- A NAT box at the edge of the private network has a public address; it replaces the private source address on outgoing data with its own…
- …and on incoming data looks up which internal (private) device it is for.
- Public addresses are allocated by ISPs and registries, so each is unique on the Internet.
(i) 11 → 0B, 64 → 40, 255 → FF, 90 → 5A, so 0B.40.FF.5A (one mark per byte).
(ii) An IPv4 address is 32 bits, written as four bytes, each in denary from 0 to 255, separated by dots. It is made of a netID and a hostID.
- The URL contains the protocol, the domain name and the path to the resource.
- The browser extracts the domain name and sends it to a DNS server.
- The DNS server looks it up in its database or cache; if it cannot answer, the query is passed through the hierarchy (root server → top-level domain server → …).
- The IP address of the web server is returned to the browser.
- The browser sends its request to that IP address; the server uses the path to find the resource and sends it back.
Cambridge International AS & A Level Computer Science 9608, Paper 12 Q9, June 2015
(a) Internet Protocol.
| Address | Valid? | Reason |
|---|---|---|
| 3.2A.6AA.BBBB | Invalid | 6AA and BBBB are bigger than FF, so they do not fit in one byte. |
| 2.0.255.1 | Valid | Four parts, each between 0 and 255. |
| 6.0.257.6 | Invalid | 257 is bigger than 255, so it does not fit in one byte. |
| A.78.F4.J8 | Invalid | J is not a hexadecimal digit. |
(c) Any two:
- A public address is unique on the whole Internet; a private address only has to be unique inside its own network and is reused in many networks.
- A public address can be reached from the Internet; a private one cannot be routed on the Internet and is only reachable inside the private network (via NAT).
- Private addresses come from three reserved ranges; public addresses are allocated by an ISP or registry.
Cambridge International AS & A Level Computer Science 9608, Paper 11 Q7, June 2016
Guru Jazzy · Cambridge AS & A Level Computer Science · Chapter 2 Communication and Networking Technologies · Figures from the Cambridge coursebook (Langfield & Duddell)