layer4 cheat sheet Flashcards

(5 cards)

1
Q

OSI Layer 4 (The Transport Layer)
🔹 Main Functions of the Transport Layer:
Segmentation
Reassembly
Flow Control
Error Checking
Multiplexing

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

TCPTCP (Transmission Control Protocol)

A

Connection oriented (3-way handshake)
Reliability Reliable – resends lost packets
Ordering Guarantees correct order
Speed Slower (more overhead)
Examples HTTP, HTTPS, FTP, SSH, Telnet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

UDP (User Datagram Protocol)

A

Connectionless
Reliability Unreliable – no retransmission
Ordering No ordering guarantee
Speed Faster (less overhead)
Examples DNS, DHCP, TFTP, VoIP, streaming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

TCP Header Fields:

A

Source Port

Destination Port

Sequence Number

Acknowledgment Number

Flags (SYN, ACK, FIN, RST, etc.)

Window Size

Checksum

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

UDP Header Fields:

A

Source Port

Destination Port

Length

Checksum

How well did you know this?
1
Not at all
2
3
4
5
Perfectly