Skip to content
/
Suscribirse Subscribe

Detrás del telón hay sistemas, no magia. Arquitectura de software, IA y computación de bajo nivel para las trincheras de producción.

Behind the curtain there are systems, not magic. Software architecture, AI, and systems engineering from the production trenches.

NETWORKING & OPTICS #TOOL-CAT-UTILS

Fiber Optic & Network Latency Calculator: RTT, Speed of Light in Glass (c/n), Serialization & BDP Throughput

Calculate true physical propagation delay in silica fiber (v ≈ 204,000 km/s), RTT with cable sinuosity, and routing hops. Model the Bandwidth-Delay Product (BDP) and single-stream TCP throughput throttling under unscaled socket buffers.

Popular Cloud & Optical Routes:
km
Straight-line geographic span between endpoints
Gbps
Physical transport circuit capacity
Actual cable route multiplier vs straight line (1.15x subsea, 1.25-1.35x terrestrial)
saltos
L2 switches, L3 routers, and ROADM/EDFA optical amplifiers
⚙️ Advanced Optical Physics & Packet Parameters
Typical 1.4682 for standard SMF-28 fiber
ASIC queueing & crossbar switching overhead
Standard 1500B vs Jumbo Frame 9000B
PHYSICAL METRICS & LINK PERFORMANCE
ROUND-TRIP TIME (PING RTT)
22.78 ms
11.39 ms ida (One-Way)
LIGHT SPEED IN FIBER
204.190 km/s
4,90 μs / km de fibra
BANDWIDTH-DELAY PRODUCT (BDP)
28,47 MB
~19.890 paquetes en tránsito
TCP CAP WITHOUT SCALING
23,01 Mbps
0,23% del enlace sin Scaling
⚡ Diagnóstico de Red: Para saturar los 10 Gbps a través de esta ruta con 22,78 ms de RTT, el stack TCP del kernel requiere una ventana de recepción (Window Scale) de al menos 28,47 MB.
Latency Component Physical Parameter Delay (ms) % of Latency Architectural Impact

The Physics of Glass: Why Network Latency Cannot Defeat the Speed of Light

In distributed systems and cloud engineering, latency is frequently treated as an arbitrary configuration quirk or software bug. Yet across metro, inter-city, and transcontinental links, network delay is fundamentally governed by the laws of optical physics and the refractive index of glass silicon.

1. Refractive Index (n): 31% Slower Than Vacuum

Light moves through a vacuum at roughly 299,792 km/s. Inside standard telecommunications single-mode fiber (e.g., Corning SMF-28), photons propagate through a silica glass core with a refractive index of n ≈ 1.4682. Applying the phase velocity equation (v = c / n), effective propagation speed drops to 204,190 km/s. This establishes an unbreakable physical law: for every 1,000 km of optical fiber, light requires exactly 4.90 milliseconds one-way (9.80 ms Round-Trip Time).

2. Route Sinuosity: Why Fiber Never Runs in Straight Lines

While great-circle distance between two cities might measure 1,500 km, real-world ping never approaches the straight-line ideal. Terrestrial fiber conduits follow highway easements, railway rights-of-way, and utility trenches. This introduces a typical sinuosity factor of 1.2x to 1.35x for land networks (and 1.15x to 1.20x for subsea cables), drastically extending the real optical path photons must traverse.

3. The BDP Bottleneck: Why 10 Gbps Links Yield 20 Mbps Without Window Scaling

The Bandwidth-Delay Product (BDP) defines the total volume of data «in flight» needed to saturate a channel before receiving an acknowledgment (ACK). Over a 10 Gbps pipe with 30 ms RTT, the BDP equals 37.5 Megabytes. If a host lacks TCP Window Scaling (RFC 7323) and relies on the legacy 64 KB window buffer, single-stream throughput collapses to merely 17 Mbps, discarding 99.8% of available optical transport capacity.

Frequently Asked Questions about Fiber Latency & TCP

What is the actual speed of light in optical fiber cables?

Due to the refractive index of silica glass (n ≈ 1.4682), light travels at roughly 204,190 km per second in standard single-mode optical fiber, or approximately 4.90 microseconds per kilometer.

What causes latency differences between subsea and terrestrial fiber?

Subsea cables feature lower sinuosity (1.15x) because ocean routes run straighter with fewer active routing hops, whereas terrestrial lines dodge geographical obstacles and cross multiple carrier border routers.

How does Bandwidth-Delay Product (BDP) affect TCP throughput?

BDP determines the required socket buffer size (Bandwidth × RTT). If the sender's TCP window is smaller than BDP, the pipeline empties while waiting for ACKs, severely limiting transfer speeds regardless of link capacity.

Suscribirse Subscribe