Comprehensive Study Notes: Data Communications and Computer Networks, 9th Edition

Foundations of Computer Networks and Local Area Network Classifications

  • Computer Network Definition: An interconnected group of computers and computing equipment that uses wires or radio waves to share data and computing resources.

  • Network Categorization by Size:

    • Personal Area Network (PAN): Spans a few centimeters to several meters around an individual; includes devices like smartphones, laptops, and wireless keyboards.

    • Body Area Network (BAN): A specialized subset of PAN centering on wearable devices like smart glasses or smartwatches.

    • Local Area Network (LAN): Spans a room, a floor, or an entire building.

    • Campus Area Network (CAN): A collection of LANs covering a specific area such as a university or business campus.

    • Metropolitan Area Network (MAN): High-speed networks serving an area up to roughly 50 kilometers (approximately a typical city) to interconnect businesses and the Internet.

    • Wide Area Network (WAN): Large networks encompassing parts of states, multiple states, countries, or the entire world.

  • Core Components of Data Communications:

    • Data: Information translated for storage, transmission, and calculation (e.g., binary 1s and 0s).

    • Signals: Electric or electromagnetic impulses used to encode and transmit data.

    • Protocols: Sets of rules that signals must follow to be formatted correctly for transmission.

  • Network Hardware Essentials:

    • Workstations: Personal computers, tablets, or smartphones used by end users.

    • Servers: Computers that store network software and user files.

    • Switches: Collection points for wires that interconnect workstations on a LAN.

    • Routers: Connecting devices between LANs and WANs (like the Internet).

    • Nodes: Any device connected to a network, including endpoint devices and networking devices.

    • Subnetwork: A collection of nodes and media working together in a cohesive unit.

Network Architectures: The TCP/IP Suite and OSI Model

  • Network Architecture: Also called a communications model; organizes network pieces into layers to define services performed by hardware and software.

  • The TCP/IP Protocol Suite (5 Layers):

    1. Application Layer: Supports user applications (HTTP, SMTP, FTP, SSH, SNMP); includes services like encryption and compression.

    2. Transport Layer: Maintains an error-free end-to-end connection using TCP (Transmission Control Protocol) or UDP (User Datagram Protocol).

    3. Network Layer: Transfers data within and between networks using IP (Internet Protocol). Uses 32-bit (IPv4) or 128-bit (IPv6) addresses.

    4. Data Link Layer: Gets data from the workstation to the router; prepares a frame for transmission and handles error/flow control.

    5. Physical Layer: Handles the actual transmission of bits over wires or radio waves; defines voltage levels and pin configurations.

  • The OSI Model (7 Layers):

    1. Application Layer: Similar to TCP/IP; provides support for user apps.

    2. Presentation Layer: Handles ASCII-to-non-ASCII conversions, encryption, and compression.

    3. Session Layer: Responsible for establishing sessions, token management, and synchronization points (backup points for transmission failures).

    4. Transport Layer: Identical to TCP/IP transport functions.

    5. Network Layer: Identical to TCP/IP network functions.

    6. Data Link Layer: Identical to TCP/IP data link functions.

    7. Physical Layer: Identical to TCP/IP physical functions.

  • Logical vs. Physical Connections:

    • Logical Connection: A nonphysical connection between sender/receiver layers (indicated by dashed lines in diagrams) allowing the exchange of commands.

    • Physical Connection: The only direct connection between sender and receiver, occurring at the physical layer.

  • Encapsulation: The process of adding control information (headers/trailers) to a packet as it moves down through the layers. The packet grows in size as it moves down and shrinks as it moves up.

