CCNA (200-301) Comprehensive Technical Study Guide

Network Fundamentals & TCP/IP Model

  • TCP Header vs. UDP Header Characteristics:

    • TCP Header:
    • Header Size: Minimum of 20-byte20\text{-byte} header size.
    • Connection State: Stateful, connection-oriented protocol.
    • Delivery Guarantees: Guarantees delivery using sequence numbers and acknowledgments (ACKs).
    • Header Fields:
      • Source Port: 16 bits16\text{ bits}
      • Destination Port: 16 bits16\text{ bits}
      • Sequence Number: 32 bits32\text{ bits}
      • Acknowledgment Number: 32 bits32\text{ bits}
      • Header Length: 4 bits4\text{ bits}
      • Control Flags: 9 bits9\text{ bits} (includes URG, ACK, PSH, RST, SYN, FIN, etc.)
      • Window Size: 16 bits16\text{ bits}
      • Checksum: 16 bits16\text{ bits}
      • Urgent Pointer: 16 bits16\text{ bits}
    • UDP Header:
    • Header Size: Fixed 8-byte8\text{-byte} header size.
    • Connection State: Stateless, connectionless protocol.
    • Delivery Guarantees: Best-effort delivery without delivery guarantees.
    • Header Fields:
      • Source Port: 16 bits16\text{ bits}
      • Destination Port: 16 bits16\text{ bits}
      • Length: 16 bits16\text{ bits}
      • Checksum: 16 bits16\text{ bits}
  • TCP 3-Way Handshake Steps:

    1. SYN: Client sends a SYN packet containing an Initial Sequence Number (ISNCISN_C) to the server.
    2. SYN-ACK: Server responds with a SYN packet containing its own Initial Sequence Number (ISNSISN_S) and an ACK set to ISNC+1ISN_C + 1.
    3. ACK: Client responds with an ACK packet set to ISNS+1ISN_S + 1.
  • 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 2020 (Data), TCP port 2121 (Control)
    • SSH: TCP port 2222
    • Telnet: TCP port 2323
    • SMTP: TCP port 2525
    • DNS: UDP/TCP port 5353
    • DHCP: UDP port 6767 (Server), UDP port 6868 (Client)
    • TFTP: UDP port 6969
    • HTTP / HTTPS: TCP port 8080 / TCP port 443443
    • NTP: UDP port 123123
    • SNMP: UDP port 161161 (Queries), UDP port 162162 (Traps/Informs)
    • BGP: TCP port 179179
  • 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 (11–10051005):
    • Stored inside flash memory in the vlan.dat file.
    • VLAN IDs 10021002–10051005 are permanently reserved for Token Ring and FDDI architectures.
    • Extended Range VLANs (10061006–40944094):
    • Stored inside the active running-config in RAM.
    • Requires VTP to be configured in Transparent mode or VTP version 33.
  • IEEE 802.1Q Frame Tagging:

    • Inserts a 4-byte4\text{-byte} Tag into the standard Ethernet header between the Source MAC address and EtherType fields.
    • Tag Internal Structure:
    • Tag Protocol Identifier (TPID): 16 bits16\text{ bits}, fixed hex value 0x8100.
    • Priority Code Point (PCP): 3 bits3\text{ bits} used for Layer 2 Class of Service (CoS).
    • Drop Eligible Indicator (DEI): 1 bit1\text{ bit}.
    • VLAN Identifier (VID): 12 bits12\text{ bits}, supporting up to 40944094 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 6 bytes6\text{ bytes} and forwards the frame immediately. Delivers lowest latency but provides zero error checking.
    • Fragment-Free: Reads the initial 64 bytes64\text{ bytes} 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 300 seconds300\text{ seconds} (5 minutes5\text{ minutes}).

Spanning Tree Protocol (STP/RSTP) & EtherChannel

  • Bridge Protocol Data Unit (BPDU) & Bridge ID Structure:

    • Bridge ID (BID) Total Length: 8 bytes8\text{ bytes}.
    • BID Component Fields:
    • Bridge Priority: 2 bytes2\text{ bytes}
    • System ID Extension: 12 bits12\text{ bits} (carries the explicit VLAN ID)
    • MAC Address: 6 bytes6\text{ bytes}
    • Default Bridge Priority: 3276832768, 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}perchannel(per channel (8 ext{ active}andand8 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}MACaddressandsplititintotwoequalMAC address and split it into two equal24 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},Dead, Dead40 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 8-bit8\text{-bit} field inside the IPv4 header.
    • IP Precedence (Legacy): Uses the first 3 bits3\text{ bits} (Values 00–77).
    • DSCP (DiffServ Code Point): Uses the first 6 bits6\text{ bits} (Values 00–6363). Remaining 2 bits2\text{ bits} are allocated for Explicit Congestion Notification (ECN).
  • DSCP Per-Hop Behaviors (PHB):

    • Default (DF): Bit pattern 000000 (DSCP 00 / Best Effort).
    • Expedited Forwarding (EF): Bit pattern 101110 (DSCP 4646). Dedicated exclusively to low-latency, low-jitter voice streams.
    • Assured Forwarding (AF): Expressed as AFxyAF_{xy} where xx is Class (11–44) and yy is Drop Preference (11–33).
    • Calculation Formula:

AF DSCP Decimal Value=8x+2y\text{AF DSCP Decimal Value} = 8x + 2y

* Calculation Example for AF31:

AF31=(8×3)+(2×1)=26\text{AF31} = (8 \times 3) + (2 \times 1) = 26

* 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 2.4 GHz2.4\text{ GHz} & 5 GHz5\text{ GHz} spectrums. Throughput up to 600 Mbps600\text{ Mbps}.
    • Wi-Fi 5 (802.11ac): Operates exclusively on 5 GHz5\text{ GHz} spectrum. Throughput up to 6.9 Gbps6.9\text{ Gbps}.
    • Wi-Fi 6 (802.11ax): Operates on 2.4 GHz2.4\text{ GHz}, 5 GHz5\text{ GHz}, & 6 GHz6\text{ GHz} spectrums. Employs OFDMA and MU-MIMO technologies.
    • Non-Overlapping 2.4 GHz Channels: Channels 11, 66, and 1111 (at 20 MHz20\text{ MHz} 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 52465246 (Control traffic) and UDP port 52475247 (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 `