Computers and networks in plain words

9 min 6 sections 5 practice questions 16 sources cited

A computer is a machine that follows written instructions and keeps information as numbers. A network is a set of computers joined so that they can pass information to each other. No background is assumed: each word is explained with something from ordinary life. Every protection, attack and rule in security is about one of the things these words name, so a security professional has to be at home with them.

By the end of this unit you will be able to:

  • Explain what a bit, a byte, a file, a program and a process are
  • Tell apart hardware from software, memory from storage and a client from a server
  • Describe how a request crosses the internet using addresses, packets and routers
  • Explain what a user account, an administrator, a database and a log are for
  • Name the part of a system that a described event belongs to

Three seconds between a tap and the word Booked

An illustrative example

Leila opens her doctor's surgery website on her phone at home and books an appointment for Thursday at ten. Three seconds later the screen says Booked.

In those three seconds her phone asked a computer in another town for the free times. That computer looked them up, changed its records and wrote a note of what it had done. Leila saw none of it.

How many separate machines and programs took part between the tap and the word Booked, and what did each one do?

Everything is stored as bits and bytes

A computer keeps every letter, photograph and sound as numbers. The smallest piece is a bit: a single value that is either 0 or 1, like a light switch that is off or on.

Eight bits make a byte. Eight switches can be set in 256 different ways, which is enough to give every letter, digit and punctuation mark of English a pattern of its own.

Larger amounts use prefixes. A kilobyte (kB) is a thousand bytes, a megabyte (MB) a million, a gigabyte (GB) a thousand million and a terabyte (TB) a million million.

Security measures many things in bits. An address or a secret number is described by how many bits long it is, and each added bit doubles the number of possible values.

Hardware, software and the operating system

A phone, a laptop and a cash machine are all computers. Hardware is the physical machine: the screen, the keyboard and the chips inside. Software is the set of instructions that tells the hardware what to do. A piano is hardware and sheet music is software: the same piano plays any tune it is given.

The inside of a desktop computer with its side panel removed: a large metal cooler, slim memory sticks standing upright, a circuit board with chips, a power unit at the bottom and bundled cables.

Hardware is the physical machine: open the case of a desktop computer and its separate parts, boards, chips and cables, can be seen and touched.

  1. 1Cooler. Metal fins that carry heat away from the main chip underneath.
  2. 2Memory (RAM). Working space for running programs; it empties when the power goes off.
  3. 3Circuit board with chips. The main board. Every other part plugs into it.
  4. 4Power unit. Turns mains electricity into the low voltages the parts need.

Photograph: ATX computer case - left - 2018-05-18 by Bretwa, CC BY-SA 4.0. Cropped and resized.

Software built into a device to make it start and run, such as the instructions inside a printer, is called firmware.

One set of instructions for one job is a program: a web browser for opening websites, a word processor for writing letters. A program that a person uses directly is also called an application, or app. Programmers write a program as source code, which is text that people can read. It is then converted into the form the machine runs.

A program that is running is a process. A recipe in a book is a program, and a cook following it is a process. One recipe can be cooked in three kitchens at once, and one program can run as three processes.

The operating system (OS) is the program that starts first and runs the machine on behalf of all the others. It shares out the hardware between processes, keeps the files in order and enforces who may do what. Windows, macOS, Linux, Android and iOS are operating systems.

The manager of an office building

An office building has one manager and many tenants. The manager allots the rooms, holds the keys and deals with every tenant's requests. No tenant rewires the building for themselves. An operating system stands in the same position between the programs and the hardware.

Software has faults, and its maker repairs them by issuing a patch: a small update that replaces the faulty part. Many close a weakness that an attacker could use, so installing them promptly matters.

Programs also make requests of each other. An application programming interface (API) is the fixed list of requests that one program will accept from another. A restaurant menu does the same job: a diner orders from the menu and never walks into the kitchen.

Files, memory and storage

A file is a named collection of information kept as one item: a letter, a photograph, a spreadsheet. Files are grouped in folders, also called directories.

A computer has two places to hold information, and they behave differently.

Memory and storage compared
PointMemoryStorage
What it holdsWhatever running programs are working on at this momentFiles and programs, whether in use or not
When the power goes offThe contents are lostThe contents stay
Also calledRAM (random access memory)Disk or drive
Everyday comparisonThe top of a desk, cleared every nightThe filing cabinet beside it

The difference matters after an attack. Traces held only in memory vanish when the machine is switched off, while files in storage remain.

Common misconception

“Memory and storage are two words for the same thing.”

Memory is working space that empties when the power goes off. Storage keeps its contents. Everyday speech often says memory for both, and security questions keep them apart.

A backup is a second copy of files kept somewhere else, so that they can be restored if the first copy is lost or damaged.

User accounts and administrators

A user account is the identity a system keeps for one person. It has a name, a way of proving the person is who they claim to be, such as a password, and a list of what the account may do. Giving the name and the proof is called signing in, or logging in.

