Connecting to the Internet
Internet Connection Technologies
Section titled “Internet Connection Technologies”The Evolution: Dial-up to Fiber
Section titled “The Evolution: Dial-up to Fiber”| Technology | Medium | Speed | Still Used? |
|---|---|---|---|
| Dial-up | Phone line (PSTN) | Up to 56 Kbps | Rare - only in very rural areas |
| DSL | Phone line (copper) | 1-100 Mbps | Yes, declining |
| Cable | Coaxial cable | 10-1000 Mbps | Yes, very common |
| Fiber (FTTP) | Fiber optic | 100 Mbps - 10 Gbps | Yes, growing rapidly |
| T1 / T3 | Dedicated copper | 1.5 / 45 Mbps | Legacy business lines |
| Satellite | Radio waves | 10-100 Mbps | Rural / remote areas |
| Cellular (4G/5G) | Radio waves | 10 Mbps - 1+ Gbps | Yes, everywhere |
Dial-up and Modems
Section titled “Dial-up and Modems”The first home internet connections used the Public Switched Telephone Network (PSTN) - the same lines used for phone calls. A modem (modulator/demodulator) converted digital data into audible tones for transmission over voice lines.
- Baud rate = bits per second over the phone line
- Maxed out at 56 Kbps (1990s standard)
- Tied up the phone line during use - no simultaneous calls
- Usenet (1979, Duke University) was one of the first services to use dial-up networking
DSL - Digital Subscriber Line
Section titled “DSL - Digital Subscriber Line”DSL also uses phone lines but operates at higher frequencies that don’t interfere with voice calls - so you can talk and browse simultaneously.
| Type | Upload / Download | Max Speed | Use Case |
|---|---|---|---|
| ADSL (Asymmetric) | Upload slower than download | ~24 Mbps down / 3.5 Mbps up | Home users (browsing, streaming) |
| SDSL (Symmetric) | Equal upload and download | ~1.5 Mbps each way | Businesses (hosting, VoIP) |
| VDSL (Very High Bitrate) | Asymmetric, much faster | ~52 Mbps down / 16 Mbps up | Closer to DSLAM required |
- DSLAM (Digital Subscriber Line Access Multiplexer) = the ISP-side equipment that aggregates DSL connections
- Speed degrades with distance from the DSLAM
Cable Broadband
Section titled “Cable Broadband”Cable internet piggybacks on the coaxial cable infrastructure originally built for cable TV. It uses frequency bands that don’t interfere with TV signals.
- Shared bandwidth model - you share cable bandwidth with neighbors until the signal reaches the ISP’s CMTS (Cable Modem Termination System)
- Speeds can slow during peak usage hours
- DOCSIS (Data Over Cable Service Interface Specification) is the standard that defines cable internet speeds - DOCSIS 3.1 supports up to 10 Gbps downstream
Fiber Connections
Section titled “Fiber Connections”Fiber uses light pulses through glass strands. It’s the fastest, most reliable consumer technology available.

| Type | Fiber reaches… | Last mile | Speed |
|---|---|---|---|
| FTTN (Fiber to the Neighborhood) | Street cabinet | Copper to homes | 25-100 Mbps |
| FTTB (Fiber to the Building) | Building basement | Copper inside building | 100-500 Mbps |
| FTTH / FTTP (Fiber to the Home/Premises) | Your home | All fiber | 1-10 Gbps |
- ONT (Optical Network Terminator) is the demarcation point - converts fiber protocols to Ethernet for your LAN
- Fiber doesn’t degrade over distance like copper and is immune to electromagnetic interference
T-Carrier Technologies (Legacy)
Section titled “T-Carrier Technologies (Legacy)”| Line | Capacity | Speed | How |
|---|---|---|---|
| T1 | 24 channels x 64 Kbps | 1.544 Mbps | Twisted pair copper, dedicated |
| T3 (DS3) | 28 multiplexed T1s | 44.736 Mbps | Dedicated, expensive |
Originally designed by AT&T to carry multiple phone calls over a single cable. Later repurposed for data. Mostly replaced by fiber and cable, but still found in some legacy business installations.
Shared vs dedicated last mile
Section titled “Shared vs dedicated last mile”The last mile is the link between a site and its ISP’s first router. Whether neighbors share it explains most “slow in the evening” complaints.
| Access | Last-mile medium | Shared with neighbors? | Notes |
|---|---|---|---|
| DSL | Copper pair to the exchange | Dedicated line, shared uplink beyond the exchange | Rate drops with distance from the exchange. Upload is much lower than download. |
| Cable | Coax segment off a fiber node | Yes, a few hundred homes per segment | Downstream is broadcast to the segment. Upstream capacity is scheduled among users. |
| Fiber (PON) | Fiber split passively among homes | Yes, upstream is time-shared by the homes on one splitter | Rates are high enough that sharing rarely shows. |
| Fiber (dedicated) | One fiber per site | No | Business circuits with symmetric rates and a service level agreement. |
| Fixed wireless and 5G | Radio to a nearby cell | Yes, per cell | Varies with signal strength and load. |
| LEO satellite | Radio to a satellite overhead | Yes, per beam | Fills gaps where nothing else reaches. |
Most residential links are asymmetric, with far less upload than download. That matters for backups, video calls, and anything that pushes data out of the site. A server workload that uploads heavily needs a symmetric circuit.
Physical media
Section titled “Physical media”Every link runs over a guided medium (a cable) or an unguided one (radio).
| Medium | Type | Typical use | Limits |
|---|---|---|---|
| Twisted pair copper | Guided | Ethernet to the desktop, DSL | Up to 10 Gbit/s but only about 100 m per run. |
| Coaxial cable | Guided | Cable broadband | Shared segment. Needs amplifiers over distance. |
| Fiber optic | Guided | Backbones, data centers, FTTH | Highest capacity and distance, immune to electrical interference. Costs more to install and terminate. |
| Terrestrial radio | Unguided | Wi-Fi, cellular, point-to-point links | Shared spectrum, signal loss from walls and distance, interference. |
| Satellite radio | Unguided | Remote sites, maritime, backup | Latency depends on orbit. |
Satellite latency comes from physics. A geostationary satellite orbits about 36,000 km up, so one round trip adds more than 500 ms and interactive protocols suffer. Low-earth-orbit constellations orbit at a few hundred kilometers, which brings round trips down to tens of milliseconds, comparable to a long terrestrial path.
WAN Technologies
Section titled “WAN Technologies”A WAN (Wide Area Network) connects geographically separated LANs. When a business has offices in different cities, a WAN links them together.
WAN Architecture
Section titled “WAN Architecture” Office A (LAN) Office B (LAN) │ │ [WAN Router] [WAN Router] │ │ ─── Local Loop ───┐ ┌─── Local Loop ─── │ │ ┌─────┴────┴─────┐ │ ISP Core │ │ Network │ └────────────────┘- Demarcation point = where your network ends and the ISP’s begins
- Local loop = the connection between your demarcation point and the ISP’s core network
- WAN router (also called edge/border router) = sits at the boundary, has both a WAN interface (modem) and a LAN interface (Ethernet)
WAN Protocols
Section titled “WAN Protocols”
| Protocol | Layer | How it works | Status |
|---|---|---|---|
| PPP (Point-to-Point) | Data Link | Byte-oriented protocol for direct device-to-device links. Supports authentication (PAP/CHAP), compression, error detection. | Still used (DSL) |
| PPPoE (PPP over Ethernet) | Data Link | PPP frames encapsulated in Ethernet frames. Common for DSL connections. | Common |
| Frame Relay | Data Link / Physical | Packet switching over PVCs (permanent) or SVCs (temporary). Low overhead. | Legacy |
| ATM | Data Link | Fixed-size 53-byte cells. Good for real-time traffic. | Legacy |
| MPLS | Between L2/L3 | Label-based switching - short labels instead of full IP lookups. Fast path forwarding. | Widely used by ISPs |
WAN Optimization Techniques
Section titled “WAN Optimization Techniques”| Technique | What it does |
|---|---|
| Compression | Reduce data size before transmission |
| Deduplication | Store one copy of repeated files, use pointers |
| Traffic shaping | Prioritize important traffic (bandwidth throttling, rate limiting, QoS classification) |
| Local caching | Store frequently accessed files locally |
| Protocol optimization | Tune protocols for high-bandwidth, low-latency needs |
SD-WAN vs Traditional WAN
Section titled “SD-WAN vs Traditional WAN”
Software-Defined WAN (SD-WAN) is a software overlay that simplifies WAN management:
| Aspect | Traditional WAN | SD-WAN |
|---|---|---|
| Cost | Expensive dedicated lines | Uses cheaper internet links |
| Management | Hardware-centric, manual config | Software-defined, centralized |
| Flexibility | Rigid topology | Dynamic path selection |
| Cloud access | Backhauled through data center | Direct cloud on-ramp |
Wireless Networking
Section titled “Wireless Networking”The 802.11 (Wi-Fi) Family
Section titled “The 802.11 (Wi-Fi) Family”How the radio, channel sharing, roaming, and power saving work is covered in Wireless and mobile and Wi-Fi operation.
Wi-Fi operates on radio waves in specific frequency bands. The IEEE 802.11 standards define how devices communicate wirelessly.
| Standard | Wi-Fi Name | Year | Frequency | Max Speed | Key Feature |
|---|---|---|---|---|---|
| 802.11b | Wi-Fi 1 | 1999 | 2.4 GHz | 11 Mbps | First widely adopted |
| 802.11a | Wi-Fi 2 | 1999 | 5 GHz | 54 Mbps | Higher speed, shorter range |
| 802.11g | Wi-Fi 3 | 2003 | 2.4 GHz | 54 Mbps | Backward compatible with b |
| 802.11n | Wi-Fi 4 | 2009 | 2.4 / 5 GHz | 600 Mbps | MIMO, channel bonding |
| 802.11ac | Wi-Fi 5 | 2014 | 5 GHz | 6.9 Gbps | MU-MIMO, 160 MHz channels |
| 802.11ax | Wi-Fi 6 | 2019 | 2.4 / 5 GHz | 9.6 Gbps | OFDMA, TWT, WPA3 required |
| 802.11ax | Wi-Fi 6E | 2020 | 2.4 / 5 / 6 GHz | 9.6 Gbps | New 6 GHz band, more channels |
2.4 GHz vs 5 GHz vs 6 GHz
Section titled “2.4 GHz vs 5 GHz vs 6 GHz”
| Band | Range (indoor) | Channels | Penetration | Issues |
|---|---|---|---|---|
| 2.4 GHz | ~45m (150 ft) | 11-14 (only 3 non-overlapping: 1, 6, 11) | Best - passes through walls | Crowded, interference from Bluetooth/microwaves |
| 5 GHz | ~12m (50 ft) | 25+ non-overlapping | Moderate | Less interference, shorter range |
| 6 GHz | ~12m (50 ft) | 59 channels (14 x 80MHz, 7 x 160MHz) | Lower | Wi-Fi 6E only, very clean spectrum |
Wi-Fi 6 Key Technologies
Section titled “Wi-Fi 6 Key Technologies”
| Technology | What it does |
|---|---|
| OFDMA | Splits channels to serve multiple devices simultaneously (vs one at a time) |
| MU-MIMO | Multiple antennas serve multiple clients in parallel (8x8 streams) |
| TWT (Target Wake Time) | Devices sleep when not transmitting - saves battery for IoT |
| 1024-QAM | More data per transmission symbol (25% throughput increase) |
| BSS Coloring | Reduces interference from neighboring networks |
802.11 Frame Structure
Section titled “802.11 Frame Structure”
An 802.11 wireless frame has more address fields than Ethernet because wireless communication involves access points as intermediaries:
| Field | Size | Purpose |
|---|---|---|
| Frame Control | 2 bytes | Frame type, version, flags |
| Duration | 2 bytes | How long the channel will be reserved |
| Address 1 (Destination) | 6 bytes | Destination MAC |
| Address 2 (Source) | 6 bytes | Source MAC |
| Address 3 (Receiver) | 6 bytes | Access point MAC (for infrastructure mode) |
| Address 4 (Transmitter) | 6 bytes | Used in mesh/WDS mode |
| Sequence Control | 2 bytes | Fragment and sequence numbers |
| Data Payload | 0-2304 bytes | Actual data |
| FCS | 4 bytes | CRC checksum |
Wireless Network Configurations
Section titled “Wireless Network Configurations”| Type | Description | Use Case |
|---|---|---|
| Infrastructure | Devices connect through access points (most common) | Offices, homes |
| Ad-hoc | Devices connect directly peer-to-peer, no AP needed | Quick file sharing, disaster relief |
| Mesh | Devices relay for each other, self-healing if a node fails | Large coverage areas, smart home |
Wireless Channels
Section titled “Wireless Channels”Channels are specific frequency slices within a band. Overlapping channels cause interference.
2.4 GHz Band - 14 channels, only 3 non-overlapping:
Ch 1 Ch 6 Ch 11 ├──────┤ ├──────┤ ├──────┤ 2412 MHz 2437 MHz 2462 MHz
Use channels 1, 6, and 11 for multi-AP deploymentsto avoid co-channel interference# Scan available wireless networks and their channelssudo iwlist wlan0 scan | grep -E "ESSID|Channel|Signal"
# Check your Wi-Fi interface detailsiw dev wlan0 info
# See which channel you're oniwconfig wlan0
# On macOS/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -sWireless Security
Section titled “Wireless Security”Wireless signals broadcast through the air - anyone in range can potentially intercept them. Encryption is essential.

