CompTIA Network+ N10-009 Cram Guide
Open Systems Interconnection (OSI) Reference Model Concepts
- Conceptual Framework: The OSI Model is a seven-layer framework used to understand network interactions, from physical transmission to application services. It provides standardization and interoperability across diverse technologies.
- Layer 1 – Physical: Responsible for the physical transmission of raw bits over network media. It addresses hardware aspects including cables, switches, electrical signals, and light pulses, defining connection standards for devices and media.
- Layer 2 – Data Link: Manages node-to-node data transfer and error detection/correction. It establishes and terminates connections between physically connected devices and handles data framing.
- Media Access Control (MAC) Sublayer: Manages protocol access to the physical medium, using MAC addresses for channel access control in multipoint networks.
- Logical Link Control (LLC) Sublayer: Acts as an interface between upper-layer software and lower-layer hardware, providing multiplexing for multiple network protocols (IP, IPX) and providing flow and error control.
- Layer 3 – Network: Handles logical addressing and packet routing. It uses routing protocols to determine the best path for data transmission, manages packet forwarding through routers, and handles network congestion.
- Layer 4 – Transport: Ensures reliable, transparent data transfer between end systems. Mechanisms include error correction, flow control, and the segmentation/de-segmentation of data messages.
- Layer 5 – Session: Manages the setup, maintenance, and termination of sessions between applications. It controls the dialog between end systems, supporting half-duplex or full-duplex communications.
- Layer 6 – Presentation: Translates, encrypts, and compresses data. It acts as a translator, ensuring data is in a usable format for applications by mediating between different data formats and network protocols.
- Layer 7 – Application: Serves as the user interface to network services. It defines protocols for end-user processes like file transfers, email, and web browsing.
Networking Appliances, Applications, and Functions
- Physical vs. Virtual Appliances:
- Physical Appliances: Dedicated hardware providing high performance and reliability, though they require physical space and have higher costs.
- Virtual Appliances: Software-based solutions running on virtual machines. They offer flexibility, scalability, and cost efficiency, but may have lower raw performance than hardware.
- Router: Operates at the Network Layer (Layer 3). It uses routing tables and IP addresses to direct packets between networks and often includes security features like firewalls and VPN support.
- Layer 2 Switch: Operates at the Data Link Layer, forwarding data based on MAC addresses and creating separate collision domains for each port.
- Layer 3 Capable Switch (Multilayer Switch): Operates at both Layers 2 and 3. It performs routing functions based on IP addresses while maintaining switching capabilities, facilitating VLAN segmentation.
- Firewall: A security device monitoring traffic flux based on defined rules. It creates a barrier between secure internal networks and untrusted external networks like the internet.
- IPS/IDS Devices:
- IDS (Intrusion Detection System): Passively monitors and alerts on suspicious activities.
- IPS (Intrusion Prevention System): Actively blocks or prevents malicious activities based on signatures and policies.
- Load Balancer: Distributes incoming traffic across multiple servers to optimize resource use, maximize throughput, and ensure high availability of applications.
- Proxy Server: Acts as an intermediary between a client and the internet, providing functionalities such as content caching, filtering, and access control.
- Network-Attached Storage (NAS): A centralized file-level storage device connected to the network, supporting protocols like NFS, SMB/CIFS, and AFP.
- Storage Area Network (SAN): A high-speed, dedicated network providing consolidated block-level data storage for enterprise environments.
- Access Point (AP): A Layer 2 device allowing wireless devices to connect to a wired network using Wi-Fi standards.
- Wireless LAN Controller (WLC): A centralized device used to manage multiple wireless access points, handling configurations, security policies, and guest access.
- Content Delivery Network (CDN): A global network of proxy servers and data centers that cache content (images, videos) to reduce latency and improve access speeds.
- Virtual Private Network (VPN): Technology that creates an encrypted, secure connection over a less secure network like the internet.
- Quality of Service (QoS): Policies used to prioritize critical traffic (voice and video) to reduce latency, jitter, and packet loss.
- Time to Live (TTL): A field in IP packet headers specifying the maximum number of hops a packet can traverse before being discarded to prevent infinite loops.
Cloud Concepts and Connectivity Options
- Network Functions Virtualization (NFV): Decouples network functions from hardware, running them as software on virtual machines. This allows for dynamic scaling of firewalls, load balancers, and more.
- Virtual Private Cloud (VPC): An isolated network space within a public cloud where users define their own IP ranges, subnets, and route tables.
- Network Security Groups: Virtual firewalls for cloud instances that control inbound and outbound traffic at the protocol and port level.
- Network Security Lists: Subnet-level traffic filtering (stateful or stateless) for managing traffic between subnets in a VPC.
- Cloud Gateways:
- Internet Gateway: Bridges a VPC to the internet for bidirectional communication.
- NAT Gateway: Allows instances in private subnets to connect to the internet for updates while preventing the internet from initiating connections with those instances.
- Deployment Models:
- Public: Owned and operated by a provider; resources are shared among multiple customers.
- Private: Dedicated to one organization; can be on-premises or third-party hosted.
- Hybrid: Combines public and private models, allowing data sharing between them.
- Service Models:
- SaaS (Software as a Service): Applications delivered via browser (e.g., subscription software).
- IaaS (Infrastructure as a Service): Virtualized computing resources (servers, storage) rented via internet.
- PaaS (Platform as a Service): Tools for developers to build and manage apps without infrastructure management.
- DaaS (Desktop as a Service): Virtual desktop infrastructure.
- Scalability vs. Elasticity:
- Scalability: The ability to handle growth easily and cost-effectively.
- Elasticity: The ability to automatically scale resources up or down based on real-time demand.
- Multitenancy: A software architecture where one instance of software serves multiple users (tenants) with isolated data.
Common Ports, Protocols, and Services
- FTP (File Transfer Protocol): Ports 20 (Data) and 21 (Control). Transfers files but does not encrypt traffic.
- SFTP (Secure FTP): Port 22. Uses SSH to provide an encrypted method for file transfers.
- SSH (Secure Shell): Port 22. Cryptographic protocol for secure remote operations and port forwarding.
- Telnet: Port 23. Bidirectional text communication; insecure because it transmits credentials in plaintext.
- SMTP (Simple Mail Transfer Protocol): Port 25. Standard for email transmission between servers.
- DNS (Domain Name System): Port 53 (TCP/UDP). Translates domain names to numerical IP addresses.
- DHCP (Dynamic Host Configuration Protocol): Ports 67 (Server) and 68 (Client). Dynamically assigns IP addresses and configuration parameters.
- TFTP (Trivial FTP): Port 69 (UDP). Simple file transfer without authentication; used for booting or config files.
- HTTP: Port 80. Stateless foundation of data communication for the web.
- NTP (Network Time Protocol): Port 123 (UDP). Synchronizes clocks across a network to mitigate latency effects.
- SNMP (Simple Network Management Protocol): Ports 161 (Commands) and 162 (Reporting/Traps). Used for managing and monitoring IP network devices.
- LDAP (Lightweight Directory Access Protocol): Port 389. Accesses and maintains distributed directory services.
- HTTPS/SSL/TLS: Port 443. Secure version of HTTP using encryption for privacy and data integrity.
- SMB (Server Message Block): Port 445. Used for Windows file sharing, printing, and inter-process communication.
- Syslog: Port 514. Configures and manages system logging sent to a centralized server.
- SMTPS (Secure SMTP): Port 587 or 465. Uses SSL or TLS layers to encrypt email communications.
- LDAPS (LDAP over SSL): Port 636. Encrypted directory service access.
- SQL Server: Port 1433. Standard port for Microsoft SQL Server database operations.
- MySQL: Port 3306. Default port for MySQL database communication.
- RDP (Remote Desktop Protocol): Port 3389. Microsoft graphical interface for remote computer access.
- SIP (Session Initiation Protocol): Ports 5060 (Unsecured) and 5061 (Secured via TLS). Used for initiating/terminating VoIP and video sessions.
IP Protocol Types and Communication Methods
- ICMP (Internet Control Message Protocol): Used for diagnostics and troubleshooting (e.g., ping). It handles error reporting like unreachable hosts.
- TCP (Transmission Control Protocol): Connection-oriented, reliable, ordered delivery of data using acknowledgments and flow control.
- UDP (User Datagram Protocol): Connectionless, fast, but less reliable. No guarantee of packet order or delivery.
- GRE (Generic Routing Encapsulation): Cisco-developed tunneling protocol that encapsulates network layer packets inside IP tunnels.
- IPSec (Internet Protocol Security): Protocol suite for authenticating and encrypting IP packets.
- Transport Mode: Encrypts only the payload.
- Tunnel Mode: Encrypts the entire packet (used for VPNs).
- AH (Authentication Header): Provides integrity and authentication.
- ESP (Encapsulating Security Payload): Provides confidentiality via encryption, as well as authentication and integrity.
- IKE (Internet Key Exchange): Sets up secure channels in two phases: Phase 1 (establishes identity/secure channel) and Phase 2 (negotiates Security Association parameters).
- Communication Types:
- Unicast: One-to-one communication to a unique IP.
- Multicast: One-to-many communication to a specific group address.
- Anycast: Data sent to the "nearest" or "best" destination share an address.
- Broadcast: One-to-all communication within a network segment (IPv4 only; not supported in IPv6).
- 802.11 (Wireless) Standards:
- 802.11a: 5GHz, max rate 54Mbps. Low interference, short range.
- 802.11b: 2.4GHz, max rate 11Mbps. Better range/penetration, prone to interference.
- 802.11g: 2.4GHz, max rate 54Mbps. Backward compatible with 802.11b.
- 802.11n (WiFi 4): 2.4 and 5GHz, max rate 600Mbps. Introduced MIMO.
- 802.11ac (WiFi 5): 5GHz only, max rate 3.46Gbps. Uses wider channels and more spatial streams.
- 802.11ax (WiFi 6): 2.4 and 5GHz, max rate 9.6Gbps. Introduced OFDMA and BSS Coloring for high-density environments.
- Cellular Technology: Based on cell sites. Iterations include 2G, 3G, 4G, and 5G, each increasing data speed.
- Satellite: Relays data via orbiting satellites. Global coverage but susceptible to high latency and weather interference.
- Fiber-Optic Cabling:
- Single-Mode: Small core diameter, used for long-distance (kilometers). Low attenuation.
- Multimode: Larger core, allows multiple light modes; used for short distances (500m to 2km).
- Copper and Coaxial Cabs:
- Direct Attach Copper (DAC): Short-range, low-power connections between equipment.
- Twinaxial (Twinax): Two inner conductors with shielding; used for 10GigabitEthernet over short distances.
- Coaxial (RG-6): Thick shielding; used for cable TV and broadband internet.
- Fire Ratings:
- Plenum: Fire-resistant, low-smoke. Used in buildings' air spaces.
- Riser: Prevents fire from traveling vertically between floors.
- Transceivers and Connectors:
- SFP: Up to 1Gbps.
- SFP+: Up to 10Gbps.
- QSFP: Up to 40Gbps (4×10Gbps).
- QSFP+: 40Gbps or higher with increased density.
- SC (Subscriber Connector): Push-pull latch, square-shaped; used in single-mode fiber.
- LC (Local Connector): Small form-factor, push-pull latch; high-density usage.
- ST (Straight Tip): Bayonet-style locking; commonly used in multimode.
- MPO (Multi-fiber Push On): High-density, connects 12 or 24 fibers in one interface.
- RJ45: Standard Ethernet connector (8P8C).
- RJ11: Standard telephone connector (6P4C).
Network Topologies and Architectures
- Mesh: Every node connects to every other node. High availability and redundancy.
- Star (Hub-and-Spoke): All nodes connect to a central hub. Simple but creates a single point of failure.
- Spine and Leaf: Modern two-layer data center design. Leaf switches (access) connect to all spine switches (backbone). No more than two hops between any two leaf switches.
- Three-tier Hierarchical Model:
- Core Layer: High-speed backbone switching.
- Distribution Layer: Routing, filtering, and WAN access; aggregates access layer data.
- Access Layer: Entry point for end-user devices.
- Collapsed Core: Core and Distribution layers are merged into a single layer to simplify design for small networks.
- Traffic Patterns:
- North-South: Flow between the data center and the outside world (internet).
- East-West: Flow within the data center (server-to-server or VM-to-VM).
IPv4 Addressing and Standards
- APIPA: Range 169.254.0.1 to 169.254.255.254. Assigned when DHCP fails. No internet access.
- RFC1918 (Private Ranges):
- 10.0.0.0 to 10.255.255.255
- 172.16.0.0 to 172.31.255.255
- 192.168.0.0 to 192.168.255.255
- Loopback Address: 127.0.0.1 (IPv4) or ::1 (IPv6).
- IPv4 Classes:
- Class A: First octet 1−126. Mask 255.0.0.0. Approximately 16.7 million hosts/network.
- Class B: First octet 128−191. Mask 255.255.0.0. Approximately 65,534 hosts/network.
- Class C: First octet 192−223. Mask 255.255.255.0. Up to 254 hosts.
- Class D: Range 224−239. Reserved for multicast.
- Class E: Range 240−255. Experimental use.
- CIDR Notation: Specifies IP and routing prefix length (e.g., 192.168.1.0/24).
Modern Network Environments
- SD-WAN (Software-Defined WAN): Centralized control function to dynamically route traffic across the optimal path (MPLS, LTE, Broadband).
- Zero-Touch Provisioning: Remote device deployment with minimal manual intervention.
- VXLAN (Virtual Extensible LAN): Layer 2 encapsulation in UDP packets to create logical networks over Layer 3 infrastructure, scaling beyond the 4096 VLAN limit.
- Zero Trust Architecture: "Never trust, always verify." Enforces strict access control regardless of network location.
- Least Privilege: Minimum access needed for tasks.
- SASE/SSE:
- SASE (Secure Access Service Edge): Integrates WAN services and security fabric.
- SSE (Security Service Edge): Focuses on security services like Secure Web Gateways and ZTNA in the cloud.
- Infrastructure as Code (IaC): Managing infrastructure via terminal definition files rather than manual config.
- IPv6 Transitioning:
- Tunneling: Encapsulating IPv6 inside IPv4 packets.
- Dual Stack: Running IPv4 and IPv6 simultaneously on devices.
- NAT64: Translating IPv6 to IPv4 and vice versa.
Network Implementation: Routing and Switching
- Route Selection Metrics:
- Administrative Distance: Ranking of trustworthiness of route sources (lower is better).
- Metric: Value evaluated by routing protocol (bandwidth, hop count, delay; lower is better).
- Protocols:
- BGP (Border Gateway Protocol): Routing between Autonomous Systems (ASes) on the internet.
- EIGRP: Cisco proprietary, hybrid distance-vector/link-state.
- OSPF: Link-state protocol using the Shortest Path First (SPF) algorithm.
- NAT/PAT:
- NAT: Remaps private address spaces into public ones.
- PAT (NAT Overload): Maps multiple private IPs to one public IP via different port numbers.
- Redundancy:
- VRRP/FHRP: Provides automatic failover for the first-hop router.
- Virtual IP (VIP): IP address not tied to a specific physical interface, used for load balancing.
- Switching Features:
- VLAN: Subgroup within a network to isolate broadcast domains.
- Port Tagging (802.1Q): Inserting VLAN IDs into Ethernet frames.
- Spanning Tree Protocol (STP): Prevents network loops by logically blocking redundant paths.
- MTU (Maximum Transmission Unit): Standard Ethernet is 1500 bytes. Jumbo frames are typically up to 9000 bytes.
Wireless Technologies
- Channels: Subdivisions of frequency bands.
- 2.4 GHz: Channels 1,6,11 are non-overlapping in the US.
- 6 GHz: Introduced for greater capacity (WiFi6E).
- Band Steering: Moving dual-band devices to less congested bands (e.g., 5GHz or 6GHz).
- SSID (Service Set Identifier): The name of the wireless network.
- BSSID: MAC address of the physical Access Point.
- ESSID: A name shared among interconnected APs to allow client roaming.
- Authentication:
- WPA2: Uses AES encryption.
- WPA3: Latest standard; protects against brute-force attacks.
- Enterprise: Uses a RADIUS server for individual user credentials.
- Antennas:
- Directional: Focuses signal in one direction for long-range connectivity.
- Omnidirectional: Radiates signal in all directions equally.
- Access Point Types:
- Autonomous: Standalone units handling all operations independently.
- Lightweight: Controlled by a centralized Wireless LAN Controller (WLC).
Physical Installations and Operations
- Distribution Frames:
- MDF (Main Distribution Frame): Primary hub where ISP lines enter.
- IDF (Intermediate Distribution Frame): Secondary hub to reduce distance between MDF and end users.
- Environment and Power:
- UPS (Uninterruptible Power Supply): Immediate battery backup for power failures.
- Temperature Management: Recommended range is 18∘C to 27∘C (64∘F to 81∘F).
- Humidity Control: Target is 45−55% to prevent corrosion or static.
- Documentation:
- Physical Diagram: Physical locations and cable connections.
- Logical Diagram: Data flows, subnets, and architecture.
- Service-level Agreement (SLA): Documented performance metrics and penalties.
- Disaster Recovery Metrics:
- RPO (Recovery Point Objective): Max acceptable data loss measured in time.
- RTO (Recovery Time Objective): Max allowable downtime to restore services.
- MTTR (Mean Time to Repair): Average time to repair a failed component.
- MTBF (Mean Time Between Failure): Average time between failures; measures reliability.
Network Security Concepts
- The CIA Triad:
- Confidentiality: Only authorized viewing.
- Integrity: Preventing unauthorized modification.
- Availability: Data accessible when needed.
- Identity and Access Management:
- Multifactor Authentication (MFA): Verification based on something you know (password), have (token), or are (biometric).
- Single Sign-On (SSO): One login for multiple independent systems.
- RADIUS: Centralized AAA management protocol.
- Attacks:
- DoS/DDoS: Overwhelming a server with excessive traffic.
- VLAN Hopping: Bypassing Layer 2 security to move between VLANs.
- ARP Poisoning: Associating attacker MAC with legitimate IP address.
- Evil Twin: Rogue AP masquerading as a legitimate one using same SSID.
- Social Engineering: Manipulating people (Phishing, Tailgating, Shoulder Surfing).
- Security Solutions:
- 802.1X: Port-based Network Access Control.
- Honeypot: Decoy system to trap and monitor attackers.
- DMZ (Screened Subnet): Buffer zone for public-facing services (web, email).
Network Troubleshooting Methodology
- Identify the Problem: Gather information, duplicate the issue, and identify symptoms.
- Establish a Theory of Probable Cause: Question the obvious and consider the OSI model.
- Test the Theory: Verify the cause. If confirmed, move to resolution; if not, create a new theory.
- Establish a Plan of Action: Identify potential effects of the plan.
- Implement the Solution: Execute the plan or escalate.
- Verify Full System Functionality: Implement preventive measures.
- Document Findings: Record actions, outcomes, and lessons learned.
- ping: Tests connectivity using ICMP.
- traceroute/tracert: Shows the path of hops to a destination.
- nslookup/dig: Queries DNS name resolution.
- netstat: Displays active connections and statistics.
- nmap: Discovers devices and services on a network.
- Toner: Generator and probe set used to trace cables in bundles.
- Visual Fault Locator (VFL): Uses light to find breaks or bends in fiber cables.
- show mac-address-table: Displays the bridge/switch table mapping MACs to ports.
- show interface: Displays traffic stats and error counts (CRC, Runts, Giants).