Networking
How devices connect and share data, the hardware and terms you'll hear every day, and how network performance is measured.
What's a network
An IT network is a system of connected computing devices that communicate and share data, hardware, and resources.
Core networking terms
Networks use specific hardware and rules to work properly. Here are the terms you'll hear most:
- Switch
- Hardware that connects devices inside the same local network and directs data between them.
- Router
- Shares the internet connection from your modem with all the devices on your local network.
- Internet service provider (ISP)
- A company or organization that gives your local network access to the internet.
- Modem
- Connects your local network to your ISP.
- IP address
- A unique number assigned to every device on a network. Like a house address, it tells data where to go. IP stands for Internet Protocol.
- Domain Name System (DNS)
- Translates human-friendly website names (like google.com) into numerical IP addresses.
- DHCP
- Dynamic Host Configuration Protocol: automatically assigns IP addresses to devices when they join a network.
- Firewall
- A digital security guard that blocks unsafe or unauthorized traffic from entering the network.
- Port
- A virtual connection endpoint that directs incoming and outgoing data to the correct application or service on a device.
- Virtual private network (VPN)
- Creates a secure, encrypted connection over the internet to a private network, such as your company's, so you can reach internal servers, including databases, from home.
From your ISP to your devices
ISP (your internet provider)
An internet service provider (ISP) is a company or organization that provides internet service to customers. Leading ISPs in the US include AT&T, Verizon, and Comcast (Xfinity).
Modem (the bridge to your ISP)
A modem is a hardware device that connects your home to the ISP. "Modem" stands for modulator-demodulator: it turns the analog or high-frequency signals coming from your ISP into digital binary data your computers and phones understand, and translates outgoing data back again. Popular modem brands include Netgear, Motorola, and ARRIS.
Router (your local network)
A router takes the internet connection from the modem and shares it with multiple devices over Wi-Fi or Ethernet cables, building your local network. Top router brands include ASUS, Netgear, and Linksys.
Modem vs router
A modem connects your home to your ISP, while a router distributes that connection to all of your devices.
| Modem | Router | |
|---|---|---|
| Job | Brings the internet to your home or office | Brings the internet to your devices |
| IP address | Has a public IP address | Assigns local IP addresses |
| Network | Uses a wide area network (WAN) | Creates a local area network (LAN) |
Common network types
- Local area network (LAN)
- Connects devices in a single room, home, or office building.
- Wide area network (WAN)
- Spans large distances, connecting multiple locations or countries. The internet is the largest WAN.
- Wireless LAN (WLAN)
- A local network that uses Wi-Fi instead of physical cables.
| LAN | WLAN | WAN | |
|---|---|---|---|
| Coverage | A single room, home, or office building | Same as a LAN | Cities, countries, or the entire world |
| Connection type | Wired (Ethernet cables) | Wireless (Wi-Fi) | Leased lines, cellular, VPNs, and the internet |
| Speed and latency | Very fast, very low latency | Fast, but subject to signal interference | Slower, with higher latency than local networks |
| Security | High, thanks to physical access barriers | Moderate; requires encryption like WPA3 | Complex; requires firewalls and VPNs |
| Example | Office computers plugged into a network switch | Your phone on your home Wi-Fi router | The internet |
Measuring network performance
Network performance is measured with specific metrics for speed, latency, and size.
- Speed
- How fast data transfers. It splits into two ideas: bandwidth and throughput.
- Latency
- The time delay before data arrives at its destination.
- Size
- Usually the total volume of data transferred.
Bandwidth (the potential limit)
The theoretical maximum capacity of a network connection to transfer data in a given time, measured in bits per second (bps), such as megabits per second (Mbps) or gigabits per second (Gbps). Think of it as the number of lanes on a highway, or the width of a pipe. Your bandwidth is set by your ISP.
Throughput (realized performance)
The actual amount of data successfully transmitted across the network in a given time, also measured in bps, Mbps, or Gbps. Think of it as the number of cars actually driving on the highway, or the water flowing through the pipe right now.
Latency (delay)
The time it takes data to travel from its source to its destination, usually measured as round-trip time (RTT) in milliseconds (ms). Think of it as how long a single drop of water takes to cross the pipe.
Key differences
| Latency | Throughput | Bandwidth | |
|---|---|---|---|
| What it measures | Delay | Actual delivery rate | Maximum capacity |
| Unit | Milliseconds (ms) | Bits per second (bps) | Bits per second (bps) |
| Real-world limiters | Distance, network hops, congestion | Packet loss, overhead, bottlenecks | Hardware limits, ISP caps |
| Highway example | The time it takes one car to drive from city A to city B | The number of cars passing a checkpoint per minute. Heavy traffic or an accident can lower it, even on a 6-lane highway. | The number of lanes. A 6-lane highway has more capacity than a 2-lane road. |
Size (capacity and data volume)
Network "size" usually refers to either the capacity of a link or the total volume of data stored or transferred:
- Capacity: the maximum bandwidth of a link, measured in bps, such as Mbps or Gbps.
- Data volume: the total amount of data consumed or transferred, such as the gigabytes in a downloaded file or a monthly data cap. It's measured in bytes: kilobytes (KB), megabytes (MB), gigabytes (GB), or terabytes (TB).
Putting it together: connecting to a database
Every time an application talks to a database, several of the networking pieces from this lesson work together:
- Find the server. The application has the database server's name, such as
dbserver.example.com. DNS turns it into an IP address. - Reach it. Routers carry the connection across the network to that IP address, using TCP, the protocol for reliable, two-way connections.
- Get past the firewall. A firewall only lets traffic through to ports it allows.
- Knock on the right door. A port number says which program on the server should receive the connection. An Oracle database's listener usually waits on port 1521.
These are the default ports you'll meet most often:
| Port | Used by |
|---|---|
| 22 | SSH: secure remote login to Linux servers |
| 443 | HTTPS: secure websites and most cloud services |
| 3389 | RDP: remote desktop to Windows servers |
| 1521 | Oracle Database |
| 1433 | Microsoft SQL Server |
| 5432 | PostgreSQL |
| 3306 | MySQL |
When a connection fails, DBAs check each step in order. On Linux, three commands cover most of it:
$ nslookup dbserver.example.com # 1. does the name resolve to an IP address?
$ ping dbserver.example.com # 2. can I reach the server at all?
$ nc -zv dbserver.example.com 1521 # 3. is the port open, or is a firewall blocking it?
Key takeaways
- A network is connected devices sharing data and resources.
- The ISP provides the internet, the modem brings it into the building, and the router shares it with your devices.
- LANs and WLANs are local; WANs, like the internet, span long distances.
- Bandwidth is the limit, throughput is what you actually get, and latency is the delay.
- An application reaches a database through DNS, the network, and the firewall, to the database's port, such as 1521 for Oracle. Check each step in turn when a connection fails.