Class 12Computer Science · Computer NetworksFull chapter

Evolution of Networking and Data Communication

The whole chapter in one place — read it, then test yourself. Clear notes, a reference sheet, a practice quiz, and worked NCERT solutions & PYQs.

What a Computer Network Is, and Why We Build One

Quick answer A computer network is two or more autonomous devices joined by a communication medium so they can exchange data and share resources — built for resource sharing, communication, centralised data, reliability and lower cost, at the price of setup money, security exposure and a shared point of failure.

A computer network is a collection of two or more autonomous computing devices connected by a communication medium so that they can exchange data and share resources.

Two words in that definition carry marks. Autonomous means no device controls another — each one can work on its own. A keyboard plugged into a CPU is not a network, because the keyboard is not an independent computer. Communication medium means there has to be a real path between them: copper cable, optical fibre, radio or satellite.

Vocabulary you will use for the rest of this unit:

  • Node — any device connected to the network: a computer, a printer, a phone, a CCTV camera, a router. Every node needs an address on that network. Nodes that are end devices, and so start or finish a conversation, are also called hosts; intermediate nodes such as routers and switches carry other people’s traffic rather than originating it.
  • Server — a node that provides a resource or service: files, printing, a website, a database.
  • Client — a node that requests that service. Server and client are roles, not machine types; the same computer can be a server for printing and a client for the internet at the same moment.

Why organisations build networks

  • Resource sharing — one printer, one scanner, one internet connection, one licensed copy of software, used by many machines.
  • Communication — email, chat, file transfer, video conferencing between people who are not in the same room or the same city.
  • Centralised data and backup — student records sit on one server, get backed up once, and everybody reads the same current copy instead of forty different versions living on forty pen drives.
  • Reliability — if one machine dies, the data is still on the server and the work continues from another machine.
  • Lower cost — many ordinary machines sharing one expensive resource is far cheaper than giving every machine its own.

What a network costs you. Networks are not a free win, and the board does ask for limitations. You pay for cabling, switches and somebody to administer them. Malware or one careless click on a single machine can reach every machine. Private data becomes reachable from outside the room. And if the server or the one internet link fails, everybody stops working at the same instant — a single point of failure that standalone computers never had.

Worked example

A school in Ranchi is setting up a lab of 40 computers. Assume a laser printer costs Rs 12,000, a network switch plus cabling for the room costs Rs 25,000, and one broadband connection costs Rs 1,200 per month.

NeedWithout a networkWith a network
Printing40 printers = 40 × Rs 12,000 = Rs 4,80,0001 shared printer = Rs 12,000
Internet40 connections = 40 × Rs 1,200 = Rs 48,000 per month1 connection = Rs 1,200 per month
Sharing a project fileCopy to a pen drive and walk it to each machineCopy once to the server; everyone opens it
Backup40 machines to remember, so nobody does itOne server backed up nightly
Extra costNilRs 25,000 for switch and cabling

Counting printing alone, the one-time saving is Rs 4,80,000 − (Rs 12,000 + Rs 25,000) = Rs 4,43,000, and the monthly internet bill falls from Rs 48,000 to Rs 1,200. That is the resource-sharing argument in rupees. The trade-off the school knowingly accepts: the day the switch fails, all 40 machines lose printing and internet together.

Definition to write in the exam Computer network = two or more autonomous devices + a communication medium, connected to share data and resources Drop the word 'autonomous' and you lose the mark that separates a network from a CPU-and-printer pair.
Node / host Node = any addressable device on the network — PC, printer, phone, camera, router; host = a node that is an end device Every node must have a unique address on that network, or data cannot be delivered to it.
Server vs client Server = provides the resource; Client = requests the resource Roles, not hardware. One machine can be both, for different services.
Advantages (answer hook) Resource sharing + Communication + Centralised data/backup + Reliability + Cost saving A 3-mark question usually wants any three, each with a one-line example.
Limitations (answer hook) Setup and maintenance cost + security/malware spread + administration effort + single point of failure If asked for two, pick security exposure and single point of failure — they are the hardest to argue against.
Remember
  • A network needs at least two autonomous devices plus a communication medium — a peripheral wired to one computer is not a network.
  • The standard advantages: resource sharing, communication, centralised data and backup, reliability, lower cost.
  • Server and client are roles for a particular transaction, not permanent labels on machines.
  • Limitations are examinable too: setup and maintenance cost, faster spread of malware, security exposure, and a single point of failure.

Evolution of Networking: ARPANET, NSFNET, Internet

Quick answer Networking grew from ARPANET’s four packet-switched nodes in 1969, through the common TCP/IP protocol adopted on 1 January 1983 and the NSFNET research backbone of the mid-1980s, into the commercial global Internet of the 1990s — on which the World Wide Web is only one service.

The internet was not designed in one go. It arrived in three stages, and each stage solved one specific problem. Learn the stages as problem-and-solution, not as a list of years, and the dates become easy to hold.

Stage 1 — ARPANET (from 1969): can distant computers talk at all?

ARPANET stands for Advanced Research Projects Agency NETwork. In the 1960s computers were rare and hugely expensive, and researchers funded by ARPA (an agency of the US Department of Defense) wanted to use each other’s machines from a distance. ARPANET became operational in 1969, and by December of that year it connected four nodes: UCLA, Stanford Research Institute (SRI), the University of California Santa Barbara, and the University of Utah. The first message attempt, on 29 October 1969, went from UCLA to SRI: the operator began typing LOGIN and the SRI host crashed after the letters LO.

The genuinely new idea in ARPANET was packet switching — chopping a message into small packets that travel independently instead of reserving one telephone-style path for the whole conversation. This is why a damaged link does not kill the whole network: the next packets simply take another route. ARPANET itself was formally decommissioned in 1990, long after its ideas had spread.