| Protocol | Year | Encryption | Key Size | Status |
|---|---|---|---|---|
| WEP | 1997 | RC4 | 40/104 bit | Broken - crackable in minutes. Never use. |
| WPA | 2003 | TKIP (RC4-based) | 128 bit | Deprecated - vulnerabilities found |
| WPA2 | 2004 | AES-CCMP | 128/256 bit | Standard - still widely used |
| WPA3 | 2018 | AES-GCMP-256 | 192/256 bit | Latest - recommended for new deployments |
WPA3 Improvements
Section titled “WPA3 Improvements”WPA3-Personal:
- SAE (Simultaneous Authentication of Equals) replaces the PSK 4-way handshake - resistant to dictionary attacks and KRACKs
- Forward secrecy - even if your password is later compromised, previously captured traffic can’t be decrypted
- More resistant to offline brute-force attacks
WPA3-Enterprise:
- GCMP-256 encryption (stronger than WPA2’s 128-bit AES-CCMP)
- OWE (Opportunistic Wireless Encryption) - encrypts open network traffic (coffee shop Wi-Fi)
- DPP (Device Provisioning Protocol) - QR code / NFC-based setup replaces WPS
- 384-bit HMAC-SHA for message integrity
- ECDHE/ECDSA for faster, more secure key exchange
Additional Wireless Security
Section titled “Additional Wireless Security”- MAC filtering - whitelist specific MAC addresses on the access point. Adds a layer but is easily spoofed.
- SSID hiding - stops broadcasting the network name. Security through obscurity - doesn’t stop determined attackers.
- 802.1X / RADIUS - enterprise authentication where each user has unique credentials (not a shared password)
# Check your wireless security protocoliw dev wlan0 info# type: managed# channel: 36 (5180 MHz)
# See connected network security detailsnmcli device wifi show-password
# Scan for nearby networks and their securitynmcli device wifi list# SSID SECURITY CHAN SIGNAL# MyNetwork WPA2 6 85# CoffeeShop -- 1 72 <-- OPEN! Avoid or use VPNCellular Networking
Section titled “Cellular Networking”The radio side is described in 5G access network, and the core that authenticates devices and carries their traffic in 5G core network.
Cellular networks divide geographic areas into cells, each served by a cell tower that broadcasts and receives radio signals.
| Generation | Speed | Key Feature |
|---|---|---|
| 2G (GSM) | Up to 50 Kbps | First digital voice + SMS |
| 3G | Up to 2 Mbps | Mobile internet, video calls |
| 4G LTE | Up to 100 Mbps | Streaming, modern mobile apps |
| 5G | Up to 10+ Gbps | Ultra-low latency, IoT, AR/VR |
- Adjacent cells use non-overlapping frequency bands to avoid interference (same concept as Wi-Fi channels 1, 6, 11)
- Cell towers are like wireless access points but with much larger range (kilometers vs meters)
- Beyond phones: tablets, laptops, cars, IoT sensors, and industrial equipment use cellular connections
ISP tiers, peering, and IXPs
Section titled “ISP tiers, peering, and IXPs”The internet is a network of networks. Each network is an autonomous system (AS) that runs its own routing and agrees to carry traffic for its neighbors under commercial terms. Those terms form the structure.
- Access ISPs serve homes, offices, and mobile subscribers. They don’t connect to every other access ISP, so each buys transit from a larger provider.
- Regional ISPs aggregate access ISPs and buy transit from tier-1 providers.
- Tier-1 providers run global backbones and reach the entire internet through peering with each other, without paying anyone for transit.
- Multihoming means a network buys transit from two or more providers, so it stays online if one fails.
- Peering is a direct link between two networks to exchange traffic for each other’s customers only, usually at no charge. It saves both sides the transit cost of the traffic they’d otherwise send upstream.
- Internet exchange points (IXPs) are shared facilities where many networks connect to one switch fabric and peer with each other over it.
- Content and cloud networks run their own private backbones and peer directly with access ISPs, bypassing the tiers.
flowchart TD
T1A["Tier-1 A"] <-->|"peer"| T1B["Tier-1 B"]
R1["Regional ISP"] -->|"transit"| T1A
R2["Regional ISP"] -->|"transit"| T1B
A1["Access ISP"] -->|"transit"| R1
A2["Access ISP"] -->|"transit"| R2
A1 <-->|"peer at IXP"| A2
CN["Cloud or content network"] -->|"direct peering"| A1
The arrows follow the money. Transit means a customer pays a provider. Peering means two networks exchange traffic without payment.
For cloud workloads this explains two common design choices. Traffic to a cloud region usually enters the provider’s private backbone near the user, which is why latency to a large provider’s edge is often lower than the public path would suggest. And a dedicated interconnect (a private circuit from your site into a cloud region) avoids the public internet entirely, giving steadier latency and keeping the traffic off shared transit.
# Show the AS number for every hop on a pathmtr -z --report --report-cycles 5 app.example.comSudden latency jumps usually line up with an AS change on the path, which is where one network hands traffic to another.
Path of a Packet
Section titled “Path of a Packet”