Comprehensive Study Notes on Computer Networking Fundamentals

Fundamentals of Computer Networking

  • Presenter and Organization: Ulouri from Fraecode Kamp introduces the foundational principles of computer networking.

  • Core Definition of a Network:

    • A network is defined as a connection established between two or more computers or devices that enables them to communicate with one another.

  • Human Communication Mechanics vs. Computer Communication Mechanics:

    • Human Transmission Mechanics:

    • When a person speaks, their mouth creates physical vibrations in the surrounding air.

    • The air acts as the physical medium through which the sound travels.

    • These atmospheric vibrations travel through the medium until they reach the ear of another person, who receives and decodes the audio information.

    • Computer Transmission Mechanics:

    • Computers do not possess physical mouths or ears and cannot naturally produce acoustic vibrations in the air.

    • To exchange information, computers require dedicated physical connections or wireless links established between hardware devices.

  • Methods of Constructing a Simple Network:

    • Simplest Network Architecture:

    • Purchase a standard wireless router and connect all user devices directly to it.

    • Practical Setup Example:

    • Desktop Computer: Connected to the wireless router using a physical wired network cable.

    • Printer: Connected to the wireless router using a physical wired network cable.

    • Laptop Computer: Connected to the wireless router wirelessly (Wi-Fi).

    • Interconnectivity: All three connected devices (desktop, printer, and laptop) can easily communicate with one another through the central wireless router.

