beginner

What Is a Network?

The mental model for everything that follows: what a network is, why it exists, and the difference between a LAN and a WAN.

20 min

1. Executive Summary & Objective

In this introductory module, you will establish the foundational mental model of computer networking. You will learn how data is encapsulated into smaller chunks (packets), the fundamental difference between Local Area Networks (LAN) and Wide Area Networks (WAN), and how addressing systems mimic the global postal service to route data across the internet.


2. Core Concept & Theory (The “Why”)

A network is fundamentally a group of devices that can send information to each other. Two laptops connected by a single Ethernet cable constitute a network. The entire Internet is simply a massive “network of networks.”

Encapsulation: Breaking Data Apart

When one device sends information to another (like a 4GB movie file), it doesn’t send the whole file in one massive continuous stream. It breaks the data into smaller chunks, wraps each chunk with addressing information (who it’s from, who it’s for), and sends those chunks out onto the wire.

The receiving device collects all the chunks and reassembles them. This matters because almost every networking concept you will learn is really about how those chunks find their way to the right place, reliably, and in the right order.

Analogy: The Postal System

Think of a network exactly like the global postal system:

  1. Payload: When you write a letter, you don’t throw it out the window. You put it in an envelope.
  2. Addressing: You write the Destination Address and your Return Address on the outside.
  3. Routing: The postal workers (switches and routers) read the address on the outside of the envelope and make decisions about the best path to get that letter to its destination.

The postal worker delivering the letter doesn’t care what you wrote inside it—they only care about the address on the outside. Computer networks operate on the exact same logic.


3. Architecture & Topology (Visualizing)

The most fundamental architectural boundary in networking is the edge of your control. This separates the LAN from the WAN.

  • LAN (Local Area Network): A network you control, usually confined to one physical site (your home, a corporate office floor, a datacenter).
  • WAN (Wide Area Network): A network that connects separate LANs together over a long distance, usually utilizing leased lines or connections from an Internet Service Provider (ISP) that you do not directly own.
graph LR subgraph "Your Corporate Site (LAN)" PC1[Employee Laptop] --- SW1[Access Switch] PC2[VoIP Phone] --- SW1 SW1 --- R1[Edge Router] end subgraph "Service Provider (WAN)" R1 ---|Fiber WAN Link| ISP[ISP Core Router] ISP --- INTERNET((Global Internet)) end
Is the connection between your corporate Edge Router and your ISP a LAN or a WAN link?

It’s a WAN link. Your internal corporate network (everything behind your router) is the LAN. The moment traffic leaves your router’s external interface toward your ISP, it is travelling over a WAN connection you don’t own.


4. Command Execution & Deployment (The “How”)

How do we actually verify if we are connected to a network? Before we ever configure a router, we must understand how to check our own machine’s network address.

On any modern operating system, you can use built-in CLI tools to view your LAN IP address (your “Return Address” in the postal analogy).

Windows (PowerShell/CMD)


ipconfig

Expected Output: You will see IPv4 Address: 192.168.1.15 (or similar). This is your local LAN address.

Linux / macOS (Bash)


ip addr show

5. Verification & Troubleshooting

If you cannot reach a website, how do you verify if the problem is on your LAN or on the WAN (the Internet)?

We use a tool called ping. Ping sends a small test packet (an ICMP Echo Request) to a destination address. If the destination receives it, it replies with an Echo Reply.

Step 1: Test your LAN (The Default Gateway) First, ping your local router. If this fails, the problem is inside your house/office (a broken cable, or bad Wi-Fi).

ping 192.168.1.1

Step 2: Test the WAN (The Internet) Next, ping a reliable public address on the internet, such as Google’s DNS server (8.8.8.8). If Step 1 succeeds but Step 2 fails, your ISP is down.

ping 8.8.8.8

6. Sandbox / Interactive Lab Context

Throughout the rest of this course, you will be placed into our proprietary Pyodide-powered interactive sandboxes. You will have access to virtual routers where you can run actual configuration commands.

Keep this fundamental lesson in mind: every protocol you configure exists to solve one of two problems:

  1. Getting data from A to B (Switching, Routing, DNS, ARP)
  2. Controlling who gets to send data, and to where (Firewalls, VLANs, Security)

When you are ready, proceed to the next module.

🧪 Want to practise this on your own computer? See how to set up your lab →

🤖

Need clarification? Ask GT

Hi, I'm GT — your AI tutor for What Is a Network?. What would you like to know?
📝

Knowledge Check

1 of 2

What is the primary purpose of a computer network?

Report a problem

About: /lessons/what-is-a-network