Core Fundamentals

Bandwidth

0 of 6 complete

0%

Contents

Back|Core FundamentalsBandwidth
1/6
15 min left
  1. Home
  2. System Design: Foundation
  3. Core Fundamentals
  4. Bandwidth
Prerequisites
LatencyrequiredThroughputrequired
Related Topics
DNS (Domain Name System)Load Balancing & ProxiesUnicast RoutingLoad Balancing & ProxiesBroadcastLoad Balancing & ProxiesMulticastLoad Balancing & ProxiesAnycast RoutingLoad Balancing & Proxies
Previous lessonThroughputNext lessonSynchronous Processing

System Design

  • Foundation
1 of 6
  • Intermediate
  • Advanced
  • Capstone
  • AI Engineering

    • Foundation
    • Data, RAG and Agents
    • Evaluation, LLM Ops and Security

    systemdesign.academy

    • Home
    • Glossary
    • Interview prep
    • Reviews
    • About
    • Privacy
    • Terms

    this free lesson is part of

    System Design Masterclass

    • 770 lessons, beginner to principal
    • 90 real interview systems taken apart step by step
    • An AI tutor beside every lesson that answers and draws
    • Lifetime access, every new lesson included

    $49 once, by PayPal

    See the System Design course

    Save your progress and get the interview checklist PDF

    System Design Interview Cheat Sheet: the 7 interview stages, the 10 points a scorecard grades, 12 classic systems. 18 pages. Free with an account.

    you just read a free lesson from

    System Design Masterclass

    • 770 lessons, beginner to principal
    • 90 real interview systems taken apart step by step
    • An AI tutor beside every lesson that answers and draws
    • Lifetime access, every new lesson included

    $49 once, by PayPal

    See the System Design course

    Why Should You Care About Bandwidth?

    You've now learned about (how fast one request is) and (how many requests a system handles). But there's a third piece of the puzzle that ties them together:

    How much data can your connection actually carry?

    Think about a water pipe. You can have the highest water pressure in the world (low latency) and multiple pipes running in parallel (high throughput), but if each pipe is only 1 centimeter wide, there's a hard limit to how much water can flow through it. No matter what you optimize, you can't push more water through a narrow pipe.

    That pipe width? That's bandwidth.

    Bandwidth matters in everyday life more than you might think:

    • Your home internet plan is defined by bandwidth: "100 Mbps download speed" means the pipe to your house can carry 100 megabits of data per second
    • Netflix recommends 25 Mbps for streaming 4K video. If your bandwidth is 10 Mbps, no amount of optimization will get you a smooth 4K stream
    • Cloud providers charge for bandwidth. AWS charges per gigabyte transferred out of their data centers. Companies like Netflix spend millions on bandwidth costs every month
    • Mobile networks have significantly lower bandwidth than wired connections, which is why apps feel slower on cellular data

    Understanding bandwidth helps you make critical decisions: How much data should your API responses contain? Should you compress images? Do you need a ? Can your architecture handle video streaming?

    What Exactly Is Bandwidth?

    Bandwidth is the maximum amount of data that can be transferred over a network connection in a given time period. It's the theoretical upper limit, the size of the pipe.

    It's measured in:

    • bps, bits per second
    • Kbps, kilobits per second (1,000 bits)
    • Mbps, megabits per second (1,000,000 bits)
    • Gbps, gigabits per second (1,000,000,000 bits)

    Important: Note that bandwidth uses bits (lowercase b), not bytes (uppercase B). There are 8 bits in a byte. So a 100 Mbps connection can transfer at most 12.5 MB (megabytes) per second. This trips up a lot of beginners!

    The Pipe Analogy

    Pipe PropertyNetwork Equivalent
    Width of the pipeBandwidth, how much data CAN flow at once
    Water pressure, how quickly water reaches the other end
    Total water delivered per hour, how much data actually DOES flow
    Maximum capacity of the pipeBandwidth, the hard ceiling

    Here's the critical insight: Throughput can never exceed bandwidth. Just like the actual water delivered per hour can never exceed what the pipe's width allows, the actual data transferred can never exceed the connection's bandwidth.

    But throughput is often less than bandwidth because of:

    • Network congestion (too many users sharing the pipe)
    • Protocol overhead ( headers, encryption, etc. Take up space)
    • Packet loss (some data needs to be re-sent)
    • Server limitations (the server can't send data fast enough to fill the pipe)

    Real-World Bandwidth Ranges

    Connection TypeTypical Bandwidth
    3G mobile1 - 10 Mbps
    4G LTE mobile10 - 50 Mbps
    5G mobile100 - 1,000 Mbps
    Home Wi-Fi (standard)50 - 300 Mbps
    Home fiber optic500 - 2,000 Mbps
    Data center link (server to server)10 - 100 Gbps
    Submarine fiber cable (intercontinental)200+ Tbps per cable

    Notice the massive difference: a data center link is roughly 1,000x faster than a home connection. This is why the same app feels instant on a server but sluggish on a phone.

    after “What Exactly Is Bandwidth?”

    There is more to this than one section can hold.

    Throughput in the System Design course takes it from here.

    It ends with a short quiz, so you know it stuck.

    See the System Design course

    The Pipe Width Problem

    Let's build up an intuition for bandwidth with a series of scenarios. Watch how the same data takes wildly different amounts of time depending on the pipe it flows through.

    Bandwidth vs. Throughput vs. Latency. The Complete Picture

    Now that you've learned all three concepts, let's see how they relate. This is one of the most important mental models in system design.

    The Highway Analogy. Revisited

    Imagine a highway connecting two cities:

    ConceptHighway AnalogyDefinition

    Bandwidth in practice

    Why CDNs Exist

    Content Delivery Networks (CDNs) solve a fundamental bandwidth problem. If Netflix served all video from a single data center in Virginia, the bandwidth required at that one location would be astronomical, and users in Tokyo would experience terrible .

    Instead, CDNs copy content to hundreds of locations worldwide. Each edge server needs only enough bandwidth to serve its local users. This distributes the bandwidth requirement across many locations.

    Mobile-First Design

    When building applications, you need to consider bandwidth constraints of mobile users:

    • A typical 4G connection is 10-50 Mbps, sounds fast, but shared among all apps

    Test Your Understanding

    Knowledge Check

    3 questions - Score 80% to pass

    Q1

    What is bandwidth?

    Q2

    A network connection has 100 Mbps bandwidth. Due to network congestion and protocol overhead, only 60 Mbps of actual data is being transferred. What is the throughput?

    Q3

    You're building a mobile app that loads a feed of photos. Users on 4G connections report the feed loads slowly. What should you try first?

    Unit
    BandwidthThe total number of lanes on the highwayMaximum data the connection CAN carryMbps, Gbps
    The actual number of cars passing through per hourAmount of data that IS being transferredRequests/sec, Mbps
    The time it takes ONE car to drive from city A to city BTime for one piece of data to travel from source to destinationMilliseconds

    How They Interact

    Scenario 1: High bandwidth, low throughput You have a 10-lane highway (high bandwidth), but only 5 cars are using it (low throughput). The highway is underused. This is like having a gigabit internet connection but only browsing text-based websites, you're not using your available bandwidth.

    Scenario 2: Bandwidth bottleneck You have a 2-lane highway (low bandwidth) and 1,000 cars trying to use it. Traffic jams everywhere. Latency increases because cars are stuck waiting. Throughput is capped at the highway's capacity. This is what happens when millions of users try to stream video during a major event on an undersized network.

    Scenario 3: High bandwidth, high latency You have a massive 20-lane highway (high bandwidth), but the two cities are 1,000 km apart (high latency). You can send lots of data at once, but each piece takes a long time to arrive. This is what happens with satellite internet, great bandwidth, terrible latency (500ms+).

    The Formulas That Connect Them

    Throughput is always less than or equal to Bandwidth (you can never transfer more than the pipe allows)

    Effective Throughput = Bandwidth x Utilization (how much of your available bandwidth you're actually using)

    Bandwidth-Delay Product = Bandwidth x Latency (the amount of data "in flight" at any moment, important for understanding network buffers)

    That last one deserves more than a line, because it explains something that otherwise looks impossible: a very fast link that transfers very slowly.

    When to Optimize Which

    Problem You're SeeingLikely BottleneckSolution
    Single request is slowLatencyMove servers closer, add , optimize code
    Can't handle enough usersThroughputAdd more servers, optimize processing, use async
    Large file transfers are slowBandwidthCompress data, use , upgrade network
    Video streaming buffers constantlyBandwidth + LatencyUse adaptive bitrate streaming, CDN, pre-buffering
    API responses are huge and slowBandwidth + LatencyPaginate responses, compress, use to request only needed fields

    Two experiments tell all three apart, and you can run both in an afternoon.

    after “Bandwidth vs. Throughput vs. Latency. The Complete Picture”

    The follow-up question usually starts here.

    The System Design course walks through it step by step in Latency.

    The AI tutor beside the lesson answers your follow-up questions, and can draw.

    Look inside the System Design course
  • Mobile plans often have data caps, bandwidth has a monthly cost for users
  • Cell towers have shared bandwidth, at a concert or stadium, thousands share the same tower
  • This is why engineers:

    • Compress images (a 5MB photo becomes 200KB with WebP format)
    • Lazy load content (only load what's visible on screen)
    • Use pagination (send 20 items at a time, not 10,000)
    • Implement progressive loading (show a blurry preview first, then load the full image)

    Video is the other place this shows up, and players solve it by refusing to commit to one answer. They keep measuring and keep changing their mind.

    Bandwidth Costs Money

    Cloud providers charge for data transfer:

    • AWS charges ~$0.09 per GB of data transferred out
    • A popular app serving 1 million users, each downloading 10 MB, costs ~$900 per request cycle
    • Netflix is estimated to spend over $1 billion annually on bandwidth and content delivery infrastructure

    This is why engineers obsess over payload sizes. Reducing your average API response from 50 KB to 10 KB doesn't just make things faster, it can cut your bandwidth bill by 80%.

    after “Bandwidth in practice”

    Want to go one level deeper on this?

    Pick it up in Load Balancing, from the System Design course.

    You get it for life once you join, with every new lesson included.

    See what the course covers $49 once, lifetime access