Proving who someone is has the name authentication. Deciding what the account may then do is authorisation, and the things it may do are its permissions.

An administrator account may change the system itself: install software, create and remove accounts, alter settings and open any file. On some systems it is called root. Accounts with powers of this kind are privileged accounts.

A hotel shows the difference. A guest's key card opens one room. The manager's master key opens every room, and the office where key cards are made.

Whoever controls an administrator account controls the machine. Attackers therefore aim for these accounts, and a careful organisation gives them to few people and uses them only for administrative work.

Clients, servers, networks and the internet

A network is two or more computers connected, by cable or by radio, so that they can exchange information. The network inside one home or office is a local area network (LAN).

A server is a computer on a network that waits for requests and answers them. It holds the website, the email or the shared files. A client is the computer or program that asks. In a restaurant the diner is the client and the kitchen is the server.

The internet is the worldwide network formed by joining a great many separate networks: those of companies, governments, universities and internet providers. They work as one because they follow the same protocols, which are agreed rules for how computers exchange messages.

Every device on a network of this kind has an IP address, short for address. It is a number that says where data should be delivered, as a postal address does. The common form, IPv4 (version 4 of the Internet Protocol), is 32 bits long and is written as four numbers separated by dots, such as 203.0.113.10. The newer form, (version 6), is 128 bits long.

People use names instead, such as example.org. A directory service called the Domain Name System (DNS) turns the name into the address, as a phone's contact list turns a name into a number.

Data does not travel in one piece. It is cut into small packets, each labelled with the address it came from and the address it is going to. A long letter posted as numbered pages in separate envelopes travels in the same way.

A router is a device that joins networks and passes each one step nearer its destination, as a sorting office does with post. A home router joins the home network to the internet provider's network.

A white home router on a wooden table, with network cables plugged into the back, a black power lead and four upright white aerials.

A home router joins the home network to the internet provider's network, taking traffic both by cable and by radio.

  1. 1Network cable. Joins a computer to the router by cable.
  2. 2Aerial. Sends and receives data by radio.

Photograph: 20150208ipTIME A2004NS Wireless router by 최광모, CC BY-SA 4.0. Cropped and resized.

What takes part when a phone asks a server for something

What takes part when a phone asks a server for somethingA person signs in on a phone. The request passes through the home router and the internet to a server rented in the cloud, where a booking program uses a database and writes a log. The answer returns to the phone.Personsigns in toan accountPhonethe clientHome routerjoins networksInternetmany networksServer in the cloudBookingprogramLogwho did whatDatabasethe recordsBackupkept elsewhererequest, as packetsdeliveredthe answerWhat takes part when a phone asks a server for somethingA person signs in on a phone. The request passes through the home router and the internet to a server rented in the cloud, where a booking program uses a database and writes a log. The answer returns to the phone.Personsigns in toan accountPhonethe clientHome routerjoins networksInternetmany networksServer in the cloudBookingprogramLogwho did whatDatabasethe recordsBackupkept elsewherethe answer
Read this figure as text

A person books something on a phone. The figure names every machine and program that takes part, from the person's account to the backup, and the one boundary drawn is the server, which is rented from a cloud company.

  1. A person signs in to a user account on the phone. The account tells the system who is asking and what that account may do.
  2. The phone is the client: hardware running an operating system, with a browser as one of its processes. The browser sends the request as packets to the home router.
  3. The home router joins the home network to the internet provider's network and passes the packets on.
  4. The internet is many separate networks joined together. Routers pass each packet on by its IP address, one step at a time, until it is delivered to the server.
  5. The server is a computer that waits for requests and answers them. This one is rented from a cloud company. On it, the booking program is a process that reads the request and works out the answer.
  6. The booking program reads and changes records in the database, the organised store of records.
  7. The booking program writes an entry in the log, saying what was done, when and by which account.
  8. The database is copied to a backup kept somewhere else, so that the records can be restored.
  9. The answer returns from the booking program to the phone as packets, by the same kind of route.

Cloud, databases and logs

The cloud means computers, storage and software that belong to another company and are rented over the internet, in whatever amount is needed at the time. A web email service is a cloud service. The servers are real machines in someone else's building.

Renting does not hand over . The organisation still answers for its own information held there.

A database is an organised store of records that programs can search and change quickly. A common kind arranges the records in tables. In a table of patients, each row is one patient and each column is one fact about them, such as a date of birth. The program that looks after a database is a database management system (DBMS).

A log is a record of events, written automatically by a system as they happen: who signed in and when, what was changed, what failed. A visitors' book at a reception desk is a log. Without logs nobody can say afterwards what happened, or which account did it.

Worked example: Leila's booking, part by part

