University of Leeds · FACULTY OF ELECTRICAL ENGINEERING

ELEC1401 Chap.8 Transport Services, TCP and UDP

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

Transport Services, TCP and UDP

Transport Services, TCP and UDP extends host-to-host network delivery into process-to-process communication. Ports let several application sockets share one host address and guide received data to the intended endpoint. UDP provides connectionless datagrams with process addressing and error detection but no built-in promise of ordered, complete delivery.

Applications can choose that smaller service when they manage recovery themselves or when freshness is more valuable than retransmitting late data. TCP establishes state and supplies a reliable ordered byte stream using sequence information, acknowledgements and retransmission. It also includes receiver flow control and network congestion response.

TCP does not preserve application message boundaries, so stream applications need a length or delimiter rule. The right comparison begins with the consequence of loss, reordering and delay, then selects service properties rather than treating either protocol as universally superior.

In this chapter

What this chapter covers

  • 01

    Process-to-process delivery

  • 02

    Port multiplexing

  • 03

    UDP datagrams

  • 04

    TCP byte stream

  • 05

    Flow and congestion control

  • 06

    Application message framing

Worked example · free

Choose transport properties for robot data

Q [6 marks]. A robot receives configuration commands and sends a live preview. Explain which delivery properties matter for each flow. The marks shown are not a published University marking scheme.
Three application processes converge on transport endpoints, where ports preserve process identity before the network carries packets between hosts.Three application processes converge on transport endpoints, where ports preserve process identity before the network carries packets between hosts.process Aprocess Bprocess Ctransportports + servicenetworkhost delivery
Three application processes converge on transport endpoints, where ports preserve process identity before the network carries packets between hosts.
  • 2Require complete ordered delivery for configuration because a missing or rearranged command can create an unsafe state.
  • 2Prioritise freshness for preview frames because a late frame can be less useful than a small loss.
  • 2State that security, rate and application framing remain separate design requirements.
A reliable ordered stream suits configuration, while timely datagrams can suit a preview that tolerates loss. The weighting is original practice guidance.
Sia tip — Write the application consequence of loss before naming TCP or UDP.
Glossary

Key terms

Multiplexing
Combining data from several application sockets into transport delivery.
Datagram
A self-contained message delivered without a connection-oriented byte stream.
Byte stream
An ordered sequence of bytes without preserved application record boundaries.
FAQ

Transport Services, TCP and UDP FAQ

Does UDP mean errors are ignored?

No. UDP includes a checksum and preserves datagram boundaries, but it does not retransmit or order data on behalf of the application. The application may detect loss, add recovery or accept missing late information.

Why does TCP need application framing?

TCP presents an ordered byte stream rather than a sequence of application records. A receiver can read different byte groupings from those sent, so the application must use lengths, delimiters or a fixed record structure.

How do flow and congestion control differ?

Flow control responds to receiver buffer and application capacity. Congestion control responds to pressure along the network path. A receiver can have ample space while router queues are overloaded, or the reverse.

Does TCP preserve my application's records?

TCP preserves byte order but not the boundaries between application writes. A receiver can obtain a record in several reads or several records together. The application must add a length, delimiter or fixed structure before it can reconstruct and interpret each message safely.

Study strategy

Exam move

Make a requirement table with rows for loss, order, delay, rate variation, message boundaries and security. Fill it for file transfer, configuration commands, live audio and simple queries before naming a protocol. This forces the service decision to follow application consequences. Draw three application processes sharing transport and label the port used to demultiplex each incoming segment or datagram.

Practise cases where the host address is correct but the port or listening socket is wrong. For TCP, list connection state, sequence numbers, acknowledgements, retransmission, flow control and congestion control, then give each a separate purpose. For UDP, state exactly which guarantees remain absent instead of using the vague word unreliable.

Rehearse byte-stream framing by splitting two logical records across different read boundaries and repairing the design with a length field or delimiter. Compare the protocols in balanced language: connection and recovery state add capability and cost, while smaller service gives the application more responsibility. Under timed conditions, answer with requirement, service property and consequence.

Review any statement that calls TCP secure or UDP fast without additional evidence, because neither conclusion follows from the protocol name alone. Finish each session by changing one requirement in a scenario and explaining why the transport recommendation changes or remains stable. Draw a four-tuple for several simultaneous connections to the same service and identify how their endpoint pairs remain distinct.

Invent stream reads that split and combine application writes, then recover records with both length-prefix and delimiter designs. Build a failure table that assigns corruption to detection, missing data to reliability, receiver pressure to flow control and router pressure to congestion control. Change a live preview into an archival recording and explain why tolerance for loss changes even when the media type remains video.

Test protocol recommendations against security requirements separately because neither base transport choice authenticates the application by itself. Conclude each comparison with what responsibility remains at the application layer.

Working through Transport Services, TCP and UDP in ELEC1401? Sia is AskSia’s AI Electrical Engineering tutor — ask any ELEC1401 Transport Services, TCP and UDP 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