CodingBox Documentation

Units & conversions

Optical work mixes logarithmic power, wavelengths, frequencies, bit rates and baud rates. This page collects the conversions you need at the bench, with the mental shortcuts engineers actually use.

dB and dBm

  • dB is a ratio: 10 · log10(P₁/P₂). It describes gain or loss.
  • dBm is an absolute power referenced to 1 mW: P(dBm) = 10 · log10(P/1 mW).
  • Adding a loss in dB to a level in dBm gives a level in dBm: −3 dBm − 7 dB = −10 dBm. Never add two dBm values.
dBPower ratioRule of thumb
0×1
1×1.26about a quarter more
3×2double / half
6×4
10×10one decade
20×100
30×1000
dBmmWµWTypical meaning
+101010 000booster output, DWDM launch
+322 000strong LR/ER transmitter
011 000typical single-mode Tx
−30.5500typical short-reach Tx
−100.1100healthy Rx on a short link
−180.01616PIN receiver sensitivity (10G)
−240.0044APD receiver sensitivity
−300.0011very weak — check the link
−400.00010.1DDM resolution floor: "no light"

Raw DDM power is stored in 0.1 µW steps: raw = µW × 10 (0 dBm → 10 000). Details in DDM parameters & units.

Budget      = Tx power (min)  −  Rx sensitivity            [dB]
Losses      = fibre (km × dB/km) + connectors + splices + mux/demux + margin
Margin left = Budget − Losses                                (should stay ≥ 0, ideally ≥ 3 dB)

Worked example and component losses: CWDM mux/demux & link budget.

ItemTypical loss
Single-mode fibre, 1310 nm0.33–0.35 dB/km
Single-mode fibre, 1550 nm0.18–0.22 dB/km
Multi-mode fibre, 850 nm2.5–3.5 dB/km
Connector pair (clean)0.1–0.3 dB
Fusion splice0.05–0.1 dB
Mechanical splice0.2–0.5 dB
1:2 splitter~3.5 dB; each further doubling +3–3.5 dB
CWDM mux (8 ch)1.0–2.5 dB
DWDM AWG mux (40 ch)4–7 dB

Wavelength ↔ frequency

λ · f = c, with c ≈ 299 792 458 m/s. Convenient forms:

λ (nm)   = 299 792.458 / f (THz)
f (THz)  = 299 792.458 / λ (nm)
WavelengthFrequencyNote
850 nm352.7 THzmulti-mode VCSEL
1310 nm228.8 THzO-band
1490 nm201.2 THzGPON downstream
1528.77 nm196.1 THzC-band top (C61)
1550 nm193.4 THzC-band centre
1552.52 nm193.1 THzITU anchor (C31)
1563.86 nm191.7 THzC-band bottom (C17)

In the C-band 100 GHz ≈ 0.8 nm and 50 GHz ≈ 0.4 nm. Channel numbering and the full grid: DWDM and the ITU grid, Wavelength bands & channel plans.

Bit rate, baud and line coding

The number on the label (10G, 25G, 100G) is the payload rate. On the fibre the signal runs faster because of line coding and FEC, and PAM4 carries two bits per symbol.

NominalLine coding / FECSignalling rateModulationSymbol rate
1 GbE8b/10b1.25 Gb/sNRZ1.25 GBd
10 GbE64b/66b10.3125 Gb/sNRZ10.3125 GBd
8GFC8b/10b8.5 Gb/sNRZ8.5 GBd
16GFC64b/66b14.025 Gb/sNRZ14.025 GBd
25 GbE (per lane)64b/66b + RS-FEC25.78125 Gb/sNRZ25.78 GBd
32GFC64b/66b + FEC28.05 Gb/sNRZ28.05 GBd
50G laneRS(544,514)53.125 Gb/sPAM426.5625 GBd
100G laneRS(544,514)106.25 Gb/sPAM453.125 GBd
200G laneRS(544,514)212.5 Gb/sPAM4106.25 GBd

Rules: 64b/66b adds 3.125 % (×66/64); RS(544,514) adds another ~5.8 % (×544/514); PAM4 halves the symbol rate for a given bit rate. This is why a "100G" lane runs at 53.125 GBd and why DDM nominal signalling rate bytes read 103 (×100 Mb/s) for 10GbE, not 100. Background: FEC & link training.

Bit-error ratio

BERMeaningTime between errors at 10 Gb/s
10⁻⁹poor0.1 s
10⁻¹²classic error-free target (NRZ optics)~100 s
10⁻¹⁵post-FEC target for 25G+~28 h
2.4×10⁻⁴typical pre-FEC threshold for RS(544,514)— corrected to <10⁻¹⁵

DDM raw units

MonitorRaw unitConvert
Temperature1/256 °C, signed°C = raw / 256
Vcc100 µVV = raw × 0.0001
Tx bias2 µAmA = raw × 0.002
Tx / Rx power0.1 µWmW = raw × 0.0001; dBm = 10·log10(mW)

Distances and fibre units

  • Module length fields: SMF in km (byte 14) and 100 m (byte 15); multi-mode in 10 m units (bytes 16–19) or metres for copper — see Memory map quick reference.
  • 1 dB of extra loss ≈ 3 km of 1310 nm single-mode, ≈ 5 km of 1550 nm, ≈ 300 m of 850 nm multi-mode.

In CodingBox

CodingBox performs all DDM conversions and shows values in engineering units on the DDM screen, with the raw bytes available in the EEPROM editor when you need to check a conversion by hand.