You type “Happy birthday!” on a phone in Jind and press send. Less than a second later, a friend’s phone in Chennai, about 1,850 km away in a straight line, buzzes with your message. Nobody carried it, and no single wire joins the two phones. How did the message find its way there?
Computer networking exists to answer this question. This lesson builds the answer from the ground up: networks, packets, protocols and the Internet.
What a network is
A network is a group of two or more devices connected so that they can exchange data, for example to share files, share a printer or send messages. Devices can be computers, phones, printers or servers. Each device is a node, and each connection between two nodes is a link. A link can be a cable (copper wire or glass fibre) or a wireless signal such as Wi-Fi or Bluetooth.
How data travels: packets
A computer does not send a file as one long stream. It cuts the file into small pieces called packets. A packet is a piece of data wrapped with the information needed to deliver it. It has two parts:
- The header holds the delivery details: the sender’s address, the receiver’s address and a sequence number that says which piece this is.
- The payload is the actual piece of your data.
Imagine posting a 500-page book in 25 envelopes, each addressed to the receiver and marked “envelope 7 of 25”. They may travel by different routes and arrive in a different order, but the receiver sorts them by number and rebuilds the book.
Devices called routers read the destination address in each packet’s header and pass the packet one step closer to its goal. Each step is a hop. This method is called packet switching. It lets thousands of people share the same cables at once, and if one path breaks, packets simply take another.
A photo cut into packets
A photo of 3 MB (3,000,000 bytes) is sent over Ethernet, the common wired network technology. After the headers take their share, one packet carries about 1,460 bytes of your data.
Number of packets = 3,000,000 ÷ 1,460 = 2,054.8, which rounds up to 2,055.
If packet 812 is lost on the way, only that one small packet is sent again, not the whole photo.
Two numbers describe how well a network carries data. Bandwidth is how much data a link can carry per second, in bits per second (Mbps means megabits per second). Latency is the delay between sending a packet and its arrival, in milliseconds (ms). A wide road has high bandwidth, and a short road has low latency. Remember that 1 byte = 8 bits. So a 500 MB file on a 100 Mbps link needs 500 × 8 = 4,000 megabits, and 4,000 ÷ 100 = 40 seconds in ideal conditions.
Rules and roles
Two devices must follow the same rules to understand each other. An agreed set of rules is called a protocol. HTTP (web pages), SMTP (sending email) and IP (addressing and delivering packets) are protocols.
Most services use the client-server model. A server is a computer that waits for requests and provides a service, such as a web page. A client is a device that asks for it. Your phone’s browser is a client, and the machine that stores a website is a server. In a peer-to-peer (P2P) network, every device is both client and server, for example two laptops sharing files directly.
LAN, WAN and the Internet
Networks are named by the area they cover.
| Type | Full form | Area covered | Example |
|---|---|---|---|
| PAN | Personal Area Network | A few metres around you | Phone and earbuds on Bluetooth |
| LAN | Local Area Network | A home, school or office | The Wi-Fi in your college lab |
| MAN | Metropolitan Area Network | A city | A city-wide cable broadband network |
| WAN | Wide Area Network | Countries and continents | A bank joining branches across India |
The Internet is not one network. It is a network of networks: millions of LANs and WANs owned by homes, companies, colleges, governments and Internet Service Providers, all joined by the same protocols. An Internet Service Provider (ISP) is a company that sells Internet access. BSNL, Airtel, Jio and ACT are ISPs in India. The World Wide Web is just one service on the Internet; email and video calls are others.
How your message reached Chennai
Your phone sent the message by Wi-Fi to your home router (your LAN). Your ISP then passed it from network to network until it reached the app’s server, which sent it on to your friend’s phone in the same way. Public Internet service began in India on 15 August 1995, when VSNL started its Gateway Internet Access Service. Today, most data between India and other countries travels through undersea cables that come ashore in coastal cities such as Mumbai and Chennai.
Key points
- A network is two or more devices (nodes) joined by links so that they can share data.
- Data is cut into packets. Each has a header (addresses, sequence number) and a payload (a piece of the data), and routers pass it on hop by hop.
- A protocol is an agreed set of rules. Clients ask and servers answer.
- A LAN covers a small area and a WAN a wide one. The Internet is a network of networks joined by ISPs.
- Bandwidth is data per second (in bits), latency is delay (in ms), and 1 byte = 8 bits.