Fastest Way to Get a 2 TB Dataset to a Colleague in San Francisco
System DesignModel answerLast updated
Estimate and compare network transfer against shipping physical storage for a 2 TB dataset, state assumptions, and identify when each approach wins.
A colleague in San Francisco needs a 2 TB dataset from you, and the goal is to get it into their hands in the shortest possible wall-clock time.
Explain how you would do it.
- Which transfer method (or combination of methods) would you pick, and why?
- State your assumptions explicitly, for example: link speeds at both ends, whether you can move physical storage, how far away you are, security or compliance limits, and how much money you can spend.
- Show a quick back-of-envelope calculation for each option you consider.
- Say what would change your answer, and describe how you would verify that the data arrived intact.
There is no single correct number. You are judged on how clearly you estimate, how well you compare the options, and whether you can name the break-even point between them.
Hints
Hint 1
Convert units first: 2 TB is about 1.6 x 10^13 bits. Divide by the effective throughput of the slowest link (the sender's upload or the receiver's download), not the advertised plan.
Hint 2
For physical shipping, total time is copy onto the drive + transit + copy off the drive. Do not forget the copy time at both ends, and compare it to the network time at several bandwidths.
Hint 3
Find the break-even bandwidth where the network matches the physical option for a local handoff versus overnight shipping, then cover encryption, checksums, resumability, and what would flip the decision (for example, the receiver already has most of the data).
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
What a strong answer looks like
This is an estimation and judgment question. Do not give one fixed answer. Give a decision rule, back it with numbers, and say which assumption flips it.
Two families of options
- Network transfer. Time is roughly size divided by effective throughput. It scales with bandwidth.
- Physical transfer ("sneakernet"). Time is copy-out + transit + copy-in. Latency is high, but the effective bandwidth is enormous and nearly independent of data size at this scale.
Back-of-envelope numbers
2 TB = 2 x 10^12 bytes = 1.6 x 10^13 bits. Assume about 80% of line rate is achievable after protocol overhead and contention.
| Bottleneck link | Realistic time |
|---|---|
| 50 Mbps (typical home upload) | ~4.6 days |
| 100 Mbps | ~2.3 days |
| 1 Gbps | ~5.5 hours |
| 10 Gbps | ~35-45 minutes |
Physical media:
- Portable NVMe SSD at about 1 GB/s: about 35 minutes to write and 35 minutes to read. The drive costs roughly $100-150.
- External HDD at about 150-200 MB/s: 3-4 hours each way, so it is much less attractive.
- Transit: about 1-3 hours for a same-day courier or driving within the Bay Area, and about 16-24 hours for overnight air from elsewhere in the US.
So a local handoff with an NVMe drive takes about 35 min + 1.5 h + 35 min, around 2.5 hours. Overnight shipping takes about 21-22 hours.
Decision rule
If you are in or near the Bay Area
- With a bottleneck at or below ~1 Gbps, copy to an encrypted NVMe SSD and drive or courier it over. About 2-3 hours total, which beats 1 Gbps (about 5.5 h) and beats home broadband by days.
- The network wins only if both ends have roughly 2 Gbps or more of effective throughput, such as two datacenters or cloud regions. At 10 Gbps it takes under an hour.
If you are far away
- With symmetric 1 Gbps or better, use the network (about 5-6 h), which beats overnight shipping (about 20+ h).
- Below roughly 200 Mbps effective, overnight an encrypted SSD. The network would take a day or more.
Hedge: if cost is not a concern, do both. Start a resumable network transfer and ship a drive at the same time, then use whichever finishes first. This protects against a lost package or a throttled link.
Assumptions worth stating
- Bandwidth: the real bottleneck is min(sender upload, receiver download). Measure it with
iperf3rather than trusting the plan. - Compressibility: images, video, and many logs are already compressed, so compression will not save much.
- Existing data: if the receiver already has an earlier version, delta transfer (
rsync) could move a small fraction of 2 TB and change the answer entirely. - Shared cloud: if both parties use the same cloud account or region, the "transfer" may just be a permission grant, taking zero time.
- Security: the data may contain personal or proprietary content. Encrypt the drive (LUKS, BitLocker, FileVault/APFS), send the key out of band, and use TLS or SSH on the wire. Company policy may forbid consumer file-sharing services.
- Cost: a $150 drive and a courier are trivial compared with the cost of engineers waiting. Bulk appliance services (Snowball-style) target tens to hundreds of TB and have multi-day turnaround, so they are slower here.
Execution details
- Integrity: generate a
sha256summanifest before sending and verify after receiving. Keep the source until verification passes. - Resumability: use
rsync --partialorrcloneso an interruption does not restart the transfer. For cloud object storage use multipart, parallel uploads. - Long-distance throughput: one TCP stream over a high-latency path is limited by the bandwidth-delay product, so use several parallel streams.
- Many small files: millions of tiny files hurt both disk and network throughput. Bundle them with
tar(optionallyzstd) for sequential I/O. - Filesystem: format the drive so the receiver can read it (exFAT for cross-platform, or agree on ext4/APFS).
Small estimator
def network_hours(size_tb, mbps, efficiency=0.8):
bits = size_tb * 1e12 * 8
return bits / (mbps * 1e6 * efficiency) / 3600
def physical_hours(size_tb, drive_mb_s, transit_hours):
copy_h = size_tb * 1e12 / (drive_mb_s * 1e6) / 3600
return 2 * copy_h + transit_hours
def best_method(size_tb, mbps, drive_mb_s, transit_hours):
n = network_hours(size_tb, mbps)
p = physical_hours(size_tb, drive_mb_s, transit_hours)
return ("network", n) if n <= p else ("physical", p)
This is O(1) in time and space. The value is in the break-even: for a local handoff (about 2.6 h total), the network wins only above about 1.7 Gbps effective; for overnight shipping (about 21 h total) the break-even falls to roughly 200 Mbps.
Common mistakes
- Mixing up bits and bytes (an 8x error), or TB and TiB.
- Trusting advertised bandwidth and ignoring upload asymmetry.
- Forgetting the copy time at each end of the physical option.
- Recommending a bulk-import appliance for only 2 TB.
- Skipping encryption, checksums, or resumability.
- Giving one answer without naming the assumption that would flip it.
Closing summary
"If I'm local, I would copy to an encrypted NVMe drive and hand it over, about 2-3 hours, which beats any network path under roughly 2 Gbps. If I'm remote, I would use the network when I have around 200 Mbps or more of real throughput, otherwise overnight an encrypted drive, and I would verify with checksums either way."