Bufferbloat, The Internet, And How To Fix It

There’s a dreaded disease that’s plagued Internet Service Providers for years. OK, there’s probably several diseases, but today we’re talking about bufferbloat. What it is, how to test for it, and finally what you can do about it. Oh, and a huge shout-out to all the folks working on this problem. Many programmers and engineers, like Vint Cerf, Dave Taht, Jim Gettys, and many more have cracked this nut for our collective benefit.

When your computer sends a TCP/IP packet to another host on the Internet, that packet routes through your computer, through the network card, through a switch, through your router, through an ISP modem, through a couple ISP routers, and then finally through some very large routers on its way to the datacenter. Or maybe through that convoluted chain of devices in reverse, to arrive at another desktop. It’s amazing that the whole thing works at all, really. Each of those hops represents another place for things to go wrong. And if something really goes wrong, you know it right away. Pages suddenly won’t load. Your VoIP calls get cut off, or have drop-outs. It’s pretty easy to spot a broken connection, even if finding and fixing it isn’t so trivial.

That’s an obvious problem. What if you have a non-obvious problem? Sites load, but just a little slower than it seems like they used to. You know how to use a command line, so you try a ping test. Huh, 15.0 ms off to Google.com. Let it run for a hundred packets, and essentially no packet loss. But something’s just not right. When someone else is streaming a movie, or a machine is pushing a backup up to a remote server, it all falls apart. That’s bufferbloat, and it’s actually really easy to do a simple test to detect it. Run a speed test, and run a ping test while your connection is being saturated. If your latency under load goes through the roof, you likely have bufferbloat. There are even a few of the big speed test sites that now offer bufferbloat tests. But first, some history. Continue reading “Bufferbloat, The Internet, And How To Fix It”

Chips Remembered: The Scenix/Ubicom/Parallax SX

If you are a bibliophile, going to a used bookstore is a distinctly pleasant experience. Sure, you might discover an old book that you want to read. But at least some of the endorphin rush comes from seeing old friends. Not humans, but books you read years or even decades ago. Most often, you don’t buy the book — you probably have one stashed in a box somewhere. But it is a happy feeling to see an old friend and maybe thumb through it reading a passage or two among shelves of musty books. I wish we had something like that for chips. Outside of a few notable exceptions, chips tend to have a short life span of popularity and then give way to other chips. This is especially true of CPUs. One that I especially miss is the Scenix/Ubicom/Parallax SX chip.

I had a bookstore-like experience with this processor the other day. I produced a few products based around these chips and I have a small stash of them left. I jealously guard the hardware needed to program them “just in case.” Well, naturally, someone needed a few for some reason so I had to dig it all up. Knowing these might be some of the last of the unprogrammed SX chips in the world made me a little nostalgic.

The Story

In the late 1990s, a company called Scenix started producing a microcontroller called the SX in a few footprint sizes. So the SX18 was, for example, an 18-pin part. By 1999, they were already in full swing with the SX18 and SX28 and they introduced the SX52.

Of course, a lot of companies produced microcontrollers. The Scenix offering was a bit special. In those days, the Microchip PIC was the king of the hill. The PIC is an odd beast that evolved from a very limited controller made to be small and inexpensive. Notably, while it could support relatively high clock frequencies — 20 MHz was common — each normal instruction took 4 clock cycles. So when your crystal said 20 MHz, you were running instructions at 5 MHz.

Continue reading “Chips Remembered: The Scenix/Ubicom/Parallax SX”

We’re Hiring: Come Join Us!

You wake up in the morning, and check Hackaday over breakfast. Then it’s off to work or school, where you’ve already had to explain the Jolly Wrencher to your shoulder-surfing colleagues. And then to a hackspace or back to your home lab, stopping by the skull-and-cross-wrenches while commuting, naturally. You don’t bleed red, but rather #F3BF10. It’s time we talked.

The Hackaday writing crew goes to great lengths to cover all that is interesting to engineers and enthusiasts. We find ourselves stretched a bit thin and it’s time to ask for help. Want to lend a hand while making some extra dough to plow back into your projects? We’re looking for contributors to write a few articles per week and keep the Hackaday flame burning.

Contributors are hired as private contractors and paid for each article. You should have the technical expertise to understand the projects you write about, and a passion for the wide range of topics we feature. You’ll have access to the Hackaday Tips Line, and we count on your judgement to help us find the juicy nuggets that you’d want to share with your hacker friends.

If you’re interested, please email our jobs line (jobs at hackaday dot com) and include:

  • One example article written in the voice of Hackaday. Include a banner image, at least 150 words, the link to the project, and any in-links to related and relevant Hackaday features. We need to know that you can write.
  • Details about your background (education, employment, interests) that make you a valuable addition to the team. What do you like, and what do you do?
  • Links to your blog/project posts/etc. that have been published on the Internet, if any.

