University of Leeds · FACULTY OF ELECTRICAL ENGINEERING

ELEC1401 Chap.9 Error Detection and Reliable Delivery

- one subject, every graph, every model, every mark
6 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 9 of 10 · ELEC1401

Error Detection and Reliable Delivery

Error Detection and Reliable Delivery builds a protocol from mechanisms that close different failure gaps. Parity and checksums add evidence that can reveal some changed bits, but detection alone does not restore correct data. A receiver can discard damaged input and rely on retransmission. Acknowledgements report progress, yet lost data or lost feedback can leave a sender waiting forever.

A timer converts silence into a recovery action. Retransmission then creates possible duplicates when the original arrived but its acknowledgement did not, so sequence numbers distinguish new data from repeats. Stop-and-wait keeps one packet outstanding, simplifying state but wasting capacity during long round trips.

A complete trace records sender state, receiver expectation, data, acknowledgements, timeout and application delivery. The best explanation names which uncertainty each mechanism resolves rather than treating reliability as one indivisible feature.

In this chapter

What this chapter covers

  • 01

    Parity and checksums

  • 02

    Acknowledgements

  • 03

    Timeout and retransmission

  • 04

    Sequence numbers

  • 05

    Duplicate suppression

  • 06

    Stop-and-wait operation

Worked example · free

Compute a four-bit checksum

Q [6 marks]. Add four-bit words 1001 and 0111 using one's-complement arithmetic, then form the checksum and explain the receiver test. This weighting is not a University assessment scheme.
The upper arrow carries protected data toward the receiver, while the lower feedback path returns acknowledgement or triggers timer-based recovery.The upper arrow carries protected data toward the receiver, while the lower feedback path returns acknowledgement or triggers timer-based recovery.sendertimer + copyreceivercheck + deliverdata + sequence + checkacknowledgement or timeout recovery
The upper arrow carries protected data toward the receiver, while the lower feedback path returns acknowledgement or triggers timer-based recovery.
  • 2Add the words to obtain 10000, retaining the carry beyond four bits.
  • 2Wrap the carry into the low result: 0000 plus 1 gives 0001.
  • 2Complement to 1110 and explain that an all-ones receiver sum passes this simplified check.
The checksum is 1110. A passing check means this method found no inconsistency, not that every possible error is absent. The weighting is original practice guidance.
Sia tip — Preserve the fixed word width and show the end-around carry explicitly.
Glossary

Key terms

Parity bit
An added bit chosen to make the count of ones follow an agreed parity.
Timeout
A timer expiry that authorises recovery when expected feedback has not arrived.
Duplicate
A repeated packet produced when retransmission follows uncertain delivery or feedback.
FAQ

Error Detection and Reliable Delivery FAQ

Can a checksum correct an error?

A checksum primarily supplies detection evidence. When the receiver's check fails, a reliable protocol can discard the damaged data and request or await retransmission. Correction requires another mechanism or additional redundancy.

Why are sequence numbers needed?

If an acknowledgement is lost, a sender can retransmit data that the receiver already accepted. A sequence number lets the receiver recognise the repeat, suppress duplicate application delivery and acknowledge progress again.

What does a timeout prove?

A timeout proves only that expected feedback did not arrive soon enough. The data may be lost, the acknowledgement may be lost or the path may be delayed. The timer triggers recovery without identifying the cause.

How does a receiver handle a retransmitted duplicate?

The receiver compares the packet sequence number with its expected state. If the payload was already accepted, it suppresses another application delivery and repeats the acknowledgement. This lets the sender recover from lost feedback without causing the application to process the same data twice.

Study strategy

Exam move

Build reliability one failure at a time. Begin with a channel that can corrupt bits and add parity or a checksum. Then allow packet loss and add acknowledgements plus a timer. Finally lose an acknowledgement and introduce sequence numbers to prevent duplicate application delivery. Drawing this progression explains why every mechanism exists.

Practise one's-complement addition with a fixed word width, showing end-around carry and final complement. Use new bit patterns until the procedure is automatic. For protocol traces, draw sender and receiver lifelines and label data, acknowledgement, timeout, retransmission and delivery events. Keep a state note beside each endpoint: sender's oldest unacknowledged packet and receiver's next expected sequence.

Ask what each side knows after every arrow. Separate detection from recovery in written answers, and avoid claiming that a passing checksum proves perfection. Compare corruption, data loss and acknowledgement loss by the different evidence they leave. For stop-and-wait, calculate transmission time and identify the idle portion of the cycle before moving to pipelining.

Review mistakes by mechanism: checksum width, missing timer, wrong sequence expectation or duplicated delivery. Under exam pressure, narrate failure, evidence and corrective action in that order. Finish with a duplicate-acknowledgement case to confirm that your protocol remains safe when messages are delayed rather than permanently lost. Verify each checksum by adding the data and transmitted check value at the receiver.

Create separate traces for lost data and lost acknowledgement, highlighting that the sender timeout is the same while receiver delivery differs. Insert a delayed duplicate after progress and confirm that sequence state prevents another application delivery. Write one sentence explaining what a timer proves and another explaining what it cannot reveal.

Compare parity and checksum evidence without claiming either catches every error. End each diagram with an application-delivery count; reliable service should present each original payload once despite retransmission on the path.

Working through Error Detection and Reliable Delivery in ELEC1401? Sia is AskSia’s AI Electrical Engineering tutor — ask any ELEC1401 Error Detection and Reliable Delivery question and get a clear, step-by-step explanation grounded in how ELEC1401 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 8 of your subjects at University of Leeds, plus 1,000+ more Bibles across the AskSia library.
Sia - your ELEC1401 tutor, unlimited, worked the way the exam marks it
The full 3-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works
ELEC1401 · Introduction to Communication Systems - independent study guide on the AskSia Library. More University of Leeds subjects · Microeconomics across all universities