Just because I don't care doesn't mean I don't understand.
540 stories
·
3 followers

Ruff v0.4.0

1 Comment
Ruff migrates to a hand-written recursive descent parser: >2x faster, with error recovery capabilities.

Read the whole story
jgbishop
9 hours ago
reply
Hoo boy! The fast has gotten faster. Incredible!
Durham, NC
Share this story
Delete

Calvin and Hobbes by Bill Watterson for Sat, 06 Apr 2024

1 Comment

Calvin and Hobbes by Bill Watterson on Sat, 06 Apr 2024

Source - Patreon

Read the whole story
jgbishop
12 days ago
reply
Hard to believe this would get published today.
Durham, NC
Share this story
Delete

The Wi-Fi only works when it's raining

1 Comment

Happy April 1st! This post is part of April Cools Club: an April 1st effort to publish genuine essays on unexpected topics. Please enjoy this true story, and rest assured that the tech content will be back soon!

That's what my dad said when I asked what was wrong with our home internet connection. "The Wi-Fi only works when it's raining."

Illustration of a Wi-Fi antenna attached to the exterior of an upper floor of an apartment building. It's currently raining, and the Wi-Fi is working flawlessly.

Let's back up a few steps, so we're all on the same page about the utter ridiculousness of this situation.

At the time, I was still a college student — this was over 10 years ago. I had come back home to spend a couple of weeks with my parents before the fall semester kicked off. I hadn't been back home in almost a full year, because home and school were on different continents.

My dad is an engineer who had already been tinkering with networking gear longer than I'd been alive. Through the company he started, he had designed and deployed all sorts of complex network systems at institutions across the country — everything from gigabit Ethernet for an office building, to inter-city connections over line-of-sight microwave links.

He is the last person on Earth who would say a "magical thinking" phrase like that.

"What?" I uttered, stunned. "The Wi-Fi only works while it's raining," he repeated patiently. "It started a couple of weeks ago, and I haven't had a chance to look into it yet."

"No way," I said. If anything, rain makes wireless signal quality worse, not better. Never better!

Two weeks without reliable internet? I started a speed-run through the stages of grief...

Denial

I pulled open my laptop and started poking at the network.

Pinging any website had a 98% packet loss rate. The internet connection was still up, but only in the most annoying "technically accurate" sense. Nothing loads when you have a 98% packet loss rate! The network may as well have been dead.

I was upset. I had just started dating someone a few months prior, and she was currently on the other side of the planet! How was I to explain that I couldn't stay in touch because it wasn't raining? Mobile data at the time was exorbitantly expensive, so much so that I didn't have a data plan at all for my cell service at home. I couldn't just use my phone's data plan to work around the problem, like one might do today in a similar situation.

I was pacing around the house, fuming. Grief, stage two!

That's when the rain started.

Bargaining

Like a miracle, within 5 minutes of the rain starting, the packet loss rate was down to 0%!

I couldn't believe my eyes! I was ready for the connection to die at any second, so I opened a million tabs at once — as if I don't normally do that anyway...

The rain held up for about an hour, and so did the internet connection.

Then, 15 minutes or so after the rain stopped, the packet loss rate shot back up to 90%+. The internet connection went back to being unusable.

I was ready to do just about anything to get more rain.

Thankfully, the weather stayed grey and murky for the next few days. Each time, the pattern stayed the same:

  • The rain starts, and not even a few minutes later the internet connection is crisp and fast.
  • The rain stops, and within 15 minutes the internet connection is unusable again.

As much as I hated to admit it, the evidence was solid. The Wi-Fi only works when it's raining!

At this point, I had a choice to make.

I could keep going through the stages of grief: I could sulk and plan my calls with my girlfriend around the weather forecast.

Or, I could break out of that downward spiral and get to the bottom of what was going on.

"Magical thinking be damned! Am I an engineer or what?" I told myself.

That settled it. I wasn't going to take this lying down.

Determination

Some context on our home networking setup is in order.

Remember how my dad's company had extensive experience with networking solutions? Well, we had a fancy networking setup at home too — and it had worked flawlessly for the best part of 10 years!

My dad's office had a very expensive, very fast For the time, of course. commercial internet connection. The home internet options, meanwhile, weren't great! In my family, we are often stubbornly against settling for less unless there's absolutely no other choice.

The office and our apartment were a few blocks away from each other along a small hill, with our second-floor apartment holding the higher ground. With a bit of work, my dad set up a line-of-sight Wi-Fi bridge — a couple of high-gain directional Wi-Fi antennas pointed at each other — between the office and our apartment. This let us enjoy the faster commercial internet connection at home!

I started poking around the network to figure out where the connection was breaking down.

The local Wi-Fi router at home was working well — no packets lost. The local end of the Wi-Fi bridge was fine too.

But pinging the remote end of the Wi-Fi bridge was showing a 90%+ packet loss rate — and so did pinging any other network device behind it. Aha, there's something wrong with the Wi-Fi bridge!

But what? And why now, when the system had been working fine for almost 10 years, rain or shine? Maybe years of work experience isn't a good metric here either 😄

