DEV Community

Serguey Shinder
Serguey Shinder

Posted on

Our Branch Trade Day Used Up Every Wi-Fi Address and the Replacement Scanners Could Not Join for a Week

Once a year our largest branch holds a trade day. Suppliers set up stands in the yard, there are demonstrations and a barbecue, and about three hundred and fifty builders, plumbers and electricians spend a Saturday with us. Last year most of them joined the customer Wi-Fi, because two of the suppliers ran their competitions through an app.

Nothing went wrong on the day. On the Monday the branch received six repaired handheld scanners back from our repair supplier, and none of them would join the network. Neither would a new card terminal for the counter, or the laptop of an engineer who came to service the forklift charger. None of them was given an address. The laptop had assigned itself one starting with 169.254, which is what Windows does when it asks the network for an address and nothing answers.

It took us until Thursday to find out why. When the branch was built, the installer had put the customer Wi-Fi on the same network as the branch's own devices, to save configuring a second one. That network had room for about two hundred addresses, and it handed them out with an eight day lease, which is the default on our servers and perfectly sensible for a PC that sits on a desk every day. On trade day a hundred and eighty phones each took an address and went home with it still reserved. The devices that were already connected carried on renewing their own leases, so nothing that was in the building on Friday noticed anything. Only new devices found the pool empty, and they kept finding it empty until the phones' leases ran out the following weekend.

We cleared the old leases that afternoon and everything joined within minutes. Then we fixed the cause. Customer Wi-Fi at every branch now has its own network and its own address range, with a two hour lease, because a visitor's phone rarely stays longer than a morning. Our own devices keep the longer lease. We alert when any address pool passes eighty percent full, so a crowd shows up as a warning rather than as a scanner that cannot connect. When we checked, nine other branches had been built the same way.

A lease length is a statement about how long you expect a device to stay. Set it for the devices that are actually there, and keep visitors and the equipment you run the business on in separate pools.

– Serguey Shinder

Top comments (0)