Computer Networks – Objective Revision Notes

Wireless LAN Architectures

  • Two basic Basic-Service-Set (BSS) deployment modes are repeatedly contrasted:
    • Infrastructure BSS\textbf{Infrastructure BSS}: one Access Point (AP) centralises all coordination; this is the answer hinted at by Q.1.
    • Ad-hoc BSS\textbf{Ad-hoc BSS} (also called Independent BSS, IBSS): stations communicate peer-to-peer with no AP (Q.25).
  • ESS  Extended Service Set\textbf{ESS – Extended Service Set}: multiple infrastructure BSSs interconnected through a Distribution System (wired or wireless).
  • NAV  Network Allocation Vector\textbf{NAV – Network Allocation Vector}: a timer each station maintains to implement virtual carrier sensing (collision avoidance) in IEEE 802.11 CSMA/CA.

Throughput vs. Load

  • Ideal performance curve: throughput increases linearly with offered load until the channel capacity is reached.
  • After capacity:
    • In well-controlled systems (e.g., token passing) throughput can plateau.
    • In contention-based LANs (e.g., Ethernet, WLAN) collisions cause throughput to decline\textit{decline}; Q.2 specifically cites “declines sharply.”

Physical & Logical Topologies

  • Star\textbf{Star} (Q.3): requires a central hub/switch.
  • Bus, Ring, Mesh\textbf{Bus, Ring, Mesh} do not need a hub; each has unique pros/cons (fault tolerance, cabling length, complexity).

Inter-Networking Devices

  • Repeater\textbf{Repeater} – regenerates signals at the physical layer.
  • Hub\textbf{Hub} – multi-port repeater, single collision domain.
  • Bridge\textbf{Bridge} – data-link device; forwards frames based on MAC address (Q.11 & Q.4).
  • Switch\textbf{Switch} – multi-port bridge with micro-segmented links.
  • Router\textbf{Router} – network-layer device; forwards packets via IP address.
  • Gateway\textbf{Gateway} – protocol-translation device operating across all 77 OSI layers (Q.32).

Multiplexing Techniques

  • FDM\textbf{FDM} (Frequency Division) – analogue.
  • TDM\textbf{TDM} (Time Division) – digital (correct for Q.5).
  • WDM\textbf{WDM} (Wavelength Division) – optical fibre.

IPv4 Subnetting Scenario

  • Given Class-A 10.0.0.0/810.0.0.0/8, already 4040 subnets; need 6060 more => 100100 total.
  • Formula: 2n100n=7 (128 subnets)2^{n} \ge 100 \Rightarrow n = 7\ (128\ subnets).
  • New subnet mask: /15=255.254.0.0/15 = 255.254.0.0 (choice d) – maximises host bits (Q.6).

IPv4 Header Essentials

  • Size ranges 206020 \text{–} 60 bytes (Q.7). Extra bytes come from options field.
  • Header Length field (IHL) is 44 bits (Q.8) → value × 44 gives size in bytes.

IPv6 Highlights

  • Hop Limit field supersedes TTL; controls diagram lifetime (Q.9).
  • Next Header = demultiplexing to TCP/UDP/ICMPv6, etc.

Cyclic Redundancy Check (CRC)

  • Sender treats data as polynomial; appends remainder\textit{remainder} of division by generator polynomial; receiver re-computes. Remainder is called CRC (Q.10).

Routing Protocols

  • RIP\textbf{RIP} uses distance-vector algorithm with metric = hop-count, max 1515 (Q.12).
  • OSPF\textbf{OSPF} (link-state), BGP\textbf{BGP} (path-vector).
  • Spanning Tree Protocol (STP)\textbf{Spanning Tree Protocol (STP)}: constructs loop-free subset of bridges (Q.14).

WLAN MAC Behaviour

  • Collision Detection (CD) impossible in radio; WLAN relies on CSMA/CA with ACKs (Q.13 lists "collision detection" as impossible; "collision avoidance" is actually used).

Addressing & Ports

  • Port number\textbf{Port number} identifies application process (Q.15), logical host = IP, physical = MAC.
  • SSH\textbf{SSH} default TCP port 2222 (Q.18).
  • FTP\textbf{FTP}: control 2121, data 2020 (Q.19). One control connection + one data connection per file ⇒ 1+10=111 + 10 = 11 TCP connections for 1010 files (Q.22).
  • Ephemeral ports\textbf{Ephemeral ports}: 1024655351024 – 65535 (Q.20).
  • DNS\textbf{DNS} can use UDP or TCP port 5353 (Q.21).

QoS Models

  • IntServ (per-flow reservations, RSVP).
  • DiffServ (class-based, DS field in IP header) – answer to Q.16.

Guard Space in TDMA

  • Silent interval inserted between consecutive bursts to compensate clock drift & propagation (Q.17).

Network Availability Metric

  • Availability A=Total Time AvailableDowntimeTotal Time AvailableA = \dfrac{\text{Total Time Available} - \text{Downtime}}{\text{Total Time Available}} (choice b vs d wording in Q.23; standard definition yields fraction between 00 and 11).

Bluetooth Piconet

  • One primary (master) + up to 77 active secondaries (Q.24 choice d).
  • Additional devices may park/sleep.

IEEE 802 Family

  • 802.3802.3 → CSMA/CD Ethernet (Q.26).
  • 802.2802.2 LLC, 802.4802.4 Token Bus, 802.5802.5 Token Ring.

DHCP Lease

  • Allocates IP address for limited lease period, renewable (Q.27).

HTTP Request Methods

  • GETGET retrieves resource, PUTPUT uploads/creates, POSTPOST submit data, DELETEDELETE removes. Q.29 answer is GETGET.

SMS & Mobile Handoffs

  • SMS length: 160160 7-bit ASCII chars or 140bytes140\,\text{bytes} (Q.30).
  • Hard handoff\textbf{Hard handoff}: break–before-make vs Soft\textbf{Soft}: make-before-break using RAKE receivers (CDMA). Q.31 describes soft handoff.

OSI / Internet Stack Mapping

  • Physical, Data-Link, Network = network support layers\textbf{network support layers} (Q.34).
  • Network layer adds IP header with logical addresses (Q.33).

Transmission Media Speed Order

  • Slowest → fastest: Twisted-pair < Coaxial < Microwave (variable) < Fibre-optic. Q.35 marks twisted-pair as slowest.