Stage 2 — a common protocol (1 January 1983): can different networks talk to each other?

ARPANET originally ran a protocol called NCP (Network Control Protocol), which worked only within ARPANET. Vinton Cerf and Robert Kahn designed TCP/IP (Transmission Control Protocol / Internet Protocol) to let networks built by different people, on different hardware, interconnect. On 1 January 1983 ARPANET switched over to TCP/IP. That switch is the real birthday of internetworking — a network of networks, which is exactly what the word "internet" means.

Stage 3 — NSFNET (from the mid-1980s): can everyone else join?

NSFNET stands for National Science Foundation NETwork. The US National Science Foundation built a backbone linking its supercomputer centres, and regional academic networks plugged into it. Its capacity climbed steadily: the backbone started at 56 kbps, was upgraded to T1 (1.544 Mbps) in 1988, and to T3 (44.736 Mbps) in 1991 — roughly 29 times the T1 rate.

NSFNET had an Acceptable Use Policy that allowed only research and education traffic; running a business over it was forbidden. That single policy line is why the early internet felt academic. When the restriction was relaxed and commercial ISPs (Internet Service Providers) began carrying traffic, the NSFNET backbone was retired in April 1995 and the internet became a public, commercial utility.

The Internet, and why it is not the Web

The Internet is the global network of interconnected networks, all speaking TCP/IP, with no single owner. The World Wide Web (WWW) is just one service running on it: documents linked by hyperlinks and fetched over HTTP. It was proposed by Tim Berners-Lee at CERN in 1989, had a working browser and server by the end of 1990, and CERN placed the software in the public domain in 1993, which is why nobody pays a licence fee to make a website. Email, video calls and file transfer all use the Internet without using the Web at all. Treat "the Internet and the WWW are the same thing" as a wrong answer.

India’s own timeline

  • ERNET (Education and Research Network) began in 1986, connecting Indian academic and research institutions — India’s own NSFNET-style, research-only network.
  • VSNL (Videsh Sanchar Nigam Limited) opened public internet access in India on 15 August 1995. Before that date, being online in India essentially meant being in a university.

Milestones at a glance

WhenWhat happenedWhy it mattered
1969ARPANET operational with 4 nodesFirst working packet-switched network
1 Jan 1983ARPANET moves from NCP to TCP/IPDifferent networks can now interconnect
Mid-1980sNSFNET backbone; 56 kbps, then T1 in 1988, T3 in 1991Universities across the US join a shared backbone
1986ERNET starts in IndiaIndia’s research network
1989WWW proposed at CERN by Tim Berners-LeeAn easy service built on top of the Internet
1990ARPANET decommissionedIts job was done; TCP/IP had spread
1993CERN places the WWW software in the public domainAnyone may build a website, licence-free
April 1995NSFNET backbone retired; commercial ISPs take overInternet becomes a public utility
15 Aug 1995VSNL opens public internet access in IndiaOrdinary Indian users get online

Worked example

Arrange these events in chronological order and give a one-line reason for each: (a) NSFNET backbone retired, (b) ARPANET’s first four nodes go live, (c) ARPANET switches to TCP/IP, (d) WWW proposed at CERN, (e) public internet access opens in India.

Answer: (b) 1969 — the first packet-switched network. (c) 1 January 1983 — a common protocol makes internetworking possible. (d) 1989 — Berners-Lee’s proposal at CERN, a service built on a network that already existed. (a) April 1995 — the research backbone shuts down as commercial ISPs take over. (e) 15 August 1995 — VSNL opens public access in India, a few months later the same year. Note the logic of the order: the network came first, the common protocol second, and the Web only after both existed. That is why (d) can never come before (c).

ARPANET Advanced Research Projects Agency NETwork — operational 1969, four nodes, first packet-switched network Funded by ARPA (US Department of Defense); decommissioned 1990.
NSFNET National Science Foundation NETwork — research/education backbone from the mid-1980s, retired April 1995 Backbone speeds: 56 kbps, then T1 = 1.544 Mbps (1988), then T3 = 44.736 Mbps (1991).
NCP to TCP/IP ARPANET switched from NCP to TCP/IP on 1 January 1983 The one date in this chapter worth memorising exactly — it is the start of internetworking.
Acceptable Use Policy NSFNET rule: backbone for research and education only, no commercial traffic Removing this restriction is what let commercial ISPs create the internet we use.
Internet vs WWW Internet = global network of networks running TCP/IP; WWW = hyperlinked pages fetched over HTTP, running on the Internet Email and video calls use the Internet but not the Web. They are not synonyms.
India ERNET (Education and Research Network) from 1986; VSNL public internet access from 15 August 1995 Same pattern as the US: research network first, public access afterwards.
Remember
  • ARPANET (1969, four nodes by December) proved packet switching worked; it was funded by ARPA under the US Department of Defense and decommissioned in 1990.
  • TCP/IP replaced NCP on ARPANET on 1 January 1983 — the point at which different networks could interconnect, which is what 'internet' means.
  • NSFNET's backbone (56 kbps, then T1 1.544 Mbps in 1988, T3 44.736 Mbps in 1991) carried research and education traffic only; its Acceptable Use Policy barred commercial use, and the backbone was retired in April 1995.
  • The Internet is the network of networks; the WWW, proposed by Tim Berners-Lee at CERN in 1989 and released into the public domain by CERN in 1993, is only one service running on it.
  • India: ERNET from 1986 for research, and public access from VSNL on 15 August 1995.

Data Communication and Its Five Components

Quick answer Data communication is the exchange of data between two devices through a transmission medium, and it always needs exactly five components — message, sender, receiver, transmission medium and protocol — of which students most often forget the protocol.

Data communication is the exchange of data between two devices through some transmission medium. "Communication" here does not just mean the data left the sender; it means the receiver got it and understood it. That second half is why a protocol is a component and not an optional accessory.

