CN103780458A - Ethernet interface testing method and Ethernet interface testing system - Google Patents

Ethernet interface testing method and Ethernet interface testing system Download PDF

Info

Publication number
CN103780458A
CN103780458A CN201410009072.2A CN201410009072A CN103780458A CN 103780458 A CN103780458 A CN 103780458A CN 201410009072 A CN201410009072 A CN 201410009072A CN 103780458 A CN103780458 A CN 103780458A
Authority
CN
China
Prior art keywords
ethernet interface
interface
pattern
mdix
mdi
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410009072.2A
Other languages
Chinese (zh)
Other versions
CN103780458B (en
Inventor
张波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201410009072.2A priority Critical patent/CN103780458B/en
Publication of CN103780458A publication Critical patent/CN103780458A/en
Application granted granted Critical
Publication of CN103780458B publication Critical patent/CN103780458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an Ethernet interface testing method and an Ethernet interface testing system, relates to the field of interface testing and provides a solution to the problem that the Ethernet interface testing mechanism is not complete and insufficiency of the amplitude of a transmitting signal of an Ethernet interface cannot be discovered in the prior art. The method provided by the invention comprises the following steps: a first Ethernet interface closes the auto MDI-MDIX function thereof and is set to a MDI or MDIX mode; a second Ethernet interface opens the auto MDI-MDIX function thereof so as to adapt to a MDIX or MDI mode; the first Ethernet interface and the second Ethernet interface send a test signal to each other; and when the second Ethernet interface detects that the signal amplitude of the test signal sent by the first Ethernet interface is lower than a preset signal value or the first Ethernet interface detects that the signal amplitude of the test signal sent by the second Ethernet interface is lower than the preset signal value, the situation of signal amplitude insufficiency is displayed through a human-computer interaction interface. The Ethernet interface testing method and the Ethernet interface testing system of the invention are mainly used for interface testing.

Description

A kind of Ethernet interface method of testing and system
Technical field
Design interface field tests of the present invention, relates in particular to a kind of Ethernet interface method of testing and system.
Background technology
In the current network equipment, be widely used Ethernet interface.The common port definition of Ethernet interface as shown in Figure 1.Parallel model Media Interface Connector (medium dependent interface, MDI) is as shown in 101 of Fig. 1, and port one and port 2 are transmit port, and port 3 and port 6 are receiving port; Cross-mode Media Interface Connector (medium dependent interface cross-over, MDIX) is as shown in 102 of Fig. 1, and port one and port 2 are receiving port, and port 3 and port 6 are transmit port.Existing Ethernet interface generally has auto MDI-MDIX (MDI/MDIX self adaptation) function, in the time carrying out Ethernet interface test, two Ethernet interfaces are selected respectively MDI and MDIX, and send by the TX port of self request of negotiation to opposite end, receive the negotiation request of opposite end by RX port simultaneously.If successfully receive the negotiation request of opposite end, be fixed as present mode (MDI or MDIX) by receiving the port of consulting to ask in opposite end, if do not receive the request of negotiation, exchange MDI or MDIX pattern.Suppose that Ethernet interface 1 is adapted to MDI pattern by auto MDI-MDIX function, Ethernet interface 2 is adapted to MDIX pattern by auto MDI-MDIX function, if the transmitted signal amplitude deficiency of Ethernet interface 1, Ethernet interface 2 can not normally receive, and cause connecting thereby fail to consultations.Now Ethernet interface 2 sends signal owing to can not receiving Ethernet interface 1, to first change own role (entering MDI pattern) transmitted signal, Ethernet interface 1 can not receive the signal that changes Ethernet interface 2 after role, also change own role (entering MDIX pattern), send signal, after after change role, Ethernet interface 1 receives change role, Ethernet interface 2 sends signal.When Ethernet interface 2 receives that changing role's Ethernet interface 1 sends signal, two port successful connections.
In the implementation procedure of such scheme, although latter two Ethernet interface successful connection, but the test for Ethernet interface is also imperfect, do not expose the problem of the transmitted signal amplitude deficiency of Ethernet interface 1, be therefore badly in need of more fully Ethernet interface testing scheme of one.
Summary of the invention
Embodiments of the invention provide the method and system of a kind of Ethernet interface test, imperfect for solving the testing mechanism of prior art Ethernet interface, can not find the problem of the transmitted signal amplitude deficiency of Ethernet interface.
For achieving the above object, embodiments of the invention adopt following technical scheme:
On the one hand, the embodiment of the present invention provides a kind of Ethernet interface method of testing, and for Ethernet interface group, described Ethernet interface group comprises that the first Ethernet interface and second is with too interface of net, described the first Ethernet interface is connected by netting twine with described the second Ethernet interface, and described method comprises:
Described the first Ethernet interface is closed self auto MDI-MDIX function, and described the first Ethernet interface is set is MDI or MDIX pattern;
Described the second Ethernet interface is opened self auto MDI-MDIX function, to be adapted to MDIX pattern or MDI pattern;
Described the first Ethernet interface and described the second Ethernet interface send test massage mutually;
The signal amplitude that the signal amplitude that the test signal that described the first Ethernet interface sends detected when described the second Ethernet interface detects lower than preset signals value or described the first Ethernet interface the test signal that described the second Ethernet interface sends is during lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
On the other hand, the embodiment of the present invention also provides a kind of Ethernet interface method of testing, for Ethernet interface group, described Ethernet interface group comprises the first Ethernet interface and the second Ethernet interface, described the first Ethernet interface is connected by Straight-Through Cable with described the second Ethernet interface, and described method comprises:
Described the first Ethernet interface is closed self auto MDI-MDIX function, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern;
Described the second Ethernet interface is closed self auto MDI-MDIX function, self is set to MDI and patterns different from described the first Ethernet interface in MDIX pattern;
Described the first Ethernet interface and described the second Ethernet interface send test massage mutually;
The signal amplitude that the test signal that described the first Ethernet interface sends detected when described the second Ethernet interface detects that lower than preset signals value or described the first Ethernet interface the signal of the test signal that described the second Ethernet interface sends is auxiliary during lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
On the other hand, the embodiment of the present invention also provides a kind of method of Ethernet interface test, for Ethernet interface group, described Ethernet interface group comprises the first Ethernet interface and the second Ethernet interface, described the first Ethernet interface is connected by crossover network cables with described the second Ethernet interface, and described method comprises:
Described the first Ethernet interface is closed self auto MDI-MDIX function, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern;
Described the second Ethernet interface is closed self auto MDI-MDIX function, self is set to MDI and pattern identical with described the first Ethernet interface in MDIX pattern;
Described the first Ethernet interface and described the second Ethernet interface send test massage mutually;
The signal amplitude that the test signal that described the first Ethernet interface sends detected when described the second Ethernet interface detects that lower than preset signals value or described the first Ethernet interface the signal of the test signal that described the second Ethernet interface sends is auxiliary during lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
On the other hand, the embodiment of the present invention also provides a kind of system of Ethernet interface test, comprise the first Ethernet interface and the second Ethernet interface, described the first Ethernet interface is connected by netting twine with described the second Ethernet interface, described the first Ethernet interface comprises the first control module and first interface device, described the second Ethernet interface comprises the second control module and the second interface device, and described the first Ethernet interface is connected respectively human-computer interaction interface with the second Ethernet interface
Described the first control module is for closing the auto MDI-MDIX function of described the first Ethernet interface, and described the first Ethernet interface is set is MDI or MDIX pattern;
Described the second control module is for opening the auto MDI-MDIX function of described the second Ethernet interface, to be adapted to MDIX pattern or MDI pattern;
Described first interface device is for sending test massage to described the second Ethernet interface;
Described the second interface device is for sending test massage to described the first Ethernet interface;
Described human-computer interaction interface detects described the second Ethernet interface transmission lower than described preset signals value or described the first Ethernet interface signal amplitude of test signal for the test signal amplitude that described the first Ethernet interface detected when described the second Ethernet interface and send is during lower than preset signals value, the situation of display amplitude deficiency.
On the other hand, the embodiment of the present invention also provides a kind of system of Ethernet interface test, comprise the first Ethernet interface and the second Ethernet interface, described the first Ethernet interface is connected by Straight-Through Cable with described the second Ethernet interface, described the first Ethernet interface comprises the first control module and first interface device, described the second Ethernet interface comprises the second control module and the second interface device, and described the first Ethernet interface is connected respectively human-computer interaction interface with the second Ethernet interface
Described the first control module is for closing the auto MDI-MDIX function of described the first Ethernet interface, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern;
Described the second control module is used for closing self auto MDI-MDIX function, and described the second Ethernet interface is set to MDI and patterns different from described the first Ethernet interface in MDIX pattern;
Described first interface device is for sending test massage to described the second Ethernet interface;
Described the second interface device is for sending test massage to described the first Ethernet interface;
Described human-computer interaction interface detects described the second Ethernet interface transmission lower than described preset signals value or described the first Ethernet interface signal amplitude of test signal for the test signal amplitude that described the first Ethernet interface detected when described the second Ethernet interface and send is during lower than preset signals value, the situation of display amplitude deficiency.
On the other hand, the embodiment of the present invention also provides a kind of system of Ethernet interface test, comprise the first Ethernet interface and the second Ethernet interface, described the first Ethernet interface is connected by crossover network cables with described the second Ethernet interface, described the first Ethernet interface comprises the first control module and first interface device, described the second Ethernet interface comprises the second control module and the second interface device, and described the first Ethernet interface is connected respectively human-computer interaction interface with the second Ethernet interface
Described the first control module is for closing the auto MDI-MDIX function of described the first Ethernet interface, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern;
Described the second control module is used for closing self auto MDI-MDIX function, and described the second Ethernet interface is set to MDI and pattern identical with described the first Ethernet interface in MDIX pattern;
Described first interface device is for sending test massage to described the second Ethernet interface;
Described the second interface device is for sending test massage to described the first Ethernet interface;
Described human-computer interaction interface detects described the second Ethernet interface transmission lower than described preset signals value or described the first Ethernet interface signal amplitude of test signal for the test signal amplitude that described the first Ethernet interface detected when described the second Ethernet interface and send is during lower than preset signals value, the situation of display amplitude deficiency.
The embodiment of the present invention provides a kind of Ethernet interface method of testing and system, close the auto MDI-MDIX function of the first Ethernet interface, and described the first Ethernet interface is set is MDI or MDIX pattern, and the auto MDI-MDIX function of opening the second Ethernet interface, or the second Ethernet interface is set to MDI and patterns different/identical from described the first Ethernet interface in MDIX pattern, between the first Ethernet interface and the second Ethernet interface, mutually send test massage afterwards, signal amplitude during lower than preset signals value by the situation of human-computer interaction interface display amplitude deficiency.The first Ethernet interface and the second Ethernet interface can automatically not changed transmitting-receiving role because of auto MDI-MDIX function in the time that signal amplitude is not enough thus, and the not enough problem of transmitted signal of Ethernet interface can be found in time.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic diagram of Ethernet interface;
The flow chart of a kind of Ethernet interface method of testing that Fig. 2 provides for the embodiment of the present invention;
The flow chart of the another kind of Ethernet interface method of testing that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 a to Fig. 4 d is two schematic diagrames that Ethernet interface connects by netting twine;
The flow chart of the another kind of Ethernet interface method of testing that Fig. 5 provides for the embodiment of the present invention;
The flow chart of the another kind of Ethernet interface method of testing that Fig. 6 provides for the embodiment of the present invention;
The composition frame chart of the system of a kind of Ethernet interface test that Fig. 7 provides for the embodiment of the present invention;
Fig. 8 forms to Ethernet interface the schematic diagram describing in the embodiment of the present invention;
Fig. 9 is the composition frame chart of the system of another kind of Ethernet interface test in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of Ethernet interface method of testing, and as shown in Figure 2, the method comprises:
201, the first Ethernet interface is closed self auto MDI-MDIX function, and the first Ethernet interface is set is MDI or MDIX pattern.
Wherein the first Ethernet interface and the second Ethernet interface Ethernet interface group that partners.The first Ethernet interface and described the second Ethernet interface are connected by the netting twine jockey of netting twine effect (or have).
202, the second Ethernet interface is opened self auto MDI-MDIX function, is adapted to MDIX pattern or MDI pattern.
Concrete, suppose that the first Ethernet interface is set to MDI(or MDIX) pattern, the second Ethernet interface, in the situation that opening auto MDI-MDIX function, will be adapted to MDI (or MDIX) pattern.
203, between the first Ethernet interface and the second Ethernet interface, mutually send test massage.
Concrete, connection data source on each Ethernet interface, provides test signal by data source for the first Ethernet interface and the second Ethernet interface.
204, in the time that the second Ethernet interface detects that the signal amplitude of test signal that the first Ethernet interface sends is lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
After the not enough problem of transmitted signal is found, the self adaptation between the first Ethernet interface and the second Ethernet interface consults to stop.And in prior art in the time that the second Ethernet interface can not normally receive test signal, exchange transmitting-receiving role has been continued negotiation by both sides.This causes the problem of the test signal amplitude deficiency of the first Ethernet interface transmission to be left in the basket.
Test signal amplitude deficiency is owing to occurring between the physical layer block of the first Ethernet interface and interface device that single line loose contact causes.This not only causes the first Ethernet interface transmitted signal not reach preset signals value, and in the time receiving signal, if the network connectivity between interface is longer, also can cause receiving mistake.
Reference view Fig. 8, Fig. 8 comprises data source 81, Ethernet interface 82, Ethernet interface 83 and data source 84.Signal is sent to physical layer block 821 by data source 81, signal is through interface transformer 822, sent to the interface device 833 of Ethernet interface 83 by interface device 823, interface device 833 is passed to physical layer block 831 by the signal of reception through interface transformer 832, and physical layer block 831 detects this signal and whether reaches preset signals value.Data source 84 transmitted signal processes are similar.
205, in the time that the first Ethernet interface detects that the signal amplitude of test signal that the second Ethernet interface sends is lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
If send out mutually in test signal process and do not occur the situation of signal amplitude lower than preset signals value both sides, both sides consult successfully, can consult laggard row transfer of data.Need detect at data transmission procedure, if detect that packet loss and message content error rate are all lower than default error threshold, can think that the amplitude of signal is normal, can guarantee data normal transmission.If detect that packet loss and message content error rate exceed default error threshold, show the situation of data error by human-computer interaction interface, so that alert signal amplitude deficiency.
Further, after the flow process completing as shown in Figure 2, also proceed subsequent step, as shown in Figure 3, comprising:
301, the second Ethernet interface is closed self auto MDI-MDIX function, and the first Ethernet interface is set is MDI or MDIX pattern.
302, the first Ethernet interface is opened self auto MDI-MDIX function, is adapted to MDIX pattern or MDI pattern.
Concrete, suppose that the second Ethernet interface is set to MDI(or MDIX) pattern, the first Ethernet interface, in the situation that opening auto MDI-MDIX function, will be adapted to MDI (or MDIX) pattern.
303, between the second Ethernet interface and the first Ethernet interface, mutually send test massage.
304, in the time that the first Ethernet interface detects that the signal amplitude of test signal that the second Ethernet interface sends is lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
305, in the time that the second Ethernet interface detects that the signal amplitude of test signal that the first Ethernet interface sends is lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
If there is no signal amplitude, lower than the situation of preset signals value, is thought and is consulted successfully, can consult laggard row transfer of data.Need detect at data transmission procedure, if detect that packet loss and message content error rate are all lower than default error threshold, can think that the amplitude of signal, in normal condition, can guarantee data normal transmission.If detect that packet loss and message content error rate exceed default error threshold, show the situation of data error by human-computer interaction interface, undesired with alert signal amplitude.
By the step of above-mentioned Fig. 2 and Fig. 3, the mutual detection in a pair of Ethernet interface group between two Ethernet interfaces completes.
As previously mentioned, the first Ethernet interface and described the second Ethernet interface are connected by the netting twine jockey of netting twine effect (or have).Netting twine in the embodiment of the present invention can be Straight-Through Cable, can be also crossover network cables.Below the situation of Straight-Through Cable and crossover network cables is described.
As shown in Fig. 4 a, Ethernet interface 401 and the Ethernet interface 402 ether interface group that partners.If use Straight-Through Cable, and it (is that port one, 2 is transmit port that Ethernet interface 401 is set to MDI pattern, port 3,6 is receiving port), the second Ethernet interface is adapted to MDIX pattern (be that port one, 2 is receiving port, port 3,6 is transmit port) in the situation that opening auto MDI-MDIX function.
As shown in Figure 4 b, if using Straight-Through Cable and Ethernet interface 401 to be set to MDIX pattern (is that port one, 2 is receiving port, port 3,6 is transmit port), Ethernet interface 402 is adapted to MDI pattern (be that port one, 2 is transmit port, port 3,6 is receiving port) in the situation that opening auto MDI-MDIX function.
As shown in Fig. 4 c, if use crossover network cables and Ethernet interface 401 to be set to MDI pattern, Ethernet interface 402 is adapted to MDI pattern in the situation that opening auto MDI-MDIX function.
As shown in Fig. 4 d, if use crossover network cables and Ethernet interface 401 to be set to MDIX pattern, Ethernet interface 402 is adapted to MDIX pattern in the situation that opening auto MDI-MDIX function.
The embodiment of the present invention provides a kind of Ethernet interface method of testing, close the auto MDI-MDIX function of the first Ethernet interface, and described the first Ethernet interface is set is MDI or MDIX pattern, and the auto MDI-MDIX function of opening the second Ethernet interface, be adapted to MDI or MDIX pattern, between the first Ethernet interface and the second Ethernet interface, mutually send test massage, in the time that signal amplitude is not less than preset signals value, complete mutual negotiation, signal amplitude during lower than preset signals value by the situation of human-computer interaction interface display amplitude deficiency.The first Ethernet interface and the second Ethernet interface can not changed transmitting-receiving role because of auto MDI-MDIX function thus, and the not enough problem of transmitted signal of Ethernet interface can be found in time.
In addition, the embodiment of the present invention also provides a kind of Ethernet interface method of testing, as shown in Figure 5.Wherein, the first Ethernet interface and the second Ethernet interface are various is set in logical device which kind of pattern can be set in advance in Ethernet interface.In the situation that using Straight-Through Cable between the first Ethernet interface and the second Ethernet interface, if the first Ethernet interface is set to MDI(or MDIX) pattern, the second Ethernet pattern is set to MDIX(or MDI) pattern.
In the situation that using Straight-Through Cable, the method comprises:
501, the first Ethernet interface is closed self auto MDI-MDIX function, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern.
502, the second Ethernet interface is closed self auto MDI-MDIX function, self is set to MDI and patterns different from described the first Ethernet interface in MDIX pattern.
503, between the first Ethernet interface and the second Ethernet interface, mutually send test massage.
504, in the time that the second Ethernet interface detects that the signal amplitude of test signal that the first Ethernet interface sends is lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
After the not enough problem of transmitted signal is found, the self adaptation between the first Ethernet interface and the second Ethernet interface consults to stop.And in prior art in the time that the second Ethernet interface can not normally receive test signal, exchange transmitting-receiving role has been continued negotiation by both sides, this causes the problem of the test signal amplitude deficiency that the first Ethernet interface sends to be left in the basket.
505, in the time that the first Ethernet interface detects that the signal amplitude of test signal that the second Ethernet interface sends is lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
If send out mutually in test signal process and do not occur the situation of signal amplitude lower than preset signals value both sides, both sides consult successfully, can consult laggard row transfer of data.Need detect the data of transmitting-receiving at data transmission procedure, if detect that packet loss and message content error rate are all lower than default error threshold, can think that the amplitude of signal is normal, can guarantee data normal transmission.If detect that packet loss and message content error rate exceed default error threshold, show the situation of data error by human-computer interaction interface, so that alert signal amplitude deficiency.
In the situation that using crossover network cables, as shown in Figure 6, the method comprises:
601, the first Ethernet interface is closed self auto MDI-MDIX function, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern.
602, the second Ethernet interface is closed self auto MDI-MDIX function, self is set to MDI and pattern identical with described the first Ethernet interface in MDIX pattern.
603, the first Ethernet interface and described the second Ethernet interface send test massage mutually.
604, in the time that the second Ethernet interface detects that the signal amplitude of test signal that the first Ethernet interface sends is lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
605, in the time that the first Ethernet interface detects that the signal amplitude of test signal that the second Ethernet interface sends is lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
If send out mutually in test signal process and do not occur the situation of signal amplitude lower than preset signals value both sides, both sides consult successfully, can consult laggard row transfer of data.Need detect the data of transmitting-receiving at data transmission procedure, if detect that packet loss and message content error rate are all lower than default error threshold, can think that the amplitude of signal is normal, can guarantee data normal transmission.If detect that packet loss and message content error rate exceed default error threshold, show the situation of data error by human-computer interaction interface, so that alert signal amplitude deficiency.
By the step of execution graph 5 or Fig. 6, complete the test of a pair of Ethernet interface group.After step shown in Fig. 5 or Fig. 6 completes, exchange the role of the first Ethernet interface and the second Ethernet interface, re-execute the step of Fig. 5 or Fig. 6.For the equipment that has multiple Ethernet interfaces, every two Ethernet interfaces are all carried out above-mentioned steps, so just completed the test of Ethernet interface.
The embodiment of the present invention provides a kind of Ethernet interface method of testing, it is MDI or MDIX pattern that described the first Ethernet interface is set, be set to MDI or MDIX pattern according to situation second Ethernet interface of netting twine, between the first Ethernet interface and the second Ethernet interface, mutually send test massage, in the time that signal amplitude is not less than preset signals value, complete mutual negotiation, signal amplitude during lower than preset signals value by the situation of human-computer interaction interface display amplitude deficiency.The first Ethernet interface and the second Ethernet interface can not changed transmitting-receiving role because of auto MDI-MDIX function thus, and the not enough problem of transmitted signal of Ethernet interface can be found in time.
In addition, the embodiment of the present invention also provides a kind of system of Ethernet interface test, as shown in Figure 7, comprising: the first Ethernet interface 71, the second Ethernet interface 72 and human-computer interaction interface 73, wherein the first Ethernet interface 71 is connected by netting twine 74 with the second Ethernet interface 72.The first Ethernet interface 71 comprises the first control module 711 and first interface device 712; The second Ethernet interface 72 comprises the second control module 721 and the second interface device 722.The first Ethernet interface 71 is connected respectively human-computer interaction interface 73 with the second Ethernet interface 72.
The first control module 711 is for closing the auto MDI-MDIX function of the first Ethernet interface 71, and described the first Ethernet interface is set is MDI or MDIX pattern.
The second control module 721 is for opening the auto MDI-MDIX function of described the second Ethernet interface, to be adapted to MDIX pattern or MDI pattern.
First interface device 712 is for sending test massage to described the second Ethernet interface 72; The second interface device 722 is for sending test massage to described the first Ethernet 71 interfaces.
The signal amplitude that human-computer interaction interface 73 detects lower than described preset signals value or the first Ethernet interface 71 test signal that the second Ethernet interface 72 sends for the test signal amplitude that described the first Ethernet interface 71 detected when the second Ethernet interface 72 and send is during lower than preset signals value, the situation of display amplitude deficiency.
In the time that netting twine is Straight-Through Cable, if the first Ethernet interface 71 is set to MDI pattern, the second Ethernet interface 72 is adapted to MDIX pattern; If the first Ethernet interface 71 is set to MDIX pattern, the second Ethernet interface 72 is adapted to MDI pattern;
In the time that netting twine is crossover network cables, if the first Ethernet interface 71 is set to MDI pattern, the second Ethernet interface 72 is adapted to MDI pattern; If the first Ethernet interface 71 is set to MDIX pattern, the second Ethernet interface 72 is adapted to MDIX pattern.
The embodiment of the present invention provides a kind of system of Ethernet interface test, close the auto MDI-MDIX function of the first Ethernet interface, and described the first Ethernet interface is set is MDI or MDIX pattern, and the auto MDI-MDIX function of opening the second Ethernet interface, be adapted to MDI or MDIX pattern, between the first Ethernet interface and the second Ethernet interface, mutually send test massage, in the time that being not less than preset signals value, signal amplitude completes mutual negotiation, signal amplitude during lower than preset signals value by the situation of human-computer interaction interface display amplitude deficiency.The first Ethernet interface and the second Ethernet interface can not changed transmitting-receiving role because of auto MDI-MDIX function thus, and the not enough problem of transmitted signal of Ethernet interface can be found in time.
In addition the embodiment of the present invention also provides the system of another kind of Ethernet interface test, comprises the first Ethernet interface 71, the second Ethernet interface 72, human-computer interaction interface 73.The first Ethernet interface 71 comprises that the first control module 711 and first interface device 712, the second Ethernet interfaces 72 comprise the second control module 721 and the second interface device 722.
In a kind of situation, if the first Ethernet interface 71 is connected by Straight-Through Cable with the second Ethernet interface 72, the first control module 711 is for closing the auto MDI-MDIX function of the first Ethernet interface 71, and described the first Ethernet interface 71 is set for any one pattern in MDI or MDIX pattern; The second control module 721, for closing self auto MDI-MDIX function, is set to patterns different from described the first Ethernet interface 71 in MDI and MDIX pattern by the second Ethernet interface 72.
In another kind of situation, if the first Ethernet interface 71 is connected by crossover network cables with the second Ethernet interface 72, the first control module 711 is for closing the auto MDI-MDIX function of the first Ethernet interface 71, and described the first Ethernet interface 71 is set for any one pattern in MDI or MDIX pattern; The second control module 721, for closing self auto MDI-MDIX function, is set to pattern identical with described the first Ethernet interface 71 in MDI and MDIX pattern by the second Ethernet interface 72.
Described first interface device 711 is for sending test massage to described the second Ethernet interface 72;
Described the second interface device 721 is for sending test massage to described the first Ethernet interface 71;
The signal amplitude that described human-computer interaction interface 73 detects lower than described preset signals value or described the first Ethernet interface 71 test signal that described the second Ethernet interface 72 sends for the test signal amplitude that described the first Ethernet interface 71 detected when described the second Ethernet interface 72 and send is during lower than preset signals value, the situation of display amplitude deficiency.
Optionally, in another kind of implementation of the present invention, as shown in Figure 9, described system also comprises detection module 75, for described data are detected.
First interface device 712 sends data to described the second Ethernet interface 72, and the second interface device 722 sends data to described the first Ethernet interface 71.Described detection module 75 judges by detecting data whether packet loss and message content error rate exceed default error threshold.
In the time that packet loss and message content error rate exceed default error threshold, described human-computer interaction interface 73 shows the situation of data error.
The embodiment of the present invention provides a kind of system of Ethernet interface test, it is MDI or MDIX pattern that described the first Ethernet interface is set, be set to MDI or MDIX pattern according to situation second Ethernet interface of netting twine, between the first Ethernet interface and the second Ethernet interface, mutually send test massage, in the time that signal amplitude is not less than preset signals value, complete mutual negotiation, signal amplitude during lower than preset signals value by the situation of human-computer interaction interface display amplitude deficiency.The first Ethernet interface and the second Ethernet interface can not changed transmitting-receiving role because of auto MDI-MDIX function thus, and the not enough problem of transmitted signal of Ethernet interface can be found in time.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computer, hard disk or CD etc., comprise that some instructions are in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (10)

1. an Ethernet interface method of testing, for Ethernet interface group, described Ethernet interface group comprises that the first Ethernet interface and second is with too interface of net, and described the first Ethernet interface is connected by netting twine with described the second Ethernet interface, it is characterized in that, described method comprises:
Described the first Ethernet interface is closed self auto MDI-MDIX function, and described the first Ethernet interface is set is MDI or MDIX pattern;
Described the second Ethernet interface is opened self auto MDI-MDIX function, to be adapted to MDIX pattern or MDI pattern;
Described the first Ethernet interface and described the second Ethernet interface send test massage mutually;
The signal amplitude that the signal amplitude that the test signal that described the first Ethernet interface sends detected when described the second Ethernet interface detects lower than preset signals value or described the first Ethernet interface the test signal that described the second Ethernet interface sends is during lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
2. method according to claim 1, is characterized in that, in the time that described netting twine is Straight-Through Cable, if described the first Ethernet interface is set to MDI pattern, described the second Ethernet interface is adapted to MDIX pattern; If described the first Ethernet is set to MDIX pattern, described the second Ethernet interface is adapted to MDI pattern;
In the time that described netting twine is crossover network cables, if described the first Ethernet interface is set to MDI pattern, described the second Ethernet interface is adapted to MDI pattern; If described the first Ethernet is set to MDIX pattern, described the second Ethernet interface is adapted to MDIX pattern.
3. an Ethernet interface method of testing, for Ethernet interface group, described Ethernet interface group comprises that the first Ethernet interface and second is with too interface of net, and described the first Ethernet interface is connected by Straight-Through Cable with described the second Ethernet interface, it is characterized in that, described method comprises:
Described the first Ethernet interface is closed self auto MDI-MDIX function, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern;
Described the second Ethernet interface is closed self auto MDI-MDIX function, self is set to MDI and patterns different from described the first Ethernet interface in MDIX pattern;
Described the first Ethernet interface and described the second Ethernet interface send test massage mutually;
The signal amplitude that the test signal that described the first Ethernet interface sends detected when described the second Ethernet interface detects that lower than preset signals value or described the first Ethernet interface the signal of the test signal that described the second Ethernet interface sends is auxiliary during lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
4. an Ethernet interface method of testing, for Ethernet interface group, described Ethernet interface group comprises the first Ethernet interface and the second Ethernet interface, and described the first Ethernet interface is connected by crossover network cables with described the second Ethernet interface, it is characterized in that, described method comprises:
Described the first Ethernet interface is closed self auto MDI-MDIX function, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern;
Described the second Ethernet interface is closed self auto MDI-MDIX function, self is set to MDI and pattern identical with described the first Ethernet interface in MDIX pattern;
Described the first Ethernet interface and described the second Ethernet interface send test massage mutually;
The signal amplitude that the test signal that described the first Ethernet interface sends detected when described the second Ethernet interface detects that lower than preset signals value or described the first Ethernet interface the signal of the test signal that described the second Ethernet interface sends is auxiliary during lower than preset signals value, by the situation of human-computer interaction interface display amplitude deficiency.
5. according to the method described in claim 1,3 or 4, it is characterized in that, also comprise:
In the time that described the second Ethernet interface detects that the signal amplitude of test signal that described the first Ethernet interface sends is not less than signal amplitude that preset signals value and described the first Ethernet interface detect the test signal that described the second Ethernet interface sends lower than preset signals value, between described the first Ethernet interface and described the second Ethernet interface, carry out transfer of data;
Described data are detected;
If detect, packet loss and message content error rate exceed default error threshold, show the situation of data error by human-computer interaction interface.
6. the system of an Ethernet interface test, comprise the first Ethernet interface and the second Ethernet interface, described the first Ethernet interface is connected by netting twine with described the second Ethernet interface, it is characterized in that, described the first Ethernet interface comprises the first control module and first interface device, described the second Ethernet interface comprises the second control module and the second interface device, and described the first Ethernet interface is connected respectively human-computer interaction interface with the second Ethernet interface
Described the first control module is for closing the auto MDI-MDIX function of described the first Ethernet interface, and described the first Ethernet interface is set is MDI or MDIX pattern;
Described the second control module is for opening the auto MDI-MDIX function of described the second Ethernet interface, to be adapted to MDIX pattern or MDI pattern;
Described first interface device is for sending test massage to described the second Ethernet interface;
Described the second interface device is for sending test massage to described the first Ethernet interface;
Described human-computer interaction interface detects described the second Ethernet interface transmission lower than described preset signals value or described the first Ethernet interface signal amplitude of test signal for the test signal amplitude that described the first Ethernet interface detected when described the second Ethernet interface and send is during lower than preset signals value, the situation of display amplitude deficiency.
7. system according to claim 6, is characterized in that, in the time that described netting twine is Straight-Through Cable, if described the first Ethernet interface is set to MDI pattern, described the second Ethernet interface is adapted to MDIX pattern; If described the first Ethernet interface is set to MDIX pattern, described the second Ethernet interface is adapted to MDI pattern;
In the time that described netting twine is crossover network cables, if described the first Ethernet interface is set to MDI pattern, described the second Ethernet interface is adapted to MDI pattern; If described the first Ethernet interface is set to MDIX pattern, described the second Ethernet interface is adapted to MDIX pattern.
8. the system of an Ethernet interface test, comprise the first Ethernet interface and the second Ethernet interface, described the first Ethernet interface is connected by Straight-Through Cable with described the second Ethernet interface, it is characterized in that, described the first Ethernet interface comprises the first control module and first interface device, described the second Ethernet interface comprises the second control module and the second interface device, and described the first Ethernet interface is connected respectively human-computer interaction interface with the second Ethernet interface
Described the first control module is for closing the auto MDI-MDIX function of described the first Ethernet interface, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern;
Described the second control module is used for closing self auto MDI-MDIX function, and described the second Ethernet interface is set to MDI and patterns different from described the first Ethernet interface in MDIX pattern;
Described first interface device is for sending test massage to described the second Ethernet interface;
Described the second interface device is for sending test massage to described the first Ethernet interface;
Described human-computer interaction interface detects described the second Ethernet interface transmission lower than described preset signals value or described the first Ethernet interface signal amplitude of test signal for the test signal amplitude that described the first Ethernet interface detected when described the second Ethernet interface and send is during lower than preset signals value, the situation of display amplitude deficiency.
9. the system of an Ethernet interface test, comprise the first Ethernet interface and the second Ethernet interface, described the first Ethernet interface is connected by crossover network cables with described the second Ethernet interface, it is characterized in that, described the first Ethernet interface comprises the first control module and first interface device, described the second Ethernet interface comprises the second control module and the second interface device, and described the first Ethernet interface is connected respectively human-computer interaction interface with the second Ethernet interface
Described the first control module is for closing the auto MDI-MDIX function of described the first Ethernet interface, and described the first Ethernet interface is set is any one pattern in MDI or MDIX pattern;
Described the second control module is used for closing self auto MDI-MDIX function, and described the second Ethernet interface is set to MDI and pattern identical with described the first Ethernet interface in MDIX pattern;
Described first interface device is for sending test massage to described the second Ethernet interface;
Described the second interface device is for sending test massage to described the first Ethernet interface;
Described human-computer interaction interface detects described the second Ethernet interface transmission lower than described preset signals value or described the first Ethernet interface signal amplitude of test signal for the test signal amplitude that described the first Ethernet interface detected when described the second Ethernet interface and send is during lower than preset signals value, the situation of display amplitude deficiency.
10. according to the system described in claim 6,8 or 9, it is characterized in that, described first interface device is for sending data to described the second Ethernet interface;
Described the second interface device is for sending data to described the first Ethernet interface;
Described system also comprises detection module, for described data are detected;
Described human-computer interaction interface also when detecting that when described detection module packet loss and message content error rate exceed default error threshold, shows the situation of data error.
CN201410009072.2A 2014-01-08 2014-01-08 Ethernet interface testing method and Ethernet interface testing system Active CN103780458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410009072.2A CN103780458B (en) 2014-01-08 2014-01-08 Ethernet interface testing method and Ethernet interface testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410009072.2A CN103780458B (en) 2014-01-08 2014-01-08 Ethernet interface testing method and Ethernet interface testing system

Publications (2)

Publication Number Publication Date
CN103780458A true CN103780458A (en) 2014-05-07
CN103780458B CN103780458B (en) 2017-02-08

Family

ID=50572321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410009072.2A Active CN103780458B (en) 2014-01-08 2014-01-08 Ethernet interface testing method and Ethernet interface testing system

Country Status (1)

Country Link
CN (1) CN103780458B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411359A (en) * 2016-11-08 2017-02-15 中车株洲电力机车研究所有限公司 Transceiver port correction method based on CPUs and CPUs of transceivers
CN110687363A (en) * 2018-07-04 2020-01-14 佛山市顺德区顺达电脑厂有限公司 SFP port test fixture
CN112383342A (en) * 2020-10-30 2021-02-19 中国人民解放军63920部队 Satellite communication link monitoring method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2847711Y (en) * 2005-11-16 2006-12-13 华为技术有限公司 Ethernet physical layer interface index detector
CN201985406U (en) * 2010-11-30 2011-09-21 苏州市职业大学 Multi-functional network wire connector
CN103139012A (en) * 2012-12-03 2013-06-05 深圳市共进电子股份有限公司 Ethernet port test method and network devices
CN103178992A (en) * 2011-12-22 2013-06-26 迈普通信技术股份有限公司 Ethernet passive optical network port self-adaptation achievement device and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2847711Y (en) * 2005-11-16 2006-12-13 华为技术有限公司 Ethernet physical layer interface index detector
CN201985406U (en) * 2010-11-30 2011-09-21 苏州市职业大学 Multi-functional network wire connector
CN103178992A (en) * 2011-12-22 2013-06-26 迈普通信技术股份有限公司 Ethernet passive optical network port self-adaptation achievement device and method
CN103139012A (en) * 2012-12-03 2013-06-05 深圳市共进电子股份有限公司 Ethernet port test method and network devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411359A (en) * 2016-11-08 2017-02-15 中车株洲电力机车研究所有限公司 Transceiver port correction method based on CPUs and CPUs of transceivers
CN110687363A (en) * 2018-07-04 2020-01-14 佛山市顺德区顺达电脑厂有限公司 SFP port test fixture
CN112383342A (en) * 2020-10-30 2021-02-19 中国人民解放军63920部队 Satellite communication link monitoring method, device and storage medium

Also Published As

Publication number Publication date
CN103780458B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
RU2739788C1 (en) Unidirectional data transmission concept
CN104618054B (en) Parameter regulation means and device
CN102318267A (en) Data communication method, communication equipment and communication system
US20190044760A1 (en) Technologies for optimizing transmitter equalization with high-speed retimer
CN108897647B (en) Test system, test method and device
CN102355380B (en) Hardware testing device and method for synchronous asynchronous serial interface
CN103986610A (en) Communication interface matching method, device and controller
CN103780458A (en) Ethernet interface testing method and Ethernet interface testing system
CN103731663B (en) The testing method of a kind of intelligent television and device
US9026713B2 (en) Expander for loop architectures
US8331429B2 (en) Apparatus and methods for improved high-speed communication systems
CN104184843B (en) Data forwarding apparatus and method
CN103905115B (en) Method and system for transmitting services between RRU and BBUs, and BBUs
US11175855B2 (en) Electronic device for communicating with host and operating method of the electronic device
CN106375110B (en) A kind of port training method and device
CN102724144B (en) Self-adaptive gateway device and data transmission method thereof
WO2016188482A1 (en) Detection method and apparatus
CN105049294A (en) Automatic testing method for port state switching of EAPS (Ethernet Automatic Protection Switching) protocol MASTER switch
CN107547265B (en) Port configuration method and device
US20100229041A1 (en) Device and method for expediting feedback on changes of connection status of monitioring equipments
CN104850522B (en) A kind of signal output method and device
CN113009246B (en) PSE device detection device and PSE device detection method
CN108200558A (en) A kind of Bluetooth pairing methods and device
CN105472481A (en) Intercommunication system and method
CN109981394B (en) Communication method and device based on enhanced CAN bus protocol analyzer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant