Computer Network & Network Security System — Transport Layer, NEC licence examination syllabus (Nepal Engineering Council).
Two protocols at the same layer, because reliability is a cost — and not every application wants to pay it.
The layer below delivers packets between machines and makes no promises: packets may be lost, duplicated, or arrive out of order. The transport layer decides what to do about that, and TCP and UDP represent the two honest answers — fix it, or don't pretend to.
Connection-orientedA handshake before any data, so both sides agree on starting sequence numbers and window sizes.
ReliableEvery byte is numbered and acknowledged; anything unacknowledged is retransmitted.
OrderedSequence numbers let the receiver reassemble in order regardless of arrival order.
Flow controlledThe receiver advertises how much buffer it has, so a fast sender cannot overrun a slow receiver.
Congestion controlledThe sender also backs off when the NETWORK is struggling, which is a different problem from the receiver struggling.
Two details carry most of the marks. The sequence number counts bytes, not segments — which is why TCP can retransmit part of a segment or coalesce several. And the acknowledgement number is the next byte expected, not the last byte received, so an acknowledgement of 5001 means "I have everything up to 5000, send 5001 next".
ConnectionlessNo handshake. The first packet carries data.
UnreliableNo acknowledgements, no retransmission, no ordering.
HeaderSource port, destination port, length, checksum — 8 bytes total.
Reliable and fast. TCP is not slower per packet. It is slower to recover, because recovery means waiting for a retransmission.
Connectionless and unreliable. Related but distinct: connectionless means no setup, unreliable means no guarantee. UDP is both; the terms are not synonyms.
UDP has no checksum. It does. What it lacks is anything to do about a failed one, so a corrupt datagram is simply discarded.
TCP — connection-oriented, reliable, ordered, flow and congestion controlled, 20-byte minimum header.
UDP — connectionless, unreliable, 8-byte header, four fields.
Sequence numbers count bytes; the acknowledgement number is the next byte expected.
Flow control protects the receiver; congestion control protects the network.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loading…