Day 30: TCP and UDP

CCNA 200-301 Study Guide: Transport Layer (Layer 4)

1.0 The Role of the Transport Layer (Layer 4)

The Transport Layer serves as the bridge between application-level protocols and the network-level protocols responsible for routing. It manages the end-to-end conversation between applications on different hosts.

1.1 Core Functions

2.0 Deep Dive: TCP (Transmission Control Protocol)

TCP is connection-oriented and designed for applications that require absolute data integrity. It has a 20-byte header.

2.1 Key Characteristics

2.2 Connection Management

2.3 Reliability Mechanisms

3.0 Deep Dive: UDP (User Datagram Protocol)

UDP is connectionless and prioritizes speed over reliability. It has a lightweight 8-byte header.

3.1 Key Characteristics

3.2 Strategic Use Cases

Ideal for real-time traffic like VoIP and Video Streaming, where a dropped packet is better than a delayed/retransmitted one that causes jitter.

4.0 Head-to-Head Comparison: TCP vs. UDP

Feature

TCP

UDP

Type

Connection-Oriented

Connectionless

Handshake

Yes (3-Way)

No

Reliability

Reliable (ACKs/Retransmits)

Unreliable (Best-effort)

Sequencing

Yes

No

Flow Control

Yes (Sliding Window)

No

Header Size

20 Bytes

8 Bytes

Common Uses

HTTP, FTP, SMTP, SSH

VoIP, DNS, DHCP, SNMP

5.0 Layer 4 Addressing: Port Numbers

Ports are 16-bit addresses (0 – 65,535) used to identify specific application processes.

5.1 Port Number Ranges

5.2 Essential Well-Known Ports for the CCNA

Protocol

Port(s)

Transport

Description

FTP

20, 21

TCP

File Transfer (21-Control, 20-Data)

SSH

22

TCP

Secure Remote Access

Telnet

23

TCP

Unencrypted Remote Access

SMTP

25

TCP

Sending Email

DNS

53

UDP/TCP

Name Resolution

DHCP

67, 68

UDP

Dynamic IP Assignment

TFTP

69

UDP

Trivial FTP

HTTP

80

TCP

Web Browsing (Cleartext)

POP3

110

TCP

Retrieving Email

SNMP

161, 162

UDP

Network Management

HTTPS

443

TCP

Secure Web Browsing

Syslog

514

UDP

System Logging

6.0 Practical Context & Key Exam Takeaways

6.1 Session Tracking

6.2 The DNS Exception

DNS primarily uses UDP 53 for speed. However, it switches to TCP 53 if the response exceeds 512 bytes or during Zone Transfers between servers.

6.3 Core Analogy




Revision #1
Created 2026-03-14 19:32:12 UTC by Tony Utter
Updated 2026-03-14 19:32:30 UTC by Tony Utter