Aimify IP Material
Class 12 · Chapter 5

Introduction to Computer Networks

In CBSE syllabusUnit 3: Introduction to Computer Networks (10 marks)~14 periods
20 MCQs37 written Qs5 practicals

Overview

This chapter explains how computers are connected into networks of different sizes, the devices that make these networks work, and the common layouts (topologies). It then moves to the Internet and the Web: URLs, email, chat and VoIP, websites and web pages, web servers and hosting, and how to use and configure browsers safely, including cookies and add-ons.

The whole unit is in the 2025-26 syllabus: network types (PAN, LAN, MAN, WAN), devices (modem, hub, switch, repeater, router, gateway), topologies (star, bus, tree, mesh), Internet, URL, WWW and its applications, websites, web servers and hosting, and browsers (settings, add-ons, plug-ins, cookies). The Ethernet card and ring topology from NCERT are not listed and are treated as enrichment.

Learning outcomes

  • Students will be able to define a computer network and classify networks as PAN, LAN, MAN or WAN with examples.
  • Students will be able to explain the functions of modem, hub, switch, repeater, router and gateway and compare hub, switch and router.
  • Students will be able to describe star, bus, tree and mesh topologies with their advantages and disadvantages.
  • Students will be able to differentiate the Internet from the WWW and identify the parts of a URL.
  • Students will be able to explain email, chat and VoIP, and differentiate a website from a web page and a static page from a dynamic page.
  • Students will be able to explain the role of a web server and the steps to host a website.
  • Students will be able to configure browser settings and explain add-ons, plug-ins and cookies.
  • Students will be able to solve campus-network case studies: cable layout, server placement, devices and topology.

Lesson plan

Period 1
What is a network?

Hook: count networked devices in the room. Discuss resource sharing using the lab printer and Internet. Students list five networks they use daily.

Period 2
PAN, LAN, MAN, WAN

Board: build the comparison table together. Quick-fire game: teacher reads a situation (earbuds, school lab, city cable TV, ATM network) and students hold up P/L/M/W cards.

Periods 3-4
Network devices

Show real devices or photos (switch, router, modem, cable). Role-play: one student is a hub shouting a message to everyone; another is a switch handing a note only to the addressee; a third is a router choosing roads between 'towns'. Build the hub vs switch vs router table.

Periods 5-6
Topologies

Students draw star, bus, tree and mesh with string and chits on the desk, then 'cut' one link or the centre and observe what fails. Calculate mesh links with n(n-1)/2. Lab walk: identify the lab's topology.

Period 7
Case-study technique

Work through the textile campus case on the board: server in the block with most computers, shortest cable layout, repeater over 100 m, switch in every block, router/firewall at the gateway, WAN for another city. Students then solve the school case in pairs.

Period 8
Internet, WWW and URL

Timeline: ARPANET to the Web. Students dissect five URLs of Indian websites into protocol, domain, path and file. Discuss DNS as the Internet's phone book.

Period 9
Email, chat, VoIP

Compare email and chat on the board (asynchronous vs real-time). Short demo of a VoIP call; discuss why quality drops on a weak connection.

Period 10
Websites, static vs dynamic, web server, hosting

Lab: write a five-line static HTML page and open it; compare with a dynamic results/train-search page. Explain the request-response cycle and list the four hosting steps.

Periods 11-12
Browsers, settings, add-ons, cookies

Lab activity: change startup page and search engine, view and delete cookies, block third-party cookies, check site permissions and extensions. Discuss privacy and why private mode is not anonymity.

Periods 13-14
Revision and test

MCQ and assertion-reason quiz, two case studies under timed conditions, and peer marking against the model answers on this page.

Notes

What is a computer network?

A computer network is a group of two or more computing devices (computers, phones, printers, servers, smart TVs) connected with each other by a wired or wireless medium so that they can exchange data and share resources. Each device on a network is called a node or host.

Why do we network computers?

  • Resource sharing: one printer, scanner or internet connection serves a whole computer lab.
  • Data and file sharing: the school office and the principal see the same fee records.
  • Communication: email, chat, video calls and online classes.
  • Centralised storage and backup: data is kept on a server and backed up in one place.
  • Lower cost: costly software and hardware are bought once and shared.

Data travels across a network in small pieces called packets. Each packet carries the address of the sender and of the receiver, much like a letter in an envelope.

Teacher tip

Classroom hook: ask how many devices in the room are on a network right now (phones on mobile data, the smart board, the Wi-Fi printer). Students quickly see that networks are everywhere.

Types of networks: PAN, LAN, MAN, WAN

Networks are classified by the geographical area they cover.

  • PAN (Personal Area Network): connects the devices of one person within about 10 metres. Examples: a phone connected to wireless earbuds and a smartwatch by Bluetooth; a laptop sharing a phone's internet by USB tethering or a hotspot.
  • LAN (Local Area Network): connects devices within a room, a building or a campus, up to about 1 km. It is usually owned by one organisation and gives high speeds (10 Mbps to 1 Gbps or more over Ethernet). Examples: a school computer lab, an office floor, home Wi-Fi.
  • MAN (Metropolitan Area Network): covers a city or a town, roughly 30-40 km, by connecting many LANs. Examples: a cable TV network in a city, the network linking all branches of a bank in Pune.
  • WAN (Wide Area Network): spreads across states, countries or continents, connecting LANs and MANs through telephone lines, optical fibre cables, satellites or undersea cables. Examples: the network of Indian Railways reservation centres; the Internet is the largest WAN.
FeaturePANLANMANWAN
Full formPersonal Area NetworkLocal Area NetworkMetropolitan Area NetworkWide Area Network
Area coveredAbout 10 m around a personBuilding or campus, up to about 1 kmA city, about 30-40 kmCountry, continent or world
OwnershipSingle personSingle organisationOne or more organisations / governmentMany organisations, telecom companies
SpeedLow to moderateVery highHighLower than LAN, varies
Cost to set upVery lowLowHighVery high
Typical mediumBluetooth, USB, infraredEthernet cable, Wi-FiOptical fibre, cableFibre, satellite, undersea cable
ExamplePhone with earbudsSchool computer labCity cable TV networkThe Internet
Teacher tip

Memory aid, smallest to largest: Personal, Local, Metropolitan, Wide. Board questions often describe a situation ("branches of a company in Delhi, Mumbai and Singapore") and ask which network type it is.

