INFT1201 Computer Hardware

Lesson 10: Computer Networks – Infrastructure, Addressing, Protocols & Security

Lesson 10: Computer Networks

University of Doha for Science & Technology (UDST) • Chapter 10 Study Guide covering Network Interface Cards (NICs), Network Hubs vs. Switches vs. Routers, IPv4 Addressing & Subnet Masks, DHCP & DNS, MAC Addresses, IPv6 Evolution, Copper CAT Cables & RJ45 Pinouts, Fiber Optics, LAN vs. WAN, Virtual Private Networks (VPN), Virtual LANs (VLAN), Internet History & Packet Switching, and Wi-Fi Standards & Mesh Architecture.

1. Quick Notes & Comprehensive Summary

1. Basic Network Understanding & Network Cards (NIC)

Core Concept

A computer network connects two or more computers to share files, hardware resources (printers, storage), and allow digital communication. While standalone computers perform powerful computations, networking them unlocks unlimited collaboration and distributed computing power.

The Network Interface Card (NIC / Network Adapter):

  • Definition: An electronic hardware component that allows a computer to exchange data across a network by converting digital binary data (0s and 1s) into physical signals (electrical impulses, light pulses, or radio waves).
  • Core Purpose: Prepares data, sends data packets onto the medium, and controls traffic flow.
  • Common Form Factors:
    • Built-in Motherboard NIC: Integrated RJ45 Ethernet port found on desktop and laptop motherboards.
    • PCI / PCIe Network Card: Internal expansion card seated into desktop motherboard PCIe slots.
    • PCI Wireless Network Card: Internal card equipped with external radio antennas for desktop Wi-Fi.
    • USB "Wired" Network Card: External USB-to-Ethernet adapter dongle (essential for modern slim laptops without RJ45 jacks).
    • USB Wireless Network Card: Compact USB Wi-Fi dongle for instant wireless connectivity.

Network Speed & Performance Units:

  • Network transmission speed is measured in bps (bits per second) — counting individual binary 0s and 1s transferred per second.
  • Wired Ethernet Speeds: 100 Mbps (Fast Ethernet), 1 Gbps (Gigabit Ethernet), 10 Gbps (10-Gigabit Ethernet / 10GbE).
  • Wi-Fi Wireless Speeds: Standard home Wi-Fi typically operates at 600 Mbps (802.11n), while Wi-Fi 6 (802.11ax) reaches up to 9.6 Gbps – 10 Gbps.
  • Mobile Cellular Speeds: 4G LTE typically ranges between 8 and 10 Mbps; modern 5G achieves throughput up to 20 Gbps.
  • Home Internet in Qatar (e.g., Ooredoo FTTH): 1 Gbps fiber subscription is approx. QR 350 / month, whereas enterprise 10 Gbps plans reach QR 6,500 / month.

2. Connecting Multiple Computers: Hub vs. Switch vs. Router

Architecture

Connecting multiple computers poses a physical topology problem: we cannot run direct point-to-point cables between every pair of computers. A central interconnecting device is required to gather cables, receive traffic, and direct data to intended recipients.

Device Intelligence Level Traffic Delivery Method Security & Collisions Primary Use Case
Network Hub Non-Intelligent (Layer 1) Broadcasts to ALL ports: Receives a packet on one port and blindly repeats it out to every other connected port. High collision rate; all connected devices hear all traffic; severe network congestion. Legacy hardware; obsolete in modern networking.
Network Switch Intelligent (Layer 2) Direct unicast to destination port: Reads the destination hardware address (MAC) and forwards the packet only to the targeted device port. Zero packet collision; highly secure against eavesdropping; dedicated full bandwidth per port. Connecting devices within the same local network (LAN). Available in 8, 24, 48, 50-port desktop/rackmount models.
Network Router Intelligent (Layer 3) Routes across different networks: Inspects logical IP addresses and forwards data packets between disparate subnets and external networks. Segments broadcast domains; provides firewall boundaries and NAT (Network Address Translation). Connecting a local network to external networks or the Internet (Default Gateway).
All-in-One Home Wi-Fi Gateway: The home router provided by ISPs (such as Ooredoo Orbi) is a multi-function appliance combining 4 distinct devices inside one chassis:
  1. A Router: Interfacing your internal home network with the external Internet.
  2. A 4-Port Switch: Allowing wired Gigabit Ethernet connections for PCs, consoles, and NAS.
  3. A Wireless Access Point (AP): Broadcasting Wi-Fi supporting up to ~250 wireless clients.
  4. A DHCP & DNS Server: Automatically providing local IP configuration and domain resolution.