Leila taps Book on her surgery's website and sees Booked three seconds later.

  1. Leila has signed in. Her user account tells the surgery's system who is asking, and its permissions let her book for herself and nobody else.
  2. Her phone is the client. Its hardware runs an operating system, and the browser is one process among many.
  3. The browser asks a DNS server for the address behind the surgery's name. It then sends the request as packets labelled with that address.
  4. Her phone sends the packets by radio to her home router, which passes them to the internet provider. Routers on the internet pass them on, network by network.
  5. The packets reach a server that the surgery rents from a cloud company. A booking program on the server reads the request.
  6. The booking program asks the database for Thursday's free times and marks ten o'clock as taken.
  7. The program writes a line in the log: which account booked which time, and when.
  8. The answer travels back by the same kind of route, and the browser shows Booked.

Two computers at the ends took part, with at least one more that answered the DNS question and several routers between them. So did at least five pieces of software: a browser, an operating system at each end, a booking program and a database management system. Each is a place where information can be protected, and a place where something can go wrong.

A question, worked through

A firm of architects keeps its drawings on one server in the office. Every member of staff signs in to the server with the same administrator account, because that was quickest to set up. A drawing has been deleted. The server's log shows only that the administrator account removed it. The managing partner wants to be able to tell who did what in future.

Which change BEST meets the partner's aim?

  1. Give each person an account of their own, with only the access they need
  2. Buy a second server and copy every drawing to it each night
  3. Change the administrator password and share it more carefully
  4. Keep the server's log for five years where it is now kept for one
Decide on your answer, then open the reasoning
  1. The partner's aim is to know who did what. The stem says BEST, so the answer has to serve that aim better than the others.
  2. The decisive fact is in the log. It names an account, and every member of staff uses the same one.
  3. Rule out d. A log kept for longer still names only the shared account.
  4. Rule out b. A nightly copy is a backup. It would bring the drawing back, and it would say nothing about who deleted it.
  5. Between a and c: a new password that is still shared leaves the log as blind as before. Separate accounts let the log name a person, and they take administrator powers out of everyday use. The answer is a.

Answer: A. Give each person an account of their own, with only the access they need

Choosing between good answers

A scenario has several people sharing one account
treat the sharing as the fault. A log can name only an account, so nobody can be held to answer for what was done.
An option gives ordinary users an administrator account to save time
rule it out if any other option does the job. An administrator account can change or read anything on the machine.
A scenario says a service is in the cloud
picture a server in another company's building. The organisation still answers for its own information there.
A question turns on what is lost when a computer is switched off
separate memory from storage. What was only in memory is gone, and files in storage remain.

Try it

Follow one request from a laptop to a website, and name each device it passes through on the way.

Loading the preview.

Check your understanding

5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 5

Match each part of a network to what it does.

Choose the match for each entry. Every match has to be right.

What to remember

  • A bit is a 0 or a 1, and a byte is eight bits. The length of an address or a secret number is given in bits, and each added bit doubles the number of possible values.
  • Hardware is the machine and software is its instructions. The operating system is the software that runs the machine for every other program.
  • A program is a set of instructions, and a process is a program that is running. Memory holds what processes are working on and empties when the power goes off. Storage keeps files.
  • A client asks and a server answers. Data crosses the internet as packets, which routers pass along by IP address.
  • An administrator account can change the system itself, so it is given to few people and used sparingly.
  • A log records what happened and which account did it. A backup is a second copy kept for recovery. Neither does the other's job.

Say it from memory

  1. What is a bit, what is a byte, and what does adding one bit to a key or address do?

    A bit is a single value that is either 0 or 1. Eight bits make a byte, which can be set in 256 different ways. Each added bit doubles the number of possible values.

    Read this part again

  2. What is the difference between a program and a process, and what does the operating system do?

    A program is one set of instructions for one job, and a process is a program that is running. The operating system starts first and runs the machine for all the others: it shares out the hardware between processes, keeps the files in order and enforces who may do what.

    Read this part again

  3. How do memory and storage differ when the power goes off, and why does that matter after an attack?

    Memory, or RAM, holds what running programs are working on, and its contents are lost when the power goes off. Storage keeps its files. Traces held only in memory vanish when the machine is switched off, while files in storage remain.

    Read this part again

  4. What is the difference between authentication and authorisation, and what is a privileged account?

    Authentication is proving who someone is. Authorisation is deciding what the account may then do. A privileged account, such as an administrator or root account, may change the system itself: install software, create and remove accounts, alter settings and open any file.

    Read this part again

  5. How long are an IPv4 address and an IPv6 address, and what does DNS do?

    An IPv4 address is 32 bits long, written as four numbers separated by dots. An IPv6 address is 128 bits long. The Domain Name System turns a name such as example.org into the address.

    Read this part again

  6. What is a log, and does renting a cloud service hand over responsibility for the organisation's information?

    A log is a record of events written automatically by a system as they happen: who signed in and when, what was changed, what failed. Renting does not hand over responsibility: the organisation still answers for its own information held in the cloud.

    Read this part again

Sources