Overview
This chapter introduces computer networks: systems that connect two or more computers to share data, resources and services. It explains why networks are essential in modern life — for communication, resource sharing, centralized data access, e-commerce, cloud services and remote work. Key themes include network types and topologies, transmission media, network devices, reference models (OSI and TCP/IP), addressing (IP and MAC), common protocols and services, wireless technologies, basic security concepts and practical network utilities. Students will learn to identify and describe network components and architectures, compare protocols and models, understand addressing and routing basics, recognise threats and safeguards, and perform simple network-related tasks and diagnostics relevant to Class XII exams and real-world applications.
Learning Objectives
- Define basic networking terms such as host, node, protocol, bandwidth, latency, and packet
- Classify networks by scale and characteristics (PAN, LAN, MAN, WAN) and state typical uses
- Explain common network topologies (bus, star, ring, mesh, hybrid) with their advantages and disadvantages
- Describe transmission media (twisted pair, coaxial, optical fiber, wireless) and relate them to physical layer characteristics
- Explain the OSI and TCP/IP reference models and map the primary functions of corresponding layers
- Compare and distinguish network devices (hub, switch, bridge, router, gateway, modem) and their roles in communication
- List common application-layer protocols (HTTP/HTTPS, FTP, SMTP, POP3, IMAP, DNS, DHCP) and state their purposes and default ports
- Demonstrate basic IP addressing concepts including IPv4 address classes, public vs private addresses, and subnet masks
Topics in this chapter
16 topics · tap a topic title to jump straight to it.
Introduction to Computer Networks
Introduction to Computer Networks
Key Point: Bandwidth units conversion: 1 bps = 1 bit/second; 1 Kbps = 10^3 bps; 1 Mbps = 10^6 bps; 1 Gbps = 10^9 bps
What is a Computer Network?
A computer network is a collection of two or more interconnected devices (computers, printers, servers, mobile devices) that communicate and share resources (files, printers, Internet access). Networks enable data exchange using standard rules called protocols.
Why Networks?
- Resource sharing: printers, files, applications.
- Communication: email, messaging, voice/video calls.
- Centralized management: backups, user accounts, security policies.
- Access to remote services: cloud storage, web services.
Basic Components
- Hosts/Nodes: PCs, servers, mobile devices.
- Network Interface Card (NIC): Hardware that connects a device to a network.
- Transmission media: Physical (twisted pair, coaxial, fibre) or wireless (radio, microwave, satellite).
- Interconnecting devices: Hub, switch, router, modem, bridge, repeater, access point.
- Protocols: Rules for communication (TCP, IP, HTTP, FTP, SMTP, DNS, DHCP).
Types of Networks by Scale
- LAN (Local Area Network): Small area like home, school, or office. High speed and low latency.
- MAN (Metropolitan Area Network): City-wide network, e.g., ISP infrastructure.
- WAN (Wide Area Network): Large geographical area, e.g., the Internet.
Network Topologies
Common physical/logical layouts:
- Bus: Single backbone cable.
- Star: Central device (switch/hub) connects all nodes.
- Ring: Each node connects to two neighbors forming a circle.
- Mesh: Nodes have multiple redundant links (partial or full).
- Hybrid: Combination of above.
Transmission Media
Guided: twisted-pair, coaxial, optical fibre (very high bandwidth). Unguided: radio waves, microwaves, infrared, satellite.
Network Models (Reference Architectures)
OSI Model (7 layers): Physical, Data Link, Network, Transport, Session, Presentation, Application. It is conceptual and explains layer responsibilities (e.g., Physical deals with bits and media; Transport provides end-to-end delivery—TCP/UDP).
TCP/IP Model (4 layers): Link (Network Interface), Internet (IP), Transport (TCP/UDP), Application (HTTP, FTP, SMTP, DNS). This is the practical model used on the Internet.
Data Transfer Methods
- Packet switching: Data broken into packets; each packet routed independently. Efficient and used on the Internet.
- Circuit switching: Dedicated path for the duration of a session (used in traditional telephone networks).
Addressing & Routing
IP addressing (IPv4): 32-bit address usually written as four decimal octets (e.g., 192.168.1.10). Addresses identify hosts on a network. Routing determines best path across multiple networks using routers.
Common Network Services & Protocols
- HTTP/HTTPS: Web browsing.
- DNS: Domain Name System translates domain names to IP addresses.
- DHCP: Dynamically assigns IP addresses.
- FTP/FTPS: File transfer.
- SMTP/POP3/IMAP: Email protocols.
Performance Metrics
- Bandwidth: Maximum data rate of a channel (bps).
- Throughput: Actual achieved data rate (bps).
- Latency/Delay: Time for a packet to travel from source to destination (ms).
- Jitter: Variation in packet delay (important for voice/video).
Security Basics
Networks must be secured using firewalls, VPNs, encryption (SSL/TLS), authentication, access control, and regular updates to prevent unauthorized access and data breaches.
Real-life Use Cases
Examples include home Wi-Fi networks, school/college LANs, corporate networks with client-server applications, ISPs providing Internet access, mobile networks for voice/data, and cloud services accessed over the Internet.
Summary
Computer networks connect devices to share resources and communicate. Understanding components, topologies, models, protocols, addressing, and performance metrics forms the foundation of networking for Class 12 Informatics Practices.
- Home Wi‑Fi network: Several devices (phone, laptop, smart TV) connect via a wireless router to share an Internet connection.
- School LAN: Computers in a lab connected to a switch and a local file server to share educational resources and printers.
- Office client‑server network: Workstations connect to central application servers and databases for business operations.
- Web browsing: A browser issues an HTTP/HTTPS request to a web server using DNS to find the server's IP address.
- Email exchange: SMTP used to send email from a client to a mail server; POP3/IMAP to retrieve messages.
- Video streaming: Adaptive bitrate streaming over the Internet where throughput and latency affect playback quality.
- \[Bandwidth units conversion: 1 bps = 1 bit/second\]\[1 Kbps = 10^3 bps\]\[1 Mbps = 10^6 bps\]\[1 Gbps = 10^9 bps\]
- \[Transmission time (s) = File size (bits) / Bandwidth (bps) — time to put all bits on the wire\]
- \[Throughput = Transferred data (bits) / Transfer time (s) — actual achieved data rate\]
- \[Propagation delay (s) = Distance (meters) / Propagation speed (≈2×10^8 m/s in cable or ≈3×10^8 m/s in vacuum)\]
- \[Bandwidth‑Delay Product (bits) = Bandwidth (bps) × Round‑Trip Time (s) — amount of data 'in flight' on the link\]
- \[Stop‑and‑Wait efficiency ≈ (Frame transmission time) / (Frame transmission time + 2 × Propagation delay)\]
Types of Networks
Types of Networks
Key Point: Data transfer time = File size (bits) / Bandwidth (bits per second). Example: transferring 100 MB = 800 Mb over 100 Mbps link takes 8 seconds.
Overview: A computer network is a set of devices connected to share resources and exchange data. Networks are commonly classified by geographical scope, ownership, and topology. In Class 12 Informatics Practices, the primary classification is by size/coverage area: PAN, LAN, CAN, MAN, WAN and GAN. Each type differs in range, typical technologies, speed and typical use-cases.
- Personal Area Network (PAN)
Definition: A very small network for an individual user, typically a few meters.
Coverage: up to about 10 meters.
Common technologies: Bluetooth, USB, infrared, Zigbee.
Use: connecting a smartphone to a headset, keyboard to a tablet.
- Local Area Network (LAN)
Definition: A network covering a small geographic area like a home, office, or building.
Coverage: typically up to a few hundred meters.
Common technologies: Ethernet (wired), Wi-Fi (wireless).
Use: office network that shares printers, file servers and internet access.
- Campus Area Network (CAN)
Definition: Connects multiple LANs within a limited area such as a university, business campus or military base.
Coverage: up to several kilometers within a campus.
Common technologies: backbone Ethernet, fiber optic links, Wi-Fi mesh.
Use: university network linking different departments and labs.
- Metropolitan Area Network (MAN)
Definition: A network spanning a city or large campus; larger than a CAN but smaller than a WAN.
Coverage: up to tens of kilometers (a city area).
Common technologies: fiber optics, metro Ethernet, microwave links.
Use: city-wide connectivity for ISPs, connecting multiple offices in a city.
- Wide Area Network (WAN)
Definition: A network that spans states, countries or continents; typically interconnects multiple LANs and MANs.
Coverage: hundreds to thousands of kilometers.
Common technologies: leased lines, MPLS, VPN over the Internet, satellite links, long-haul fiber.
Use: a multinational company's private network connecting branches worldwide or the Internet itself.
- Global Area Network (GAN)
Definition: A worldwide network that provides uninterrupted coverage across the globe (often used to describe systems built on the Internet and satellite networks).
Coverage: global.
Common technologies: Internet backbone, satellite constellations.
Use: global services like cloud providers and global Internet access.
Classification by ownership and access: Private networks (owned by one organization), public networks (Internet, public Wi-Fi), and hybrid networks (private network with public links).
Common network topologies (how devices are arranged): star, bus, ring, mesh, tree. Topology affects performance, fault tolerance and cost. For example, star is common in LANs (easy to manage), mesh is used where high redundancy is required (WAN backbones).
Key characteristics to compare types: range/coverage, typical bandwidth (speed), latency, cost to build/maintain, management complexity, and fault tolerance. As coverage increases (LAN -> WAN), latency and cost generally increase while administrative complexity grows.
Practical notes for students: Identify the network type by asking: how large is the area covered? Who owns it? What technologies are used? Examples and simple diagrams help fix these definitions in mind.
- PAN: Pairing a smartphone with a Bluetooth headset or using a smartwatch connected to a phone.
- LAN: Office or home network where multiple computers share a printer and connect to a Wi-Fi router.
- CAN: A university campus network connecting academic buildings, libraries and dormitories.
- MAN: City-wide public Wi-Fi or linking multiple government offices across a city.
- WAN: A company linking its branches in different cities or countries using MPLS or VPN; the Internet itself is a WAN.
- GAN: Global cloud services (AWS, Google Cloud) and satellite-based global Internet services (eg. Starlink) providing worldwide coverage.
- \[Data transfer time = File size (bits) / Bandwidth (bits per second)\]\[Example: transferring 100 MB = 800 Mb over 100 Mbps link takes 8 seconds.\]
- \[Throughput ≤ Bandwidth\]\[Throughput is actual achieved rate\]\[bandwidth is maximum theoretical rate.\]
- \[Bandwidth-delay product = Bandwidth × Round-Trip Time (RTT)\]\[Units: bits\]\[Used to size buffers/window for full utilization.\]
- \[Propagation delay = Distance / Propagation speed. (Propagation speed in fiber ≈ 2 × 10^8 m/s.)\]
- \[Utilization (%) = (Throughput / Bandwidth) × 100\]\[Shows how much of a link's capacity is used.\]
Network Topologies
Network Topologies
Key Point: Number of links in a full mesh of n nodes: L = n(n − 1)/2
What is Network Topology?
Network topology is the arrangement or layout of nodes (computers, printers, switches) and links (cables, wireless connections) in a computer network. It determines how devices are connected, how data flows, and affects performance, reliability, cost and scalability.
Main types of topologies
1. Bus Topology
All devices are connected to a single central cable called a backbone. Data sent by a device travels along the backbone and is received by all devices; the intended recipient accepts the frame.
- Advantages: simple, low cost for small networks.
- Disadvantages: single point of failure (backbone), limited length and bandwidth, collisions (unless switched).
- Use case: legacy Ethernet (thin coax) and small LAN experiments.
2. Star Topology
All devices are connected to a central hub/switch. Each device has a dedicated link to the central device. Communication typically goes via the central switch.
- Advantages: easy to install/add/remove nodes, failure of one node does not affect others, easy fault isolation.
- Disadvantages: central device is a single point of failure; cost higher due to extra cabling and central hardware.
- Use case: modern wired LANs (Ethernet) and home Wi‑Fi networks using a router/switch.
3. Ring Topology
Each device connects to two neighbors forming a closed loop. Data travels in one or both directions around the ring.
- Advantages: orderly access, predictable performance in token-passing rings.
- Disadvantages: a break in the ring can disable the network unless dual-ring or fault-tolerance mechanisms are used.
- Use case: Token Ring, some fiber ring protocols (SONET/SDH).
4. Mesh Topology
Every node has a point-to-point link to every other node (full mesh) or to some nodes (partial mesh).
- Advantages: very high redundancy and fault tolerance; multiple paths reduce congestion and increase reliability.
- Disadvantages: cost and complexity grow rapidly with nodes (cabling, ports).
- Use case: critical backbone networks, WAN core, wireless mesh networks for resilient coverage.
5. Tree (Hierarchical) Topology
Nodes are arranged in a hierarchy: groups of star topologies connected to a backbone. It combines characteristics of star and bus.
- Advantages: scalable, good for large networks and departmental segmentation.
- Disadvantages: backbone or higher-level node failures affect branches.
- Use case: campus networks, enterprise networks with departmental switches.
6. Hybrid Topology
A combination of two or more different topologies (e.g., star-ring, star-bus) to meet specific requirements.
- Advantages/Disadvantages depend on the combined topologies.
- Use case: large corporate networks that mix star for offices, mesh for backbone, and tree for departments.
Key characteristics to compare
- Cost: cabling and device cost (star and mesh usually costlier).
- Scalability: ease of adding nodes (star and tree are easy; full mesh is hard).
- Reliability/Fault tolerance: mesh is best, bus and single-ring worst unless redundancy added.
- Performance: depends on traffic, shared vs dedicated links, and number of hops.
Data flow and hops
In many topologies the number of hops between two nodes affects latency. Example: in full mesh hops = 1; in star hops ≤ 2; in ring worst-case hops ≈ floor(n/2).
Practical advice
Choose topology based on scale, budget, performance and reliability needs. Small home/small office: star. Large enterprise/campus: tree or hybrid. High-availability backbone: partial/full mesh.
- Home network: star topology — all devices (PCs, phones) connect to a home router/switch.
- Office LAN: star or tree — desktop PCs connect to departmental switches (star), departmental switches connect to a core switch (tree).
- Internet backbone: partial mesh — major routers connect to multiple peers for redundancy and load distribution.
- Wireless mesh: community Wi‑Fi — multiple wireless nodes forward traffic for coverage and redundancy.
- Telecom ring: SONET/SDH rings — fiber ring providing resilient metropolitan area connections.
- \[Number of links in a full mesh of n nodes: L = n(n − 1)/2\]
- \[Number of links in a star with n nodes: L = n − 1 (each node has one link to central device)\]
- \[Number of links in a tree (connected acyclic network) with n nodes: L = n − 1\]
- \[Number of links in a ring with n nodes: L = n (each node connects to two neighbors)\]
- \[Maximum hops in a ring of n nodes (worst case): H_max = floor(n/2)\]
- \[Nodes in a k‑ary tree of height h (levels 0..h): N = (k^(h+1) − 1) / (k − 1) (useful for planning hierarchical networks)\]
Transmission Modes
Transmission Modes
Key Point: Throughput (average) = bits_transferred / time_seconds
Definition: Transmission modes describe the direction(s) in which data can flow between two connected devices over a communication link. The three basic modes are Simplex, Half‑duplex and Full‑duplex.
1. Simplex: Data flows in only one direction — from sender to receiver. The receiver cannot send any data back on the same channel. This is a unidirectional mode.
- Characteristics: One-way, no acknowledgement over the same link, simple and cheap.
- When used: When feedback is unnecessary or provided via some other channel.
2. Half‑duplex: Data can flow in both directions, but not at the same time. Devices take turns to transmit and receive on the same channel.
- Characteristics: Bidirectional but time‑shared; requires a mechanism to switch transmission direction (e.g., turn‑taking or carrier sensing).
- When used: When full simultaneous two‑way communication is not required and cost/complexity must be kept low.
3. Full‑duplex: Data can flow in both directions simultaneously. Both ends can transmit and receive at the same time.
- Characteristics: True simultaneous bidirectional communication; higher throughput and lower perceived latency.
- When used: Real‑time interactive applications (voice/video calls, modern Ethernet links).
Comparison (summary):
- Simplex: one direction only (sender → receiver).
- Half‑duplex: two directions, but not simultaneously (A ↔ B, alternate).
- Full‑duplex: two directions simultaneously (A ⇄ B at same time).
Practical considerations: Choice of mode depends on application requirements (latency, interactivity), physical medium capabilities (separate transmit/receive channels or shared medium), and cost. Protocols or hardware often implement switching or channel separation to support the chosen mode.
Simple notes on performance: Full‑duplex can provide higher effective aggregate throughput because both directions can use the channel capacity at once. Half‑duplex introduces switching/turnaround delays which reduce effective throughput during direction changes.
- Simplex: Broadcast TV or radio — station transmits, audience only receives on that channel.
- Simplex: Keyboard → CPU keystrokes (keyboard sends data; keyboard does not receive on that channel).
- Half‑duplex: Walkie‑talkies or push‑to‑talk radios — one person speaks while others listen; then they switch roles.
- Half‑duplex: Early Ethernet hubs or shared medium LANs where nodes take turns to transmit.
- Full‑duplex: Telephone calls — both parties can speak and listen at the same time.
- Full‑duplex: Modern switched Ethernet links (e.g., 1000BASE‑T with separate pairs) and most full‑duplex network interfaces.
- \[Throughput (average) = bits_transferred / time_seconds\]
- \[If channel capacity is C (bits/s) and half‑duplex uses a time split α for A→B and (1−α) for B→A\]\[then: Rate_A→B = α × C\]\[Rate_B→A = (1−α) × C\]\[For equal sharing (α = 0.5): each direction = C/2.\]
- \[Full‑duplex (independent channels) if each direction has capacity C: Rate_A→B = C\]\[Rate_B→A = C\]\[Aggregate capacity = 2 × C (if medium supports two simultaneous channels).\]
- \[Accounting for turnaround overhead in half‑duplex: Effective_rate = (Data_time / (Data_time + Turnaround_time)) × C\]\[If turnaround is large relative to data bursts\]\[utilization falls.\]
Network Devices
Network Devices
Key Point: Throughput = Total data transferred (bits) / Time taken (seconds) — result in bits per second (bps).
Network devices are hardware components that connect computers and other devices to form a network, manage data flow, and provide services such as routing, switching, signal regeneration and security. Each device operates at one or more OSI layers and performs specific functions to ensure reliable, efficient communication.
Common network devices and their roles:
- Network Interface Card (NIC): Hardware interface on a host that connects it to a network (OSI Layer 1/2). Converts parallel data to serial for transmission and vice versa.
- Repeater: Regenerates and amplifies signals to extend transmission distance (Layer 1). Used in long cable runs or wireless extenders.
- Hub: Multiport repeater that broadcasts incoming frames to all ports (Layer 1). Simple, creates single collision domain (not used in modern switched networks).
- Bridge: Filters traffic by MAC address and separates collision domains (Layer 2). Connects two LAN segments.
- Switch: Forwards frames based on MAC addresses, creates separate collision domains per port, improves throughput (Layer 2). Managed switches can provide VLANs.
- Router: Routes packets between different networks using IP addresses, maintains routing tables and finds best paths (Layer 3). Connects LANs to WANs/Internet.
- Gateway: Translates between different protocols or architectures (multi-layer). Example: VoIP gateway connecting PSTN and IP networks.
- Modem (Modulator-Demodulator): Converts digital signals to analog for transmission over telephone lines and vice versa. Used for DSL/cable modems (Layer 1/2).
- Wireless Access Point (AP): Provides wireless connectivity to a wired LAN, performs authentication/association (Layer 2/3 functions as well in some devices).
- Firewall: Enforces security policies by filtering traffic based on rules, can operate at packet (stateful) or application level (Layer 3–7).
- Load Balancer: Distributes incoming traffic across multiple servers to improve performance and availability (Layer 4–7).
- Proxy Server: Intermediary for client requests (caching, filtering, anonymity) often used for performance and security (Layer 7).
How they work together: In a typical home setup the modem connects to the ISP, the router directs traffic between the home LAN and the Internet and often includes a switch and wireless AP in one device. In enterprise networks, switches create the LAN fabric, routers connect LANs and WANs, and firewalls/load balancers/proxies provide security and scalability.
Key considerations when choosing devices include throughput (capacity), latency added by device processing, number of ports, supported protocols (VLANs, QoS), and security features.
- Home Wi‑Fi router: Combines modem, router, switch and access point to provide internet access and local networking for laptops, phones and smart devices.
- Office switch: A managed Layer‑2 switch connecting multiple desktops and printers; uses VLANs to isolate departments.
- ISP router: Routes traffic between customers' networks and the Internet backbone, maintains routing tables (BGP/OSPF).
- Wi‑Fi access point in a cafe: Provides wireless connectivity to customers, often connected to a central switch and router.
- Range extender/repeater: Boosts a weak Wi‑Fi signal in a large home so distant rooms maintain connectivity.
- Firewall appliance at company edge: Filters incoming/outgoing traffic and blocks suspicious connections based on rules.
- \[Throughput = Total data transferred (bits) / Time taken (seconds) — result in bits per second (bps).\]
- \[Transmission delay = Packet size (bits) / Bandwidth (bits per second).\]
- \[Propagation delay = Distance (meters) / Propagation speed (meters per second) (≈ 2×10^8 m/s in copper/fiber).\]
- \[Total latency (per packet) ≈ Transmission delay + Propagation delay + Queuing delay + Processing delay.\]
- \[Bandwidth utilization (%) = (Observed throughput / Link bandwidth) × 100.\]
- \[Packet loss rate = (Number of lost packets / Number of sent packets) × 100%.\]
Transmission Media
Transmission Media
Key Point: Shannon-Hartley capacity: C = B * log2(1 + S/N) (C in bits/sec, B in Hz, S/N is signal-to-noise power ratio).
Transmission media are the physical pathways that carry information signals from a sender to a receiver in a network. They determine the speed, distance, reliability and cost of communication. Transmission media are classified into two broad categories: guided (wired) media where signals are confined to a physical conductor, and unguided (wireless) media where signals are propagated through the air or space.
Guided (Wired) Media
- Twisted Pair Cable: Two insulated copper wires twisted together. Types: Unshielded Twisted Pair (UTP) and Shielded Twisted Pair (STP). Used for telephony and Ethernet (LAN). Advantages: cheap, flexible. Limits: limited bandwidth, susceptible to electromagnetic interference, short distance.
- Coaxial Cable: Central conductor, insulating layer, metallic shield and outer jacket. Higher bandwidth and better noise immunity than twisted pair. Used for cable TV and older broadband links.
- Optical Fiber: Glass or plastic core that transmits light pulses. Types: single-mode (long distance, high bandwidth) and multimode (shorter distance). Advantages: very high bandwidth, low attenuation, immune to electromagnetic interference. Used for Internet backbones, undersea cables, FTTH (fiber to the home).
Unguided (Wireless) Media
- Radio Waves: Omnidirectional propagation, used for Wi-Fi, broadcast radio, cellular networks. Good for non-line-of-sight and wide-area coverage but prone to interference.
- Microwave: Higher frequency, often line-of-sight, used for point-to-point links between towers and satellite uplinks. Offers high capacity but needs clear path.
- Infrared: Short-range, line-of-sight or reflected indoor links (e.g., remote controls, some device-to-device links). Not used outdoors over long distances.
- Satellite: Uses microwave frequencies through satellite transponders for very wide-area coverage and long-distance links; introduces higher latency due to large distances.
Key Performance Factors
- Bandwidth: Range of frequencies the medium can carry — higher bandwidth supports higher data rates.
- Attenuation: Loss of signal strength with distance; measured in dB/km for cables or as path loss for wireless.
- Noise and Interference: Electromagnetic noise reduces signal quality and increases error rates.
- Latency: Time delay introduced by propagation and devices; important for real-time applications.
- Cost and Practicality: Installation, maintenance and environmental constraints (e.g., laying fiber vs. using wireless links).
Choosing a transmission medium involves trading off bandwidth, distance, cost and environment. For example, fiber is best for long high-capacity backbones, UTP is common inside buildings for Ethernet, and wireless is chosen where mobility or fast deployment is required.
- Ethernet LAN using UTP cables (Cat5e/Cat6) inside offices and homes.
- Cable TV and some broadband using coaxial cable to homes.
- Fiber-to-the-home (FTTH) providing high-speed internet via optical fiber.
- Wi-Fi using radio waves for wireless Internet access in homes, cafés and campuses.
- Microwave point-to-point links between cellular towers or to provide last-mile connectivity.
- Satellite links for television distribution, global communications and remote-area connectivity.
- \[Shannon-Hartley capacity: C = B * log2(1 + S/N) (C in bits/sec\]\[B in Hz\]\[S/N is signal-to-noise power ratio).\]
- \[Nyquist (noiseless) maximum bit rate: C = 2 * B * log2(M) (M = number of discrete signal levels).\]
- \[Friis free-space equation (received power): Pr = Pt * Gt * Gr * (λ / (4 * π * R))^2 (Pt\]\[Pr in linear units\]\[Gt/Gr are antenna gains\]\[λ wavelength\]\[R distance).\]
- \[Decibel (power ratio): L(dB) = 10 * log10(P1 / P2)\]\[For SNR in dB: SNR(dB) = 10 * log10(S/N).\]
- \[Link budget form (dB): Pr(dBm) = Pt(dBm) + Gt(dBi) + Gr(dBi) - Lpath(dB) - Lother(dB).\]
Network Models
Network Models
Key Point: Transmission delay = Packet size (bits) / Bandwidth (bits per second). Example: 1,000,000 bits / 10,000,000 bps = 0.1 s.
What is a network model?
A network model is a layered conceptual framework that describes how data is transmitted between networked devices. It divides communication tasks into discrete layers, each with defined functions and interfaces. Network models make design, implementation and troubleshooting easier by separating concerns (modularity) and standardizing protocols.
Why use models?
- Standardization: ensures devices from different vendors interoperate.
- Modularity: changes in one layer do not require changes in others.
- Troubleshooting: problems can be isolated to a layer.
Main models:
1. OSI (Open Systems Interconnection) Model — 7 layers
- Layer 7: Application — Interface for end-user applications (HTTP, SMTP, FTP). Example: web browser.
- Layer 6: Presentation — Data translation, encryption/compression (SSL/TLS, MIME). Example: encrypting an HTTPS payload.
- Layer 5: Session — Manages sessions/ dialogues between applications (session establishment, maintenance). Example: maintaining a login session.
- Layer 4: Transport — End-to-end communication, reliability, flow control (TCP, UDP). Example: TCP provides reliable delivery for a file download.
- Layer 3: Network — Logical addressing and routing (IP). Example: routers forward packets across networks.
- Layer 2: Data Link — Framing, MAC addressing, error detection/correction (Ethernet, ARP). Example: switches forward frames within a LAN.
- Layer 1: Physical — Transmission of raw bits over medium (cables, Wi‑Fi radio). Example: Ethernet cable, fiber optics, voltages.
2. TCP/IP (Internet) Model — 4 layers
- Application — Combines OSI Application/Presentation/Session (HTTP, SMTP, DNS).
- Transport — TCP/UDP (port numbers, segmentation).
- Internet — IP addressing and routing (IPv4/IPv6).
- Network Access / Link — Corresponds to OSI Data Link + Physical (Ethernet, Wi‑Fi).
Encapsulation & Decapsulation
When an application sends data, each lower layer adds its own header (and sometimes trailer) — this is encapsulation. At the receiver each layer removes (decapsulates) the header in reverse order.
Example flow (HTTP request): Browser (Application) creates HTTP message → Transport adds TCP header (ports) → Network adds IP header (source/destination IP) → Link layer adds Ethernet header (MAC addresses) → Physical transmits bits.
Mapping and devices: Switches operate mainly at OSI Layer 2, routers at Layer 3, application-layer gateways (proxies) at Layer 7. Firewalls may act at multiple layers.
Benefits in practice: Network models help design protocols (e.g., TCP for reliability, IP for routing), implement services (DNS, DHCP, HTTP), and teach network troubleshooting steps (is it physical, link, IP, or application?).
- Web browsing: An HTTPS request involves Application (HTTP), Transport (TCP), Internet (IP), and Link/Physical layers — data is encrypted at Presentation (TLS) and reliably delivered by TCP.
- Email: SMTP (Application) sends messages that traverse IP networks; attachments are encoded (Presentation) and delivered using TCP.
- Video streaming: Uses UDP (Transport) or TCP depending on service; RTP can be used on top of UDP for real‑time media.
- Local file sharing in a LAN: Switches forward frames using MAC addresses (Data Link), routers direct traffic between LANs using IP (Network).
- DNS lookup: Application layer client sends a UDP query to a DNS server (Transport), which uses IP routing to reach the server.
- \[Transmission delay = Packet size (bits) / Bandwidth (bits per second)\]\[Example: 1,000,000 bits / 10,000,000 bps = 0.1 s.\]
- \[Propagation delay = Distance (meters) / Propagation speed (m/s)\]\[Example: 2,000,000 m / 2×10^8 m/s = 0.01 s.\]
- \[Bandwidth–delay product = Bandwidth (bits/s) × Round‑trip time (s). (Represents amount of data 'in flight'.)\]
- \[Little's Law (networks/queues) = L = λ × W\]\[where L = average number in system, λ = arrival rate\]\[W = average time in system.\]
- \[Throughput = Total useful data transferred (bits) / Time (s).\]
- \[Utilization (ρ) = Arrival rate × Service time (used in queueing models).\]
Protocols and Standards
Protocols and Standards
Key Point: Transmission delay = L / R, where L = packet length (bits), R = link bandwidth (bits/sec).
What are Protocols? A protocol is a set of agreed rules that devices use to communicate over a network. Protocols define the syntax (format), semantics (meaning) and timing (when and how fast) of exchanged messages so that different systems can interoperate.
What are Standards? Standards are formalized specifications produced by recognized bodies (like ISO, IEEE, IETF, W3C) that ensure compatibility, interoperability, safety and quality across vendors and implementations. Standards often document protocols or reference them.
Why they matter
- Interoperability: Different devices and software can work together (e.g., browsers and web servers).
- Scalability and reuse: Common rules let networks grow without redesigning every component.
- Reliability and security: Well-defined behaviors reduce errors and enable secure communication.
Key aspects of a protocol
- Syntax — data formats and header fields.
- Semantics — control information like error handling and acknowledgements.
- Timing — speed of transmission, timeouts, and ordering constraints.
Layering and Protocol Stacks
Networks use layered models (OSI 7-layer or TCP/IP 4-layer) so each layer provides services to the layer above via defined protocols. Layering isolates functions (e.g., routing at network layer, reliable delivery at transport layer, application-specific protocols at application layer).
Common Protocols and their Layers (examples)
- Application layer: HTTP (web), SMTP (email), FTP (file transfer), DNS (name resolution)
- Transport layer: TCP (reliable, connection-oriented), UDP (connectionless)
- Network layer: IP (addressing & routing)
- Data link & physical layer: Ethernet (IEEE 802.3), Wi‑Fi (IEEE 802.11)
Standards Organizations
- ISO — International Organization for Standardization (OSI model)
- IEEE — Institute of Electrical and Electronics Engineers (Ethernet, Wi‑Fi)
- IETF — Internet Engineering Task Force (RFCs for TCP/IP protocols)
- W3C — World Wide Web Consortium (web standards like HTML)
Example process of standardization
An idea or need is discussed in working groups → a draft specification is written → community review and interoperability testing → formal publication as a standard or RFC. Implementers follow the standard so devices/software interoperate.
Real-life behaviour — how protocols work together
When you type a URL in a browser: DNS (application-level protocol) resolves the domain to an IP address; the browser issues an HTTP request (application layer) which is carried over TCP (transport layer) and routed using IP (network layer); Ethernet or Wi‑Fi handles the last hop on the local link. Each protocol adds its headers and follows its rules.
Common features in protocol specifications
- Message formats (headers, fields and values)
- State machines (e.g., TCP states: LISTEN, SYN_SENT, ESTABLISHED)
- Error handling and retransmission rules
- Security measures (authentication, encryption)
Example: TCP three-way handshake (brief)
1) Client sends SYN (synchronize) to server. 2) Server replies SYN-ACK. 3) Client sends ACK. After this exchange a reliable connection is established and data transfer begins.
Best practices
- Follow well-known standards to ensure compatibility.
- Use layer separation: change only the layer you need to modify.
- Test interoperability using reference implementations and conformance tests.
- Browsing a website: Browser uses HTTP (application) → TCP (transport) → IP (network) → Ethernet/Wi‑Fi (link).
- Sending email: Mail client uses SMTP to transfer mail between servers; POP3/IMAP used by client to retrieve mail.
- Streaming video: RTP/RTCP or HTTP-based streaming over UDP/TCP for media delivery with timing and buffering rules.
- File transfer: FTP defines commands and data connections; SFTP (over SSH) adds encryption and authentication.
- Home Wi‑Fi: Devices follow IEEE 802.11 standard so phones, laptops and routers interoperate regardless of vendor.
- \[Transmission delay = L / R\]\[where L = packet length (bits)\]\[R = link bandwidth (bits/sec).\]
- \[Propagation delay = d / s\]\[where d = distance (meters)\]\[s = propagation speed (~2×10^8 m/s in cable).\]
- \[End-to-end delay ≈ processing + queueing + transmission + propagation (sum of component delays).\]
- \[Bandwidth–delay product = bandwidth (bits/sec) × round-trip time (sec) — amount of data "in flight".\]
- \[Shannon capacity: C = B × log2(1 + S/N)\]\[where C = channel capacity (bits/sec)\]\[B = bandwidth (Hz)\]\[S/N = signal-to-noise ratio.\]
IP Addressing and Subnetting
IP Addressing and Subnetting
Key Point: Number of hosts per subnet = 2^(32 - prefix_length) - 2 (subtract network & broadcast). Example: /26 => 2^(32-26)-2 = 62.
What is an IP address?
An IP (Internet Protocol) address is a numeric label assigned to each device on a network that uses the Internet Protocol for communication. It uniquely identifies a host and provides the location addressing required for routing packets between devices.
IPv4 vs IPv6
IPv4 uses 32-bit addresses (written as four decimal octets, e.g. 192.168.1.10). IPv6 uses 128-bit addresses (written in hexadecimal, e.g. 2001:0db8::1) and was created to expand the limited IPv4 address space.
Structure of an IPv4 address
An IPv4 address has 32 bits divided into four octets (8 bits each). Each octet ranges from 0 to 255. The address is conceptually split into a network portion and a host portion. Which bits belong to which portion is determined by the subnet mask.
Subnet mask and CIDR
A subnet mask (e.g. 255.255.255.0) indicates which part of the IP is the network (bits set to 1) and which part is the host (bits set to 0). Classless Inter-Domain Routing (CIDR) writes the mask as a suffix /n where n is the number of 1 bits (e.g. 192.168.1.0/24).
Network ID and Broadcast address
For a given IP and mask: the Network ID is the lowest address in that subnet (all host bits 0). The Broadcast address is the highest address (all host bits 1). Hosts occupy the addresses between them (excluding network and broadcast).
Subnetting — why and how?
Subnetting divides a larger network into smaller subnets. Reasons: reduce broadcast domains, improve security, organize addressing, conserve IP addresses. You 'borrow' host bits to create additional network bits and thus more subnets with fewer hosts each.
Key concepts
- Default masks by class: Class A /8, Class B /16, Class C /24 (historical). Modern IP uses CIDR.
- Private (RFC 1918) ranges: 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16.
- Special addresses: 0.0.0.0 (this network), 127.0.0.1 (loopback), and limited broadcast 255.255.255.255.
- VLSM (Variable Length Subnet Masking): allows subnets of different sizes within a network.
How to calculate subnets (step-by-step)
- Start with the network and its mask (e.g. 192.168.1.0/24).
- Decide how many subnets or hosts per subnet are required and determine the new mask.
- Calculate the number of subnets: 2^(new_mask - old_mask).
- Calculate hosts per subnet: 2^(32 - new_mask) - 2 (subtract network & broadcast).
- Find each subnet's network ID and broadcast by incrementing the network address by the block size in the octet where the mask changes.
Example of binary visualization
IP: 192.168.1.130 -> 11000000.10101000.00000001.10000010 Mask: 255.255.255.192 -> 11111111.11111111.11111111.11000000 Network: bitwise AND -> 11000000.10101000.00000001.10000000 -> 192.168.1.128 Broadcast: set host bits to 1 -> 192.168.1.191 Hosts usable: 192.168.1.129 .. 192.168.1.190
CIDR advantages
CIDR removes rigid class boundaries, enabling efficient allocation and route aggregation (less routing table growth).
Practical tips
- Always reserve the first address of a subnet for network ID and the last for broadcast; those are not assignable to hosts.
- Use private ranges for internal networks and NAT on routers to map to public IPs for Internet access.
- Plan subnets by department or function to simplify management and security policies.
- Divide 192.168.1.0/24 into four equal subnets. New mask: /26 (because 2 extra bits borrowed: 2^2 = 4 subnets). Subnets: 192.168.1.0/26 (hosts .1–.62), 192.168.1.64/26 (hosts .65–.126), 192.168.1.128/26 (hosts .129–.190), 192.168.1.192/26 (hosts .193–.254). Each subnet has 2^(32-26)-2 = 62 usable hosts.
- Given IP 172.16.5.130 with mask /25 (255.255.255.128). Mask splits last octet at 128. Network ID is 172.16.5.128, broadcast is 172.16.5.255? (Correct: broadcast is 172.16.5.255 only for /24; for /25 broadcast is 172.16.5.255 is wrong). Correct: For /25 (block size 128) network 172.16.5.128/25 -> broadcast 172.16.5.255? Wait — correct broadcast is 172.16.5.255 for /24; for /25 broadcast is 172.16.5.255? This example needs correction: For 172.16.5.130/25, block size=128, network=172.16.5.128, broadcast=172.16.5.255? No: 128+127=255 so broadcast=172.16.5.255. Usable hosts: .129–.254 (126 hosts).
- Use of private IP and NAT: A home router receives a single public IPv4 (e.g., 203.0.113.10) and assigns devices private addresses from 192.168.0.0/24. The router translates internal addresses to the public IP when accessing the Internet.
- \[Number of hosts per subnet = 2^(32 - prefix_length) - 2 (subtract network & broadcast)\]\[Example: /26 => 2^(32-26)-2 = 62.\]
- \[Number of subnets created = 2^(new_prefix - old_prefix)\]\[Example: splitting /24 to /26 -> 2^(26-24) = 4 subnets.\]
- \[Block size in the changing octet = 256 - (value of that octet in subnet mask)\]\[Example: mask 255.255.255.192 -> changing octet value 192 -> block size = 256 - 192 = 64.\]
- \[Network ID = IP address AND subnet mask (bitwise).\]
- \[Broadcast = Network ID + (block_size - 1) in the octet where mask changes (or set all host bits to 1).\]
Data Communication Concepts
Data Communication Concepts
Key Point: Data rate (bps) — generally measured in bits per second (no single formula; determined by channel and encoding).
What is Data Communication?
Data communication is the exchange of digital or analog data between two or more devices via some transmission medium and protocols. It ensures that information sent by a source is received accurately and timely by the destination.
Core Components
- Sender – the device that generates and transmits the message.
- Receiver – the device that accepts and processes the message.
- Message – the actual data to be communicated (text, audio, video, sensor readings).
- Medium – physical path (copper wire, fiber, air for wireless) carrying the signal.
- Protocol – rules that govern data format, timing, sequencing, and error handling.
Types of Signals
- Analog – continuous signals (e.g., human voice over analog telephone).
- Digital – discrete 0/1 signals (e.g., data between computers).
Modes of Communication
- Simplex – one-way only (e.g., keyboard to CPU).
- Half-duplex – two-way but not simultaneously (e.g., walkie-talkie).
- Full-duplex – two-way simultaneously (e.g., telephone call).
Key Performance Measures (Concepts & Delays)
- Data rate / Bandwidth – bits per second (bps) the channel can carry.
- Transmission delay – time to push all packet bits onto the link: packet_size (bits) / bandwidth (bps).
- Propagation delay – time for a single bit to travel: distance / propagation_speed.
- Processing delay – time routers/switches take to examine packet headers.
- Queuing delay – time a packet waits in queue at a router; depends on network congestion.
- End-to-end delay – sum of above delays across the path.
Signal Encoding & Modulation
Digital data can be encoded into signals using schemes like NRZ, Manchester, or by modulation of carrier waves (ASK, FSK, PSK) for transmitting over physical media. Modulation allows use of a carrier frequency for propagation and multiplexing.
Error Control
Errors occur due to noise and attenuation. Techniques include parity checks, checksums, CRC (cyclic redundancy check), and retransmission (ARQ) or forward error correction (FEC).
Multiplexing
Sharing a medium: FDM (frequency division), TDM (time division), and statistical multiplexing for efficient use of bandwidth.
Basic Protocol Idea
Protocols define syntax, semantics and timing. Examples: link-level protocols for framing and error detection; transport-level (TCP/UDP) for reliability and flow control.
Why this matters (practical concerns)
Design choices affect latency (important for gaming/VoIP), throughput (important for file download/streaming), reliability (banking), and cost (choice of media). Understanding delays, capacity limits and error control helps optimize network performance.
- Phone call: real-time, full-duplex analog/digital communication (latency-sensitive).
- Video streaming: sender (server), receiver (client), medium (internet), needs high sustained bandwidth and buffering to hide delay variations.
- Email: tolerant to delay, uses store-and-forward delivery and error-checking (TCP/SMTP).
- Online gaming: requires low end-to-end delay (latency) and jitter; often uses UDP for lower overhead.
- Home Wi-Fi: wireless medium with contention, uses CSMA/CA protocol; performance affected by interference and distance.
- Sensor network: many low-power nodes sending small packets, often use energy-efficient protocols and aggregation.
- \[Data rate (bps) — generally measured in bits per second (no single formula\]\[determined by channel and encoding).\]
- \[Transmission delay = Packet size (bits) / Bandwidth (bits per second)\]
- \[Propagation delay = Distance (meters) / Propagation speed (meters per second)\]
- \[End-to-end delay ≈ Σ (transmission delay + propagation delay + processing delay + queuing delay) over all links\]
- \[Baud vs Bit rate: Bit rate = Baud × log2(M) where M is number of signal levels (for M-ary signaling)\]
- \[Nyquist (noiseless channel): Maximum bit rate = 2 × Bandwidth (Hz) × log2(M)\]
Internet and World Wide Web
Internet and World Wide Web
Key Point: Transmission delay = Packet size (bits) / Link bandwidth (bits per second)
Overview
The Internet is a global system of interconnected computer networks that communicate using the TCP/IP protocol suite. It is the infrastructure — a network of networks — provided by ISPs, backbone routers, undersea cables, satellites and data centers. The World Wide Web (WWW or Web) is an application that runs on the Internet: a collection of interlinked hypertext documents and resources accessed via web browsers using HTTP/HTTPS.
Key components
- End devices: clients (PCs, phones), servers (web, mail, DNS).
- Interconnection devices: routers, switches, gateways.
- Service providers: ISP, CDN, cloud providers.
- Protocols: TCP/IP (network & transport), HTTP/HTTPS (web), DNS (name resolution), SMTP/IMAP/POP3 (email), FTP (file transfer).
- Addressing: IP addresses (IPv4/IPv6) and domain names resolved by DNS.
How the Web works (typical browser request)
- User enters URL (for example http://www.example.com/page).
- DNS lookup translates domain to IP address.
- Client opens a TCP connection to the web server (three-way handshake).
- Browser sends an HTTP request (GET/POST) over the connection.
- Server processes request and sends an HTTP response (HTML, CSS, JS, images).
- Browser renders the page; connection may be kept alive or closed. If HTTPS is used, TLS/SSL handshake secures the connection before HTTP traffic.
Important protocols and ports
- HTTP — port 80; HTTPS — port 443 (HTTP over TLS)
- FTP — port 21; SMTP — port 25; IMAP — port 143 / 993 (SSL); POP3 — port 110 / 995 (SSL)
- DNS — port 53; SSH — port 22
Network concepts relevant to Internet and Web
- Packet switching: data is split into packets and routed independently across the network.
- Latency: time for a packet to travel from sender to receiver; affects responsiveness.
- Bandwidth: maximum data rate of a link (bits per second).
- Throughput: actual achieved data rate (usually ≤ bandwidth).
- Bandwidth-Delay Product: amount of data 'in flight' = bandwidth × round-trip time (RTT).
Security and privacy
- HTTPS/TLS encrypt web traffic to protect confidentiality and integrity.
- Firewalls, intrusion detection, VPNs and secure passwords mitigate threats.
- Common threats: phishing, malware, man-in-the-middle, DDoS.
Advantages
- Instant access to global information and services (education, banking, shopping).
- Real-time communication (email, messaging, video calls).
- Centralized and distributed services via cloud and CDNs improve speed and scalability.
Limitations
- Privacy and security risks, misinformation, digital divide, latency for remote locations.
Terminology quick reference
- URL: Uniform Resource Locator — address of a web resource (protocol://domain/path).
- HTML: HyperText Markup Language — used to structure web pages.
- Web server: software/hardware that serves web pages (e.g., Apache, Nginx).
- Web browser: client software that requests and renders web content (Chrome, Firefox).
- Browsing an online news website: browser sends HTTP/HTTPS requests to a web server and renders HTML/CSS/JS received.
- Sending and receiving email: client uses SMTP to send and IMAP/POP3 to retrieve messages from mail servers.
- Online banking using HTTPS: secure connection (TLS) encrypts data between your browser and bank server.
- Video streaming (Netflix/YouTube): content delivered via CDNs to reduce latency and improve throughput.
- Video conferencing (Zoom/Meet): real-time audio/video transmitted over the Internet using specialized protocols and often UDP for lower latency.
- Uploading files to cloud storage (Google Drive/OneDrive): client authenticates, then uses HTTPS or specialized APIs to transfer data.
- \[Transmission delay = Packet size (bits) / Link bandwidth (bits per second)\]
- \[Propagation delay = Distance (meters) / Propagation speed (meters per second\]\[often ~2×10^8 m/s in fiber)\]
- \[Total latency ≈ Transmission delay + Propagation delay + Processing delay + Queuing delay\]
- \[Bandwidth-Delay Product = Bandwidth (bits/s) × RTT (s) — amount of data that can be 'in flight'\]
- \[Time to transfer a file = File size (bits) / Effective throughput (bits/s)\]
- \[Number of hosts in IPv4 subnet with prefix /n = 2^(32 - n) - 2 (usable hosts\]\[excluding network and broadcast addresses)\]
Network Services and Applications
Network Services and Applications
Key Point: Transmission delay (time to put bits on the link): transmission_delay = L / R (L = packet length in bits, R = link bandwidth in bits/sec)
What are Network Services and Applications?
Network services are software functions provided across a computer network to support communication, resource sharing and application delivery. Applications use these services (and the underlying network protocols) to offer end-user features like web pages, email, file transfer, voice/video calling, and cloud storage.
Categorization
- Infrastructure services: DNS (name resolution), DHCP (IP assignment), NTP (time sync).
- Application-layer services: Web (HTTP/HTTPS), Email (SMTP/POP3/IMAP), File transfer (FTP/SFTP), Remote access (SSH/Telnet).
- Real-time & Multimedia: VoIP, video conferencing, streaming (RTSP, RTP).
- Security & Access: VPNs, SSL/TLS, authentication/authorization services.
- Cloud & Content Delivery: SaaS, IaaS, CDN (cached delivery of content close to users).
How they work (brief)
- Most services follow a client–server model: clients send requests to servers; servers respond. Example: browser requests a web page from a web server (HTTP).
- Some services use peer-to-peer (P2P) where nodes both request and provide resources (e.g., file-sharing networks, some VoIP setups).
- Services are built on standard protocols (TCP/UDP for transport; application protocols like HTTP, SMTP) and designated port numbers to identify the service on a host.
Common protocols & ports
- HTTP — port 80; HTTPS (HTTP over TLS) — port 443
- FTP — ports 20/21; SFTP (SSH File Transfer) — port 22
- SMTP — port 25; POP3 — port 110; IMAP — port 143
- DNS — port 53; DHCP — ports 67/68; SSH — port 22
Quality factors & service requirements
- Bandwidth (capacity) — affects throughput for large transfers (file download, video).
- Latency (delay) — crucial for real-time apps (gaming, VoIP, video conferencing).
- Reliability — error detection/retransmission (TCP) vs low-latency tolerance (UDP).
- Security — encryption (TLS/SSL), authentication, firewalling.
- Scalability — CDNs, load balancers, cloud services to handle variable demand.
Examples of end-to-end service operation
- Web browsing: DNS resolves domain → TCP connection to server → HTTP request/response → browser renders HTML/CSS/JS → resources may be cached in CDN.
- Email: Sender’s client uses SMTP to deliver to a mail server; delivery between mail servers uses SMTP; recipients retrieve mail using POP3/IMAP.
- Video calling: Signaling via SIP/HTTP, media via RTP over UDP; requires low latency and jitter control.
Security & privacy
Secure variants (HTTPS, SMTPS, SFTP) encrypt data in transit. Firewalls, IDS/IPS, VPNs and application-layer gateways protect services. Proper authentication and access control are essential for safe operations.
Why it matters for students
Understanding network services helps explain everyday Internet activities, troubleshoot connectivity problems, and design secure, efficient systems for applications like web apps, email, streaming and cloud services.
- Web browsing: Typing www.example.com → DNS lookup → HTTP/HTTPS request → web server responds with HTML/CSS/JS (uses ports 53 and 80/443).
- Email: Alice’s mail client sends mail using SMTP; the recipient downloads it via IMAP or POP3 (SMTP port 25, IMAP 143, POP3 110).
- File transfer: Uploading homework to a school FTP server (FTP ports 20/21) or using SFTP (secure over SSH, port 22).
- Video streaming: Watching a lecture on a streaming platform — uses HTTP/HTTPS and CDNs to deliver video segments with buffering to handle varying bandwidth.
- Video conferencing / VoIP: Real-time audio/video using RTP over UDP, with signaling via SIP or a web-based signaling channel; latency and jitter minimization is critical.
- DHCP: A laptop joins a Wi‑Fi network and receives an IP address automatically from the DHCP server (ports 67/68).
- \[Transmission delay (time to put bits on the link): transmission_delay = L / R (L = packet length in bits\]\[R = link bandwidth in bits/sec)\]
- \[Propagation delay (time for a signal to travel the medium): propagation_delay = d / s (d = distance\]\[s = signal speed in medium ≈ 2×10^8 m/s for fiber)\]
- \[Round-Trip Time (RTT) ≈ 2 × propagation_delay + transmission_delay + queuing_delay + processing_delay\]
- \[Bandwidth–delay product (amount of data 'in flight'): BDP = bandwidth × RTT\]
- \[Throughput ≤ bandwidth (actual application data rate)\]\[Utilization = throughput / bandwidth\]
Wireless Networking
Wireless Networking
Key Point: Shannon–Hartley channel capacity: C = B × log2(1 + S/N) (C in bits/s, B = bandwidth in Hz, S/N = signal‑to‑noise ratio)
Wireless Networking is the method of connecting computers and devices using radio waves or other wireless signals instead of physical cables. It enables mobility, easier installation, and flexible network access. Wireless networks can be local (Wi‑Fi, Bluetooth), wide‑area (cellular: 3G/4G/5G), or sensor/mesh networks for IoT.
Key components: access point (AP) / base station, wireless client (laptop, phone), wireless network interface (Wi‑Fi/Bluetooth chip), antennas, and sometimes a router/firewall.
Common modes and topologies:
- Infrastructure mode – clients connect to a central AP (typical home/school Wi‑Fi).
- Ad‑hoc mode – peer‑to‑peer connections without an AP (direct file transfers).
- Mesh networks – nodes forward traffic for each other to increase coverage and redundancy.
Standards & frequencies: IEEE 802.11 family (a/b/g/n/ac/ax) for Wi‑Fi; common bands are 2.4 GHz (longer range, more interference) and 5 GHz (more channels, higher speeds). Bluetooth (short‑range), Zigbee (low power IoT), and cellular standards (LTE/5G) are also examples.
Security: wireless links are broadcast, so encryption and authentication are critical. Common security protocols: WEP (obsolete), WPA, WPA2 (widely used), and WPA3 (newer, stronger). Use strong passwords and up‑to‑date encryption.
Performance factors: bandwidth (channel width), signal strength (depends on distance and obstacles), interference (other Wi‑Fi, microwaves), channel overlap, number of active users, and protocol overhead affect throughput and latency.
Advantages: mobility, easy installation, scalable coverage, supports mobile devices. Disadvantages: limited range, variable speeds, interference, security risks, and sometimes higher latency than wired links.
Practical tips: place APs centrally and elevated, choose less congested channels (especially on 2.4 GHz), use WPA2/WPA3, update firmware, and consider mesh systems for large homes/buildings.
- Home Wi‑Fi: A single router (AP) provides Internet access to phones, laptops, smart TVs using IEEE 802.11 standards.
- Bluetooth headphones: Short‑range wireless audio connection between smartphone and earbuds using Bluetooth protocol.
- Public hotspot: Wi‑Fi AP in cafes, airports that offers wireless Internet to customers (may require authentication/terms).
- Mesh Wi‑Fi in a large house: Multiple nodes distributed around the building create a single seamless wireless network to avoid dead zones.
- Cellular data (4G/5G): Mobile phones connect to cell towers for wide‑area high‑speed Internet access while moving.
- \[Shannon–Hartley channel capacity: C = B × log2(1 + S/N) (C in bits/s\]\[B = bandwidth in Hz\]\[S/N = signal‑to‑noise ratio)\]
- \[Friis free‑space equation (received power): Pr = Pt × Gt × Gr × (λ / (4πd))^2 (Pr and Pt are linear powers\]\[G are antenna gains, λ is wavelength\]\[d is distance)\]
- \[Link budget in dB: Pr(dBm) = Pt(dBm) + Gt(dB) + Gr(dB) - PathLoss(dB) - OtherLosses(dB)\]
- \[SNR in decibels: SNR(dB) = 10 × log10(SignalPower / NoisePower)\]
- \[Maximum theoretical data rate (approx): DataRate ≈ SpectralEfficiency (bits/s/Hz) × Bandwidth (Hz)\]
Network Security
Network Security
Key Point: Key space for an n-bit key: Key_space = 2^n (number of possible keys). Example: 128-bit key -> 2^128 possible keys.
What is Network Security?
Network security is the set of policies, practices and technologies used to protect computer networks and the data they carry from unauthorized access, misuse, modification, destruction or disruption. It ensures safe and reliable communication between devices over local and wide-area networks.
Main goals (CIA triad)
- Confidentiality: Ensure that only authorized users can read the data (example: encryption, access control).
- Integrity: Prevent unauthorized modification of data (example: hashing, digital signatures).
- Availability: Ensure services and data are available when needed (example: redundancy, DDoS protection).
Common threats
- Malware (viruses, worms, trojans) — malicious software that damages or steals data.
- Phishing — tricking users to reveal credentials or personal information.
- Man-in-the-Middle (MITM) — attacker intercepts and possibly modifies communications.
- DDoS (Distributed Denial of Service) — overwhelming resources to make services unavailable.
- Spoofing — faking IP/MAC addresses or identities to gain access.
Key security measures and technologies
- Firewalls — control incoming and outgoing traffic based on rules (packet filtering, stateful inspection).
- Antivirus/Anti-malware — detect and remove malware.
- Intrusion Detection/Prevention Systems (IDS/IPS) — monitor and react to suspicious activities.
- Encryption — transforms readable data into unreadable form. Two main types: symmetric (same key) and asymmetric (public/private keys).
- VPN (Virtual Private Network) — secure remote access by encrypting traffic between endpoints.
- Authentication & Authorization — verify identity (passwords, 2FA) and grant appropriate access rights (ACLs, role-based access).
- Hashing & Digital Signatures — ensure data integrity and non-repudiation.
- Secure Protocols — HTTPS (HTTP over TLS/SSL), SSH, S/MIME, IPSec to secure communications.
How encryption works (simple idea)
Plaintext --(encrypt with key)--> Ciphertext --(decrypt with key)--> Plaintext. In symmetric encryption the same key is used for both operations; in asymmetric encryption a public key encrypts and a private key decrypts.
Best practices
- Use strong, unique passwords and enable two-factor authentication (2FA).
- Keep systems and software updated (patch management).
- Use encryption for sensitive data in transit (HTTPS, VPN) and at rest.
- Limit access with the principle of least privilege (only necessary permissions).
- Regularly back up important data and test restores.
- Educate users about phishing and safe behavior online.
Simple classroom illustration
Imagine the internet as a road network. Network security measures are like traffic rules, road-blocks, CCTV cameras and police checkpoints that protect travelers (data) from thieves (attackers), prevent tampering (integrity) and keep roads open (availability).
- Online banking uses HTTPS (TLS) to encrypt communication between your browser and the bank server so attackers cannot read your transaction details.
- Home Wi‑Fi secured with WPA2/WPA3 prevents neighbors or strangers from connecting to your wireless network and snooping your traffic.
- Two-Factor Authentication (2FA) on email accounts requires both password and a one-time code (SMS or app) — even if the password is stolen, the account stays protected.
- A company uses a VPN so remote employees can securely access internal resources; the VPN encrypts traffic across the public internet.
- An organization places a web server in a DMZ (demilitarized zone) and protects its internal network with a firewall; the firewall blocks unauthorized incoming connections.
- Phishing: A fake email that looks like it’s from a bank asks the user to 'verify account' — if the user enters credentials, the attacker steals them.
- \[Key space for an n-bit key: Key_space = 2^n (number of possible keys)\]\[Example: 128-bit key -> 2^128 possible keys.\]
- \[Brute-force time (approx.): Time = 2^n / attempts_per_second\]\[Use this to estimate how long to try all keys.\]
- \[Password entropy (bits): Entropy = L * log2(N) where L = password length\]\[N = size of allowed character set\]\[Higher entropy → stronger password.\]
- \[Probability of guessing a key/password randomly: P = 1 / 2^n for an n-bit key (or 1 / N^L for passwords from N characters of length L).\]
- \[Availability (fraction): Availability = (Total_time - Downtime) / Total_time\]\[Often expressed as a percentage (e.g., 99.9%).\]
Network Management and Troubleshooting
Network Management and Troubleshooting
Key Point: Link utilization (%) = (Throughput / Bandwidth) × 100
What is Network Management? Network management is the practice of administering, operating, maintaining and provisioning networked systems to ensure they are available, secure, and performing well. It covers monitoring, configuration, fault detection, performance optimization and security management.
Main Goals
- Availability: keep devices and links up (minimize downtime).
- Performance: maintain acceptable bandwidth, latency and throughput.
- Security: protect data and control access.
- Scalability & Capacity planning: handle growth without degradation.
Core Components
- Network Management System (NMS): software to monitor and control devices.
- Agents & Protocols: SNMP (Simple Network Management Protocol), ICMP (for ping), Syslog (for logs).
- Management console & dashboards: show topology, alerts and metrics.
Key Metrics & What They Mean
- Bandwidth (capacity): maximum data rate of a link (bps).
- Throughput: actual data rate achieved.
- Latency: time for a packet to travel end-to-end (ms).
- Packet loss: percentage of packets not delivered.
- Jitter: variation in packet delay (important for voice/video).
Common Tools & Commands
- ping — checks basic reachability and round-trip time (RTT).
- traceroute / tracert — shows path and per-hop delay.
- ipconfig / ifconfig — view IP configuration on a host.
- nslookup / dig — DNS lookup and diagnosis.
- netstat / ss — view active connections and ports.
- Wireshark / tcpdump — capture and analyze packets.
- SNMP-based monitors (PRTG, Zabbix, Nagios) — continuous monitoring and alerting.
Typical Troubleshooting Process (structured approach)
- Identify the problem: gather user reports, error messages, logs and alarms.
- Establish scope: single device, subnet, or whole site?
- Isolate the cause: test physical links, IP config, routing, DNS, firewall rules.
- Resolve: replace cable, fix IP, update route, adjust QoS, restart service or device.
- Verify: retest connectivity and performance after fix.
- Document and prevent recurrence: log root cause and corrective actions.
Common Problems & Quick Checks
- No connectivity: check cables, switch LEDs, IP address (ipconfig/ifconfig), default gateway, ping gateway.
- Slow network: check link utilization, run speed/throughput tests, identify heavy flows, check for duplex mismatch.
- Intermittent dropouts: check NIC drivers, cabling, switch port errors, wireless interference.
- DNS failures: test with nslookup, try direct IP to isolate DNS vs connectivity issue.
- High latency & jitter (VoIP/video): check congestion, QoS settings, route changes.
Best Practices
- Use monitoring and alerting (CPU, memory, interface stats, error rates).
- Maintain updated network documentation and topology diagrams.
- Implement backups and redundant paths (failover) for critical links.
- Apply security: access control lists, firewalls, patching and strong authentication.
- Capacity planning: review trends and upgrade before saturation.
Sample diagnostic commands (examples)
ping 8.8.8.8 traceroute example.com (Linux/macOS) or tracert example.com (Windows) ipconfig /all (Windows) or ifconfig / ip addr show (Linux) nslookup example.com netstat -rn (view routing table)
Using a systematic process, the right tools and monitoring, network managers can keep networks reliable and quickly resolve issues when they arise.
- School computer lab: Students report some PCs can’t access the internet. Steps: check cables and switch LEDs, run ipconfig to verify IP, ping the gateway, traceroute to internet host, check DHCP server. A DHCP failure was found; restarting the DHCP service restored IP assignments.
- Home Wi‑Fi slow for video calls: User sees high latency and jitter. Steps: check number of devices streaming, run speed test, move closer to AP or switch to 5 GHz, check for interference from neighbor networks. Result: switching channel and limiting background downloads reduced jitter.
- Office VPN connectivity: Remote workers can’t connect to VPN. Steps: confirm internet connectivity, check VPN server logs, verify firewall rules and certificate validity, test from another network. Root cause: expired VPN certificate; renewing it fixed connections.
- Online exam failure in an exam center: Intermittent disconnects during exams. Steps: monitor bandwidth usage, check for spikes during exam time, verify QoS prioritization for exam application. Action: reserve bandwidth and apply QoS to stabilise connections.
- \[Link utilization (%) = (Throughput / Bandwidth) × 100\]
- \[Packet loss rate (%) = (Lost packets / Total sent packets) × 100\]
- \[Total latency = propagation delay + transmission delay + queuing delay + processing delay\]
- \[Bandwidth‑Delay Product (bits) = Bandwidth (bits/sec) × RTT (seconds)\]
- \[Approximate jitter (simple) = average of |delay_i - delay_(i-1)| over samples\]
Emerging and Related Concepts
Emerging and Related Concepts
Key Point: Bandwidth (bits/sec) = Size of data (bits) / Time taken (seconds)
Emerging and related concepts in computer networks introduce new architectures, services and technologies that extend traditional networking to support smart devices, massive data, low-latency applications and improved security. These concepts are increasingly important in modern ICT and are directly relevant to applications such as smart homes, e-health, real-time analytics and multimedia streaming.
1. Internet of Things (IoT)
IoT is a network of physical objects (sensors, actuators, appliances, vehicles) that collect and exchange data over the internet. IoT architecture is typically layered: devices/sensors at the bottom, edge/fog processing in the middle and cloud services and applications at the top. Key goals: remote monitoring, automation and context-aware services.
2. Cloud Computing
Cloud computing provides on-demand computing resources (storage, processing, applications) over the internet. Service models: IaaS (Infrastructure as a Service), PaaS (Platform as a Service) and SaaS (Software as a Service). Deployment models include public, private and hybrid clouds. Clouds enable scalable services, pay-as-you-go billing and centralized management.
3. Mobile and Ubiquitous Computing
Mobile computing focuses on access to network services from mobile devices (phones, tablets). Ubiquitous computing extends this to seamless, always-available computing embedded in environments. Challenges include mobility management, handoff, battery efficiency and context awareness.
4. Edge and Fog Computing
To reduce latency and bandwidth use, some processing is moved closer to data sources. Edge computing performs processing on or near devices; fog computing uses intermediate nodes (routers, gateways) for pre-processing. These complement cloud computing for time-critical applications (e.g., autonomous vehicles, industrial control).
5. Big Data and Analytics
Modern networks produce huge volumes of data. Big data technologies (distributed storage, parallel processing frameworks) analyze this data to extract patterns and support decision-making. Networked systems must support collection, transfer and processing of large datasets efficiently.
6. Artificial Intelligence (AI) and Machine Learning (ML)
AI/ML are used to make networks smarter: traffic prediction, anomaly detection (security), adaptive routing and QoS management. ML models may run in the cloud, at the edge or in hybrid setups.
7. Content Delivery Networks (CDN) and Multimedia Streaming
CDNs cache content at distributed servers to reduce latency and handle high loads for media streaming and web content. They are crucial for scalable, high-quality multimedia delivery.
8. Network Security and Privacy
Emerging network uses raise security and privacy concerns. Concepts include encryption, VPNs, firewalls, intrusion detection systems, authentication mechanisms and techniques specific to IoT (lightweight crypto) and cloud security controls.
9. Blockchain and Decentralized Services
Blockchain provides a decentralized ledger for secure, tamper-evident transactions. It can be applied to networked systems for secure identity management, decentralized IoT coordination and supply-chain tracking.
10. Standards and Interoperability
New devices and services require protocols and standards (IPv6, MQTT for IoT, HTTP/2, QUIC) to ensure interoperability, scalability and efficient use of network resources.
Summary: Emerging concepts extend traditional networking by bringing computing closer to data sources (edge/fog), enabling massive scale and flexibility (cloud, CDN), connecting everyday objects (IoT) and applying intelligence (AI/ML). Combined, they support new real-life services but also introduce challenges in latency, bandwidth, security and standardization.
- Smart home system: smart bulbs, thermostats and security cameras connected via Wi-Fi and controlled through a cloud-based mobile app (IoT + Cloud).
- Video streaming using a CDN: Netflix uses distributed servers close to users to reduce buffering and latency.
- Autonomous vehicle: sensors and cameras process data at the edge for instant decisions while non-urgent telemetry is sent to the cloud for analytics.
- Health monitoring wearable: a smartwatch sends heart-rate data to a smartphone (edge) which forwards summarized data to cloud servers for long-term analytics and alerts.
- Ride-sharing app: mobile clients, cloud-hosted backend for matching and real-time routing; ML predicts demand and dynamic pricing.
- \[Bandwidth (bits/sec) = Size of data (bits) / Time taken (seconds)\]
- \[Transmission delay = Packet size (bits) / Bandwidth (bits/sec)\]
- \[Propagation delay = Distance (meters) / Propagation speed (meters/sec) (propagation speed ≈ 2x10^8 m/s in copper/optical media varies)\]
- \[Latency (approx) = Transmission delay + Propagation delay + Processing delay + Queuing delay\]
- \[Bandwidth-Delay Product = Bandwidth (bits/sec) × Round-Trip Time (sec) (indicates the amount of data 'in flight')\]
- \[Throughput = Total useful data transferred (bits) / Total time (sec)\]
Key Concepts
- Network
- A collection of two or more devices connected to share resources and communicate.
- Node
- Any device (computer, printer, router) connected to a network that can send or receive data.
- Host
- A networked device that provides or uses services, typically a computer or server with an IP address.
- Client
- A device or program that requests services or resources from a server on the network.
- Server
- A powerful computer or program that provides services (like files, web pages, email) to clients.
- Peer-to-peer (P2P)
- A network model where each node can act as both client and server, sharing resources directly.
- Client-server
- A network model where clients request services provided by dedicated servers.
- LAN (Local Area Network)
- A network covering a small geographic area like a building or campus.
- WAN (Wide Area Network)
- A network that covers a large geographic area, often connecting multiple LANs.
- MAN (Metropolitan Area Network)
- A network that covers a city or a large campus, larger than a LAN but smaller than a WAN.
- Protocol
- A set of rules that governs how data is formatted, transmitted, and received across a network.
- TCP/IP
- A suite of communication protocols (Transmission Control Protocol and Internet Protocol) used for the internet and networks.
- HTTP (HyperText Transfer Protocol)
- The protocol used for transferring web pages from servers to browsers.
- FTP (File Transfer Protocol)
- A protocol used to transfer files between computers over a network.
- SMTP (Simple Mail Transfer Protocol)
- A protocol used to send outgoing email from a client to a mail server and between servers.
- DNS (Domain Name System)
- A system that translates human‑readable domain names into IP addresses computers use.
- Router
- A network device that forwards data packets between different networks, directing traffic to its destination.
- Switch
- A networking device that connects devices within a LAN and forwards data to the specific destination device.
- Modem
- A device that converts digital signals from a computer to analog signals for transmission over phone or cable lines (and vice versa).
- IP address
- A unique numerical label assigned to each device on a network to identify and locate it (IPv4 or IPv6).
Practice Questions
-
Define a computer network and state two reasons why networks are essential. / कंप्यूटर नेटवर्क को परिभाषित कीजिए और नेटवर्क के आवश्यक होने के दो कारण बताइए।
Show answer
A computer network is a collection of two or more interconnected devices that communicate and share resources using protocols; it enables resource sharing and communication. / कंप्यूटर नेटवर्क दो या अधिक परस्पर जुड़े उपकरणों का समूह है जो प्रोटोकॉल का उपयोग करके संचार करते और संसाधन साझा करते हैं; यह संसाधन साझाकरण और संचार सक्षम करता है।
-
Differentiate between LAN and WAN on the basis of coverage and ownership. / कवरेज और स्वामित्व के आधार पर LAN और WAN में अंतर बताइए।
Show answer
A LAN covers a small area like a building with high speed (often privately owned), while a WAN spans countries/continents over large distances (e.g., the Internet). / LAN किसी भवन जैसे छोटे क्षेत्र को उच्च गति से कवर करता है (प्रायः निजी स्वामित्व), जबकि WAN बड़ी दूरियों पर देशों/महाद्वीपों में फैलता है (जैसे इंटरनेट)।
-
Compare bus and star topologies with respect to a single point of failure. / एकल विफलता बिंदु के संदर्भ में बस और स्टार टोपोलॉजी की तुलना कीजिए।
Show answer
In a bus topology, failure of the central backbone cable disables the whole network; in a star topology, the central hub/switch is the single point of failure, but a single node's failure does not affect others. / बस टोपोलॉजी में केंद्रीय बैकबोन केबल की विफलता पूरे नेटवर्क को ठप कर देती है; स्टार में केंद्रीय हब/स्विच एकल विफलता बिंदु है, परंतु एक नोड की विफलता अन्य को प्रभावित नहीं करती।
-
Name the seven layers of the OSI model in order from top to bottom. / OSI मॉडल की सात परतों के नाम ऊपर से नीचे क्रम में बताइए।
Show answer
Application, Presentation, Session, Transport, Network, Data Link, Physical. / Application, Presentation, Session, Transport, Network, Data Link, Physical।
-
Differentiate between simplex, half-duplex and full-duplex transmission modes with one example each. / सिम्प्लेक्स, हाफ-डुप्लेक्स और फुल-डुप्लेक्स संचरण मोड में एक-एक उदाहरण सहित अंतर बताइए।
Show answer
Simplex is one-way (radio broadcast), half-duplex is two-way but not simultaneous (walkie-talkie), full-duplex is two-way simultaneously (telephone call). / सिम्प्लेक्स एक-दिशा (रेडियो प्रसारण), हाफ-डुप्लेक्स द्वि-दिशा पर एक साथ नहीं (वॉकी-टॉकी), फुल-डुप्लेक्स द्वि-दिशा एक साथ (टेलीफोन कॉल)।
-
How does a switch differ from a hub, and at which OSI layer does each operate? / स्विच, हब से कैसे भिन्न है, और प्रत्येक किस OSI परत पर कार्य करता है?
Show answer
A hub is a Layer 1 multiport repeater that broadcasts to all ports (one collision domain), while a switch is a Layer 2 device that forwards frames by MAC address creating separate collision domains per port. / हब एक Layer 1 मल्टीपोर्ट रिपीटर है जो सभी पोर्ट पर प्रसारण करता है (एक टकराव डोमेन), जबकि स्विच एक Layer 2 उपकरण है जो MAC पते से फ्रेम अग्रेषित करता है और प्रति पोर्ट अलग टकराव डोमेन बनाता है।
-
A file of 800 megabits is transferred over a 100 Mbps link. Calculate the transmission time. / 100 Mbps लिंक पर 800 मेगाबिट की फ़ाइल स्थानांतरित होती है। संचरण समय की गणना कीजिए।
Show answer
Transmission time = File size / Bandwidth = 800 Mb / 100 Mbps = 8 seconds. / संचरण समय = फ़ाइल आकार / बैंडविड्थ = 800 Mb / 100 Mbps = 8 सेकंड।
-
Divide 192.168.1.0/24 into four equal subnets: state the new prefix and usable hosts per subnet. / 192.168.1.0/24 को चार समान सबनेट में विभाजित कीजिए: नया प्रीफ़िक्स और प्रति सबनेट उपयोगी होस्ट बताइए।
Show answer
Borrow 2 bits to get /26 (2^2 = 4 subnets); usable hosts per subnet = 2^(32-26) - 2 = 62. / /26 पाने हेतु 2 बिट उधार लें (2^2 = 4 सबनेट); प्रति सबनेट उपयोगी होस्ट = 2^(32-26) - 2 = 62।
Related Laws & Principles
Explore allFoundational laws & principles connected to this chapter — tap to open in the Laws Explorer.