Computing systems, networks and requirements
Introduced| English | Meaning |
|---|---|
| system/ˈsɪstəm/ | The object or collection of objects chosen for analysis, separated conceptually from its surroundings. |
| requirement/rɪˈkwaɪəmənt/ | a condition or capability that a system must satisfy |
| non-functional requirement | A constraint or quality requirement, such as response time, availability or security. |
| functional requirement | A statement of a behaviour or service the system must provide. |
| authentication/ɔːˌθentɪˈkeɪʃn/ | Checking that a claimed identity is valid. |
| authorization/ˌɔːθəraɪˈzeɪʃn/ | Permission for an identified user or system to access a resource or perform an action. |
Six enrolments on launch day, 2013
- On 1 October 2013 the US government opened HealthCare.gov for health-insurance sign-ups. Millions of people visited; the site crashed and stalled under the load. Documents later released by Congress showed that only six people managed to enrol on the first day.
- The code could calculate premiums. The system 系统 still failed, because it was not built for the load. A system's requirements 需求 include its constraints, not just its functions.
Why did HealthCare.gov fail on launch day?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Only six people enrolled on the first day.
What a computer system is
- Hardware, software, data, people and the network that connects them. A failure in any one fails the whole.
- The CPU executes instructions; RAM holds the running program and data; secondary storage keeps data when power is off.
Which are parts of a computer system?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
A failure in any one fails the whole.
Functional and non-functional requirements
- Functional requirement 功能需求: what the system must do — "a student can book a room".
- Non-functional requirement 非功能需求: how well — availability, response time, capacity, security, accessibility. HealthCare.gov failed on these.
Verified identity, separate permission
Separate the identity check from the permission check in a fictional booking policy. Encryption does not change either decision.
Which is a non-functional requirement?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
It states how well, not what.
Authentication and authorization
- Authentication 身份验证 checks who a user is (password, token, biometric). Authorization 授权 decides what that user may do.
- A teacher and a student can both log in; only the teacher may change marks.
Match each check to its name.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
Identity, then permission.
Worked example: will the upload meet the requirement?
Requirement: a teacher's 12 MB video must upload in under 15 s on an 8 Mbit/s link. (Here 1 MB = 10⁶ bytes.)
- Bits: 12 × 10⁶ bytes × 8 = 9.6 × 10⁷ bits.
- Ideal time: 9.6 × 10⁷ ÷ 8 × 10⁶ bit/s = 12 s.
- Judgement: 12 s is the ideal; protocol overhead and other users reduce throughput, so with 25% overhead the time is 15 s — the requirement is only just met. Test under realistic load.
A 40 MB file (1 MB = 10⁶ bytes) is sent at 16 Mbit/s. What is the ideal transfer time in seconds?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
40 × 10⁶ × 8 = 3.2 × 10⁸ bits; ÷ 1.6 × 10⁷ = 20 s.
Threats and controls
- A threat model links an asset (marks), a threat (a student guessing a password) and a control (lockout after failed attempts, two-factor login).
- Validation checks data is reasonable; verification checks it was entered correctly.
Which control best answers "a student guesses a teacher's password"?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Match the control to the threat.
Encryption is not authorization. Encrypting data stops outsiders reading it, but it does not decide which logged-in user may change it. Each control answers a different threat.
Encryption decides which logged-in users may change data.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
That is authorization.
A system is hardware, software, data, people and networks. Specify functional and non-functional requirements, separate authentication from authorization, and test calculations such as transfer time against realistic conditions.
For a school library booking system, write two functional and two non-functional requirements, and one authorization rule.
What, how well, who may.