CCNA (200-301) Comprehensive Technical Study Guide
Network Fundamentals & TCP/IP Model
TCP Header vs. UDP Header Characteristics:
- TCP Header:
- Header Size: Minimum of header size.
- Connection State: Stateful, connection-oriented protocol.
- Delivery Guarantees: Guarantees delivery using sequence numbers and acknowledgments (ACKs).
- Header Fields:
- Source Port:
- Destination Port:
- Sequence Number:
- Acknowledgment Number:
- Header Length:
- Control Flags: (includes URG, ACK, PSH, RST, SYN, FIN, etc.)
- Window Size:
- Checksum:
- Urgent Pointer:
- UDP Header:
- Header Size: Fixed header size.
- Connection State: Stateless, connectionless protocol.
- Delivery Guarantees: Best-effort delivery without delivery guarantees.
- Header Fields:
- Source Port:
- Destination Port:
- Length:
- Checksum:
TCP 3-Way Handshake Steps:
- SYN: Client sends a SYN packet containing an Initial Sequence Number () to the server.
- SYN-ACK: Server responds with a SYN packet containing its own Initial Sequence Number () and an ACK set to .
- ACK: Client responds with an ACK packet set to .
TCP Sliding Window Mechanics:
- Controlled directly by the Window Size field in the TCP header.
- Specifies the exact volume of data (in bytes) a receiver is capable of accepting before demanding an acknowledgment.
- Dynamic adjustment controls network flow and prevents receiver buffer overflow.
Well-Known Port Numbers:
- FTP: TCP port (Data), TCP port (Control)
- SSH: TCP port
- Telnet: TCP port
- SMTP: TCP port
- DNS: UDP/TCP port
- DHCP: UDP port (Server), UDP port (Client)
- TFTP: UDP port
- HTTP / HTTPS: TCP port / TCP port
- NTP: UDP port
- SNMP: UDP port (Queries), UDP port (Traps/Informs)
- BGP: TCP port
Protocol Data Units (PDUs) by Layer:
- Layer 1 (Physical Layer): Bits
- Layer 2 (Data Link Layer): Frames
- Layer 3 (Network Layer): Packets
- Layer 4 (Transport Layer): Segments (for TCP) / Datagrams (for UDP)
- Layer 5-7 (Application, Presentation, Session Layers): Data
Ethernet Cabling Standards & Auto-MDIX:
- T568A Pinout Order: White/Green, Green, White/Orange, Blue, White/Blue, Orange, White/Brown, Brown.
- T568B Pinout Order: White/Orange, Orange, White/Green, Blue, White/Blue, Green, White/Brown, Brown.
- Straight-Through Cable: Terminated as T568A to T568A or T568B to T568B. Used to connect unlike devices (e.g., Switch to Router, Switch to PC).
- Crossover Cable: Terminated as T568A on one end and T568B on the other. Used to connect like devices (e.g., Switch to Switch, Router to PC).
- Auto-MDIX: Automatically detects required cable connection type and reconfigures the physical interface. Requires speed and duplex settings to be configured to auto.
Layer 2 Switching, VLANs & Trunking
VLAN Ranges and Storage Specifications:
- Normal Range VLANs (–):
- Stored inside flash memory in the
vlan.datfile. - VLAN IDs – are permanently reserved for Token Ring and FDDI architectures.
- Extended Range VLANs (–):
- Stored inside the active running-config in RAM.
- Requires VTP to be configured in Transparent mode or VTP version .
IEEE 802.1Q Frame Tagging:
- Inserts a Tag into the standard Ethernet header between the Source MAC address and EtherType fields.
- Tag Internal Structure:
- Tag Protocol Identifier (TPID): , fixed hex value
0x8100. - Priority Code Point (PCP): used for Layer 2 Class of Service (CoS).
- Drop Eligible Indicator (DEI): .
- VLAN Identifier (VID): , supporting up to distinct VLAN IDs.
- Native VLAN Behavior:
- Untagged traffic traversing an 802.1Q trunk link is implicitly assigned to the configured native VLAN of the receiving port.
- Mismatched native VLANs across a trunk link cause frame leakage between VLANs and trigger CDP error log messages.
Dynamic Trunking Protocol (DTP) Modes:
switchport mode access: Disables DTP negotiation and forces the port into a static access role.switchport mode trunk: Disables access operation, forces the port statically into a trunking role, and actively negotiates DTP.switchport mode dynamic desirable: Actively initiates negotiation to convert the network link into a trunk.switchport mode dynamic auto: Operates passively; transitions to a trunking role only if the neighbor device initiates negotiation (via trunk or desirable modes). Two connecting auto ports negotiate into an access link.switchport nonegotiate: Completely disables the generation of DTP frames on the interface.
Switch Forwarding Mechanisms:
- Store-and-Forward: Buffers and receives the full Ethernet frame, computing the CRC/FCS to check for frame corruption prior to forwarding. Required for connecting ports operating at different speeds.
- Cut-Through (Fast-Forward): Reads only the Destination MAC address contained within the first and forwards the frame immediately. Delivers lowest latency but provides zero error checking.
- Fragment-Free: Reads the initial of the Ethernet frame (where collision errors predominantly occur) prior to forwarding.
MAC Address Table (CAM Table) Aging:
- Default CAM table entry aging timer is ().
Spanning Tree Protocol (STP/RSTP) & EtherChannel
Bridge Protocol Data Unit (BPDU) & Bridge ID Structure:
- Bridge ID (BID) Total Length: .
- BID Component Fields:
- Bridge Priority:
- System ID Extension: (carries the explicit VLAN ID)
- MAC Address:
- Default Bridge Priority: , adjustable exclusively in strict increments of 4096$.\n\n* STP Port Roles & RSTP Port States:\n * STP Port Roles: Root Port (RP), Designated Port (DP), Non-Designated / Alternate Port (AP).\n * RSTP (IEEE 802.1w) Port States: Discarding (consolidates traditional STP Disabled, Blocking, and Listening states), Learning, Forwarding.\n\n* Standard STP Timer Defaults:\n * Hello Timer: 2 ext{ seconds}\n * Forward Delay Timer: 15 ext{ seconds}\n * Max Age Timer: 20 ext{ seconds}\n\n* STP Protection Mechanisms:\n * PortFast: Transitions an edge access interface directly into the Forwarding state, entirely bypassing the Listening and Learning states.\n * BPDU Guard: Instantly disables (places into `err-disabled` state) any PortFast-enabled switch port if it receives a BPDU.\n * BPDU Filter: Prevents both sending and processing BPDUs on designated interfaces.\n\n* EtherChannel Protocols & Operational Modes:\n * LACP (IEEE 802.3ad Standard):\n * Configurable Modes: Active and Passive.\n * Link Formation: Requires at least one operational side set to Active.\n * Capacity: Up to 16 ext{ ports}8 ext{ active}8 ext{ standby}).\n * PAgP (Cisco Proprietary Standard):\n * Configurable Modes: Desirable and Auto.\n * Link Formation: Requires at least one operational side set to Desirable.\n * Capacity: Supports up to 8 ext{ active} ports.\n * Static On Mode:\n * Mode: On.\n * Mechanism: Operates without transmitting negotiation packets; both ends must be explicitly configured to On.\n\n# IPv6 Address Architecture & Routing Logic\n\n* IPv6 Address Types & Network Prefixes:\n * Global Unicast Address (GUA): `2000::/3` (Publicly routable globally).\n * Link-Local Address: `fe80::/10` (Mandatory on every active IPv6 interface; non-routable beyond the immediate local link segment).\n * Unique Local Address (ULA): `fc00::/7` (Private non-routable IPv6 address space).\n * Multicast Address: `ff00::/8`\n * `ff02::1` = All Nodes address\n * `ff02::2` = All Routers address\n * `ff02::5` = All OSPFv3 Routers address\n * `ff02::6` = OSPFv3 DR/BDR address\n * Loopback Address: `::1/128`\n\n* EUI-64 Address Generation Procedure:\n 1. Take the physical 48 ext{-bit}24 ext{-bit} halves.\n 2. Insert the fixed hexadecimal value `FF:FE` directly into the middle to form a 64 ext{-bit} value.\n 3. Invert the 7 ext{th bit} (Universal/Local bit) located within the first byte.\n\n* Administrative Distance (AD) Values:\n * Connected Interface: 0\n * Static Route: 1\n * External BGP (eBGP): 20\n * Internal EIGRP: 90\n * OSPF: 110\n * IS-IS: 115\n * RIP: 120\n * External EIGRP: 170\n * Internal BGP (iBGP): 200\n\n* Cisco Express Forwarding (CEF) Data Structures:\n * Bypasses recursive lookup penalties using two hardware-maintained tables:\n 1. Forwarding Information Base (FIB): Directly derived from the routing table; contains all target destination IP prefixes alongside explicit next-hop details.\n 2. Adjacency Table: Contains pre-computed Layer 2 rewrite information (MAC addresses) for local next-hop devices.\n\n# OSPFv2 Deep-Dive Mechanics\n\n* OSPF Packet Types & Transport Protocol:\n * Runs directly over IP Protocol 89 (operates without TCP or UDP transport layer overhead).\n * Packet Types:\n * Type 1: Hello (Establishes, discovers, and maintains neighbor adjacencies)\n * Type 2: Database Description (DBD / DDP - Contains summary of the local LSDB)\n * Type 3: Link-State Request (LSR - Requests missing or updated Link-State Data)\n * Type 4: Link-State Update (LSU - Carries precise, detailed LSAs)\n * Type 5: Link-State Acknowledgment (LSAck - Confirms reception of updates)\n\n* OSPF Neighbor Adjacency States:\n 1. Down: Initial baseline state; no Hello packets have been processed from the neighbor.\n 2. Init: Hello packet received from neighbor, but local Router ID is not listed in the neighbor's Hello packet.\n 3. 2-Way: Bidirectional communication confirmed (local Router ID is seen within received neighbor Hello). DR/BDR elections occur at this state on broadcast network types.\n 4. ExStart: Master/Slave relationships and initial packet sequence numbers are selected for DBD exchange.\n 5. Exchange: Neighboring routers exchange DBD packets describing their link-state databases.\n 6. Loading: Routers issue LSRs requesting updated information and receive LSUs in response.\n 7. Full: LSDBs are fully synchronized. Normal operational state.\n\n* OSPF Adjacency Requirement Match Criteria:\n 1. Area ID\n 2. Subnet Mask\n 3. Hello and Dead Timers (Default Broadcast: Hello 10 ext{s}40 ext{s})\n 4. Authentication Passwords\n 5. Stub Area Flag\n 6. MTU Size (An MTU mismatch freezes neighbor state at ExStart/Exchange)\n 7. Unique Router IDs\n\n* DR/BDR Election Mechanics:\n * Reserved Multicast Addresses: `224.0.0.5` (All OSPF Routers), `224.0.0.6` (DR/BDR Routers Only).\n * Election Priority Tie-Breakers:\n 1. Highest OSPF Interface Priority (Configured via `ip ospf priority
- Layer 3 (Type of Service - ToS): Uses an field inside the IPv4 header.
- IP Precedence (Legacy): Uses the first (Values –).
- DSCP (DiffServ Code Point): Uses the first (Values –). Remaining are allocated for Explicit Congestion Notification (ECN).
DSCP Per-Hop Behaviors (PHB):
- Default (DF): Bit pattern
000000(DSCP / Best Effort). - Expedited Forwarding (EF): Bit pattern
101110(DSCP ). Dedicated exclusively to low-latency, low-jitter voice streams. - Assured Forwarding (AF): Expressed as where is Class (–) and is Drop Preference (–).
- Calculation Formula:
- Default (DF): Bit pattern
* Calculation Example for AF31:
* Higher class designation signifies higher priority; higher drop preference signifies elevated likelihood of packet drop during congestion.
- Queuing & Traffic Management Mechanisms:
- Low Latency Queueing (LLQ): Combines Class-Based Weighted Fair Queueing (CBWFQ) with a strict Priority Queue (PQ) allocated for real-time voice traffic.
- Policing vs. Shaping:
- Policing: Enforces throughput limits by dropping or re-marking excess traffic over set thresholds. Applied to ingress or egress. Generates TCP retransmissions.
- Shaping: Enforces throughput limits by buffering excess bursts in memory queues to smooth out stream profiles. Applied strictly to egress traffic.
- Congestion Avoidance (WRED):
- Weighted Random Early Detection: Prevents TCP Global Synchronization (where multiple parallel TCP flows simultaneously collapse window sizes) by dropping lower-priority packets randomly before buffer queues fill completely.
Network Architecture, Wireless & SDN Automation
Wireless LAN (WLAN) IEEE Standards:
- Wi-Fi 4 (802.11n): Operates on & spectrums. Throughput up to .
- Wi-Fi 5 (802.11ac): Operates exclusively on spectrum. Throughput up to .
- Wi-Fi 6 (802.11ax): Operates on , , & spectrums. Employs OFDMA and MU-MIMO technologies.
- Non-Overlapping 2.4 GHz Channels: Channels , , and (at channel width).
CAPWAP Architecture (Split-MAC Operation):
- Lightweight Access Point (LAP): Handles real-time Layer 802.11 tasks (Beacon transmission, Probe requests/responses, Frame encryption).
- Wireless LAN Controller (WLC): Manages non-real-time operational tasks (Authentication, Association, QoS enforcement, Client roaming management).
- CAPWAP Tunneling Ports: Uses UDP port (Control traffic) and UDP port (Data traffic).
SDN Architecture Planes & APIs:
- Management Plane: Provides administrative connectivity, system access, and CLI/GUI configuration interfaces.
- Control Plane: Decides forwarding behavior, populates the Routing Information Base (RIB), and computes path topology.
- Data/Forwarding Plane: Executes hardware packet forwarding directly inside custom ASICs according to control logic.
- Northbound APIs: RESTful interfaces enabling communication between SDN Controllers and Applications/Orchestrators (Top-tier integration).
- Southbound APIs: Protocols facilitating communication between SDN Controllers and physical network switches/routers (Bottom-tier integration, e.g., OpenFlow, NETCONF, RESTCONF).
Overlay vs. Underlay Infrastructure:
- Underlay: Physical network devices (routers, switches, links) running physical IP routing protocols (e.g., OSPF, IS-IS) providing reachability.
- Overlay: Virtualized software-defined network state encapsulated over underlay links (e.g., VXLAN, GRE) to deliver logical segmentation and Layer 2/3 services.
JSON Syntax Rules:
- Uses key-value pairs formatted as `