Five components must be present. The board asks for all five, one line each.

#ComponentWhat it isIn a WhatsApp photo sent from Pune to Chennai
1MessageThe data to be communicated: text, number, image, audio, videoThe 2 MB photograph
2SenderThe device that sends the messageAarav’s phone in Pune
3ReceiverThe device that receives the messageMeera’s phone in Chennai
4Transmission medium (communication media)The physical path the message travels alongWi-Fi radio to the router, optical fibre across the country, mobile radio to Meera’s phone
5ProtocolThe set of rules both devices agree to followTCP/IP, with HTTPS above it

Communication media in one pass

  • Guided (wired) — the signal is confined inside something. Twisted pair: cheap, easy, used for ordinary LAN cabling, limited distance. Coaxial cable: better shielded against interference, used for cable TV and older LANs. Optical fibre: carries light through glass, so electrical noise cannot corrupt it; highest capacity, longest distance, highest cost.
  • Unguided (wireless) — the signal travels through open space. Radio waves: Wi-Fi and FM, pass through walls, omnidirectional. Microwaves: need line of sight between towers. Infrared: very short range and blocked by walls, which is why a TV remote works only inside the room. Satellite: enormous coverage including remote areas, but the long path introduces noticeable delay.

Protocol: the component that is not a physical object

A protocol is an agreed set of rules that governs how data is formatted, how it is grouped, in what order it is sent, how fast, how errors are detected, and what to do when something is lost. Both ends must use the same protocol. Common examples: TCP/IP (the base suite of the internet), HTTP and HTTPS (web pages), FTP (file transfer), SMTP and POP3 (sending and fetching email), PPP (point-to-point links).

Think of two people on a phone call. Having a working line is not enough. They must share a language — Hindi, Tamil, English — and a convention for taking turns. A sender and receiver need exactly those two things, written down precisely. Without an agreed protocol the bits still arrive; they simply do not mean anything, like a fax machine’s screech coming out of a voice call.

One more point that catches students: sender and receiver are roles that swap constantly. When Meera’s phone sends back the blue tick acknowledgement, her phone is the sender and Aarav’s is the receiver.

Worked example

A cold storage unit in Chennai has a temperature sensor that reports every minute to a monitoring server in Bengaluru over a mobile data connection. Identify the five components of data communication.

ComponentIn this system
MessageThe reading, for example "4.2 degrees Celsius", with a timestamp and the sensor’s ID
SenderThe sensor node in the Chennai cold store
ReceiverThe monitoring server in Bengaluru
Transmission mediumMobile radio link from the sensor to the tower, then optical fibre between cities
ProtocolTCP/IP — it defines addressing, ordering, error checking and re-sending of lost readings

Now change one thing: the server replies "reading received". The roles reverse — the server becomes the sender and the sensor becomes the receiver — while the medium and the protocol stay exactly the same. That is the cleanest way to show you understand which components are fixed and which are role-based.

Five components Message + Sender + Receiver + Transmission medium + Protocol Five, not four. Students drop 'protocol' because it is not something you can touch.
Message The data being communicated — text, number, image, audio or video The message is the content, not the file or the wire that carries it.
Transmission medium Guided: twisted pair, coaxial, optical fibre | Unguided: radio, microwave, infrared, satellite Optical fibre carries light, so electrical interference cannot corrupt the signal.
Protocol Agreed rules for format, timing, sequencing and error handling — TCP/IP, HTTP, FTP, SMTP, PPP Both ends must use the same protocol; otherwise data arrives but carries no meaning.
Sender / receiver Sender = source device; Receiver = destination device These reverse for every acknowledgement — they describe a direction, not a machine.
Remember
  • Data communication = exchange of data between two devices through a transmission medium, such that the receiver understands it.
  • The five components are message, sender, receiver, transmission medium and protocol — protocol is the one most often missed.
  • Media split into guided (twisted pair, coaxial, optical fibre) and unguided (radio, microwave, infrared, satellite).
  • A protocol fixes format, timing, sequencing and error handling; both ends must use the same one or the bits are meaningless.
  • Sender and receiver are roles that reverse on every reply or acknowledgement.

Measuring Capacity: Bandwidth vs Data Transfer Rate

Quick answer Bandwidth is the maximum capacity of a medium — a frequency range in hertz, or a ceiling in bits per second — while data transfer rate is the number of bits actually delivered per second, which can never exceed the bandwidth and in practice falls below it; it is calculated as total bits divided by time taken.

This is the pair the board tests hardest in this chapter, and the pair students confuse most. Fix the idea in one line: bandwidth is what the link could do; data transfer rate is what it actually did.

Bandwidth = capacity

Bandwidth is measured two ways, depending on whether you are talking about the medium or about a digital link.

  • Frequency sense (analog). Bandwidth is the range of frequencies the medium can carry: highest frequency minus lowest frequency. The unit is the hertz (Hz), with multiples kHz (103 Hz), MHz (106 Hz) and GHz (109 Hz). A telephone voice channel passes roughly 300 Hz to 3400 Hz, so its bandwidth is about 3100 Hz — plenty for speech, which is exactly why music sounds thin and flat over a landline.
  • Digital sense. Bandwidth is the maximum number of bits the link can carry per second, quoted in bps and its multiples. When your plan says "100 Mbps", that is a bandwidth figure — a ceiling, a promise about the best case.

Data transfer rate = what you actually got

Data transfer rate is the amount of data actually moved per unit of time, and its unit is always bits per second: bps, Kbps, Mbps, Gbps, Tbps. You measure it after the fact, by dividing.

The road analogy is worth remembering because it also explains the gap. Bandwidth is the number of lanes on the Mumbai–Pune expressway. Data transfer rate is how many vehicles actually reached Pune in that hour. The lanes set the ceiling; a toll queue, a breakdown or a slow truck decides the reality. The data transfer rate can never be more than the bandwidth, and in practice it is less.

