Loading content...
If you've ever pressed a button on a TV remote, used a garage door opener, or transferred data over fiber optic cable, you've used On-Off Keying (OOK). It is the simplest possible digital modulation scheme: transmit a carrier to send a '1', transmit nothing to send a '0'.
Despite this apparent simplicity—or perhaps because of it—OOK is ubiquitous. It powers the overwhelming majority of optical fiber communications, dominates the infrared device control market, and forms the foundation of countless low-power wireless sensor networks. Understanding OOK deeply reveals fundamental principles that apply to all digital modulation.
By the end of this page, you will master OOK's mathematical foundations, understand its optimal detection strategies, analyze its power and bandwidth efficiency, explore its implementations across optical and RF domains, and appreciate why this 'simple' scheme remains the backbone of high-speed communications.
Let's establish OOK with mathematical rigor, going beyond the simple on/off description to understand its signal space representation.
Time-Domain Representation:
The OOK signal s(t) over a bit period T_b can be expressed as:
$$s(t) = \sum_{n=-\infty}^{\infty} b_n \cdot A \cdot p(t - nT_b) \cdot \cos(2\pi f_c t)$$
Where:
For a Single Bit:
$$s(t) = \begin{cases} A \cdot p(t) \cdot \cos(2\pi f_c t) & \text{for bit } = 1 \ 0 & \text{for bit } = 0 \end{cases} \quad 0 \leq t < T_b$$
Signal Space Representation:
In signal space analysis, we represent signals as vectors. For OOK with orthonormal basis function:
$$\phi(t) = \sqrt{\frac{2}{T_b}} \cos(2\pi f_c t), \quad 0 \leq t < T_b$$
The two OOK signals become:
Key Parameters:
$$E_b = \int_0^{T_b} s_1^2(t) , dt = \frac{A^2 T_b}{2}$$
$$d = |s_1 - s_0| = \sqrt{E_b}$$
The distance d between constellation points determines noise immunity. For OOK, this distance is √E_b, which is suboptimal compared to antipodal signaling (like BPSK) where d = 2√E_b.
In signal space, OOK places one point at the origin and one at √E_b. BPSK places points at ±√E_b, doubling the distance for the same average energy. This is why OOK requires 3 dB more power than BPSK for the same error rate—but OOK's implementation simplicity often outweighs this penalty.
The receiver must determine whether a '0' or '1' was transmitted. Several detection strategies exist, trading complexity for performance.
1. Envelope Detection (Non-Coherent):
The simplest approach—extract the envelope and compare against a threshold.
Process:
Decision Rule: $$\hat{b} = \begin{cases} 1 & \text{if } , V_{sample} > V_{th} \ 0 & \text{if } , V_{sample} \leq V_{th} \end{cases}$$
Optimal Threshold: $$V_{th} = \frac{V_{max}}{2}$$
When noise is present, the optimal threshold shifts depending on the noise distribution.
2. Coherent Detection:
Multiply the received signal by a synchronized carrier and low-pass filter:
$$y(t) = r(t) \cdot 2\cos(2\pi f_c t)$$
$$z(t) = \text{LPF}{y(t)}$$
For a '1' bit: z(t) ≈ A (the baseband amplitude) For a '0' bit: z(t) ≈ 0 (plus noise)
3. Matched Filter Detection:
The optimal receiver in AWGN passes the signal through a filter matched to the transmitted pulse:
$$h(t) = s_1(T_b - t)$$
The matched filter output is sampled at t = T_b, yielding maximum SNR. This is equivalent to correlating with the expected signal.
Matched Filter Output: $$y(T_b) = \int_0^{T_b} r(t) \cdot s_1(t) , dt = \begin{cases} E_b + n & \text{for bit } = 1 \ n & \text{for bit } = 0 \end{cases}$$
In most optical systems, direct detection (a photodiode) naturally performs envelope detection—justifying OOK's popularity in fiber optics. In RF systems, coherent detection is often available but adds complexity. Choose based on your performance vs. cost requirements.
The probability of error is the fundamental metric of any digital communication system. Let's derive OOK's BER under different detection scenarios.
Assumptions:
Coherent Detection (Optimal):
The bit error probability is:
$$P_b = Q\left(\sqrt{\frac{E_b}{N_0}}\right)$$
Where Q(x) is the Gaussian Q-function:
$$Q(x) = \frac{1}{\sqrt{2\pi}} \int_x^{\infty} e^{-t^2/2} , dt$$
Non-Coherent (Envelope) Detection:
With envelope detection, the analysis is more complex because the noise statistics differ for '0' and '1' bits:
The BER (for high SNR approximation) is:
$$P_b \approx \frac{1}{2}e^{-\frac{E_b}{2N_0}}$$
Comparison with BPSK:
| Modulation | Detection | BER Formula | E_b/N_0 for 10⁻⁶ BER |
|---|---|---|---|
| OOK | Coherent | Q(√(E_b/N_0)) | 10.5 dB |
| OOK | Envelope | ½·exp(-E_b/2N_0) | 13.5 dB |
| BPSK | Coherent | Q(√(2E_b/N_0)) | 10.5 dB |
Key Insight: Coherent OOK and BPSK have similar BER expressions, but BPSK has 2× the argument inside Q(). This translates to BPSK being 3 dB more power-efficient than coherent OOK, and 6 dB more efficient than non-coherent OOK.
| Parameter | Coherent OOK | Non-Coherent OOK | Notes |
|---|---|---|---|
| BER at E_b/N_0 = 10 dB | ~10⁻⁴ | ~5×10⁻³ | Non-coherent is 10× worse |
| E_b/N_0 for BER = 10⁻⁶ | 10.5 dB | 13.5 dB | 3 dB penalty for non-coherent |
| Bandwidth Efficiency | 1 bit/s/Hz | 1 bit/s/Hz | Same for both |
| Implementation Complexity | Medium | Low | Coherent needs carrier recovery |
| Carrier Sync Required | Yes | No | Major practical consideration |
Moving from non-coherent to coherent detection gains ~3 dB. Moving from OOK to antipodal (BPSK) gains ~3 dB. Combined: BPSK with coherent detection is ~6 dB better than non-coherent OOK. But each step adds complexity—the engineering art is knowing when simplicity is worth the power penalty.
OOK is the dominant modulation scheme in optical fiber communications, from short-range data center interconnects to long-haul undersea cables. Understanding why reveals deep insights about matching modulation to physical channel characteristics.
Why OOK Dominates Optical:
Natural Match to Photodetection: Photodiodes respond to optical intensity (power), not field amplitude. Intensity is inherently non-negative—perfect for OOK's on/off nature.
Laser Simplicity: Turning a laser on/off or modulating its current between two levels is straightforward. Phase control (for PSK) requires expensive, complex modulators.
Receiver Simplicity: A photodiode + transimpedance amplifier + comparator forms a complete OOK receiver. No carrier recovery, no frequency locking.
Proven at Extreme Data Rates: OOK has been demonstrated at 100+ Gbps per wavelength—decades of optimization have pushed it to remarkable performance.
| Standard/Application | Data Rate | Reach | Wavelength |
|---|---|---|---|
| 10GBASE-SR (Ethernet) | 10 Gbps | 300m (MMF) | 850 nm |
| 10GBASE-LR (Ethernet) | 10 Gbps | 10 km (SMF) | 1310 nm |
| 100GBASE-LR4 (lane) | 25 Gbps × 4 | 10 km (SMF) | 1295-1310 nm |
| PON GPON | 2.5 Gbps | 20 km | 1490 nm downstream |
| Data Center Interconnect | 25-50 Gbps | 100m-2km | Various |
OOK Optical Transmitter:
Typical implementation:
Direct Modulation: Vary laser diode current between threshold (off) and operating point (on)
External Modulation: Separate laser (always on) + electro-optic modulator (Mach-Zehnder interferometer)
Key Optical Metrics:
Extinction Ratio (ER): Ratio of 'on' to 'off' optical power $$ER = \frac{P_1}{P_0}$$
Typical values: 10-15 dB for direct modulation, 20+ dB for external modulation.
Power Penalty: Non-infinite ER reduces effective signal swing, requiring more power.
$$\text{Power Penalty (dB)} = 10\log_{10}\left(\frac{1 + ER^{-1}}{1 - ER^{-1}}\right)$$
As data center bandwidth demands explode, optical OOK is reaching its limits. Modern systems increasingly use PAM-4 (4-level OOK) to double bits per symbol, accepting the noise penalty in exchange for reduced baud rate and relaxed bandwidth requirements. Beyond 100 Gbps/λ, coherent systems with advanced modulation (QPSK, 16-QAM) become cost-effective.
Beyond optical, OOK finds extensive use in RF wireless applications where simplicity, low power, and low cost outweigh spectral efficiency concerns.
Infrared Communication:
IR remote controls universally use OOK modulated on a carrier (typically 36-40 kHz):
Benefits:
A simple OOK wake-up receiver can operate at 1-10 μW—100× less than a Bluetooth receiver. This enables 'always listening' sensors that wake up a main radio only when triggered. The architecture: antenna → envelope detector → comparator → MCU interrupt. No mixers, no PLLs, no DSP until after wake-up.
OOK's simplicity hides synchronization challenges. The receiver must know when to sample—bit timing must be recovered from the received signal itself.
The Synchronization Problem:
Consider transmitting '0000...': the receiver sees constant zero. Without transitions:
Solutions:
1. Preamble Training: Begin each transmission with a known pattern (e.g., 10101010...)
Baseline Wander Problem:
Unequal numbers of '1's and '0's create a DC offset that shifts over time:
DC Balance Solutions:
| Technique | Overhead | Complexity | Application |
|---|---|---|---|
| Manchester encoding | 100% | Low | Legacy systems |
| 4b/5b + scrambler | 25% | Medium | Fast Ethernet |
| 8b/10b | 25% | Medium | Gigabit Ethernet, Fibre Channel |
| 64b/66b | 3% | High | 10G+ Ethernet |
| 128b/130b | 1.5% | High | USB 3.0 |
Trend: Modern systems use minimal-overhead codings (64b/66b, 128b/130b) that provide framing, synchronization, and DC balance with <5% overhead.
In high-speed optical systems (25+ Gbps), the bit period is <40 picoseconds. A timing error of just 5 picoseconds (12% of bit time) significantly degrades BER. Clock and data recovery (CDR) circuits are sophisticated analog/mixed-signal designs that track timing to sub-picosecond accuracy.
Designing a practical OOK system requires balancing multiple interacting parameters. Here's a framework for system design.
Link Budget Analysis:
The fundamental equation:
$$P_{rx} = P_{tx} - L_{path} - L_{components} + G_{antenna}$$
Must satisfy:
$$P_{rx} \geq P_{sensitivity}$$
Where sensitivity depends on required BER and receiver noise.
Receiver Sensitivity (typical values):
| System Type | Data Rate | Sensitivity (for BER = 10⁻⁹) |
|---|---|---|
| Optical 10G | 10 Gbps | -20 to -28 dBm |
| Optical 25G | 25 Gbps | -14 to -20 dBm |
| RF 433 MHz OOK | 10 kbps | -110 dBm |
| IR Remote | 1 kbps | ~1 μW/cm² |
Eye Diagram Analysis:
The eye diagram is the universal tool for evaluating OOK signal quality. Created by overlaying many bit periods:
What to measure:
Mask Testing:
Standards define 'keep-out' regions (masks) that the eye must not enter. Passing mask test guarantees interoperability.
For bandwidth-limited channels, receiver sensitivity improves with lower data rate (more energy per bit). For noise-limited channels, higher power improves range. For jitter-limited channels, lower data rate provides more timing margin. Understanding which limitation dominates guides your design trade-offs.
We've conducted an exhaustive exploration of OOK—from mathematical foundations through practical system design. Let's consolidate the key insights:
What's Next:
Having mastered OOK, we'll now examine amplitude modulation's Achilles heel: noise sensitivity. We'll analyze how amplitude variations—whether from the intended signal or unwanted interference—affect AM/ASK performance, and understand why this limitation drives the development of angle modulation (FM/PM) and hybrid schemes.
You now possess comprehensive understanding of On-Off Keying—its mathematical basis, detection strategies, error performance, and applications across optical and RF domains. This foundation prepares you to understand why more complex modulation schemes exist and when simpler OOK remains the optimal choice.