Tips for effective troubleshooting
How to find a needle in a haystack by gradually eliminating starting from layer 1 to 7.
Tips for effective troubleshooting
“Printing isn’t working – why won’t it print?” a user asks. The answer might sound simple, but under the hood there are many places where something could have gone wrong. Wasting two hours installing printer drivers when it was just a loose network cable in the printer (or the paper tray was empty) is a very frustrating experience that in my opinion every “IT guy” had to go through at some point.
Here is my guide on how not to go crazy while hunting for bugs. It’s called: Follow the OSI model.
The Law of the OSI Model: Bottom-up
Before you start messing around in the settings of complex programs at the Application layer (Layer 7), make sure basic physics and networking are working.
graph TD
Layer1((1. Physical Layer)) --> Layer2((2. Data Link Layer))
Layer2 --> Layer3((3. Network Layer))
Layer3 --> Layer7((7. Application Layer))
Layer1 -. "Is it plugged in? Is there power? Is the cable clicked in?" .-> Layer1
Layer2 -. "Is the light on the Switch on? Can you see the MAC address?" .-> Layer2
Layer3 -. "Did it get assigned an IP address via DHCP? Does it ping?" .-> Layer3
Layer7 -. "Is the program running? Do we have a license for it?" .-> Layer7
A specific example with a broken phone:
- Layer 1 (Cabling): Is the phone even plugged in? No? (This is where troubleshooting would have ended, 20 minutes sooner than installing new SIP firmware at Layer 7.)
- Layer 3 (Network): Does the phone have an IP address? If not, restart the port, or check DHCP.
- Layer 7 (Application): After clicking in the software on the PC, it doesn’t dial the client’s number on the desk. Only now do we investigate if the PBX has been renamed.
Divide and conquer
Once I know which layer to search in, I try to isolate the problem as much as possible.
Splitting it in half: “It works for the user from a mobile phone on that Wi-Fi. It doesn’t work from the laptop.” => Logically, the fault is not in the router or the company’s internet connection, but with 99% certainty in the Wi-Fi driver on the laptop or an incorrect password (or certificate). You have just cut the scope of the search in half!
Never change multiple things at once
You replace the cable, restart the switch and set a static IP address. Suddenly it starts working! You’re a genius! But do you even know WHY it works? No. That means next time you won’t be able to resolve it in time or write documentation into the Knowledge Base.
Always test with a single changed variable.
- Change cable -> Test -> Fails.
- Restart switch -> Test -> Fails.
- Delete certificates in Windows profile -> Test -> Works!
Problem found. Time for good coffee.