What Is a Computer Network?

Ka Kavitha V Updated 08 Oct 2026
10 min read ·Lesson 2 of 26

What Is a Computer Network?

A computer network is a collection of two or more computers or devices connected together so they can exchange data and share resources. The connection can be physical, using copper or fiber optic cables, or wireless, using Wi-Fi, radio signals, or satellite links. What matters is not the medium but the result: once devices are connected, they can send information back and forth and make use of each other's resources instead of working in isolation.

Note: A computer network does not have to involve the Internet. Two laptops connected directly with a single Ethernet cable already form a network — a very small one. The Internet is simply the largest and most widely known network: a global network of networks. Every network you will study, from a two-device home setup to a multinational corporate system, follows the same basic idea described in this lesson.

A Real-World Example

Picture an office with twenty employees, each with their own computer. Without a network, every computer would need its own printer and its own separate internet connection — expensive, and hard to manage.

Connect those same twenty computers through a network, and they can share:

  • A single printer
  • Common files and folders
  • Business applications
  • One internet connection

The company buys one printer and one internet connection instead of twenty, and employees can immediately access shared files without physically moving data between machines. This is the core value proposition of networking: turning isolated devices into a connected system that shares resources efficiently.

Why Do We Need Computer Networks?

Without a network, every device is an island — nothing it stores or does is reachable by any other device. Networking removes that isolation and makes several everyday capabilities possible:

  • File and document sharing — teams work from the same files instead of emailing copies back and forth.
  • Internet access — a single connection point (like a router) can be shared by every device in a building.
  • Communication — email, instant messaging, and video calls all depend on devices being able to reach each other.
  • Hardware sharing — printers, scanners, and storage devices don't need to be duplicated for every user.
  • Centralized data storage — files can be kept on one server and accessed by many users, instead of being scattered across individual machines.
  • Remote collaboration — employees can access company resources from home or while traveling.

Two patterns show up constantly once you start looking at how networks are actually used:

Client-server communication. Many networks are organized around servers, which store and manage data or services, and clients, which request them. When you open a file stored on a company server, your computer (the client) sends a request, and the server responds with the data. This same pattern underlies most business applications and websites.

Everyday transactions. When you shop online, your device isn't talking to a single distant computer in the abstract — it's exchanging data with retailer's servers over a chain of networks, requesting product pages, submitting payment information, and receiving confirmation, all in the space of a few seconds. Without networking, none of this is possible.

Because of this, businesses, schools, hospitals, governments, and homes now depend on networking as basic infrastructure, the same way they depend on electricity or water service.

The Building Blocks of a Network

Saying a network "shares data" doesn't explain what actually makes that possible. A network is built from a small set of hardware components that each play a distinct role in getting data from one device to another. Understanding these pieces gives you a working mental model of what happens between "Computer A" and "Computer B" whenever they communicate.

Network Interface Card (NIC)

A Network Interface Card (NIC) is the hardware that lets a device connect to a network in the first place. It's the entry and exit point for all data a device sends or receives. Every device on a network — a laptop, a smartphone, a server — has at least one NIC, whether it's a physical expansion card, a chip built into the motherboard, or a wireless adapter.

Every NIC is assigned a unique hardware identifier called a MAC address (Media Access Control address), burned into the card at the factory. Think of it as a permanent serial number for that specific network interface. Networking equipment uses MAC addresses to identify exactly which physical device a piece of data is coming from or going to on a local network.

NICs come in two forms:

  • Wireless NICs use radio signals (Wi-Fi) instead of a physical cable. Laptops, smartphones, and tablets typically rely on a wireless NIC.
  • Wired NICs connect through an Ethernet cable. Desktop computers and servers commonly use wired NICs because a cabled connection is more stable and typically faster than Wi-Fi.

Hubs and Switches: Connecting Devices Together

A single NIC lets one device join a network, but you need something to connect multiple devices to each other. That's the job of hubs and switches.

A hub is the simplest possible connecting device. When it receives data from one device, it retransmits that data out to every other device connected to it, regardless of which one it was actually meant for. Every connected device has to look at the data and decide whether to ignore it or accept it. This wastes bandwidth and increases the chance of data collisions as more devices are added, which is why hubs have largely disappeared from modern networks.

A switch solves this problem. It keeps track of which device is connected to which physical port by learning each device's MAC address, and it uses that information to forward data only to the intended recipient's port instead of broadcasting it everywhere.

