The temperamental printer

An office network printer had worked without problems for months.

One morning several computers could not print. A few hours later it started working again without a repair.

The problem recurred over the next few days. Sometimes some computers could print while others could not reach the printer.

The technician confirmed that the printer was on, had paper, showed no errors and was connected to the network.

From a computer that could not print, the technician pinged the printer’s address and received a reply. The printer’s settings page would not open on that computer. From the computer next to it, the settings page opened and printing worked.

Why did it work only some of the time?

How to solve the cases
Two laptops connected to a network printer, one able to print and one unable to

Hints

Reveal them one at a time, only when you need them.

Solution

The printer and another device on the network shared an IP address. This conflict meant that computers reached the printer some of the time and the other device at other times.

What happened?

Devices on a local network need distinct IP addresses. In this office, two devices used the same one.

Before a computer could print, it needed to identify the device at the printer’s IP address.

ARP (Address Resolution Protocol) maps an IPv4 address to a device’s MAC (Media Access Control) address on the local network.

Here is how the failure occurred:

  1. A computer tried to contact the printer’s IP address.
  2. Both devices could reply to ARP requests because they had the same IP.
  3. The computer sent data to whichever device’s MAC address ended up in its ARP cache for that IP.
  4. Printing failed when the data reached the wrong device.

That is why the problem could come and go without anyone touching the printer.

Some devices detect a duplicate address and warn the user or stop using it. Here the fault was intermittent because the ARP mappings could change.

How could it be fixed?

The technician needed to identify the two devices sharing the IP address and give one a different address.

Two ways to prevent a repeat:

  • DHCP reservation: configure the DHCP (Dynamic Host Configuration Protocol) server to reserve the printer’s address for its MAC address.
  • Static IP address: manually assign an unused address outside the DHCP assignment pool or excluded from it.

Then check for duplicate addresses and verify that the printer works from the different computers.

Further reading

Have a story worth investigating?

Suggest a case

A project by Eniun

How do you solve the cases?

Each case presents a mystery that seems to defy explanation.

A moderator who knows the solution reads the mystery to the group. The group works out what happened by asking questions, discussing hypotheses and using what they know.

You can project the case on a screen so everyone can read it and refer back to it during the discussion.

The moderator can guide the discussion without giving away the answer. If the group gets stuck, each case offers three graded hints under “Hints”, which can be revealed one at a time.

Once the moderator confirms that the group has found the answer, select “Show answer” to open the solution.

You can also solve the cases on your own: read the story, try to come up with an explanation and use the hints only when you need them.