OSI Model · TCP/IP Stack · IPv4 Subnetting · IPv6 · TCP vs UDP · Switching
Study with Practice Tests →Domain 1 of the CCNA 200-301 exam (~20% of questions). Covers the building blocks every network engineer needs: the OSI model, TCP/IP protocols, IPv4/IPv6 addressing, and basic switching concepts.
| Domain | Weight | Key Topics |
|---|---|---|
| 1. Network Fundamentals | 20% | OSI, TCP/IP, IPv4/IPv6, TCP/UDP, switching, cloud |
| 2. Network Access | 20% | VLANs, STP, wireless, L2 security |
| 3. IP Connectivity | 25% | Routing, OSPF, static routes, FHRP |
| 4. IP Services | 10% | NAT, DHCP, DNS, NTP, SNMP, QoS |
| 5. Security Fundamentals | 15% | ACLs, VPN, AAA, threats, hardening |
| 6. Automation & Programmability | 10% | REST APIs, Python, Ansible, SD-WAN |
Mnemonic: "Please Do Not Throw Sausage Pizza Away"
Physical · Data Link · Network · Transport · Session · Presentation · Application
Devices: Hub (L1), Switch (L2), Router (L3), Firewall/Gateway (L4+)
TCP: Connection-oriented, reliable, ordered, flow control, 3-way handshake (SYN→SYN-ACK→ACK). Used by HTTP, HTTPS, FTP, SSH.
UDP: Connectionless, fast, no guarantee. Used by DNS, DHCP, VoIP, streaming.
Hosts per subnet = 2n − 2 (n = host bits).
/24 → 254 hosts · /25 → 126 · /26 → 62 · /27 → 30 · /28 → 14 · /29 → 6 · /30 → 2
Private: 10.x.x.x · 172.16–31.x.x · 192.168.x.x
128-bit address, written as 8 groups of 4 hex digits separated by colons.
Abbreviation: drop leading zeros, replace consecutive zero groups with :: (once).
Types: Unicast (GUA, LLA, ULA) · Multicast · Anycast
Switch builds a CAM table (MAC → port mapping) by learning source MACs from incoming frames. Forwards to known destination, floods unknown unicast/broadcast/multicast to all ports except source.
Public: Shared infrastructure, provider-managed (AWS, Azure).
Private: Dedicated to one org, on-prem or hosted.
Hybrid: Mix of public + private.
Community: Shared by orgs with common needs.
Memorize the "magic number" table: /24=256, /25=128, /26=64, /27=32, /28=16, /29=8, /30=4. Block size − 2 = usable hosts. The network ID is always the first address; broadcast is always the last.
Exam loves asking which device/protocol operates at which layer. Remember: ARP = L2/L3 boundary (uses both MAC and IP), Switches = L2, Routers = L3, Transport = L4 (TCP/UDP port numbers).
TCP/IP has 4 layers: Application (= OSI App+Pres+Sess), Transport (= L4), Internet (= L3), Network Access (= L1+L2). Don't confuse the two models on the exam — know which model the question is using.
The OSI model provides a universal framework for understanding how network protocols work. The TCP/IP model is the practical implementation used on the internet.
| Layer | Name | PDU | Protocols / Devices | Key Function |
|---|---|---|---|---|
| 7 | Application | Data | HTTP, HTTPS, FTP, SSH, DNS, SMTP | User-facing services |
| 6 | Presentation | Data | TLS/SSL, JPEG, MPEG | Encryption, compression, format translation |
| 5 | Session | Data | NetBIOS, RPC, SQL sessions | Establish, manage, terminate sessions |
| 4 | Transport | Segment | TCP, UDP | End-to-end delivery, flow control, error recovery |
| 3 | Network | Packet | IP, ICMP, OSPF, BGP — Router | Logical addressing, routing |
| 2 | Data Link | Frame | Ethernet, Wi-Fi, PPP — Switch, Bridge | MAC addressing, frame delivery within LAN |
| 1 | Physical | Bits | RJ-45, fiber, coax — Hub, Repeater | Bit transmission over physical medium |
| TCP/IP Layer | OSI Equivalent | Protocols |
|---|---|---|
| Application | Application, Presentation, Session (5–7) | HTTP, DNS, SMTP, FTP, SSH, SNMP |
| Transport | Transport (4) | TCP, UDP |
| Internet | Network (3) | IPv4, IPv6, ICMP, ARP |
| Network Access | Data Link + Physical (1–2) | Ethernet, Wi-Fi, PPP |
| Feature | TCP | UDP |
|---|---|---|
| Connection type | Connection-oriented (3-way handshake) | Connectionless |
| Reliability | Guaranteed delivery, ACKs, retransmit | Best-effort, no retransmit |
| Ordering | Sequenced (sequence numbers) | No ordering |
| Flow control | Yes (sliding window) | No |
| Speed | Slower (overhead) | Faster (low overhead) |
| Use cases | HTTP/S, FTP, SSH, email | DNS, DHCP, VoIP, video streaming, TFTP |
| Header size | 20–60 bytes | 8 bytes |
Client sends SYN (synchronize) to server, proposes initial sequence number (ISN).
Server replies with SYN-ACK: acknowledges client ISN+1, provides its own ISN.
Client sends ACK: acknowledges server ISN+1. Connection established. Data transfer begins.
| Protocol | Port | Transport | Purpose |
|---|---|---|---|
| FTP Data / Control | 20 / 21 | TCP | File Transfer Protocol |
| SSH | 22 | TCP | Secure remote shell |
| Telnet | 23 | TCP | Remote shell (insecure) |
| SMTP | 25 | TCP | Email sending |
| DNS | 53 | TCP/UDP | Name resolution |
| DHCP Client / Server | 67 / 68 | UDP | Dynamic IP assignment |
| TFTP | 69 | UDP | Simple file transfer |
| HTTP | 80 | TCP | Web traffic |
| HTTPS | 443 | TCP | Encrypted web traffic |
| SNMP | 161 / 162 | UDP | Network monitoring |
| NTP | 123 | UDP | Time synchronization |
| Syslog | 514 | UDP | Log messages |
IPv4 uses 32-bit addresses written in dotted-decimal notation. Subnetting divides address space into smaller networks. IPv6 uses 128-bit addresses to replace IPv4 exhaustion.
| Class | First Octet | Default Mask | Range | Use |
|---|---|---|---|---|
| A | 1–126 | /8 | 1.0.0.0–126.255.255.255 | Large networks |
| B | 128–191 | /16 | 128.0.0.0–191.255.255.255 | Medium networks |
| C | 192–223 | /24 | 192.0.0.0–223.255.255.255 | Small networks |
| D | 224–239 | N/A | 224.0.0.0–239.255.255.255 | Multicast |
| E | 240–255 | N/A | 240.0.0.0–255.255.255.255 | Reserved/Research |
Range: 10.0.0.0 – 10.255.255.255
Class A private block — 16,777,216 addresses. Common in large enterprises.
Range: 172.16.0.0 – 172.31.255.255
Class B private block — 1,048,576 addresses. Common in medium businesses.
Range: 192.168.0.0 – 192.168.255.255
Class C private block — 65,536 addresses. Common in homes and small offices.
| CIDR | Subnet Mask | Block Size | Usable Hosts | Example Network ID |
|---|---|---|---|---|
| /24 | 255.255.255.0 | 256 | 254 | 192.168.1.0 |
| /25 | 255.255.255.128 | 128 | 126 | 192.168.1.0 / .128 |
| /26 | 255.255.255.192 | 64 | 62 | 192.168.1.0 / .64 / .128 / .192 |
| /27 | 255.255.255.224 | 32 | 30 | 192.168.1.0, .32, .64… |
| /28 | 255.255.255.240 | 16 | 14 | 192.168.1.0, .16, .32… |
| /29 | 255.255.255.248 | 8 | 6 | 192.168.1.0, .8, .16… |
| /30 | 255.255.255.252 | 4 | 2 | Point-to-point links |
| /32 | 255.255.255.255 | 1 | 0 (host route) | Loopback, host route |
/26 → 256 − 192 = 64 addresses per subnet. Four subnets fit in /24: .0, .64, .128, .192
64 − 2 = 62 usable hosts. Network ID = .0, Broadcast = .63, First host = .1, Last host = .62
IP 192.168.10.75 → falls in 192.168.10.64/26 (64–127). Network = .64, Broadcast = .127, Host range = .65–.126
| Address | Purpose |
|---|---|
| 0.0.0.0 | Unspecified / default route (all networks) |
| 127.0.0.1 | Loopback — tests local TCP/IP stack |
| 169.254.0.0/16 | APIPA — auto-assigned when DHCP fails |
| 255.255.255.255 | Limited broadcast (stays on local segment) |
| x.x.x.255 (in /24) | Directed broadcast for that subnet |
128 bits = 8 groups of 4 hex digits: 2001:0db8:0000:0000:0000:ff00:0042:8329
Compressed: 2001:db8::ff00:42:8329
Rule: drop leading zeros; use :: once for longest consecutive zero group.
GUA (2000::/3): Globally routable, public internet.
LLA (FE80::/10): Link-local, auto-configured, not routed.
ULA (FC00::/7): Unique local — like private IPv4.
Multicast (FF00::/8): One-to-many. Replaces broadcast.
No broadcast (replaced by multicast/anycast). No ARP — uses NDP (Neighbor Discovery Protocol). No fragmentation at routers. Built-in IPsec support. EUI-64 auto-configures interface IDs from MAC.
Switches operate at Layer 2, using MAC addresses to intelligently forward frames within a LAN. Understanding the CAM table, frame structure, and basic switching behavior is foundational for the CCNA exam.
Switch reads the source MAC of every incoming frame and records it in the CAM table (also called MAC address table) with the ingress port. CAM entries age out (default: 300 seconds).
If the destination MAC is in the CAM table, the frame is forwarded only to that port. This reduces unnecessary traffic compared to a hub, which broadcasts everything.
If destination MAC is unknown, or the frame is a broadcast (FF:FF:FF:FF:FF:FF) or multicast, the switch floods out all ports except the source port.
| Field | Size | Purpose |
|---|---|---|
| Preamble + SFD | 8 bytes | Synchronization, start-of-frame delimiter |
| Destination MAC | 6 bytes | MAC address of next-hop or destination device |
| Source MAC | 6 bytes | MAC address of sending interface |
| EtherType / Length | 2 bytes | Identifies upper-layer protocol (0x0800=IPv4, 0x86DD=IPv6, 0x0806=ARP) |
| Data / Payload | 46–1500 bytes | IP packet or upper-layer PDU |
| FCS (CRC) | 4 bytes | Error detection (cyclic redundancy check) |
ARP resolves a known IP address to an unknown MAC address on the local subnet. Required before a device can send a frame to another device on the same LAN.
1. Device broadcasts: "Who has IP 192.168.1.1? Tell 192.168.1.10"
2. Target device unicasts its MAC back.
3. Sender caches the mapping in its ARP table (temporary).
Device sends ARP reply without a request — used to announce a new IP/MAC binding (e.g., after failover). Can be exploited for ARP spoofing attacks.
| Device | OSI Layer | Forwarding Logic | Collision Domain | Broadcast Domain |
|---|---|---|---|---|
| Hub | L1 | Repeats all bits to all ports | One shared | One shared |
| Switch | L2 | Forwards by MAC address | Per port (full duplex) | One per switch (unless VLANs) |
| Router | L3 | Routes by IP address | Per interface | Per interface (separates BDs) |
Device can either send or receive — not simultaneously. Older technology (hubs). Uses CSMA/CD to detect collisions.
Device can send and receive simultaneously. Modern switches support full duplex on every port. No collisions — CSMA/CD disabled. Much higher throughput.
One side set to full, other to half. Results in late collisions, CRC errors, poor performance — a common misconfiguration. Always set speed and duplex explicitly or use autonegotiation consistently.
| Model | Full Name | Customer Manages | Provider Manages | Example |
|---|---|---|---|---|
| IaaS | Infrastructure as a Service | OS, apps, data | Hardware, networking, storage | AWS EC2, Azure VMs |
| PaaS | Platform as a Service | Applications, data | OS, runtime, middleware | Heroku, Google App Engine |
| SaaS | Software as a Service | Data, some settings | Everything else | Salesforce, Office 365 |
10 questions covering OSI, TCP/IP, subnetting, IPv6, and switching. Select the best answer, then click Submit.
Six sticky mental anchors for the highest-yield Network Fundamentals concepts.
Click any card to flip it. 8 high-yield concept cards for rapid review.
👆 Click a card to reveal the answer
Select a topic for targeted exam-day guidance.