Why the real rate falls short

  • Protocol overhead — every packet carries header bits (addresses, sequence numbers, error checks) that are not part of your file, but still occupy the link.
  • Sharing — the ISP’s line into your colony is shared. Between 8 pm and 11 pm everyone is streaming.
  • Congestion — packets queue at routers when more traffic arrives than a link can forward.
  • Noise, attenuation and distance — a long or weak link corrupts bits, and corrupted data must be re-sent.
  • Weak Wi-Fi — the last few metres between your laptop and the router are often the slowest part of the whole journey.
  • The far end — a busy server can be slower than your connection.

Units, and the two traps

QuantityUnits
Bandwidth (frequency sense)Hz, kHz = 103 Hz, MHz = 106 Hz, GHz = 109 Hz
Bandwidth (digital) and data transfer ratebps, Kbps = 1000 bps, Mbps = 106 bps, Gbps = 109 bps, Tbps = 1012 bps
File sizebyte = 8 bits; KB, MB, GB (and KBps, MBps for byte-based rates)

Trap 1 — bits versus bytes. ISPs advertise in bits (Mbps); your download window shows bytes (MB/s). Divide by 8. A perfect 100 Mbps link delivers at most 100 ÷ 8 = 12.5 MB per second, which is why a "100 Mbps" plan looks like "12 MB/s" on screen and people wrongly complain they were cheated.

Trap 2 — which power to use. In telecommunication, data-rate prefixes are powers of ten: 1 Kbps = 1000 bps. Some textbooks instead use 1 Kbps = 1024 bps. Both appear in answer keys. Write the convention you used in one line at the start of your answer; the method still earns the marks. Everything below uses powers of ten.

Worked example 1 — the exact form the board asks

Meera’s broadband plan is advertised as 100 Mbps. She downloads a 3 GB file and it takes exactly 5 minutes. (a) What data transfer rate did she get? (b) What was the ideal time? (c) Why the difference?

  1. Convert the file size to bits: 3 GB = 3 × 109 bytes = 3 × 109 × 8 = 24,000,000,000 bits.
  2. Convert time to seconds: 5 minutes = 300 s.
  3. Data transfer rate = 24,000,000,000 ÷ 300 = 80,000,000 bps = 80 Mbps.
  4. Ideal time at full bandwidth = 24,000,000,000 ÷ 100,000,000 = 240 s = 4 minutes.
  5. She achieved 80 ÷ 100 = 80% of the advertised capacity. The missing fifth went into packet headers, a shared line at peak hour and Wi-Fi losses in the last few metres. Note the language: 100 Mbps is bandwidth, 80 Mbps is data transfer rate, and the second can never exceed the first.

Worked example 2 — download time

How long, at best, does a 2 GB movie take on a 50 Mbps link? Bits = 2 × 109 × 8 = 16,000,000,000. Time = 16,000,000,000 ÷ 50,000,000 = 320 s = 5 minutes 20 seconds. "At best" matters: the real time will be longer, because 50 Mbps is the ceiling.

Worked example 3 — how much data a stream eats

An online class runs a video call at 3 Mbps for 40 minutes. Data used = 3,000,000 × (40 × 60) = 7,200,000,000 bits = 7,200,000,000 ÷ 8 = 900,000,000 bytes = 900 MB. That single 40-minute class swallows almost an entire 1 GB daily pack — the practical reason data limits and video quality settings exist.

Data transfer rate Rate = total bits transferred / time taken in seconds bits per second (bps) · Measured after the fact. If the answer comes out above the stated bandwidth, you made an arithmetic error.
File size to bits bits = bytes × 8 ; 1 MB = 8 × 10^6 bits ; 1 GB = 8 × 10^9 bits bits · The single most common lost mark in this chapter is forgetting the × 8.
Download time Time = (file size in bits) / (data transfer rate in bps) seconds · Answer is a best case; write 'minimum time' if the rate given is the advertised bandwidth.
Analog bandwidth Bandwidth = highest frequency − lowest frequency hertz (Hz), kHz, MHz, GHz · A telephone voice channel of about 300 Hz to 3400 Hz has a bandwidth of about 3100 Hz.
Rate unit ladder 1 Kbps = 1000 bps ; 1 Mbps = 1000 Kbps ; 1 Gbps = 1000 Mbps ; 1 Tbps = 1000 Gbps bps · Some textbooks use 1024 instead of 1000. State your assumption in one line and your method still scores.
Bandwidth vs data transfer rate Bandwidth = maximum possible capacity ; Data transfer rate = actually achieved ; rate is at most the bandwidth Mbps of a plan is bandwidth; MB/s on your screen is a byte-based rate — divide Mbps by 8 to compare.
Remember
  • Bandwidth is the maximum capacity of the medium; data transfer rate is the bits actually delivered per second, and it can never exceed the bandwidth.
  • Bandwidth is measured in hertz when it means a frequency range, and in bits per second when quoted for a digital link; data transfer rate is only ever in bits per second.
  • Always convert file size to bits first by multiplying bytes by 8 — this is where most calculation marks are lost.
  • Data transfer rate = total bits transferred divided by time taken; download time = bits divided by rate.
  • The real rate falls below the advertised bandwidth because of protocol headers, a shared line, congestion, noise and a slow server at the far end.

IP Addresses and Switching Techniques

Quick answer An IP address is the unique numeric address that identifies a device on a TCP/IP network — 32 bits in dotted decimal for IPv4, 128 bits in hexadecimal for IPv6 — and switching decides how data reaches that address: circuit switching reserves one path for the whole conversation, packet switching reserves nothing.

Part A — the IP address