3. IP Addressing, Subnet Masks & Routing Logic

Critical Exam Topic

Every device connected to a network must be uniquely identifiable. This is achieved through an IP (Internet Protocol) Address.

The Phone Number Analogy:

Consider an international phone number. It is divided into two distinct components: the Country Code and the Subscriber Number.

  • If two phones share the exact same country code (e.g., Qatar +974), they call each other locally without international gateways.
  • If their country codes differ (e.g., Qatar +974 calling UK +44 or USA +1), the call must pass through international telephone exchange switches.
  • Without knowing how many digits belong to the country code (1 digit for North America, 2 for Europe, 3 for the Middle East), you cannot tell whether two numbers are local or international!

IPv4 Address Anatomy:

An IPv4 address consists of 4 decimal numbers (octets) separated by dots: ___ . ___ . ___ . ___. Each section ranges from 0 to 255 (representing 8 bits, totaling 32 bits).

Example: In a home network, desktop PC is 192.168.10.5, Xbox console is 192.168.10.7, and Smart TV is 192.168.10.8.

The Role of the Subnet Mask:

An IP address is split into two halves: the Network ID (which identifies the network subnet) and the Host ID (which identifies the specific computer). The Subnet Mask acts as the mathematical boundary revealing where the Network ID ends and the Host ID begins.

Class Subnet Mask Network ID Boundary Host ID Boundary Maximum Usable Hosts
Class C 255.255.255.0 First 3 octets (e.g., 192.168.26.x) 4th octet only (.x) 254 devices ($2^8 - 2$)
Class B 255.255.0.0 First 2 octets (e.g., 172.16.x.x) 3rd and 4th octets (.x.x) 65,534 devices ($2^{16} - 2$)
Class A 255.0.0.0 First 1 octet (e.g., 10.x.x.x) 2nd, 3rd, and 4th octets (.x.x.x) 16,777,214 devices ($2^{24} - 2$)

How a Computer Makes the Routing Decision:

  • Same Network ID (Local Delivery): If the destination IP shares the sender's Network ID, the computer knows the device is on the local subnet. It sends the frame directly through the Switch straight to the target device.
  • Different Network ID (Remote Delivery): If the destination IP has a different Network ID, the computer cannot reach it directly. It encapsulates the packet and delivers it to the Router (Default Gateway), which routes it onto the outside network.

4. DHCP, Static vs. Dynamic IP, and MAC Addresses

Configuration

DHCP (Dynamic Host Configuration Protocol):

  • Purpose: A network protocol that automates the assignment of IP addresses, subnet masks, default gateways, and DNS server addresses to joining devices.
  • Conflict Prevention: Keeps a lease pool to guarantee no two computers are assigned the same IP address.
  • Without DHCP: A network administrator would have to visit every computer manually to key in a static IP address!

Dynamic vs. Static IP Addressing:

  • Dynamic IP: Leased automatically from a DHCP server. May change over time or when joining different networks (e.g., a smartphone gets one IP at home and a completely different IP at UDST campus).
  • Static IP: Permanently and manually configured on a device. Essential for network servers, network printers, and routers so their address remains constant.

MAC Address (Media Access Control / Physical Hardware Address):

  • Definition: A permanent, globally unique physical identifier hardcoded into the network interface card's ROM by the manufacturer.
  • Key Rule: The MAC address never changes, regardless of which network or country you connect to! In contrast, your IP address changes based on the network you join.
  • Format: 48-bit address written as 6 pairs of hexadecimal digits separated by colons or hyphens (e.g., F4:2B:04:D3:3F:02).
  • Dual-Adapter Computers: A laptop equipped with both Wi-Fi and an Ethernet port has two distinct MAC addresses — one for the Wi-Fi card and one for the LAN adapter!
  • Security Application (MAC Filtering): Network administrators can configure router access-control lists to permit or block specific hardware from accessing the Wi-Fi.

