Introduction to the Internet Protocol
Chapter 6 — Introduction to the Internet Protocol
Four TCP/IP layers, thousands of ports, and one end-to-end journey. This study map connects protocols to ports, TCP and UDP to their behavior, IP to routing, ARP to local delivery, and GRE/IPSec to secure tunneling.
TCP/IP and OSI Mapping
TCP/IP is the open protocol suite used by the Internet and most private networks. Its four layers combine the seven OSI layers into a practical implementation model.
| TCP/IP layer | OSI equivalent | Primary responsibility |
|---|---|---|
| Process/Application | 7, 6, 5 | Application services, representation, and sessions |
| Host-to-Host | 4 Transport | End-to-end delivery, reliability, and ports |
| Internet | 3 Network | Logical addressing, routing, and packets |
| Network Access | 2 and 1 | Frames, MAC addresses, media, and signals |
Protocol & Port Explorer
Select a protocol to connect its port, transport, purpose, and security clue.
Secure Replacement Flip Cards
Flip each older service to reveal the secure exam choice.
Secure terminal?
SSH · TCP 22. Encrypts authentication and terminal traffic.
Secure file transfer?
SFTP · TCP 22. Transfers files through SSH; it is not FTP with TLS.
Secure web?
HTTPS · TCP 443. Protects browser-server traffic with TLS.
Secure directory?
LDAPS · TCP 636. Encrypts directory queries and credentials.
Secure submission?
Submission · TCP 587. TLS protects submitted email in transit.
DHCP DORA & APIPA
DHCP uses UDP 67 on the server and UDP 68 on the client to deliver addressing, gateway, DNS, and domain information.
Monitoring, Logging & Time
| Syslog level | Severity | Meaning |
|---|---|---|
| 0 | Emergency | System unusable |
| 1–3 | Alert–Error | Immediate or serious condition |
| 4–5 | Warning–Notice | Potential problem or notable event |
| 6–7 | Information–Debug | Normal detail or diagnostics |
TCP versus UDP
TCP
Virtual circuit, sequencing, acknowledgments, retransmission, windowing, and higher overhead.
UDP
No built-in delivery guarantee, order, or flow control; low overhead and fast delivery.
Reliability vs. speed
TCP suits web, email, files, and remote access. UDP suits voice, video, simple queries, monitoring, and broadcasts.
TCP Session Animator
A TCP connection starts by synchronizing sequence numbers. Step through SYN, SYN/ACK, and ACK.
TCP Header & Flags
| Flag | Meaning | Exam clue |
|---|---|---|
| SYN | Synchronize sequence numbers | Starts connection |
| ACK | Acknowledgment field valid | Confirms received data |
| FIN | Graceful finish | Normal close |
| RST | Immediate reset | Abort or reject |
| PSH | Push promptly | Deliver to application now |
| URG | Urgent pointer valid | Urgent data |
Internet Protocol, TTL & MTU
IP provides logical addressing and routing on a best-effort basis. It does not guarantee delivery, order, or recovery.
TTL
Each router decrements Time to Live. A packet is discarded when TTL reaches zero.
MTU
Largest Layer 3 packet a link carries without fragmentation. Path-MTU problems may break large transfers while small packets work.
Protocol field
Identifies ICMP 1, TCP 6, UDP 17, GRE 47, or another protocol carried inside IPv4.
IP Protocol Number Explorer
ICMP & ARP
ICMP
Ping uses Echo Request/Reply. Tracert uses TTL expiry and Time Exceeded. A blocked ping alone does not prove a host is down.
ARP
Checks cache, broadcasts a request on the local link, and learns the owner’s MAC address.
ARP decision lab
A client at 192.168.10.25/24 sends data to 198.51.100.20. Whose MAC address must it resolve?
GRE & IPSec
GRE
Carries multiple Layer 3 protocols and multicast, but provides no encryption, authentication, or confidentiality.
AH
Provides origin authentication and integrity, but no encryption; address changes such as NAT are problematic.
ESP
Provides confidentiality plus optional integrity, authentication, and anti-replay protection.
IKE
Negotiates peers, security associations, algorithms, parameters, and keys.
Encapsulation Builder
Build the sending sequence from application data to physical bits.
PowerShell 7 Practice
Get-NetTCPConnectionTCP listeners and connectionsGet-NetUDPEndpointLocal UDP endpointsTest-NetConnection example.com -Port 443DNS and TCP port testGet-NetNeighborARP / neighbor cacheGet-NetRouteLocal routing tableping example.comICMP Echo testtracert example.comTTL-based routed pathipconfig /allDHCP, DNS, and addressingExam Check
Fifteen questions drawn directly from the Chapter 6 manual.