Cloud Computing Principles and Service Models

  • Cloud Computing Definition: Remote access to virtualized resources hosted in a software-defined environment.

  • Primary Characteristics (NIST Standards):

    • Scalability: Ability to adjust resources over time (Vertical = adding capacity to one server; Horizontal = adding more servers).

    • Elasticity: Ability to increase or decrease resources quickly and automatically in response to demand bursts.

    • Pay-as-you-go: Customers pay only for the resources they active use.

    • Self-service: Resources can be altered by the customer without involving the provider.

    • Broad Network Access: Ability to configure cloud resources from any Internet-connected computer.

    • Availability: The ability to withstand outages. High Availability (HA) is measured in "nines" (e.g., 99.999%99.999\% or "five nines" allows for less than 5.265.26 minutes of downtime per year).

  • Cloud Service Models:

    • Software-as-a-Service (SaaS): Access to an application running in the cloud (e.g., Google Docs, Dropbox).

    • Platform-as-a-Service (PaaS): Provides a platform for developers to build apps without managing the underlying OS/infrastructure (e.g., web-hosted databases).

    • Infrastructure-as-a-Service (IaaS): Most flexible; allows deep configurations of virtual servers, firewalls, and routers to replicate a physical datacenter.

  • Cloud Deployment Models:

    • Public Cloud: Virtualized resources hosted by a provider and available to anyone (e.g., AWS, Azure).

    • Private Cloud: Resources hosted by the owner for their exclusive use.

    • Hybrid Cloud: Connects local datacenter resources with remote cloud resources.

Physical Selection: Conducted and Radiated Media

  • Interface Standard Components:

    • Electrical: Deals with voltages, line capacitance, and electrical issues.

    • Mechanical: Deals with connectors, plug dimensions, and pin arrangements.

    • Functional: Describes the function of each circuit/pin.

    • Procedural: Describes how circuits are used to perform operations.

  • Personal Area Network Connections:

    • USB (Universal Serial Bus): Digital interface, hot-pluggable, supports daisy-chaining and power delivery. Modern version USB-C has 24 pins and supports up to 20Gbps20\,Gbps.

    • Thunderbolt: Developed by Intel; uses USB-C connector; reaches 40Gbps40\,Gbps.

    • Lightning: Apple proprietary 8-pin connector.

  • Conducted (Wired) Media:

    • Twisted Pair: Copper wires twisted to reduce Crosstalk (interference from parallel signals).

      • Cat 5e: Supports 1000Mbps1000\,Mbps (Gigabit Ethernet) for 100100 meters.

      • Cat 6: Supports 10Gbps10\,Gbps for short distances (375537-55 meters).

      • Cat 8: Supports 40Gbps40\,Gbps for 3030 meters; uses standard RJ45 connectors.

      • UTP vs. STP: Unshielded vs. Shielded. STP reduces EMI (electromagnetic interference).

    • Coaxial Cable: Single wire with braided shield; excellent at blocking EMI and carrying analog signals (Cable TV).

    • Fiber-Optic Cable: Thin glass/plastic cable using light pulses. Immune to EMI.

      • Single-mode: Thin core, laser source, long distances (100km100\,km), very high speed.

      • Multimode: Thicker core, LED source, shorter distances (300meters300\,meters).

  • Radiated (Wireless) Media:

    • Wi-Fi (802.11): Includes standards 802.11b, a, g, n (Wi-Fi 4), ac (Wi-Fi 5), ax (Wi-Fi 6). Wi-Fi 6 uses BSS coloring to reduce interference.

    • Bluetooth: Short-range, uses 2.4GHz2.4\,GHz ISM band. Class 1 (100m100\,m), Class 2 (10m10\,m), Class 3 (3m3\,m).

    • Zigbee: Low power, low data rate personal mesh network for IoT sensors.

    • UWB (Ultra-Wideband): High-speed, short-distance transfers and precise location discovery.

    • NFC (Near-Field Communication): Very close (<4cm<4\,cm) transfers; uses magnetic induction for payments (Apple Pay).

