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.

🇺🇸 🇪🇸 Leer y usar la calculadora en español aquí PHYSICS OPTICAL PROPAGATION // DWDM & RTT

Fiber Optic Latency Calculator: Propagation Delay, RTT & DWDM Distance

Calculate the exact physical latency of optical fiber links based on the speed of light in glass (v = c / n ≈ 204,190 km/s), real-world duct route curvature, and active DWDM equipment delays. Model one-way propagation delay, Round-Trip Time (RTT), and determine whether your datacenter distance permits synchronous database replication or low-latency multiplayer gaming netcode.

Link Presets:
Distance Unit:

🌐 1. Geographic Distance & Cable Route

Straight-line / great-circle distance between sites
Cables follow roads/rails; typical terrestrial is 1.30-1.40x

🔬 2. Optical Physics & Active Equipment

Silica glass n=1.4682; Hollow-core air n=1.0020
Latency added by ROADM, EDFA amplifiers and switches

💾 3. Architecture Workload Context

Threshold rules for sync replication vs async queues
Fundamental Physics: Light travels at ~204,190 km/s in glass (~4.90 μs/km one-way). No software optimization or edge CDN can break the speed of light.

Optical Propagation & RTT Diagnostics

SYNC SAFE
Round-Trip Time (RTT)
8.39 ms
Total real-world network ping
One-Way Latency
4.20 ms
Optical flight + active equipment
Actual Optical Path
837 km
Physical glass length in duct
Max Synchronous TPS
119 TPS
Serial commits/sec per client thread
Physical Latency SLA Assessment
Calculating speed of light constraints on distributed database clustering.

Transmission Mediums: Optical Fiber vs Copper vs LEO Satellite

Transmission Medium Refractive Index / NVP Propagation Speed Propagation Delay Architectural Application
Fibra Estándar (SMF-28 Sílice) n = 1.4682 ~204.190 km/s 4.90 μs/km (9.80 μs RTT) Estándar global en el 99% de datacenters y cables submarinos
Hollow-Core Fiber (Núcleo de Aire) n = 1.0020 ~299.190 km/s 3.34 μs/km (6.68 μs RTT) 33% más rápida; adoptada en High-Frequency Trading (HFT) e IA
Cobre Ethernet (Cat6a / DAC) NVP = 0.65 - 0.75 ~210.000 km/s 4.76 μs/km Limitado a < 100m por atenuación severa e interferencias
Satélite LEO (Starlink / Kuiper) Vacío (n = 1.0) ~299.792 km/s ~25 - 45 ms RTT Luz más rápida pero penalizado por subida/bajada orbital (~550 km)

Frequently Asked Questions About Optical Latency & RTT

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

In a vacuum, light travels at 299,792 km/s. However, inside the silica glass core of standard single-mode optical fiber (G.652), light slows down due to the core's refractive index (n ≈ 1.4682). The resulting speed is v = c / n ≈ 204,190 km/s. This equates to approximately 4.897 microseconds per kilometer of one-way travel (or ~9.80 microseconds per kilometer of Round-Trip Time).

Why is real-world optical latency always higher than straight-line distance calculations?

Three factors explain this divergence: 1) Terrestrial Duct Curvature: Fiber conduits follow railways, highways, and topography, typically adding 25% to 40% more physical fiber length than the great-circle geographic distance. 2) Active DWDM Hardware: Optical transceivers, ROADMs, chromatic dispersion compensators, and EDFA amplifiers add 0.1 to 1.0 ms of serialized processing delay. 3) Core Routing & Buffer Queues: IP-layer routing hops and packet buffering add jitter on unmanaged public internet transit.

What is the maximum latency threshold for synchronous database replication?

Synchronous replication (PostgreSQL synchronous_commit, MySQL Group Replication, CockroachDB/YugabyteDB Raft) requires the primary database to wait for an acknowledgment (ACK) from the replica before completing each commit. Best practices recommend keeping Round-Trip Time (RTT) strictly under 5 milliseconds (equivalent to ~250-300 km of terrestrial fiber). Above 10 ms RTT, transactional throughput drops drastically, and asynchronous replication is strongly recommended.

What is Hollow-Core Fiber (HCF) and why is it revolutionary for latency?

Hollow-Core Fiber (HCF) guides light pulses through a central micro-structured air core rather than solid silica glass. Because air has a refractive index very close to 1.000 (n ≈ 1.002), light travels at nearly 299,190 km/s (33% faster than in conventional silica fiber). Originally deployed in high-frequency algorithmic financial trading between London and Frankfurt, it is now being tested by hyperscalers (Meta, Microsoft, AWS) to connect distributed AI GPU training clusters across campuses.

How does optical latency impact multiplayer game netcode and frame budgets?

A standard 60 FPS video game renders a frame every 16.6 milliseconds (at 128 FPS, every 7.8 ms). If a player's round-trip network ping to the game server is 40 ms, client-side state is 2 to 5 frames behind server reality. Game engines use client-side prediction and lag compensation to mask this delay, but when round-trip latency exceeds 60-70 ms, interpolation artifacts ('rubberbanding' and 'ghost hits' around corners) become unavoidable due to the speed of light limits.

Suscribirse Subscribe