A first network device comprises first and second transformers that
communicate with a second network device. A switch selectively connects
power to the first and second transformers. A physical layer device
communicates with the first and second transformers and includes a signal
generator, a detector, and a controller that communicates with the
switch, the signal generator and the detector. The signal generator
generates a test signal comprising n sub-pulses, where n is an integer
greater than 2. When the detector detects j pulses that are greater than
a predetermined threshold, 1.ltoreq.j