Subtopic Notes

2.1 Networks including the internet

2. Communication

Networking devices:

Hardware components used to connect devices to form a network, enabling communication and data sharing between them

Benefits of Networking:

  • Resource sharing including hardware and software
  • Data sharing
  • Improved communication
  • Centralized management
  • Higher storage
  • Remote access

LAN vs WAN

LAN (Local Area Network)WAN (Wide Area Network)
Connects devices within a small geographical areaConnects devices within a larger geographical area.
Eg. A Campus Building, An OfficeEg. A City, The internet
Less congestionHigher congestion
FasterSlower
Private ownershipPrivate or public ownership
CheaperMore expensive
Typically uses Ethernet cables or Wi-FiTypically uses leased lines, satellite links, or fiber optics

Client-Server vs. Peer-to-Peer models

Client-ServerPeer-to-Peer
Centralized Architecture: A server providing service to multiple clientsDecentralized Architecture: All nodes act as both client and server
Server has full controlAll peers have equal control
Limited to servers capacityMore scalable
If server goes down, client lose accessMore reliable
Data centrally storedData distributed across peers
Better securityEach peer responsible for own security
More expensiveCheaper
Ideal for environments where centralized control, security, and data consistency are essentialSuitable for file sharing, collaborative tasks, and applications where distribution of resources is a priority
Example: Printer, File sharing, proxy server, email server, database serverExample: Torrent, Blockchain

Thin Client vs Thick Client

Thin ClientThick Client
Lightweight computer that relies on a server for most of its processing and data storageA computer that performs most processing and stores data locally, needing minimal server support
Processing done by server, only input and output done by thin clientsMost applications are processed locally
Lower cost as demanding hardware not requiredHigher cost as better hardware needed
Better security as centralizedLess secure as data stored locally
Speed depends on fast network connectionSpeed does not depend on network
Usually used by handheld deviceUsually used by desktops/laptop
Eg. Cloud based app, virtual desktopEg. Standalone PC, workstations

Network Topologies

Definition: The physical layout of a network
Nodes: Device attached to a network, capable of creating, receiving, or transmitting information over a communication channel
(For the diagrams the circles represents the nodes)

Bus Topology

  • A single line (bus) connected to all device with terminal at endpoints

AdvantagesDisadvantages
Easier to setup and expandEach node can read data being sent through the line
Less cables requiredMain cable fault causes problem in full network
Low maintenanceFrequent Collisions

Star Topology

  • Each device has a dedicated connection to server
  • Central hub computer manages network
  • Central hub can send packets to different devices simultaneously and bidirectionally

AdvantagesDisadvantages
Easier monitoring due to centralized managementIf the central hub goes down, the whole network will go down
Failure of node does not affect network
SecuredPerformance depends on central hub
No Collisions
Nodes may use different protocolsMore expensive
Scalable

Mesh Topology

  • Every device connects directly to every other device
  • Commonly used for wireless networks such as the internet, through connections between routers

AdvantagesDisadvantages
Fault tolerantHigher cost
Efficient transmissionComplex setup

Hybrid Topology

  • A combination of two or more topologies.

AdvantagesDisadvantages
Flexible: Can be setup as requiredComplex setup
ScalableExpensive

Cloud Computing

Cloud computing is the delivery of computing services like storage, processing power, and applications over the internet, allowing users to access and use them on-demand without managing physical hardware.

AdvantagesDisadvantages
Easy to implementCannot be used without internet
ScalablePoor data privacy
Saves costUsers have limited control
Accessible anywhereSpeed depends on bandwidth
Data can be easily recovered

Public CloudPrivate Cloud
Cloud provider has full controlOwned and maintained by a single company
Highly scalableScalability might be limited depending on company’s resources
Might be less secured as it is maintained by cloud providerOffers higher security as it is maintained by the company

Wired Network

Devices are connected using wires, either copper cable or fiber optics

Copper Cable

Used in LANs, Phone line and cable TV

AdvantagesDisadvantages
Less expensiveAffected by electromagnetic wave
Easier to set upDoesn’t perform good with small charges
Flexible: Can be bentSignal degrades over long distances
Limited Bandwidth