An IP address (Internet Protocol address) is a unique numeric address assigned to every device on a TCP/IP network so that data can be delivered to the correct machine. It does for data what a postal address does for a letter: without it the packet has nowhere to go.

IPv4 addresses are 32 bits long, written as four decimal numbers called octets, separated by dots. Each octet is 8 bits, so its value runs from 0 to 255. For example 192.168.10.15. The total number of possible IPv4 addresses is 232 = 4,294,967,296, about 4.3 billion.

Every IP address splits into a network part (which network the device is on) and a host part (which device on that network) — the same logic as a PIN code followed by a house number.

Two distinctions worth knowing:

  • Static vs dynamic. A static IP is configured once and stays fixed — used for servers and network printers, so people can always find them. A dynamic IP is handed out afresh each time a device connects. That is why your phone’s IP address at school is not the one it had at home.
  • Public vs private. Public addresses are unique across the whole internet. Private addresses (ranges beginning 10., 172.16. to 172.31., and 192.168.) are reused inside homes, schools and offices and are not routed on the internet. The address 127.0.0.1 is special: it always means "this machine itself", the loopback address.

Worked example — valid or not?

AddressVerdictReason
192.168.10.15ValidAll four octets lie in 0–255; a private address
10.0.0.1ValidPrivate address, commonly used inside organisations
172.16.5.4ValidPrivate (the 172.16–172.31 range)
8.8.8.8ValidA public address, reachable across the internet
127.0.0.1ValidLoopback — refers to the device itself, never leaves it
192.168.1.256Invalid256 cannot be stored in 8 bits; an octet stops at 255
300.1.1.1Invalid300 is greater than 255

IPv6, in exactly as much detail as the syllabus needs. Roughly 4.3 billion addresses turned out to be too few for the phones, laptops, cameras and appliances now connected, so IPv6 uses 128 bits, written as eight groups of four hexadecimal digits separated by colons:

2001:0db8:0000:0000:0000:ff00:0042:8329

which can be written more compactly as 2001:db8::ff00:42:8329. That gives 2128 = 340,282,366,920,938,463,463,374,607,431,768,211,456 possible addresses. For the exam the useful contrast is short: IPv4 is 32-bit dotted decimal, IPv6 is 128-bit hexadecimal with colons, and IPv6 exists because IPv4 addresses ran out.

Part B — switching techniques

You cannot run a separate wire from every device to every other device; for even a thousand devices that would be 1000 × 999 ÷ 2 = 499,500 links. So devices share links, and at every junction something has to decide where the data goes next. That decision is switching.

Circuit switching

A complete physical path is found and reserved end to end before any data moves, and it stays reserved for the entire conversation — even during the seconds when nobody is speaking. It works in three phases:

  1. Circuit establishment (setup) — a path is located and reserved from sender to receiver.
  2. Data transfer — everything travels along that one path, arriving in the order it was sent.
  3. Circuit disconnection (teardown) — the path is released for other users.

The classic example is the traditional landline telephone network. Advantages: once connected you have guaranteed capacity, a constant delay, in-order delivery, and no address attached to every small piece of data. Disadvantages: you wait through the setup phase before anything can be sent; the reserved capacity is wasted during silence; when all circuits are taken new callers are simply refused; and if one link on the reserved path breaks, the entire call drops and must be set up again.

Packet switching

The message is broken into small pieces called packets. Each packet carries a header plus a slice of the data, and the header holds the source IP address, the destination IP address and a sequence number. Nothing is reserved. Each router reads the destination address and forwards the packet on whichever link is best at that moment (store-and-forward), so different packets of the same message may travel by different routes and arrive out of order or slightly late. The destination uses the sequence numbers to reassemble the message correctly and asks for any missing packet again.

The classic example is the Internet itself. Advantages: links are shared efficiently, since a gap in your traffic is instantly used by someone else’s; there is no setup delay; and if a link fails, later packets simply take another route. Disadvantages: delay varies from packet to packet (jitter), packets can be lost or reordered, every packet carries header overhead, and the receiver has to do reassembly work.

Point of comparisonCircuit switchingPacket switching
PathOne dedicated path reserved end to endNo dedicated path; each packet routed independently
Setup phaseRequired before data transferNot required
Order of arrivalAlways in orderMay arrive out of order; reassembled using sequence numbers
Use of capacityWasted when the line is idleShared and used efficiently
Under heavy loadNew connections are refusedEveryone is accepted; everyone slows down
If a link breaksThe whole call dropsLater packets take another route
OverheadLow per unit of data; high setup costHeader on every packet
ExampleLandline telephone networkThe Internet

Why a phone call and a video stream fail differently. A landline call is circuit-switched: either you get a reserved path and the quality holds steady for the whole call, or you hear "all lines are busy" and get no call at all. A video stream is packet-switched: it is never refused, but on a busy evening its packets queue behind everyone else’s, so it buffers, freezes and drops to a blurry resolution. Circuit switching rations by refusing new users; packet switching rations by degrading every user a little. That single sentence answers most scenario questions on this topic.

Worked example

A 5 MB file is sent across a packet-switched network with 1000 bytes of data in each packet.

  1. How many packets? 5 MB = 5,000,000 bytes; 5,000,000 ÷ 1000 = 5000 packets (plus a header on each one, which is why the bits on the wire exceed 5 MB).
  2. Packet 3721 arrives after packet 3900. Is the file corrupted? No. Packets travel independently and may take different routes, so out-of-order arrival is normal. The receiver holds them and reassembles them using the sequence numbers in the headers.
  3. Packet 4010 never arrives. What happens? Only that one packet is requested again — not the whole 5 MB. Compare this with circuit switching, where a broken link costs you the entire conversation.
  4. Which technique suits a landline voice call, and which suits downloading a PDF? The voice call suits circuit switching: it is continuous, at a steady rate, and sensitive to varying delay, so a reserved path is worth its cost. The PDF download suits packet switching: it is bursty and can tolerate small delays, so reserving a path that would sit idle between bursts would waste capacity.
