Network+ (N10-009) · ELI Explains Networking Layers (book)

Layer 3 — Network

4 min read
Want it in plain words first? Jump to Eli explains — the same idea, no jargon.
On this page 3 sections
  1. The college version
  2. Eli explains
  3. Study tools

The college version

What This Layer Does

MAC addresses work beautifully inside one local network and are useless outside it. Nothing in a MAC address tells you where the device is, so there is no way to work out a route to it. Reaching a server on the other side of the world needs a different kind of address and a different kind of device.

That is the Network layer. Its job is to move data between separate networks. The unit it works with is the : the data plus a Layer 3 header holding a source and a destination IP address.

An IP address is a numbered location on a network — something like 192.168.1.42 or 203.0.113.7. Unlike a MAC address, it is structured. Part of it identifies the network, and part of it identifies a device on that network. That structure is what makes routing possible: a device can look at a destination address and tell whether it belongs to the local network or to a distant one, without knowing anything about the distant one.

Moving packets between networks is done by routers. A connects two or more networks. When a packet arrives, the router reads the destination IP address, consults its to decide which connection leads toward that network, and forwards the packet out of it. The next router does the same. No single router knows the whole path; each knows only the next step.

Your own device does a small version of this every time it sends anything. If the destination is local, it delivers locally using Layer 2. If it is not, it sends the packet to its — the router that handles everything not local. At home, that is the box from your internet provider.

Common Examples

  • IPv4, the original addressing scheme, written as four numbers such as 192.168.1.42
  • IPv6, the newer scheme with far more available addresses, written in hexadecimal such as 2001:db8::1
  • Routers, including the one in your home
  • The default gateway setting on every device
  • ICMP, the protocol behind the ping command, used to report problems and test reachability

Two things to note and then set aside. Subnetting: because an IP address has a network part and a device part, administrators can split one large address range into smaller networks by moving where the boundary falls. That is the whole idea; the arithmetic belongs in another book. And IP delivery is described in the standards as best effort — Layer 3 tries to deliver each packet and promises nothing. Guarantees come from Layer 4.

Simple Real-World Example

A laptop at home requests a page from a website. The website's server is on a different network entirely.

The laptop compares the destination IP address with its own network and sees that it is not local. It builds a packet addressed to the server and hands it to its default gateway, the home router. The home router forwards it toward the internet provider, whose routers pass it on, each choosing the next step, until the packet reaches the network the server sits on.

  Home network                                  Server network
  ┌──────────┐    ┌────────┐   ┌────────┐   ┌────────┐   ┌────────┐
  │  Laptop  │───>│ Router │──>│ Router │──>│ Router │──>│ Server │
  └──────────┘    └────────┘   └────────┘   └────────┘   └────────┘
              each router reads the destination IP address
              and chooses only the next step

What Can Go Wrong?

  • No IP address, or the wrong one. A device with an address on the wrong network can reach nothing useful, even with a perfect cable.
  • The default gateway is missing or wrong. Local devices work, everything on the internet does not.
  • A route is missing or broken. Packets travel partway and are dropped at a router that has no way forward.
  • Duplicate IP addresses. Two devices claiming the same address makes delivery unpredictable for both.

Remember This

Layer 3 uses IP addresses and routers to move packets between networks.

Eli, the EliExplains learning guide

Eli explains

The same idea, in plain words

Explain it like I’m 10

Think about sending a package to a friend who lives in another city.

You write their full address on the box: house number, street, city. Then you hand it to the post office. The first worker does not drive it all the way there. They read the address and put the box on whichever truck goes the right way next. At the next stop, another worker reads the same address and chooses the next leg. This repeats until the box arrives.

That is Layer 3.

The address on the box is the IP address. It says which neighborhood — which network — and which house. The workers choosing the next stop are routers. A router is not really a post office worker, of course. The comparison shows you what a router does: it reads where something is going and decides where to send it next.

Why do we need it? Because the layer below only works inside one building. Name tags are perfect in their own classroom and mean nothing three towns away. To cross between networks you need an address with structure, and someone at each junction to read it.

Notice that nobody knows the whole journey. Each worker knows only the next step. That is exactly how the internet works, and it is why it keeps going when one route is closed.

Here is a real example. When you open a website, your computer sends the request to your home router, and routers pass it along until it reaches the website's network.

Keep learning

Ready to build on this? Continue to the next lesson.

Practice Network+ (N10-009)

This lesson has no separate scored set. Practice draws from the subject’s question bank.

Study tools & related lessonsKey vocabulary · Related

Key vocabulary

Packet
data wrapped with a Layer 3 header containing source and
IP address
a structured address identifying a device and the network it
Router
a device that connects networks and forwards packets between
Default gateway
the router a device sends packets to when the
Routing table
the list a router uses to decide which way to forward a

Educational content only. It is not medical, legal or professional advice. Found an error? Tell us.