Fundamentals of Signals and Data Conversion

  • Signal Components:

    • Amplitude: Height of the wave (measured in voltsvolts, ampsamps, or wattswatts).

    • Frequency: Cycles per second (HzHz). Period = 1/frequency1/frequency.

    • Phase: Position of the waveform relative to time zero (e.g., 180180-degree shift).

  • Spectrum and Bandwidth: Spectrum is the range of frequencies. Bandwidth is the absolute difference between the highest and lowest frequencies (Bandwidth=fhighflowBandwidth = f_{high} - f_{low}).

  • Attenuation: Continuous loss of signal strength due to distance and resistance. Measured in Decibels (dB).

    • dB=10×log10(P2/P1)dB = 10 \times \log_{10}(P_2 / P_1)

    • A 3dB3\,dB loss represents a 50%50\% reduction in power.

  • Digital Encoding Schemes:

    • NRZ-L: Level-based; high voltage = 1, low = 0.

    • NRZI: Inversion-based; change at beginning = 1.

    • Manchester: Self-clocking; transition in the middle of every bit (low-to-high = 1, high-to-low = 0).

    • 4B/5B: Converts 4 bits to a unique 5-bit sequence to prevent long strings of 0s.

  • Modulation Techniques (Digital data to Analog Signal):

    • ASK (Amplitude Shift Keying): Varying amplitudes.

    • FSK (Frequency Shift Keying): Varying frequencies.

    • PSK (Phase Shift Keying): Varying phase angles. QPSK uses 4 angles for 2 bits per baud.

    • QAM (Quadrature Amplitude Modulation): Combined phase and amplitude changes. 1024-QAM allows 10 bits per signal change.

  • Digitization (Analog data to Digital Signal):

    • PCM (Pulse Code Modulation): Takes snapshots (PAM values) and converts to binary. Nyquist Theorem: Sampling rate must be at least 2×highest frequency2 \times \text{highest frequency}.

    • Delta Modulation: Checks if the wave shifted up (1) or down (0). Susceptible to slope overload noise.

  • Shannon’s Theorem: Calculates maximum data rate for noisy channels: DataRate=f×log2(1+S/N)Data Rate = f \times \log_2(1 + S / N).

Frames, Noise, and Error Handling

  • Frame Components: Payload (actual data) surrounded by Header (addressing/control) and Trailer (error checking).

  • Transmission Errors (Noise):

    • Gaussian/White Noise: Continuous static; fuzzy signal.

    • Impulse Noise: Random spikes; very difficult to detect.

    • Crosstalk: Unwanted coupling between signal paths.

    • Echo: Feedback from signal bouncing off the end of a cable.

    • Jitter: Timing irregularities in digital signals.

  • Error Detection Techniques:

    • Simple Parity: Adds one bit (even or odd parity); detects 50%50\% of errors (only odd numbers of broken bits).

    • Longitudinal Parity: Row and column parity in a data block.

    • Arithmetic Checksum: Transmitted bits are summed; receiver compares the sum.

    • CRC (Cyclic Redundancy Check): Treats packet as a polynomial and divides by a generator polynomial; highest accuracy (100%100\% detection for bursts less than degree r+1r+1).

  • Error Control Actions:

    • Toss the frame: Discard corrupt data (Ethernet default).

    • Stop-and-Wait: Sender waits for ACK (acknowledgment) for each packet. Uses timeouts.

    • Sliding Window: Sends multiple packets before stopping for an ACK. TCP uses windowing for efficiency and piggybacking (sending ACK inside returning data).

    • FEC (Forward Error Correction): Correcting errors without retransmission using Hamming codes or Reed-Solomon codes.

Local Area Network Technologies and Switches

  • LAN Topology Evolution:

    • Bus: All devices on a linear cable; one message at a time; collision prone.

    • Star-Wired Bus: Physical star (hub-centered) but logical bus (everyone hears everything).

    • Star: Modern layout using a switch; physical and logical star.

  • Medium Access Control (MAC):

    • CSMA/CD: Wired contention; listen for silence, transmit, detect collisions. Uses a collision window.

    • CSMA/CA: Wireless; uses Interframe Spaces (IFS) and Request to Send/Clear to Send (RTS/CTS) to avoid collisions.

  • Switches and Advanced Features:

    • MAC Address Table: Switch learns which MAC address is on which port using backward learning.

    • Full-Duplex: Capability to transmit and receive simultaneously on separate wire pairs.

    • VLAN (Virtual LAN): Logical subgrouping within a switch using 802.1Q tagging; segments broadcast domains.

    • Link Aggregation (LAG): Combining multiple links for higher bandwidth (802.1AX).

    • STP (Spanning Tree Protocol): 802.1D; prevents traffic loops in circular switch connections by blocking redundant ports.

    • QoS (Quality of Service): 802.1p; uses a 3-bit Priority Code Point (PCP) field to prioritize traffic (0-7 scale).

