Learning Question

What does the word “network” mean when a host is deciding where to send traffic?

“Network” is not one fixed object. It can mean a connected communication structure, an IP prefix, a routing destination, or the local set of addresses a host treats as directly reachable. The meaning depends on the layer and the question being asked.

For host reachability, the useful meaning is practical:

Which destination addresses can I treat as local,
and which destinations require another device to forward traffic onward?

The General Meaning

In the broadest sense, a network is a structure that lets devices exchange data according to shared rules.

That broad definition includes devices, links, and protocols:

devices
-> connected by physical, wireless, or virtual links
-> communicating by rules such as Ethernet, IP, TCP, or HTTP

This broad meaning is useful, but it is too general for a host’s next-hop decision.

The IP Prefix Meaning

In IP addressing, a network often means a block of IP addresses that share a prefix.

For example:

192.168.1.0/24

This describes an address range whose first 24 bits are the network prefix. The prefix length matters. 192.168.1.10/24 and 192.168.1.20/24 fall in the same 192.168.1.0/24 prefix. 192.168.1.10/26 belongs to a smaller prefix boundary.

An IP address alone is not enough. The prefix length or subnet mask tells the host how to interpret the address range.

The Routing Meaning

In routing, a network is a destination range that can be matched in a routing table.

A routing table does not normally keep a separate route for every individual remote host. It keeps routes for prefixes:

192.168.1.0/24 -> use local interface
192.168.2.0/24 -> send toward another router
0.0.0.0/0       -> default route

When the host has a packet for a destination IP, it chooses the best matching route. That route tells the host which interface and next hop to use.

The Host Meaning

From the host’s point of view, a local network is the range it treats as directly reachable through one of its interfaces.

For example:

interface: 192.168.1.10/24
connected route: 192.168.1.0/24

If the destination falls inside that connected route, the host can try direct link-layer delivery. If it does not, the host needs a gateway or another route.

Core Mental Model

Do not ask only “are these devices on the same network?” Ask which meaning of network is being used:

general communication structure
IP prefix
routing destination
host-local directly reachable range

The host reachability model mainly uses the last two meanings: routing destinations and directly reachable local prefixes.