Fault Tolerance & Cybersecurity - Complete Interactive Lesson
Part 1: Redundancy, Encryption, and Network Security
🛡️ Fault Tolerance & Security
Part 1 of 7 — Redundancy, Encryption, and Network Security
Fault Tolerance
Fault tolerance is the ability of a system to support failures and still continue to function.
Redundancy
The primary method for achieving fault tolerance is redundancy — having backup components or paths.
| Type | Description | Example |
|---|---|---|
| Path redundancy | Multiple routes between nodes | Internet routing around a failed link |
| Data redundancy | Multiple copies of data | Backup copies kept on another device |
| Hardware redundancy | Backup equipment | Redundant servers, power supplies |
Internet Redundancy
A ---- B ---- C
| | |
D ---- E ---- F
If the link between B and C fails, data can route A → B → E → F → C or A → D → E → F → C. Multiple paths ensure no single failure brings down the network.
🔑 The Internet was engineered to be fault-tolerant, with redundant paths so that a single failure does not take down the network. If a device or connection fails, later data are sent along a different route, if one exists.
Concept Check 🎯
Cybersecurity Fundamentals
Encryption
Encryption transforms readable data (plaintext) into unreadable data (ciphertext) to protect it from unauthorized access.
| Type | Keys | Who can decrypt |
|---|---|---|
| Symmetric | One shared key for both encryption and decryption | Anyone with the shared key |
| Public key (asymmetric) | A public key encrypts; a private key decrypts | Only the holder of the private key |
With public key encryption, the sender does not need the receiver's private key to encrypt a message, but the receiver's private key is required to decrypt it. Certificate authorities issue digital certificates that validate who owns the encryption keys used in secure communications. (The math behind encryption is not on the AP exam.)
Common Threats
| Threat | Description |
|---|---|
| Phishing | Fake emails/sites tricking users into giving up passwords |
| Malware | Software designed to damage or gain unauthorized access |
| Computer virus | A malicious program that copies itself and gains unauthorized access, often by attaching to a legitimate program |
| Keylogging | A program records every keystroke to capture passwords |
| Rogue access point | A wireless access point that gives unauthorized access to a network; data sent through it can be intercepted |
Applied Recall ✍️
-
Having multiple backup paths or components so a system continues working after a failure is called _______.
-
Encryption that uses one shared key for both encryption and decryption is called _______ encryption.
-
An attack that tricks users into revealing passwords through fake emails or websites is called _______.
Security Classification 🔍
AP Exam Strategy: Fault Tolerance & Security
- Redundancy is the #1 fault tolerance mechanism — multiple paths and backups
- Know symmetric (one shared key) vs public key (public key encrypts, private key decrypts)
- Certificate authorities issue digital certificates that validate ownership of encryption keys
- Know common threats: phishing, malware and viruses, keylogging, rogue access points
- A single point of failure means the system is NOT fault tolerant at that point
- More connections in a network = more redundancy = more fault tolerant
AP-Style Application 🎯
Part 2: Key Processes
🛡️ Fault Tolerance & Security
Part 2 of 7 — Key Processes
Fault Tolerance: Working Despite Failures
When a system can support failures and still continue to function, it is fault-tolerant. The key idea is redundancy: the inclusion of extra components that can be used to mitigate failure if other components fail.
| Redundant component | How it tolerates faults |
|---|---|
| Extra paths | If one connection fails, data take another route. |
| Extra servers | If one server crashes, another keeps the service running. |
| Extra copies of data | If one drive fails, a backup copy on another device survives. |
Redundancy usually requires additional resources (more devices, more connections, more cost), but it provides the benefit of fault tolerance.
Concept Check 🎯
Why The Internet Survives Failures
The Internet has been engineered to be fault-tolerant, with abstractions for routing and transmitting data. Elements of complex systems fail at unexpected times, often in groups (a storm can knock out several connections at once), and fault tolerance lets users keep using the network.
| Failure | What the redundancy does |
|---|---|
| A cable is cut | Data are sent along a different route, if one exists. |
| A server crashes | Another server handles the requests. |
| A disk fails | A backup copy on another device is used. |
The redundancy of routing options between two points also increases the reliability of the Internet and helps it scale to more devices and more people.
Identifying Vulnerabilities
To find where a system can fail, look for a component that everything depends on.
Network: Lab–Hub, Library–Hub, Office–Hub, Hub–Internet.
- Every device reaches the Internet through Hub, so Hub is a single point of failure.
- The Hub–Internet connection is also a single point of failure.
- Adding a second connection from the Library straight to the Internet gives the Library a path that does not depend on the Hub.
Applied Recall ✍️
-
Including extra components so a system keeps working when others fail is called _______.
-
A component that every path depends on is called a single point of _______.
-
A system that can support failures and still function is called fault-_______.
Targeted Practice 🔍
AP Exam Strategy: Fault Tolerance
- Redundancy (extra components) = the canonical fault-tolerance answer.
- Redundancy costs additional resources; its benefit is fault tolerance.
- To identify a vulnerability, find a component that every path or process depends on.
- The Internet itself is a giant fault-tolerant system.
AP-Style Application 🎯
Part 3: Patterns & Examples: Authentication and Encryption
🛡️ Fault Tolerance & Security
Part 3 of 7 — Patterns & Examples: Authentication and Encryption
Authentication: Proving Who You Are
Authentication measures protect devices and information from unauthorized access. Two examples the AP exam names:
- A strong password is easy for the user to remember but difficult for someone else to guess based on knowledge of that user.
- Multifactor authentication (MFA) grants access only after the user presents several separate pieces of evidence, typically from at least two of these categories:
| Category | Meaning | Example |
|---|---|---|
| Knowledge | Something you know | A password or PIN |
| Possession | Something you have | A phone that receives a code |
| Inherence | Something you are | A fingerprint or face scan |
Each MFA step adds a new layer of security that must be broken to gain unauthorized access.
Concept Check 🎯
Encryption
Encryption is the process of encoding data to prevent unauthorized access. Decryption is the process of decoding the data.
| Approach | How it works |
|---|---|
| Symmetric | One key is used for both encryption and decryption. |
| Public key | A public key encrypts; a private key decrypts. The sender does not need the receiver's private key to encrypt, but the receiver's private key is required to decrypt. |
Certificate authorities issue digital certificates that validate the ownership of encryption keys used in secure communications; they are based on a trust model. You do not need to know the math of any encryption method; that is outside the AP exam.
Protecting a Computer
| Protection | Why it helps |
|---|---|
| Virus and malware scanning software | Helps protect a system against infection. |
| Regular software updates | All real-world systems have errors or design flaws that can be exploited; updates fix them. |
| Reviewing program permissions | Users can control what information programs collect about them. |
Applied Recall ✍️
-
A phone that receives a login code belongs to the _______ category of authentication factors.
-
Encryption that uses one shared key for both encryption and decryption is called _______ encryption.
-
Decoding encrypted data back into readable form is called _______.
Targeted Practice 🔍
AP Exam Strategy: Security Basics
- MFA uses at least two categories: knowledge, possession, inherence.
- Symmetric = one shared key. Public key = public key encrypts, private key decrypts.
- Certificate authorities validate who owns encryption keys.
- Malware scanning, regular updates, and reviewing permissions all protect a system.
AP-Style Application 🎯
Part 4: Connections: Parallel and Distributed Computing
🛡️ Fault Tolerance & Security
Part 4 of 7 — Connections: Parallel and Distributed Computing
Many Computers, One Problem
Fault tolerance uses extra devices so a system survives failures. The same idea of many devices working together also makes computing faster and lets us solve bigger problems.
| Model | Meaning |
|---|---|
| Sequential computing | Operations are performed in order, one at a time. |
| Parallel computing | The program is broken into multiple smaller sequential operations, some of which are performed at the same time. |
| Distributed computing | Multiple devices are used to run a program. |
Concept Check 🎯
How Long Does Each Solution Take?
We compare the efficiency of solutions by comparing the time they take to perform the same task.
- A sequential solution takes as long as the sum of all its steps.
- A parallel solution takes as long as its sequential tasks plus the longest of its parallel tasks.
Example: a teacher's grading program must load a class list (2 minutes, sequential), then grade three sections that take 4, 7, and 5 minutes.
| Solution | Time |
|---|---|
| Sequential | 2 + 4 + 7 + 5 = 18 minutes |
| Parallel (three processors, one section each) | 2 + 7 = 9 minutes |
Why Distributed Computing Matters
- Distributed computing allows problems to be solved that could not be solved on a single computer, because of either the processing time or the storage needed.
- It also allows much larger problems to be solved more quickly than a single computer could.
- Solutions that use parallel computing can scale more effectively than sequential solutions.
Examples: a weather model split across thousands of computers; a science project that sends small pieces of a huge data set to volunteers' computers.
Applied Recall ✍️
-
Performing operations in order, one at a time, is called _______ computing.
-
Using multiple devices to run a program is called _______ computing.
-
Independent tasks of 4, 7, and 5 minutes run sequentially take _______ minutes.
Targeted Practice 🔍
AP Exam Strategy: Parallel and Distributed
- Sequential time = sum of all steps.
- Parallel time = sequential tasks + the longest parallel task.
- Distributed computing = many devices; it handles problems too slow or too large for one computer.
- Read carefully: which steps MUST run in order, and which can run at the same time?
AP-Style Application 🎯
Part 5: Speedup and the Limits of Parallelism
🛡️ Fault Tolerance & Security
Part 5 of 7 — Speedup and the Limits of Parallelism
Measuring Speedup
The speedup of a parallel solution is measured as:
speedup = time to complete the task sequentially ÷ time to complete the task in parallel
| Sequential time | Parallel time | Speedup |
|---|---|---|
| 60 s | 30 s | 2 |
| 90 s | 30 s | 3 |
| 100 s | 80 s | 1.25 |
A parallel computing solution consists of a parallel portion and a sequential portion. Only the parallel portion gets faster when you add processors.
Concept Check 🎯
Worked Example: The Sequential Portion Sets a Floor
A program has a 30-second sequential portion and 60 seconds of work that can be split evenly across processors.
| Processors | Time | Speedup |
|---|---|---|
| 1 | 30 + 60 = 90 s | 1 |
| 2 | 30 + 30 = 60 s | 1.5 |
| 3 | 30 + 20 = 50 s | 1.8 |
| 6 | 30 + 10 = 40 s | 2.25 |
| 60 | 30 + 1 = 31 s | about 2.9 |
No matter how many processors are added, the program can never finish in less than 30 seconds, so the speedup can never reach 90 ÷ 30 = 3. When increasing the use of parallel computing, the efficiency of the solution is still limited by the sequential portion.
Choosing a Model
| Situation | Good fit |
|---|---|
| A small task with steps that depend on each other | Sequential |
| Many independent tasks of similar size | Parallel |
| A problem too slow or too large for one computer | Distributed |
Applied Recall ✍️
-
In the worked example, the speedup with 2 processors is _______.
-
No matter how many processors are added, the worked example can never finish in less than _______ seconds.
-
Speedup equals the sequential time divided by the _______ time.
Targeted Practice 🔍
AP Exam Strategy: Speedup
- Speedup = sequential time ÷ parallel time (bigger is better; 1 means no gain).
- Parallel time = sequential portion + longest parallel task.
- The sequential portion sets a floor on the time and a ceiling on the speedup.
- "Will doubling the processors double the speed?" → only if there is no sequential portion and the work splits evenly.
AP-Style Application 🎯
Part 6: Problem-Solving Workshop
🛡️ Fault Tolerance & Security
Part 6 of 7 — Problem-Solving Workshop
Fault Tolerance & Security Workshop
Practice the three kinds of reasoning this topic asks for: spotting weak points and adding redundancy, timing parallel solutions, and recognizing how attackers gain access.
Concept Check 🎯
Worked: Making a Service Survive Failures
A school's homework site runs on one server in one building with one Internet connection.
| Weak point | Redundancy that fixes it |
|---|---|
| One server | A second server that can take over |
| One Internet connection | A second connection from a different provider |
| One copy of the data | A backup copy kept on another device |
Each fix costs more, but each removes a single point of failure.
Worked: Phishing Triage
Phishing tries to trick a user into providing personal information, which can then be used to access accounts. Malicious links can be disguised in a web page or email, and unsolicited emails can come from unknown senders or from known senders whose accounts were compromised.
- Don't click links or open attachments you did not expect.
- Check the sender's address for look-alike spellings.
- Check where a link actually leads before following it.
- Verify by contacting the company at a phone number or website you already trust.
- Report the message as phishing.
Worked: Timing a Parallel Job
A job has a 6-second sequential step, then three independent tasks of 9, 4, and 7 seconds.
- Sequential: 6 + 9 + 4 + 7 = 26 seconds.
- Parallel on three processors: 6 + 9 = 15 seconds.
- Speedup: 26 ÷ 15 ≈ 1.7.
Applied Recall ✍️
-
A technique that tricks a user into giving away personal information is called _______.
-
In the timing example, the parallel job takes _______ seconds.
-
In the timing example, the job takes _______ seconds when run sequentially.
Targeted Practice 🔍
AP Exam Strategy: Workshop
- Find the single point of failure, then add a redundant component that bypasses it.
- Parallel time = sequential part + longest parallel task; speedup = sequential ÷ parallel.
- Phishing, malicious links, unsolicited attachments, untrustworthy downloads, keylogging, and rogue access points are how unauthorized access is gained.
AP-Style Application 🎯
Part 7: AP Review
🛡️ Fault Tolerance & Security
Part 7 of 7 — AP Review
AP Exam Recap — Fault Tolerance & Security
Concept Check 🎯
Final Vocab
| Term | Definition |
|---|---|
| Fault tolerance | Supports failures and still continues to function. |
| Redundancy | Extra components that mitigate failure; costs additional resources. |
| Sequential / parallel / distributed | One at a time / some at the same time / many devices. |
| Speedup | Sequential time ÷ parallel time. |
| Symmetric / public key encryption | One shared key vs. a public key to encrypt and a private key to decrypt. |
| Certificate authority | Issues digital certificates that validate ownership of encryption keys. |
| MFA | Access only after evidence from two or more categories: know, have, are. |
| Phishing / keylogging / rogue access point | Common ways unauthorized access is gained. |
| Malware / virus | Software meant to damage or control a system / a program that copies itself. |
Common Pitfalls
- Thinking redundancy is free; it costs extra resources.
- Adding parallel task times instead of taking the longest one.
- Forgetting the sequential portion limits speedup.
- Thinking the sender needs the receiver's private key to encrypt.
- Treating a password plus a second password as multifactor.
Applied Recall ✍️
-
Including extra components to mitigate failure is called _______.
-
A program that records every keystroke to capture passwords is used for _______.
-
A second proof of identity beyond the password is the second _______.
Targeted Practice 🔍
Final Exam Tips
- Fault tolerance comes from redundancy; find and remove single points of failure.
- Parallel time, speedup, and the limit set by the sequential portion.
- Symmetric vs. public key encryption; certificate authorities; MFA categories.
- Know how unauthorized access is gained: phishing, keylogging, malware, rogue access points, untrustworthy downloads.
AP-Style Application 🎯