Many computers as one: distributed, HPC and edge
Some jobs are too big, too spread out or too urgent for one computer. Many machines then share the work: the thousands of nodes of a supercomputer, strangers' computers in a peer-to-peer network, or small boxes in shops and phone masts. Every extra machine is another place where something can fail or be attacked. No technical background is assumed.
By the end of this unit you will be able to:
- Explain what a distributed system is and name four ways one fails
- Tell apart peer-to-peer, grid computing and a distributed ledger
- Name the four zones of a high-performance computing system and why nodes are cleaned between jobs
- Tell apart edge computing, fog computing and a content delivery network
- Choose a control for a weakness in a distributed, HPC or edge system
A gene study and a leftover file
An illustrative example
A university's supercomputer is shared by forty research groups. Each group submits jobs, which wait in a queue and then run on whichever machines are free.
A physics student's job finishes at midnight on a set of machines that a medical team's job uses next. The medical team's results include fragments of the physics data, left behind in the machines' memory. Nobody broke in. The next job simply started on machines that had not been cleaned.
No password was stolen and no rule was broken. What should happen between one job and the next?
Work shared across many machines
A national bank's cash machines, a booking system with data centres on three continents, a search engine: each is one service built from many computers working together. A distributed system is a set of separate computers, joined by a network, that coordinate to act as one system for its users.
Distribution buys capacity and resilience. If one machine fails, others carry on, and work can be split so that each machine takes a share. A large-scale parallel data system splits a huge data set into pieces, processes every piece on a different machine at the same time and combines the results. A year of a retailer's sales records can be analysed in minutes this way.
The price is that the parts must trust each other's messages, agree on the state of shared data and stay in step. Every machine is a component that must be secured, and every message between them crosses a network that may be watched or tampered with.
Peer-to-peer, grid computing and the shared ledger
- Peer-to-peer (P2P)
- Every computer in the network is both client and server, sharing directly with others, with no central server in charge. File-sharing networks work this way. Nobody vouches for what a peer offers, so shared files can carry malware, and joining exposes the computer to strangers.
- Grid computing
- Many computers, often owned by different organisations or volunteers, lend spare capacity to one large task. The task's owner does not control the machines, so a returned result may be wrong or deliberately false, and sensitive data should not be sent out to them.
- Distributed ledger
- A record of transactions kept in identical copies by many computers, with no single owner.
The best-known distributed ledger is the blockchain. NIST IR 8202 describes blockchains as tamper evident and tamper resistant ledgers, kept without a central repository and usually without a central authority. Transactions are grouped into blocks. Each block's header carries a link, a , to the previous block, so changing an old block breaks every link after it. Each transaction is by the user who submits it.
Anyone may join a permissionless blockchain; a permissioned one admits only approved members. Two weaknesses recur. A malicious group that gathers enough of the network's power, usually more than half, can push through its own version of the record. This is a 51 per cent attack. And users who lose their private key, or have it stolen, lose what the key controls, with no central body to reverse it.
What fails when the parts disagree
Distributed systems fail in ways a single computer cannot.
| Failure | What happens | Control |
|---|---|---|
| A weak node | One poorly secured machine is taken over and trusted by all the others | Harden and every node to one ; give each node only the trust its role needs |
| Unauthenticated messages | A forged message is accepted as if it came from a genuine node | Every node and every message is authenticated, for example with |
| Unsynchronised clocks | Logs from different machines cannot be put in order, and time-limited sign-ins are wrongly accepted or refused | All machines take time from one trusted source and record times in a common standard |
| Network partition | The network splits, and each half carries on, so their copies of the data drift apart | Rules for which side may keep writing, and reconciliation when the link returns |
Clock errors are easy to underrate. NIST SP 800-53 notes that accurate time is critical to and to authentication. An investigator who cannot order events across a hundred machines cannot reconstruct an attack.
High-performance computing: speed first
High-performance computing (HPC) is the supercomputer: thousands of computers linked by very fast networks to work on one problem, such as a climate model. Each computer is a node. A group of nodes run together is a cluster. A piece of work submitted to it is a job, placed on free nodes by a scheduler. Many nodes carry graphics processing units (GPUs), chips that do many simple calculations at once. The research groups or customers sharing the machine are its tenants.
NIST SP 800-223 divides an HPC system into four zones.
- The access zone: login nodes connected to outside networks, where users and administrators are authenticated.
- The management zone: the nodes administrators use to configure the system, schedule jobs and monitor it.
- The high-performance computing zone: the pool of compute nodes that run jobs in parallel.
- The data storage zone: very fast shared file systems holding enormous data sets.
Two weaknesses follow from sharing and from speed. A finished job can leave its data in a node's memory and GPUs for the next tenant, so nodes are sanitised between jobs: health-checked, and rebooted when in doubt. And ordinary security tools slow the machine. Malware scanning built for a laptop cannot cover a petabyte of storage without harming running jobs. HPC centres therefore scan data as it is written and lean on separation between the zones.
Edge and fog: computing near the source
A self-checkout camera that waits for a distant data centre to recognise each item would be too slow. Edge computing places processing on or beside the devices that produce the data: in the shop, on the factory floor, at the phone mast. NIST SP 500-325 calls the edge the layer holding the end devices and their users.
Fog computing adds a middle layer of fog nodes, such as gateways, routers or local servers, between those devices and the cloud. Fog nodes gather data from many devices, act on it locally and pass on only what the centre needs. NIST notes that fog is often wrongly confused with edge: fog is layered and hierarchical, while edge runs a fixed application in one place.
A content delivery network (CDN) applies the same idea to websites. Copies of content sit on servers close to users, so pages load quickly and the origin server is shielded from floods of traffic.
Edge sites bring their own . They are many, small and often unattended, so they can be stolen or tampered with. Each needs a locked enclosure, storage, remote monitoring and a way to be updated and wiped from the centre. It must keep working safely when its link to the centre fails.
| System | Purpose | Main weakness | Main control |
|---|---|---|---|
| Distributed system | Capacity and resilience | Parts trusting forged messages or a weak node | Authenticate every node and message |
| HPC | Speed on one huge problem | Data left between tenants' jobs | Sanitise nodes; separate the four zones |
| Edge | Fast responses beside the devices | Small sites exposed to theft and tampering | Physical protection, encryption, central management |
| Fog | Local processing between devices and cloud | Many intermediate nodes to secure | Harden and monitor each fog node |
A question, worked through
A university's HPC centre is about to admit a medical research group whose jobs will process patient data. Compute nodes are shared by all groups, and jobs from different groups run on the same nodes one after another.
Which control BEST protects the patient data from the next group's jobs?
Decide on your answer, then open the reasoning
- The risk is data left on shared compute nodes when one group's job ends and another's begins.
- Rule out b. Malware scanning looks for hostile code, not leftover data, and nightly full scans would slow running jobs.
- Rule out d. Separate login nodes divide the access zone, but the jobs still run on the same compute nodes.
- Between a and c: encrypting stored files protects them at rest, but a running job must decrypt its data into memory, where it stays after the job ends.
- Option a clears memory and GPUs between tenants, which is where the exposure lies.
Answer: A. Sanitise each compute node at the end of every job
Choosing between good answers
- Nodes in a distributed system accept each other's messages without checks
- choose authentication of every node and message.
- Logs from many machines cannot be put in order
- choose synchronising every clock to one trusted time source.
- HPC nodes pass from one tenant's job to another's
- choose sanitising the nodes between jobs.
- A question contrasts processing on the device with a layer between devices and cloud
- the first is edge computing, the second fog computing.
Check your understanding
4 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 4
What to remember
- A distributed system is many networked computers acting as one; a weak node, forged messages, unsynchronised clocks and network partitions are its typical failures.
- Peer-to-peer networks have no central server, grid computing borrows others' spare capacity, and a blockchain is a tamper-evident ledger kept by many parties.
- NIST SP 800-223 divides HPC into the access, management, high-performance computing and data storage zones.
- HPC nodes are sanitised between jobs because data can remain in memory and GPUs for the next tenant.
- Edge computing processes data on or beside the devices; fog computing adds a layer of fog nodes between devices and the cloud.
Say it from memory
What is a distributed system, what forms does it take, and how does it typically fail?
Separate networked computers acting as one system. Forms include peer-to-peer networks, grid computing, large-scale parallel data systems and distributed ledgers such as blockchains. Typical failures: a weak node trusted by the rest, unauthenticated messages, unsynchronised clocks and network partitions. Controls: harden every node, authenticate every message, one trusted time source.
Name the four zones of an HPC system and two weaknesses that come from sharing and speed.
Access zone, management zone, high-performance computing zone and data storage zone. Data left in memory and GPUs passes to the next tenant's job unless nodes are sanitised between jobs. Ordinary security tools, such as full malware scans, slow running jobs, so HPC relies on zone separation and scanning at write.
How does edge computing differ from fog computing, and what risks do edge sites bring?
Edge computing processes data on or beside the devices that produce it. Fog computing adds a layered tier of fog nodes, such as gateways, between devices and the cloud. Edge sites are many, small and often unattended, so they need physical protection, encrypted storage, central monitoring and updates, and safe operation when the link fails.
What is a large-scale parallel data system, and what price does distribution bring?
It splits a huge data set into pieces, processes every piece on a different machine at the same time and combines the results. The price is that the parts must trust each other's messages, agree on the state of shared data and stay in step. Every machine must be secured, and every message crosses a network that may be watched or tampered with.
How does a blockchain make tampering evident, and what is a 51 per cent attack?
Transactions are grouped into blocks, and each block's header carries a hash link to the previous block, so changing an old block breaks every link after it. Each transaction is digitally signed by its submitter. In a 51 per cent attack a malicious group with more than half the network's power pushes through its own version of the record.
Sources
- NIST IR 8202: Blockchain Technology Overview, NISTBlockchains as tamper evident and tamper resistant distributed ledgers without a central repository; blocks linked cryptographically to the previous header; signed transactions; permissionless and permissioned networks; malicious users gaining enough power; users storing their own private keys; the potential for a 51 per cent attack by obtaining enough computational or financial power.
- SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations, NISTTime service being critical to access control, identification and authentication, and time stamps in a common standard.
- NIST SP 800-223: High-Performance Computing Security: Architecture, Threat Analysis, and Security Posture, NISTThe four zones of an HPC system; compute nodes, GPUs, schedulers and multiple tenants; sanitising compute nodes so data in memory and GPUs is not leaked to the next job; malware scanning harming job performance and scanning at write.
- NIST SP 500-325: Fog Computing Conceptual Model, National Institute of Standards and TechnologyFog computing as a layered model of fog nodes between end devices and the cloud, the edge as the layer of end devices, and fog being confused with edge.