Fiber Optic Cable

Used in data centers, telecommunications

AdvantagesDisadvantages
Better bandwidthHigher cost
Greater security (Not possible to tap into)Fragile
Longer distanceComplex installation
Immune to interferenceHarder to maintain
Light weightUnidirectional

Wireless Network

Radio Wave (Including Wifi)

Used for TV Signal, mobile phone communications, radio Wi-Fi

AdvantagesDisadvantages
Larger distanceLow Frequency: Lower data transmitted at one time
InexpensiveAffected by interference from similar frequency
WirelessVulnerable to unauthorized access

Wi-Fi: Wireless networking technology that enables devices to connect to the internet and communicate with each other using radio waves, without the need for physical cables.

Microwaves

May be used in point to point communication, spacecraft, radars

AdvantagesDisadvantages
Larger bandwidthExpensive to build emitting towers
Larger distancePhysical obstacle or weather interfere

Satellites

Used for global communication, internet in remote area, military application

AdvantagesDisadvantages
Global coverage (even in remote areas)Expensive
Weather sensitive
Higher latency as it is traveling larger distance

LAN Supporting Hardware

Switch

  • Has a number of ports with dedicated connection each device
  • No collision
  • Uses MAC address table to properly route packets
  • Allow two or more devices to communicate with one another
  • Connect individual devices to each other
  • Receive transmissions and forward them to their destination

Server

  • Powerful computer providing data, resources, or services to other clients on a network
  • Manages requests and delivers data over the network

Network Interface Card (NIC)

  • Hardware that allows a device to connect to a network
  • Provides unique MAC address to devices

Wireless Network Interface Card (WNIC)

  • A type of NIC that enables a device to connect to a wireless network (Wi-Fi)
  • Uses radio waves
  • Provides unique MAC address to devices

Wireless Access Points (WAP)

  • Usually built into the router.
  • Allows wireless devices to connect to a wired network using Wi-Fi.
  • It extends the wireless coverage of a network and acts as a bridge between wired and wireless devices.

Cables

  • Physical transmission mediums used to connect devices within a network to carry data signals

Bridge

  • Connects two or more LANs that use the same protocol, allowing them to function as a single network.
  • Filters and forwards data based on MAC addresses, helping to reduce traffic and collisions

Repeater

  • Regenerates signals to extend the distance they can travel over a network

Router

  • Transmits and forwards packets with same protocol
  • Allows devices to join a network
  • Connected to other routers
  • Acts as a gateway and firewall
  • Usually attached to a server or switch in LAN
  • May link a LAN to a WAN

Internet Supporting Hardware

Modems

  • Device providing access to the Internet using telephone line
  • During transmission, modem converts digital data to analogue before sending through the telephone line
  • While receiving data, modem converts analog to digital

Public Switched Telephone Network (PSTN)

  • Traditional, circuit-switched telephone network used for voice communication
  • Can also be used for dial-up internet connections via modems
  • Bi-directional
  • Lines are active during power failure

Dedicated Lines

  • Constant private communication link between two points
  • Not shared in common among multiple users
  • Allows continuous uninterrupted connection to Web
  • May host websites and carry phone calls

Cell Phone Network

  • Wireless communication system spread over land areas called cells
  • Each cells is served by at least one base station (transceiver)
  • Cells use different set of frequencies to prevent interference
  • Uses radio waves for transmission and can broadcast in all direction over a large area
  • Enable voice calls, messaging, and mobile internet access, using technologies like 4G and 5G.
  • Portable transceivers, such as mobile phones, can connect and access the internet by communicating with base stations.

Ethernet

  • Widely used wired medium for data transmission in LANs and WANs
  • Used mostly in star and bus topology
  • Collisions are resolved by the CSMA/CD (Carrier Sense Multiple Access with Collision Detection) method
    • Monitors channel and sends only when line is idle
    • When channel is busy, it waits a random time and retransmits
    • While transmission, it listen for other transmission
    • After a collision, transmission is aborted and both nodes retry after random times

