The Physics of Colocation: Speed of Light & Fiber

Why light is too slow for trading. The physics of Refractive Index (n=1.5), Hollow Core Fiber, and Microwave Networks (Goex).

Intermediate 45 min read Expert Version →

🎯 What You'll Learn

  • Deconstruct the Speed of Light in glass ($c/n$)
  • Analyze Microwave vs Millimeter Wave physics
  • Trace a packet through a Layer 1 Switch (Metamako)
  • Calculate the latency cost of 1 meter of fiber
  • Audit a Cross-Connect cabling diagram

📚 Prerequisites

Before this lesson, you should understand:

🔬 Try It: Speed of Light Calculator

See exactly how much latency physics demands between any two trading hubs:

🌍 Speed of Light Calculator

Physics sets the floor. How close can you get to it?

Distance
1,144 km
(710.848 miles)
⚡ Theoretical Min
3.82
ms (one-way)
Straight line, vacuum
📡 Microwave
4.21
ms (one-way)
Line-of-sight towers
🔌 Fiber Optic
8.01
ms (one-way)
Underground cables
💡 HFT Insight: Microwave saves ~7.60ms round-trip vs fiber. At $10M/day trading, that's worth millions in infrastructure.

Introduction

In High Frequency Trading, distance is measured in Nanoseconds, not Meters. Speed=cnSpeed = \frac{c}{n}. In a vacuum, light travels 300km/ms. In glass fiber, it slows down to 200km/ms. This 30% penalty is the difference between profit and bankruptcy.

This lesson explores the extreme physics of Colocation-where we fight the laws of the universe to save 5 nanoseconds.


The Physics: Refractive Index (nn)

Light does not travel at cc in a fiber cable. It interacts with the glass silica. Refractive Index (nn) of Glass: ~1.468. Vfiber=c1.468204,220 km/sV_{fiber} = \frac{c}{1.468} \approx 204,220 \text{ km/s}

The Cost of 1 Meter: T=1m204,220,000 m/s4.89 nanosecondsT = \frac{1m}{204,220,000 \text{ m/s}} \approx 4.89 \text{ nanoseconds}

Every meter of cable adds ~5ns of latency. In the Aurora data center (CME), racks are positioned such that the fiber length to the matching engine is identical for everyone equalized to ±1\pm 1 meter (5ns).


Deep Dive: HFT Networks (Microwave)

Why do we use Radio Towers between Chicago (CME) and New Jersey (NASDAQ) instead of Fiber? Because Air has n1.0003n \approx 1.0003. Microwave travels at 99.97% of cc. Fiber travels at 66% of cc.

The Physics:

  • Chicago -> NJ (Fiber): ~1200km path (zig-zag). Time: ~6.5ms.
  • Chicago -> NJ (Microwave): ~1200km path (line of sight). Time: ~4.1ms.
  • Edge: 2.4 Milliseconds. In HFT, this is an eternity.

Architecture: Layer 1 Switching

Normal switches Store-and-Forward packets (Read into RAM -> Route -> Send). Latency: ~5000ns. HFT uses Layer 1 Switches (e.g., Arista 7130 / Metamako).

Physics: They do not read the packet into RAM. They operate as Electronic Mirrors. As soon as the first bit arrives, it is electrically copied to the output port. Latency: ~4 nanoseconds.


Code: Calculating Light Latency

C_VACUUM = 299_792_458.0 # m/s
N_GLASS = 1.468
N_AIR = 1.0003

def fiber_delay(meters):
    speed = C_VACUUM / N_GLASS
    return meters / speed * 1e9 # in nanoseconds

def microwave_delay(meters):
    speed = C_VACUUM / N_AIR
    return meters / speed * 1e9 # in nanoseconds

print(f"1km Fiber: {fiber_delay(1000):.2f} ns")
print(f"1km Air:   {microwave_delay(1000):.2f} ns")
# Result: Fiber is ~1500ns slower per kilometer.

Practice Exercises

Exercise 1: The Cabling (Beginner)

Scenario: You replace a 10m fiber patch cable with a 2m cable. Savings: 8 meters. 8×5ns=40ns8 \times 5ns = 40ns. Impact: You now beat everyone using the 10m cable. (Unless the exchange equalizes).

Exercise 2: Rain Fade (Intermediate)

Scenario: Heavy rain in Pennsylvania. Physics: Rain drops absorb Microwave frequencies (especially 60GHz+). Result: Microwave link goes down. Traffic falls back to Fiber. Latency spikes by 2ms. This is why HFT algos turn off during storms.

Exercise 3: Hollow Core Fiber (Advanced)

Scenario: New fiber with an air core (n1n \approx 1). Advantage: Speed of Microwave + Reliability of Fiber. Status: Extremely expensive, currently being deployed in key routes (London-Slough).


Knowledge Check

  1. What is the Refractive Index of standard fiber?
  2. Why is Microwave faster than Fiber?
  3. What does a Layer 1 Switch do?
  4. What happens to Microwaves when it rains?
  5. Why do exchanges coil fiber cables?
Answers
  1. ~1.47. Slows light down by 33%.
  2. Air. Light travels 50% faster in air than in glass.
  3. Bit Forwarding. Copies bits electrically without buffering whole packets.
  4. Attenuation. Water absorbs RF energy, breaking the link.
  5. Equalization. To ensure every customer has the exact same latency to the engine.

Summary

  • Glass: Slow (0.66c0.66c).
  • Air: Fast (0.99c0.99c).
  • Distance: 5ns per meter.


Pro Version: See the full research: The Nanosecond Economy

Questions about this lesson? Working on related infrastructure?

Let's discuss