Network Software, Virtualization, and Device Configuration

  • Server Software:

    • RAID (Redundant Array of Independent Disks):

      • RAID 0: Striping; fast, no redundancy.

      • RAID 1: Mirroring; duplicate copies.

      • RAID 5: Striped data and interleaved parity; most common for enterprise.

    • Storage Types: DAS (Direct Attached), NAS (Network Attached - File System), SAN (Storage Area Network - Block Storage using LUNs).

    • Operating Systems: Unix, Linux (open source distros like Ubuntu, RHEL), Windows Server (uses Active Directory - AD).

  • Active Directory Components: Forest >> Tree >> Domain >> OU (Organizational Unit) >> Leaves (printers, users).

  • Cisco IOS Modes: User EXEC (Router>>), Privileged EXEC (Router#), Global Config (Router(config)#), Interface Config (Router(config-if)#).

  • Virtualization:

    • Hypervisors: Type 1 (Bare metal - e.g., ESXi) vs. Type 2 (on top of an OS - e.g., VirtualBox).

    • NFV (Network Functions Virtualization): Virtualizing firewalls, routers, load balancers.

    • SDN (Software-Defined Networking): Centralized controller manages the Control Plane (decisions) while devices handle the Data Plane (forwarding).

  • Cloud Integration:

    • Microservices: Breaking apps into small components.

    • Containerization: Running microservices in isolated "containers" (e.g., Docker).

    • Serverless Computing: CSP manages servers; code runs for ms when triggered (e.g., AWS Lambda).

World Wide Web and Internet Protocols

  • Addressing and Routing:

    • IP (Internet Protocol): Connectionless, unreliable packet switching.

    • IPv4: 32-bit; dotted decimal; uses Private addresses (10.x.x.x, 192.168.x.x).

    • IPv6: 128-bit; hexadecimal; no fragmentation field in header for safety.

    • Subnetting: Dividing networks using a Subnet Mask (1s = network ID, 0s = host ID). Shorthand = CIDR/Slash notation (e.g., /24).

  • Internet Services & Utilities:

    • DNS (Domain Name System): Translates URLs to IP addresses.

    • DHCP (Dynamic Host Configuration Protocol): Replaces static IP assignment with dynamic pools.

    • NAT (Network Address Translation): Translates many private IPs to one public IP to save address space.

    • TCP (Transmission Control Protocol): Connection-oriented; provides port numbers for multiplexing/sockets.

    • UDP (User Datagram Protocol): Connectionless; used for streaming/DNS.

    • ICMP (Internet Control Message Protocol): Error reporting (Ping, Tracert).

    • ARP (Address Resolution Protocol): Matches IP addresses to MAC addresses on a local LAN.

  • Internet Services:

    • Email: SMTP (Sending), POP3 (local download), IMAP4 (server storage). Uses MIME for attachments.

    • Remote Login: Telnet (Insecure), SSH (Secure), RDP (Windows Remote Desktop), VNC.

    • VoIP (Voice over IP): Digitizes and compresses voice. SIP (Session Initiation Protocol).

    • IoT (Internet of Things): Connecting non-computing devices home appliances/locks to the Internet.

    • Data Analytics: Supervised (Labeled data), Unsupervised (unlabeled patterns), and Reinforcement learning (trial and error).

Risk, Security, and Compliance Management

  • Security Risks: DDoS (Zombie bombardment), Social Engineering, Phishing, Pharming (DNS spoofing), Ransomware, Rootkits, and Keyloggers.

  • Risk Assessment and Response:

    • Assessments: Application scanning, Vulnerability scanning, and Penetration testing (active exploitation).

    • Responses: Avoidance, Mitigation, Transfer (Insurance), or Acceptance.

  • Data Security Frameworks:

    • CIA Triad: Confidentiality, Integrity, Availability.

    • Regulations: GDPR (Europe), HIPAA (Healthcare), PCI DSS (Credit cards), SOX (Financial reporting).

  • Encryption Technologies:

    • Ciphers: Substitution (Mono/Polyalphabetic) and Transposition (reordering).

    • Standards: DES (old - 56-bit key), 3DES, AES (Modern - up to 256-bit block cipher).

    • Asymmetric Encryption: Public Key (Encryption) and Private Key (Decryption).

    • PKI (Public Key Infrastructure): CAs (Certificate Authorities) and X.509 Certificates.

    • Digital Signatures: Hash encrypted with private key to prove ownership/integrity.

  • IAM (Identity and Access Management):

    • AAA: Authentication (who), Authorization (what), Accounting (logs/audit trail).

    • Separation of Duties (SoD): Ensuring no one person has total system control.

  • Wireless Security: WEP (obsolete), WPA (uses TKIP), WPA2 (uses AES/CCMP), WPA3 (current standard). Use Spread Spectrum (FHSS or DSSS) to resist eavesdropping.

Wide Area Networking and Optimization

  • Routing Protocols:

    • RIP: Distance-vector; 15-hop limit; updates every 30s.

    • OSPF: Link-state; uses Dijkstra’s algorithm; fast convergence; floods packets on change.

    • EIGRP: Hybrid; Cisco proprietary.

    • BGP (Border Gateway Protocol): The routing protocol of the open Internet; path-vector.

  • Multiplexing:

    • TDM (Time Division): Sync TDM (static slots/wasteful) vs Stat TDM (as-needed addressing).

    • FDM (Frequency Division): Assignments of frequency ranges/channels.

    • WDM (Wavelength Division): Multiple light frequencies on fiber (Lambdas). Includes DWDM and CWDM.

    • OFDM: Used in Wi-Fi and 5G; overlapping frequencies that are mathematically orthogonal (no interference).

  • Compression:

    • Lossless: Run-Length Encoding (counting symbol runs) and LZ77 (dictionary-based).

    • Lossy: MP3 (Perceptual noise shaping), JPEG (Discrete cosine transformation + Quantization), and MPEG (I, P, B difference frames).

  • WAN Connectivity Services:

    • Consumer: DSL (Asymmetric), Cable (DOCSIS/HFC), Satellite (GEO/LEO), 5G.

    • Enterprise: MPLS (Uses labels/shims between Layer 2 and 3), Carrier Ethernet, Metro Ethernet (Point-to-point vs Multipoint).

    • Virtualization: SD-WAN (Transport agnostic control), SD-Branch, SASE (Secure Access Service Edge - combines cloud and network security).

Design, Monitoring, and Continuity

  • Project and Design Lifecycle:

    • Project Process: Initiating, Planning, Executing, Monitoring/Controlling, Closing.

    • Development models: Waterfall (linear) vs. Agile/DevOps (CI/CD - continuous integration/delivery).

    • Modeling: Wide, Metropolitan, and Local Area Connectivity Maps.

    • Baseline: Measurement of network state during normal operation to identify future deviations.

  • Network Management Tools:

    • Hardware: Continuity testers, Cable testers, and Network testers (for jabbers).

    • Traffic: Syslog (severity levels 0-7), SNMP (Read, Write, and Trap commands via MIB database), NetFlow (Cisco proprietary flow records).

  • Cloud Deployment:

    • Migration Strategies: Rehost (Lift and Shift), Replatform (Tinker), Refactor (Rewrite), Repurchase (Rip and Replace), Retain, Retire.

    • IaC (Infrastructure as Code): Tools like Terraform, Ansible, Chef, Puppet to automate provisioning.

  • Business Continuity (BC) and Disaster Recovery (DR):

    • SPOF: Single Point of Failure.

    • Recovery Sites: Hot (ready now), Warm (partially set), Cold (empty shell).

    • RTO/RPO: Recovery Time Objective (limit on downtime) and Recovery Point Objective (limit on data loss).

    • Backup Rule (3-2-1): 3 copies of data, 2 different media, 1 copy off-site.