How can a rain storm fix a Wi-Fi bridge, anyway?

So many confusing questions. Time to get some answers!

Debugging

Like any experienced engineer, the first thing I tried was turning everything off and then on again. It didn't work.

Then I checked all the devices on the network individually:

Unlike debugging software, a lot of this hardware debugging was annoyingly physical. I had to climb up ladders, trace cables that hadn't been touched in 10 years, and do a lot of walking back and forth between our home and my dad's office.

On my umpteenth back-and-forth walk, as I was bored and exasperated, I started noticing how much our neighborhood had changed in the many years I hadn't been living at home full-time. Before college, I spent four years at a boarding high school. I was on our national math and programming teams for the IMO and IOI), so I even spent most of each summer away from home at prep camps and at the competitions themselves. Many of the little neighborhood shops were new. Many houses had gotten a fresh coat of paint. Trees that used to be barely more than saplings had grown tall and strong.

Then it hit me.

Realization

I ran home and climbed up onto the scaffolding holding up the Wi-Fi bridge's antenna. I was hanging precariously off the side of our apartment building, two stories up in the air. In retrospect, a safety harness would have been a good idea... Things people do for internet! Don't forget, a girl was involved too — I wasn't doing this merely for Netflix or Twitter.

Then I looked downhill, at the antenna that formed the second half of the Wi-Fi bridge.

Or at least, toward the antenna, because I couldn't see it — a tree in a neighbor's yard was in the way! Its topmost branches were swaying back and forth in the line-of-sight between the antenna pair.

Bingo!

The Problem and the Fix

Here's what was going on.

Many years ago, we installed the Wi-Fi bridge. For a long time, everything was great!

But every year, our neighbor's tree grew taller and taller. Shortly before when I came back home that summer, its topmost branches had managed to reach high enough to interfere with our Wi-Fi signal.

It was only barely tall enough to interfere with the signal, though!

Every time it rained, the rain collected on its leaves and branches and weighed them down. The extra weight bent them out of the way of the Wi-Fi line-of-sight! Interestingly, objects outside the straight line between antennas can still cause interference! For best signal quality, the Fresnel zone between the antennas should be clear of obstructions. But perfection isn't achievable in practice, so RF equipment like Wi-Fi uses techniques like error-correcting codes so that it can still work without a perfectly clear Fresnel zone.

Each time the rain stopped, the rainwater would continue to drip off the tree. Slowly, over the course of 15ish minutes, that would unburden the tree — letting it rise back up into the path of our bits and bytes. That's when the Wi-Fi would stop working.

The fix was easy: upgrade our hardware. We replaced our old 802.11g devices with new 802.11n ones, which took advantage of new magic math and physics to make signals more resistant to interference. One such piece of magic new to 802.11n Wi-Fi is called "beamfoming" — it's when a transmitter can use multiple antennas transmitting on the same frequency to shape and steer the signal in a way that improves the effective range and signal quality. Modern Wi-Fi does beamforming with only a few antenna elements, but if we scale that number way up we get a phased array antenna. Ever wondered how come Starlink antennas are flat and not a "dish" like old satellite TV antennas? They use phased arrays to aim their signal at the Starlink satellites streaking across the sky — without any moving parts. Magic! Physics!

A few days later, the new gear arrived and I eagerly climbed back up the scaffolding to install the new antennas.

A few screws, zip ties, and cable connections later, the Wi-Fi's "link established" lights flashed green once again.

This time, it wasn't raining.

All was well once again.

Hope you enjoyed this true story! April Cools is about surprising our readers with fun posts on topics outside our usual beat. Check out the other April Cools posts on our website, and consider making your own blog part of April Cools Club next year!

Thanks to Hillel Wayne and Jeremy Kun for reading drafts of this post. All mistakes are my own.

Adblock test (Why?)

Read the whole story
jgbishop
17 days ago
reply
Good read!
Durham, NC
Share this story
Delete

The Marlins will energize their stadium this year by telling fans to...

1 Comment
The Marlins will energize their stadium this year by telling fans to bring their instruments. The notice forbids pots and pans, but doesn’t say shit about keytars. The team only wants instrument playing during certain moments, to which I say good luck.

💬 Join the discussion on kottke.org

Read the whole story
jgbishop
24 days ago
reply
What could possibly go wrong?
Durham, NC
Share this story
Delete

Calvin and Hobbes by Bill Watterson for Thu, 21 Mar 2024

1 Comment

Calvin and Hobbes by Bill Watterson on Thu, 21 Mar 2024

Source - Patreon

Read the whole story
jgbishop
29 days ago
reply
This is almost exactly how our children act.
Durham, NC
Share this story
Delete

Calvin and Hobbes by Bill Watterson for Tue, 19 Mar 2024

1 Comment

Calvin and Hobbes by Bill Watterson on Tue, 19 Mar 2024

Source - Patreon

Read the whole story
jgbishop
31 days ago
reply
Hahaha!
Durham, NC
Share this story
Delete
Next Page of Stories