Networks are everywhere: in homes, offices, colleges and across the world through the internet. This topic explains what a network is and what it is made of.

Definition and Objectives

A computer network is a set of computers and other devices, called nodes, connected by communication links so that they can exchange data and share resources. Its objectives are: resource sharing (printers, storage, internet connection, software); information sharing and communication (email, messaging, video calls); reliability, by keeping copies of data on several machines; cost reduction, since many users share expensive equipment; scalability, adding users as needed; and centralised management of data and security.

Definition: Computer network. A collection of computers and other devices, called nodes, interconnected by communication links so that they can exchange data and share resources.

Applications

Networks support business (email, online banking, e-commerce, ERP systems), education (online classes, digital libraries, learning platforms), entertainment (video streaming, online games), healthcare (telemedicine, sharing records), government (e-governance, Aadhaar, DigiLocker) and home (smart devices and the Internet of Things). The internet is the largest example.

Components of a Network

Nodes: end devices such as computers, phones, printers and servers. Network interface cards (NICs): the hardware that connects a device to the network, each with a unique MAC address. Transmission media: guided (wired) media such as twisted-pair cable, coaxial cable and optical fibre, and unguided (wireless) media such as radio waves, microwaves and infrared. Networking devices: hubs, switches, routers and access points. Protocols: the rules that govern communication. Software: network operating systems and applications.

Types of Networks by Size

A PAN (personal area network) covers a few metres, like Bluetooth between a phone and earbuds. A LAN (local area network) covers a building or campus, with high speed and low error, usually Ethernet or Wi-Fi. A MAN (metropolitan area network) covers a city, such as a cable TV network. A WAN (wide area network) covers countries and continents, like the internet.

Network Architecture

In client-server architecture, dedicated servers provide services, such as web pages or files, and clients request them. It is centralised, secure and easy to manage, but the server can be a bottleneck. In peer-to-peer (P2P) architecture, every node is both client and server, sharing resources directly, as in file-sharing systems. It is cheap and has no single point of failure, but is harder to secure and manage.

Table 1.1: Types of networks by size

Type Area Example
PAN A few metres Bluetooth headset
LAN Building or campus College computer lab
MAN A city City-wide cable network
WAN Countries and continents The internet

Example 1.1: Classifying networks

Problem: Classify each: (a) a smartwatch linked to a phone, (b) the computers in a college lab, (c) an ATM network connecting a bank's branches across India, (d) a network linking all the offices of a city's municipal corporation.

Solution:

  1. A watch linked to a phone covers a few metres: PAN.
  2. A lab in one building: LAN.
  3. Branches across the country: WAN.
  4. Offices across one city: MAN.

Result: (a) PAN, (b) LAN, (c) WAN, (d) MAN.

# number of links needed to connect n nodes in a full mesh
for n in (4, 10, 50):
    print(f"{n} nodes: full mesh needs {n * (n - 1) // 2} links, "
          f"star needs {n} links")

Output

4 nodes: full mesh needs 6 links, star needs 4 links
10 nodes: full mesh needs 45 links, star needs 10 links
50 nodes: full mesh needs 1225 links, star needs 50 links

Common mistakes

  • Treating the internet and a network as the same; the internet is a network of networks.
  • Thinking that wireless media are always slower than wired ones.
  • Confusing client-server (central servers) with peer-to-peer (equal nodes).

Key takeaways

  • A network connects nodes to share data and resources.
  • Components: nodes, NICs, media, devices, protocols and software.
  • By size: PAN, LAN, MAN and WAN.
  • Architectures: client-server and peer-to-peer.

Practice questions

  1. Define a computer network.
  2. Give two objectives of a network.
  3. Distinguish a LAN and a WAN.

Answers to the practice questions

  1. A set of devices connected by links to exchange data and share resources.
  2. Resource sharing and communication (also reliability, cost reduction).
  3. A LAN covers a building or campus; a WAN covers countries and continents.

Sources

  • Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit I