Osegi
Hardware·2 min read

TOSLINK over SFP: an audio cable rated for 10 m ran 143 km

TOSLINK, the optical audio port on hi-fi gear, is meant for about 10 metres. A network engineer sent it through SFP modules and fibre links totalling roughly 143 km.

A tangle of wires and fibre connecting a TOSLINK audio converter to an SFP experimenter board, with an oscilloscope in the background.
Image: Хабр

The optical audio socket on your hi-fi, TOSLINK, is specified for roughly 10 metres of cable. A network engineer has now pushed its signal through ordinary SFP transceivers and borrowed fibre links around London and Slough, for a measured path of about 143 km. That is more than 14,000 times the normal limit, and there was no good reason to do it.

The engineer, who runs the bgp.tools network service, described the project in a talk at the 38th Chaos Communication Congress at the end of 2024.

How does TOSLINK over SFP work?

TOSLINK is basically S/PDIF audio over light: a serial, Manchester-coded signal of about 1.5 Mbit/s, carried on a thick plastic cable with a 1 mm core and driven by LEDs. Single-mode telecom fibre has a 9 micron glass core. SFP modules, the pluggable optics in switches and routers, are mostly a laser driver plus a small EEPROM that tells the host what the module is. They don't much care what bits they carry.

The catch is that SFP data pins are differential, so the TOSLINK signal had to pass through an LVDS driver and receiver first. The Osmocom project's Sfp-experimenter board does exactly that, and a friend, Sam W, built two. Cheap TOSLINK converters handled the analogue side.

The first test used a 5 metre loop. Audio from a laptop came back into headphones with no audible trouble. On the oscilloscope the delay was about 34 nanoseconds, equal to roughly 6 metres of light path.

How far did it go?

Next came the CWDM multiplexer between two London data centres, Telehouse North and IP House, about 650 metres apart on foot. James Rice of Jump Networks lent a channel. The loop delay was around 11 microseconds, which works out to about 2.2 km there and back, roughly 219 times the usual TOSLINK limit. Cabling inside buildings explains why that is more than the walking distance.

Then came longer CWDM and DWDM channels lent by operators between London and Slough: about 16.8 km of path, and finally about 143 km. One trip to a data centre failed, because a long-range 10G module would not pass signals below a few megahertz, which is where this audio signal lives.

None of this is useful, as the author admits. It does show how generic SFP optics are: the switch, or in this case a pair of audio converters, hardly matters.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:toslinksfpoptical audiofibredwdmbgp.tools

More from this day

See all →

More in: Hardware

See all →