Comprehensive Networking & Device Security Study Guide
IPv4 Addressing (Module 11)
IPv4 Address Structure: An IPv4 address is a hierarchical address. It is divided into two distinct parts:
- Network Portion: Identifies the specific network to which the host belongs.
- Host Portion: Identifies the unique device on that specific network.
The Subnet Mask: This is a value used by devices to determine where the network portion ends and the host portion begins. This determination is made through a bit-by-bit comparison process known as logical ANDing.
Prefix Length (Slash Notation): This is a shorthand method for expressing the subnet mask. It counts the number of bits set to in the mask. For instance, a prefix of is equivalent to a dotted-decimal mask of .
IPv4 Capacity and Address Limits: The IPv4 addressing scheme has a theoretical limit of approximately () unique addresses.
IPv4 Communication Types:
- Unicast: Direct communication from one specific host to another single specific host.
- Broadcast: Traffic sent from one host to every host on the local network simultaneously.
- Multicast: Traffic sent from a host to a defined group of interested hosts.
IPv6 Addressing (Module 12)
IPv6 Address Structure: Addresses are in length. They are written as a series of hexadecimal values in the format , where each "x" represents a hextet (four hexadecimal digits or ).
IPv4 to IPv6 Migration Strategies: The Internet Engineering Task Force (IETF) created three primary methods to facilitate the transition:
- Dual Stack: Running both IPv4 and IPv6 protocol stacks on the same network devices simultaneously.
- Tunneling: Transporting an IPv6 packet inside an IPv4 packet across an IPv4-only network.
- Translation: Using Network Address Translation (NAT64) to allow IPv6-enabled devices to communicate with IPv4-enabled devices.
IPv6 Address Categories: IPv6 utilizes Unicast, Multicast, and Anycast. Notably, IPv6 does not use a broadcast address.
Global Unicast Address (GUA): These are globally unique and routable on the public internet, similar to public IPv4 addresses. They can be manually configured using the command:
ipv6 address ipv6-address/prefix-length.Link-Local Address (LLA): Used strictly for communication on a single local subnet or link. LLAs are mandatory for all IPv6-enabled devices. Cisco routers automatically generate an LLA as soon as a GUA is assigned to an interface.
Dynamic Configuration and ICMPv6: Devices can obtain GUAs dynamically via ICMPv6 Router Advertisement (RA) messages, which routers send out every . The three methods include:
- Stateless Address Autoconfiguration (SLAAC).
- SLAAC with Stateless DHCPv6.
- Stateful DHCPv6.
Interface ID Generation: The host portion of an IPv6 address, the Interface ID, can be generated in two ways:
- Randomly Generated: Created by the device operating system.
- EUI-64 Process: Uses the device's MAC address, splits it in the middle, and inserts a hexadecimal value of
ff:fe() to create the ID.
IPv6 Multicast Groups:
ff02::1: The all-nodes multicast group (reaches all IPv6-enabled devices on the link).ff02::2: The all-routers multicast group.- Solicited-Node Multicast: Mapped to a special Ethernet multicast address for efficient neighbor discovery.
IPv6 Subnetting: IPv6 includes a dedicated subnet ID field within the address structure, allowing for simple native subnetting, typically resulting in subnets.
ICMP and Network Diagnostic Utilities (Module 13)
Internet Control Message Protocol (ICMP): Provides feedback regarding issues related to the processing of IP packets. It does not ensure delivery but reports on errors.
Common ICMPv4 and ICMPv6 Messages:
- Host Reachability.
- Destination or Service Unreachable.
- Time Exceeded (used when a packet's TTL or Hop Limit reaches ).
IPv6-Specific ICMP Messages:
- Router Solicitation (RS) and Router Advertisement (RA): Used for dynamic address allocation.
- Neighbor Solicitation (NS) and Neighbor Advertisement (NA): Used for address resolution and duplicate address detection.
- Redirect Messages.
The Ping Utility: Uses ICMP Echo Request and Echo Reply messages to verify end-to-end connectivity. It can also be used to test the internal IP configuration of a local host by pinging the loopback address.
Traceroute (tracert): Maps the path to a destination by listing each router (hop) and measuring the Round-Trip Time (RTT) for each.
- Operational Mechanism: It utilizes the Layer Time to Live (TTL) field in IPv4 or the Hop Limit field in IPv6.
- The source sends a sequence of packets with incrementally increasing TTL values, starting at , then , then , and so on.
- As each router decrements the TTL to , it drops the packet and sends an ICMP Time Exceeded message back to the source, revealing the router's identity.
- An asterisk (*) in the output indicates a lost packet or a router that is configured to suppress ICMP replies.
The Transport Layer (Module 14)
Primary Role: Layer handles logical, end-to-end communication between specific applications running on different hosts. It serves as the vital bridge between the Application Layer and the lower layers used for data transmission.
Core Responsibilities:
- Tracking Conversations: Keeping track of individual data streams between source and destination applications.
- Segmentation and Reassembly: Breaking data into smaller segments for transmission and putting them back together at the destination.
- Header Addition: Attaching source and destination port numbers to identify applications.
- Multiplexing: Interleaving multiple distinct conversations (e.g., a web browser, a streaming video, and an email sync) over the same network medium simultaneously.
Key Protocols:
- Transmission Control Protocol (TCP): Provides reliable delivery, error checking, and flow control.
- User Datagram Protocol (UDP): Provides fast, connectionless delivery with minimal overhead.
Application Layer Services (Module 15)
The OSI Upper Layers:
- Application Layer (Layer 7): Provides the interface between the software programs and the network.
- Presentation Layer (Layer 6): Responsible for formatting (coding) data, data compression, and encryption/decryption.
- Session Layer (Layer 5): Manages the start, stop, and restart of dialogs/sessions between applications.
Network Service Models:
- Client/Server: A centralized model where clients request resources (like files or web pages) and servers provide them.
- Peer-to-Peer (P2P): A decentralized model where computers connect directly to share resources without the need for a dedicated server.
Application Layer Protocols & Common Ports:
- HTTP: Used for web traffic. Standard messages include GET (request data), POST (upload data), and PUT (upload files/resources).
- Email Protocols: SMTP is used for sending mail; POP is used for retrieving mail; IMAP is used for synchronizing mail across devices.
- DNS: Resolves human-readable resource names (like www.google.com) into numeric IP addresses.
- DHCPv4: Automates the assignment of IPv4 addresses, subnet masks, and default gateways.
- DHCPv6: Operates using four specific messages: SOLICIT, ADVERTISE, INFORMATION REQUEST, and REPLY.
File Transfer Protocol (FTP): Specifically designed for moving data between a client and a server. It requires two distinct connections:
- TCP Port 21 (Control): Used for traffic control, such as sending commands and receiving replies.
- TCP Port 20 (Data): Used for the actual transfer of files; this connection is opened dynamically.
Server Message Block (SMB): A request-response protocol used for sharing files and printers. Unlike FTP, which requires a new connection for transfers, SMB establishes a long-term connection, allowing a client to interact with server resources as though they were stored locally.
Device Security Fundamentals and Threats (Module 16)
Primary Goal of Network Security: To safeguard network devices, data, and services from all forms of compromise or unauthorized access.
Threat Classifications:
- Environmental: Extreme temperatures (heat/cold) and excessive humidity.
- Electrical: Voltage spikes, brownouts (sustained drop in voltage), blackouts (complete power loss), and Electrostatic Discharge (ESD).
- Maintenance: Poorly labeled equipment, disorganized cabling, or lack of hardware organization.
- Hardware: Physical theft or damage to equipment.
Vulnerability Types:
- Technological: Built-in weaknesses in protocol designs, such as vulnerabilities in the TCP/IP suite.
- Configuration: Leaving unused ports open, using default passwords, or unsecured user accounts.
- Security Policy: A lack of documented disaster recovery plans or written standard operating procedures.
Malware Types:
- Virus: Malicious code that attaches itself to or inserts copies and hides within other legitimate host programs.
- Worm: A standalone program that propagates itself across a network without needing a host file. The most effective mitigation is the installation of security patches.
- Trojan Horse: Malware that masquerades as a legitimate, useful, or desirable program.
- Botnet: A network of infected host devices (known as "zombies") controlled by a remote attacker, frequently used to launch Distributed Denial of Service (DDoS) attacks.
Attack Categories:
- Reconnaissance: Gathering information about systems and vulnerabilities. Tools include ping sweeps, whois lookups, and nslookup.
- Access Attacks: Exploiting vulnerabilities to gain unauthorized entry. Examples include Password Attacks (Brute-force), Trust Exploitation (hacking a trusted host to jump to another), and Man-in-the-Middle (MITM) attacks (intercepting data between two parties).
- Denial of Service (DoS): Overwhelming a system's resources to crash the device or disable the network. A DDoS attack uses hundreds or thousands of source points to launch the attack simultaneously.
Endpoint Security: Focuses on securing client devices like smartphones, laptops, and PCs. This requires local policies, including host-based firewalls and antivirus software. Human behavior remains the most significant challenge in endpoint security.
Security Mitigation & Cisco Command Reference
Defense-in-Depth (Layered Security): The strategy of employing multiple, overlapping security controls so that if one fails, others remain to protect the asset.
Backup and Update Best Practices:
- Backups: Must be performed regularly and stored offsite. They must be validated to ensure data integrity and the ability to restore data successfully.
- Updates: Software and operating systems must be updated with current security patches before being deployed into production.
The AAA Framework:
- Authentication: Verifies the identity of the user (Who is requesting access?).
- Authorization: Determines which resources and commands the user is allowed to access (What can they do?).
- Accounting: Records the actions taken by the user (What did they do?).
Firewall Technologies:
- Packet Filtering: Based on Layer or Layer criteria like IP addresses, MAC addresses, or port numbers.
- Stateful Packet Inspection (SPI): Monitors the state of active connections and automatically blocks unsolicited inbound traffic.
- URL Filtering: Blocks access to specific websites based on their address.
- Application Filtering: Inspects the data within Layer payloads.
Other Security Appliances:
- DMZ (Demilitarized Zone): A specific subnet designed to host servers that must be accessible to the public internet (like web or email servers).
- VPN: Provides encrypted, secure remote connectivity over public networks.
- IPS (Intrusion Prevention System): Actively monitors for and blocks malicious network activity.
Password Best Practices: Minimum of (though is preferred). Use a combination of uppercase, lowercase, numbers, and special symbols. Change passwords regularly. Passphrases (longer phrases) are recommended as they are harder to guess but easier for humans to remember.
Service Hardening: Disabling unused services reduces the attack surface and saves system resources (CPU and RAM).
- IOS-XE Check:
show ip ports all - Pre-IOS-XE Check:
show control-plane host open-ports - Cisco AutoSecure: A built-in utility that automatically locks down default settings to secure the router.
- IOS-XE Check:
Cisco Secure Command Reference List:
service password-encryption: Encrypts all currently plain-text passwords within the configuration file.security passwords min-length [number]: Enforces a minimum character length for all new passwords.login block-for [sec] attempts [number] within [sec]: Configures the device to block login attempts after a specific number of failures to prevent brute-force attacks.exec-timeout [min] [sec]: Automatically logs out a privileged EXEC session after a period of inactivity.ip domain-name: Sets the network domain for the device.crypto key generate rsa: Generates the RSA key pairs needed for SSH encryption; a modulus of at least is recommended.login local: Configures the VTY lines to check the local database for username and password authentication.transport input ssh: Forces the VTY lines to only accept SSH connections, effectively blocking unsecured Telnet traffic.- Ports: SSH uses TCP Port ; Telnet uses TCP Port .