What Is a Computer Network? Definition & Basics
In this article
- Core Concepts: Nodes, Links, and Protocols
- Types of Networks by Size and Scope
- How Devices Connect: Hardware and Addressing
- How Data Moves: The Role of the OSI Model
- Common Network Types: Client‑Server vs. Peer‑to‑Peer
- Key Protocols You Should Know
- Network Security: Protecting Your Data
- How to Set Up a Simple Home Network
- If That Didn’t Work: Basic Troubleshooting
- Frequently Asked Questions
A computer network is two or more devices connected so they can share data, resources, and internet access. The connection can be wired (Ethernet cable) or wireless (Wi‑Fi), and the devices can be anything from laptops and phones to printers and smart TVs. Networks exist in homes, offices, schools, and across the globe—the internet itself is the largest network of networks. In short, a network lets devices talk to each other and share what they have.
Core Concepts: Nodes, Links, and Protocols
Every network is built from three basic parts:
- Nodes – the devices on the network (computers, phones, printers, servers).
- Links – the physical or wireless connections between nodes (cables, radio waves, fiber optics).
- Protocols – the rules that govern how data is sent and received. The most important is TCP/IP, which is the foundation of the internet and most local networks.
When you send a message or open a webpage, your device splits the data into small packets, addresses them with the destination’s IP address, and sends them through the network. The receiving device reassembles the packets in order. This packet‑switching method is how networks handle many conversations at once without a dedicated line for each one.
Types of Networks by Size and Scope
Networks are usually classified by their geographic reach:
- PAN (Personal Area Network) – a very small network, like Bluetooth connecting your phone to earbuds or a smartwatch.
- LAN (Local Area Network) – a network in one building or office, typically using Ethernet or Wi‑Fi. Your home Wi‑Fi is a LAN.
- MAN (Metropolitan Area Network) – spans a city or campus, often used by universities or local governments.
- WAN (Wide Area Network) – covers a large geographic area. The internet is the ultimate WAN, connecting LANs across the world.
There’s also a VPN (Virtual Private Network), which is not a separate physical network but a secure tunnel over a public one—it lets you access a private network as if you were directly connected.
How Devices Connect: Hardware and Addressing
To join a network, a device needs a network interface—usually a network interface card (NIC) built into the motherboard or a USB adapter. The NIC has a unique hardware address called a MAC address, but for communication across networks, devices use IP addresses (like 192.168.1.1).
In a typical home network, the router acts as the central hub. It assigns local IP addresses to your devices via DHCP, forwards traffic to the internet, and often includes a built‑in switch (for wired connections) and a wireless access point (for Wi‑Fi). In larger networks, you’ll also find switches (to connect many devices within a LAN) and firewalls (to filter traffic).
How Data Moves: The Role of the OSI Model
To understand how networks work, it helps to know the OSI model—a 7‑layer framework that describes how data travels from one application to another. You don’t need to memorize all layers, but the key idea is that each layer has a specific job:
- Physical – cables, radio signals, electrical pulses.
- Data Link – frames, MAC addresses, switches.
- Network – IP addresses, routing, packets.
- Transport – TCP/UDP, ports, ensuring data arrives correctly.
- Session – establishes and manages connections.
- Presentation – translates data formats (e.g., encryption).
- Application – the software you use (browsers, email clients).
When you send a request, it goes down the layers, each adding its own header, then travels over the wire, and goes up the layers on the receiving side. This layered design is why different types of networks can interoperate.
Common Network Types: Client‑Server vs. Peer‑to‑Peer
Two main architectures exist:
- Client‑Server – some devices (servers) provide resources or services, and others (clients) request them. Examples: a web server hosting a site, a file server in an office, or a game server for multiplayer.
- Peer‑to‑Peer (P2P) – all devices have equal status and can both provide and consume resources. Examples: file sharing over BitTorrent, or a small home network where you share files between two PCs without a dedicated server.
Most real‑world networks are a mix. Your home network is peer‑to‑peer for file sharing, but when you stream Netflix, your device acts as a client to Netflix’s servers.
Key Protocols You Should Know
Protocols are the languages of networking. Beyond TCP/IP, you’ll encounter:
- HTTP/HTTPS – for web browsing. HTTPS adds encryption.
- DNS – translates domain names (like google.com) into IP addresses.
- DHCP – automatically assigns IP addresses to devices on a network.
- SMTP/IMAP/POP3 – for sending and receiving email.
- FTP/SFTP – for transferring files between computers.
Each protocol has a default port (e.g., 80 for HTTP, 443 for HTTPS), but you rarely need to know these unless you’re configuring a firewall or a server.
Network Security: Protecting Your Data
Security is a critical part of any network. Basic measures include:
- Firewalls – filter incoming and outgoing traffic based on rules.
- Encryption – Wi‑Fi should use WPA2 or WPA3; data sent over the internet should use HTTPS or a VPN.
- Authentication – passwords, PINs, or biometrics to prevent unauthorized access.
- Updates – keeping router firmware and device software patched against vulnerabilities.
A common misconception is that a home network is safe if it has a password. But if you use an old WEP key or a default router password, attackers can easily break in. Always change the default admin password on your router and use a strong Wi‑Fi passphrase.
How to Set Up a Simple Home Network
Setting up a basic home network is straightforward. Here’s a typical process for a wired and wireless network:
- Connect your modem to your internet service provider’s line (cable, fiber, or DSL).
- Connect your router to the modem with an Ethernet cable (usually into the WAN or Internet port).
- Power on the router and wait for the lights to stabilize.
- Connect wired devices (like a desktop PC or printer) to the router’s LAN ports using Ethernet cables.
- Enable Wi‑Fi on your router and set a network name (SSID) and a strong password (WPA2 or WPA3).
- Connect wireless devices by selecting your network and entering the password.
Most routers have a setup wizard that guides you through these steps. If you have a combined modem‑router unit, you can skip steps 1 and 2.
If That Didn’t Work: Basic Troubleshooting
If a device can’t connect, try these in order:
- Restart the device and the router (unplug for 30 seconds, then plug back in).
- Check the Wi‑Fi – make sure you’re connecting to the correct network and that the password is right.
- Check cables – for wired connections, ensure the Ethernet cable is firmly plugged in.
- Check the router’s lights – a solid green internet light usually means the connection is up.
- Update drivers – on a PC, update the network adapter driver from the manufacturer’s website.
- Reset the router – as a last resort, press the reset button (this clears all settings, so you’ll need to reconfigure it).
If none of that works, check whether your internet service provider has an outage in your area—sometimes the problem is outside your home.
Frequently Asked Questions
What’s the difference between a network and the internet?
A network is any group of connected devices. The internet is a global network of networks that uses TCP/IP to connect millions of smaller networks. So every network is not the internet, but the internet is a network of networks.
Can I connect two computers directly without a router?
Yes. You can use an Ethernet cable between two computers (modern devices auto‑detect the connection) or set up a Wi‑Fi hotspot on one device and connect the other to it. This creates a simple peer‑to‑peer network, but you won’t have internet access unless one of the computers shares its internet connection.
What is an IP address and why does it matter?
An IP address is a unique numeric identifier for a device on a network. It’s like a mailing address—it tells data where to go. Without an IP address, devices can’t find each other. IP addresses can be private (used within a local network) or public (used on the internet).
Is it safe to use public Wi‑Fi?
Public Wi‑Fi is convenient but risky because you don’t control the network. Use a VPN to encrypt your traffic, avoid logging into sensitive accounts (like banking), and make sure websites use HTTPS. On many public networks, you’re sharing the connection with strangers, so treat it as untrusted.
What does “bandwidth” mean?
Bandwidth is the maximum amount of data that can travel over a network connection in a given time, usually measured in megabits per second (Mbps). Higher bandwidth means faster data transfer—useful for streaming, gaming, or large downloads. It’s often confused with speed, but speed is the latency (ping), which is how fast data travels.