IPv4 address 32 bits = 4 octets in dotted decimal, each octet 0 to 255 (e.g. 192.168.10.15) Total 2^32 = 4,294,967,296 addresses. Any octet above 255 is instantly invalid — the fastest mark in the paper.
IPv6 address 128 bits = 8 groups of 4 hexadecimal digits separated by colons (e.g. 2001:0db8:0000:0000:0000:ff00:0042:8329) Introduced because IPv4 addresses ran out; leading zeros and one run of zero groups may be compressed.
Special IPv4 addresses 127.0.0.1 = loopback (this machine) ; 10.x.x.x, 172.16-172.31.x.x, 192.168.x.x = private Private addresses are reused inside schools and homes and are not routed on the internet.
Circuit switching phases Circuit establishment (setup) -> Data transfer -> Circuit disconnection (teardown) The path stays reserved even when nobody is sending, so idle capacity is wasted.
Packet header carries Source IP address + Destination IP address + Sequence number + data The sequence number is what lets out-of-order packets be reassembled correctly.
Number of packets Packets = message size / data carried per packet (round up) Bits actually sent exceed the file size, because every packet also carries a header.
Remember
  • An IPv4 address is 32 bits, written as four octets in dotted decimal, each 0 to 255; anything above 255 in an octet makes the address invalid.
  • 2^32 = 4,294,967,296 IPv4 addresses were not enough, so IPv6 uses 128 bits written as eight groups of four hexadecimal digits separated by colons.
  • Circuit switching reserves one path end to end for the whole conversation through three phases — setup, data transfer, teardown — and wastes that capacity during silence.
  • Packet switching reserves nothing: each packet carries source IP, destination IP and a sequence number, is routed independently, and is reassembled at the destination.
  • Under load, circuit switching refuses new connections while packet switching accepts everyone and degrades quality for all — the reason a call says 'lines busy' but a video merely buffers.

The formula sheet

Every formula in this chapter, in one place — screenshot it before your exam.

Computer network = two or more autonomous devices + a communication medium, connected to share data and resources
Definition to write in the exam
Node = any addressable device on the network — PC, printer, phone, camera, router; host = a node that is an end device
Node / host
Server = provides the resource; Client = requests the resource
Server vs client
Resource sharing + Communication + Centralised data/backup + Reliability + Cost saving
Advantages (answer hook)
Setup and maintenance cost + security/malware spread + administration effort + single point of failure
Limitations (answer hook)
Advanced Research Projects Agency NETwork — operational 1969, four nodes, first packet-switched network
ARPANET
National Science Foundation NETwork — research/education backbone from the mid-1980s, retired April 1995
NSFNET
ARPANET switched from NCP to TCP/IP on 1 January 1983
NCP to TCP/IP
NSFNET rule: backbone for research and education only, no commercial traffic
Acceptable Use Policy
Internet = global network of networks running TCP/IP; WWW = hyperlinked pages fetched over HTTP, running on the Internet
Internet vs WWW
ERNET (Education and Research Network) from 1986; VSNL public internet access from 15 August 1995
India
Message + Sender + Receiver + Transmission medium + Protocol
Five components
The data being communicated — text, number, image, audio or video
Message
Guided: twisted pair, coaxial, optical fibre | Unguided: radio, microwave, infrared, satellite
Transmission medium
Agreed rules for format, timing, sequencing and error handling — TCP/IP, HTTP, FTP, SMTP, PPP
Protocol
Sender = source device; Receiver = destination device
Sender / receiver
Rate = total bits transferred / time taken in seconds
Data transfer ratebits per second (bps)
bits = bytes × 8 ; 1 MB = 8 × 10^6 bits ; 1 GB = 8 × 10^9 bits
File size to bitsbits
Time = (file size in bits) / (data transfer rate in bps)
Download timeseconds
Bandwidth = highest frequency − lowest frequency
Analog bandwidthhertz (Hz), kHz, MHz, GHz
1 Kbps = 1000 bps ; 1 Mbps = 1000 Kbps ; 1 Gbps = 1000 Mbps ; 1 Tbps = 1000 Gbps
Rate unit ladderbps
Bandwidth = maximum possible capacity ; Data transfer rate = actually achieved ; rate is at most the bandwidth
Bandwidth vs data transfer rate
32 bits = 4 octets in dotted decimal, each octet 0 to 255 (e.g. 192.168.10.15)
IPv4 address
128 bits = 8 groups of 4 hexadecimal digits separated by colons (e.g. 2001:0db8:0000:0000:0000:ff00:0042:8329)
IPv6 address
127.0.0.1 = loopback (this machine) ; 10.x.x.x, 172.16-172.31.x.x, 192.168.x.x = private
Special IPv4 addresses
Circuit establishment (setup) -> Data transfer -> Circuit disconnection (teardown)
Circuit switching phases
Source IP address + Destination IP address + Sequence number + data
Packet header carries
Packets = message size / data carried per packet (round up)
Number of packets

Test yourself

Tap an answer to check it instantly — you'll see why it's right, and what to revise if it isn't.

0 correct · 0/12 answered
Q1

NSFNET stands for:

Q2

When ARPANET first became operational in 1969, it connected:

Q3

On 1 January 1983 ARPANET replaced NCP with TCP/IP. The main significance of this change was that:

Q4

NSFNET's Acceptable Use Policy meant that:

Q5

Which of the following statements is correct?

Q6

Which of the following is NOT one of the five components of data communication?

Q7

The bandwidth of an analog communication channel is measured in:

Q8

A broadband plan is advertised as 100 Mbps. A 3 GB file is downloaded in exactly 5 minutes (take 1 GB = 10^9 bytes). The data transfer rate actually achieved is:

