IP over Lasers(mikekohn.net)
121 points by xtoilette 6 days ago | 80 comments
- jasonjayr 4 days agoThey built a program they called (relay) that sends packets between a tun network device & a uart serial device
https://github.com/mikeakohn/small_projects/blob/main/ip_ove...
I .... wonder if they considered just using PPP/SLIP?
[-]- Retr0id 4 days agoA while back I was doing some IP-over-UART shenanigans and it took me a surprising amount of research to discover the existence of SLIP. I think it's one of those things that at some point "everyone knew about" and ended up being poorly documented as a result.[-]
- wolrah 4 days agoSLIP is old and mostly forgotten for sure, but PPP was almost universal in dialup and unfortunately common in DSL. PPPoE was the bane of my existence as someone who had to support third-party routers on DSL. PPTP was also very common for small VPNs even well past when it should have been retired due to insecurity because it worked out of the box on Windows and Mac without a third party client.
- RossBencina 4 days agoMid-90s you definitely had to know about SLIP to get your Linux or NeXT boxen to connect to your ISP.
- apercu 4 days agoGenerational thing. Back when I was supporting banks of USR 28.8s, SLIP and especially PPP were just the job (mostly PPP by that point).
But even then I don’t think I’d have thought to drag a dial-up framing protocol into a new project. Odds are I’d just recreate SLIP from muscle memory.... maybe?
- Atomic_Torrfisk 4 days agoHahah, I slipped down that rabbit hole about 2 years ago. We needed network access for testing devices on one of our production lines, but the manufacture did not allow wifi at the time. So we ended up tunneling over UART to access internal APIs on the device. It worked fairly well, and was even able to load more complex customer facing react based UIs.
- iberator 4 days agoCSLIP is even better.
- immibis 4 days agoI wouldn't be surprised if they were trying to remove them from the kernel since you can use a tun interface instead. They would be very good candidates for moving kernel functionality to userspace.
- tgma 4 days agoAren't regular fiber-optics just mass-deployed IP over lasers? (this message is brought to you by at least one, likely multiple, lasers in prod)[-]
- advisedwang 4 days agoYeah, but kinda cool making it from scratch.
Also this uses air as the medium.
[-]- jonah-archive 4 days agoFree-space optical transmission is a thing, though it's environmentally quite challenging. We tested some gear from https://www.koruza.net at the Internet Archive ~10 years ago or so (I've also built some 10G point-to-point links in my garage, though I'd hardly call them reliable). It is pretty cool to see a scratch build rather than using commercial transceivers[-]
- esseph 4 days agoTaara is a Google/X moonshot that was recently spun off to do the same thing.
- tgma 4 days agoDoesn't Starlink do that already for sat2sat comms?[-]
- eqvinox 4 days agoNot quite the same thing as doing it in an atmosphere.[-]
- jonah-archive 4 days agoThere's not a huge amount of info I've seen on the specifics of Starlink's LISL setup, but there are a couple interesting bits in here: https://www.pcmag.com/news/starlinks-laser-system-is-beaming...
> Brashears also said Starlink’s laser system was able to connect two satellites over 5,400 kilometers (3,355 miles) apart. The link was so long “it cut down through the atmosphere, all the way down to 30 kilometers above the surface of the Earth,” he said, before the connection broke.
(the presentation that's being reported on, which I don't have access to: https://www.spiedigitallibrary.org/conference-proceedings-of... )
[-]- pixl97 3 days ago30k would be about 1/3rd MSL air pressure, so that's pretty thin relative to what humanity experiences. Also note it says 'connection broke', not that the connection was way way slower than it would be in a vacuum.
- aerostable_slug 4 days agoThat's right, the beam pointing problem is far harder when everything is moving.[-]
- eqvinox 4 days agoThere's this thing called wind that can move your outdoor installations quite a bit ;)
I'd call it a wash, space is hard, but so are atmospheric interactions, weather, foliage, and all the side effects of human habitation (like someone building a house in the middle of your laser link, yes that happens.)
- littlestymaar 4 days agoDeterministic space dynamics vs chaotic fluid dynamics (or worse, as the sibling comment by eqvinox illustrates).
Space is hard by many aspects, but on that part it's much easier than on earth.
[-]- oskarkk 4 days agoSpace dynamics are not that much deterministic. Gravity itself is kinda noisy (Earth isn't an ideal sphere with uniform density), there's the Moon, orbital decay (caused by drag from particles in low orbit, which is variable), solar radiation pressure (also variable), etc. Calculation of the dynamics will only give an approximate result, a prediction. They need constant measurement of the trajectories and frequent correction maneuvers (by ion engines). But yeah, I think that once the satellites accurately know each others trajectory, their movement shouldn't be a big issue for the lasers, as in the timespan of one laser connection it should be predictable with the required precision. And if both satellites would be on the same orbit, their relative movement should be ~0, so the laser beam ideally wouldn't move at all from the satellite's perspective, the angle would be constant.
- connicpu 3 days agoStarlink sats do fly just low enough that they experience some mild atmospheric drag. Their next generation sats will fly even lower too. But it's certainly still in the range where simple computer models will be very accurate for at least a few hours out.
- GJim 4 days agoBizarre take.
Atmospheric scintillation is the barrier for free space laser communications on terra-firma; this is one reason we enclose the laser light in optical fibre to avoid this problem.
In space where nobody can hear you scream, scintillation isn't a problem.
- satiated_grue 4 days agoAbout 25-30 years ago we had an FDDI network, and the hosts had optical bypass switches on them.
The FDDI network comprised two fiber rings, one going clockwise and the other anticlockwise. If a host dropped off the network, the optical bypass switch would loop the two rings to each other, creating one big ring. Two non-adjacent hosts dropping off the network would break the ring.
The optical bypass was surprisingly simple. It was a couple of pieces of fiber segment glued to a swiveling magnet; an adjacent electromagnet pull the magnet/fiber assembly, connecting the network rings normally if energized. If power were removed from the electromagnet, a spring would pull it in the other direction, pointing the fibers into loop position, connecting the network rings in looped configuration.
In both cases, the air was the medium between the fibers entering the switch and the straight-through/loopback fiber segments.
Apologies in advance for my poor explanation.
[-]- tgma 4 days agoCheck out relatively recent Google TPU paper where they used an optical switch to connect neighboring TPUs
- vpShane 4 days agoYes and no, worth reading in to. Yes in the sense of, technically laser but gets reconverted along the path in many ways, ethernet turning it in to frames after a receiver (modem, whatever equipment) then translates it.
Laser = over air, susceptible to interference like atmospheric things, dust, flies, also; since it's laser and over a distance, the photons will spread out. Beam divergence.
Fiber lines are carefully engineered to contain the light transmission to get it to where it has to go.
Microwave would be better than laser to my knowledge but then your packets are flying around through the air willy nilly. Things like SSL handshakes and unencrypted hello packets are readable.
But, anything lasers is amazing.
- bobmcnamara 4 days agoI'd assume most are LEDs or VCSELs. The long range stuff is laser.[-]
- qwezxcrty 4 days agoVCSELs are lasers.
- MisterTea 4 days agoThe AT tiny is not needed at all. You have a digital signal coming right out of the serial cable which can drive the laser using a buffer and a Schmitt trigger on the receiver.
Eliminating crosstalk is the tough part and requires some modulation to ensure the transceiver isn't accidentally listening to itself via reflections or picking up interference.
Look up point to point laser links. They have been around for quite some time.
- toast0 4 days agoBack when 10M ethernet was popular, it was pretty easy to wire up something like this with the transceiver (AUI) port... wire the tx to a laser and the rx to a photodiode (or whatever), ???, profit.
There's lots of commercial equipment in this space too.
[-]- riedel 4 days agoWhen I studied our dorm was connected to the campus network via a laser uplink (and the Internet, with each room having a public IP address). I still remember the foggy daya when people, you normally did not see, gathered in the bars, because the network went unbearably slow. It was nice days with every CS student having a server rack in their closet. I had a VT520 hooked up to it be able to read emails and IRC chats bed without having to wait for my PC to boot.[-]
- supportengineer 4 days agoHas to be the early to mid 1990's?[-]
- johncalvinyoung 4 days agoI was going to say, sounds like my college experience decades later. Still a very congested laser link, and I had a headless minitower instead of a rack (though I wasn't a CS student).
- teeray 4 days agoI dreamed of doing something like this growing up so that my neighbor and I could play StarCraft without the latency of dialup. I wish I knew then that it was that straightforward.
- NoiseBert69 4 days agoWe had a laser link to the university 20 years ago. 10MBit/s for 300 people.
That thing was awful.. lol.
The link was dead during
- Heavy rain
- Fog in the early morning
- While snowing for days
- Pigeons building a nest within the optics
[-]- chasil 4 days agoThere are many long-range WiFi solutions. I wonder how these would have performed as alternatives.[-]
- NoiseBert69 4 days agoNowadays you just can buy pair of cheap Mikrotik oder Ubiquiti directional dishes.
Back then this was rocket science.
- beAbU 3 days agoWhen I was about 10-12 for a school science fair I built a device called a "photophone" [1] - one of Bell's lesser known inventions.
Basically, a filament flashlight is modified so that a magnetic coil was placed in series. An audio source is then fed through a second coil -- I can't remember the exact details of how this worked. The audio source was one of those fisher price sing-along tape players that I also modified I think. The tape was Abba.
On the other end, a cheapo solar cell was hooked up to a small kit amplifier and then you could hear the audio on a pair of headphones.
This was in 2002 ish, so fibre optics was a thing, but it was basically sci-fi for a scrappy kid in southern Africa. My whole spiel was how this was the precursor to fibre optics, and how one day all communications will be done using light in stead of electrons.
Fun times!
[1] - https://en.wikipedia.org/wiki/Photophone [2] - https://www.youtube.com/watch?v=SxlWrqioifg
- blacksmith_tb 4 days agoScale it up, and you have Taara[1]
- proxysna 4 days agoReally like seeing networks over whatever laser things. Very cool stuff. This thing always comes to mind. http://images.twibright.com/tns/1208.html
- kej 4 days agoI don't know why, but I would have expected higher speeds. Maybe my mind just assumes "lasers = fast". It would be interesting to know which factors make this setup unreliable at higher speeds.[-]
- Sesse__ 4 days agoMost likely one of:
High-speed laser-based systems (gigabit and beyond) don't try to turn the laser on/off at all, they just have something in front that tries to cancel out the signal (e.g., through self-interference) when you want to send a zero.1. Noise in the detection (the room is bright etc.) 2. The laser being a form that's not susceptible to direct modulation (if it takes a millisecond to start/stop lasing, obviously you cannot turn it on/off very fast)
- treve 4 days agoIndividual bits always go fast, the difficulty is always telling many apart. Speed is kind of the wrong word. It's about throughput
- zokier 4 days agoI would bet that the laser pointers used here are the bottleneck.
- Lerc 4 days agoI have always wanted to give this a try. I have this daft idea of implenting a system logically as an n-dimensional cube and physically on two facing surfaces (even and odd parity processor addresses) with laser connections between the processors. Perhaps it'll be one of my crazy project ideas that I can do in my retirement
- voidUpdate 4 days agoI remember trying to my own data transmission over lasers ages ago, back when I didn't really know about how to properly transfer data (PLLs, clock recovery, error correction, etc). It lost timing pretty quickly, but it could just about do a hello world
- lambdaone 4 days agoNone of this is remotely new or interesting. I was doing IP-over-laser-light at Ethernet speeds over kilometer distances using free-space optics thirty years ago, and even then it wasn't a new technology.[-]
- mschuster91 4 days agoIt's interesting for a hobby tinkering project. Basically like rudimentary transmitters for ham radio. Understand the fundamentals, then you can move on to better quality DIYs
- rnhmjoj 4 days agoWas that RONJA [1]?
- beAbU 3 days agoThank you for your valuable contribution to this conversation.
- nullbyte808 4 days agoWhy is the ping worse than connecting to a remote shack in Mongolia?
- alberth 4 days agoIsn't fiber broadband exactly this?
It's shooting a laser through a fiber optic cable.
- psnehanshu 4 days agoI was vibe researching TUN/TAP devices a few days ago. Cool to see such cool projects using them. I was mostly thinking about making a VPN prototype through.[-]
- esseph 4 days agoThere's a billion different types of VPN.
What problem are you trying to solve?
[-]- psnehanshu 3 days agoIncrease my understanding
- vin92997 4 days agoI want to see the actual laser beams while transmitting those packets.[-]
- CableNinja 4 days agoDo not look at the laser, you wont be able to look at it again[-]
- lifestyleguru 3 days agoI met many people who after grabbing laser pointer first thing they do is pointing it into the eyes of a nearby person, from all the things they could point it to.
- devilbunny 3 days agoI always liked “Do not look at laser with remaining eye”.
- a3w 4 days agoA typical computer is connected to the local network using either an Ethernet cable or WiFi. This project connects two computers together through lasers.
No mention of carrier pigeon? IPoAC has three RFCs!
[-]- munchlax 4 days agoI'd not expect that to be "typical", unless you're in the middle of some pretty huge nature reserve and still need to file taxes online.
- lifestyleguru 4 days agoNow try IP over electricity.[-]
- proxysna 4 days agoPowerline is sort of like that. Devices act like an L2 transparent proxies over electrical wiring.[-]
- aerostable_slug 4 days agoFun fact: large transmission lines use power line carrier communications for things like remedial action schemes and other system protection functionality (e.g. protective relay trip signals). The carrier can be a few hundred kV, so it tends to be outside the comfort zone of most casual experimenters.
- cestith 4 days agoI have UTP and DAC cables here at home. I even have a bit of 10base2 around here, although none of it’s running at the moment.
- a3w 4 days agoPhotons vs electrons? Just rotate 90 degrees, seem to be swappable more easily than using neutrons or other particles, like tau/muon/electron neutrinos.
Oh wait, didn't fermilab even use neutrinos in 2012? That seems even harder, practically made for an April fools RFC.
- ggm 4 days agoWe know neolithic internet used free air lasers because we haven't found either optical fibre connectors or copper Ethernet in the trenches we dig at neolithic settlements.[-]
- cuttothechase 4 days agoIsn't this just fiber optics! Exciting turn of the century tech hitting HN boards in 2025[-]
- rafale 4 days agoEvery year new engineers and enthusiasts need to be exposed to cutting edge technologies through hands-on introductions like these.