Computer Networking Fundamentals and Protocols
Fundamentals of Computer Networks
Network: A system of interconnected computers, devices, or systems linked together via physical cables or wireless signals to share resources, exchange files, and communicate.
Nodes: Individual physical devices connected to a network (e.g., computers, printers, smartphones).
Protocol: A predefined set of rules and guidelines that dictate how data is formatted, transmitted, routed, received, and acknowledged across a network.
Packets: Small chunks of data broken down from larger messages at the source device to travel across network media and be reassembled at the destination.
Network Roles & Models:
Clients/Hosts: Devices that access resources and request services (e.g., laptops, smartphones, smart TVs).
Servers: High-performance computers that store data, run applications, and fulfill client requests.
Peer-to-Peer: A decentralized architecture where each device has equal capabilities and shares resources directly without a central server.
Client-Server: Centralized architecture where central servers manage resources for requesting client devices.
Network Hardware and Identifiers
Foundational Hardware:
Switch: Internal controller connecting devices within the same network to manage localized traffic.
Router: Dispatcher device connecting different networks together and routing data packets to their final destination.
Access Point (AP): Device creating a wireless local area network (WLAN).
Firewall: Network security system monitoring and filtering incoming/outgoing traffic based on security rules.
Addresses & Identifiers:
IP Address: Logical identifier assigned to devices across a network using the Internet Protocol.
Public IP: Assigned by ISPs to identify an entire network on the wider internet.
Private IP: Assigned by local routers to identify individual devices on a local network.
MAC Address: Permanent, hardcoded physical hexadecimal address assigned to a device's network interface card (NIC) by the manufacturer (e.g.,
00:1A:2B:3C:4D:5E).DNS (Domain Name System): Translates human-readable domain names into computer-friendly numeric IP addresses.
DHCP (Dynamic Host Configuration Protocol): Dynamically assigns IP addresses to devices joining a network.
Network Types, Scope, and Architecture
Geographic Network Types:
PAN (Personal Area Network): Smallest network centering around a single user within a () radius (e.g., Bluetooth devices).
LAN (Local Area Network): Connects devices in a confined location like a home or office; operates from to using protocols like Ethernet (IEEE 802.3).
WLAN (Wireless Local Area Network): LAN utilizing wireless signals (Wi-Fi / IEEE 802.11) instead of physical cables.
CAN (Campus Area Network): Connects multiple LANs across a specific location (e.g., university or corporate campus).
MAN (Metropolitan Area Network): Covers a broader geographic region such as an entire city.
WAN (Wide Area Network): Connects multiple networks across continents or the globe (e.g., the Internet).
Enterprise & Private Architectures:
VPN (Virtual Private Network): Securely extends a private network across a public network.
SAN (Storage Area Network): High-speed specialized network giving servers block-level access to data storage devices.
EPN (Enterprise Private Network): Built by businesses to securely link multiple enterprise locations.
Network Topologies and Design
Topologies:
Star: All nodes connect to a single central hub or switch; easy to scale, but reliant on the central node.
Bus: Nodes connect sequentially to a single backbone cable terminated at both ends.
Ring: Nodes connect in a continuous loop, forwarding data to adjacent nodes.
Mesh: Nodes connect to multiple devices (Partial Mesh) or every device (Full Mesh), ensuring high redundancy.
Tree: Hierarchical arrangement combining star and bus elements, branching out from a root node.
Hybrid: Integration of two or more distinct topology types (e.g., Star-Mesh).
Hierarchical Design Layers:
Access Layer: Network edge that connects endpoint devices (PCs, printers, APs) and enforces user access policies.
Distribution Layer: Policy-driven routing boundary managing subnets, Access Control Lists (ACLs), and traffic flows between access and core.
Core Layer: High-speed network backbone providing fast data transport across major sites.
Network Protocol Suites and Models
OSI Model () Overview & Detailed Components
Layer 7: Application Layer
Data Unit: Messages / Data
Function: Direct software interface to network services and user applications.
Protocols & Terms:
HTTP/HTTPS: Hypertext Transfer Protocol (Secure) used for fetching and displaying web content.
FTP: File Transfer Protocol for uploading and downloading files between client and server.
SMTP / POP / IMAP: Mail protocols for sending (SMTP) and receiving/managing (POP, IMAP) emails.
Telnet / SSH: Protocols for remote access; Telnet sends unencrypted plain text, while SSH provides encrypted terminal connections.
DNS & DHCP: Resolves domain names to IP addresses and automates dynamic IP assignment.
Layer 6: Presentation Layer
Data Unit: Data
Function: Handles data translation, syntax formatting, encryption/decryption, and compression.
Terms & Examples:
Data Translation: Converts data syntax and character encodings (e.g., ASCII) so different systems understand each other.
Data Encryption: Scrambles readable data into encrypted code to keep private information secure.
Data Formatting: Formats file types (e.g., JPEG, HTML, ASCII).
Layer 5: Session Layer
Data Unit: Data
Function: Establishes, manages, synchronizes, and terminates communication sessions between software applications.
Terms & Examples:
Session Tracking: Maintains active login sessions and dialogue checkpoints between applications.
Layer 4: Transport Layer
Data Unit: Segments (TCP) / User Datagrams (UDP)
Function: Provides end-to-end delivery, segmentation, flow control, sequence tracking, and error checking.
Protocols & Terms:
Data Segments: Groups split from larger data pools for organized transmission and tracking.
TCP (Transmission Control Protocol): Connection-oriented, reliable protocol that tracks packet delivery and automatically retransmits lost data.
UDP (User Datagram Protocol): Connectionless, lightweight, fast protocol without delivery guarantees (used for streaming and gaming).
Error Checking: Mathematical verification process (checksums) ensuring data is not corrupted in transit.
Layer 3: Network Layer
Data Unit: Packets / Datagrams
Function: Manages logical IP addressing, packet packaging, path determination, and routing across different networks.
Protocols & Hardware:
Packets: Segments packaged with logical source and destination IP headers.
IP (IPv4, IPv6): Logical addressing scheme used to route data across networks.
ICMP: Diagnostic and error-reporting protocol used by routers to manage network health (e.g., ping).
ARP: Maps logical IP addresses to physical MAC addresses on a local network.
Routers: Devices that determine the optimal path for packets across networks.
Layer 2: Data Link Layer
Data Unit: Frames
Function: Formats packets into frames, executes node-to-node transfers on the local network, handles physical MAC addressing, and detects physical errors.
Terms & Hardware:
Frames: Data packets encapsulated with physical MAC destination/source addresses and error detection codes.
Switches & NICs: Hardware components that read physical MAC addresses to route frames on a local network.
ACLs (Access Control Lists): Rules specifying allowed communication between devices.
Layer 1: Physical Layer
Data Unit: Bits / Raw Bitstream
Function: Transmits raw bits over physical media via electrical, optical, or radio signals.
Transmission Media & Hardware:
Twisted Pair Cables: Insulated copper wires twisted to reduce interference (UTP for general use, STP with metal shields for industrial environments).
Fiber Optic Cables: Thin glass/plastic strands transmitting light pulses; Single-Mode Fiber (SMF) for long-distance, Multi-Mode Fiber (MMF) for building scale.
Coaxial Cables: Central copper conductor with insulation and shield used for broadband modems and legacy networks.
Wireless Electromagnetic Waves: Radio waves (Wi-Fi, 5G cellular), Microwaves (satellite, GPS), Infrared waves (short-range remotes).
Hardware: Hubs, repeaters, physical cabling, and access points.
TCP/IP Model () Architecture
Layer 4: Application Layer (Maps to OSI Layers 7, 6, 5)
Protocols: HTTP, HTTPS, FTP, SMTP, POP, IMAP, DNS, DHCP, Telnet, SSH.
Data Unit: Messages / Data.
Layer 3: Transport Layer (Maps to OSI Layer 4)
Protocols: TCP, UDP.
Data Unit: Segments / Datagrams.
Layer 2: Internet Layer (Maps to OSI Layer 3)
Protocols: IP (IPv4, IPv6), ICMP, ARP.
Data Unit: Packets / Datagrams.
Layer 1: Network Access / Link Layer (Maps to OSI Layers 2, 1)
Technologies: Ethernet (IEEE 802.3), Wi-Fi (IEEE 802.11), MAC Addressing, DSL, RS-232, SDH.
Data Unit: Frames / Bits.
Protocol Standards, IPv4 vs. IPv6, and Legacy Protocols
Legacy Protocols: Older, unencrypted methods (e.g., Basic Authentication, FTP, Telnet) that transmit plain-text credentials and lack multi-factor authentication (MFA) capabilities.
IPv4 vs. IPv6:
IPv4: Uses addresses formatted as octets ( to ) separated by periods; yields () addresses. Structured into Classes A, B, C (host addressing), D (multicasting), E (experimental), and relies on Network Address Translation (NAT).
IPv6: Uses addresses written in groups of hexadecimal digits separated by colons; yields () addresses. Supports auto-configuration (SLAAC), skips NAT, and simplifies routing headers.