Q9

At best, how long will a 1.5 GB file take to download over a 25 Mbps connection (take 1 GB = 10^9 bytes)?

Q10

Which of the following is NOT a valid IPv4 address?

Q11

An IPv4 address is 32 bits long. An IPv6 address is:

Q12

On a busy evening a landline call gets 'all lines are busy', while a video stream on the same broadband keeps playing but buffers and turns blurry. The reason is that:

NCERT solutions & previous-year questions

Step-by-step model answers — tap a question to reveal the full solution.

NCERT questions 6

1 Expand the following terms: (i) ARPANET (ii) NSFNET (iii) ISP (iv) IP (v) WWWEvolution of networking
  • ARPANET — Advanced Research Projects Agency NETwork. Funded by ARPA under the US Department of Defense, it became operational in 1969 with four nodes and was the first working packet-switched network.
  • NSFNET — National Science Foundation NETwork. A backbone built by the US National Science Foundation in the mid-1980s to link research institutions; its Acceptable Use Policy permitted only research and education traffic, and the backbone was retired in April 1995.
  • ISP — Internet Service Provider. A company that gives users a connection to the internet, for example through broadband or mobile data.
  • IP — Internet Protocol. The protocol that defines addressing and routing of packets; every device on the network gets an IP address.
  • WWW — World Wide Web. A service running on the internet consisting of documents linked by hyperlinks and fetched over HTTP, proposed by Tim Berners-Lee at CERN in 1989.
2 What is a computer network? Write any three advantages of using a computer network.Introduction to computer networks

Definition: A computer network is a collection of two or more autonomous computing devices connected by a communication medium so that they can exchange data and share resources. The word autonomous is important — each device must be able to work on its own, so a printer wired to a single computer does not by itself make a network.

Three advantages:

  1. Resource sharing — one printer, one scanner or one internet connection can serve every machine in the lab instead of buying one per machine.
  2. Communication — email, chat, file transfer and video conferencing between people in different rooms, cities or countries.
  3. Centralised data and reliable backup — data is stored on a server, so everyone works on the same current copy and one nightly backup protects everybody’s work. As a bonus, if one client machine fails, the data is still safe on the server.

Note the trade-off (often asked as a follow-up): networks cost money to set up and administer, they let malware spread from one machine to many, and if the server or the shared link fails everyone stops working at once.

3 Name the components of data communication and explain each of them briefly.Data communication

Data communication is the exchange of data between two devices through a transmission medium. It has five components:

  1. Message — the data actually being communicated: text, number, image, audio or video.
  2. Sender — the device that sends the message, for example a phone, a computer or a sensor.
  3. Receiver — the device that receives the message. Sender and receiver swap roles whenever a reply or acknowledgement is sent.
  4. Transmission medium — the physical path the message travels along. It may be guided (twisted pair, coaxial cable, optical fibre) or unguided (radio waves, microwaves, infrared, satellite).
  5. Protocol — the set of rules both devices agree to follow, covering data format, timing, sequencing and error handling. Examples are TCP/IP, HTTP, FTP and SMTP.

Why the protocol counts as a component: even with a perfect medium and a working sender and receiver, data that arrives in a format the receiver does not understand carries no information. Two people need a shared language and a turn-taking convention; a protocol is exactly that, written down for machines.

4 What is bandwidth? What is data transfer rate? How are they different? Give the units of measurement of each.Bandwidth and data transfer rate

Bandwidth is the capacity of a communication medium — the maximum it is capable of carrying. In the frequency sense it is the range of frequencies the medium can carry, that is highest frequency minus lowest frequency, measured in hertz (Hz) and its multiples kHz, MHz and GHz. When quoted for a digital link it is the maximum number of bits per second the link can carry, for example a 100 Mbps broadband plan.

Data transfer rate is the amount of data actually transferred per unit of time. It is measured in bits per second (bps) and its multiples Kbps, Mbps, Gbps and Tbps, and it is calculated as total bits transferred divided by the time taken.

BasisBandwidthData transfer rate
MeaningMaximum capacity of the mediumData actually delivered per second
UnitsHz, kHz, MHz, GHz (or bps for a digital link)bps, Kbps, Mbps, Gbps
Known when?Fixed property of the link, known in advanceMeasured after a transfer is complete
RelationshipSets the ceilingAlways at most the bandwidth, usually less

Illustration: on a 100 Mbps line a 3 GB file takes 5 minutes. Taking 1 GB = 109 bytes, 3 GB = 24,000,000,000 bits and 5 minutes = 300 s, so the data transfer rate is 24,000,000,000 / 300 = 80,000,000 bps = 80 Mbps. The bandwidth is 100 Mbps, the rate achieved is 80 Mbps, and the gap is caused by packet headers, a line shared with other users, congestion and losses on the Wi-Fi link.

5 What is an IP address? Why is it required? Write one difference between IPv4 and IPv6 addresses.IP address

Definition: An IP (Internet Protocol) address is a unique numeric address assigned to a device on a TCP/IP network so that data sent to it can be delivered to the correct machine.

Why it is required: a packet travelling over a shared network must say where it is going. The IP address does for a packet what a postal address does for a letter — it identifies both the network the device belongs to and the particular device on that network, so routers along the way know where to forward it. Without unique addresses, two machines could not be told apart and replies could not be returned.

Difference between IPv4 and IPv6:

BasisIPv4IPv6
Length32 bits128 bits
NotationFour decimal octets separated by dots, each 0 to 255, e.g. 192.168.10.15Eight groups of four hexadecimal digits separated by colons, e.g. 2001:0db8:0000:0000:0000:ff00:0042:8329
Address space2 to the power 32 = 4,294,967,296 addresses2 to the power 128 addresses

IPv6 was introduced because the roughly 4.3 billion IPv4 addresses were not enough for the number of devices now connected.