Bit Streaming

  • Sequence of bits transferred over a communication line
  • Bits arrive at the order it is sent
  • High speed, therefore requires fast broadband and buffers
    • The device downloads and displays bit at the same instant
    • Higher quality media needs higher speeds due to larger data
    • Real-time streaming requires faster speed to allow data requests to come from multiple different users.
  • Bit Streaming Types:
Real-timeOn Demand
Continuous streaming of media as it happens, livePre-recorded content streamed at the user's request
Available only during the live event or broadcastAvailable anytime after the content is uploaded
Limited control (pause or rewind may not be available)Full control (pause, rewind, fast-forward available)
Needs stable consistent bandwidthBuffering allows low bandwidth to be used
Real-time like chat and polls interaction possibleNo real-time interaction, content is static
Sent as it is generated, continuously streamedPre-encoded and delivered in chunks as requested
Example: Live sports events, webinars, live news broadcastsExample: Entertainment, educational videos, recorded lectures

Internet vs World Wide Web (WWW)

The InternetWorld Wide Web (WWW)
Underlying infrastructure connecting computers and networks globallyCollection of websites and web pages accessed using the internet.
Uses TCP/IP ProtocolUses HTTP/S protocol. Pages written in HTML
Stands for interconnected networkStands for World Wide Web
URL specify the location of web page

IP (Internet Protocol) Address

  • Unique identifier for a device allocated by the network
  • Gives the location of device on the network
  • Functions
    • Host or network interface identification
    • Location/addressing
  • NetID: Unique id for the network to which the device is connected
  • HostID: Unique id for the host within the network
  • Classful Addressing: Depending on classes, the IP address are divided into two parts, one for NetID and the other for HostID
Static IP AddressDynamic IP Address
Manually assigned by the ISP (Internet Service Provided)Automatically assigned by DHCP (Dynamic Host Configuration Protocol) server
Used when sites need to remember a device, e.g VPNs whitelisting.More secured, hence used when data privacy is important
Never changesUpdates regularly
FasterCheaper
Less secure
IPv4 - Internet Protocol Version 4IPv6 - Internet Protocol Version 6
Four groups of decimal separated by dotsEight groups of hexadecimal separated by colons
32 Bit Size128 Bit Size
Example: 192.168.0.1Example: 1652:abcd:1234:5678:9876:baef:5a6d:2fed 6591::abcd
Has a limit to number of addressesProvides larger number of addresses
Allocated manually using DHCPPrimarily assigned using stateless autoconfiguration.

Subnetting

  • Process of dividing a large network into smaller networks
  • Addresses are broken down into three parts by not changing the netID but partitioning the host ID into a subnet ID and host ID
  • Enhances network organization
  • Improves security: Allows admin to isolate sensitive parts of a network
  • Optimizes the allocation of IP addresses
  • Reduces network congestion by localising network communications
  • Makes network management easier
  • Makes easier for network to expand
  • Improves network performances
  • Narrows down the IP address to usage within a range of devices
  • Subnet mask: Used to define which portion of an IP address is the network and which part is for hosts in the subnet
Public IP AddressPrivate IP Address
Can be reached across the InternetCannot be reached across the Internet
Less secureMore secure
Provided by ISPProvided by router to each device
Unique throughout internetUnique within LAN but not internet
Allows two computers to identify each otherThe IP are hidden by NAT when connected to internet

Note: The range of IP addresses used for private IP addressing can never be assigned to public IP addresses.

NAT (Network Address Translation): Private IP addresses may use this to get direct internet connection

Uniform Resource Locator (URL)

  • Text-based address for a web page (Userfriendly version of the IP Address)
  • URL is passed to the nearest Domain Name Server (DNS) by browser
  • DNS server stores a database/list of URLs and matching IP addresses
  • DNS (Name Resolver) looks for the URL in its database
  • Finds the matching IP address and returns it to the originator
  • Or if it cannot find it, it forwards to another higher level DNS
  • (Original) DNS adds the returned IP address to its cache.
  • (Original) DNS returns the IP address to the browser