Computer Networking Protocols Study Guide
Computer Networking Protocols Study Guide
Comprehensive Technical Reference for Network Architecture, Models, Addressing, Routing & CLI Utilities
OSI & TCP/IP Models IPv4/IPv6 & Subnetting Network Hardware & Firewalls CLI Troubleshooting Commands
SWITCH
DIAGRAM 1.1: PHYSICAL LAYOUT COMPARISON BETWEEN STAR AND FULL MESH NETWORKS
Associated Protocols /
Layer No. & Name Data Unit (PDU) Primary Function / Responsibilities
Hardware
Layer 7: Data User interface, high-level APIs, network service HTTP, HTTPS, FTP, SMTP,
Application access. DNS, DHCP
Layer 6: Data Data formatting, encryption/decryption, SSL/TLS, ASCII, JPEG, SSL/TLS, MPEG
Presentation compression.
Layer 5: Session Data Establishes, manages, and terminates session NetBIOS, PPTP, RPC
dialogues.
Layer 4: Segment (TCP) / End-to-end reliable delivery, flow control, error TCP (Reliable), UDP (Fast
Transport Datagram (UDP) checking, port addressing. connectionless)
Layer 3: Network Packet Logical IP addressing, path determination, packet IPv4, IPv6, ICMP, ARP, Routers
routing.
Layer 2: Data Frame Physical MAC addressing, error detection (CRC), Ethernet, Wi-Fi (802.11),
Link switching. Switches, NIC
Layer 1: Physical Bits (0s & 1s) Electrical/Optical signal transmission, cables, RJ-45, Fiber Optic, Hubs,
connector specs. Repeaters
7. Application
Application Layer (HTTP, DNS)
6. Presentation
5. Session
Transport Layer (TCP, UDP)
4. Transport
Internet Layer (IP, ICMP)
3. Network
Total Address $2^{32} pprox 4.3 ext{ billion $2^{128} pprox 3.4 imes 10^{38} ext{ addresses (Virtually infinite)}$
Pool addresses}$
Notation Format Dotted Decimal (e.g., [Link]) Hexadecimal separated by colons (e.g., 2001:0db8:85a3::8a2e:
0370:7334)
Header Variable length (20 to 60 bytes) with Fixed length (40 bytes), streamlined without checksum
Complexity checksum
Configuration Manual or via DHCP server Supports Auto-configuration (SLAAC - Stateless Address Auto Config)
Mode
• Subnetting (CIDR Notation): Division of a larger IP network into smaller logical subnetworks to reduce broadcast
domains and optimize security.
Example: [Link]/24 has a Subnet Mask of [Link] ($24$ network bits, $8$ host bits = $256 - 2 = 254$ usable
host IPs).
• Default Gateway: The local router interface IP address (e.g., [Link]) that forwards local LAN traffic destined for
external outside networks.
Hub Layer 1 Legacy non-intelligent device. Broadcasts incoming data packets to ALL connected ports
(Physical) indiscriminately. High collision risk.
Switch Layer 2 (Data Intelligent device. Uses a MAC Address Table (CAM Table) to forward incoming data frames
Link) directly to the intended destination port only.
Router Layer 3 Connects distinct logical networks (e.g., LAN to WAN). Reads IP packet headers and uses
(Network) Routing Tables to determine the optimal path across networks.
Access Point Layer 2 (Data Transmits radio signals allowing wireless Wi-Fi devices to join a wired Ethernet network.
(WAP) Link)
Firewall Layer 3, 4, & 7 Hardware/Software security filter. Inspects incoming and outgoing traffic based on predefined
security rules (ACLs) to block unauthorized access.
# 1. ipconfig / ifconfig
# Windows: Displays all active adapter network configurations (IP, Subnet Mask, Gateway)
ipconfig /all
# 3. traceroute / tracert
# Traces the hop-by-hop router path packets take to reach a destination host
tracert [Link]