6 Differentiate between circuit switching and packet switching. Which of the two is used by the Internet, and why?Switching techniques
BasisCircuit switchingPacket switching
PathA dedicated physical path is reserved end to end for the whole conversationNo path is reserved; each packet is routed independently
PhasesSetup, data transfer, teardownNo setup phase; data can be sent immediately
Order of arrivalData always arrives in the order it was sentPackets may arrive out of order and are reassembled using sequence numbers
Use of capacityReserved capacity is wasted when the line is idleLinks are shared, so idle moments are used by other traffic
Effect of a broken linkThe whole connection drops and must be re-establishedLater packets are routed around the failure
ExampleTraditional landline telephone networkThe Internet

The Internet uses packet switching. The reasons follow directly from the table: internet traffic is bursty, so reserving a path that would sit idle between bursts would waste enormous capacity; millions of users must share the same links at once; and a network that can route packets around a failed link keeps working when a cable is cut, which was the original design goal of ARPANET. Packets carry the source IP address, the destination IP address and a sequence number, so they can be forwarded independently and reassembled correctly at the destination.

Previous-year board questions 4

Q1 Expand the following terms: (i) ARPANET (ii) NSFNET Board pattern (2022-23), 1 mark

(i) ARPANET — Advanced Research Projects Agency NETwork. (half mark)

(ii) NSFNET — National Science Foundation NETwork. (half mark)

Examiner’s note: full forms only are required for the mark; do not lose time writing history. If the question adds 'and state its significance', add one line each: ARPANET (1969) was the first packet-switched network, with four nodes; NSFNET was the research and education backbone of the mid-1980s whose Acceptable Use Policy barred commercial traffic. Spell out every word — abbreviating any word inside the expansion loses the mark.

Q2 Riya's broadband connection is advertised as 50 Mbps. She downloads a 900 MB file and it takes 3 minutes. (i) Calculate the data transfer rate she actually achieved. (ii) Using the terms bandwidth and data transfer rate, explain why the two figures differ. Board pattern (2023-24), 2 marks

(i) Calculation (1 mark)

Assume 1 MB = 106 bytes and 1 Mbps = 106 bits per second.

  1. File size in bits = 900 × 106 × 8 = 7,200,000,000 bits
  2. Time = 3 minutes = 180 seconds
  3. Data transfer rate = 7,200,000,000 / 180 = 40,000,000 bps = 40 Mbps

(ii) Explanation (1 mark)

50 Mbps is the bandwidth — the maximum capacity the link is capable of carrying. 40 Mbps is the data transfer rate — the amount of data actually delivered per second, which works out to 80% of the capacity. The data transfer rate can never exceed the bandwidth, and in practice falls below it because every packet also carries header bits that are not part of the file, because the ISP’s line is shared with other users at peak time, because packets queue at congested routers, and because of losses on the Wi-Fi link between the router and the laptop.

Useful extra line if marks allow: at the full 50 Mbps the download would have taken 7,200,000,000 / 50,000,000 = 144 seconds, that is 2 minutes 24 seconds, instead of 3 minutes.

Common errors: forgetting to multiply bytes by 8 (gives 5 Mbps, wrong by a factor of 8) and forgetting to convert minutes to seconds.

Q3 Write any three differences between circuit switching and packet switching. Name the switching technique used by the Internet and give one reason for the choice. Board pattern (2024-25), 3 marks

Any three of these differences (2 marks; four are listed so you can write the three you remember best)

Circuit switchingPacket switching
A dedicated path is reserved from sender to receiver for the entire duration of the communication.No dedicated path is reserved; each packet is routed independently and different packets may take different routes.
A setup (circuit establishment) phase is needed before any data can be sent, and a teardown phase afterwards.No setup phase is needed; data can be sent immediately.
Data always arrives in the order it was sent, so no reassembly is needed.Packets may arrive out of order and are reassembled at the destination using the sequence numbers in their headers.
Reserved capacity is wasted whenever the line is idle, and new users are refused when all circuits are busy.Links are shared, so idle capacity is used by other traffic; under load everyone is served but everyone slows down.

Technique used by the Internet (1 mark)

The Internet uses packet switching. Reason (any one is enough): internet traffic is bursty, so a reserved path would sit idle most of the time and waste capacity, whereas packet switching lets millions of users share the same links efficiently. Equally acceptable: if a link fails, later packets are simply routed along a different path, so the network keeps working — the resilience that ARPANET was designed for in the first place.

Q4 (i) What is an IP address? (ii) Out of 192.168.0.300 and 172.16.4.9, which is a valid IPv4 address? Give a reason. (iii) State the number of bits in an IPv4 address and in an IPv6 address. Board pattern (2024-25), 2 marks

(i) An IP address is a unique numeric address assigned to a device on a TCP/IP network so that data can be delivered to the correct machine. It identifies both the network the device is on and the device itself, the way a PIN code and a house number together identify one address. (half mark)

(ii) 172.16.4.9 is valid. An IPv4 address consists of four octets and each octet is 8 bits, so an octet can only hold a value from 0 to 255. In 192.168.0.300 the last octet is 300, which is greater than 255 and cannot be stored in 8 bits, so that address is invalid. In 172.16.4.9 all four values lie within 0 to 255. (1 mark — the reason carries the mark, not the choice)

(iii) An IPv4 address is 32 bits long, written as four decimal octets separated by dots. An IPv6 address is 128 bits long, written as eight groups of four hexadecimal digits separated by colons. IPv6 was introduced because the 232 = 4,294,967,296 IPv4 addresses were not enough for the number of devices now connected. (half mark)

Part of Priodemy for School

Interactive CBSE lessons, Class 8–12 — free with every school on Priodemy EduSuite. Explore more chapters and labs on the Priodemy for School hub.

Ask AI