Lesson 4 of 5 · Introduction to Computers

Networking

How devices connect and share data, the hardware and terms you'll hear every day, and how network performance is measured.

Beginner 7 sections 7 min read

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

Internet (ISP) Modem Router Wi-Fi Ethernet Your devices
Your ISP brings the internet to your modem; your router shares it with 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.

ModemRouter
JobBrings the internet to your home or officeBrings the internet to your devices
IP addressHas a public IP addressAssigns local IP addresses
NetworkUses 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.
LANWLANWAN
CoverageA single room, home, or office buildingSame as a LANCities, countries, or the entire world
Connection typeWired (Ethernet cables)Wireless (Wi-Fi)Leased lines, cellular, VPNs, and the internet
Speed and latencyVery fast, very low latencyFast, but subject to signal interferenceSlower, with higher latency than local networks
SecurityHigh, thanks to physical access barriersModerate; requires encryption like WPA3Complex; requires firewalls and VPNs
ExampleOffice computers plugged into a network switchYour phone on your home Wi-Fi routerThe 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

LatencyThroughputBandwidth
What it measuresDelayActual delivery rateMaximum capacity
UnitMilliseconds (ms)Bits per second (bps)Bits per second (bps)
Real-world limitersDistance, network hops, congestionPacket loss, overhead, bottlenecksHardware limits, ISP caps
Highway exampleThe time it takes one car to drive from city A to city BThe 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:

Applicationwants the database DNSname → IP address Firewallallows port 1521? Listenerwaits on 1521 Databaseready 1. dbserver.example.com → 10.0.0.5 2. connect to10.0.0.5:1521
  1. Find the server. The application has the database server's name, such as dbserver.example.com. DNS turns it into an IP address.
  2. Reach it. Routers carry the connection across the network to that IP address, using TCP, the protocol for reliable, two-way connections.
  3. Get past the firewall. A firewall only lets traffic through to ports it allows.
  4. 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:

PortUsed by
22SSH: secure remote login to Linux servers
443HTTPS: secure websites and most cloud services
3389RDP: remote desktop to Windows servers
1521Oracle Database
1433Microsoft SQL Server
5432PostgreSQL
3306MySQL

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.