5. DNS (Domain Name System) & IPv4 vs. IPv6

Protocols

DNS – The Internet's Address Book:

Computers communicate using numeric IP addresses, but humans prefer easy-to-remember textual names. Just as your mobile phone contact list maps a person's name to their phone number, the Domain Name System (DNS) maintains a distributed database mapping computer and website names to IP addresses.

  • Local Network DNS: Resolves internal computer hostnames (e.g., typing \\instructor translates to \\192.168.26.102).
  • Internet DNS: Resolves web domain names (e.g., typing www.udst.edu.qa translates to the university's public web server IP).
  • Your home Wi-Fi router acts as the local DNS caching resolver.

IPv4 vs. IPv6 Evolution:

  • IPv4 (Published 1981): 32-bit addresses providing approximately 4.29 billion unique addresses ($2^{32}$). Due to the explosion of smartphones, laptops, smart TVs, and IoT gadgets, IPv4 addresses are exhausted.
  • IPv6 (Next Generation): 128-bit hexadecimal addresses providing 340 undecillion addresses ($3.4 \times 10^{38}$, specifically $340,282,366,920,938,463,463,374,607,431,768,211,456$).
  • Transitional Era: Networks currently run Dual Stack (IPv4 and IPv6 concurrently) until IPv4 is phased out.

6. Network Cabling: Copper CAT Cables vs. Fiber Optics

Physical Layer

1. Copper CAT (Twisted-Pair) Cables:

  • Uses solid/stranded copper conductors carrying electrical voltage impulses.
  • Twisted Pairs: Contains 8 wires twisted into 4 pairs (Green, Orange, Blue, Brown) — twisting cancels electromagnetic interference (EMI) and crosstalk.
  • Maximum Distance: 100 meters (328 feet). Low voltage and electrical resistance weaken signals beyond 100m, requiring a repeater or switch.
  • Connector: Standard 8-pin RJ45 modular connector.
  • CAT Generations:
    • CAT5: Up to 100 Mbps.
    • CAT6: 1 Gbps up to 100m (supports 10 Gbps for shorter runs).
    • CAT7: Up to 10 Gbps over 100m with individual foil pair shielding.
    • CAT8: 25 to 40 Gbps over short runs (up to 30m) in enterprise data centers.

2. Fiber Optic Cables:

  • Transmits data as pulses of light through microscopic strands of ultra-pure silica glass or transparent plastic core.
  • Physical Layers: Core → Cladding (reflective boundary) → Buffer Coating → Aramid Strength Member (Kevlar) → Outer Protective Jacket.
  • Maximum Distance: Up to 80 to 100 kilometers without a signal repeater!
  • Connectors: ST (Straight Tip), SC (Subscriber Connector), LC (Lucent Connector), and Duplex Multimode LC.
  • Joined and repaired using high-precision fusion splicing machines.

Key Advantages of Fiber Optics over Copper:

Vastly Greater Bandwidth: Carries multiple light wavelengths simultaneously for astronomical data rates.
Extreme Distances: Transmits 80–100 km compared to only 100 meters for copper CAT cables.
Total EMI Immunity: Completely unaffected by radio waves, high voltage machinery, or lightning strikes.
Thinner & Lighter: Far less physical weight and bulk when pulling cables through ducts and risers.
Superior Security: Copper cables radiate electromagnetic fields that can be tapped; fiber optics cannot be tapped without cutting the beam.
Faster Propagation: Optical speed delivers lower latency for high-speed transcontinental backbones.

RJ45 Wiring Standards (T-568A vs. T-568B):

International telecommunication standards (TIA/EIA) dictate the exact color sequence of the 8 wires inside the RJ45 jack (pins 1 to 8, with clip facing away from you):

Pin # T-568A Standard T-568B Standard (Most Widely Used)
Pin 1White / GreenWhite / Orange
Pin 2GreenOrange
Pin 3White / OrangeWhite / Green
Pin 4BlueBlue
Pin 5White / BlueWhite / Blue
Pin 6OrangeGreen
Pin 7White / BrownWhite / Brown
Pin 8BrownBrown

Straight-through cable: Same standard on both ends (T-568B to T-568B). Crossover cable: T-568A on one end, T-568B on the other.

7. Network Topologies & Scale: LAN vs. WAN

Scope

LAN (Local Area Network):

  • Definition: Interconnects computers and peripheral devices within a small, localized geographic area (such as a single room, office, home, building, or restaurant).
  • Everyday Examples:
    • Your home Wi-Fi network connecting laptops, phones, smart TVs.
    • A smartphone hotspot tethering your laptop and a friend's tablet.
    • A school computer lab or restaurant POS register system.

WAN (Wide Area Network):

  • Definition: A collection of multiple geographically separated LANs interconnected across cities, countries, or continents.
  • Examples:
    • A commercial bank interconnecting all branch LANs across Qatar back to its Doha headquarters.
    • The Internet is the largest WAN in the world!

8. VPN (Virtual Private Network) & Data Encryption

Cybersecurity

In standard unencrypted Internet communication, plaintext data passes through multiple intermediate nodes: your local router, public Wi-Fi hotspot, ISP (e.g. Ooredoo), and national gateways. Anyone on this transit path can snoop, intercept passwords and banking data, or block sites.

What is Data Encryption?

Encryption is the mathematical process of encoding plain information into an unreadable ciphertext secret code using an encryption key, ensuring only authorized parties possessing the matching decryption key can read it.

How a VPN Operates:

A Virtual Private Network (VPN) establishes a secure, encrypted virtual tunnel over the public untrusted Internet between your client device and an enterprise or remote VPN server. It masks your real IP address and encrypts every packet leaving your device.

1. Corporate / Business Use:

Enables remote employees working from home or traveling abroad to securely connect to corporate servers, payroll, and internal intranets as if they were physically sitting in the office. Enterprises utilize client software (e.g., Ivanti Secure Access Client) paired with 2-Factor Authentication hardware tokens (e.g., RSA SecurID).

2. Personal / Consumer Use:

Protects privacy when connecting to untrusted free public Wi-Fi in malls, airports, and coffee shops against packet sniffers. It also allows users to bypass geo-restrictions and ISP-blocked websites by tunneling through remote servers (e.g., ExpressVPN).

9. VLAN (Virtual Local Area Network) – Logical Segmentation

Network Isolation

VLAN (Virtual Local Area Network): A networking technique used on intelligent managed switches to divide a single physical network into multiple smaller, logically isolated virtual networks, regardless of the physical ports devices are plugged into.

The Open Office Metaphor: Imagine an office building where everyone works in one massive open hall. Without interior walls, ambient noise and private conversations from one desk distract and interfere with everyone else. A VLAN functions like building virtual soundproof partition walls within that open space — the walls exist purely in configuration logic, but they keep different groups completely separate!

Real-World VLAN Implementations:

  • Home Router (myHome vs. myGuest):
    • myHome VLAN: Family devices have full access to network hard drives, personal photo shares, streaming TV, and printers.
    • myGuest VLAN: Visiting guests get internet browsing only. They are isolated from accessing the family's private files or smart home devices.
  • Hotel Hospitality Networks:
    • Hotel Staff VLAN: Access to room management, billing servers, and sensitive internal databases.
    • Hotel Guests VLAN: High-speed Wi-Fi with client isolation, preventing a malicious guest from hacking into other guests' laptops!
  • University Campus (UDST):
    • Dividing the same physical campus switches into Students VLAN, Faculty/Staff VLAN, and Data Center Servers VLAN.

10. Internet History, Packet Switching & Wi-Fi Standards

History & Wireless

Historical Milestones:

  • 1960s (ARPANET): Began connecting US government researchers to share computing resources. During the Cold War, the U.S. Department of Defense needed a decentralized network capable of surviving a nuclear strike where no single point of failure could bring down communications.
  • January 1, 1983 (Official Birthday of the Internet): Standardized adoption of the TCP/IP (Transmission Control Protocol / Internet Protocol) suite, creating the modern unified global WAN.
  • 1989 (World Wide Web): Sir Tim Berners-Lee invented the WWW at CERN, introducing Hyperlinks (HTTP/HTML) to link inter-connected documents.

Evolution of Internet Connections:

  • Dial-up: Connected over analog telephone lines via 56 kbps modems. Blocked the phone line while online. (Downloading a modern video would take hours!).
  • DSL (Digital Subscriber Line): High-speed copper telephone line carrying simultaneous phone calls and internet data (up to ~10–24 Mbps).
  • Fiber Optic (FTTH): High-bandwidth optical fiber directly to the premises, providing speeds of 1 Gbps up to 10 Gbps (standard in Qatar via Ooredoo).
  • 4G & 5G Cellular Internet: Wireless mobile broadband using cellular radio towers.

How the Internet Works – Packet Switching:

When you visit a website (e.g., www.udst.edu.qa), the web server does not transmit the webpage as one massive contiguous block. Instead, it breaks files into millions of tiny data chunks called packets. These packets traverse the Internet across different independent routes. When they reach your device, the network stack reassembles them into original order to render the webpage.

Wi-Fi Generations & IEEE 802.11 Standards:

Standard Release Year Marketing Name Max Theoretical Speed Frequency Band
802.11b1999Wi-Fi 111 Mbps2.4 GHz
802.11a1999Wi-Fi 254 Mbps5.0 GHz
802.11g2003Wi-Fi 354 Mbps2.4 GHz
802.11n2009Wi-Fi 4600 Mbps2.4 GHz & 5.0 GHz
802.11ac2014Wi-Fi 53.5 Gbps5.0 GHz
802.11ax2019Wi-Fi 69.6 Gbps2.4 GHz & 5.0 GHz (and 6 GHz in 6E)

Whole-Home Wi-Fi Mesh Networks:

In large villas or concrete houses (common in Qatar and the Gulf), Wi-Fi radio signals attenuate rapidly when penetrating dense concrete walls, reinforced pillars, and floors. Having a single router in the living room leaves large dead zones in bedrooms or upper floors.

Wi-Fi Mesh Solution: Consists of a primary base router connected to the optical fiber ONT and multiple coordinated satellite nodes placed throughout the home. They form a single seamless wireless fabric sharing the exact same SSID and password, allowing client devices to roam room-to-room without dropping connections.

2. Interactive Learning Tools & Simulators

🧮 Interactive IP & Subnet Routing Simulator

Test whether two computers will communicate directly through the Switch or require the Router (Default Gateway) based on their Subnet Mask!




🔌 Interactive RJ45 Pinout Standard Checker (T-568A vs. T-568B)

Select the wiring standard to inspect the pin color order inside the RJ45 jack:

3. Multiple-Choice Knowledge Check

Test your mastery of Chapter 10 networking concepts. Score at least 80% (10/12) to claim your Certificate of Achievement!

Score: 0 / 12 (0 answered)

4. Short Written Exam Practice

Click each question below to reveal model answers and key exam tips.

1. Explain the fundamental difference between a Network Hub and a Network Switch.

Answer:

  • Network Hub: A non-intelligent Layer 1 hardware device. When it receives a data packet on one port, it blindly broadcasts that packet out to all connected ports. This creates severe network congestion, collisions, and allows any connected device to intercept traffic.
  • Network Switch: An intelligent Layer 2 hardware device. It reads the destination physical hardware address (MAC address) and forwards the incoming data packet only to the specific port of the destination device. This eliminates packet collisions, optimizes bandwidth, and enhances network security.

Exam Tip: Always mention "broadcasts to all ports" vs "forwards only to targeted destination port using MAC address".

2. What is the role of a Subnet Mask? How does a computer determine whether to route traffic locally or to the default gateway?

Answer:

  • The Subnet Mask defines the mathematical boundary separating an IP address into its Network ID (which subnet the device belongs to) and its Host ID (the specific host on that subnet).
  • Routing Decision: When sending data, the host computer compares its own Network ID with the destination's Network ID:
    • If the Network IDs match, the destination is on the same local network, and the packet is sent directly through the Switch.
    • If the Network IDs differ, the destination is on a remote network, and the packet must be sent to the Router (Default Gateway) for routing.
3. Distinguish between an IP Address and a MAC Address. State two differences.

Answer:

FeatureIP AddressMAC Address
Type Logical software address configured by network or DHCP. Physical hardware address burned into the NIC's ROM.
Permanence Changes dynamically when the device connects to different networks. Globally unique and permanent; never changes.
Format 32 bits (4 decimal octets: 192.168.1.1). 48 bits (6 hex pairs: F4:2B:04:D3:3F:02).
4. What is DHCP, and what would happen if a network did not have a DHCP server?

Answer:

  • DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses, subnet masks, default gateways, and DNS server settings to devices when they join a network.
  • Without DHCP, every single device on the network must be manually configured with a static IP address by a system administrator. This is time-consuming, prone to human error, and can cause duplicate IP address conflicts.
5. Explain the purpose of the Domain Name System (DNS). Give an example of local and Internet DNS resolution.

Answer:

  • Purpose: DNS acts as the network's address book. While networking devices route data using numeric IP addresses, humans prefer human-readable domain names. DNS translates names into IP addresses.
  • Local Network Resolution: Translating local computer names, such as resolving \\instructor to 192.168.26.102.
  • Internet Resolution: Translating website URLs, such as resolving www.udst.edu.qa to its public web server IP.
6. List four major advantages of Fiber Optic cable over Copper CAT twisted-pair cable.

Answer:

  1. Much Greater Bandwidth: Transmits vastly more data simultaneously using light pulses.
  2. Longer Transmission Distance: Fiber reaches up to 80–100 kilometers without repeaters, compared to copper's 100-meter limit.
  3. Total Immunity to Electromagnetic Interference (EMI): Fiber uses glass and light, making it immune to electrical noise, heavy machinery, and lightning.
  4. Superior Security: Copper cables emit electromagnetic radiation that can be intercepted; fiber cannot be easily tapped without interrupting the optical signal.
7. Why does a copper CAT cable twist its internal wires in pairs? What is its maximum certified run length?

Answer:

  • Twisting in Pairs: Twisting opposing polarity wire pairs cancels out electromagnetic interference (EMI), external noise, and crosstalk between adjacent wire pairs.
  • Maximum Certified Length: Exactly 100 meters (328 feet). Beyond this distance, electrical resistance and signal attenuation cause packet loss, requiring a switch or repeater.
8. What is a VLAN (Virtual Local Area Network)? Describe two real-life scenarios where VLANs are used.

Answer:

A VLAN is a method of logically dividing a single physical network switch into separate, isolated virtual networks regardless of physical location.

  • Scenario 1 (Home Router): Separating "myHome" (full access to NAS and TV streaming) from "myGuest" (internet browsing only, isolated from private family files).
  • Scenario 2 (Hotel / Campus): Isolating hotel staff systems from guest Wi-Fi to prevent malicious guests from accessing guest registration or billing systems.
9. What is a VPN (Virtual Private Network)? Contrast its corporate use with its personal use.

Answer:

A VPN creates an encrypted, secure virtual tunnel over the public Internet between a client device and a VPN server, masking the user's real IP address.

  • Corporate Use: Allows telecommuting employees to securely access internal enterprise file servers, databases, and intranets from remote locations using encryption and two-factor authentication tokens (e.g., RSA SecurID).
  • Personal Use: Protects personal credentials, banking traffic, and privacy on untrusted public Wi-Fi (cafes, airports) and bypasses geographic or ISP-restricted websites.
10. Explain why Wi-Fi Mesh systems are needed in large houses instead of relying on a single wireless router.

Answer:

In large or multi-story concrete homes, high-frequency Wi-Fi radio waves attenuate rapidly as they pass through thick concrete walls, floors, and metal doors, creating severe dead zones. A Wi-Fi Mesh system uses a primary router paired with distributed satellite modules placed throughout the home. They communicate over a dedicated backhaul channel and broadcast a single unified network name (SSID) and password, providing full-coverage roaming without signal dropouts.

🎓

Enter Student Name

Please enter your full name as you would like it to appear on your Certificate of Achievement.

UNIVERSITY OF DOHA FOR SCIENCE & TECHNOLOGY • INFT1201

Certificate of Achievement

is proudly presented to

Student Name

for completing the quiz with a score of

0 / 12
0 correct, 0 incorrect (0%)
Master of Computer Networking!
Date
Date Awarded
UDST INFT Faculty
Authorized Instructor