layer4 cheat sheet Flashcards
(5 cards)
OSI Layer 4 (The Transport Layer)
🔹 Main Functions of the Transport Layer:
Segmentation
Reassembly
Flow Control
Error Checking
Multiplexing
Segmentation:
Breaks large data into smaller pieces (segments).
Reassembly:
Puts segments back together in the correct order.
Flow Control:
Prevents sender from overwhelming receiver (e.g., TCP window size).
Error Checking:
Ensures data is intact and in the right order (via checksums).
Multiplexing:
Uses port numbers to allow multiple conversations (apps) on one device.
TCPTCP (Transmission Control Protocol)
Connection oriented (3-way handshake)
Reliability Reliable – resends lost packets
Ordering Guarantees correct order
Speed Slower (more overhead)
Examples HTTP, HTTPS, FTP, SSH, Telnet
UDP (User Datagram Protocol)
Connectionless
Reliability Unreliable – no retransmission
Ordering No ordering guarantee
Speed Faster (less overhead)
Examples DNS, DHCP, TFTP, VoIP, streaming
TCP Header Fields:
Source Port
Destination Port
Sequence Number
Acknowledgment Number
Flags (SYN, ACK, FIN, RST, etc.)
Window Size
Checksum
UDP Header Fields:
Source Port
Destination Port
Length
Checksum