Network devices: modem, NIC and repeater

  • Modem (MOdulator-DEModulator): converts the digital signals of a computer into analog signals that can travel over telephone or cable lines (modulation) and converts incoming analog signals back to digital (demodulation). It connects a home or office to the Internet Service Provider (ISP). Today's broadband routers often have the modem built in.
  • Ethernet card / NIC (Network Interface Card): the card (now usually built into the motherboard) that connects a computer to a network cable. Every NIC has a unique 48-bit hardware address called the MAC address, written like 00:1A:2B:3C:4D:5E. (This device is in NCERT but not named in the syllabus list.)
  • Repeater: signals become weak as they travel along a cable; this is called attenuation. A repeater receives the weak signal, regenerates it to its original strength and sends it forward. Ethernet twisted-pair cable carries signals reliably for about 100 metres, so a repeater is needed when two devices are farther apart than that. Wi-Fi range extenders are wireless repeaters.
Teacher tip

In case-study questions, the phrase "distance more than 100 m" is the signal to suggest a repeater between those blocks.

Network devices: hub, switch, router and gateway

  • Hub: a box with many ports that connects computers of a LAN. When data arrives on one port, the hub sends it to all the other ports (broadcast). Every computer receives it, and only the intended one keeps it. This wastes bandwidth and causes collisions when many computers send together. Hubs are now mostly obsolete.
  • Switch: looks like a hub but is intelligent. It learns the MAC address of the device on each port and sends a packet only to the port of the destination. Less traffic, fewer collisions and better security. Switches are the standard device for connecting computers inside a LAN today.
  • Router: connects two or more different networks (for example, a school LAN and the ISP's network) and forwards packets between them using IP addresses. It chooses the best path for each packet. A Wi-Fi router at home is a router, switch and wireless access point in one box.
  • Gateway: the entry and exit point of a network. All traffic between the local network and outside networks passes through it. A gateway can connect networks that use different protocols and translate between them. In practice a router or a firewall machine often acts as the gateway, and it is a good place to filter traffic for security.
FeatureHubSwitchRouter
Main jobConnects devices in a LANConnects devices in a LANConnects different networks
How it forwards dataSends to all ports (broadcast)Sends only to the destination portChooses the best path to the destination network
Address usedNoneMAC (physical) addressIP (logical) address
IntelligencePassive / unintelligentIntelligent, learns addressesMost intelligent, keeps a routing table
Traffic and collisionsHigh traffic, many collisionsLess traffic, few collisionsSeparates networks, controls traffic
SecurityLowBetterBest of the three; can filter packets
Typical useOld small LANsEvery modern LAN, each block of a campusLinking a LAN to the Internet or another LAN
Teacher tip

One-line answers that score: hub = "sends to all"; switch = "sends to the one, using MAC"; router = "connects networks, using IP"; gateway = "entry/exit point, joins networks with different protocols"; repeater = "regenerates a weak signal"; modem = "digital to analog and back".

Network topologies: star and bus

Topology is the arrangement of the nodes and cables of a network: the shape of the network.

Star topology: every node is connected by its own cable to a central device (switch or hub).

  • Advantages: easy to install and add new nodes; if one cable or node fails, the others keep working; faults are easy to find; good performance.
  • Disadvantages: if the central device fails, the whole network stops; needs more cable than bus; cost of the central device.

Bus topology: all nodes are connected to one main cable called the backbone or bus, with a terminator at each end to stop the signal from bouncing back. Data sent by one node travels along the whole cable and every node sees it.

  • Advantages: needs the least cable; cheap and simple for a small network; easy to extend by joining cable.
  • Disadvantages: a break in the backbone brings the whole network down; faults are hard to locate; only one node can send at a time, so it slows down as nodes are added; limited cable length.
Text
Star                          Bus
      [PC1]
        |                [PC1]   [PC2]   [PC3]   [PC4]
[PC4]--[SWITCH]--[PC2]     |       |       |       |
        |               T==+=======+=======+=======+==T
      [PC3]                    backbone (T = terminator)

Network topologies: tree and mesh

Tree (hierarchical) topology: several star networks are connected to a common bus or to a higher-level switch, forming a tree with branches. It is a hybrid of bus and star. A school where each floor has a switch (star) and the floor switches connect to one main switch is a tree.

  • Advantages: suits large networks spread over floors or blocks; easy to expand by adding a branch; a fault in one branch does not affect other branches.
  • Disadvantages: if the main backbone or root device fails, branches are cut off from each other; needs more cable and is harder to configure than a single star.

Mesh topology: every node is connected to every other node (full mesh) or to several others (partial mesh). There are many paths between two nodes. For a full mesh of n nodes, the number of links is n(n-1)/2.

  • Advantages: very reliable: if one link fails, data takes another path; heavy traffic is shared across links; good privacy because data can travel on a dedicated link.
  • Disadvantages: needs a lot of cabling and ports, so it is costly and hard to install and manage. Used where reliability matters most, for example connecting the core routers of the Internet or in wireless sensor networks.

Ring topology (each node connected to two neighbours to form a circle) is in the NCERT book but not in the 2025-26 syllabus list. (Enrichment)

TopologyShapeCable neededEffect of one failureBest for
StarAll nodes to a central switchMore than busNode or cable failure: only that node is affected. Switch failure: whole network downLabs, offices, homes
BusAll nodes on one backboneLeastBackbone break: whole network downSmall, temporary networks
TreeStars joined to a backbone / rootMoreBranch failure: only that branch; root failure: branches splitLarge campuses, multi-floor buildings
MeshEvery node to many / all othersMostLittle effect: other paths are usedCritical networks, Internet backbone
Teacher tip

Quick check: 5 computers in a full mesh need 5 x 4 / 2 = 10 links.

The Internet

The Internet is a worldwide network of networks. Millions of private, public, academic, business and government networks are linked using a common set of rules (protocols) called TCP/IP. No single person or company owns it.

Key ideas:

  • It began as ARPANET (1969), a US defence research network; it grew into the public Internet in the late 1980s and 1990s.
  • Users connect through an ISP (Internet Service Provider), such as BSNL, Jio or Airtel, using fibre, DSL, cable, mobile data or satellite.
  • Every device on the Internet has an IP address, a numeric address such as 142.250.183.36 (IPv4) or a longer IPv6 address.
  • Humans remember names, not numbers, so the DNS (Domain Name System) converts a domain name like ncert.nic.in into its IP address. DNS works like a phone book.

The Internet and the World Wide Web are not the same: the Internet is the network infrastructure; the Web is one of the services that runs on it.

URL and its parts

A URL (Uniform Resource Locator) is the complete address of a resource (a web page, image, video or file) on the Internet. Every web page has a unique URL.

Take the URL https://www.cbse.gov.in/cbsenew/examination.html:

  1. https is the protocol (scheme): the rules used to fetch the resource. HTTPS is the secure, encrypted version of HTTP.
  2. www.cbse.gov.in is the domain name (host name) of the web server. Read it right to left: in is the top-level domain (country code for India), gov shows a government site, cbse is the organisation's name and www is the server.
  3. /cbsenew/ is the path: the folder on the server.
  4. examination.html is the file name (the resource).

Common top-level domains: .com (commercial), .org (organisation), .edu (education), .gov (government), .net (network); country codes such as .in (India), .uk (United Kingdom), .au (Australia).

A URL may also carry a port (:8080), a query string after ? (for example ?class=12&subject=ip) and a fragment after # that points to a section of the page.

PartIn https://www.cbse.gov.in/cbsenew/examination.htmlMeaning
ProtocolhttpsHow the resource is fetched (secure HTTP)
Domain namewww.cbse.gov.inName of the web server, converted to an IP address by DNS
Top-level domain.inCountry (India)
Path/cbsenew/Folder on the server
File nameexamination.htmlThe actual page

World Wide Web (WWW)

The World Wide Web is a huge collection of interlinked web pages and other resources stored on web servers around the world and accessed over the Internet with a web browser.

It was invented by Sir Tim Berners-Lee at CERN (Switzerland) in 1989-1990. He created the three technologies that still form its base:

  • HTML (HyperText Markup Language): the language in which web pages are written;
  • URL (or URI): the unique address of every resource on the Web;
  • HTTP (HyperText Transfer Protocol): the rules by which a browser requests a page and a web server sends it.

Web pages are linked by hyperlinks: clickable text or images that take you to another page. This is why it is called a "web".

InternetWorld Wide Web
A global network of networks (hardware, cables, routers)A collection of linked web pages and resources
Started as ARPANET in 1969Invented by Tim Berners-Lee in 1989-90
Uses many protocols (TCP/IP, SMTP, FTP, ...)Uses mainly HTTP/HTTPS
Supports many services: email, chat, VoIP, file transfer, the WebIs one service that runs on the Internet

Applications of the Internet: email, chat and VoIP

Email (electronic mail) sends messages, with attachments such as files and photos, from one user to one or many users over the Internet. An email address has the form username@domain, e.g. principal@kvbhopal.edu.in. The receiver need not be online; the message waits in the mailbox on the mail server. Examples of services: Gmail, Outlook, Rediffmail. Parts of an email: To, Cc, Bcc, Subject, Body, Attachment.

Chat is real-time text communication between two or more people who are online at the same time. Modern chat apps also send images, voice notes, video and documents. Examples: WhatsApp, Telegram, Google Chat, Microsoft Teams.

VoIP (Voice over Internet Protocol) carries voice calls over the Internet instead of the traditional telephone network. The voice is converted into digital packets, sent over the Internet and turned back into sound. Examples: WhatsApp calls, Google Meet, Zoom, Microsoft Teams.

  • Advantages: very cheap or free, especially for long-distance and international calls; works on phones and computers; adds features such as video, conferencing and screen sharing.
  • Disadvantages: needs a stable Internet connection; quality drops (echo, lag) when the network is slow; stops during power or Internet outages; emergency calling can be limited.
Teacher tip

Email vs chat in one line: email is asynchronous (the receiver reads it later), chat is synchronous (both are online together).

Website and web page; static vs dynamic web pages

A web page is a single document on the Web, written in HTML, which may contain text, images, video, audio and hyperlinks. It is identified by a unique URL.

A website is a collection of related web pages under one domain name, linked to each other and stored on a web server. The first page that opens is the home page. Example: www.indianrail.gov.in is a website; its train-enquiry page is one web page of it.

Purposes of a website: give information (a school's admissions page), sell products (e-commerce), deliver services (online fee payment, railway booking), education (DIKSHA), and entertainment.

Static web page: its content is fixed. It shows the same content to every visitor every time until the developer edits the HTML file. Built with HTML and CSS. Example: a school's "About Us" page.

Dynamic web page: its content is generated when it is requested, often from a database, and can differ by user, time or input. Built with server-side scripts such as PHP, Python, JSP or ASP.NET, along with JavaScript. Examples: a board-exam result page that shows your result after you enter your roll number, a cricket live-score page, an online shopping cart.

Static web pageDynamic web page
Content is fixed; same for all usersContent changes with user, time or input
Written in HTML/CSS onlyUses server-side scripting (PHP, JSP, ASP.NET, Python) and usually a database
Must be edited by hand to change contentUpdates automatically from the database
Loads fast; cheap and simple to buildTakes more time to build; slightly slower to generate
Example: 'About Us' page of a schoolExample: CBSE result page, online shopping cart
Teacher tip

Website vs web page, in one line: a web page is one document; a website is a collection of linked web pages under one domain name.

Web server and hosting a website

A web server is a computer (and the software running on it) that stores websites and delivers web pages to browsers on request. When you type a URL, your browser sends an HTTP request to the web server; the server finds the page (or builds it, if dynamic) and sends back an HTTP response. If the page does not exist, it returns an error such as 404 Not Found.

Web server software: Apache HTTP Server, Nginx, Microsoft IIS. A web server must be connected to the Internet all the time and have a fixed (static) IP address.

Web hosting is the service of storing a website's files on a web server that is connected to the Internet round the clock, so that anyone can open the site. Companies that provide this are called web hosts or hosting providers.

Steps to host a website:

  1. Register a domain name (e.g. greenvalleyschool.in) with a domain registrar, after checking that it is available.
  2. Choose a hosting provider and plan (shared, dedicated or cloud hosting) and buy space on its web server.
  3. Upload the website files (HTML, CSS, images, scripts, database) to the server, using the host's control panel or FTP.
  4. Map the domain name to the server's IP address through DNS records, so that typing the name opens the site.
Type of hosting (Enrichment)MeaningSuits
Shared hostingMany websites share one server and its costSmall school or shop sites
Dedicated hostingOne whole server for one customerLarge, busy websites
Cloud hostingSite runs on a group of servers; resources grow when neededSites with changing traffic, e.g. result days

Web browsers

A web browser is application software that lets us open, view and interact with web pages. It sends requests to web servers, receives HTML, CSS, JavaScript and images, and displays them as a formatted page. It also lets us move between pages through hyperlinks.

History in brief: the first browser, WorldWideWeb (later renamed Nexus), was written by Tim Berners-Lee in 1990. Mosaic (1993) was the first popular graphical browser, followed by Netscape Navigator.

Commonly used browsers today: Google Chrome, Mozilla Firefox (open source), Microsoft Edge, Apple Safari, Opera, and Brave.

Common parts of a browser window: address bar (to type URLs or search), back/forward/reload buttons, tabs, bookmarks bar, menu for settings, and the downloads list.

Browser settings

Browsers can be customised from their Settings page. Teachers can demonstrate these on the lab projector:

  • Home page / startup page: the page that opens when the browser starts (e.g. the school website).
  • Default search engine: the search engine used from the address bar (Google, Bing, DuckDuckGo).
  • Privacy and security: clear browsing history, cache and cookies; block third-party cookies; turn on "Safe Browsing" warnings for dangerous sites; choose "HTTPS-only" mode.
  • Site permissions: allow or block a site's use of the camera, microphone, location, notifications and pop-ups.
  • Passwords and autofill: save passwords, addresses and payment details (convenient but risky on shared computers).
  • Downloads: choose the folder for downloaded files, or ask every time.
  • Appearance and accessibility: theme, font size, page zoom.
  • Private browsing (Incognito in Chrome, InPrivate in Edge, Private Window in Firefox): history, cookies and form data are deleted when the window closes. It does not hide your activity from the school network, the ISP or the websites themselves.
Teacher tip

Good habit to teach: on a shared lab computer, always use a private window or log out and clear history after use, and never let the browser save passwords.

Add-ons, extensions and plug-ins

Add-ons are small software programs that add extra features to a browser. There are two kinds:

  • Extension: changes or adds to the browser's own behaviour or interface. Examples: an ad blocker, a password manager, a grammar checker, a dictionary pop-up, a screenshot tool. Installed from the browser's store (Chrome Web Store, Firefox Add-ons).
  • Plug-in: lets the browser display or run a particular type of content that it cannot handle by itself, such as a PDF document, a video format or a Java applet. Older examples were Adobe Flash Player and Java; modern browsers now build most of these abilities in (a built-in PDF viewer, HTML5 video), so plug-ins are rarely needed today.

The words add-on, extension and plug-in are often used loosely, but for the exam: an extension adds a feature to the browser; a plug-in helps the browser show some content inside a web page.

Caution: install add-ons only from official stores and trusted developers. A malicious extension can read every page you visit, including passwords.

Cookies

A cookie is a small text file that a website stores on the user's computer through the browser. It holds information such as a session ID, login status, language choice or items in a shopping cart. When you visit the site again, the browser sends the cookie back, so the site "remembers" you.

Uses of cookies:

  • keeping you logged in as you move between pages;
  • remembering preferences (language, theme, city for weather);
  • remembering items in a shopping cart;
  • counting visitors and tracking browsing for analytics and advertising.

Types:

  • First-party cookies are set by the site you are visiting.
  • Third-party cookies are set by another domain, usually an advertiser, whose content is embedded in the page. They track users across many websites and raise privacy concerns.
  • Session cookies are deleted when the browser closes; persistent cookies stay until an expiry date.

Cookies are not programs and cannot carry viruses by themselves, but they can be misused for tracking or stolen to hijack a logged-in session. Users can view, block or delete cookies in browser settings and should be careful when clicking "Accept all cookies".

Teacher tip

Ask students to open the cookie list for one site in browser settings during the lab. Seeing dozens of cookies from advertising domains makes the privacy point clearly.

Key terms

Computer network
Two or more devices connected by a wired or wireless medium to share data and resources.
Node
Any device connected to a network, such as a computer, printer or phone.
PAN
Personal Area Network: devices of one person within about 10 metres, e.g. phone and earbuds.
LAN
Local Area Network: a network within a building or campus, up to about 1 km.
MAN
Metropolitan Area Network: a network covering a city, about 30-40 km.
WAN
Wide Area Network: a network across countries or continents; the Internet is the largest WAN.
Modem
Device that converts digital signals to analog and back so data can travel over telephone or cable lines.
Repeater
Device that regenerates a weakened signal so it can travel a longer distance.
Hub
Device that connects LAN nodes and broadcasts incoming data to all ports.
Switch
Device that connects LAN nodes and sends data only to the destination port using MAC addresses.
Router
Device that connects different networks and forwards packets by IP address along the best path.
Gateway
Entry and exit point of a network; can connect networks that use different protocols.
Topology
The physical or logical arrangement of nodes and links in a network.
MAC address
Unique 48-bit hardware address of a network interface card.
IP address
Numeric logical address that identifies a device on the Internet.
URL
Uniform Resource Locator: the complete address of a resource on the Internet.
DNS
Domain Name System: converts domain names into IP addresses.
VoIP
Voice over Internet Protocol: making voice calls over the Internet.
Web server
Computer and software that store websites and send web pages to browsers on request.
Cookie
Small text file stored by a website in the browser to remember information about the user.

MCQs

Tap an option to check it, or use Show answers above to reveal them all.

  1. Bluetooth connection between a phone and a smartwatch is an example of a:

    Answer

    (b) PAN

    A PAN connects the personal devices of one person within about 10 m.

  2. The network connecting all computers in a school's three-storey building is a:

    Answer

    (a) LAN

    A single building or campus forms a LAN.

  3. Which is the largest WAN in the world?

    Answer

    (c) The Internet

    The Internet is a worldwide network of networks.

  4. Which device converts digital signals to analog signals and back?

    Answer

    (d) Modem

    MOdulator-DEModulator: modulation turns digital to analog, demodulation turns analog to digital.

  5. Which device sends incoming data to all of its ports?

    Answer

    (a) Hub

    A hub broadcasts data to every connected node.

  6. A switch forwards data to the correct computer using its:

    Answer

    (c) MAC address

    A switch keeps a table of MAC addresses of the device on each port.

  7. Which device should be used to connect a school LAN to the Internet?

    Answer

    (d) Router

    A router connects different networks and forwards packets between them using IP addresses.

  8. Two buildings of a factory are 180 m apart and joined by an Ethernet cable. Which device is needed to keep the signal strong?

    Answer

    (b) Repeater

    Twisted-pair Ethernet carries signals reliably for about 100 m; a repeater regenerates the signal over longer runs.

  9. A device that acts as the entry and exit point of a network and can join networks using different protocols is a:

    Answer

    (c) Gateway

    A gateway is the node through which traffic enters or leaves a network.

  10. In which topology does failure of the central device stop the whole network?

    Answer

    (a) Star

    In star topology all traffic passes through the central switch or hub.

  11. Which topology uses a single backbone cable with terminators at both ends?

    Answer

    (d) Bus

    In bus topology all nodes share one backbone cable.

  12. How many links are needed to connect 6 computers in a full mesh?

    Answer

    (c) 15

    n(n-1)/2 = 6 x 5 / 2 = 15.

  13. Several star networks connected to a common backbone form a:

    Answer

    (a) tree topology

    Tree is a hierarchical hybrid of star and bus.

  14. In the URL https://www.ncert.nic.in/textbook.php, the domain name is:

    Answer

    (b) www.ncert.nic.in

    The domain (host) name comes after the protocol and before the path.

  15. Who invented the World Wide Web?

    Answer

    (d) Tim Berners-Lee

    Tim Berners-Lee developed the WWW at CERN in 1989-90.

  16. Making a voice call through WhatsApp over mobile data uses:

    Answer

    (a) VoIP

    VoIP carries voice as data packets over the Internet.

  17. A page that shows a student's board result after the roll number is entered is a:

    Answer

    (b) dynamic web page

    The content is generated from a database for each request, so it is dynamic.

  18. Which of these is web server software?

    Answer

    (c) Apache

    Apache HTTP Server delivers web pages. Chrome is a browser; MySQL is a database.

  19. A small text file stored by a website in your browser to remember your login or preferences is a:

    Answer

    (b) cookie

    Cookies store small pieces of information about the user's visit.

  20. Which statement about browser add-ons is correct?

    Answer

    (d) An extension adds features to the browser, such as an ad blocker

    Extensions add features to the browser; plug-ins help it display particular content.

Assertion–Reason

Choose: (A) Both A and R are true and R is the correct explanation of A. (B) Both A and R are true but R is not the correct explanation of A. (C) A is true but R is false. (D) A is false but R is true.
  1. Assertion (A): A switch is preferred over a hub in a modern LAN.

    Reason (R): A switch sends data only to the port of the destination device, reducing traffic and collisions.

    Answer

    (A)

    Both are true and R is the reason switches are preferred.

  2. Assertion (A): In bus topology, a break in the backbone cable can stop the entire network.

    Reason (R): Bus topology needs less cable than star topology.

    Answer

    (B)

    Both are true, but needing less cable does not explain why a backbone break stops the network.

  3. Assertion (A): The Internet and the World Wide Web mean the same thing.

    Reason (R): The World Wide Web is a service that runs on the Internet.

    Answer

    (D)

    A is false; R is true and in fact shows why they are different.

  4. Assertion (A): A mesh topology is highly reliable.

    Reason (R): In a mesh topology, there are multiple paths between nodes, so data can take another path if a link fails.

    Answer

    (A)

    Both are true and R explains A.

  5. Assertion (A): A cookie is a small text file stored by a website on the user's computer.

    Reason (R): Cookies are programs that infect and damage the files on a computer.

    Answer

    (C)

    A is true. R is false: cookies are data, not programs, though they can raise privacy concerns.

Short answer

  1. 2 marks

    What is a computer network? Give two advantages of networking the computers of a school.

    Answer

    A computer network is a group of two or more devices connected by a wired or wireless medium to share data and resources.

    Advantages: (1) resources such as one printer and one Internet connection can be shared by the whole lab; (2) data such as student records can be stored centrally and shared between the office and teachers. (Also: communication by email/chat, lower cost.)

  2. 2 marks

    Differentiate between LAN and WAN (any two points).

    Answer
    • Area: a LAN covers a building or campus (up to about 1 km); a WAN spreads across cities, countries or continents.
    • Speed and ownership: a LAN is faster and usually owned by one organisation; a WAN is slower, costlier and uses lines owned by telecom companies. Example: school lab (LAN), the Internet (WAN).
  3. 2 marks

    What is a MAN? Give one example.

    Answer

    A Metropolitan Area Network covers a city or town (about 30-40 km) by connecting many LANs. Example: a cable TV network in a city, or a network linking all branches of a bank in one city.

  4. 2 marks

    What is the function of a modem? Expand the term.

    Answer

    Modem stands for MOdulator-DEModulator. It converts digital data from a computer into analog signals for transmission over telephone or cable lines (modulation), and converts the received analog signals back into digital data (demodulation). It connects a user to the ISP.

  5. 2 marks

    Differentiate between a hub and a switch.

    Answer
    • A hub broadcasts incoming data to all ports; a switch sends data only to the port of the destination device.
    • A hub does not use addresses and causes more traffic and collisions; a switch uses MAC addresses, so it is faster and more secure.
  6. 2 marks

    What is a repeater? When is it required?

    Answer

    A repeater is a device that receives a weakened (attenuated) signal, regenerates it to its original strength and retransmits it. It is required when the cable between two devices is longer than the distance the signal can travel reliably, about 100 m for Ethernet twisted-pair cable.

  7. 2 marks

    What is a gateway? How is it different from a router?

    Answer

    A gateway is the entry and exit point of a network through which all traffic to and from outside networks passes; it can connect networks that use different protocols. A router connects networks and chooses the best path for packets using IP addresses; a router often acts as the gateway, but a gateway's defining role is being the network's doorway and translating between dissimilar networks.

  8. 2 marks

    Give one advantage and one disadvantage each of star and bus topologies.

    Answer
    • Star: advantage: failure of one node or cable does not affect others and faults are easy to find. Disadvantage: if the central switch fails, the whole network stops.
    • Bus: advantage: needs the least cable and is cheap. Disadvantage: a break in the backbone stops the whole network, and faults are hard to locate.
  9. 2 marks

    Identify the parts of the URL https://www.indianrail.gov.in/enquiry/pnr.html.

    Answer
    • Protocol: https
    • Domain name: www.indianrail.gov.in (top-level domain .in)
    • Path: /enquiry/
    • File name: pnr.html
  10. 2 marks

    Differentiate between a website and a web page.

    Answer

    A web page is a single document on the Web, written in HTML and identified by its own URL. A website is a collection of related, interlinked web pages under one domain name, stored on a web server, with a home page as its starting point. Example: the CBSE website contains many web pages such as the circulars page and the results page.

  11. 2 marks

    Differentiate between static and dynamic web pages, with one example each.

    Answer
    • A static page has fixed content that is the same for every visitor; it is written in HTML/CSS and changes only when edited. Example: a school's 'About Us' page.
    • A dynamic page's content is generated when requested, often from a database, and can differ by user or input; it uses server-side scripts such as PHP or JSP. Example: an online result page or a shopping cart.
  12. 2 marks

    What are cookies? Give one use and one risk.

    Answer

    Cookies are small text files that a website stores in the user's browser to remember information about the visit. Use: keeping a user logged in, or remembering items in a shopping cart. Risk: third-party cookies can track a user across websites and invade privacy; a stolen session cookie can be used to take over a logged-in account.

  13. 2 marks

    What is VoIP? Give one advantage and one disadvantage.

    Answer

    VoIP (Voice over Internet Protocol) is the technology of making voice calls over the Internet by converting voice into data packets. Advantage: calls are very cheap or free, even international ones. Disadvantage: call quality depends on the Internet connection, and calls fail during network or power outages.

Long answer

  1. 3 marks

    Explain any three network devices: modem, switch and router. Mention where each is used in a school.

    Answer
    • Modem: converts digital signals to analog for transmission over telephone or cable lines and back to digital at the other end. In a school, it connects the school network to the ISP's broadband line (often built into the broadband router).
    • Switch: connects the computers of a LAN and forwards each packet only to the destination port using MAC addresses, reducing traffic. In a school, each computer lab and the office has a switch to which all computers are connected.
    • Router: connects different networks and forwards packets using IP addresses along the best route. In a school, it connects the school LAN to the Internet and can separate the student lab network from the office network.
  2. 3 marks

    What is a network topology? Explain tree and mesh topologies with one advantage and one disadvantage each.

    Answer

    A topology is the arrangement (layout) of nodes and connecting links in a network.

    • Tree: star networks are connected to a common backbone or a root switch in a hierarchy. Advantage: suits large networks spread over floors or buildings and is easy to expand branch by branch. Disadvantage: if the backbone or root device fails, branches lose contact with each other.
    • Mesh: each node is connected to every other node (or to many nodes), giving multiple paths. Advantage: very reliable, as data takes another path if a link fails. Disadvantage: needs a large amount of cabling and ports, so it is costly and hard to install.
  3. 3 marks

    What is the World Wide Web? How is it different from the Internet? Name the three technologies on which the Web is built.

    Answer

    The World Wide Web is a collection of interlinked web pages and resources, stored on web servers and accessed through the Internet using a browser. It was developed by Tim Berners-Lee in 1989-90.

    The Internet is the global network of networks (the infrastructure), while the Web is one service that runs on it; email, chat, VoIP and file transfer also use the Internet but are not the Web.

    The three technologies: HTML (language of web pages), URL/URI (unique address of each resource) and HTTP (protocol for requesting and sending pages).

  4. 3 marks

    What is a web server? List the steps to host a website for a school named 'Green Valley Public School'.

    Answer

    A web server is a computer with server software (such as Apache or Nginx) that stores websites and sends web pages to browsers when they request them using HTTP. It stays connected to the Internet all the time.

    Steps to host the school's website:

    1. Choose and register an available domain name, e.g. greenvalleyps.in, with a domain registrar.
    2. Select a web hosting provider and a suitable plan (shared hosting is enough for a school) and get space on its web server.
    3. Upload the website's files (HTML pages, images, scripts, database) to the server through the control panel or FTP.
    4. Point the domain name to the server's IP address using DNS records, then test the site in a browser.
  5. 5 marks

    What is a web browser? Explain any four browser settings that a student should know, and the difference between add-ons/extensions and plug-ins.

    Answer

    A web browser is application software that requests web pages from web servers and displays them, letting the user navigate using hyperlinks. Examples: Chrome, Firefox, Edge, Safari.

    Settings:

    1. Home page/startup: the page that opens first.
    2. Default search engine: used when searching from the address bar.
    3. Privacy and security: clearing history, cache and cookies, blocking third-party cookies, Safe Browsing.
    4. Site permissions: allowing or blocking camera, microphone, location, pop-ups and notifications for each site.

    (Also: saved passwords/autofill, download location, private browsing.)

    An extension (add-on) adds a feature to the browser itself, such as an ad blocker or password manager. A plug-in lets the browser display a particular type of content inside a page that it cannot handle on its own, such as an older video or document format.

  6. 5 marks

    Explain the Internet applications email, chat and VoIP. Compare email and chat on any two points.

    Answer
    • Email: sending messages with attachments to one or more people using addresses of the form user@domain. Messages wait on the mail server until read. Example: Gmail.
    • Chat: real-time exchange of text (and images, voice notes) between people who are online at the same time. Example: WhatsApp.
    • VoIP: voice (and video) calls over the Internet; the voice is sent as data packets. Cheap, but depends on Internet quality. Example: Google Meet, WhatsApp call.

    Email vs chat: (1) email is asynchronous, so the receiver can read it later, while chat is real-time; (2) email suits formal and longer messages with attachments and subject lines, while chat suits short, informal, quick messages.

  7. 3 marks

    Compare PAN, LAN, MAN and WAN on area, speed, cost and example.

    Answer
    • PAN: about 10 m around one person; low to moderate speed; very low cost; e.g. phone connected to earbuds by Bluetooth.
    • LAN: a building or campus up to about 1 km; very high speed; low cost; e.g. school computer lab.
    • MAN: a city, about 30-40 km; high speed; high cost; e.g. a city's cable TV network.
    • WAN: countries and continents; lower and variable speed; very high cost; e.g. the Internet, railway reservation network.

Case-based

Case study 1

Vardhman Textiles Ltd. is setting up a new campus in Ludhiana with four blocks: ADMIN, DESIGN, PRODUCTION and STORE. Its head office is in Mumbai.

Distances between the blocks:

  • ADMIN to DESIGN: 60 m
  • ADMIN to PRODUCTION: 120 m
  • ADMIN to STORE: 90 m
  • DESIGN to PRODUCTION: 70 m
  • DESIGN to STORE: 150 m
  • PRODUCTION to STORE: 110 m

Number of computers:

  • ADMIN: 40
  • DESIGN: 85
  • PRODUCTION: 30
  • STORE: 15
  1. 1 mark

    Suggest the most suitable cable layout (draw/describe) to connect the four blocks.

    Answer

    A star layout with DESIGN as the hub block, which keeps the server one hop away from every block. Cables are DESIGN to ADMIN (60 m), DESIGN to PRODUCTION (70 m) and DESIGN to STORE (150 m).

    An option that uses less cable is DESIGN to ADMIN (60 m), DESIGN to PRODUCTION (70 m) and ADMIN to STORE (90 m), with STORE reaching the server through ADMIN. Either answer earns marks if it is justified.

  2. 1 mark

    Suggest the most suitable block to place the server. Justify your answer.

    Answer

    The server should be placed in the DESIGN block because it has the maximum number of computers (85). Most traffic stays inside that block, which reduces network traffic between blocks (the 80-20 rule).

  3. 1 mark

    Suggest the placement of (i) a repeater and (ii) a switch/hub.

    Answer

    (i) Repeater: needed on any cable longer than about 100 m. In the star layout, place it between DESIGN and STORE (150 m). In the low-cable option, no link is longer than 100 m, so no repeater is needed.

    (ii) Switch: one in each block, to connect all the computers of that block. A switch is better than a hub because it sends data only to the destination computer.

  4. 1 mark

    The company wants a fast, reliable link between the Ludhiana campus and the Mumbai head office, and wants to protect the campus network from outside attacks. Suggest (a) the type of network so formed and (b) a device or measure for protection.

    Answer

    (a) Campus and head office in different cities form a WAN. A leased line or optical fibre broadband from an ISP, through a router, gives a fast and reliable link (satellite only if wired links are not available). (b) Install a firewall at the gateway (the router that connects the campus to the Internet) to filter incoming and outgoing traffic.

Case study 2

Sunrise International School, Dehradun is networking its campus. There are four wings:

  • Senior Wing: 55 computers
  • Junior Wing: 30 computers
  • Admin Wing: 20 computers
  • Hostel: 15 computers

Distances between the wings:

  • Senior to Junior: 80 m
  • Senior to Admin: 45 m
  • Senior to Hostel: 140 m
  • Junior to Admin: 100 m
  • Junior to Hostel: 60 m
  • Admin to Hostel: 125 m

The school also wants video lessons streamed from a partner school in Bengaluru.

  1. 1 mark

    Which wing is the best place for the server? Why?

    Answer

    The Senior Wing, because it has the maximum number of computers (55). Placing the server there keeps most data traffic local and makes the network efficient.

  2. 1 mark

    Suggest an efficient cable layout and the topology it forms.

    Answer

    Connect Senior to Admin (45 m), Senior to Junior (80 m) and Junior to Hostel (60 m), a total of 185 m with no link over 100 m. Inside each wing the computers connect to a switch (star), and the wings are joined in a hierarchy with Senior at the top, so the campus forms a tree topology. (A pure star from Senior would need the 140 m Senior-Hostel cable and a repeater.)

  3. 1 mark

    Is a repeater needed in your layout? If the Hostel were connected directly to the Senior Wing, where would it be needed?

    Answer

    No repeater is needed in the suggested layout because every cable is under 100 m. If the Hostel were connected directly to the Senior Wing (140 m), a repeater would be needed on that link.

  4. 1 mark

    (a) Which device connects the school network to the Internet? (b) Which protocol or application will be used for the live video lessons from Bengaluru, and what type of network links the two schools?

    Answer

    (a) A router (with a modem or fibre ONT from the ISP), acting as the gateway. (b) Live video lessons use VoIP/video-conferencing over the Internet (e.g. Google Meet), and the two schools are linked by a WAN (the Internet).

Case study 3

Meena opened her browser and visited https://www.onlinebooks.co.in/class12/ip.html. She added a book to her cart, closed the browser, and found the book still in her cart the next day. She also noticed that ads for the same book followed her on other websites. The page showed "Hello, Meena" at the top, and her brother saw "Hello, Rahul" on the same URL from his own login.

  1. 1 mark

    Identify the protocol and the domain name in the URL.

    Answer

    Protocol: https; domain name: www.onlinebooks.co.in.

  2. 1 mark

    How did the website remember the item in her cart?

    Answer

    The website stored a cookie (a small text file) in her browser with her cart or session information, and read it back on her next visit.

  3. 1 mark

    Why did ads for the book appear on other websites? How can she stop this?

    Answer

    Third-party cookies from advertising networks tracked her across sites. She can block third-party cookies and clear existing cookies in the browser's privacy settings, or use a private window.

  4. 1 mark

    Is the page static or dynamic? Justify.

    Answer

    It is a dynamic web page, because the content (greeting and cart) is generated separately for each logged-in user from the server's database.

Practicals

1Network map of the school

In groups, walk around the school and list the networked devices in the computer lab, office and library (computers, printers, switches, router, Wi-Fi access points, CCTV). Draw a diagram of the lab network and identify its topology and network type.

Solution
Text
Model answer (sample school):
- Computer lab: 30 PCs, each with an Ethernet cable to one 48-port switch.
- The lab switch connects to the main switch in the server room, which also connects the
  office switch (8 PCs, 1 printer) and the library switch (4 PCs).
- The main switch connects to the router, which connects to the ISP's fibre line (ONT/modem).
- Wi-Fi access points in the staff room connect to the main switch.

Topology: each room is a STAR (PCs around a switch); the room switches hang from the
main switch, so the whole campus is a TREE topology.
Network type: LAN (single campus); the connection through the router to the Internet links it to a WAN.
Devices identified: switch, router, modem/ONT, wireless access point, NIC in each PC.
Viva questions (3)
  • Why is the lab a star topology? Every PC has its own cable to one central switch.
  • What happens if the lab switch fails? All PCs in the lab lose the network.
  • Which device connects the school to the ISP? The router (with the modem/ONT).

2Case study: design a campus network

A hospital in Nagpur has four blocks: OPD (60 computers), Wards (25), Labs (35), Pharmacy (10). Distances: OPD-Wards 90 m, OPD-Labs 50 m, OPD-Pharmacy 130 m, Wards-Labs 70 m, Wards-Pharmacy 40 m, Labs-Pharmacy 110 m. Suggest server placement, cable layout, topology, devices and placement of repeaters; also suggest how to link it with the hospital's branch in Nashik.

Solution
Text
Server: OPD block (maximum computers, 60).

Cable layout (least total cable, every link under 100 m):
    OPD --50 m-- Labs --70 m-- Wards --40 m-- Pharmacy
Total = 160 m. (If the Wards should be one hop from the server, use
OPD-Labs 50 m, OPD-Wards 90 m, Wards-Pharmacy 40 m = 180 m; still no link over 100 m.)

Topology: computers in each block connect to a switch (star); blocks connect in a
hierarchy from OPD, so the campus is a TREE topology.

Devices: one switch in each block; a router (gateway) in OPD to connect to the ISP;
a firewall at the gateway for security.

Repeater: not needed in this layout (all links < 100 m). If Pharmacy were joined
directly to OPD (130 m) or Labs (110 m), a repeater would be required on that link.

Nagpur-Nashik link: a WAN over a leased line or fibre broadband from an ISP, through
routers at both ends (VPN over the Internet is an economical option).
Viva questions (3)
  • Why the OPD for the server? Most computers are there, so most traffic stays local.
  • Why a switch and not a hub? A switch sends data only to the destination, reducing traffic.
  • What type of network joins Nagpur and Nashik? A WAN.

3Dissecting URLs

Write down five URLs of Indian educational or government websites you use (for example CBSE, NCERT, DIKSHA, IRCTC). For each, identify the protocol, domain name, top-level domain, path and file name. Then explain why https is preferred to http.

Solution
Text
Model answer:
1. https://www.cbse.gov.in/cbsenew/cbse.html
   protocol=https, domain=www.cbse.gov.in, TLD=.in, path=/cbsenew/, file=cbse.html
2. https://ncert.nic.in/textbook.php
   protocol=https, domain=ncert.nic.in, TLD=.in, path=/, file=textbook.php
3. https://diksha.gov.in/explore
   protocol=https, domain=diksha.gov.in, TLD=.in, path=/explore (a page route, no file name)
4. https://www.irctc.co.in/nget/train-search
   protocol=https, domain=www.irctc.co.in, TLD=.in, path=/nget/train-search
5. https://en.wikipedia.org/wiki/Computer_network
   protocol=https, domain=en.wikipedia.org, TLD=.org, path=/wiki/, resource=Computer_network

Why https: data between the browser and the server is encrypted, so passwords and
payment details cannot be read by others on the network; the padlock icon also
confirms the site's identity through its security certificate.
Viva questions (3)
  • What does DNS do with the domain name? It finds the matching IP address.
  • What does .gov.in indicate? A Government of India website.
  • What part of a URL comes after '?'? The query string, which passes values to the server.

4Exploring browser settings, cookies and add-ons

In the lab, open the browser's Settings and (a) set the school website as the startup page, (b) change the default search engine, (c) view the cookies stored by any one website and delete them, (d) block third-party cookies, (e) check camera/microphone site permissions, (f) list the installed extensions. Record each step and what you observed.

Solution
Text
Model record (Google Chrome; other browsers are similar):
(a) Settings > On startup > Open a specific page > Add a new page > school URL.
(b) Settings > Search engine > choose a different engine from the list.
(c) Settings > Privacy and security > Third-party cookies > See all site data and
    permissions > search the site > Delete. Observation: the site asked us to log in again.
(d) Settings > Privacy and security > Third-party cookies > Block third-party cookies.
(e) Settings > Privacy and security > Site settings > Camera / Microphone: sites that
    asked permission are listed under Allowed / Not allowed.
(f) Menu > Extensions > Manage Extensions: e.g. a PDF tool and an ad blocker were installed.

Observation: after deleting a site's cookies, its saved login and preferences were
lost, which shows that cookies are what let a site remember the user.
Viva questions (3)
  • What is lost when you delete a site's cookies? Saved logins, preferences and cart items for that site.
  • Does private browsing hide activity from the ISP? No, only from other users of the same device.
  • Name one extension and one plug-in type. Ad blocker (extension); PDF viewer or video player (plug-in).

5Static vs dynamic page: hands-on

Write a short static HTML page about your class in Notepad and open it in a browser. Then visit a dynamic page (for example a train-search, weather or results page) and compare. Answer: what changes on each page when two different users open it?

Solution
Text
Static page saved as myclass.html:

<html>
  <head><title>Class XII-B</title></head>
  <body>
    <h1>Class XII-B, Sunrise School</h1>
    <p>Class teacher: Mrs. Kaur. Students: 38.</p>
    <a href="https://ncert.nic.in">NCERT textbooks</a>
  </body>
</html>

Comparison:
- myclass.html shows exactly the same content to every user until the file is edited.
  It needs no server-side program or database.
- A train-search page shows different trains and seats for each user's stations and
  date, generated by a server-side program reading a database at that moment.
  So it is dynamic.
Viva questions (3)
  • Which language is used for the static page? HTML.
  • Name a server-side language used for dynamic pages. PHP (also JSP, ASP.NET, Python).
  • Where are the files of a hosted website stored? On a web server.

Common mistakes

  • Saying the Internet and the WWW are the same. The Internet is the global network; the WWW is a collection of linked web pages that runs on it, alongside email, chat and VoIP.

  • Writing that a hub sends data only to the destination. That is a switch; a hub broadcasts to all ports.

  • Confusing a router with a switch. A switch connects devices within a LAN using MAC addresses; a router connects different networks using IP addresses.

  • Placing the server in the block nearest to the main gate or the head office in a case study. The server goes in the block with the maximum number of computers (most traffic stays local).

  • Forgetting the repeater in a campus case study. Any cable run longer than about 100 m needs a repeater.

  • Calling every page with images or animation 'dynamic'. A page is dynamic only when its content is generated on request (often from a database); a page with fixed images and animations is still static.

  • Thinking incognito or private mode makes a user anonymous. It only stops the browser from keeping history and cookies on that device; websites, the school network and the ISP can still see the activity.

  • Calling a cookie a virus or a program. A cookie is only a small text file; the concern is privacy and tracking, not infection.