Circle of Learning Logo CIRCLE OF LEARNING Excellence in Education
CBSE Class 12 · Informatics Practices Chapter 5 Session 2026-27

Introduction to Computer Networks Formulas & Cheat Sheet

Complete chapter-wise reference, step-by-step formula explanations, structured table, and board exam trap warnings.

Core Concepts & Theoretical Foundations

  • Computer Network: Interconnection of autonomous computers to share hardware, software, and data resources.
  • Transmission Media: Guided/Wired (Twisted Pair - UTP/STP, Coaxial Cable, Optical Fiber - fastest, immune to EMI) and Unguided/Wireless (Radio Waves - omnidirectional, Microwaves - line of sight, Infrared - short range line-of-sight).
  • Network Devices: Modem (Modulator-Demodulator), Hub (broadcast device, physical layer), Switch (intelligent packet forwarder using MAC addresses), Repeater (amplifies attenuated signals), Gateway (connects dissimilar protocol networks), Router (routes packets across networks using IP addresses).
  • Network Topologies: Star (central hub/switch; easy fault detection; hub failure brings down network), Bus (single backbone cable; terminator at ends; cable break stops network), Tree (hierarchical combination of bus and star), Mesh (every node connected to every other node; highest redundancy and cost).
  • Network Types: PAN (Personal Area Network: ~10m), LAN (Local Area Network: within building/campus), MAN (Metropolitan Area Network: city-wide), WAN (Wide Area Network: country/global, e.g. Internet).
  • Network Protocols: HTTP (port 80), HTTPS (port 443, SSL/TLS encrypted), FTP (file transfer, port 20/21), TCP/IP (reliable packet transmission and routing), SMTP (sending mail, port 25), POP3 (receiving mail, port 110), VoIP (voice calls over IP).
  • Web Concepts: World Wide Web (WWW), URL (Uniform Resource Locator), Domain Name System (DNS), Web Browser vs Web Server, Cookies (small text files stored by client browser for session management).

Chapter Formulas & Equations (12 entries)

# Topic / Formula Name Mathematical Form & Equation Conditions, Meaning & Board Tips
1 Complete Mesh Topology Links Formula
Lmesh=N(N−1)2,N=number of nodesL_{\text{mesh}} = \frac{N(N - 1)}{2}, \quad N = \text{number of nodes}

In full mesh topology, every node connects directly to every other node; for 10 nodes, L = 10*9/2 = 45 links.

2 Star Topology Links Count
Lstar=NL_{\text{star}} = N

Each of the N network nodes requires exactly one cable connecting it to the central hub or switch.

3 URL Anatomy Formula
URL=protocol://host[:port][/path][?query]\text{URL} = \text{protocol} :// \text{host} [ : \text{port} ] [ / \text{path} ] [ ? \text{query} ]

Deconstructs web address into transmission protocol, registered server domain, port, and file path.

4 Attenuation vs Repeater Placement Rule
Distance>Dmax⁡  ⟹  Install Repeater to regenerate attenuated signal\text{Distance} > D_{\max} \implies \text{Install Repeater to regenerate attenuated signal}

Signals attenuate (weaken) over long distances; repeaters regenerate digital signals to prevent data loss.

5 Server Placement Best Practice (80-20 Rule)
Server Location=arg⁡max⁡wing(Computer Count)\text{Server Location} = \arg\max_{\text{wing}} (\text{Computer Count})

Minimizes inter-building network traffic and cable installation costs in CBSE layout questions.

6 Switch / Hub Placement Rule
Nswitch≥1∀  wing with computers >1N_{\text{switch}} \ge 1 \quad \forall \; \text{wing with computers } > 1

Provides local star connectivity within each wing before interconnecting buildings.

7 Standard Networking Protocol Ports
HTTP=80,HTTPS=443,SMTP=25,POP3=110\text{HTTP} = 80, \quad \text{HTTPS} = 443, \quad \text{SMTP} = 25, \quad \text{POP3} = 110

Standard IANA assigned destination ports for fundamental application layer services.

8 Data Transmission Speed Units
1 Mbps=106 bps=1068 Bytes/s=125 KB/s1\text{ Mbps} = 10^6\text{ bps} = \frac{10^6}{8}\text{ Bytes/s} = 125\text{ KB/s}

Bandwidth and network data transmission rates use decimal powers of 10 rather than powers of 2.

9 Guided Media Bandwidth Comparison
BFiber≫BCoaxial>BTwisted PairB_{\text{Fiber}} \gg B_{\text{Coaxial}} > B_{\text{Twisted Pair}}

Optical fiber supports multi-gigabit speeds using light pulses and is completely immune to electrical interference.

