Requirements describe the services a system must provide and the constraints on its operation. The SRS (IEEE 830, now ISO/IEC/IEEE 29148) records functional, non-functional and domain requirements precisely enough for customers to agree to it and for developers and testers to work from it.
Before an architect draws a line, the family says what it needs: three bedrooms, a prayer room facing east, a ramp for a grandparent, a ₹40 lakh budget and the municipality's setback rules. Some items say what the house must contain or do (functional), some say how well or within which limits (non-functional), and some come from the locality's rules (domain). Written up precisely and signed by both sides, that brief is the house's SRS — the contract everyone builds and inspects against.
Key points — the night-before list
Requirement = a service the system must provide or a constraint on its operation. User requirements (natural language + diagrams, for customers) vs system requirements (detailed, often contractual).
Functional: what the system does — services, reactions to inputs, behaviour, and what it must not do. Non-functional: constraints on those services — timing, standards, process; often system-wide.
Domain requirements come from the application domain (laws, formulas, standards); their problems are understandability and implicitness.
NFR metrics: transactions/s and response time; MB; training time and help frames; MTTF, POFOD, ROCOF, availability; restart time; % target-dependent statements.
Good SRS (IEEE 830): correct, unambiguous, complete, consistent, ranked for importance/stability, verifiable, modifiable, traceable. It states WHAT, not HOW.
Notations: natural language, structured natural language (forms), tabular, design description languages (PDL), graphical (use cases, sequence diagrams), mathematical/formal.
01What a requirement is — user vs system requirements
Requirements are descriptions of the services a system should provide and the constraints on its operation. They capture what customers need the system for — processing an application, collecting an EMI, finding information. The process of finding out, analysing, documenting and checking these services and constraints is requirements engineering (RE).
The word 'requirement' is used loosely, from a high-level abstract statement to a detailed mathematical specification. Davis (1993) explains why: a requirement may have to serve as the basis for a bid for a contract — so it must be open to interpretation — and also as the basis for the contract itself — so it must be defined in detail. Sommerville therefore separates levels of description:
Level
What it is
Typical readers
User requirements
Statements in natural language plus diagrams of the services the system provides and the constraints under which it operates; written for customers
Client managers, end-users, client engineers, contractor managers, system architects
System requirements
Detailed descriptions of the system's functions, services and operational constraints (a 'functional specification'); define exactly what is to be implemented; may be part of the contract
End-users, client engineers, system architects, software developers
Software design specification (older editions)
An abstract description of the software design — the bridge to detailed design and implementation
Client engineers (perhaps), system architects, software developers
TextOne user requirement refined into system requirements (HLAMS)
User requirement
1. HLAMS shall generate a monthly arrears report for each district office
listing loan accounts with overdue instalments.
System requirements
1.1 On the last working day of each month, HLAMS shall compile the list of
loan accounts having at least one instalment overdue.
1.2 The report shall be generated automatically after 18:00 on that day,
once the day's bank collection file has been posted.
1.3 One report shall be created per district office, listing account number,
applicant name, scheme, number of overdue instalments, amount overdue
and penal interest due.
1.4 Accounts with three or more overdue instalments shall be flagged for
recovery action.
1.5 Access to arrears reports shall be restricted to users holding the
'Revenue Officer' or 'District Manager' role.
Tip
Rule of thumb: user requirements say what, in the customer's language; system requirements say exactly what, in the developer's. Neither should say how — that is design.
02Functional, non-functional and domain requirements
Functional requirements say what the system must do: the services it offers, how it responds to particular inputs and how it behaves in particular situations — sometimes also what it must never do. HLAMS examples: 'A user shall be able to search applications by application number or applicant name.' 'The system shall generate an allotment letter for each successful applicant.' 'Each application shall receive a unique number.' 'The system shall not accept two applications from the same applicant in one scheme.'
In principle functional requirements should be complete (every service the user needs is defined) and consistent (no contradictions). In practice imprecision is the commonest problem: 'search applications' may mean 'search within my district' to a clerk and 'search the whole state' to a developer, and the developer naturally picks the easier reading. Ambiguity found after implementation is expensive.
Non-functional requirements (NFRs) restrict how those services are delivered — limits on timing, on the development process, or from standards that must be followed. They usually apply to the system as a whole rather than to individual features, and they are often more critical than individual functional requirements: a loan portal that collapses on the last day of a scheme is useless however many features it has. NFRs can also generate functional requirements (a security requirement produces login and access-control functions) and constrain the architecture.
Domain requirements come from the application domain of the system rather than from the specific needs of users. They may be new functional requirements, constraints on existing requirements, or specific computations. A library system must use a standard catalogue-search protocol; a train-protection system must use the domain's braking formula; HLAMS must compute EMIs by the banking reducing-balance formula and apply reservation rules laid down in Government Orders.
EMI = P × r × (1 + r)ⁿ ÷ ((1 + r)ⁿ − 1)
P = principal (₹), r = monthly rate = annual % ÷ 1200, n = number of months
e.g. P = ₹10,00,000, 9% p.a., n = 240 → r = 0.0075, EMI ≈ ₹8,997
A domain requirement: the formula is dictated by banking practice, not invented by users or developers.
Understandability — domain requirements are written in the language of the domain (actuarial, legal, engineering), which software engineers often do not understand.
Implicitness — domain specialists know the area so well that they do not think of stating the requirements explicitly; they only notice when the system gets it wrong.
PSC favourite
PSC 2025: the clause that is mandatory in an IEEE 830 SRS is functional requirements. PSC 2022: a good SRS contains functional and non-functional requirements but not algorithms for implementing the software — that is design.
03Classifying non-functional requirements
Sommerville classifies non-functional requirements by where they come from: the product itself, the customer's and developer's organisations, or the world outside the system and its development process.
TextTypes of non-functional requirement (Sommerville, 9th/10th edition)
Non-functional requirements
├── Product requirements — behaviour of the delivered product
│ ├── Usability
│ ├── Efficiency ──── Performance, Space
│ ├── Dependability
│ └── Security
├── Organisational requirements — policies and procedures of the
│ │ customer's and developer's organisations
│ ├── Environmental
│ ├── Operational
│ └── Development
└── External requirements — factors outside the system and its
│ development process
├── Regulatory
├── Ethical
└── Legislative ─── Accounting, Safety/security
Class
Sub-type
HLAMS example requirement
Product
Performance
95% of application-status queries shall be answered within 2 s with 2,000 concurrent users.
Product
Space
The mobile app shall need no more than 40 MB of device storage.
Product
Usability
A first-time applicant shall be able to complete an application in under 20 minutes without help.
Product
Dependability
HLAMS shall be available for 99.5% of office hours (9:00–18:00, Monday–Saturday).
Product
Security
All officer logins shall use two-factor authentication.
Organisational
Environmental (operating environment)
The district-office module shall run on the existing Windows PCs with 4 GB RAM.
Organisational
Operational (how it is used)
Officers shall log in with their KSHB employee ID through the State single-sign-on service.
Organisational
Development
The system shall be developed in Java following the Board's coding standard, with all source held in the Board's Git repository.
External
Regulatory
Online payment handling shall comply with the applicable payment-system regulations before go-live approval.
External
Ethical
The allotment draw shall be random and verifiable by observers; no officer shall be able to influence its outcome.
Personal data shall be processed in line with the Digital Personal Data Protection Act, 2023; financial records shall follow the Board's audit rules.
The 7th edition uses a slightly different tree, still common in question banks: product — usability, efficiency (performance, space), reliability, portability; organisational — delivery, implementation, standards; external — interoperability, ethical, legislative (privacy, safety). Learn both and read the options carefully.
NFRs are often written as goals — general intentions such as 'easy to use' or 'fast'. Goals help developers understand what users want, but they cannot be tested. A verifiable non-functional requirement uses a measure that can be checked objectively, under stated conditions.
Goal (not testable)
'The scrutiny screens should be easy for clerks to use.'
'The portal should respond fast.'
'HLAMS must be highly reliable.'
'The system must be secure.'
Verifiable requirement
'Clerks shall use all scrutiny functions after 4 hours of training; trained clerks shall average ≤ 2 errors per hour.'
'95% of searches shall return within 2 s with 2,000 concurrent users.'
'MTTF ≥ 1,000 hours; availability ≥ 99.5% of office hours.'
'Passwords stored only as salted hashes; an account locks after 5 failed attempts.'
Property
Measures (Sommerville)
Speed
Processed transactions per second; user/event response time; screen refresh time
Size
Megabytes; number of ROM chips (embedded systems)
Ease of use
Training time; number of help frames
Reliability
Mean time to failure (MTTF); probability of unavailability; rate of failure occurrence (ROCOF); availability; POFOD for on-demand services
Robustness
Time to restart after failure; percentage of events causing failure; probability of data corruption on failure
Portability
Percentage of target-dependent statements; number of target systems
Office hours per month = 9 h × 25 working days = 225 h
Allowed downtime at 99.5% availability = (1 − 0.995) × 225 h
= 1.125 h ≈ 67.5 minutes per month
Turning an availability requirement into something operators can monitor
NFRs interact and conflict. Two-factor login and short session timeouts (security) hurt usability; tuning code for one platform (performance) hurts portability; very high reliability raises cost. A classic example is a spacecraft whose low-weight requirement fights its low-power requirement. Conflicts are resolved by negotiation and prioritisation, and the trade-off and its rationale should be recorded in the SRS.
Watch out
Quantify only what you can actually test, and always state the conditions — load, data volume, hardware, time window. 'Response time ≤ 2 s' with no load figure is still not verifiable.
05Writing requirements: problems and notations
Natural language is expressive and understood by everyone, which is why most requirements are written in it. But it brings three classic problems (Sommerville): lack of clarity — precision is hard without making the text hard to read; requirements confusion — functional requirements, non-functional requirements, goals and design information get mixed up; and requirements amalgamation — several different requirements are expressed as one. Words such as 'appropriate', 'user-friendly', 'etc.' and 'and/or' are warning signs.
Invent a standard format and use it for every requirement.
Use language consistently: shall for mandatory requirements, should for desirable ones.
Highlight the key parts of each requirement (bold or italics).
Avoid computer jargon — the customer must be able to read it.
Give each requirement a unique identifier and a rationale (who proposed it and why).
Notation
Description
Best for
Natural-language sentences
Numbered sentences, ideally one requirement each
User requirements
Structured natural language
Natural language written on a standard form or template
System requirements
Tabular specification
Tables listing alternative conditions and the corresponding actions
Computations with many cases
Design description languages (PDL)
A programming-language-like notation with abstract features
Interface specifications (rarely used now)
Graphical notations
UML use-case and sequence diagrams, supported by text
Interactions and scenarios
Mathematical (formal) specifications
Finite-state machines, sets, Z/B/VDM
Safety- or security-critical parts; precise but hard for customers to read
Function : Compute EMI
Description : Computes the equated monthly instalment for a sanctioned loan.
Inputs : Sanctioned principal P (₹), annual interest rate R (%),
tenure n (months), scheme code
Source : Loan sanction record (Loan Processing sub-system)
Outputs : EMI (₹, rounded to the nearest rupee), repayment schedule
Destination : Loan account; applicant portal; sanction letter
Action : r = R / 1200. If r = 0 then EMI = P / n, otherwise
EMI = P × r × (1 + r)ⁿ / ((1 + r)ⁿ − 1).
The last instalment absorbs rounding differences.
Requires : Sanctioned principal, rate and tenure
Pre-condition : Loan status = SANCTIONED; 1 ≤ n ≤ 240; 0 ≤ R ≤ 20
Post-condition : Schedule of n instalments stored; principal parts sum to P
Side effects : Sanction letter regenerated
Condition (days an EMI is overdue)
Action
0
No penal interest
1 – 30
Penal interest = 1% of the EMI
More than 30
Penal interest = 2% of the EMI
Any of the above, applicant is a government employee
Penal interest computed above is halved
A tabular specification: every case is visible at a glance, so gaps and overlaps are easy to spot.
Agile teams write requirements as user stories — 'As an applicant, I want to download my EMI receipt so that I can claim the tax benefit' — each with acceptance criteria. Good stories follow INVEST: Independent, Negotiable, Valuable, Estimable, Small, Testable.
06The SRS document and the IEEE 830 structure
The software requirements document, or Software Requirements Specification (SRS), is the agreed, official statement of what the developers are to build. It contains the user requirements and a detailed specification of the system requirements. It should describe what the system does — its external behaviour — and not how it does it.
Reader
Uses the SRS to…
System customers
Specify the requirements and read them to check they meet their needs; specify changes
Managers
Plan a bid for the system and plan the development process
System engineers
Understand what system is to be developed
System test engineers
Develop validation tests for the system
System maintenance engineers
Understand the system and the relationships between its parts
Specify only external system behaviour.
Specify constraints on the implementation.
Be easy to change.
Serve as a reference tool for system maintainers.
Record forethought about the life cycle — anticipated changes.
Characterise acceptable responses to undesired events.
Those six properties of a good requirements document come from Heninger (1980). The standard outline most textbooks use is IEEE Std 830-1998, Recommended Practice for Software Requirements Specifications:
TextIEEE 830 SRS outline
1. Introduction
1.1 Purpose
1.2 Scope
1.3 Definitions, acronyms and abbreviations
1.4 References
1.5 Overview
2. Overall description
2.1 Product perspective (system, user, hardware, software and
communications interfaces; memory constraints;
operations; site adaptation requirements)
2.2 Product functions
2.3 User characteristics
2.4 Constraints
2.5 Assumptions and dependencies
2.6 Apportioning of requirements (deferred to later versions)
3. Specific requirements
3.1 External interface requirements (user, hardware, software,
communications interfaces)
3.2 Functional requirements (organised by mode, user class, object,
feature, stimulus, response or functional hierarchy)
3.3 Performance requirements
3.4 Logical database requirements
3.5 Design constraints (including standards compliance)
3.6 Software system attributes (reliability, availability, security,
maintainability, portability)
3.7 Other requirements
Appendixes
Index
IEEE 830 has been superseded by ISO/IEC/IEEE 29148 (2011, revised 2018), which covers stakeholder, system and software requirements specifications, but the 830 outline remains the exam reference. IEEE 830 also says what to leave out: design detail, and project requirements such as cost, delivery schedule, reporting procedures, development methods, quality assurance, V&V criteria and acceptance procedures — those belong in the project plan, QA plan or contract.
PSC favourite
Where does it go? Purpose, scope, definitions → section 1. Product perspective, product functions, user characteristics, constraints, assumptions and dependencies → section 2. External interfaces, functional, performance, logical database, design constraints, attributes → section 3.
07Characteristics of a good SRS
IEEE 830 lists eight characteristics that an SRS should have. Reviewers check each requirement — and the document as a whole — against them.
Characteristic
Meaning
Violation in an HLAMS draft
Correct
Every requirement stated is one the software shall meet — checked against higher-level documents and user needs
Requires 12% interest when the Government Order says 9%
Unambiguous
Every requirement has only one interpretation
'Applications shall be processed quickly'
Complete
All significant requirements included; responses to all valid and invalid inputs defined; all terms and units defined; no 'to be determined' gaps
Nothing says what happens if the payment gateway times out
Consistent
No subset of requirements conflicts — in characteristics, logic or terminology
One section rounds EMI down, another to the nearest rupee
Ranked for importance and/or stability
Each requirement carries an indicator of importance (essential, conditional, optional) or of how likely it is to change
All 300 requirements marked 'essential'
Verifiable
A finite, cost-effective process exists by which a person or machine can check each requirement
'The system shall be user-friendly'
Modifiable
Structure and style allow changes to be made easily, completely and consistently — organised, indexed, not redundant
The same eligibility rule copied in five sections
Traceable
The origin of each requirement is clear (backward), and it can be referenced by later design, code and tests (forward)
Requirements with no IDs and no recorded source
Memory aid
'Clever Users Can Check Requirements Very Methodically Throughout' → Correct, Unambiguous, Complete, Consistent, Ranked, Verifiable, Modifiable, Traceable.
Other textbooks add to the list. Rajib Mall stresses that an SRS should be concise, structured, give a black-box view (external behaviour only), have conceptual integrity, and specify responses to undesired events. Pressman's Quality Function Deployment (QFD) sorts requirements into normal (stated objectives), expected (so obvious the customer does not state them, yet their absence causes real dissatisfaction) and exciting (beyond expectations — they delight when present).
08A sample SRS fragment for HLAMS
The extract below shows how the ideas fit together on the page: numbered sections from the IEEE outline, identified and ranked requirements, 'shall' and 'should' used consistently, and measurable criteria.
1.2 Scope
HLAMS lets citizens apply online for KSHB housing loans and allotments,
and lets Board staff scrutinise, sanction, disburse, collect and report.
It does not manage construction contracts.
2.3 User characteristics
Applicants: general public, varied literacy, mostly on smartphones.
Clerks: trained in office software. Revenue Officers: domain experts.
2.4 Constraints
Must interoperate with the State payment gateway and SMS gateway;
must apply Government Orders on reservation in allotment.
3.2 Functional requirements — Loan sanction (feature LN)
FR-LN-01 (Essential) The system shall reject an application whose
applicant is younger than 21 or older than 60 on the date of
application, and shall display the reason.
FR-LN-02 (Essential) The system shall compute the EMI as specified in
the 'Compute EMI' form (Appendix B) and display it before sanction.
FR-LN-03 (Desirable) The system should let a sanctioning officer attach
a note of up to 500 characters to each decision.
3.3 Performance requirements
PR-01 95% of status queries shall complete within 2 s with 2,000
concurrent users on the production configuration.
3.5 Design constraints
DC-01 Data shall be stored in the Board's existing PostgreSQL cluster.
3.6 Software system attributes
SA-01 Availability ≥ 99.5% during office hours (9:00–18:00, Mon–Sat).
SA-02 Every change to a sanctioned amount shall be recorded in an audit
trail showing user, time, old value and new value.
Each requirement has an ID (traceable), a priority (ranked), and a measurable criterion where needed (verifiable). FR-LN-01 also says what the system does with invalid input (complete). DC-01 looks like design but is legitimate: it is a constraint imposed by the customer.
PSC favourite
Design constraints belong in an SRS when the customer imposes them (an existing database, a mandated standard, a required platform). What is excluded is the developer's own design — algorithms, module structure, internal data structures.
Worked examples
Try the problem first, then reveal the working one step at a time.
EX 1Classifying HLAMS requirements
Classify each requirement as functional, non-functional (with class and sub-type) or domain: (a) the system shall issue a unique number for every submitted application; (b) Aadhaar numbers shall be stored and displayed only in masked form; (c) EMI shall be computed by the reducing-balance method; (d) 95% of status queries shall be answered within 2 s; (e) the system shall be developed in Java following the Board's coding standard; (f) a clerk shall learn the scrutiny screens within one day of training; (g) the system shall not accept two applications from the same applicant in one scheme; (h) the allotment draw shall be open to observation by applicants' representatives.
EX 2From goals to verifiable requirements
Rewrite three goals from a draft HLAMS SRS as verifiable requirements: (i) 'The portal should be fast'; (ii) 'HLAMS should be highly available'; (iii) 'The system should be easy for applicants'. For (ii), compute the downtime the requirement allows per month if the target is 99.5% of 225 office hours.
EX 3Spotting defects in an SRS extract
Review this extract against the IEEE 830 qualities: R1 'Applications shall be processed quickly and the applicant notified.' R2 'The system shall store applications in a hash map keyed by Aadhaar number.' R3 'EMI shall be rounded down to the nearest rupee.' R7 'EMI shall be rounded to the nearest rupee.' R9 'Behaviour when the payment gateway is unavailable: to be decided later.' R12 'The interface shall be user-friendly.'
EX 4Placing items in the IEEE 830 outline
Under which section of an IEEE 830 SRS does each item belong? (a) glossary of terms such as EWS, LIG, EMI; (b) applicants have varied literacy and mostly use smartphones; (c) the system shall compute penal interest for overdue EMIs; (d) the payment gateway will be available from the State IT Mission; (e) data shall be stored in the existing PostgreSQL cluster; (f) the format of the file exchanged with each bank.
Practice session
Work each problem on paper first, then check. Marking one solved earns 10 XP.0/5 solved
Q1
Classify each as a product, organisational or external non-functional requirement (Sommerville 9th edition), naming the sub-type: (a) the app shall use at most 40 MB of storage; (b) officers shall authenticate using the State single-sign-on; (c) the system shall meet the regulator's requirements before payments go live; (d) the project shall follow the Board's documented test process; (e) records shall be retained as required by audit rules; (f) all data in transit shall be encrypted.
Q2
'The portal must be secure.' Rewrite this goal as three verifiable requirements.
Q3
An SRS requires 99.9% availability for HLAMS's payment service, which runs 24 × 7. What downtime does this allow per 30-day month and per year? What if the requirement is relaxed to 99.5%?
Q4
'The system shall allow applicants to upload documents.' List at least five pieces of information missing for this requirement to be complete and verifiable.
Q5
Name IEEE 830's eight SRS characteristics, then state which one each statement violates: (i) 'Response time shall be adequate'; (ii) a requirement with no ID or source; (iii) the same rule copied in five sections, and now edited in only four.
Exam traps
'The system shall send an SMS when a loan is sanctioned' is functional; 'the SMS shall be delivered within 60 s' is non-functional (performance). A security NFR often generates functional requirements such as login screens.
Domain requirements are classified by their source — the application domain — and may be functional or non-functional.
An SRS states WHAT, not HOW: algorithms, data structures and module designs do not belong in it, but customer-imposed design constraints (a mandated DBMS, a required standard) do.
'Complete' in IEEE 830 includes defining responses to invalid inputs and leaving no 'to be determined' gaps. 'Traceable' means both backward (to the source) and forward (to design and tests).
'Shall' marks a mandatory requirement and 'should' a desirable one; mixing them makes a ranked SRS misleading.
Quiz — KPSC style
12 questions. 70 % passes the topic quiz (+30 XP, +20 more for 100 %). Exam scoring: +1 correct, −⅓ wrong.
Software requirements & the SRS · Question 1 of 12✓ 0 · ✗ 0
A requirement stating how quickly the system must respond to a query is a(n):
Past-paper questions on this topic
Modelled on real KPSC questions (reworded) with the same concept and answer; each links to its original paper.
Past papers · Question 1 of 3✓ 0 · ✗ 0
Modelled on QP 091/2022 · Instructor Gr I (Engineering Colleges) in Information Technology & Computer Engineering (23 Sept 2022), Q.77 (reworded)original paper (PDF)
Which of these should NOT appear in a good Software Requirements Specification (SRS)?