Menu

Earn Premium with Referrals

Invite your friends and earn Premium rewards through our referral program.

See how it works and start inviting friends.

Introduction to Transport Layer
CN

Introduction to Transport Layer

End-to-end communication explained: How data is chopped into segments and delivered to the right application.

The Transport Layer (Layer 4) is the bridge between the application and the network. While the Network Layer delivers data between hosts, the Transport Layer delivers data between applications running on those hosts.

Key Responsibilities

ResponsibilityWhat it does
SegmentationSplits large application data into chunks (segments) that fit network limits
End-to-end deliveryRoutes data to the correct application on the destination host
MultiplexingAllows many apps (browser, chat, email) to share the same network connection
ReliabilityOptional — TCP provides it, UDP doesn’t

Port Numbers

The transport layer uses 16-bit port numbers (0-65535) to identify applications. Every connection is uniquely identified by a 5-tuple:

(Source IP, Source Port, Destination IP, Destination Port, Protocol)

The Two Protocols

ProtocolReliabilityConnectionUse case
TCPReliable (ACKs, retransmission)Connection-orientedWeb, email, file transfer
UDPUnreliable (best effort)ConnectionlessStreaming, gaming, DNS

Q: What is the primary job of the Transport Layer?

A: End-to-end communication between applications. The Network Layer gets data to the right computer; the Transport Layer gets it to the right app (via port numbers).

Q: Why do we need to segment data?

A: To avoid overwhelming the network with one giant transmission. Segmentation allows fair sharing of the link between multiple connections and efficient retransmission — only the lost segment is resent, not the entire file.

My Private Notes

Notes are auto-saved locally to this device.