Core Definition
A network is a structure in which multiple entities are connected so they can exchange data according to defined rules.
The definition has three important parts:
| Element | Meaning |
|---|---|
| Entities | Communication participants such as PCs, servers, routers, switches, printers, and smartphones |
| Connections | Physical cables, wireless links, VLANs, tunnels, or other relationships that allow data to move |
| Rules | Communication methods such as Ethernet, IP, TCP, and HTTP |
A network is therefore not merely a group of devices. It is a communication structure that lets devices exchange data according to rules.
Network in the Subnet Context
When discussing IP addresses and subnet masks, the word network has a narrower meaning.
In the subnet context, a network is a set of IP addresses that share the same prefix.
For example:
192.168.1.0/24This denotes the set of IPv4 addresses whose first 24 bits are the same. As a range, it is:
192.168.1.0 ~ 192.168.1.255In this context, a network is not a physical place or a pile of devices. It is an IP address range whose boundary is determined by a subnet mask or prefix length.
What Defines a Network Boundary?
For an IP network, the subnet mask, more precisely the prefix length, defines the boundary.
Consider:
192.168.1.10/24The /24 means that the first 24 bits of the 32-bit IPv4 address are treated as the network part.
192.168.1.10/24
first 24 bits -> network part
last 8 bits -> host partSo this address belongs to:
192.168.1.0/24If the same IP address has a different prefix length, the network boundary changes:
192.168.1.10/26With /26, the first 26 bits are the network part, so the address belongs to a smaller network than it would under /24.
The boundary is not determined by the visual dotted-decimal form alone. It is determined by prefix bits.
What Does “Same Network” Mean?
Two IP addresses are in the same network when applying the same subnet mask produces the same network address.
These two addresses are in the same network:
192.168.1.10/24
192.168.1.20/24Both belong to:
192.168.1.0/24These two are in different networks:
192.168.1.10/24
192.168.2.20/24They belong to different networks:
192.168.1.0/24
192.168.2.0/24You cannot reliably decide whether two addresses are in the same network by appearance alone. You need the address and the subnet mask or prefix length.
Network Address and Network Are Different
Consider:
192.168.1.0/24Here 192.168.1.0 is the network address, and /24 is the prefix length. Together, they identify one IP network.
| Item | Value |
|---|---|
| Network address | 192.168.1.0 |
| Prefix length | /24 |
| IP network | 192.168.1.0/24 |
The address 192.168.1.0 alone does not fully identify the range. The prefix length determines whether the network is /24, /25, /26, or something else.
Network From a Routing Perspective
From a routing perspective, a network is a destination address range used to choose a path.
Routers and Layer 3 switches usually do not maintain a separate route for every possible IP address. They route by ranges:
192.168.1.0/24 -> user network direction
192.168.2.0/24 -> server network direction
0.0.0.0/0 -> default routeIn this context, 192.168.1.0/24 and 192.168.2.0/24 are routing units.
An IP network is therefore not only an address group. It is also the destination range a routing device uses when deciding where to forward packets.
Network From a Host Perspective
From a host’s perspective, “same network” means “this destination can be sent to directly at Layer 2 without going through the default gateway.”
Suppose a PC has this configuration:
IP: 192.168.1.10
Mask: 255.255.255.0
Gateway: 192.168.1.1The PC considers itself part of:
192.168.1.0/24If the destination is 192.168.1.20, the PC treats it as local and uses ARP to find the destination MAC address directly.
192.168.1.10 -> 192.168.1.20If the destination is 192.168.2.20, the PC treats it as remote. It does not look for the final destination’s MAC address. It looks for the gateway’s MAC address and sends the packet to the gateway.
192.168.1.10 -> gateway -> 192.168.2.20The same-network distinction is therefore not just a label. It decides whether the host sends directly or forwards through a gateway.
IP Network and Subnet
The terms are often used similarly, but they are not perfectly identical.
An IP network is an address range expressed by a prefix:
192.168.1.0/24A subnet is that IP network assigned to an actual communication segment, such as a LAN, VLAN, or interface segment.
Example:
user VLAN: 192.168.1.0/24
server VLAN: 192.168.2.0/24
admin VLAN: 192.168.3.0/24Each IP network becomes a subnet when assigned to a real segment.
| Term | Meaning |
|---|---|
| IP network | Address range |
| Subnet | Address range assigned to a real communication segment |
Context Matters
The word network changes meaning by context.
| Context | Meaning of Network |
|---|---|
| General use | A structure that lets devices communicate |
| IP and subnet context | A set of IP addresses sharing a prefix |
| Routing context | A destination range used to choose a route |
| Host perspective | The local address range that can be reached directly without a gateway |
Whenever the word network appears, ask whether it means a physical/logical communication structure, an IP address range, or a routing unit.
Core Takeaway
Broadly, a network is a structure that lets multiple devices exchange data according to rules. In the subnet context, a network is an IP address range whose boundary is determined by a subnet mask or prefix length.
“Same network” means two addresses share the same IP prefix under the relevant mask. For a host, that distinction decides whether traffic is sent directly at Layer 2 or handed to a gateway for Layer 3 routing.