Servers: Machines Built to Answer One Kind of Request Well
A server is a computer system that provides a service, data or a resource to other computers, called clients, across a network.
Server is a role rather than a box: one physical machine can run a web server and a mail server at once, and one busy service can be spread across hundreds of machines.
The syllabus names six types, and each one is judged on the same four factors: function, scalability, reliability and security.
Note
This statement is HL only, so it can appear in the HL-only parts of a Paper 1 Section A question.
Every server section below follows the same four headings, which is the shape an examiner expects the answer to take.
DNS Server: Turning Names into Addresses
Function
Translates a human-readable domain name such as www.google.com into the numerical IP address a network actually routes to, such as 172.217.16.14.
Devices communicate using IP addresses, so without DNS a user would have to memorise an address for every site they visit.
Scalability
The name space is hierarchical, so a query for one domain is answered by the servers responsible for that branch rather than by one global machine.
Adding a new domain adds load only to its own name servers, which is how DNS has scaled to billions of names.
Reliability
Every domain is required to publish more than one name server, so one failure does not make the domain unreachable.
Results are cached by resolvers and by the client itself, which cuts response time and keeps names resolving during a short outage.
Security
Plain DNS has no way to prove an answer is genuine, so an attacker can reply with a false address and send users to a fake site.
DNSSEC signs the records so a resolver can check the reply came from the real name server.
Analogy
DNS is the contact list on a phone.
You look up a name, the phone finds the number, and the call is placed using the number rather than the name.
The analogy breaks where DNS differs from a contact list: the list is distributed across many servers, and no one machine holds all of it.
DHCP Server: Configuring Devices the Moment They Join
Definition
Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol (DHCP) automatically assigns IP addresses and network configuration settings to devices on a network.
Function
Assigns an IP address to a joining device automatically, along with the subnet mask, default gateway and DNS server it needs to use.
Addresses are handed out as a lease with an expiry, so an address returns to the pool when a device leaves.
Scalability
One pool of addresses can serve far more devices than it holds, because leases expire and are reused.
A campus with thousands of transient laptops is configured by one server instead of by hand at every desk.
Reliability
A failed DHCP server stops new devices joining, although devices holding a valid lease keep working until it expires.
Larger networks run a second DHCP server with a split pool so that neither one is a single point of failure.
Security
Reservations tie a fixed address to a known MAC address, so servers and printers always appear at the same place in firewall rules.
A rogue DHCP server on the same network can hand out a false gateway address and route traffic through an attacker, so switches are configured to accept DHCP replies only from trusted ports.
Example
A phone joining a cafe Wi-Fi network broadcasts a request for configuration.
The DHCP server replies with a free address, the mask, the gateway and a DNS server, and the phone is online without the user typing anything.
File Server: One Shared Store Instead of Copies on Every Machine
Function
Stores files centrally and serves them to many users, so everyone edits one copy rather than their own version.
File locking stops two people writing to the same file at the same time and losing one set of changes.
Scalability
Capacity grows by adding drives, and throughput grows by adding network bandwidth.
The limit is usually the network link rather than the disks, because every read crosses the LAN.
Reliability
RAID spreads data across several disks so the server keeps running when one disk fails.
RAID protects against disk failure but not against deletion, so scheduled backups are still needed.
Security
Access permissions decide which user or group can read, write or delete each folder.
Encryption at rest keeps the data unreadable if a drive is stolen from the building.
Note
A file server centralises the data but also centralises the risk.
One compromised account with wide permissions can reach every department's files at once, which is why permissions are set per group rather than per person.
Mail Server: Sending, Receiving and Storing Messages
Function
Accepts outgoing mail over SMTP, stores messages for each account, and releases them to clients over IMAP or POP3.
IMAP leaves the message on the server so several devices see the same mailbox, while POP3 downloads and usually removes it.
Scalability
Load balancing spreads incoming connections across a cluster, so peak-hour traffic does not queue behind one machine.
Storage grows separately from processing, because mailboxes keep growing even when the message rate does not.
Reliability
A domain lists several mail servers in priority order, so a sender falls back to the next one when the first does not answer.
Sending servers queue and retry for days rather than discarding mail, so a short outage delays messages instead of losing them.
Security
Spam filters and antivirus scanning inspect messages before they reach a mailbox.
SPF, DKIM and DMARC let a receiving server check that a message really came from the domain it claims, which is the main defence against forged sender addresses in phishing.
Note
Mail is the one service where the protocol names are examinable in both directions.
SMTP sends, IMAP and POP3 retrieve, and swapping them in an answer costs the mark.
Proxy Server: An Intermediary That Filters, Caches and Hides
Function
Sits between clients and the internet, forwarding requests on the client's behalf and returning the reply.
Because every request passes through it, the proxy is the natural place to filter content, log usage and cache popular pages.
Scalability
Caching means a page requested by 500 students is fetched from the internet once and served locally 499 times.
That cuts the bandwidth the organisation has to buy as the number of users grows.
Reliability
A single proxy is a bottleneck and a single point of failure, since nothing reaches the internet if it stops.
Organisations run a pair of proxies with automatic failover so traffic switches to the second one without users noticing.
Security
Outbound traffic leaves with the proxy's address, so an external site never sees the internal address of the client.
Blacklists and whitelists enforce which sites are reachable, and the request log gives a record of who went where.
Example
A school proxy blocks gaming and streaming sites during lesson hours.
It also caches the exam board site the week before mocks, so hundreds of simultaneous downloads use the link once.
Web Server: Delivering Pages Over HTTP and HTTPS
Function
Receives an HTTP or HTTPS request for a resource, builds or retrieves it, and returns it with a status code.
Static files are read straight from disk, while dynamic pages are generated per request from a database.
Scalability
A load balancer distributes requests across many identical web servers, so capacity grows by adding machines.
This works because the servers hold no session state of their own, which is what lets any of them answer any request.
Reliability
The load balancer health-checks each server and stops sending traffic to one that fails.
Copies in more than one data centre keep the site up when a whole site loses power.
Security
TLS encrypts the connection and proves the server's identity through a digital certificate, which is the difference between HTTP and HTTPS.
Input validation on anything the page sends to a database is what stops SQL injection and cross-site scripting.
Analogy
A web server is the waiter in a restaurant.
You order a dish, the waiter fetches it from the kitchen and brings it to the table, and you never see the kitchen.
Adding waiters is how a restaurant serves more tables, which is exactly what a load balancer does with more web servers.
The Four Factors Behind Every Server Answer
Function
Name the one job the server does, in the terms the syllabus uses, before saying anything else about it.
Scalability
Say what grows when demand rises: machines behind a load balancer, disks in an array, or branches in a hierarchy.
Reliability
Name the redundancy and say what a user actually experiences when one component fails.
Security
Pair each threat with the specific countermeasure for that server, since a general answer about encryption and anti-malware earns little.
Active recall
What does a DNS server return when it is given a domain name, and what does DNSSEC add?
Which four items does a DHCP server hand to a device, and what is a lease?
Why does RAID on a file server not remove the need for backups?
State which protocol a mail server uses to send and which two it uses to retrieve.
Give one way a proxy server improves scalability and one way it weakens reliability.