For example, in an office network, if Computer A sends a file to Computer B, a switch delivers that data directly to Computer B's port. Computers C, D, and E never see that traffic at all. This targeted delivery gives switches several practical advantages over hubs:

  • Faster effective communication, since bandwidth isn't wasted on irrelevant devices
  • Less network congestion as more devices are added
  • Better performance under heavy use
  • Improved security, since devices only receive traffic addressed to them

Almost every modern wired LAN — home or business — is built around a switch (or a router with a built-in switch) rather than a hub.

Cables: The Physical Path for Data

In a wired network, cables are the medium data physically travels through. The three most common types differ mainly in cost, speed, and resistance to interference:

Cable typeHow it worksTypical use
Twisted pair (e.g., Cat5e, Cat6, Cat6a)Electrical signals over pairs of copper wires twisted together to reduce interferenceStandard choice for home and office LANs — affordable and supports gigabit speeds
CoaxialElectrical signals over a shielded copper core, similar to a TV cableBetter interference shielding than twisted pair, but more expensive and less common in modern LANs
Fiber opticPulses of light through a thin glass or plastic strandISP backbones, data centers, and long-distance links, due to extremely high speed and minimal signal loss over distance

Fiber optic cabling is what allows internet service providers, data centers, and government networks to move enormous amounts of data over long distances with very little degradation — something copper-based cables can't match at the same distance.

Router: Connecting Networks to Each Other

Everything discussed so far connects devices within one network. A router does something different: it connects separate networks together and decides how to move data between them.

The Wi-Fi router in a typical home is doing two jobs at once. It acts as a switch for the devices inside the house, and it acts as a router connecting that home network to the Internet Service Provider's network. Its core responsibilities include:

  • Directing data between two or more distinct networks (for example, your home network and your ISP's network)
  • Connecting a local network (LAN) to the wider Internet
  • Assigning private IP addresses to devices on the local network — typically handled through a built-in service called DHCP (Dynamic Host Configuration Protocol), so each device doesn't need to be configured manually

Where a switch asks "which port does this MAC address live on?", a router asks a different question: "which network does this data need to reach, and what's the best path there?"

Modem: The Bridge to Your ISP

A modem (short for modulator-demodulator) connects your local network to your Internet Service Provider's infrastructure. Its job is signal conversion: it takes the digital signals your devices use and converts them into a form suitable for transmission over the ISP's line (cable, DSL, or fiber), and converts incoming signals back into digital data your devices understand.

In most homes today, the router and modem are separate devices working together (or combined into a single box provided by the ISP): the modem talks to the ISP, and the router distributes that connection to every device in the house.

How Networks Are Classified by Scale

Not every network looks like the office LAN or home Wi-Fi setup described above. Networks are commonly classified by how much physical area they cover, which also affects the technology used to build them.

Personal Area Network (PAN)

A PAN connects devices belonging to a single person over a very short range — typically just a few meters — usually using Bluetooth or Wi-Fi.

Examples: a smartphone paired with wireless earbuds, or a Bluetooth keyboard connected to a laptop.

Local Area Network (LAN)

A LAN connects devices within a limited physical space, such as a home, office, school, or single building. LANs are typically fast, inexpensive to set up, and relatively easy to manage, which is why they're the most common network type most people interact with directly.

Example: an office network connecting employee computers to shared printers and a file server.

Metropolitan Area Network (MAN)

A MAN spans a larger area than a LAN, typically a city or a large campus, often connecting multiple LANs together.

Example: a city government linking several municipal office buildings across town into one network.

Wide Area Network (WAN)

A WAN connects networks across large geographical distances — cities, countries, or continents — typically using leased telecommunications lines, fiber optic backbones, and satellite links.

Example: the Internet itself is the largest WAN in existence — a network of interconnected networks spanning the entire globe.

The relationship between these is often summarized this way: several devices form a LAN, several connected LANs can form a MAN or WAN, and the interconnection of countless WANs around the world is what we call the Internet.

Common Misconceptions

"Network" and "Internet" are not the same thing. The Internet is one specific, very large network — but a network can be as small as two computers linked by a single cable with no internet connection at all.

A switch is not just a "better hub." They solve the same basic problem — connecting multiple devices — but a hub has no awareness of where data should go, while a switch actively learns device addresses and directs traffic accordingly. This difference in behavior, not just speed, is why switches replaced hubs almost everywhere.

Routers don't just "connect to Wi-Fi." A router's defining job is connecting separate networks (like your home network and your ISP's network) and directing traffic between them. The wireless access point functionality most home routers also include is a separate, additional feature bundled into the same device.

0 Comments

Reviewed before they appear

No comments yet.

Computer-Network
Ask about this post
AI Ask about this post

Ask questions about What Is a Computer Network? and get answers drawn from it.

Signed-in readers only.