2.1 Networking and 2.2 The Internet - Comprehensive Study Notes

2.1 Networking

  • Chapter goals: understand benefits of networking devices; LAN and WAN characteristics; client-server vs peer-to-peer models; thin vs thick clients; different topologies (bus, star, mesh, hybrid); public vs private cloud; wired vs wireless networks and cables; hardware to support a LAN; role of routers; Ethernet data collisions and CSMA/CD; bit streaming (real-time vs on-demand); differences between the internet and the WWW; hardware for the internet; IP addresses (IPv4, IPv6, public vs private); URL usage to locate resources; role of DNS.

  • Try-before-you-read prompts (concept checks):

    • MAC address vs IP address; purpose and differences; why both exist.
    • Purpose of an ISP; function of a web browser vs an ISP.
    • Hardware/software needs to form a simple LAN from stand-alone computers.
    • Software required to access internet from mobile devices; pros/cons of mobile access vs desktop.
  • Key terms and concepts (overview): ARPAnet, WAN, LAN, MAN, file server, hub, switch, router, modem, WLAN, (W)AP, PAN, client-server, peer-to-peer, spread spectrum, node, peer-to-peer, thin/thick client, bus/star/mesh/hybrid topologies, cloud storage, data redundancy, Wi‑Fi, Bluetooth, spread-spectrum frequency hopping, WPAN, twisted-pair, coaxial, fibre optic, gateway, repeater, repeating hubs, bridge, softmodem, NIC, WNIC, Ethernet, data frames, MAC vs IP addresses, CSMA/CD, bit streaming, buffering, bit rate, on-demand vs real-time streaming, internet vs WWW, DNS, URL, HTML, JavaScript, PHP.

  • ARPAnet and the early network landscape

    • ARPAnet (Advanced Research Projects Agency Network) is an early WAN from ~1970s linking DoD computers and universities; foundational platform for the modern internet.
    • As personal computers grew in the 1980s, LANs emerged inside buildings to connect multiple computers and shared devices (printers); WANs joined multiple LANs via public networks (telephone lines, satellites).
    • Internet vs WAN: Internet is a vast, decentralised network of networks with common access; WAN is often a private network formed by joining multiple LANs. The internet is not a single WAN; it is a collection of networks with universal access.
  • Important protocol concepts

    • Ethernet: IEEE 802.3 protocol used by wired LANs.
    • ARPAnet, LAN, WAN, MAN, WNIC, WAP, WLAN definitions.
    • Broadcast vs collision vs CSMA/CD:
    • Broadcast: data sent from a sender to all devices.
    • Collision: two messages transmitted over the same data channel at the same time.
    • CSMA/CD: Carrier Sense Multiple Access with Collision Detection; method to detect collisions and resolve them on a shared medium.
    • Bit streaming: contiguous sequence of bits sent over a network; involves buffering and bit rate considerations.
    • Real-time vs on-demand streaming: real-time captures live feed; on-demand serves pre-encoded media from a server.
  • Networking benefits and drawbacks (general)

    • Benefits of networking: sharing devices (printers), lower software licences, file/data sharing, central data backups, email/IM, centralized access control, easier network management.
    • Drawbacks: higher initial costs (cabling/servers), complexity of management, single-point failures (e.g., file servers), exposure to malware/hacking.
  • Networked infrastructure components (infrastructure scope)

    • Hardware: LAN cards, routers, switches, wireless routers, cabling.
    • Software: network operation/management, firewalls, security utilities.
    • Services: DSL, satellite lines, wireless protocols, IP addressing.
  • Private vs public networks

    • Private networks: owned by a single organisation; restricted access; internal management and licensing.
    • Public networks: owned by a carrier; access for many organisations; security managed at sub-net level.
  • LAN, WAN, MAN scale and definitions

    • LAN: small area (one building or campus); devices connected by hubs/switches; may connect to router/modem for Internet access.
    • WLAN: Wireless LAN; using access points (WAPs) to connect to a wired network; range up to about 100 m; uses spread-spectrum or infrared.
    • PAN: Personal Area Network; centered around a person/workspace; e.g., laptops, phones, printers.
    • MAN: Metropolitan Area Network; larger than a LAN; connects multiple LANs within a city; range ~1 km to 100 km; bridges larger campus networks.
    • WAN: Wide Area Network; covers large geographic areas; often uses public telecom lines or satellites; can interconnect multiple LANs or MANs; often private or leased lines.
  • Client-server vs peer-to-peer models

    • Client-server: dedicated servers; clients connect to servers; centralized security and data management; scalable; servers can host access to shared resources and apps; potential bottlenecks with many simultaneous requests; easy data backup/restoration via central server.
    • Peer-to-peer (P2P): nodes both provide and consume resources; no central server; simpler for small networks (e.g., <10 nodes); less security due to lack of central authentication; performance can degrade as nodes increase; suitable for small groups needing direct inter-node sharing.
    • Practical implications: client-server better for large organisations with robust security/backups; P2P suitable for small teams with direct collaboration and less security requirements.
  • Network topologies

    • Bus topology: single central cable; devices connect to same cable; data travels in one direction; one device may transmit at a time; terminators at ends; easy to expand; disadvantages: single point of failure; lower security; not ideal for heavy traffic.
    • Star topology: central hub/switch; each device has its own connection to the central node; data passes through central node; hub vs switch affects data handling; advantages: reduced collisions, easier to secure/upgrade; disadvantages: central point of failure; higher initial cost.
    • Mesh topology: interlinked nodes with routing logic; data follows shortest path; routing vs flooding (routing uses routing logic; flooding broadcasts via all nodes, less efficient);
    • Advantages: fault isolation, resilient to failures, scalable; good privacy/security due to dedicated routes; used in Internet/WANs/MANs and in industrial monitoring.
    • Disadvantages: high cabling cost, setup/maintenance complexity.
    • Hybrid topology: mixture of topologies (e.g., bus and star, bus and mesh); benefits depend on chosen topologies; can be complex to install/maintain but supports large networks and traffic handling.
  • Cloud computing

    • Cloud storage: off-site data storage on multiple servers; data redundancy across servers for reliability; hardware owned/managed by a hosting provider; public cloud, private cloud, and hybrid cloud models.
    • Public cloud: provider-hosted storage separate from client; private cloud: provider integrated with client behind firewall; hybrid cloud: combination of private and public.
    • Pros: anywhere/any device access; no local storage hardware; remote backups; scalable storage; cons: potential high costs for large storage, data transfer limits, dependency on provider reliability, security concerns.
    • Data security considerations: physical security of data centers, disaster resistance, access control, and safeguarding credentials; potential data loss from provider breaches; real-world issues cited (e.g., cloud hacks, large-scale breaches).
  • Cloud software concepts

    • Cloud software vs traditional software: software delivered on demand over the Internet; provider hosts and manages software including upgrades and security; accessible via a web browser; can still operate offline with local data and later sync when connectivity is restored.
    • Distinction: web-based apps require constant Internet; cloud-based apps may work offline temporarily.
  • Wired vs wireless networking

    • Wireless networking pros: easy expansion, mobility, no cables; cons: interference risk, security concerns, slower speeds (historical), signal attenuation by walls.
    • Wired networking pros: reliability, higher speeds, fewer interruptions, potentially lower long-term costs; cons: installation/cabling and reduced mobility, physical hazards.
    • Other considerations: regulatory issues on wireless frequencies; infrastructure layout; need for Wi-Fi or Bluetooth to connect mobile devices; importance of encryption (WEP/WPA2) for security.
  • Hardware in networks (LAN/WAN support)

    • Hub: connects multiple devices; broadcasts to all devices; not secure; can be wired or wireless; single collision domain; inefficient for large networks.
    • Switch: learns destination address; forwards frames only to destination; more secure and efficient; can be wired or wireless; reduces collisions.
    • Repeater: boosts signal to extend distance; used on wired or wireless links; can be integrated in hubs (repeating hubs); drawbacks: a single collision domain; potential performance hit if collisions occur; may require coordination to avoid loop issues.
    • Bridge: connects LANs using the same protocol; prevents broadcast flooding by segmenting traffic; wired or wireless.
    • Router: routes data between networks (e.g., LAN to WAN); can perform protocol translation; determines best route to destination; central to Internet connectivity.
    • Gateway: entry/exit point to another network; can act as router, firewall, or server; connects dissimilar LANs with different protocols; wired or wireless.
    • Modem: converts digital data to analogue for transmission over telephone lines; also converts analogue back to digital; softmodem is software-based.
    • NIC (Network Interface Card): enables device to connect to a network; often has a MAC address set at manufacture.
    • WNIC (Wireless Network Interface Card): connects devices to networks via wireless signals; supports infrastructure (via WAP) or ad hoc modes.
    • Ethernet: protocol used by wired LANs (IEEE 802.3); collaborative with MAC addresses and frames.
    • MAC address: unique identifier for a network device; used at the data link layer.
    • IP address conflict issue: when two devices share the same IP address; typically resolved by rebooting the router to reassign dynamic addresses or reallocate static addresses.
  • Ethernet and data collisions

    • In Ethernet, data is broadcast to all devices; collisions can occur when two devices transmit simultaneously.
    • CSMA/CD mechanism detects collisions and resolves them by jam signaling and random backoff intervals before retrying.
    • Data frames contain source MAC, destination MAC, and payload; collisions and jams reduce efficiency; transmission counters help manage retries.
  • Bit streaming (2.8)

    • Definition: contiguous sequence of digital bits sent over a network; high-bandwidth requirements.
    • Buffering: stores data temporarily to smooth playback; larger buffers help handle variable network conditions.
    • Buffering concept: source data rate to buffer must exceed buffer-to-player rate; represented as a buffer with a low-water mark and a high-water mark; typical buffer window around 80% of capacity.
    • Pros: access on demand; no need to download entire file; piracy protection via streaming; avoids storage on device.
    • Cons: requires constant bandwidth; may pause if bandwidth dips; high bandwidth consumption; security/copyright considerations.
    • On-demand vs real-time:
    • On demand: encoded files served via a link; can pause/rewind/fast-forward; not live.
    • Real-time: live capture, encode, and streaming; no pause/rewind; latency depends on transmission path.
  • Extension activities and practical tasks

    • Compare peer-to-peer vs mesh networks; discuss similarities/differences in routing logic and data sharing.
    • Analyze hybrid networks and provide real-world hotel example for mixed topologies.
  • 2.2 The Internet – differences from WWW

  • The differences between the internet and the World Wide Web (WWW)

    • Internet: massive network of networks; TCP/IP-based; global infrastructure enabling data exchange.
    • WWW: collection of multimedia web pages stored on websites; uses HTML for page design; URLs locate resources; accessed via web browsers; relies on the internet to fetch content.
    • Key terms: HTML, URL, web browser, ISP, PSTN, VoIP, IP addresses, IPv4/IPv6, CIDR, NAT, DNS, JavaScript, PHP.
    • The internet is the underlying network; the WWW is a service built on top of the internet.
  • Hardware and software to support the internet (2.2.2)

    • Required: device (computer/tablet/phone), connection (telephone line or mobile network; can use wireless router), router (wired or wireless) or a combined router/modem, ISP service, and a web browser.
    • PSTN vs internet for calls:
    • PSTN: circuit-switched, always-on line; traditional phone network; reliable power source; uses dedicated lines.
    • Internet calls (VoIP): packet-switched; data sent as packets; routes over multiple paths; bandwidth-efficient; may require consistent internet access; data is reassembled at destination.
    • Satellite networks: used to connect across long distances; satellite orbit coverage depends on altitude; GEO, MEO, LEO classifications. GEO provides long-distance coverage (24-hour period); MEO used for GPS; LEO for mobile networks with short latencies.
  • IP addresses and protocol basics (2.2.3, NAT extension 2E)

    • Internet uses TCP/IP; IP addresses identify devices on networks.
    • IPv4 addressing: 32-bit addresses, written as four decimal octets (e.g., 192.0.2.1); divided into classes A, B, C, D, E with different netID/hostID bit allocations.
    • Classful IPv4 examples (from the table):
    • Class A: 0.0.0.0 to 127.255.255.255; 8 netID bits, 24 hostID bits; very large networks.
    • Class B: 128.0.0.0 to 191.255.255.255; 16 netID bits, 16 hostID bits; medium size.
    • Class C: 192.0.0.0 to 223.255.255.255; 24 netID bits, 8 hostID bits; small networks.
    • Class D: 224.0.0.0 to 239.255.255.255; multicast.
    • Class E: 240.0.0.0 to 255.255.255.255; experimental.
    • CIDR (Classless Inter-Domain Routing): replaces fixed classful boundaries with suffixes to increase flexibility, e.g., 192.30.250.0/18 meaning 18 bits for netID and 14 bits for hostID.
    • NAT (Network Address Translation): allows multiple devices to share a single public IP address; reduces need for unique public IPs; important for IPv4 shortage.
    • IPv6: 128-bit addressing; hex notation; enables vast address space; features include built-in authentication and simplified routing; no NAT requirement necessarily; zero compression for IPv6 addresses (e.g., 900B:3E4A:AE41:0000:0000:AFF7:DD44:F1FF can be shortened to 900B:3E4A:AE41::AFF7:DD44:F1FF); rules prevent ambiguous compression (only one instance of ::).
    • Subnetting: dividing a network into smaller subnets to reduce traffic and manage routing more efficiently; involves netID/hostID segmentation and mask application (AND operation) to derive netID.
    • Private IP ranges: reserved for internal use; Class A: 10.0.0.0–10.255.255.255; Class B: 172.16.0.0–172.31.255.255; Class C: 192.168.0.0–192.168.255.255.
    • Public IP addresses: allocated by an ISP; globally unique; necessary for Internet-facing devices; DNS servers, routers, and directly-accessed computers use public IPs when reachable from the Internet.
  • Uniform Resource Locators (URLs) and DNS (2.2.4, 2.2.5)

    • URL components: protocol (http/https), website address, path, filename; human-friendly address to locate resources.
    • Domain Name Service (DNS): converts domain names to IP addresses; eliminates need to memorize IPs; essential for locating hosts on the Internet.
    • Example DNS workflow: translating a host name (e.g., www.hoddereducation.co.uk) into an IP like 107.162.140.19.
  • Notes on web technologies

    • HTML used to design web pages and structure http(s) protocols.
    • JavaScript and PHP are common web technologies used to deliver dynamic content and server-side processing.
  • Quick reference:environmental and physical considerations

    • Fibre optic networks offer high bandwidth and resistance to interference; advantage for long-distance telecoms and high-traffic data centers.
    • Wireless technologies (Wi‑Fi, Bluetooth) rely on different frequency bands and protocols; security and interference considerations are critical.
    • Satellite links enable global coverage but involve latency and line-of-sight considerations; useful for remote locations.
  • Formulas and examples

    • Frequency–wavelength relationship (electromagnetic radiation):
      f = \dfrac{c}{\lambda}
      where: f is frequency, c is the speed of light (~$3 \times 10^8$ m/s), and \lambda is wavelength.
  • Summary of key equations and numerical references from the material

    • Number of IPv4 addresses: 2^32 possibilities (per IPv4 32-bit address space).
    • CIDR example: 192.30.250.0/18 (18 bits netID, 14 bits hostID).
    • IPv6 address example: A8F0:7FFF:F0F1:F000:3DD0:256A:22FF:AA00 (128 bits total; hexadecimal groups separated by colons).
  • Study tips based on this chapter

    • Distinguish clearly between internet (global network/ TCP/IP protocols) and WWW (collection of web pages using HTML, URLs, DNS).
    • Be comfortable with defendable pros/cons of client-server and P2P in different scales.
    • Practice topologies: draw each topology, list advantages/disadvantages, and describe data flow.
    • Understand the role of each hardware component (hub, switch, router, gateway, repeater, bridge, modem, NIC, WNIC) and how they interact in a LAN/WAN.
    • Be able to explain the concepts of CSMA/CD and how collisions are detected and managed.
    • Understand IPv4 classful addressing vs CIDR, and why NAT is used; become familiar with IPv6 benefits and address notation.
    • Recognise cloud computing models and their trade-offs (public/private/hybrid) and data-security concerns.

2.2 The Internet

  • The internet vs WWW (differences at a glance)

    • Internet: massive network of networks; uses TCP/IP; global data exchange infrastructure.
    • WWW: a collection of multimedia web pages accessed via the Internet; uses HTML; URLs locate pages; web browsers render content.
    • Core terms: HTML, URL, DNS, web browser, ISP, PSTN, VoIP, IP (IPv4/IPv6), CIDR, NAT, JavaScript, PHP.
  • Hardware and software needed to support the Internet (2.2.2)

    • Required components: device (computer/tablet/phone), connection method (PSTN/fibre/mobile network), router (wired or wireless) or a combo router/modem, ISP service, and a web browser.
    • PSTN vs Internet for calls:
    • PSTN: circuit-switched, devices maintain an open circuit for the duration of the call; robust in power outages; traditional telephone network.
    • Internet (VoIP): packet-switched; data split into packets; routes through many possible paths; may require stable Internet access; more bandwidth-efficient; can be more cost-effective for long calls.
    • Satellite communications: used to cover large areas; GEO, MEO, and LEO classifications with different orbital characteristics and coverage.
    • VoIP uses packet switching and encoding/compression to reduce bandwidth; edges include latency, jitter, and network reliability.
  • IP addressing and protocol fundamentals (2.2.3)

    • IPv4: 32-bit addresses; example format: 192.168.0.0 to 192.168.255.255; classful ranges define netID/hostID parts; limitations: 2^32 addresses; NAT helps alleviate scarcity.
    • CIDR: allows more flexible allocation of IP space; example 192.30.250.0/18 (netID 18 bits, hostID 14 bits).
    • NAT: allows multiple devices to share a single public IP; reduces public IP usage and helps with security by hiding internal IPs.
    • IPv6: 128-bit addresses, hexadecimal notation, built-in authentication features, simplified routing; eliminates most NAT requirements; zero compression rules allow shortening long addresses but must remain unambiguous.
    • Private vs public IP addresses: private addresses reserved for internal networks (behind NAT); public addresses are globally routable and assigned by ISPs; examples private ranges: A: 10.0.0.0/8; B: 172.16.0.0/12; C: 192.168.0.0/16.
  • Subnetting and CIDR discussion (2.2.3, sub-netting portion)

    • Subnetting divides a larger network into smaller sub-nets to reduce broadcast traffic and to organize networks logically (e.g., by department in a university).
    • AND masking concepts to derive netID from an IP address; example with 192.200.20.0 network space where subnets are carved into 00001 to 11110 hostID ranges for departments.
  • URLs and DNS (2.2.4, 2.2.5)

    • URL components: protocol (http/https), domain name/address, path, filename.
    • DNS translates domain names to IP addresses; eliminates the need to memorize numeric IPs; DNS resolution is a multi-step process across DNS servers.
  • Wireless and satellite networking basics (2.2.2, 2.2.3)

    • Wireless options include Wi‑Fi (IEEE 802.11) and Bluetooth (2.45 GHz band).
    • Bluetooth uses 79 channel frequency hopping for small-range WPAN applications; good for short-range, low-bandwidth transfers (e.g., audio between devices).
    • Wi‑Fi supports full network-scale connectivity with higher data rates, longer range, and stronger security options; widely used in homes/offices.
    • Satellites provide broad coverage and are less susceptible to underground cable issues but introduce latency and regulatory considerations.
  • Satellite network basics (2.2.3)

    • Antenna geometry and orbit classifications: GEO (~35,786 km above Earth; fixed position relative to Earth; long round-trip latency), MEO (GPS uses multiple satellites in medium Earth orbit; latency is lower than GEO), LEO (low Earth orbit with short round-trip times; many satellites required for continuous coverage).
    • Satellite communications enable global reach where terrestrial infrastructure is incomplete, but require alignment of ground stations and atmospheric conditions may affect performance.
  • IP address details recap (IPv4/IPv6, NAT, CIDR) with examples

    • IPv4 address structure: 32 bits divided into netID and hostID; classful addressing defined by five classes (A–E); private ranges defined as above.
    • CIDR notation replaces classful boundaries for flexible addressing; example 192.30.250.0/18 allows 2^(32-18) host addresses within the net.
    • NAT explains how private IP addresses behind a router can access the Internet via a single or small number of public IP addresses; NAT translates inside private addresses to public addresses for outward traffic.
  • URLs, DNS, and web technologies quick recap

    • URLs provide a user-friendly address to locate resources; DNS resolves domain names to IP addresses; browsers interpret HTML/HTTP to render content; JavaScript and PHP enable dynamic content.
  • Formula and numeric references to remember

    • Frequency–wavelength relation (recapped): f = \dfrac{c}{\lambda}
    • IPv4 space size: 2^{32} addresses.
    • CIDR example usage: 192.30.250.0/18.
    • IPv6 address example: A8F0:7FFF:F0F1:F000:3DD0:256A:22FF:AA00.
  • Connections to real-world networking implications

    • Cloud storage models and their risk/benefit profiles (data accessibility, off-site backups, disaster recovery, and security concerns).
    • The importance of WAN/LAN/MAN segmentation for performance and security.
    • The need to choose between wired and wireless networks for buildings with many floors or locations; trade-offs include reliability, mobility, interference, and security.
  • Quick practice prompts (to test understanding)

    • Draw and compare Bus, Star, Mesh, and Hybrid topologies; indicate typical use cases and key advantages/disadvantages.
    • Describe a scenario where client-server is preferred over peer-to-peer (and vice versa).
    • Explain how NAT works and why it is needed in IPv4 networks.
    • Explain the difference between private and public IP addresses and why NAT is important.
    • Explain how DNS resolves a domain name to an IP address during a web request.
  • Notes on formulas and network performance considerations

    • Bit streaming requires buffering to smooth out transmission variability; the buffer has low/high water marks, typically around 80% of capacity, to balance delay with throughput.
    • Bit streaming pros/cons: immediate access to media without downloading entire file; security considerations; bandwidth constraints.
  • Ethical, philosophical, or practical implications

    • Cloud computing introduces data sovereignty and security concerns; data privacy and control versus convenience and scalability.
    • Dependence on network infrastructure raises risk of outages; reliance on ISPs and service providers affects access to information and services.
  • Summary takeaways

    • Networking concepts span hardware, topologies, models, and services; the choice of topology/model depends on scale, security, maintenance, and cost considerations.
    • The Internet and WWW, though related, serve different roles: the Internet is the underlying protocol-based network; the WWW is a high-level service consisting of web pages accessed via URLs and DNS.
    • IP addressing (IPv4/IPv6), CIDR notation, NAT, DNS, and URLs are foundational for locating and accessing resources on the Internet.

Appendix: Key terms quick-reference

  • ARPAnet: Early computer network that evolved into the Internet.
  • WAN/LAN/MAN: Scales of networks from local to metropolitan to wide-area.
  • Hub vs Switch: Hubs broadcast to all; switches forward to specific destinations.
  • Router vs Gateway: Routers move data between networks; gateways connect different networks or protocols.
  • NIC/WNIC: Hardware interfaces enabling network connectivity.
  • CSMA/CD: Collision-detection protocol used in Ethernet networks.
  • Bus/Star/Mesh/Hybrid: Major network topologies with distinct advantages and drawbacks.
  • Cloud storage: Off-site data storage with data redundancy.
  • IPv4/IPv6: Addressing schemes; CIDR and NAT concepts.
  • DNS/URLs/HTML/JavaScript/PHP: Web technologies for locating and rendering resources on the Internet.
  • VoIP: Voice over IP; compares with PSTN.
  • Satellite orbit types: GEO, MEO, LEO; coverage and latency considerations.