10 Wireless Wave Frequencies Hierarchy
fInfrared>fMicrowave>fRadiof_{\text{Infrared}} > f_{\text{Microwave}} > f_{\text{Radio}}

Higher frequency yields higher bandwidth but shorter propagation range and susceptibility to physical obstacles.

11 MAC Address vs IP Address Format
MAC∈{0..F}12  (48 bits),IPv4∈[0,255]4  (32 bits)\text{MAC} \in \{0..F\}^{12} \; (48\text{ bits}), \quad \text{IPv4} \in [0, 255]^4 \; (32\text{ bits})

MAC address is permanent hardware identifier (NIC); IP address is logical routable network identifier.

12 Cookies Function Definition
Cookie={name=value,expires=T,path=P,domain=D}\text{Cookie} = \{ \text{name}=\text{value}, \text{expires}=T, \text{path}=P, \text{domain}=D \}

Enables stateless HTTP protocol to retain login status, shopping cart items, and user preferences.

Key Scientific Diagrams & Concept Schematics: Introduction to Computer Networks

Visual Reference: network-topologies-devices

Official NCERT board curriculum concept schematic and mathematical/scientific reference diagram.

Step-by-Step Worked Board Exam Examples

Example 1: An organization has 4 blocks: Block A (120 computers), Block B (40 computers), Block C (30 computers), Block D (25 computers). Distances: A to B = 60m, B to C = 150m, C to D = 80m, A to C = 110m, B to D = 180m, A to D = 210m. (i) Suggest ideal block to house server. (ii) Suggest placement of switch and repeaters. (iii) Suggest most suitable topology.

Step 1: The server should be housed in Block A because it has the maximum number of computers (120), adhering to the 80-20 traffic localization rule.

Step 2: Each block requires a switch/hub to connect its internal computers. A repeater is needed between links exceeding 100m (e.g. Block B to Block C: 150m; Block A to Block C: 110m).

Step 3: Star topology or extended Star topology connecting Block A to Block B (60m), Block A to Block C (110m), and Block C to Block D (80m) to minimize cable length.

Ans: (i) Block A (maximum computers: 120). (ii) Switch in each block; Repeater on links exceeding 100 m. (iii) Star topology with Block A as central hub.

Example 2: Differentiate between Hub and Switch, and explain why a Switch is called an intelligent device.

Step 1: Hub operates at the Physical layer and broadcasts incoming data packets to all connected ports, causing collision and wasted bandwidth.

Step 2: Switch operates at the Data Link layer, maintains a MAC address table, and forwards packets only to the intended destination port (unicast), hence called an intelligent hub.

Ans: Hub broadcasts incoming signals to all ports indiscriminately. Switch stores MAC addresses and forwards packets directly to the destination device, avoiding network collisions.

Common Mistakes to Avoid in Exam

  • Confusing Hub and Switch: A hub is an unintelligent broadcast device; a switch forwards packets intelligently based on MAC addresses.
  • Stating optical fiber carries electrical signals: Optical fiber transmits data using light pulses through total internal reflection and is immune to electromagnetic interference.
  • Confusing SMTP and POP3: SMTP is used for SENDING emails; POP3 or IMAP is used for RECEIVING/RETRIEVING emails.
  • Placing the central server in the smallest wing in case study questions: Server must always be placed in the wing with the MAXIMUM number of computers.

Target Practice Questions

Q1. Name the transmission medium that is completely immune to electrical interference (EMI).

Correct Answer: Optical Fiber Cable.

Q2. Which protocol is used to securely transfer web pages encrypted using SSL/TLS?

Correct Answer: HTTPS (Hypertext Transfer Protocol Secure, default port 443).

Q3. If a network has 6 computers connected in a full mesh topology, calculate the number of cables required.

Correct Answer: L = N * (N - 1) / 2 = 6 * 5 / 2 = 15 cables.

Frequently Asked Questions

Q. What is the difference between Star and Bus topology?

In Star topology, every computer connects to a central switch/hub; failure of a single cable does not affect other nodes, but central hub failure halts the network. In Bus topology, all computers share a single central backbone cable terminated at both ends; cable break collapses the whole network.

Q. When is a Gateway required in a network?

A Gateway is needed when connecting two networks that run on completely different network communication protocols or architectures, acting as a protocol translator.

Q. What is the role of DNS (Domain Name System)?

DNS translates human-readable domain names (e.g., www.cbse.gov.in) into machine-routable numerical IP addresses (e.g., 164.100.158.45).

Q. What are cookies and why are they used?

Cookies are small text files created by web servers and stored on the user's computer via browser to remember user preferences, login sessions, and shopping cart contents.

← View All 6 Chapters in Class 12 Informatics Practices Formula Book