GSM Hosting All articles
Server Administration

Twelve Modems, One Hub, Zero Margin: A USB Health Audit for a Dense Rack

GSM Hosting
Twelve Modems, One Hub, Zero Margin: A USB Health Audit for a Dense Rack

The ticket reads modem failure. It almost never is.

Here is the loop we keep hearing about: a dozen SIMs go dark within a few minutes of each other at 3 a.m. Someone pulls the suspect modems, swaps in spares, and the spares work — for a week. Then the same ports go dark again. Three RMAs later the vendor has your serial numbers on file and you still have an outage. What you actually had was a hub running at the edge of its power budget, and the modems were just the loudest thing that failed.

USB is a shared bus, not a pile of independent ports

Every diagram of a modem farm starts at the modem. Start at the wall wart instead. A hub is one power supply feeding a set of downstream ports, and everything below it shares the same upstream link. When a hub browns out it does not politely fail one port — it resets, and every device beneath it re-enumerates at once. That is how one marginal cable takes four SIMs offline in the same second while the other eight look perfectly fine.

Topology matters too. USB allows seven tiers, which is a technical limit and not an operational one. In a rack full of modems, anything deeper than two tiers, or more than five or six devices on a single hub, is asking for trouble. Daisy-chaining unpowered hubs to reach the back of the shelf is the classic version of that mistake, and it usually happens on a Friday.

The power math nobody runs

A USB 2.0 port promises 500 mA at 5V. That is 2.5 watts. A USB 3.x port promises 900 mA. A cellular modem is not a steady load: it idles around 100 to 200 mA, then spikes hard during attach and transmit bursts — hundreds of milliseconds at a full amp or more, depending on the module and the band.

Twelve modems on a 7-port hub with a 2A brick is 10 watts of supply feeding something that wants 15 to 20 watts at peak. The brick gets hot, the rail sags, a modem sees 4.5 volts instead of 5, resets, and the bus renegotiates. Then the neighbor resets. Congratulations, you have built an oscillator with a status page.

Budget 1.5 A per modem at peak, then add 30 percent for the hub and cabling. If the number printed on the brick is smaller than that total, you found your problem without opening a single ticket.

Read the logs like a scene, not a symptom

Two commands cover most of the ground:

lsusb -t
dmesg -T | grep -Ei 'usb|hub|xhci|over-current|error -71'

The first gives you the tree and the negotiated speeds. If a modem that should run at 480M shows up at 12M, or a hub is carrying nine devices three tiers deep, you have a topology problem before you have a modem problem.

The second is where the story lives. The lines worth memorizing:

Frequency is the entire game. One reset a week is radiation. One reset every ten minutes on the same port is a countdown.

What an enumeration storm does to your SMS pipeline

Here is the part that surfaces on the customer side. Every reset forces the gateway to reopen the device, reinitialize the serial or QMI connection, and re-register with the network. Do that across eight modems in a minute and you get a reconnect storm: sockets churning, queues backing up, and modems re-attaching to whatever cell they find first — which may not be the one you spent a weekend tuning. Deliveries stall, retries pile up, and the monthly invoice looks like a traffic problem instead of a hardware one.

Cabling is a component, not an accessory

Treat cables as consumables with a lifespan, because that is what they are. Thin 28 AWG charge cables drop too much voltage over a meter. Active extension cables are hubs in disguise and should never appear in a modem rack. Label both ends of every cable and keep one known-good spare per hub, so a swap takes thirty seconds instead of a whole night.

A checklist you can run this week without taking the rack down

  1. Snapshot lsusb -t and commit it. You cannot spot drift without a baseline.
  2. Count devices per hub and tiers per path. Rework the plan if any hub carries more than six modems.
  3. Save dmesg -T now, again in 24 hours, and diff. Count resets per port.
  4. Read the label on every hub brick and do the math from above.
  5. Check whether your hubs support per-port power switching with uhubctl -l 1-1 -a show. If they do, script a single-port power cycle and stop rebooting the entire rack to fix one device.
  6. Touch every brick and hub. Warm is normal. Uncomfortable to hold is a supply on its way out.
  7. Alert on reset rate, not on device presence.
  8. Replace the oldest cable on the busiest hub and keep the old one as a labeled spare.

None of that requires downtime, and all of it tells you whether the next outage is going to be a modem, a cable, or a five-dollar brick that has been quietly cooking since spring.

All Articles

Related Articles

Spares You Haven't Touched Aren't Spares: Running a Quarterly Fire Drill on Idle Modem Gear

Spares You Haven't Touched Aren't Spares: Running a Quarterly Fire Drill on Idle Modem Gear

Your Modem Farm Has a Version Control Problem That Git Can't Fix

Your Modem Farm Has a Version Control Problem That Git Can't Fix

Timestamps Don't Forgive: Auditing Clock Discipline on a Modem Farm

Timestamps Don't Forgive: Auditing Clock Discipline on a Modem Farm