Overview
Introduction: This chapter introduces the fundamentals of computer networks — systems that connect two or more computers to share resources, exchange information and provide services. It covers basic concepts, components, topologies, transmission modes and media, common protocols and standards, addressing, and network devices. Importance: Understanding computer networks is essential because modern computing is network-centric. Networks enable internet access, email, web services, cloud computing, online collaboration and distributed applications. Knowledge of networking helps students understand how data travels, how devices communicate, and how to design, troubleshoot and secure simple networks. Key themes: The chapter emphasizes: (1) types of networks (LAN, WAN, MAN, PAN), (2) network topologies (bus, star, ring, mesh, tree), (3) transmission modes (simplex, half-duplex, full-duplex) and media (guided and unguided), (4) layered models (OSI and TCP/IP) and the role of protocols, (5) addressing and routing basics (IP addresses, DNS), (6) network devices (router, switch, hub, modem, repeater), (7) common protocols and services (HTTP, FTP, SMTP, DNS, DHCP), (8) packet vs circuit…
Learning Objectives
- Define computer network and related terms such as node, link, and protocol.
- Explain types of networks (PAN, LAN, MAN, WAN) with their characteristics and typical use cases.
- Compare network topologies (bus, star, ring, mesh, hybrid) in terms of layout, advantages, and disadvantages.
- Describe transmission media (twisted pair, coaxial, optical fiber, wireless) and distinguish guided vs unguided media.
- List common network devices (NIC, hub, switch, router, bridge, modem, repeater) and explain their functions.
- Explain the OSI and TCP/IP models by identifying each layer and summarizing its primary functions.
- Differentiate between circuit switching and packet switching and give examples of each.
- Explain basic IP addressing (IPv4), including address structure, classes, and the concept of subnetting.
Topics in this chapter
18 topics · tap a topic title to jump straight to it.
Introduction to Computer Networks
Introduction to Computer Networks
Key Point: Data rate (bandwidth) units: 1 byte = 8 bits; 1 Mbps = 1,000,000 bits/s (sometimes 1,048,576 bits/s if using Mi prefix).
What is a Computer Network?
A computer network is a collection of two or more interconnected devices (computers, printers, routers, switches, smartphones, etc.) that share resources and communicate using defined rules called protocols. Networks enable data exchange, resource sharing (files, printers, internet), and distributed computing.
Basic Components
- Nodes/Hosts: Devices that use or provide network services (PCs, servers, phones).
- Links/Media: Physical (copper, fiber) or wireless (Wi‑Fi, microwave) channels that carry signals.
- Network Interface Card (NIC): Hardware enabling a device to connect to a network.
- Switches: Connect devices within a local network and forward frames based on MAC addresses.
- Routers: Connect different networks and forward packets based on IP addresses.
- Modems: Convert digital data to forms suitable for transmission over telephone/cable lines.
Network Types
- LAN (Local Area Network): Small geographic area like a home, school or office.
- MAN (Metropolitan Area Network): City-wide network.
- WAN (Wide Area Network): Covers large geographic areas; the Internet is the largest WAN.
- PAN (Personal Area Network): Very small area around a person (Bluetooth devices).
Topologies (Logical/Physical)
Common physical layouts: bus, star, ring, mesh, and tree. Choice affects cost, performance, reliability and fault tolerance.
Protocols and Models
Protocols are rules for communication. Important protocol suite: TCP/IP (Internet Protocol Suite). Conceptual models: OSI (7 layers) and TCP/IP (4 layers) — they organize responsibilities such as physical transmission, routing, reliable transport, and application-level services (HTTP, FTP, SMTP).
Addressing and Naming
Every network device has identifiers: MAC address (hardware, local) and IP address (network-level, routable). DNS maps human-readable domain names to IP addresses.
Modes of Transmission
- 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, modern Ethernet).
Performance Metrics
- Bandwidth: Maximum data rate of a link (bps).
- Throughput: Actual achieved data transfer rate.
- Latency/Delay: Time taken for data to travel from source to destination.
- Jitter: Variation in packet delay (important for real-time apps).
- Packet loss: Percentage of packets lost during transmission.
Uses and Services
Networks provide internet access, email, file and print sharing, remote login, multimedia streaming, online gaming, cloud services and IoT connectivity.
Advantages and Challenges
- Advantages: Resource sharing, centralized data, communication, scalability.
- Challenges: Security risks (unauthorized access, malware), congestion, privacy, need for management and maintenance.
Simple Example Flow
When a student opens a webpage: the browser (client) sends an HTTP request to the web server's IP. Routers forward packets across networks. The server responds with webpage data; TCP ensures reliable delivery and the browser renders the page.
- Home Wi‑Fi network: multiple devices (phone, laptop, smart TV) connect to a router to share one internet connection and a home printer.
- School LAN: PCs in a computer lab connected to a switch and server to share files, printers and internet access.
- Video conferencing: Real‑time audio and video use low latency, adequate bandwidth, and protocols like RTP over UDP for performance.
- Online gaming: Requires low latency (ping), stable throughput, and often uses client‑server or peer‑to‑peer models.
- Internet browsing: Browser uses HTTP/HTTPS over TCP/IP to request web pages from remote servers.
- IoT smart home: Sensors and smart devices communicate (often wirelessly) with a hub or cloud service to automate tasks.
- \[Data rate (bandwidth) units: 1 byte = 8 bits\]\[1 Mbps = 1,000,000 bits/s (sometimes 1,048,576 bits/s if using Mi prefix).\]
- \[Transmission delay = Packet size (bits) / Bandwidth (bits per second)\]\[Example: 10,000 bits over 1 Mbps -> 0.01 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 (bps) × Round‑Trip Time (s)\]\[It equals the amount of data 'in flight'.\]
- \[Throughput ≤ Bandwidth\]\[actual throughput = (Total useful data delivered) / Time taken.\]
- \[Utilization = Throughput / Bandwidth (expressed as fraction or %).\]
Types of Networks
Types of Networks
Key Point: Data transfer time = File size (bits) / Bandwidth (bits per second). Example: 100 MB = 800 million bits; over 100 Mbps link: 800,000,000 / 100,000,000 = 8 seconds.
What is a Network? A computer network is a collection of two or more devices (computers, printers, routers, smartphones) connected to share data, resources and services. Networks are classified by size, geography, ownership and architecture. Below are the most common types studied in Class 11.
Classification by Geographical Scale
- PAN (Personal Area Network): Very short range (up to ~10 m). Connects personal devices (smartphone, laptop, Bluetooth headset). Typically wireless (Bluetooth, USB). Low cost and low power.
- LAN (Local Area Network): Covers a small area such as a home, office or school (tens to hundreds of meters). High data rates (100 Mbps to multi-Gbps). Uses switches, routers and Ethernet or Wi‑Fi. Example: school computer lab network.
- CAN (Campus/Controller Area Network) or Campus Area Network: Connects multiple LANs within a limited geographic area like a university or corporate campus (hundreds of meters to a few kilometers). Higher management/administration and faster backbone links.
- MAN (Metropolitan Area Network): Spans a city or a large campus (a few km to ~50 km). Often used by ISPs to connect customer LANs, municipal Wi‑Fi and telecommunication networks.
- WAN (Wide Area Network): Covers large geographical areas — regions, countries or global. The Internet is the largest WAN. Uses leased lines, fiber optics, satellites and long‑distance routing. Speeds and ownership are varied; costs and complexity are higher.
Classification by Architecture
- Client-Server Network: Central server provides resources/services; clients request them. Common in businesses and web services.
- Peer-to-Peer (P2P): Each node can act as client and server; simple home or small office networks often use this.
Classification by Transmission Medium
- Wired: Ethernet (copper), fiber optics — reliable and secure, usually higher throughput.
- Wireless: Wi‑Fi, Bluetooth, cellular (3G/4G/5G), satellite — offers mobility and ease of deployment.
Key Characteristics to Compare Networks: coverage area (range), typical data rate (speed), ownership/administration (private vs public), cost of setup and maintenance, reliability and latency.
Devices & Protocols: Hubs, switches, routers, access points, modems. Common protocols: Ethernet, IEEE 802.11 (Wi‑Fi), TCP/IP (Internet), Bluetooth.
- PAN: Bluetooth headset connected to a smartphone; USB cable between phone and laptop.
- LAN: Office network where multiple PCs share a printer and central file server using Ethernet and a switch.
- CAN: University campus network linking departmental LANs with a campus backbone and central data center.
- MAN: City-wide public Wi‑Fi or an ISP network connecting multiple neighborhoods.
- WAN: The Internet connecting data centers across countries; a company with branch offices connected over leased lines or VPNs.
- \[Data transfer time = File size (bits) / Bandwidth (bits per second)\]\[Example: 100 MB = 800 million bits\]\[over 100 Mbps link: 800,000,000 / 100,000,000 = 8 seconds.\]
- \[Propagation delay = Distance (meters) / Signal speed (m/s). (Signal speed in fiber ≈ 2 × 10^8 m/s.)\]
- \[Bandwidth-Delay Product = Bandwidth (bits/s) × Round-Trip Time (s). (Shows bytes 'in flight' on the link.)\]
- \[Throughput ≈ Useful data transferred / Total time taken. (Practical throughput ≤ link bandwidth due to overheads.)\]
- \[Channel capacity (Shannon) C = B × log2(1 + S/N) where B = bandwidth (Hz)\]\[S/N = signal-to-noise ratio (linear).\]
Network Topologies
Network Topologies
Key Point: Number of direct links in a full mesh network of n nodes: L = n(n - 1) / 2
What is a network topology? Network topology is the arrangement or mapping of various elements (links, nodes, switches, hubs) of a computer network. It describes how devices are connected and how data flows between them. Topologies can be physical (actual layout of cables and devices) or logical (how data travels logically).
Common topologies
- Bus topology: A single central cable (backbone) to which all devices are attached. Data sent by a device travels along the backbone and is received by all nodes; only the intended recipient processes it.
- Star topology: All devices connect individually to a central device (hub, switch, or router). Communication between devices goes through the central device.
- Ring topology: Each device is connected to two other devices, forming a closed loop. Data typically travels in one direction (token passing or circulating frames).
- Mesh topology: Every node has a direct connection to every other node (full mesh). Partial mesh connects some nodes directly. Mesh provides multiple redundant paths.
- Tree (hierarchical) topology: A set of star-configured networks connected to a linear bus backbone. It forms a hierarchical structure (root, branches, leaves).
- Hybrid topology: A combination of two or more different topologies (for example, star-ring or star-bus) used to meet specific network needs.
Advantages and disadvantages (summary)
- Bus: Low cable cost; simple to extend. But performance degrades with more nodes; single backbone is a single point of failure.
- Star: Easy to install, isolate faults, and add/remove nodes. Central device failure brings network down; more cabling than bus.
- Ring: Predictable performance under moderate load, easy to install. A single node or link failure can disrupt the entire ring unless dual/ring redundancy is used.
- Mesh: Highly reliable and fault tolerant because of multiple paths; good for critical networks. High cost and complex cabling/management for full mesh.
- Tree: Scalable and easy to manage; suitable for large networks. Root/backbone failure affects large segments; cabling cost can be high.
- Hybrid: Flexible and can be optimized for performance/reliability. Complexity and cost depend on combined topologies.
Selection criteria: Choose a topology based on cost, scalability, reliability, ease of installation and maintenance, and the physical layout of the environment.
Logical vs physical topology: The physical topology is the real cable and device layout. The logical topology describes how data moves over the network irrespective of physical connections (for example, Ethernet on a switched star has a star physical topology but can behave logically like a bus).
Practical notes: Modern LANs commonly use star topology with switches. Wide area networks (WANs) or backbone networks may use partial mesh or hybrid topologies for redundancy. Wireless networks often form star (AP-centric) or mesh (wireless mesh) topologies depending on design.
- Home network (star): All devices (laptops, phones, smart TVs) connect to a Wi‑Fi router or switch—central device manages traffic.
- Office LAN (star + tree hybrid): Floor switches (stars) connected to a core switch (forming a tree/hierarchical structure).
- Early Ethernet (bus): 10BASE2/10BASE5 coaxial cable where computers tapped into a single coax backbone.
- Token Ring / SONET (ring): Telecom rings or legacy IBM Token Ring networks using a ring logical topology.
- Internet backbone (partial mesh): Major ISPs interconnect at multiple points providing redundant routes between major nodes.
- Wireless mesh networks: Community or sensor networks where nodes forward data for neighbours, creating resilient multi-hop paths.
- \[Number of direct links in a full mesh network of n nodes: L = n(n - 1) / 2\]
- \[Number of links required to connect n nodes in a star (point-to-point to central node): L = n - 1\]
- \[Number of links in a simple ring of n nodes (each node connected to two neighbours): L = n\]
- \[Minimum number of links to form a connected network (any tree topology): L = n - 1\]
Transmission Media
Transmission Media
Key Point: Relationship between wavelength and frequency: c = f · λ, where c ≈ 3×10^8 m/s (speed of light in vacuum); f = frequency, λ = wavelength.
Transmission media are the physical pathways through which data signals travel from a sender to a receiver in a computer network. They determine the rate, distance, reliability and security of communication. Transmission media are broadly classified into guided (wired) media and unguided (wireless) media.
Guided (Wired) Media
- Twisted Pair Cable (UTP/STP): pairs of insulated copper wires twisted together to reduce electromagnetic interference. Common in telephone networks and Ethernet (RJ-45). Advantages: low cost, easy to install. Disadvantages: limited bandwidth and distance, susceptible to EMI.
- Coaxial Cable: central conductor, insulating layer, metallic shield and outer jacket (used for cable TV and some broadband). Higher bandwidth and better shielding than twisted pair but bulkier.
- Optical Fiber: glass or plastic fibers that transmit light pulses. Types: single-mode (long distance, high bandwidth) and multi-mode (shorter distance). Advantages: very high bandwidth, low attenuation, immune to EMI, secure. Disadvantages: higher cost and special handling/connectors (SC, LC).
Unguided (Wireless) Media
- Radio Waves: used for Wi-Fi, Bluetooth, mobile phones. Good for short to medium distances and area coverage; penetrates obstacles depending on frequency.
- Microwave (Line-of-Sight): used for point-to-point links and satellite uplinks. High frequency, high bandwidth, requires clear line-of-sight.
- Infrared: short-range, line-of-sight (e.g., TV remotes, some local links). Limited range and blocked by obstacles.
- Satellite: uses microwave frequencies to communicate via space satellites; useful for wide-area coverage but higher latency.
Key Physical Characteristics
- Bandwidth: frequency range the medium can carry — determines possible data rate.
- Attenuation: loss of signal strength with distance; expressed in dB/km.
- Noise & Interference: external or internal signals that degrade signal quality (EMI, crosstalk).
- Latency: propagation delay depending on medium and distance (speed of light in medium).
- Cost & Installation: material and maintenance costs, complexity of installation.
- Security: wired media are generally harder to tap than wireless; fiber is most secure.
How to choose a medium
Selection depends on required data rate (bandwidth), distance, environment (EMI presence, physical obstacles), budget and desired security. For example, use UTP for typical office LANs, fiber for backbone/ISP links and long-haul/high-bandwidth needs, and wireless for mobility and last-mile access.
Common Connectors and Standards
- UTP: RJ-45 (Ethernet standards: Cat5e, Cat6, Cat6a)
- Coaxial: BNC or F-type (cable TV)
- Fiber: SC, ST, LC connectors; standards like 100BASE-FX, Gigabit Ethernet over fiber
- Wireless: IEEE 802.11 (Wi-Fi), Bluetooth (IEEE 802.15), cellular standards (3G/4G/5G)
Understanding transmission media helps in designing networks that meet performance, reliability and cost requirements.
- Office LAN using UTP (Cat6) cables connected to switches and computers (Ethernet).
- Cable TV and some broadband internet delivered over coaxial cable to homes.
- Fiber-to-the-home (FTTH) or ISP backbone links using single-mode optical fiber for high-speed internet.
- Wi‑Fi providing wireless connectivity in homes, schools and cafes (IEEE 802.11).
- Bluetooth connecting wireless peripherals (headphones, keyboards) over short distances.
- Satellite TV and remote-area internet where terrestrial links are not available.
- \[Relationship between wavelength and frequency: c = f · λ\]\[where c ≈ 3×10^8 m/s (speed of light in vacuum)\]\[f = frequency, λ = wavelength.\]
- \[Attenuation in decibels: A(dB) = 10 · log10(P_in / P_out) (or link loss = -10 · log10(P_out / P_in)).\]
- \[Friis transmission equation (ideal free-space path loss): P_r = P_t · G_t · G_r · (λ / (4·π·R))^2\]\[where P_r = received power\]\[P_t = transmitted power\]\[G_t/G_r = antenna gains, λ = wavelength\]\[R = distance.\]
- \[Shannon capacity (maximum theoretical data rate with noise): C = B · log2(1 + S/N)\]\[where C = capacity (bits/s)\]\[B = bandwidth (Hz)\]\[S/N = signal-to-noise ratio (linear).\]
- \[Nyquist maximum bit rate for a noiseless channel: R_max = 2 · B · log2(M)\]\[where B = bandwidth (Hz) and M = number of discrete signal levels.\]
Modes of Data Transmission
Modes of Data Transmission
Key Point: Transmission time (s) = Data size (bits) / Bit rate (bits/s). Example: 10,000 bits over 1 Mbps → 10,000 / 1,000,000 = 0.01 s.
Modes of Data Transmission
Data transmission describes how digital information travels between devices. Two commonly taught classifications are by direction (simplex, half‑duplex, full‑duplex) and by physical wiring/timing (serial vs parallel). Each mode has specific behaviour, advantages and typical uses.
1. Directional Modes
- Simplex: Communication in one direction only. Sender → Receiver. Receiver cannot send data back on the same channel. Advantages: simple and inexpensive. Disadvantages: not interactive.
- Examples: TV broadcast, keyboard → CPU (one‑way).
- Half‑duplex: Both ends can transmit, but not at the same time. Communication alternates directions on the same channel. Useful where two‑way communication is needed but simultaneous talking is not required.
- Examples: Walkie‑talkies, CB radios, old Ethernet hubs.
- Full‑duplex: Both ends can transmit simultaneously on the same channel (or on separate subchannels). Provides concurrent two‑way communication and higher effective throughput.
- Examples: Telephone calls, modern Ethernet (switches), many Internet connections.
2. Serial vs Parallel Transmission
- Serial transmission: Bits are sent sequentially over a single wire or pair. Simpler wiring, lower cost, suitable for long distances and high speeds (modern high‑speed links are serial).
- Parallel transmission: Several bits are sent simultaneously over multiple wires (e.g., an 8‑bit data bus uses 8 lines). Higher data transfer per clock cycle but suffers from timing skew and is practical only for short distances (inside computers or short cables).
- Examples: Old printer parallel ports (parallel); USB, SATA, Gigabit Ethernet, PCIe (serial).
3. Timing: Synchronous vs Asynchronous (brief)
Synchronous transmission requires a shared clock or timing so bits are sent in a continuous stream (used in many serial links). Asynchronous sends data in frames/characters with start and stop bits; useful for intermittent character‑based links (e.g., RS‑232 serial ports).
Key tradeoffs
- Simplex: simplest but one‑way only.
- Half‑duplex: two‑way but contention for channel time; lower effective throughput than full‑duplex.
- Full‑duplex: highest usability; requires either separate channels/frequencies or echo cancellation.
- Serial vs Parallel: serial = fewer wires, longer distance, high clock rates; parallel = more wires, higher per‑cycle throughput locally, but timing/skew limits range.
Understanding modes of transmission helps choose appropriate hardware and protocols for a network or device interface.
- Simplex: FM radio or TV broadcasting — station transmits, audience only receives.
- Simplex (device): Keyboard to CPU — keystrokes go to computer; keyboard does not receive data back on same line.
- Half‑duplex: Walkie‑talkies — one person speaks while others listen; then they switch to reply.
- Half‑duplex (network): Older Ethernet using a hub — devices take turns to transmit on the shared medium.
- Full‑duplex: Telephone conversation — both parties can talk and listen simultaneously.
- Full‑duplex (network): Modern switched Ethernet and many full‑duplex serial links where TX and RX are separate.
- \[Transmission time (s) = Data size (bits) / Bit rate (bits/s)\]\[Example: 10,000 bits over 1 Mbps → 10,000 / 1,000,000 = 0.01 s.\]
- \[Bit rate (bits/s) = Baud rate (symbols/s) × log2(M) where M = number of distinct signal levels per symbol\]\[Example: 2400 baud with 4 levels (M=4) → 2400 × log2(4) = 2400 × 2 = 4800 bits/s.\]
- \[Effective parallel throughput ≈ n × clock_rate (bits/s)\]\[where n = number of parallel data lines (ignoring overhead and skew)\]\[Example: 8 lines at 10 MHz → ≈ 8 × 10,000,000 = 80 Mbps peak.\]
Network Devices
Network Devices
Key Point: Transmission delay (seconds) = Packet size (bits) / Bandwidth (bits/second).
What are Network Devices?
Network devices are hardware components that connect computers and other devices to form a computer network. They forward, filter, amplify or translate data so that devices can communicate reliably and efficiently.
Common network devices and their roles (with OSI-layer mapping):
- Network Interface Card (NIC) — interface between a host and the physical network. (OSI: Physical + Data Link). Provides MAC address and converts between host bus and network signals.
- Repeater — regenerates and amplifies signals to extend physical reach. (OSI: Physical).
- Hub — multiport repeater that broadcasts incoming frames to all ports. Simple and inexpensive but not intelligent. (OSI: Physical).
- Bridge — connects two LAN segments and filters traffic by MAC addresses to reduce collisions. (OSI: Data Link).
- Switch — multiport bridge that forwards frames only to the destination port using a MAC table; reduces collisions and supports full-duplex. (OSI: Data Link).
- Router — forwards packets between different networks using IP addresses and routing tables; chooses best path. (OSI: Network).
- Gateway — translates between different protocols or architectures (e.g., mail gateway, protocol gateway). Can operate at multiple layers.
- Modem — modulates digital signals to analog for transmission over phone lines (and demodulates on receive). Used by ISPs to connect homes. (Physical).
- Wireless Access Point (AP) — provides wireless connectivity (Wi‑Fi) to a wired network; may include bridging/switching features. (Physical + Data Link).
- Firewall — enforces security policies by filtering traffic (packet filtering, stateful inspection, application layer). (Typically Network/Transport/Application).
- Proxy Server — intermediates client requests to external servers for caching, content filtering or anonymity. (Application).
- Load Balancer — distributes incoming network/application traffic across multiple servers for high availability and performance. (Network/Application).
Key differences (short):
- Hub vs Switch: Hubs broadcast; switches forward to specific ports and maintain MAC tables.
- Switch vs Router: Switches operate in a LAN using MAC addresses; routers connect different networks using IP routing.
- Modem vs Router: Modem converts between analog and digital; router creates and manages a local network (often including NAT, DHCP).
Why devices matter: Proper selection affects bandwidth, latency, security and scalability. For example, replacing a hub with a switch reduces collisions and increases effective throughput; adding a router enables multiple LANs to communicate and reach the Internet.
Performance considerations: throughput, latency (delays), packet loss, and security features (firewalling, filtering) influence how devices are chosen and configured.
- Home network: A broadband modem from the ISP connects to a home router (which often includes a switch and wireless AP). Devices (PCs, phones) use NICs to connect to the router.
- School LAN: Managed switches connect classrooms and servers; a router connects the school LAN to the Internet; a firewall blocks unauthorized access.
- Office setup: Load balancer distributes web requests among several web servers; a proxy server caches web content to save bandwidth; access points provide Wi‑Fi for employees.
- ISP network: Repeaters or optical amplifiers extend signal over long distances; core routers forward traffic across the Internet backbone.
- \[Transmission delay (seconds) = Packet size (bits) / Bandwidth (bits/second).\]
- \[Propagation delay (seconds) = Distance (meters) / Propagation speed (≈ 2×10^8 m/s in copper/fiber).\]
- \[Total delay ≈ Transmission delay + Propagation delay + Queuing delay + Processing delay.\]
- \[Bandwidth conversion: 1 byte = 8 bits\]\[1 Mbps = 10^6 bits/s\]\[so 1 Mbps = 0.125 MB/s.\]
- \[Bandwidth–Delay Product = Bandwidth (bits/s) × RTT (s)\]\[This gives the amount of data 'in flight'.\]
Network Models
Network Models
Key Point: Transmission time (t_tx) = L / R, where L = data size in bits, R = link bandwidth in bits/second.
Overview
Network models are abstract frameworks that describe how data is transmitted, routed and received in a computer network. The two main reference models studied in Class 11 are the OSI reference model (7 layers) and the TCP/IP model (4 layers). Models standardize functions, enable interoperability, and separate concerns so designers can build and troubleshoot networks more easily.
OSI Reference Model (7 layers)
- 7. Application: Interface for end-user applications. Protocols: HTTP, FTP, SMTP, DNS. (Provides network services to apps.)
- 6. Presentation: Data representation, encryption, compression. Examples: SSL/TLS, JPEG, MPEG.
- 5. Session: Establishes, manages and terminates sessions (dialogs) between applications. Examples: RPC, NetBIOS.
- 4. Transport: End-to-end communication, reliability, flow and error control. Protocols: TCP (reliable), UDP (unreliable but fast). Concepts: ports, segmentation.
- 3. Network: Logical addressing and routing across networks. Protocols: IP, ICMP, OSPF. Concepts: IP addressing, routing, packet forwarding.
- 2. Data Link: Node-to-node data transfer on the same physical link; frame formation, MAC addressing, error detection. Protocols/standards: Ethernet (IEEE 802.3), PPP, ARP.
- 1. Physical: Physical medium and hardware (cables, fiber, wireless), bit-level transmission, voltages, connectors, repeaters, hubs.
TCP/IP Model (4 layers)
- Application layer: Combines OSI's Application, Presentation and Session. (HTTP, FTP, SMTP, DNS)
- Transport layer: TCP, UDP — provides end-to-end communication, ports, reliability.
- Internet layer: Equivalent to OSI Network layer. IP, ICMP — logical addressing (IP) and routing.
- Network Access (Link) layer: Combines OSI Data Link + Physical. Ethernet, Wi‑Fi, PPP.
Key concepts
- Encapsulation: At each layer data is wrapped with layer-specific headers (and sometimes trailers). Example: Application data -> TCP segment -> IP packet -> Ethernet frame -> bits on wire.
- Addressing: Physical (MAC) addresses are used on a link; logical (IP) addresses are used for routing across networks. Transport uses ports (socket = IP:port).
- Segmentation and reassembly: Large messages are split into segments/packets at transport/network layers and reassembled at receiver.
- Routing: Determining path from source to destination using routing protocols (OSPF, BGP) at Network/Internet layer.
- Services vs. Protocols: A service is what a layer offers to the layer above; a protocol is the set of rules two peers at the same layer use to communicate.
Why models matter (CBSE context)
They provide a common language for explaining how applications, transport, routing and physical transmission cooperate. When you troubleshoot, you map problems to layers (e.g., "can't browse" -> application or transport; "can't ping" -> network; "no link" -> data link/physical).
- Postal system analogy for OSI: Application = sender/recipient, Presentation = language/format conversion, Transport = postal service ensuring delivery, Network = routing between cities, Data Link = local post office sorting, Physical = trucks and roads.
- Web browsing: Browser (Application) uses HTTP -> TCP creates segments and ensures reliability -> IP routes packets across the Internet -> Ethernet/Wi‑Fi frames carry bits to the next hop.
- Client-Server model (network model type): A student (client) requests a webpage from school server; server responds with data. The client uses application-layer protocols (HTTP) and transport-layer (TCP) for reliable transfer.
- Peer-to-Peer model: File sharing where each computer acts as both client and server (BitTorrent).
- Streaming video: Bandwidth-Delay Product concept determines how much data must be 'in flight' (buffered) to keep playback smooth.
- \[Transmission time (t_tx) = L / R\]\[where L = data size in bits\]\[R = link bandwidth in bits/second.\]
- \[Propagation delay (t_prop) = d / s\]\[where d = distance (meters) and s = propagation speed (~2×10^8 m/s in fiber).\]
- \[Round-Trip Time (RTT) ≈ t_prop_out + t_prop_back + processing delays + transmission times (often simplified as 2×t_prop + transmission overhead).\]
- \[Bandwidth-Delay Product (BDP) = Bandwidth × RTT — the number of bits that can fill the link (important for buffer/window sizing).\]
- \[Stop-and-Wait utilization (efficiency) U = (L / R) / (RTT + L / R)\]\[L/R is frame transmission time\]\[Example: high RTT with small L yields low efficiency.\]
- \[Throughput ≈ WindowSize / RTT (for sliding window protocols when not limited by other factors).\]
Protocols and Standards
Protocols and Standards
Key Point: Throughput = (Useful data bits) / (Total time for transfer) — useful to measure effective data rate.
Definition: A protocol is a set of rules that governs how devices communicate (how data is formatted, transmitted, received and interpreted). A standard is a published specification, often created by a standards body, that formalizes protocols and ensures interoperability between products and vendors.
Core aspects of a protocol:
- Syntax – structure/format of data (packet formats, headers).
- Semantics – meaning of each field and control information (what actions to take on receipt).
- Timing – speed and sequencing (when to send, timeouts, retries).
Protocol vs Standard:
- Protocol = rules for communication (e.g., how to do a three-way handshake).
- Standard = widely accepted, documented specification usually set by a body (e.g., IEEE 802.11 for Wi‑Fi).
- A protocol can be part of a standard; a standard may define several protocols or profile existing ones.
Layered models: Protocols are normally organized in layers so each layer performs a distinct role. Two common models:
- OSI model (7 layers): Physical, Data Link, Network, Transport, Session, Presentation, Application. Each layer has its own protocols (e.g., Ethernet at Data Link, IP at Network, TCP at Transport).
- TCP/IP model (4 layers): Link, Internet, Transport, Application — the practical model used on the Internet.
Examples of widely used protocols and standards (mapped roughly to layers):
- Application: HTTP/HTTPS (web), SMTP/IMAP/POP3 (email), FTP/SFTP (file transfer), DNS (name resolution).
- Transport: TCP (reliable, connection‑oriented), UDP (unreliable, connection‑less).
- Network: IP (addressing & routing).
- Data Link & Physical: Ethernet (IEEE 802.3), Wi‑Fi (IEEE 802.11), Bluetooth.
- Security: SSL/TLS (secure transport), IPSec (network security).
How protocols work — simple examples:
- TCP three‑way handshake: Client sends SYN → Server replies SYN‑ACK → Client sends ACK. This establishes a reliable connection before data transfer.
- HTTP request/response: Browser (client) sends an HTTP GET request → Server responds with status and content → Client renders page. Over HTTPS the messages are encrypted with TLS.
- ARP (Address Resolution Protocol): Maps an IP address to a MAC address on a local network using request/reply broadcasts.
Why protocols & standards matter:
- Interoperability — devices from different manufacturers can work together.
- Compatibility & portability — software and services run across networks.
- Reliability & robustness — well‑tested behaviors (retransmission, error detection).
- Security — standardized methods to authenticate and encrypt traffic.
- Innovation & market growth — standards create common platforms for new services.
Standardization bodies: ISO, IEEE, IETF (Internet Engineering Task Force), ITU, W3C — they publish and maintain standards and RFCs used worldwide.
Summary: Protocols are the operational rules for communication; standards are formal, agreed specifications that adopt and document those rules so systems interoperate. Understanding protocols and standards is essential to design, troubleshoot and use networks effectively.
- Web browsing: HTTP (Application) + TCP (Transport) + IP (Network) + Ethernet/Wi‑Fi (Link/Physical).
- Sending email: SMTP to send, IMAP or POP3 to retrieve; DNS resolves mail server names; STARTTLS/SSL secures email connections.
- Video call / VoIP: SIP for session setup + RTP to carry audio/video (often over UDP for low latency).
- File transfer: FTP or SFTP — SFTP adds SSH security over the basic file transfer protocol.
- Local file sharing: Bluetooth uses a stack of protocols (L2CAP, RFCOMM) standardized by Bluetooth SIG.
- DNS lookup: Client asks a DNS resolver (UDP/TCP) which follows standardized query/response formats defined by IETF RFCs.
- \[Throughput = (Useful data bits) / (Total time for transfer) — useful to measure effective data rate.\]
- \[Bandwidth‑Delay Product (BDP) = Bandwidth (bits/sec) × Round‑Trip Time (sec) — number of bits 'in flight' in the network.\]
- \[Number of bits in the medium = Bandwidth × Propagation delay — bits simultaneously present on the link.\]
- \[Stop‑and‑Wait efficiency ≈ (Frame transmission time) / (Frame transmission time + 2 × Propagation delay) — shows inefficiency at high delay/bandwidth.\]
- \[Data rate (bps) = (Frame size in bits) / (Frame transmission time in seconds)\]
IP Addressing and Subnetting (Basics)
IP Addressing and Subnetting (Basics)
Key Point: Total addresses in subnet = 2^(32 - prefix_length)
What is an IP address?
An IP (Internet Protocol) address uniquely identifies a device on an IP network. In IPv4, an IP address is a 32-bit number usually written in dotted-decimal form as four octets (e.g. 192.168.1.10).
Binary structure
Each IPv4 address = 32 bits = 4 octets of 8 bits. Example: 192.168.1.10 = 11000000.10101000.00000001.00001010.
Network and Host portions
An IP address has two logical parts: the network portion (identifies the network) and the host portion (identifies the device on that network). Which bits belong to each portion is defined by the subnet mask or prefix length.
Subnet mask and CIDR
A subnet mask is a 32-bit number with contiguous 1s starting from the left that marks the network bits (e.g. 255.255.255.0). CIDR notation expresses the mask as a prefix length: /24 means 24 network bits (255.255.255.0).
Network address and broadcast address
- Network address: all host bits = 0 (found by bitwise AND of IP and mask).
- Broadcast address: all host bits = 1 (network OR inverted mask).
First usable host is network+1; last usable host is broadcast-1 (except some special cases).
Classful addressing (basic historical idea)
Originally IPv4 addresses were grouped in classes A, B, C (A: /8, B: /16, C: /24) for large, medium and small networks. Modern networks use classless addressing (CIDR) which allows flexible prefix lengths.
Subnetting (why and how)
Subnetting divides a large network into smaller logical networks (subnets). This reduces broadcast domain size, organizes hosts by function/location, and improves security and routing. Subnetting is done by borrowing bits from the host portion to create additional network bits.
Basic steps to subnet
1. Start with network and its prefix (for example 192.168.1.0/24).
2. Decide how many subnets (or how many hosts per subnet) you need.
3. Determine how many bits to borrow from host part: borrowed_bits = smallest s such that 2^s >= required subnets.
4. New prefix = original_prefix + borrowed_bits. Calculate new subnet mask and ranges.
5. For each subnet compute network address (IP & mask), broadcast (network | ~mask), and usable host range.
Important rules
- Number of addresses in a subnet = 2^(host_bits).
- Usable hosts per subnet (typical) = 2^(host_bits) - 2 (subtract network and broadcast).
- Number of subnets created by borrowing s bits = 2^s.
Bitwise operations used
Network = IP AND mask. Broadcast = Network OR (invert mask).
Summary
IP addressing and subnetting let you assign unique addresses, group devices into networks, and control traffic. Practice converting between binary and dotted-decimal, computing network/broadcast addresses, and splitting networks into subnets using the steps above.
- Example 1 — Find network, broadcast and usable range: Given IP 192.168.1.130 with mask /25 (255.255.255.128). /25 means network bits = 25, host bits = 7. Network increment = 2^(8-1)=128 so subnets: 192.168.1.0/25 and 192.168.1.128/25. IP 192.168.1.130 is in 192.168.1.128/25. Network = 192.168.1.128, broadcast = 192.168.1.255? (Correct broadcast is 192.168.1.255 for /25? No. For /25 network 192.168.1.128, host bits 7 => broadcast = 192.168.1.255? 128 + 127 = 255.) Usable hosts = 192.168.1.129 to 192.168.1.254.
- Example 2 — Subnet a /24 into four subnets: Start 192.168.1.0/24. Need 4 subnets => borrow 2 bits (2^2=4) → new prefix /26. Host bits now 6. Each subnet size = 2^6 = 64 addresses; usable hosts = 62. Subnet ranges: 192.168.1.0/26 (0–63), 192.168.1.64/26 (64–127), 192.168.1.128/26 (128–191), 192.168.1.192/26 (192–255).
- Example 3 — Convert and calculate: IP 10.10.5.37 with mask 255.255.255.192 (/26). Mask /26 → host bits 6. Convert last octet 37 → binary 00100101. Network last octet = 00100000 (32) → network = 10.10.5.32. Broadcast = 10.10.5.63. Usable hosts = 10.10.5.33 to 10.10.5.62.
- Real-life scenarios: Home router uses private IP 192.168.1.1/24 for all devices; a company splits its 10.0.0.0/16 network into subnets per department (HR, Sales, IT) to limit broadcasts and apply access rules; ISPs assign public IPv4 to customers and use NAT to map many private addresses to a single public IP.
- \[Total addresses in subnet = 2^(32 - prefix_length)\]
- \[Usable hosts per subnet = 2^(host_bits) - 2\]\[where host_bits = 32 - prefix_length (subtract 2 for network and broadcast)\]
- \[Number of subnets created by borrowing s bits = 2^s\]
- \[New prefix = original_prefix + borrowed_bits\]
- \[Network address = IP_address AND subnet_mask (bitwise AND)\]
- \[Broadcast address = Network_address OR (invert(subnet_mask))\]
Domain Name System (DNS) and DHCP
Domain Name System (DNS) and DHCP
Key Point: Number of usable IPv4 hosts in a subnet: usable_hosts = 2^(32 - prefix_length) - 2 (subtract network and broadcast addresses). Example: /24 → 2^(32-24)-2 = 256-2 = 254 usable hosts.
Overview
The Domain Name System (DNS) and Dynamic Host Configuration Protocol (DHCP) are two fundamental network services that make Internet use convenient. DNS translates human-friendly domain names into IP addresses that computers use. DHCP automatically assigns IP configuration (IP address, subnet mask, gateway, DNS servers) to hosts on a network, avoiding manual setup.
Domain Name System (DNS)
Purpose: Convert domain names (eg. www.example.com) into IP addresses (eg. 93.184.216.34) so applications and routers can locate services on the Internet.
Hierarchy and Components:
- Root level — represented by a dot (.) and served by root name servers.
- TLD (Top Level Domain) — examples: .com, .org, .in.
- Authoritative name servers — store DNS records for specific domains.
- Resolver (DNS client) — usually part of your OS/router; it sends queries and caches answers.
- Zones — portions of the DNS namespace managed by an authoritative server.
Common DNS record types:
- A — IPv4 address for a hostname.
- AAAA — IPv6 address.
- CNAME — canonical name (alias) pointing to another name.
- MX — mail exchange server for email routing.
- NS — nameserver record for a zone.
- PTR — reverse DNS (IP to name).
Resolution process (simplified, example: client wants www.example.com):
- Client asks its local resolver (often OS or router cache).
- If not cached, the resolver performs a recursive query to a DNS server. The server may query root servers, then TLD servers (for .com), then the authoritative server for example.com.
- Authoritative server returns the A record (IP address).
- Resolver caches the answer (for the time specified by TTL) and returns the IP to the client.
Query types: recursive (resolver asks server to return final answer) vs iterative (server returns best referral it knows; client follows referrals).
Caching: DNS responses have a TTL (time to live) value. Caching improves speed but may delay propagation of DNS changes.
Security note: DNS is susceptible to spoofing and cache poisoning. DNSSEC adds digital signatures to DNS records to provide data integrity.
Dynamic Host Configuration Protocol (DHCP)
Purpose: Automatically provide IP configuration to hosts joining a network so users don’t configure addresses manually.
Components:
- DHCP server — holds a pool of IP addresses and configuration parameters.
- DHCP client — requests configuration when it joins a network.
- DHCP relay/agent — forwards DHCP packets between clients and servers across different subnets.
Address allocation methods:
- Manual/Static — administrator assigns a permanent IP to the device (not typical DHCP behavior).
- Automatic — DHCP assigns a fixed IP from its pool permanently to a client.
- Dynamic — DHCP leases an IP for a limited time; addresses can be reused after lease expiry (most common).
DHCP process (DORA) — typical message sequence when a client joins a network:
- Discover — client broadcasts to find DHCP servers.
- Offer — server offers an IP address and configuration.
- Request — client requests the offered address (may pick one if multiple offers).
- Ack — server acknowledges and finalizes the lease; client configures its interface.
Other messages: NAK (negative acknowledgement), RELEASE (client gives up lease), INFORM (client has IP but asks for other options).
Leases and renewal: A DHCP lease has a lease time. The client will try to renew at a fraction of the lease (commonly T1 = 0.5 * lease). If renewal fails, at T2 (commonly 0.875 * lease) it begins rebinding with any server. If lease expires, client must stop using the address.
Common configuration options provided by DHCP: IP address, subnet mask, default gateway, DNS servers, lease time, domain name.
Practical interplay
A typical home setup: your ISP or home router runs a DHCP server that gives your laptop/phone an IP and DNS server addresses. When you type a website, your system uses the provided DNS servers to resolve the domain (DNS) and then uses the IP address to connect.
Key benefits
- DNS: human-friendly naming, distributed management, caching for speed.
- DHCP: centralized, automated IP management, reduces configuration errors.
Limitations & security
- DNS: cached stale records, vulnerability to spoofing (use DNSSEC and secure resolvers).
- DHCP: rogue DHCP servers can supply wrong configuration (use network controls, DHCP snooping).
- Browsing a website: You type www.wikipedia.org into a browser. The DNS resolver converts that name to an IP address, then your browser connects to that IP. Your device likely received the DNS server IP via DHCP from your router.
- Home network: When you join a Wi‑Fi network, your phone broadcasts a DHCP Discover; the router’s DHCP server offers an IP and gateway. The phone requests it and gets an ACK — now it can access the Internet.
- Office network with VLANs: A DHCP relay forwards client broadcasts from remote VLANs to a central DHCP server, so devices across subnets receive IP configuration without a local DHCP server.
- Changing webhost: When a website is moved to a new server, the administrator updates the DNS A record. Due to TTL and caching, some users may still reach the old IP until caches expire.
- \[Number of usable IPv4 hosts in a subnet: usable_hosts = 2^(32 - prefix_length) - 2 (subtract network and broadcast addresses)\]\[Example: /24 → 2^(32-24)-2 = 256-2 = 254 usable hosts.\]
- \[DNS cache expiry: expiration_time = fetch_time + TTL (seconds)\]\[The record is valid until expiration_time.\]
- \[Typical DHCP renewal timers: T1 (renewal) ≈ 0.5 × lease_time\]\[T2 (rebinding) ≈ 0.875 × lease_time\]\[If lease_time = 24 hours (86400 s)\]\[then T1 = 43200 s\]\[T2 = 75600 s.\]
Packet Switching vs Circuit Switching
Packet Switching vs Circuit Switching
Key Point: Transmission delay (per packet) = L / R, where L = packet length in bits, R = link bandwidth in bits/sec.
Overview
Packet switching and circuit switching are two fundamental techniques for sending data over a communication network.
Circuit Switching
- Definition: A dedicated communication path (circuit) is established between sender and receiver for the duration of the session. Resources (bandwidth) along that path are reserved exclusively.
- How it works (steps): call setup (reserve path) → data transfer over the reserved path → teardown (release resources).
- Characteristics: constant bandwidth per call, fixed delay once circuit is set up, blocking may occur if no free circuit available.
- Examples: traditional telephone (PSTN), dedicated leased lines.
Packet Switching
- Definition: Data is broken into packets. Each packet is routed independently through the network; packets from different sources share the same physical links.
- How it works (steps): segmentation → attach header (address, sequence) → routing & queuing at intermediate nodes → reassembly at destination.
- Characteristics: efficient bandwidth sharing, variable delay (queuing), packets may take different routes and arrive out of order, better scalability and robustness.
- Examples: the Internet (IP), LANs, most modern data networks.
Direct Comparison (key points)
- Resource allocation: circuit switching reserves resources; packet switching shares resources dynamically.
- Delay: circuit switching: fixed (after setup) and typically low jitter; packet switching: variable delay and jitter (depends on congestion).
- Setup time: circuit: call setup required before data; packet: no setup—data sent immediately as packets.
- Efficiency: circuit: inefficient when channel idle; packet: efficient for bursty traffic because link is shared.
- Reliability & Robustness: circuit: single reserved path—failure disrupts call; packet: alternate routes possible—more resilient.
- Scalability: packet switching scales better to many users and varied traffic.
Advantages & Disadvantages (brief)
- Circuit switching advantages: predictable performance, low jitter, simple end-to-end behavior.
- Circuit switching disadvantages: poor resource utilization, blocking under high demand, less flexible.
- Packet switching advantages: high utilization, flexible routing, supports bursty traffic and many applications.
- Packet switching disadvantages: variable delays, packet loss under congestion, need for buffering and reordering.
When each is used
- Use circuit switching for applications needing continuous, steady bandwidth with low jitter (traditional voice circuits).
- Use packet switching for data, web, email, most modern voice (VoIP) and multimedia (with QoS mechanisms).
Summary: Circuit switching reserves a continuous path (good for predictable, steady streams), while packet switching divides data into packets that share network resources (good for efficiency and bursty traffic).
- Traditional landline telephone system (PSTN) — circuit switching: a dedicated electrical path is reserved for the call duration.
- The Internet (HTTP, SMTP, IP) — packet switching: web pages, emails and files are sent as packets and can take different routes.
- VoIP calls over the Internet — packet switching with QoS; packets carry voice frames and may experience jitter that is smoothed by jitter buffers.
- Leased T1/E1 line — circuit-like dedicated bandwidth for enterprise networks (guaranteed capacity).
- Mobile telephony (early systems) — used circuit switching for voice; modern mobile networks use packet switching for data and increasingly for voice (VoLTE).
- Video streaming (Netflix) — uses packet switching; adaptive bitrate streaming changes packetized video rate based on network conditions.
- \[Transmission delay (per packet) = L / R\]\[where L = packet length in bits\]\[R = link bandwidth in bits/sec.\]
- \[Propagation delay = d / s\]\[where d = distance (m) and s = propagation speed (≈2×10^8 m/s in copper/fiber).\]
- \[End-to-end delay ≈ transmission delay + propagation delay + queuing delay + processing delay.\]
- \[Link utilization (ρ) = offered load (bits/sec actually used) / link capacity (bits/sec)\]\[For circuit switching\]\[utilization = (reserved bandwidth sum) / total capacity.\]
- \[Throughput = total useful data bits delivered / total time. (Average throughput ≤ link capacity.)\]
- \[Blocking probability (concept for circuit switching) can be estimated by Erlang B formula (advanced): B(A\]\[m) = (A^m / m!) / Σ_{k=0..m} (A^k / k!)\]\[where A = offered traffic (Erlangs) and m = number of circuits.\]
Network Performance Metrics
Network Performance Metrics
Key Point: Bandwidth (capacity): expressed in bps (no single formula).
What are Network Performance Metrics?
Network performance metrics are measurable quantities that describe how well a network carries data. They help evaluate speed, quality, reliability and user experience. Network engineers and applications use these metrics to design, troubleshoot and optimise networks.
Main metrics (with short definitions)
- Bandwidth: The maximum data rate a link can carry, usually in bits per second (bps). This is a capacity figure (theoretical or advertised).
- Throughput: The actual rate of successful data delivery over the network (bps). Throughput ≤ bandwidth.
- Goodput: The rate of useful application-level data delivered (excludes protocol overhead and retransmissions).
- Latency (Delay): Time taken for a single packet to travel from sender to receiver. It has subcomponents: propagation, transmission, processing and queuing delays.
- Round-Trip Time (RTT): Time for a signal to go from sender to receiver and back.
- Jitter: Variation in packet delay (important for real-time apps like VoIP and gaming).
- Packet loss: Fraction of packets that never arrive (or are discarded), expressed as a rate or percentage.
- Utilization: How much of the available bandwidth is being used (often as a percentage).
- Availability and Reliability: Availability = fraction of time the service is up. Reliability relates to error rates and Mean Time Between Failures (MTBF).
Why they matter
- Throughput and bandwidth determine how fast files download and how smooth video plays.
- Latency and jitter affect interactivity: low latency is essential for online gaming and real-time communication.
- Packet loss and errors reduce quality and cause retransmissions, lowering goodput.
Typical values and intuition
- High bandwidth + low latency = good for large file transfers and interactive apps.
- High bandwidth but high packet loss → poor user experience because retransmissions reduce effective throughput.
- Low jitter is vital for voice/video conferencing even if throughput is moderate.
- Streaming video: If advertised bandwidth is 10 Mbps but throughput drops to 3 Mbps during congestion, the video may buffer or downgrade quality. Jitter and packet loss can cause stuttering even if average throughput seems adequate.
- Online gaming: A player with 200 ms latency and high jitter will experience lag and inconsistent response; a stable 30 ms with low jitter gives much better playability even at lower bandwidth.
- File download: A 100 MB file over a 10 Mbps link (ideal) should take about 80 seconds. If throughput is only 5 Mbps due to shared use, download time doubles. Transmission and propagation delays are minor for large transfers compared to throughput.
- VoIP call: Requires low latency (<150 ms), low jitter and packet loss <1% to maintain understandable audio. High jitter buffers or packet loss concealment algorithms are used to smooth audio.
- Web browsing: Page load is sensitive to RTT (many small requests). High RTT increases page load time even if bandwidth is high.
- \[Bandwidth (capacity): expressed in bps (no single formula).\]
- \[Throughput = total_data_transferred (bits) / time_interval (seconds)\]\[Example unit: bps.\]
- \[Goodput = useful_payload_bits / time_interval\]\[Goodput = Throughput - overhead - retransmissions.\]
- \[Transmission delay = packet_size (bits) / bandwidth (bps).\]
- \[Propagation delay = distance (meters) / propagation_speed (meters/second). (Propagation speed in copper/fiber ≈ 2 x 10^8 m/s.)\]
- \[RTT ≈ 2 * propagation_delay + processing_delay + queuing_delay (approximate).\]
Network Security Basics
Network Security Basics
Key Point: Symmetric encryption: C = E_k(P) ; P = D_k(C) (C = ciphertext, P = plaintext, k = secret key)
Network Security Basics covers principles and practices that protect data and resources as they move across networks. The primary goals are the CIA triad: confidentiality (preventing unauthorized data access), integrity (ensuring data is not altered without authorization), and availability (ensuring services and data are accessible when needed). Additional goals include authentication (verifying identities), authorization (granting correct privileges), and non-repudiation (preventing denial of actions).
Common threats and attacks:
- Passive attacks: eavesdropping or traffic analysis (attacker listens but does not alter data).
- Active attacks: modification, replay, impersonation, or Denial of Service (DoS).
- Malware: viruses, worms, trojans that infect hosts and spread through networks.
- Man-in-the-Middle (MitM): attacker intercepts and possibly alters communication between parties.
- Phishing and social engineering: tricking users into revealing credentials or downloading malware.
Key technical controls and concepts:
- Encryption: transforms plaintext into ciphertext so only authorized parties can read it. Two main types: symmetric (same key for encrypt/decrypt) and asymmetric/public-key (different keys for encrypt and decrypt).
- Hashing: one-way functions producing fixed-size digests used for integrity checks (e.g., SHA family).
- Digital signatures: use asymmetric cryptography to provide authentication and non-repudiation.
- Secure protocols: TLS/SSL (HTTPS) for secure web traffic, SSH for secure shell access, IPsec for secure IP-layer communication.
- Firewalls: filter traffic between networks based on rules (packet-filtering, stateful, application-level).
- VPNs: create encrypted tunnels over untrusted networks (e.g., public Wi‑Fi) to protect confidentiality and integrity.
- Intrusion Detection/Prevention Systems (IDS/IPS): monitor network traffic for suspicious patterns and alert/block attacks.
- Access control and authentication: passwords, multi-factor authentication (MFA), role-based access control (RBAC).
- Patch management and endpoint protection: keep systems updated, use antivirus/anti-malware tools.
Best practices for secure networks:
- Use strong, unique passwords and enable multi-factor authentication.
- Prefer HTTPS and up-to-date TLS versions for web traffic.
- Segment networks (separate guest, user, and server networks) and apply least-privilege access.
- Regularly update and patch systems and applications.
- Backup critical data and test restoration procedures.
- Educate users about phishing and safe behavior online.
- Online banking: The bank website uses HTTPS (TLS) so credentials and transactions are encrypted (confidentiality) and the bank's certificate proves the server's identity (authentication).
- Public Wi‑Fi + VPN: When you use a coffee-shop Wi‑Fi, an attacker could eavesdrop. Using a VPN creates an encrypted tunnel so your traffic cannot be read by others on that network.
- Phishing email: An attacker sends an email that looks like it's from a service asking you to reset your password. If you enter credentials on a fake site, the attacker captures them—demonstrates social engineering risk.
- Password storage: A website stores user passwords as salted hashes (e.g., salt + SHA-256) so even if the database leaks, attackers cannot easily recover plaintext passwords.
- Firewall placement: A small office places a firewall between the internet and the internal network to block unwanted incoming connections and allow only needed services (e.g., web, email).
- \[Symmetric encryption: C = E_k(P)\]\[P = D_k(C) (C = ciphertext\]\[P = plaintext\]\[k = secret key)\]
- \[Asymmetric (RSA) basics: n = p × q (choose large primes p\]\[q) φ(n) = (p−1)(q−1) Choose e such that 1 < e < φ(n) and gcd(e, φ(n)) = 1 Find d where e × d ≡ 1 (mod φ(n)) Encryption: C = M^e mod n\]\[Decryption: M = C^d mod n\]
- \[Hash function property (one-way): H = hash(M) — small change in M produces large/ unpredictable change in H. (No algebraic formula\]\[used for integrity and verification.)\]
- \[Password entropy (approx.): Entropy (bits) = L × log2(S) (L = length\]\[S = size of character set)\]\[Higher entropy → harder to guess/brute-force.\]
- \[Birthday paradox (collision estimate) for n-bit hash: approximate number of values to get collision ≈ 2^(n/2).\]
Wireless Networking and Technologies
Wireless Networking and Technologies
Key Point: Wavelength: λ = c / f, where λ is wavelength (m), c ≈ 3×10^8 m/s (speed of light), f is frequency (Hz).
Overview
Wireless networking is the transmission of data between devices using electromagnetic waves instead of physical cables. It enables mobility, easy deployment, and connectivity in locations where cabling is impractical. Wireless networks follow the same layered principles as wired networks but use radio, infrared, or satellite links for the physical layer.
Major types of wireless networks
- PAN (Personal Area Network) – very short range (a few metres). Examples: Bluetooth, NFC.
- WLAN (Wireless Local Area Network) – covers homes, offices. Example: Wi‑Fi (IEEE 802.11 family).
- WMAN (Wireless Metropolitan Area Network) – covers a city or campus. Example: WiMAX.
- WWAN (Wireless Wide Area Network) – cellular networks covering large geographic areas (2G/3G/4G/5G) and satellite links.
Common wireless technologies
- Wi‑Fi (IEEE 802.11) – used for LAN access. Variants: 802.11b/g/n (2.4 GHz), 802.11a/ac/ax (5 GHz and 6 GHz for newer Wi‑Fi 6E/7). Wi‑Fi uses access points (APs), SSIDs, channels and supports infrastructure and ad‑hoc modes.
- Bluetooth – short‑range (≈1–100 m depending on class), low power, used for peripherals and audio (profiles like A2DP, HFP). Operates in 2.4 GHz ISM band with frequency hopping.
- Infrared (IR) – line‑of‑sight, short range (remote controls, IR data transfer).
- Cellular (2G–5G) – mobile voice/data. 4G LTE provides high data rates; 5G improves throughput, latency and supports massive IoT.
- WiMAX – broadband wireless for metropolitan coverage (less common now due to LTE/5G).
- Zigbee / Thread – low‑power mesh protocols for IoT and home automation (IEEE 802.15.4 family).
- NFC (Near Field Communication) – extremely short range (a few cm) for contactless payments and pairing.
- Satellite – very long range global coverage (geostationary, MEO, LEO systems), used where terrestrial networks are unavailable.
Operating concepts
- Modes: Infrastructure (clients + AP) and Ad‑hoc (peer‑to‑peer). Mesh networks use multiple nodes to forward traffic.
- Channels & Bands: Wireless uses regulated frequency bands (e.g., 2.4 GHz, 5 GHz). Channels are sub‑divisions; overlapping channels cause interference.
- MIMO & Beamforming: Multiple antennas improve throughput and reliability by spatial multiplexing and directing energy.
- MAC layer: Wi‑Fi uses CSMA/CA (carrier sense multiple access with collision avoidance). Bluetooth uses time/frequency hopping to reduce collisions.
Performance factors
- Frequency: Higher frequency → shorter wavelength → generally higher data rate but lower propagation/range.
- Bandwidth: Wider channel bandwidth → higher possible data rates.
- SNR (Signal‑to‑Noise Ratio): Higher SNR → higher reliable throughput.
- Path loss & attenuation: Signals weaken with distance and obstacles (walls, foliage).
- Interference: From other wireless devices, microwave ovens, overlapping Wi‑Fi networks.
Security
Wireless links are more exposed to eavesdropping and unauthorized access. Common mechanisms: SSID hiding (obscurity only), MAC filtering (easily spoofed), and real encryption/authentication: WEP (obsolete and insecure), WPA/WPA2 (WPA2 with AES is standard), WPA3 (stronger). For cellular, SIM authentication and tower‑based encryption are used. VPNs add end‑to‑end protection.
Practical considerations & best practices
- Place APs centrally and elevated to maximize coverage; avoid metal/large obstructions.
- Choose less crowded channels (use Wi‑Fi scanner tools).
- Use WPA2/WPA3 with strong passphrases; update firmware regularly.
- Use guest networks for visitor access to isolate devices.
- For critical links, consider directional antennas or wired backups to improve reliability.
Mapping to syllabus concepts
Wireless networking illustrates physical and data‑link layer differences from wired networks (propagation, spectrum, medium access). It also shows real‑world tradeoffs: mobility vs. security, convenience vs. interference.
- Home Wi‑Fi: A wireless router/AP provides Internet access to laptops, smartphones and smart TVs over 2.4/5 GHz bands using WPA2 encryption.
- Bluetooth headset: A smartphone pairs with a wireless headphone using Bluetooth (A2DP) for audio streaming within ~10 m.
- Mobile internet: A phone uses 4G/5G cellular network to browse the web while moving between cell towers.
- Contactless payment: NFC in a smartphone communicates with a payment terminal at a few centimeters for secure transactions.
- Smart home mesh: Zigbee or Wi‑Fi mesh nodes extend coverage and allow sensors and smart bulbs to communicate across a house.
- Satellite Internet: Remote area receives broadband via a LEO or GEO satellite link when terrestrial networks are unavailable (e.g., VSAT or Starlink).
- \[Wavelength: λ = c / f\]\[where λ is wavelength (m)\]\[c ≈ 3×10^8 m/s (speed of light)\]\[f is frequency (Hz).\]
- \[Free‑space path loss (FSPL) in dB: FSPL(dB) = 20·log10(d) + 20·log10(f) + 32.44 (d in km\]\[f in MHz).\]
- \[Friis transmission equation (linear): Pr = Pt·Gt·Gr·(λ / (4·π·d))^2\]\[where Pt = transmitted power\]\[Gt/Gr = antenna gains\]\[d = distance, λ = wavelength.\]
- \[Link budget (dB): Pr(dBm) = Pt(dBm) + Gt(dBi) + Gr(dBi) - Lp(dB) - other_losses(dB).\]
- \[Shannon capacity: C = B·log2(1 + SNR)\]\[where C is maximum channel capacity (bits/s)\]\[B is bandwidth (Hz)\]\[SNR is linear signal‑to‑noise ratio.\]
- \[Decibel conversion: dB = 10·log10(P2 / P1) for power ratios\]\[or dBi/dBd for antenna gain units.\]
Internet and World Wide Web
Internet and World Wide Web
Key Point: Data transfer time ≈ File size (bits) / Bandwidth (bits/sec). Example: 10 MB = 80 Mb; over 10 Mbps link → 80/10 = 8 seconds (ideal).
Introduction
The Internet is a global system of interconnected computer networks that use a common set of protocols (TCP/IP) to communicate. It provides infrastructure and services that allow devices worldwide to exchange data. The World Wide Web (WWW or Web) is an information service that runs on top of the Internet and uses HTTP/HTTPS to access hyperlinked documents (web pages) identified by URLs.
Key components
- Hosts/Clients: PCs, smartphones, servers that generate and consume data.
- Routers and switches: Forward packets between networks.
- Servers: Web, mail, DNS, FTP servers that provide services.
- ISPs: Internet Service Providers connect users to the global Internet.
- Protocols: TCP/IP, HTTP/HTTPS, FTP, SMTP, POP3, IMAP, DNS, etc.
How the Internet works (brief)
Data is split into packets and routed across many intermediate devices using packet-switching. Each packet contains source/destination IP addresses. The TCP protocol (when used) provides reliable, ordered delivery; IP handles addressing and routing.
Addresses and names
IP address: Numeric address (IPv4/IPv6) assigned to each device.
Domain Name System (DNS): Translates human-readable domain names (example.com) into IP addresses. A URL (Uniform Resource Locator) identifies a web resource and contains the protocol, domain, and resource path (for example, http://www.example.com/index.html).
World Wide Web
The Web uses HTTP (HyperText Transfer Protocol) or HTTPS (secure) to request and transfer web pages. A browser (client) sends an HTTP request to a web server; the server responds with an HTML page which the browser renders. Web pages can include images, scripts, stylesheets and hyperlinks to other pages.
Common Internet services & protocols
- HTTP/HTTPS: Web (port 80/443).
- DNS: Name resolution (port 53).
- SMTP/POP3/IMAP: Email send/receive.
- FTP/SFTP: File transfer.
- VoIP: Voice over IP (real-time communication).
Client–Server model vs Peer-to-Peer
Most Web services use a client–server model: a client (browser) requests resources from a server. In peer-to-peer (P2P), participants act as both clients and servers (example: file-sharing apps).
Security
HTTPS uses SSL/TLS to encrypt HTTP traffic, providing confidentiality and integrity. Firewalls, VPNs, and secure authentication protect networks and users.
Difference: Internet vs WWW (summary)
- Internet = global network of networks (infrastructure, hardware, protocols).
- WWW = collection of interlinked documents and resources accessed via HTTP over the Internet.
Example sequence: Browsing a website
1) Type URL in browser → 2) Browser asks DNS for IP → 3) DNS returns IP → 4) Browser opens TCP connection to web server (TCP 3-way handshake) → 5) Browser sends HTTP GET request → 6) Server responds with HTML → 7) Browser requests additional resources (images, CSS, JS) → 8) Page renders.
Performance basics
Network performance depends on bandwidth (capacity), latency (delay), and packet loss. Techniques like caching, CDNs (Content Delivery Networks), compression, and optimized TCP settings improve user experience.
Educational relevance
Understanding the Internet and WWW helps students learn how online services work, basic web programming, digital citizenship, and safe use of online resources.
- Opening a news website: browser sends HTTP/HTTPS requests; DNS resolves domain to IP; web server returns HTML/CSS/JS.
- Sending an email: client uses SMTP to send to mail server; recipient retrieves with POP3/IMAP.
- Downloading a file via FTP or SFTP from a remote server.
- Streaming a video: media chunks delivered over HTTP to a player; adaptive bitrate streaming adjusts quality to bandwidth.
- Online banking: uses HTTPS for encrypted transactions and server-side authentication.
- Voice call over the Internet using VoIP (e.g., Skype, WhatsApp calls).
- \[Data transfer time ≈ File size (bits) / Bandwidth (bits/sec)\]\[Example: 10 MB = 80 Mb\]\[over 10 Mbps link → 80/10 = 8 seconds (ideal).\]
- \[Transmission delay = Packet size (bits) / Link bandwidth (bits/sec).\]
- \[Propagation delay = Distance (meters) / Propagation speed (~2 × 10^8 m/s in fiber).\]
- \[Round-Trip Time (RTT) ≈ 2 × Propagation delay + Processing delay + Queuing delay.\]
- \[Bandwidth–Delay Product = Bandwidth (bits/sec) × RTT (sec) (amount of data 'in flight').\]
- \[Throughput ≤ min(application limit\]\[bandwidth\]\[receiver limit).\]
Network Applications and Services
Network Applications and Services
Key Point: Transmission delay (s) = L / R where L = packet size in bits, R = link bandwidth in bits/second.
Overview
Network Applications and Services are software systems and protocols that run on top of computer networks to provide user-facing functionality (web, email, file transfer, voice/video, etc.). They operate primarily at the Application Layer of the TCP/IP model and rely on lower-layer services (transport, network, link) to move data between hosts.
Key Concepts
- Application vs Service: An application is end-user software (web browser, mail client). A service is a network-provided capability (DNS resolution, DHCP address allocation).
- Client–Server vs Peer-to-Peer (P2P): In client–server, clients request services from central servers (websites, email). In P2P, peers both consume and provide resources (file-sharing, some voice apps).
- Protocols: Define message formats and rules. Common application-layer protocols: HTTP/HTTPS, SMTP/POP3/IMAP, FTP/SFTP, DNS, DHCP, SSH, SIP/RTP for real-time media.
- Ports and Sockets: Applications use port numbers and sockets (IP address + port) to communicate—e.g., HTTP default port 80, HTTPS 443.
Major Network Applications & Services
- Web / HTTP/HTTPS: Hypertext Transfer Protocol for webpages; HTTPS adds TLS/SSL for encryption (critical for banking, e-commerce).
- Email: SMTP for sending, POP3/IMAP for retrieval; webmail uses HTTP(S).
- File Transfer: FTP/SFTP for direct transfers; cloud storage (Google Drive, Dropbox) uses HTTP(S) + APIs.
- Remote Access: SSH (secure shell) and RDP for remote command and desktop access.
- Directory / Name Services: DNS maps domain names to IP addresses; LDAP provides directory services.
- Addressing / Configuration: DHCP automatically assigns IP addresses and configuration to hosts.
- Real-time Communication: VoIP, video conferencing use SIP for signaling and RTP/RTCP for media with QoS considerations.
- Monitoring & Management: SNMP for network management, ICMP for diagnostics (ping, traceroute).
- Cloud & Web Services: SaaS, PaaS, IaaS models; RESTful APIs over HTTP are common for web services.
Performance Factors
- Bandwidth: Maximum data rate of a link (bits per second).
- Latency/Delay: Time taken for a packet to travel (propagation + transmission + queuing + processing).
- Jitter: Variation in packet arrival times—important for audio/video.
- Throughput: Actual useful data rate achieved, often lower than raw bandwidth.
- Quality of Service (QoS): Mechanisms to prioritize traffic (voice over data) using queuing, traffic shaping, DiffServ.
Security & Reliability
- Confidentiality & Integrity: TLS/SSL for encryption; message signing where needed.
- Authentication & Authorization: Passwords, certificates, tokens (OAuth) to control access.
- Redundancy & Fault Tolerance: Load balancers, replication, CDN (Content Delivery Network) to improve availability and performance.
How an Application Request Flows (Example: Web Page Load)
- User types URL or clicks link → browser checks local cache and DNS resolver.
- If needed, browser sends DNS lookup to resolve domain → receives IP address.
- Browser opens TCP connection to server IP:port (three-way handshake) → optional TLS handshake for HTTPS.
- Browser sends HTTP request; server responds with HTML, assets (CSS, JS, images) which may be fetched in parallel.
- Browser renders page; additional AJAX/REST calls may continue.
This flow shows interplay of application protocols (HTTP, DNS), transport (TCP/UDP), and network services (DNS, CDN, TLS).
- Web browsing (HTTP/HTTPS) — accessing websites like Wikipedia, online banking secured by HTTPS (TLS).
- Email — sending mail via SMTP and reading via IMAP or POP3 (e.g., Gmail client).
- File storage and sharing — cloud services (Google Drive, Dropbox) using HTTPS REST APIs and synchronization clients.
- Video streaming — platforms like YouTube and Netflix use adaptive bitrate streaming (HLS/DASH) with CDNs to reduce latency.
- VoIP and video calls — WhatsApp/Skype use SIP/RTP (or proprietary variants) with QoS and jitter buffering.
- Remote login and administration — SSH for secure shell access; RDP for remote desktops.
- \[Transmission delay (s) = L / R where L = packet size in bits\]\[R = link bandwidth in bits/second.\]
- \[Propagation delay (s) = d / s where d = distance (meters)\]\[s = propagation speed (~2×10^8 m/s in copper/fiber).\]
- \[Round-Trip Time (RTT) ≈ 2 × propagation delay + processing delay + queuing delay.\]
- \[Bandwidth-Delay Product (bits) = Bandwidth (bits/s) × RTT (s) — useful to size buffers and windows.\]
- \[Transmission time for file (s) = File size (bits) / Bandwidth (bits/s).\]
- \[Stop-and-wait utilization ≈ (L/R) / (RTT + L/R) — shows inefficiency for high-RTT links.\]
Network Troubleshooting and Tools
Network Troubleshooting and Tools
Key Point: Bandwidth (bits/sec) = Size of data (bits) / Time (sec). Example: transferring 10 MB (80,000,000 bits) in 8 seconds => Bandwidth = 10,000,000 bits/sec ≈ 10 Mbps.
Overview: Network troubleshooting is a systematic process to find and fix problems that prevent devices or services from communicating correctly. It combines logical steps (identify, isolate, fix, verify) with a set of common tools and measurements to detect faults at different OSI layers.
Troubleshooting methodology (step-by-step):
- Identify — Understand the symptoms: who is affected, when it started, scope (one host, VLAN, whole site), and recent changes.
- Gather information — Collect logs, run basic commands (ping, ipconfig/ifconfig), ask users, check device LEDs and cables.
- Isolate — Determine the failing layer (physical, data link, network, transport, application) and whether the fault is local or remote.
- Diagnose & test — Use targeted tools (traceroute, nslookup, netstat, Wireshark, iperf) to confirm the root cause.
- Fix — Apply the corrective action (replace cable, correct IP/DNS settings, adjust MTU, restart service, update firewall rules).
- Verify & document — Re-test, confirm normal operation, and record the issue and resolution for future reference.
OSI-layer based checks (concise):
- Layer 1 (Physical): Check cables, connectors, link lights, switch port LEDs, signal quality, cable tester results.
- Layer 2 (Data Link): Verify MAC addresses, ARP table (arp -a), VLAN membership, switch port configuration and collisions/duplex mismatches.
- Layer 3 (Network): Check IP address, subnet mask, default gateway (ipconfig/ifconfig), routing table (route print / ip route), ping and traceroute.
- Layer 4 (Transport): Verify TCP/UDP ports, connection states (netstat), retransmissions, and firewall/NAT rules.
- Layer 7 (Application): Test DNS (nslookup/dig), HTTP(S) (curl/browser), email, and application logs.
Common tools & how they help:
- ping — Tests basic reachability and round-trip time (RTT). Good first test.
- traceroute / tracert — Shows path and per-hop latency to identify where delays/blackholes occur.
- ipconfig / ifconfig — Displays IP configuration, useful to spot wrong IP/gateway/DHCP problems.
- nslookup / dig — Verifies DNS resolution and records returned by the DNS server.
- netstat — Lists active connections, listening ports and protocol states.
- arp — Shows IP-to-MAC mappings; helps detect ARP conflicts or incorrect entries.
- wireshark / tcpdump — Packet capture and inspection to analyze packet flows, retransmissions, and protocol errors.
- iperf / speedtest — Measures throughput between two endpoints to test bandwidth.
- nmap — Port scanning to check which services/ports are open on a host.
- ethtool / mii-tool — Shows NIC link speed/duplex and helps detect mismatches.
Common problems & quick checks:
- No connectivity: check link LEDs, cabling, ipconfig, default gateway, and ping the gateway.
- Slow internet: ping a public IP and a domain name to separate DNS vs network slowness; run speedtest or iperf to check bandwidth.
- DNS failures: nslookup/dig to query specific DNS servers; try numeric IP to bypass DNS.
- Intermittent drops: capture packets with Wireshark to find retransmissions or ARP storms; test cable for faults.
- IP conflict: check arp/arp -a and event logs; change IP or enable DHCP reservation.
Best practices: Always test from both ends when possible, document steps and results, revert recent changes as a troubleshooting step, and isolate variables (use a known-good cable/device).
- Cannot access any website from one PC: Steps — check physical link lights → run ipconfig/ifconfig to confirm IP and gateway → ping gateway and 8.8.8.8 (if gateway responds, ping domain name to test DNS) → if gateway ping fails, check switch port/cable; if DNS fails, run nslookup.
- Slow file transfer between two offices: Steps — run iperf between the two endpoints to measure throughput → run traceroute to identify a slow hop → capture packets with Wireshark to detect retransmissions → if bandwidth is low but RTT high, investigate WAN link or congestion.
- VoIP call quality poor (jitter/packets lost): Steps — measure latency and packet loss with ping and RTP capture → inspect QoS settings on routers/switches → check for duplex mismatch on NICs (ethtool) and high CPU on devices causing queuing delays.
- Website unreachable only by domain name: Steps — check nslookup/dig to see DNS response → try curl http://<IP> to confirm web server is up → if DNS is incorrect, update DNS records or flush DNS cache (ipconfig /flushdns).
- Intermittent wireless disconnects: Steps — check signal strength and interference (channel overlap) → move closer to AP or change channel → check AP logs and client drivers; test with another device to isolate client vs AP problem.
- \[Bandwidth (bits/sec) = Size of data (bits) / Time (sec)\]\[Example: transferring 10 MB (80,000,000 bits) in 8 seconds => Bandwidth = 10,000,000 bits/sec ≈ 10 Mbps.\]
- \[Throughput ≤ Bandwidth\]\[Throughput is the actual achieved data rate after overheads and losses.\]
- \[Utilization (%) = (Throughput / Provisioned Bandwidth) × 100\]\[Example: if throughput is 5 Mbps on a 10 Mbps link\]\[utilization = 50%.\]
- \[Packet loss rate (%) = (Packets lost / Packets sent) × 100.\]
- \[Bandwidth-Delay Product (BDP) = Bandwidth (bits/sec) × RTT (sec)\]\[BDP indicates the amount of data 'in flight' needed to fully utilize the link.\]
- \[SNR (dB) = 10 × log10(P_signal / P_noise)\]\[Higher SNR yields better link quality.\]
Practical/Hands-on Topics
Practical/Hands-on Topics
Key Point: Transmission delay = L / R (L = packet length in bits, R = link bandwidth in bits per second)
Practical/Hands-on Topics in Class 11 Computer Science (Computer Networks) teach students how networks are built, configured, tested and analysed. The practical focus is on basic network setup, addressing, simple services (DHCP, DNS, HTTP), troubleshooting using command-line tools and packet analysis. These labs reinforce theory by giving experience with real devices or simulators (Packet Tracer, GNS3) and tools (Wireshark).
Typical practical activities include:
- Setting up a small LAN: connecting PCs, configuring switches or hubs, assigning IP addresses (static and via DHCP) and verifying connectivity.
- Using command-line networking tools: ipconfig/ifconfig, ping, tracert/traceroute, nslookup/dig, netstat, arp. Interpreting their outputs for troubleshooting.
- Subnetting and CIDR practice: calculating network, broadcast addresses and valid host ranges; applying masks.
- Packet capture and analysis with Wireshark: capturing traffic, filtering by protocol, inspecting TCP handshake, HTTP requests and DNS lookups.
- Setting up simple services: a basic HTTP/FTP server to demonstrate client-server interaction, and observing traffic with Wireshark.
- Using network simulators: creating topologies, configuring routers/switches, simulating routing and NAT, and testing connectivity.
Good lab practice includes documenting topology diagrams, recording IP addressing schemes, following safety and security steps (isolating lab networks from the internet when required), and explaining observations (why ping failed, where packet loss occurred, etc.).
- Build a 3-PC LAN with a switch: assign static IPs in the same subnet, verify connectivity using ping, and share a test file from one PC to another.
- Subnetting exercise: Given IP 192.168.10.0/26, list the network address, broadcast address, and valid host range for that subnet.
- Wireshark lab: Capture traffic while loading a web page. Filter for HTTP and identify the TCP three-way handshake, GET request and corresponding response codes.
- DHCP vs Static: Configure one PC to use DHCP and another with static IP. Show how the DHCP lease appears in the DHCP server logs and how ipconfig/ifconfig displays assigned settings.
- Traceroute/tracert: Use traceroute to find the path and round-trip times from your PC to a public server; identify the router hops and interpret high-latency hops.
- Simple server: Host a small HTTP server on port 8000 (e.g., Python SimpleHTTPServer) and fetch a page from another PC; observe requests in Wireshark and browser.
- \[Transmission delay = L / R (L = packet length in bits\]\[R = link bandwidth in bits per second)\]
- \[Propagation delay = distance / propagation speed (speed ~ 2x10^8 m/s in copper/fiber approx.)\]
- \[Total nodal delay = processing delay + queuing delay + transmission delay + propagation delay\]
- \[Bandwidth-delay product = Bandwidth * Round-Trip Time (useful to size sender window/buffer)\]
- \[Maximum hosts in a subnet = 2^h - 2 (h = number of host bits\]\[subtract network and broadcast addresses)\]
- \[Number of subnets from borrowed bits = 2^s (s = number of bits borrowed for subnetting)\]
Key Concepts
- Computer Network
- A collection of two or more computers and devices connected to share resources and exchange data.
- Node (Host)
- Any device (computer, printer, smartphone) connected to a network that can send or receive data.
- Client-Server Model
- A network architecture where clients request services and servers provide them centrally.
- Peer-to-Peer Network
- A decentralized network where each node can act as both client and server, sharing resources directly.
- LAN (Local Area Network)
- A network that covers a small geographic area like a home, office, or school building.
- WAN (Wide Area Network)
- A network that spans large geographical areas, connecting multiple LANs over long distances.
- Protocol
- A set of rules that governs how data is formatted, transmitted, and received over a network.
- TCP/IP
- A suite of communication protocols (Transmission Control Protocol and Internet Protocol) used to interconnect network devices on the internet.
- HTTP (Hypertext Transfer Protocol)
- An application-layer protocol used for transmitting web pages from servers to browsers.
- FTP (File Transfer Protocol)
- A protocol used to transfer files between a client and a server on a network.
- SMTP (Simple Mail Transfer Protocol)
- A protocol used to send email messages from a client to a mail server or between mail servers.
- IP Address
- A unique numerical label assigned to each device on a network to identify and locate it (IPv4 or IPv6).
- MAC Address
- A hardware identifier assigned to a network interface card (NIC) used for local network communication.
- Router
- A networking device that forwards data packets between different networks and directs traffic based on IP addresses.
- Switch
- A device that connects devices within a LAN and forwards frames to the correct destination MAC address.
- Hub
- A simple networking device that broadcasts incoming data to all ports without filtering (less efficient than a switch).
- Modem
- A device that converts digital data from a computer to analog signals for transmission over phone or cable lines and vice versa.
- Bandwidth
- The maximum rate of data transfer across a network path, usually measured in bits per second (bps).
- Packet
- A small unit of data formatted for transmission over a network, containing payload and headers (addressing/control).
- Network Topology
- The physical or logical layout of how nodes and links are arranged in a network (e.g., star, bus, ring, mesh).
Practice Questions
-
Differentiate between LAN, MAN and WAN on the basis of geographical coverage. / भौगोलिक क्षेत्र के आधार पर LAN, MAN और WAN में अंतर बताएं।
Show answer
A LAN covers a small area like a home or office, a MAN spans a city (a few km to ~50 km), and a WAN covers large regions or countries — the Internet being the largest WAN. / LAN घर या कार्यालय जैसे छोटे क्षेत्र को कवर करता है, MAN एक शहर तक फैलता है (कुछ किमी से ~50 किमी), और WAN बड़े क्षेत्रों या देशों को कवर करता है — इंटरनेट सबसे बड़ा WAN है।
-
Compare star and bus topologies in terms of one advantage and one disadvantage each. / स्टार और बस टोपोलॉजी की तुलना प्रत्येक के एक लाभ और एक हानि के आधार पर करें।
Show answer
Star is easy to add nodes and isolate faults but fails entirely if the central device fails; bus uses minimal cable but the single backbone is a single point of failure and performance drops as nodes increase. / स्टार में नोड जोड़ना और दोष अलग करना आसान है पर केंद्रीय उपकरण के फेल होने पर पूरा नेटवर्क बंद हो जाता है; बस कम केबल प्रयोग करती है पर एकल बैकबोन विफलता का एकल बिंदु है और नोड बढ़ने पर प्रदर्शन गिरता है।
-
State the difference between a hub, a switch and a router with their OSI layer. / हब, स्विच और राउटर के बीच उनकी OSI परत सहित अंतर बताएं।
Show answer
A hub (Physical layer) broadcasts frames to all ports, a switch (Data Link layer) forwards frames to the correct port using MAC addresses, and a router (Network layer) forwards packets between different networks using IP addresses. / हब (फिजिकल परत) सभी पोर्ट पर फ्रेम प्रसारित करता है, स्विच (डेटा लिंक परत) MAC पतों से सही पोर्ट पर फ्रेम भेजता है, और राउटर (नेटवर्क परत) IP पतों से विभिन्न नेटवर्कों के बीच पैकेट भेजता है।
-
Distinguish between simplex, half-duplex and full-duplex transmission with one example each. / सिम्प्लेक्स, हाफ-डुप्लेक्स और फुल-डुप्लेक्स ट्रांसमिशन में प्रत्येक के एक उदाहरण सहित अंतर बताएं।
Show answer
Simplex is one-way only (TV broadcast), half-duplex is two-way but not simultaneous (walkie-talkie), and full-duplex is simultaneous two-way (telephone call). / सिम्प्लेक्स केवल एक-तरफा है (टीवी प्रसारण), हाफ-डुप्लेक्स दो-तरफा पर एक साथ नहीं (वॉकी-टॉकी), और फुल-डुप्लेक्स एक साथ दो-तरफा है (टेलीफोन कॉल)।
-
Calculate the transmission delay for sending a 10,000-bit packet over a 1 Mbps link. / 1 Mbps लिंक पर 10,000-बिट पैकेट भेजने के लिए ट्रांसमिशन विलंब की गणना करें।
Show answer
Transmission delay = packet size / bandwidth = 10,000 bits / 1,000,000 bps = 0.01 second. / ट्रांसमिशन विलंब = पैकेट आकार / बैंडविड्थ = 10,000 बिट / 1,000,000 bps = 0.01 सेकंड।
-
For the network 192.168.1.0 subnetted into four equal subnets, find the new prefix and usable hosts per subnet. / नेटवर्क 192.168.1.0 को चार समान सबनेट में विभाजित करने पर नया प्रीफिक्स और प्रति सबनेट उपयोग योग्य होस्ट ज्ञात करें।
Show answer
Four subnets need borrowing 2 bits (2²=4), giving prefix /26; each subnet has 2⁶=64 addresses with 64-2=62 usable hosts. / चार सबनेट के लिए 2 बिट उधार लेने पड़ते हैं (2²=4), जिससे प्रीफिक्स /26 मिलता है; प्रत्येक सबनेट में 2⁶=64 पते होते हैं और 64-2=62 उपयोग योग्य होस्ट।
-
Explain the role of DNS and give one common record type. / DNS की भूमिका समझाएं और एक सामान्य रिकॉर्ड प्रकार बताएं।
Show answer
DNS translates human-readable domain names (like www.example.com) into machine-usable IP addresses; an A record maps a hostname to an IPv4 address. / DNS मानव-पठनीय डोमेन नाम (जैसे www.example.com) को मशीन-प्रयोग योग्य IP पतों में बदलता है; एक A रिकॉर्ड होस्टनाम को IPv4 पते से मैप करता है।
-
List the layers of the TCP/IP model and name a protocol used at the Application layer. / TCP/IP मॉडल की परतें सूचीबद्ध करें और एप्लिकेशन परत पर प्रयुक्त एक प्रोटोकॉल बताएं।
Show answer
The TCP/IP model has four layers — Application, Transport, Internet and Network Access — and HTTP is a protocol used at the Application layer. / TCP/IP मॉडल में चार परतें हैं — एप्लिकेशन, ट्रांसपोर्ट, इंटरनेट और नेटवर्क एक्सेस — और HTTP एप्लिकेशन परत पर प्रयुक्त एक प्रोटोकॉल है।
Related Laws & Principles
Explore allFoundational laws & principles connected to this chapter — tap to open in the Laws Explorer.