What are you waiting for? Ladies and Gentlemen, start your applications!

Coils In The Road Could Charge EVs While Driving

One of the primary issues with EVs is that you need to pull over and stop to get a charge. If there isn’t a high-speed DC charger available, this can mean waiting for hours while your battery tops up.

It’s been the major bugbear of electric vehicles since they started hitting the road in real numbers. However, a new wireless charging setup could allow you to juice up on the go.

Electric Highways

Over the years, many proposals have been made to power or charge electric vehicles as they drive down the road. Many are similar to the way we commonly charge phones these days, using inductive power transfer via magnetic coils. The theory is simple. Power is delivered to coils in the roadway, and then picked up via induction by a coil on the moving vehicle.

Taking these ideas from concept into reality is difficult, though. When it comes to charging an electric vehicle, huge power levels are required, in the range of tens to hundreds of kilowatts. And, while a phone can sit neatly on top of a charging pad, EVs typically require a fair bit of ground clearance for safely navigating the road. Plus, since cars move at quite a rapid pace, an inductive charging system that could handle this dynamic condition would require huge numbers of coils buried repeatedly into the road bed. Continue reading “Coils In The Road Could Charge EVs While Driving”

Ask Hackaday: How Can You Store Energy At Home?

Amidst the discussions about grid-level energy storage solutions, it is often easy to forget that energy storage can be done on the level of a single house or building as well. The advantages here are that no grid management is needed, with the storage (electrical, thermal, etc.) absorbing the energy as it becomes available, and discharging it when requested. This simplifies the scale of the problem and thus the associated costs significantly.

Perhaps the most common examples of such systems are solar thermal collectors with an associated hot water storage tank, and of course batteries. More recently, the idea of using a battery electric vehicle (BEV, ‘electric car’) as part of a home storage solution is also gaining traction, especially for emergencies where the grid connection has failed due to a storm or similar emergencies. But all-in-all, we don’t see many options for home-level energy storage.

Continue reading “Ask Hackaday: How Can You Store Energy At Home?”

Why Do Brits Drink Warm Beer?

Traveling through mainland Europe on a British passport leads you to several predictable conversations. There’s Marmite of course, then all the fun of the Brexit fair, and finally on a more serious note, beer. You see, I didn’t know this, but after decades of quaffing fine ales, I’m told we do it wrong because we drink our beer warm. “Warm?”, I say, thinking of a cooling glass of my local Old Hooky which is anything but warm when served in an Oxfordshire village pub, to receive the reply that they drink their beers cold. A bit of international deciphering later it emerges that “warm” is what I’d refer to as “cold”, or in fact “room temperature”, while “cold” in their parlance means “refrigerated”, or as I’d say it: “Too cold to taste anything”. Mild humour aside there’s clearly something afoot, so it’s time to get to the bottom of all this. Continue reading “Why Do Brits Drink Warm Beer?”

Steam Power Hack Chat

Join us on Wednesday, August 17 at noon Pacific for the Steam Power Hack Chat with Quinn Dunki!

The steam power age may be behind us now, but that doesn’t mean that the engineering that went into steam engines isn’t worth exploring. In a lot of ways, the steam age is what made modern engineering what we know it as today. Where wind- and water-powered devices could often work well enough with a couple of inches of tolerance, steam engines required parts measured to the hundredth or even thousandth of an inch. Optimizing steam engines required a deep understanding of thermodynamics, too, which unveiled more about the way the universe works than had ever been realized before. And the need for parts strong enough to withstand steam pressure and the lubricants needed to keep the wheels turning paved the way for advances in materials science and chemical engineering that are still paying dividends today.

Celebrating the achievements of steam power may seem anachronistic, but in light of everything steam has done for us, it makes a lot of sense. And that’s not to mention the cool aesthetics of steam engines, with beefy castings and brass parts sliding back and forth, complicated linkages doing who-knows-what to make the engine work on nothing more than a little bit of boiling water. There’s the attraction of danger, too; improperly built boilers can be a disaster, so building one that’s safe to use can be quite a challenge.

join-hack-chatAll this and more is what the steam hobby is all about, an area that Quinn Dunki has been exploring for a while now. Over on her YouTube channel, Quinn has documented the process of turning raw metal into a working steam engine and boiler, and is currently working on a bigger, more powerful engine. We’ve invited her on the Hack Chat to talk about all things steam — where to get started in the hobby, what kinds of things you can learn by building your own steam engines, and how her current builds are going. If you’ve ever wanted to explore steam power, here’s your chance to ask a real steam aficionado.

Our Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, August 17 at 12:00 PM Pacific time. If time zones have you tied up, we have a handy time zone converter.