ExamSaathi learning library · Government exams · SSC CGL computer knowledge; published syllabus labelled 2024 · Computer knowledge
Computer networks: LAN, WAN, topologies, devices and protocols
How networks share files, printers and the internet: PAN to WAN, topologies, media, hubs, switches, routers, modems, gateways, IP and MAC addresses, DNS and the main protocols.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Classify a network as a PAN, LAN, MAN or WAN, and give a strength and a weakness of the bus, star, ring, mesh and tree topologies.
- Distinguish a hub, a switch and a router, and say what a repeater, modem, gateway, network card (NIC) and Wi-Fi access point do.
- Compare wired and wireless transmission media, and read network speeds in bits per second.
- Read IPv4 and IPv6 addresses, contrast IP and MAC addresses, and describe how DNS turns a domain name into an IP address.
- Match each network protocol to its job: TCP/IP, HTTP, HTTPS, FTP, SMTP, POP3, IMAP, Telnet, SSH and VoIP.
Before you start
A computer network is two or more computers or other devices linked by cable or wireless signals so that they can exchange data. It lets a school lab share one printer, one file server and one internet connection. Each linked device is a node. Data moves in small packets, each carrying the address of the node it is meant for, and the agreed rules that every device follows are called protocols. Link speed is counted in bits per second: bps, Kbps, Mbps and Gbps; a small b means bits and a capital B means bytes, with 8 bits to a byte. This speed is often called bandwidth, though textbooks also use that word for a range of signal frequencies, in hertz.
Network sizes and topologies
A PAN (personal area network) links one person's devices within about 10 metres, such as a phone and Bluetooth earbuds. A LAN (local area network) covers a room, building or campus, such as a school computer lab. A MAN (metropolitan area network) spreads over a city, such as a cable TV network in Lucknow. A WAN (wide area network) spans states or countries, such as a bank joining its branches across India; the internet is the largest WAN. The topology is the layout of the links. Bus: all nodes share one main cable; cheap to lay, but one cut stops everyone. Star: each node has its own cable to a central hub or switch; a bad cable affects one node, but a failed centre stops all. Ring: each node joins its two neighbours in a closed loop; no central device, but in a simple ring one break halts all traffic. Mesh: every node links to every other; very reliable, but n nodes need n(n - 1)/2 cables, so cabling is costly. Tree: star groups branch off a main line in levels; easy to extend, but a failed main line cuts off the branches below.
Media and devices
Wired media: twisted pair copper (cheap; phone lines and most LANs), coaxial cable (shielded; cable TV) and optical fibre (light in thin glass; the most data over the longest distance, free of electrical noise, but costly). Wireless media: radio waves usually spread out in many directions and some can pass through walls, as with FM radio and cordless phones; microwaves need a clear straight path, as between dish antennas or to a satellite; infrared needs a short clear path, as in a TV remote. A network interface card (NIC) connects a computer to the network and carries a MAC address, normally a 48-bit number set by its maker (a device may also use a random one). A repeater regenerates a weak signal so it can travel further. A hub copies incoming data out of every other port. A switch learns which device is on which port and sends data for a known device out of that port only; broadcasts and data for unknown devices go out of every other port. A router joins different networks, such as a branch LAN and the internet, choosing each packet's path by IP address. A modem converts digital signals to analogue for a phone or cable line, and back. A gateway joins networks that use different protocols, translating between them. A Wi-Fi access point lets wireless devices join a LAN.
Addresses, DNS and protocols
A device's IP address depends on the network it joins, so it can change; the MAC address identifies its network card on the local network. IPv4 uses 32 bits, written as four numbers from 0 to 255 joined by dots, such as 192.168.1.20, since each number is 8 bits. That gives about 4.3 billion addresses, too few, so IPv6 uses 128 bits: in full, eight groups of four hexadecimal digits split by colons, though leading zeros in a group may be dropped and one run of all-zero groups shortened to ::, as in 2001:db8::1. DNS (domain name system) turns a domain name into the matching IP address. TCP/IP is the base of the internet: TCP divides the data into segments and, while the connection lasts, resends lost ones and delivers them in order; IP carries each segment in a packet with source and destination addresses and routes it. HTTP fetches web pages; HTTPS does the same with the data encrypted. FTP transfers files. SMTP sends mail; POP3 downloads mail to a device, and its settings decide whether the server keeps a copy, while IMAP keeps mail on the server so every device shows the same inbox. Telnet and SSH both give remote login, but only SSH encrypts it. VoIP carries voice calls over the internet.
Common mistakes
Calling a switch a router: a switch works inside one LAN, a router links different networks. Thinking a hub reads addresses: it floods every other port. Mixing up modem and router: one converts signals, the other chooses paths. Swapping IPv4 (32 bits) and IPv6 (128 bits), or allowing a number above 255 in IPv4. Saying SMTP fetches mail: it sends; POP3 and IMAP fetch. Treating Telnet as safe: it sends passwords as plain text. Reading MB as Mb: a 100 MB file is 800 megabits, so a 40 Mbps link needs at least 20 seconds, not 2.5.
A routine for network questions
1. Size: does it cover one person, one site, one city, or several states? 2. Layout: picture the cables and ask what fails if one cable, or the centre, breaks. 3. Device: what does it do with data? It regenerates it (repeater), floods it (hub), sends it to the addressed device's port (switch), passes it to another network (router), converts the signal (modem) or translates protocols (gateway). 4. Address: count the bits: IPv4 32, IPv6 128, MAC usually 48. 5. Protocol: match the job: web pages, files, sending mail, fetching mail, remote login or voice.
Worked examples
A school lab in Bhopal has 24 PCs, each cabled to one central box. When PC 3 sends a file to PC 17, the old box copied it to all 23 other PCs; the new box sends it to PC 17 alone. Name the topology, both boxes and the device that links the lab to the internet.
- Each PC has its own cable to one centre: a star topology.
- Copying data out of every other port, without reading addresses, is what a hub does.
- Sending data only out of PC 17's port, once it has learnt that port, is what a switch does.
- The internet is a different network, and passing packets between networks by IP address is a router's job.
Answer: Star topology; the old box is a hub, the new box a switch, and a router links the lab to the internet.
Farah in Srinagar types her university's results website address, which begins with https, into her browser. Trace the request to the server and the page back.
- The browser knows only the domain name, so it first asks DNS for the IP address of the site's server.
- TCP divides the request into segments, and IP puts each segment in a packet addressed to that IP address; routers read the address and pass each packet on, network by network.
- As the address begins with https, the request and the page travel encrypted; plain HTTP would send readable text.
- At her end, TCP checks the reply segments, gets any lost one sent again and puts them in order before the page shows.
Answer: DNS finds the IP address, TCP and IP carry the data, routers choose the path and HTTPS keeps it encrypted.
Practice checks
- In a Nashik district office, ten PCs and a printer are cabled to one box. When a PC prints, the box reads the destination address and sends the data only to the printer's port. What is the box?
- Which of these is a correctly written IPv4 address?
- An office in Guwahati joins 8 computers in a full mesh, with one cable between every pair. How many cables does it need?
- Ritu, a technician in Chennai, must log in to a Delhi server and run commands on it, with her password and commands encrypted. Which protocol should she use?
- Which pairing of a protocol with its job is correct?
Sources checked
- SSC CGL Scheme and Syllabus, labelled 2024 — Tier-II Paper-I Section-III Module-I Computer Knowledge Module (syllabus heading Computer Proficiency) (Basics of networking and cyber security: networking devices and protocols); not verified as the full 2026-cycle syllabus
- NCERT, Computer Science, Textbook for Class XII — Chapter 10, Computer Networks: PAN, LAN, MAN and WAN, network devices such as modem, hub, switch, router, repeater and gateway, network topologies, IP and MAC addresses, and the domain name system; ideas only
- NCERT, Computer Science, Textbook for Class XII — Chapter 11, Data Communication: transmission media, bandwidth and data transfer rate, and protocols such as HTTP, FTP, SMTP, POP3 and TCP/IP; ideas only
- Wikipedia, Computer network — Computer networks, their geographic scale from personal to wide area networks, topologies, network hardware and communication protocols; ideas only