The present invention relates to electronic diagnostic systems, and more particularly to testing equipment for cable used in a network.
One goal of a network manager is to control total cost of ownership of the network. Cabling problems can cause a significant amount of network downtime and can require troubleshooting resources, which increase the total cost of ownership. Providing tools that help solve cabling problems more quickly will increase network uptime and reduce the total cost ownership.
Referring now to
A short condition occurs when two or more lines are short-circuited together. An open condition occurs when there is a lack of continuity between ends at both ends of a cable. A crossed pair occurs when a pair communicates with different pins at each end. For example, a first pair communicates with pins 1 and 2 at one end and pins 3 and 6 at the other end. A reversed pair occurs when two ends in a pair are connected to opposite pins at each end of the cable. For example, a line on pin 1 communicates with pin 2 at the other end. A line on pin 2 communicates with pin 1 at the other end.
The cable tester 10 employs time domain reflection (TDR), which is based on transmission line theory, to troubleshoot cable faults. The cable tester 10 transmits a pulse 17 on the cable 14 and measures an elapsed time until a reflection 18 is received. Using the elapsed time and a cable propagation constant, a cable distance can be estimated and a fault can be identified. Two waves propagate through the cable 14. A forward wave propagates from a transmitter in the cable tester 10 towards the load 16 or fault. A return wave propagates from the load 16 or fault to the cable tester 10.
A perfectly terminated line has no attenuation and an impedance that is matched to a source impedance. The load is equal to the line impedance. The return wave is zero for a perfectly terminated line because the load receives all of the forward wave energy. For open circuits, the return wave has an amplitude that is approximately equal to the forward wave. For short circuits, the return wave has a negative amplitude is also approximately equal to the forward wave.
In transmission line theory, a reflection coefficient is defined as:
Where ZL is the load impedance and ZO is the cable impedance. The return loss in (dB) is defined as:
Return loss performance is determined by the transmitter return loss, the cable characteristic impedance and return loss, and the receiver return loss. IEEE section 802.3, which is hereby incorporated by reference, specifies receiver and transmitter minimum return loss for various frequencies. Additional factors that may affect the accuracy of the return loss measurement include connectors and patch panels. Cable impedance can also vary, for example CAT5 UTP cable impedance can vary ±15 Ohms.
Consumers can now purchase lower cost switches, routers, network devices and network appliances that include physical layer devices with ports that are connected to cable. When connecting these network devices to cable, the same types of cabling problems that are described above may occur. In these lower cost applications, the consumer typically does not have a cable tester or want to purchase one. Therefore, it is difficult to identify and diagnose cable problems without simply swapping the questionable cable with a purportedly operating cable. If the purportedly operating cable does not actually work, the consumer may incorrectly conclude that the network device is not operating and/or experience further downtime until the cable problem is identified.
A physical layer device according to the present invention is adapted to communicate with a cable medium and includes at least one indicator that identifies at least one of link presence, link absence, link activity, link duplex and link speed of the first input/output terminal during normal operation. A first tranceiver communicates with a first input/output terminal and the cable medium and includes a cable tester that tests the cable medium and determines a cable status. The cable tester also uses the indicator to indicate at least one of cable testing status during the test and the cable status after the test.
In other features, the cable tester includes a pretest module that senses activity on the cable medium and enables testing if activity is not detected for a first period. A test module is enabled by the pretest module, transmits a test pulse on the cable medium, measures a reflection amplitude and calculates a cable length. The cable tester determines the status based on the measured amplitude and the calculated cable length.
The pretest module enables testing if, during the first period, activity is detected and is subsequently not detected for a second period after the activity is detected. A lookup table includes a plurality of sets of reflection amplitudes as a function of cable length. The cable tester determines the cable status using the lookup table, the reflection amplitude and the cable length. The cable status includes good, open and short cable statuses.
In still other features, the sets of reflection amplitudes define a plurality of windows including a first window that is defined by first and second thresholds. The first threshold is based on a first set of reflection amplitudes that are measured as a function of cable length when a test cable type is an open circuit. The second threshold is based on a second set of reflection amplitudes that are measured as a function of cable length when the test cable type is terminated using a first impedance having a first impedance value.
In still other features, a second window is defined by third and fourth thresholds. The third threshold is based on a third set of reflection amplitudes that are measured as a function of cable length when the test cable type is a short circuit. The fourth threshold is based on a fourth set of reflection amplitudes that are measured as a function of cable length when the test cable type is terminated using a second impedance having a second impedance value. A third window is defined between the second and fourth thresholds.
In yet other features, the cable medium is declared an open circuit when the reflection amplitude is in the first window for the cable length. The cable medium is declared a short circuit when the reflection amplitude is in the second window for the cable length. The cable medium is declared normal when the reflection amplitude is in the third window for the cable length.
In yet other features, an analog to digital converter (ADC) measures the reflection amplitude. The test module measures offset at the ADC, subtracts the offset from the reflection amplitude, and zeroes the reflection amplitude below a floor. The floor has a first value during a first period after the test pulse and a second value during a second period after the first period.
In still other features, the physical layer device includes a plurality of input/output terminals and the cable tester includes a test actuator that triggers the test during operation of the physical layer device for unlinked input/output terminals but not unlinked input/output terminals. The cable tester enters a test fail status when the cable medium is active for a period greater than a test fail period. The cable tester is integrated with the tranceiver in a single integrated circuit. The indicator includes at least one of an audio indicator and a visual indicator. The indicator includes at least one of a speaker, a light emitting diode (LED), and an incandescent light.
In still other features, the physical layer device includes a detector that detects a power over Ethernet (POE) device and a power supply. A switching device selectively provides power from the power supply over the cable medium when the detector detects the POE device. The cable tester delays testing of the cable medium when the detector detects the POE device until the switching device provides the power.
In still other features, the physical layer device implement one of a switch, a router, a computer, a laptop, a smart videocassette recorder, an IP telephone, a fax machine, a modem, a television, a stereo, and a hand-held device.
Further areas of applicability of the present invention will become apparent from the detailed description provided hereinafter. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
The present invention will become more fully understood from the detailed description and the accompanying drawings, wherein:
The following description of the preferred embodiment(s) is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses. For purposes of clarity, the same reference numbers will be used in the drawings to identify the same elements.
Referring now to
The test module 32 includes a pretest state machine or module 50. The test module 32 also includes a first test state machine or module 52 and/or a second test state machine 54. One or more lookup tables 56 containing cable empirical data are also provided as will be described below. The cable tester 20 may also include a display 58 for presenting fault status, cable length and/or reflection amplitude data. A cancellation circuit 59 cancels the test pulse when testing on media that transmits and receives on the same wire such as 1000BaseT. The cancellation circuit 59 is not used when testing media that transmits and receives on different wires such as in 10/100BaseT. The cancellation circuit 59 can be a hybrid circuit.
Referring now to
A first timer is set equal to zero and a blind timer is incremented. The blind timer waits for a blind timer period to allow a sufficient amount of time for transitions between pairs. Typically several clock cycles are sufficient. When wire_activity is high, the pretest state machine 50 transitions to a signal find state 106 and resets a second timer. Wire_activity is present when a signal on the wire is above a predetermined threshold.
When wire_activity is low in the signal find state 106, the pretest state machine 50 transitions back to the signal find state 106 and resets the second timer. If the second timer is greater than a second period P2, the pretest state machine 50 transitions to a test state 110. Tdrwrstart is set equal to one. If a test pass signal is received, the pretest state machine 50 transitions to a test over state 114. Pair is incremented, tdrwrstart is set equal to zero, and the register is recorded.
If pair is less than 4 for 1000BaseT operation or 2 for 10/100BaseT operation, the pretest state machine 50 transitions from the test over state 114 to the first timer start state 104. If pair is equal to 4 for 1000BaseT operation or 2 for 10/100BaseT operation, the pretest state machine 50 transitions from the test over state 114 to the wait enable state 100.
In the first timer start state 104, the pretest state machine 50 transitions to the test state 110 if the first timer is greater than a third period P3. In the signal find state 106, the pretest state machine 50 transitions to the test over state 114 if the first timer is greater than the third period P3.
In a preferred embodiment, the first period P1 is preferably 1.5 s, the second period P2 is equal to 5 ms, and the third period is equal to 125 ms. Skilled artisans will appreciate that the first, second and third periods P1, P2 and P3, respectively, may be varied. The P3 is preferably selected based on a worst case spacing of link pulses. P2 is preferably selected to allow testing between fast link pulses (FLP). FLP bursts have a length of 2 ms and a spacing of 16 ms. By setting P2=5 ms, the delay is a total of 7 ms, which is approximately half way between FLPs. P1 may be longer than 1.5 seconds if required to bring the link down.
Referring now to
After an offset is subtracted from tdr_in, the first test state machine 52 transitions to a detect peak state 158. Peak stores the current value of tdr_in. If tdr_in is less than or equal to peak/2, the first test state machine 52 transitions to a detect cutoff state 162 where distance is set equal to a counter. If tdr_in is greater than peak, the first test state machine 52 transitions to state 158 and peak is replaced by a new tdr_in. If a timer is greater than a fifth period P5, the first test state machine 52 transitions to a test over state 166 where peak/distance is calculated, tdr_pass is set equal to 1, and tdr_sel_pulse is set equal to 0.
While in the detect cutoff state 162, the first test state machine 52 transitions to the detect peak state 158 if tdr_in>peak. While in the detect peak state 158, the first state machine 52 transitions to the test over state 166 if the timer is greater than the fifth period P5. In a preferred embodiment, P5 is equal to 5 μs.
Referring now to
If tdr_in is less than peak1/2, the second test state machine 54 transitions to a second detect peak state 212 and sets peak2 equal to maximum of tdr_in. If tdr_in is less than peak2/2, the second test state machine 54 transitions to a detect cutoff state 216. Distance is set equal to a counter. If a fourth timer is greater than a fourth period P4, the second test state machine 54 transitions to a test over state 220. Peak/distance is calculated, tdr_pass is set equal to 1, and tdr_sel_pulse is set equal to 0.
In the detect cutoff state 216, if tdr_in is greater than peak2, the second test state machine 54 transitions to the second peak detect state 212. In the second detect peak state 212, if the fourth timer is greater than P4, peak2 is equal to 0 and peak1 is greater than a threshold, the second test state machine 54 transitions to a second test state 224. In the second test state 224, tdr_sel_half_pulse is set equal to 1 to send a half pulse. The second test state machine 54 transitions from the second test state 224 to the test over state 220.
In the first detect peak state 208, if the fourth timer is greater than P4, the second test state machine 54 transitions to the test over state 220. In the second detect peak state 212, if the fourth timer is greater than P4, peak2=0, and peak1 is less than or equal to a second threshold, the second test state machine 54 transitions to the test over state 220.
The link is brought down and the pretest state machine 50 waits until the line is quiet. For each pair, the cable tester 20 generates a TDR pulse and measures the reflection. In 10/100BaseT media, after the test is enabled, the pretest state machine 50 waits until the line is quiet. A pulse is generated and the reflection is measured. The status receiver and transmitter pairs are determined sequentially. For the first pair, the receiver is preferably in MDIX mode and the transmitter is preferably in MDI mode. For the second pair, the receiver is preferably in MDI mode and transmitter is preferably in MDIX mode.
The pretest state machine 50 ensures that the line is quiet before the pulse is transmitted. After the test is enabled, the pretest state machine 50 waits P1 (such as 1.5 seconds or longer) to make sure that the link is brought down. The pretest state machine 50 determines whether there is activity on a first pair (MDI+/−[0] for 1000BaseT network devices and RX for 10/100BaseT products).
In a preferred embodiment, activity is found when activity minus systemic offset such as a noise floor that is calculated in states 154 and 204 is greater than a predetermined threshold. If there is no activity for P2 (such as 125 ms), the pretest state machine 50 proceeds to the test state and sends a pulse on the selected pair. If there is activity on the pair and the line is quiet for 5 ms afterwards, the pretest state machine proceeds to the test state. The test fail state is reached and a test failure declared if the line has not been quiet for more than 5 ms during a 125 ms period. If a test failure is declared on the first pair or the TDR test is completed for the pair, the same procedure is conducted on MDI+/−[1], MDI+/−[2], MDI+/−[3] sequentially for 1000BaseT devices and the TX pair for 10/100BaseT devices.
In 1000BaseT devices, the original 128 ns test pulse is cancelled by the cancellation circuit 59. The pulse received at the ADC output is the reflection. The test pulse preferably has 2V swing. Before testing, the offset on the line is measured and is subtracted from the received ADC value.
Referring now to
The cable status is determined by comparing the amplitude and the calculated cable length to the lookup table 56 for the type of cable being tested. The measured reflection amplitude falls into a window. There are two adjustable thresholds for open circuit and short circuit cable. The open threshold is preferably based on experimental data, which can be produced by refection amplitudes for CAT3 and CAT5 cable that is terminated with a first impedance value such as 333 Ohms.
The default short circuit threshold is based on experimental data of refection amplitudes for CAT3 and CAT5 cable that is terminated with a second impedance value such as a 33 Ohms. As can be appreciated, the lookup table 56 may contain data for other cable types. Other impedance values may be used to generate the thresholds.
If measured amplitude falls between open and short circuit thresholds, the cable status is declared normal. If the amplitude is above the open threshold, the cable status is declared an open circuit. If the amplitude is below a short circuit threshold, the cable status is declared a short circuit. The cable status, reflection amplitude and cable distance are stored and/or displayed.
In the second test state machine, the original test pulse is not cancelled. Both the original pulse and the reflection are monitored. When an open circuit is located near the cable tester, the two pulses may be overlapping, which may cause saturation in the ADC. The test state machine preferably sends out a 128 ns pulse that has a 1V swing. The offset on the line is measured and subtracted from the received ADC value. A 250 mv floor is used within 32 clock cycles (125 Mhz clock) and a 62.5 mv floor is used after 32 clock cycles so that the residual of cancellation and noise can be filtered. Signals below the floor are considered to be 0. The peak value on the line is detected for 5 μs. As can be appreciated, the test pulse can have longer or shorter durations and amplitudes.
The first peak that is observed should be the test pulse. The amplitude of reflection is the maximum magnitude detected after the test pulse is detected. The distance of reflection is at 50% cutoff of the peak. If another pulse is not detected after the test pulse and the magnitude of the test pulse (when a counter reached a predetermined period) is greater than a preset threshold, the cable tester decides whether there is an open cable that is located relatively close or a perfectly terminated cable by sending a second test pulse that has one-half of the magnitude of the first test pulse.
If the maximum magnitude on the line is greater than ¾ of the original pulse, there is an open circuit that is located relatively close. Otherwise, if the first peak is detected after a predetermined number of clock cycles, the cable tester 20 declares an open circuit. If the first peak is within after the predetermined number of clock cycles, the cable tester 20 declares a perfectly terminated cable. In one exemplary embodiment, the predetermined number of clock cycles is 33.
The cable status is determined by comparing the amplitude and distance of reflection to the lookup table 56 based on the type of cable being tested. There are two adjustable thresholds for open and short circuit cable. The default open threshold is from the experimental data of refection amplitudes for CAT3 and CAT5 cable terminated with a first impedance value such as 333 Ohms. The default short circuit threshold is from the experimental data of refection amplitude of CAT3 and CAT5 cable that is terminated with a second impedance value such as 33 Ohms. Other impedance values may be employed for generating thresholds.
If the measured amplitude falls between open and short circuit thresholds, the cable status is declared normal. If the amplitude is above the open circuit threshold, the cable status is declared an open circuit. If the amplitude is below a short circuit threshold, the cable status is declared a short circuit. The cable status, reflection amplitude and cable length are stored and/or displayed.
Referring now to
Cables 314-1, 314-2, . . . , and 314-n can be connected to the switch 304 using connectors 318-1, 318-2, . . . , and 318-n, such as RJ-45 connectors or any other suitable connector type. The switch 304 can be connected to other network devices such as, but not limited to, computers, laptops, printers, fax machines, telephones and any other network device or network appliance.
In the embodiment shown in
Referring now to
Control determines whether the link associated with a current port is up in step 338. If not, control performs the cable test on the designated port in step 340. Control continues from step 340 or step 338 (if true) with step 342 where control determines whether all ports have been tested. If not, control continues with step 344, increments the port, and continues with step 338. If all ports are tested as determined in step 342, control displays the results for the tested port(s) in step 346 using the LEDs and control ends in step 348. If the network device 300 has only one port, steps 336, 342 and 344 can be skipped. As can be appreciated by skilled artisans, the cable test can be executed sequentially for each port as set forth above or simultaneously for all ports.
Referring now to
Referring now to
Pair A of a cable 362 communicates with a primary of a transformer 363. A secondary of the transformer 363 communicates with a selector switch 364, which selects either a receiver 365 or a filter 366. Pair B of the cable 362 communicates with a primary of a transformer 367. A secondary of the transformer 367 communicates with the selector switch 364, which selects either the transmitter 368 or the filter 366.
A load 371 and a controller 372 are connected across center taps of the primaries of the transformers 363 and 367. The load 371 includes, for example, the load of the receiver 365, the transmitter 368 and other circuits in the cable-powered POE device 351. The controller 372 controls the position of the selector switch 364. In a de-energized state or when power is not supplied over data the cable 362, the selector switch 364 connects the secondaries of the transformer 363 and 367 to the filter 366. Typically the filter 366 is a low-pass filter.
The controller 372 detects when the network device 350 supplies power to the cable 362. Since the load 371 is in parallel with the controller 372, power is also supplied to the load 371 at the same time as power is supplied to the controller 372. When power is supplied to the controller 372, the selector 364 is controlled to connect the secondary of the transformer 363 to the receiver 365 and the secondary of transformer 367 to the transmitter 368. At substantially the same time, power is supplied to the receiver 365, the transmitter 368 and the other circuits of cable-powered POE device 351. At this point, the cable-powered POE device 351 can begin autonegotiating with the network device 350.
The cutoff frequency of the low-pass filter 366 filters out fast link pulses (FLPs). Without the filter 366, when the POE 351 communicates with a non-POE enabled network device, the FLPs generated by the non-POE network device could be sent back to the non-POE network device. The non-POE network device may receive the FLPs that it sent and attempt to establish a link with itself or cause other problems. The filter 366 will also adversely impact the cable test. Thus, the network device 350 transmits test signals having pulse widths greater than FLPs, which will pass through the low-pass filter 352. Once the selector switch closes, the network device 350 performs cable testing.
For additional details concerning these and other POE devices, see “Method and Apparatus for Detecting and Supplying Power by a First Network Device to a Second Network Device”, U.S. patent application Ser. No. 10/098,865, filed Mar. 15, 2002, and “System and Method for Detecting A Device Requiring Power”, WO 01/11861, filed Aug. 11, 2000, which are both incorporated by reference in their entirety.
Referring now to
Referring now to
Referring now to
Referring now to
Referring now to
When testing, the CTM may optionally turn on, turn off, or blink one or more of the LEDs to designate that a cable test is occurring on the associated port. Each of the ports are tested one or more times sequentially, randomly or in any order. When the tests are complete, the network device indicates the results using the LEDs, for example as shown in
Those skilled in the art can now appreciate from the foregoing description that the broad teachings of the present invention can be implemented in a variety of forms. Therefore, while this invention has been described in connection with particular examples thereof, the true scope of the invention should not be so limited since other modifications will become apparent to the skilled practitioner upon a study of the drawings, the specification and the following claims.
This application is a divisional of U.S. patent application Ser. No. 10/331,221, filed Dec. 30, 2002, which is a continuation-in-part of U.S. patent application Ser. No. 10/165,467 filed Jun. 7, 2002, now U.S. Pat. No. 6,825,672. The disclosures of the above applications are incorporated herein by reference in their entirety.
| Number | Name | Date | Kind |
|---|---|---|---|
| 4914394 | Meyer | Apr 1990 | A |
| 5461318 | Borchert et al. | Oct 1995 | A |
| 6138080 | Richardson | Oct 2000 | A |
| 6198727 | Wakeley et al. | Mar 2001 | B1 |
| 6377640 | Trans | Apr 2002 | B1 |
| 6434716 | Johnson et al. | Aug 2002 | B1 |
| 6448899 | Thompson | Sep 2002 | B1 |
| 6522152 | Tonti et al. | Feb 2003 | B1 |
| 6694017 | Takada | Feb 2004 | B1 |
| 6728216 | Sterner | Apr 2004 | B1 |
| 6775529 | Roo | Aug 2004 | B1 |
| 6829223 | Richardson et al. | Dec 2004 | B1 |
| 20020124110 | Tanaka | Sep 2002 | A1 |
| Number | Date | Country |
|---|---|---|
| WO 0111861 | Feb 2001 | WO |
| WO 0111861 | Feb 2001 | WO |
| WO 0111861 | Feb 2001 | WO |
| Number | Date | Country | |
|---|---|---|---|
| Parent | 10331221 | Dec 2002 | US |
| Child | 11093101 | US |
| Number | Date | Country | |
|---|---|---|---|
| Parent | 10165467 | Jun 2002 | US |
| Child | 10331221 | US |