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).
🎯 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?
Introduction
In High Frequency Trading, distance is measured in Nanoseconds, not Meters. . 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 ()
Light does not travel at in a fiber cable. It interacts with the glass silica. Refractive Index () of Glass: ~1.468.
The Cost of 1 Meter:
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 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 . Microwave travels at 99.97% of . Fiber travels at 66% of .
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. . 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 (). Advantage: Speed of Microwave + Reliability of Fiber. Status: Extremely expensive, currently being deployed in key routes (London-Slough).
Knowledge Check
- What is the Refractive Index of standard fiber?
- Why is Microwave faster than Fiber?
- What does a Layer 1 Switch do?
- What happens to Microwaves when it rains?
- Why do exchanges coil fiber cables?
Answers
- ~1.47. Slows light down by 33%.
- Air. Light travels 50% faster in air than in glass.
- Bit Forwarding. Copies bits electrically without buffering whole packets.
- Attenuation. Water absorbs RF energy, breaking the link.
- Equalization. To ensure every customer has the exact same latency to the engine.
Summary
- Glass: Slow ().
- Air: Fast ().
- Distance: 5ns per meter.
Pro Version: See the full research: The Nanosecond Economy
Questions about this lesson? Working on related infrastructure?
Let's discuss