What a Network Actually Is
A network is two or more devices that can exchange data. At home it might be a laptop, a phone and a printer connected to one box from your internet provider. In an office it may be hundreds of devices spread across several rooms or sites. The ideas are the same at any size: every device needs an address, something has to move data between devices, and everyone has to agree on the rules for talking.
Addresses: IP and MAC
Two kinds of address matter most.
A MAC address is a hardware identifier built into a network adapter. It is used for delivery within a single local network.
An IP address identifies a device on a network at the logical level, and it is what lets data cross from one network to another. IPv4 addresses look like four numbers separated by dots, for example 192.168.1.25, where each number runs from 0 to 255. IPv6 uses longer addresses written in hexadecimal and exists mainly because IPv4 addresses are in limited supply.
Some IPv4 ranges are reserved for private use inside organizations and homes: 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255. Devices with private addresses reach the internet through a router that translates them to a public address, a technique called network address translation.
An address is split into a network part and a device part. Which part is which is set by a subnet mask, covered in more depth under subnet masks. For now, the useful idea is that devices on the same network can talk directly, and traffic to any other network must go through a router.
Most devices get their address automatically from a DHCP service, usually running on the router. Giving addresses out automatically avoids two devices accidentally using the same one.
Routers, Switches and Access Points
These three devices are often confused.
- A switch connects devices within one local network. It learns which MAC address sits on which port and sends data only where it needs to go. The differences between network switches and other equipment are worth knowing as you learn.
- A router connects different networks and decides where to send traffic next. Your home router links your local network to your internet provider.
- A wireless access point lets devices join the network over radio instead of cables. Home routers usually combine router, switch and access point in one box.
A firewall, which may be built into the router, allows or blocks traffic according to firewall rules.
Protocols: Agreed Rules for Talking
A protocol is a set of rules that lets devices understand each other. Networking is often described in layers, with each layer relying on the one below it. A simplified view:
- Physical and link layers. Cables, radio signals and local delivery (Ethernet, Wi-Fi).
- Network layer. IP, which moves packets between networks.
- Transport layer. TCP or UDP. TCP checks that data arrives complete and in order, which suits web pages and email. UDP skips those checks in favor of speed, which suits live voice and video, where a late packet is no use anyway.
- Application layer. The protocols people see: HTTP and HTTPS for the web, SMTP and IMAP for email, SSH for secure remote login, and DNS for names.
Applications use ports, numbered doors on a device, to separate their traffic. Well-known examples are 80 for HTTP, 443 for HTTPS, 22 for SSH and 53 for DNS. A server listening on port 443 is a web server using encryption.
How a Web Page Request Travels
Following one request shows how the parts fit:
- You type a web address. Your device asks a DNS server for the matching IP address, a process explained under DNS lookups.
- Your device sees that the destination is on another network, so it sends the data to its default gateway, which is the local router.
- The router passes the packets along, hop by hop, through other routers toward the destination.
- A connection is set up with the destination server, and the page is requested and returned in packets.
- Your device reassembles the packets and the browser displays the page.
All of that normally takes a fraction of a second. How quickly it happens depends on bandwidth, which is capacity, and network latency, which is delay, topics that are worth reading about separately.
Basic Troubleshooting
When “the internet is down,” work from the bottom up rather than guessing. This is a small version of the wider troubleshooting method.
- Check the physical layer. Is the cable plugged in, or is Wi-Fi connected? Are lights on the device lit as expected?
- Check your address. Run
ipconfigon Windows orip addron Linux to see whether the device has a valid address. An address beginning with169.254on Windows usually means it failed to get one automatically. - Ping the gateway.
pingsends a small test message and reports whether a reply came back. If the router does not answer, the problem is local. - Ping an outside address. If the gateway answers but an outside address does not, the problem is likely between the router and the provider.
- Test names. If an outside address works but a name does not, suspect DNS.
- Trace the path.
traceroute(tracerton Windows) shows the hops along the way and where delays or failures begin.
Change one thing at a time and note what you tried. If many users are affected, check shared equipment first; if only one is, check that device. For slower rather than broken connections, the approach in network troubleshooting goes further.
Security Habits at the Network Level
Networking knowledge and security overlap. Change default passwords on routers and access points, keep their firmware updated, use current Wi-Fi encryption settings, and separate guest devices from business ones where you can. When people work away from the office, virtual private networks are often used to protect traffic on untrusted networks, though they do not solve every privacy problem. These measures reduce risk but do not remove it.
Where to Go Next
You do not need to memorize everything above. Aim to be able to explain, in your own words, what an IP address is, what a router does compared with a switch, and how to test a connection step by step. A small home lab with a spare router and two computers is a practical place to experiment. Those few skills come up in help desk, systems and security work alike, and they make the more advanced material much easier to follow.