Local Area Networks (LAN) and Network Interface Cards (NIC)

  • Local Area Network (LAN):

    • Definition: LAN stands for Local Area Network (lokaal netwerk).

    • Scope and Boundaries: A LAN represents a private, localized network restricted to a specific physical area or private property, such as an individual residence or office building.

    • Comparative Two-Home Example:

    • Home 1 (Your Residence): Features a private wireless router connected to one desktop computer, one laptop, and one printer. This setup forms your household's dedicated local network (LAN #1).

    • Home 2 (Neighbor's Residence): Features a separate private wireless router connected to one desktop computer and two laptops. This setup forms your neighbor's distinct local network (LAN #2).

    • Key Principle: Despite using similar hardware configurations and being physically adjacent, these two setups represent two completely distinct and isolated Local Area Networks.

  • Network Interface Card (NIC):

    • Definition: A critical hardware component installed inside a computer or network device that allows it to participate in a network.

    • Human Body Metaphor:

    • In human interaction, people (such as John, Bob, and Marie) transmit audio information using their mouth and receive audio information using their ears.

    • In computer hardware, the Network Interface Card (NIC) acts simultaneously as both the computer's mouth (transmitter) and ears (receiver).

    • Operational Role: Computers cannot send or listen to network signals directly without a functioning Network Interface Card.

Wide Area Networks (WAN) and MAC Addressing Frameworks

  • Wide Area Networks (WAN):

    • Definition and Scope: A Wide Area Network (WAN) is an expansive network that connects devices across large geographical distances, spanning multiple floors, separate buildings, cities, or continents.

    • Office Campus Architecture Example (Constructing a Small WAN):

    • Scenario: An enterprise office campus comprising multiple multi-story buildings with numerous computers located across different floors.

    • Hierarchical Network Construction Procedure:

      1. Place an individual network router on every floor of every campus building.

      2. Connect all computers located on a specific floor directly to that floor's designated router.

      3. Install a larger, central master router.

      4. Interconnect all individual floor routers into the single central master router.

    • Outcome: This multi-tiered, interconnected router architecture forms a structured small-scale WAN.

  • MAC Address (Media Access Control Address):

    • Disambiguation: The term "MAC" in networking is strictly technical and has no relation to a "Big Mac" hamburger or Apple's "Mac" (macOS) operating system.

    • Human Identity Analogy:

    • When John, Bob, and Marie sit together in a room and John speaks ("Hi Marie, how are you?"), Marie recognizes John's unique voice signature and knows to respond specifically to him ("Hey John, I am doing well"), while Bob remains silent.

    • Addressing Necessity in Computers:

    • Computers do not possess human voices or names. To allow network nodes to identify senders and intended targets, each network interface uses a unique hardware address.

    • Definition: A MAC address is a unique hardware identifier embedded permanently into the Network Interface Card (NIC) of every computer or networked device.

    • Data Structure and Representation:

    • While human names consist of alphabetical letters, MAC addresses are represented using hexadecimal numbers.

    • Data Size: Exactly 6 bytes6\text{ bytes} long, which converts to 48 bits48\text{ bits} (6 bytes×8 bits/byte=48 bits6\text{ bytes} \times 8\text{ bits/byte} = 48\text{ bits}).

    • Standard Notation Formats:

      1. Colon-Separated Byte Format: 6 bytes6\text{ bytes} displayed individually and separated by colons (e.g., 12:34:56:78:90:AB or formatted as 1 2 3 4 5 6 bytes separated by colons).

      2. Dot-Separated Double-Byte Format: Written in groupings of 2 bytes2\text{ bytes} (four hexadecimal characters) separated by periods/dots.

Shared Media Protocol and Frame Transmission Workflow

  • Shared Medium Concepts:

    • Human Room Analogy:

    • John, Bob, and Marie occupy the same room and share the atmospheric air as their common physical medium.

    • When John speaks aloud to Marie ("Hi Marie, this is John, how are you?"), acoustic vibrations travel across the shared air medium.

    • Both Bob and Marie physically receive the audio waves through their ears.

    • Bob checks the target destination ("Marie"), realizes the message is not directed to him, and silently ignores it.

    • Marie identifies herself as the intended target and transmits a targeted verbal reply.

    • Computer Shared Cable Medium:

    • In traditional shared network topologies (e.g., bus network topologies), multiple computers are directly wired to a single shared physical cable medium.

    • Every computer attached to the shared cable possesses its own NIC and unique MAC address.

  • Step-by-Step Data Exchange Procedure (Computer A to Computer B):

    • Step 1: Frame Generation by Sender (Computer A):

    • Computer A prepares a digital message frame directed to Computer B.

    • Frame header attributes specify Computer B's MAC address as the target destination, Computer A's MAC address as the source sender, and the message content ("How are you?").

    • Transmitted Data Syntax Analogy: "Hey B, this is A speaking. Here is my message: How are you?"

    • Step 2: Signal Broadcast across the Shared Medium:

    • Computer A transmits the physical electrical signals onto the shared cable medium.

    • Because the physical medium is shared, the transmitted signals propagate down the cable and are received by every connected Network Interface Card (e.g., Computer B and Computer C).

    • Step 3: Packet Inspection and Filtering by Non-Recipients (Computer C):

    • Computer C receives the signal via its NIC and inspects the frame header.

    • Computer C compares the destination MAC address in the frame header with its own MAC address.

    • Finding a mismatch (destination = B, self = C), Computer C silently ignores and drops the message without further processing.

    • Step 4: Packet Receipt and Processing by Target (Computer B):

    • Computer B receives the signal via its NIC and checks the destination MAC address.

    • Confirming that the target MAC address matches its own unique MAC address, Computer B accepts the frame and processes the payload.

    • Step 5: Sender Identification and Response Generation:

    • To construct a response, Computer B inspects the source MAC address field in the received header to identify Computer A as the original sender.

    • Computer B creates a response frame targeting Computer A's MAC address and attaches its reply payload ("It is going well with me").

    • Response Data Syntax Analogy: "Hey A, this is B. The actual message is: It is going well with me."

    • Computer B transmits the reply frame back across the shared medium.

Network Collisions, Detection, and Collision Avoidance

  • The Problem of Network Collisions:

    • Human Audio Interference Analogy:

    • When two people are engaged in a conversation in a room and a third person simultaneously speaks over them, acoustic interference occurs, making the original conversation unreadable and difficult to follow.

    • Data Signal Collision Mechanics:

    • Consider three computers (Computer A, Computer B, and Computer C) connected to the exact same shared network medium.

    • If Computer A is actively sending data to Computer B, and Computer C abruptly sends data to Computer A over the same shared channel at the exact same time, a physical collision occurs.

    • Consequence of Data Collisions:

    • Overlapping electrical or light signals cause signal corruption and interference.

    • Computer A's original message to Computer B becomes corrupted, unreadable, and completely unusable.

  • Collision Handling Mechanisms:

    • Collision Detection (Early Era of Networking):

    • Used in early computer network designs.

    • When Computer A sends a message frame and a collision occurs on the shared medium, Computer A actively senses and detects the signal disruption.

    • Upon collision detection, Computer A aborts transmission and pulls back (backs off) for a duration before attempting to retransmit the frame to Computer B.

    • Collision Avoidance (Modern Networking Enhancement):

    • Developed as an evolutionary enhancement to eliminate collisions before they can take place.

    • Before Computer C (or any node) transmits any data across the shared medium to Computer A, it actively monitors/checks the medium first to determine whether an active conversation or signal transmission is already ongoing.

    • If the shared medium is sensed to be busy, Computer C postpones its transmission and waits until the channel becomes clear before transmitting.

    • This proactive checking process is known as Collision Avoidance.