1Transport Layer
Responsible for establishing a temporary communication session between two applications and delivering data between them.
2Transport Layer Responsibilities
Maintain and track multiple conversations (e.g., multiple browser tabs).
3Segmentation
Transport layer protocols segment the application data into appropriately sized blocks.
4Data Reassembly
At the destination, the transport layer reconstructs the pieces of data.
5Port Numbers
Used by the transport layer to identify the target application for data delivery.
6Reliability Management
Transport layer manages reliability requirements of a conversation.
7Transport Layer Protocols
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).
8TCP
Reliable, full-featured transport layer protocol ensuring all data arrives at the destination.
9UDP
Simple transport layer protocol that does not provide reliability.
10TCP Reliability Operations
Numbering and tracking data segments, acknowledging received data, retransmitting unacknowledged data.
11UDP Functions
Basic delivery of data segments with minimal overhead and data checking.
12UDP Type
Best-effort delivery protocol.
13Best-Effort Delivery
Unreliable delivery since no acknowledgment guarantees reception at destination.
14UDP Use Cases
Streaming live audio, live video, and Voice over IP (VoIP).
15TCP Type
Connection-oriented protocol.
16Connection-Oriented Protocol
Negotiates and establishes a permanent connection/session before forwarding traffic.
17TCP Segment Handling
Numbering and sequencing ensures segments are reassembled in proper order.
18Stateful Protocol
Protocol that keeps track of the state of the communication session.
19TCP State Tracking
Records which information has been sent and which has been acknowledged.
20TCP Header
20 bytes of overhead encapsulating application layer data.
21TCP Header Fields
Source Port (16 bits), Destination Port (16 bits), Sequence Number (32 bits), Acknowledgment Number (32 bits), Header Length (4 bits), Reserved (6 bits), Control Bits (6 bits), Window Size (16 bits), Checksum (16 bits), Urgent (16 bits).
22UDP State
Stateless protocol; neither client nor server tracks session state.
23UDP Datagrams
Pieces of communication in UDP.
24Port Numbers
TCP and UDP use headers to uniquely identify applications.
25Source Port
Dynamically generated by sending device to identify a conversation.
26Socket
Combination of source IP + source port or destination IP + destination port.
27Well-Known Ports
0–1023, reserved for common services (web, email, etc.).
28Registered Ports
1024–49151, assigned by IANA for specific applications.
29Dynamic/Private Ports
49152–65535, usually assigned dynamically by client OS.
30TCP Connection Establishment
Three-way handshake: client request, server acknowledgment, client acknowledgment.
31TCP Connection Termination
FIN control flag set in segment header.
32Two-Way TCP Session Closure
Uses a FIN segment and an ACK segment.
33TCP Connection Termination Steps
Client sends FIN, server ACKs, server sends FIN, client ACKs.
34Three-Way Handshake
Presence verification, service availability verification, informs destination of session intent.
35TCP Session Setup
Initial sequence number (ISN) is set.
36Flow Control
TCP mechanism controlling how much data the destination can reliably receive and process.
37Window Size
Number of bytes the destination device can accept and process at one time.
38Network Congestion
Overloaded routers discard packets.
39TCP Retransmission
Lost segments are retransmitted by source during congestion.
40UDP Characteristics
Simple, low-overhead protocol; not connection-oriented; lacks retransmission, sequencing, and flow control.
41UDP Data Handling
Reassembles data in order received and forwards to the application.
42UDP Best-Suited Applications
Live video/multimedia, simple requesteply, applications handling reliability themselves.
43Transport Layer Services
Divide application data into segments, add headers, reassemble segments, deliver to correct application.
44Common Transport Protocols
UDP and TCP.