Course contentsShow
← System Design
Lesson 26 of 1,9191. System Design Mindset and First PrinciplesFree lesson

Bandwidth Estimation from Data Size

Estimate network bandwidth requirements from request rate, average payload size, and data transfer patterns.

Bandwidth Estimation from Data Size

What You'll Learn

You'll learn how to calculate network bandwidth requirements by combining request rates, data payload sizes, and transfer patterns.

The Core Idea

Bandwidth measures how much data flows through your network over time. To estimate it, you need three ingredients:

  1. Request rate (requests per second)
  2. Average payload size (bytes per request)
  3. Transfer direction (upload, download, or both)

Think of bandwidth like water flowing through a pipe. The request rate is how many buckets you're pouring in per second, and the payload size is how full each bucket is. Multiply them together to find your flow rate.

The Basic Formula

Bandwidth (bytes/sec) = Requests per second × Average payload size (bytes)

For example, if your video streaming service handles:

  • 10,000 requests/second
  • Each video chunk averages 500 KB (512,000 bytes)

Then:

Bandwidth = 10,000 req/s × 512,000 bytes = 5.12 GB/s

Consider Both Directions

Don't forget that data flows both ways:

  • Upload bandwidth: User posts a 2 MB photo → your servers receive it
  • Download bandwidth: Your servers send that photo to 1,000 viewers → much larger requirement

If 1,000 users/second upload 100 KB photos, but 50,000 users/second download them:

  • Upload: 1,000 × 100 KB = 100 MB/s
  • Download: 50,000 × 100 KB = 5 GB/s

The download bandwidth dominates your infrastructure needs.

Peak vs Average

Remember your peak traffic multipliers from earlier lessons. If average bandwidth is 2 GB/s but peak traffic is 3× higher, provision for 6 GB/s.

Key Takeaway: Bandwidth = Request Rate × Payload Size × Direction. Always estimate both upload and download bandwidth, and account for peak traffic patterns when sizing your network infrastructure.