CN108833213B - Ethernet link detection method and device - Google Patents

Ethernet link detection method and device Download PDF

Info

Publication number
CN108833213B
CN108833213B CN201810890859.2A CN201810890859A CN108833213B CN 108833213 B CN108833213 B CN 108833213B CN 201810890859 A CN201810890859 A CN 201810890859A CN 108833213 B CN108833213 B CN 108833213B
Authority
CN
China
Prior art keywords
detection result
ethernet port
gigabit ethernet
detection
link
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.)
Active
Application number
CN201810890859.2A
Other languages
Chinese (zh)
Other versions
CN108833213A (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 CN201810890859.2A priority Critical patent/CN108833213B/en
Publication of CN108833213A publication Critical patent/CN108833213A/en
Application granted granted Critical
Publication of CN108833213B publication Critical patent/CN108833213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Abstract

The invention provides an Ethernet link detection method and device, belonging to the technical field of data communication, wherein a gigabit Ethernet port of a device to be detected is configured to be a hundred-megabyte full duplex mode, the working mode of the gigabit Ethernet port of the device to be detected is respectively configured to be a normal mode and a cross mode, the Ethernet link detection of the gigabit Ethernet port of the device to be detected is started when the working mode of the gigabit Ethernet port of the device to be detected is the normal mode and the cross mode, corresponding first detection result and second detection result are obtained, the Ethernet link detection result of the gigabit Ethernet port is obtained according to the first detection result and the second detection result, and the problem that Ethernet link data code streams influence link detection is avoided by the method, so that the accuracy of link detection is ensured to be realized when a network normally works.

Description

Ethernet link detection method and device
Technical Field
The invention belongs to the technical field of data communication, and particularly relates to an Ethernet link detection method and device
Background
Most ethernet PHY (physical layer) chips currently support an ethernet link detection function, which is based on issuing a detection code stream (e.g., a series of detection signals or a detection pulse), and then by issuing a signal amplitude and the time of the signal being sent back, the impedance of the line and the length of the line can be estimated approximately. Whether the Ethernet physical link installed in the actual engineering is abnormal or not can be judged.
The ethernet line we usually use usually includes 4 twisted pairs, and 1000M (gigabit) ethernet link will fully use these 4 twisted pairs, but in 1000M network, if the devices at both ends of the link are working normally, the success rate of detection is very low. The reason is that under the condition that the link is connected (link), the devices at both ends send data streams (such as idle) to maintain normal connection of the link. As shown in fig. 1, a schematic diagram of a network architecture applied to an ethernet link, where 4 twisted pairs used by the ethernet link are a twisted pair, a twisted pair C, and a twisted pair D, respectively, the device a and the device B are devices at two ends of the ethernet link, and ethernet ports of the device a and the device B are both in a 1000M operating mode, then under a condition that the links are normally connected (link), the ethernet port of the device a sends a data code stream to the ethernet port of the device B, and the ethernet port of the device B also sends a data code stream to the ethernet port of the device a, and these code streams are continuous; therefore, the 4 twisted pairs connected to the ethernet port of each device will receive and transmit data streams. If device a is to initiate an integrity check of the ethernet link, it must send a link check code stream over the 4 twisted pairs after the ethernet port of device a initiates the ethernet link check. However, since the device B does not know that the device a is transmitting the link integrity check code stream, the ethernet port of the device B always transmits the data code stream to the device a. Thus, the signal received by the ethernet port of the device a is the detection code stream reflected by the ethernet port of the device a + the data code stream sent by the ethernet port of the device B. Therefore, the device a cannot distinguish which data code streams are sent from the ethernet port of the device B from the received code streams, and which detection code streams are reflected back after the device a sends the detection code streams, which inevitably leads to failure of the device a in detecting the ethernet physical link.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting an Ethernet link, which are used for solving the problem that the Ethernet physical link detection fails when equipment at two ends of a link is in a connected (link) state under the working mode of an Ethernet port of the equipment in a 1000M (kilomega) network.
In a first aspect, an embodiment of the present invention provides an ethernet link detection method, where the method includes:
configuring a gigabit Ethernet port of equipment to be tested into a hundred-megabyte full duplex mode;
configuring a kilomega Ethernet port of the equipment to be tested as a first working mode;
controlling the equipment to be tested to start the Ethernet link detection of the kilomega Ethernet port and obtaining a first detection result;
configuring a kilomega Ethernet port of the equipment to be tested as a second working mode;
controlling the equipment to be tested to start the Ethernet link detection of the kilomega Ethernet port and obtain a second detection result;
and obtaining an Ethernet link detection result of the gigabit Ethernet port according to the first detection result and the second detection result.
Further, when the first working mode is a normal mode, the second working mode is a cross mode; and when the first working mode is a cross mode, the second working mode is a normal mode.
Further, the controlling the device under test to start the ethernet link detection of the gigabit ethernet port and obtain a first detection result includes:
and after the Ethernet LINK of the gigabit Ethernet port is communicated with the LINK, sending a detection starting command to the equipment to be detected, checking the detection result of 4 pairs of twisted pairs in the register of the gigabit Ethernet port, and taking the detection result of 3 pairs of twisted pairs without data code streams as a first detection result.
Further, the controlling the device under test to start the ethernet link detection of the gigabit ethernet port and obtain a second detection result includes:
and sending a detection starting command to the equipment to be detected, checking the detection result of the 4 twisted pairs in the register of the gigabit Ethernet port, and taking the detection result of the twisted pair which is not included in the first detection result as a second detection result.
Further, the ethernet link detection result is a detection result of 4 twisted pairs of the gigabit ethernet port.
In a second aspect, an embodiment of the present invention further provides an ethernet link detection apparatus, including:
the device comprises a configuration unit, a first working mode and a second working mode, wherein the configuration unit is used for configuring a gigabit Ethernet port of equipment to be tested into a hundred-megabyte full duplex mode and configuring the gigabit Ethernet port of the equipment to be tested into the first working mode;
the control unit is used for controlling the equipment to be tested to start the Ethernet link detection of the kilomega Ethernet port and obtain a first detection result;
the configuration unit is further configured to configure the gigabit ethernet port of the device under test to be in a second working mode;
the control unit is further configured to control the device under test to start an ethernet link detection of the gigabit ethernet port and obtain a second detection result;
and the result acquisition unit is used for acquiring the Ethernet link detection result of the gigabit Ethernet port according to the first detection result and the second detection result.
Further, when the first working mode is a normal mode, the second working mode is a cross mode; and when the first working mode is a cross mode, the second working mode is a normal mode.
Further, the control unit is specifically configured to: and after the Ethernet LINK of the gigabit Ethernet port is communicated with the LINK, sending a detection starting command to the equipment to be detected, checking the detection result of 4 pairs of twisted pairs in the register of the gigabit Ethernet port, and taking the detection result of 3 pairs of twisted pairs without data code streams as a first detection result.
Further, the control unit is further configured to: and sending a detection starting command to the equipment to be detected, checking the detection result of the 4 twisted pairs in the register of the gigabit Ethernet port, and taking the detection result of the twisted pair which is not included in the first detection result as a second detection result.
Further, the ethernet link detection result is a detection result of 4 twisted pairs of the gigabit ethernet port.
The Ethernet link detection method and the device provided by the invention configure the gigabit Ethernet port of the equipment to be detected into a hundred-megabyte full duplex mode, respectively configuring the working modes of the gigabit Ethernet port of the equipment to be detected as a first working mode and a second working mode, respectively starting the Ethernet link detection of the gigabit Ethernet port of the equipment to be detected under the condition that the working modes of the gigabit Ethernet port of the equipment to be detected are the first working mode and the second working mode, and obtaining a corresponding first detection result and a corresponding second detection result, and obtaining an Ethernet link detection result of the gigabit Ethernet port according to the first detection result and the second detection result, the method avoids the problem that the Ethernet link data code stream influences the link detection, thereby ensuring the accuracy of the link detection when the network normally works.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a network architecture for a prior art Ethernet link detection application;
fig. 2 is a flowchart of a method for detecting an ethernet link according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an ethernet link detection apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a 1000M ethernet network, there are 4 twisted pairs (a pair, B pair, C pair, and D pair) in a common twisted pair, and when the working mode of the ethernet ports of the devices at two ends of the twisted pair is in the 1000M network, and in combination with the network architecture diagram of the ethernet LINK detection application shown in fig. 1, under the condition of LINK connectivity (LINK), both the device a and the device B may use the 4 twisted pairs to send data streams to the other side. In order to avoid the problem that the data code stream affects the link detection, the device a is taken as a device to be tested for illustration, and the gigabit ethernet port of the device a is configured to be in a full duplex mode of 100M (hundred megabytes), at this time, the device a and the device B only transmit and receive the data code stream on the first 2 twisted pairs a and B of the 4 twisted pairs, and respectively configure the working mode of the gigabit ethernet port of the device a to be the normal mode and the cross mode, then, the ethernet link detection of the device a is started to obtain a corresponding first detection result and a second detection result respectively under the condition that the working mode of the gigabit ethernet port of the device a is the normal mode and the cross mode, and obtaining the Ethernet link detection result of the gigabit Ethernet port according to the first detection result and the second detection result, thereby avoiding the problem that the link detection is influenced by the data code stream.
As shown in fig. 2, an embodiment of the present invention provides an ethernet link detection method, where the method includes:
step 201, configuring the gigabit ethernet port of the device to be tested to be in a hundred-megabyte full duplex mode.
The description of this step is made with reference to fig. 1, where the device a is taken as a device to be tested, and a full duplex mode with a gigabit ethernet port of the device a being hundreds of megabytes is configured, so that after the ethernet LINK between the device a and the device B is connected to LINK, if the device a starts ethernet LINK detection, the device a and the device B only respectively receive and transmit data code streams on the first 2 twisted pairs a and B pairs of the 4 twisted pairs.
Step 202, configuring the gigabit ethernet port of the device under test as a first working mode.
In this step, the working mode of the gigabit ethernet port of the device a is configured as a normal mode, and then according to the ethernet protocol, the working mode of the gigabit ethernet port of the device B automatically negotiates as a cross mode, and if the device a starts ethernet link detection, the gigabit ethernet port of the device a sends a data code stream to the gigabit ethernet port of the device B through the a twisted pair of the first 2 twisted pairs, and receives the data code stream from the gigabit ethernet port of the device B through the B twisted pair of the first 2 twisted pairs; and the gigabit ethernet port of the device B receives the data code stream sent from the gigabit ethernet port of the device a through the a pair of twisted pairs, and sends the data code stream to the gigabit ethernet port of the device a through the B pair of twisted pairs. In this step, the working mode of the gigabit ethernet port of the device a may also be configured as the cross mode; then, in step 204, the working mode of the gigabit ethernet port of the device a needs to be configured to be the normal mode, specifically, the working mode of the gigabit ethernet port of the device a needs to be configured to be the normal mode or the cross mode, which is not limited herein.
Step 203, controlling the device to be tested to start the ethernet link detection of the gigabit ethernet port and obtain a first detection result.
With reference to step 202, in this step, the ethernet LINK detection of the device a is started, and after the ethernet LINK of the gigabit ethernet port of the device a is connected to LINK, a detection start command is sent to the device a to check the detection result of 4 pairs of twisted pairs in the register of the gigabit ethernet port of the device a, because when the working mode of the gigabit ethernet port of the device a is configured as a normal mode, the gigabit ethernet port of the device B only sends a data code stream to the gigabit ethernet port of the device a through the pair B of twisted pairs, which may affect the accuracy of the LINK detection result of the pair of twisted pairs, the detection results of the remaining 3 pairs (pair a, pair C, and pair D) of twisted pairs without the data code stream in the register of the gigabit ethernet port of the device a are used as the first detection result.
And 204, configuring the gigabit Ethernet port of the equipment to be tested to be in a second working mode.
When the working mode of the gigabit ethernet port of the device a is configured as the normal mode in step 202, in this step, the working mode of the gigabit ethernet port of the device a needs to be configured as the cross mode, then according to the ethernet protocol, the working mode of the gigabit ethernet port of the device B automatically negotiates as the normal mode, if the device a starts ethernet link detection, the gigabit ethernet port of the device a sends a data code stream to the gigabit ethernet port of the device B through the pair B of twisted pairs, and receives the data code stream from the gigabit ethernet port of the device B through the pair a of twisted pairs; and the gigabit ethernet port of the device B receives the data code stream from the gigabit ethernet port of the device a through the twisted pair a and the twisted pair B.
Step 205, controlling the device to be tested to start the ethernet link detection of the gigabit ethernet port and obtain a second detection result.
With reference to step 204, in this step, the ethernet LINK detection of the device a is started, after the ethernet LINK of the gigabit ethernet port of the device a is connected to LINK, a detection start command is sent to the device a, and a detection result of 4 pairs of twisted pairs in the register of the gigabit ethernet port of the device a is checked, because the gigabit ethernet port of the device a only receives a data code stream through the a pair of twisted pairs, accuracy of the LINK detection result is affected, and at this time, detection results of remaining 3 pairs (B pair, C pair, and D pair) of twisted pairs, which do not have a data code stream, in the register of the gigabit ethernet port of the device a are accurate, and because the first detection result already includes the detection results of the a pair, the C pair, and the D pair, a detection result of the B pair of twisted pairs, which is not included in the first detection result, is used as a second detection result.
And step 206, obtaining an ethernet link detection result of the gigabit ethernet port according to the first detection result and the second detection result.
In this step, the link detection result of the gigabit ethernet port 4 of the device a to the twisted pair can be obtained according to the first detection result (the detection result of the a pair, the C pair, and the D pair 3 to the twisted pair) in step 203 and the second detection result (the detection result of the B pair not included in step 203) in step 205.
According to the Ethernet link detection method provided by the embodiment of the invention, the gigabit Ethernet port of the equipment to be detected is configured to be in a hundred-megabyte full duplex mode, the working mode of the gigabit Ethernet port of the equipment to be detected is respectively configured to be in a normal mode and a cross mode, the Ethernet link detection of the gigabit Ethernet port of the equipment to be detected is started under the condition that the working mode of the gigabit Ethernet port of the equipment to be detected is in the normal mode and the cross mode, the corresponding first detection result and second detection result are obtained, the Ethernet link detection result of the gigabit Ethernet port is obtained by combining the first detection result and the second detection result, and the problem that Ethernet link data code streams influence link detection is avoided by the method, so that the accuracy of link detection is ensured to be realized when a network normally works.
An embodiment of the present invention further provides an ethernet link detection apparatus 30, as shown in fig. 3, including:
the configuration unit 301 is configured to configure a gigabit ethernet port of a device under test as a hundred-megabyte full duplex mode and configure the gigabit ethernet port of the device under test as a first working mode.
With reference to fig. 1, a device a is taken as a device to be tested, and a configuration unit 301 configures a full duplex mode in which a gigabit ethernet port of the device a is hundreds of megabytes, so that after an ethernet LINK between the device a and the device B is connected to LINK, if the device a starts ethernet LINK detection, the device a and the device B only respectively transmit and receive data streams on the first 2 twisted pairs a and B pairs of 4 twisted pairs, and simultaneously configure a working mode of the gigabit ethernet port of the device a, when the working mode of the gigabit ethernet port of the device a is configured as a normal mode, according to an ethernet protocol, the working mode of the gigabit ethernet port of the device B automatically negotiates as a cross mode, and if the device a starts ethernet LINK detection, the gigabit ethernet port of the device a sends a data streams to the gigabit ethernet port of the twisted pair B through the a pair a of the first 2 twisted pairs, receiving a data code stream from a gigabit Ethernet port of equipment B through a B pair twisted pair in the first 2 pairs of twisted pairs; the gigabit Ethernet port of the device B receives a data code stream sent by the gigabit Ethernet port of the device A through the twisted pair A, and sends the data code stream to the gigabit Ethernet port of the device A through the twisted pair B; the working mode of the gigabit ethernet port of the device a may also be configured to be a cross mode, and then according to an ethernet protocol, the working mode of the gigabit ethernet port of the device B may automatically negotiate to be a normal mode, and if the device a starts ethernet link detection, the gigabit ethernet port of the device a sends a data code stream to the gigabit ethernet port of the device B through the pair B twisted pair, and receives the data code stream from the gigabit ethernet port of the device B through the pair a twisted pair; the gigabit ethernet port of the device B receives the data code stream sent from the gigabit ethernet port of the device a through the twisted pair a, and receives the data code stream sent from the gigabit ethernet port of the device a through the twisted pair B, specifically, the working mode of the gigabit ethernet port of the device a is configured to be the normal mode or the cross mode, which is not limited specifically here.
A control unit 302, configured to control the device under test to start the ethernet link detection of the gigabit ethernet port and obtain a first detection result.
After the ethernet LINK of the gigabit ethernet port of the device a is connected to LINK, and when the working mode of the gigabit ethernet port of the device a is the normal mode, the control unit 302 sends a detection start command to the device a, and checks the detection result of 4 pairs of twisted pairs in the register of the gigabit ethernet port of the device a, because the gigabit ethernet port of the device B only sends a data stream to the gigabit ethernet port of the device a through the pair B of twisted pairs at this time, which may affect the accuracy of the LINK detection result of the pair of twisted pairs, the detection result of the remaining 3 pairs (the pair a, the pair C, and the pair D) of twisted pairs without the data stream in the register of the gigabit ethernet port of the device a is used as the first detection result.
The configuration unit 301 is further configured to configure the gigabit ethernet port of the device under test to be in the second working mode.
After configuring that the working mode of the gigabit ethernet port of the device a is a normal mode and the control unit 302 controls the device a to start the ethernet link detection of the gigabit ethernet port of the device a and obtain the first detection result (the detection result of the twisted pairs of 3 pairs of a, C, and D), the configuration unit 301 reconfigures that the working mode of the gigabit ethernet port of the device a is a cross mode, and then according to the ethernet protocol, the working mode of the gigabit ethernet port of the device B automatically negotiates as the normal mode, and if the device a starts the ethernet link detection, the gigabit ethernet port of the device a sends a data code stream to the gigabit ethernet port of the device B through the twisted pair B, and receives the data code stream from the gigabit ethernet port of the device B through the twisted pair a; and the gigabit ethernet port of the device B receives the data code stream from the gigabit ethernet port of the device a through the twisted pair a and the twisted pair B.
The control unit 302 is further configured to control the device under test to start the ethernet link detection of the gigabit ethernet port and obtain a second detection result.
After the ethernet LINK of the gigabit ethernet port of the device a is connected to LINK, and when the working mode of the gigabit ethernet port of the device a is the cross mode, the control unit 302 sends a detection start command to the device a, and checks the detection result of 4 pairs of twisted pairs in the register of the gigabit ethernet port of the device a, because the gigabit ethernet port of the device a only receives a data code stream through the a pair of twisted pairs at this time, the accuracy of the LINK detection result may be affected, and at this time, the detection result of the remaining 3 pairs (B pair, C pair, and D pair) of twisted pairs without the data code stream in the register of the gigabit ethernet port of the device a is accurate, and because the detection result of the a pair, C pair, and D pair is already included in the first detection result, the detection result of the B pair of twisted pairs that is not included in the first detection result is taken as the second detection result.
A result obtaining unit 303, configured to obtain an ethernet link detection result of the gigabit ethernet port according to the first detection result and the second detection result.
The result obtaining unit 303 may obtain a link detection result of the gigabit ethernet port 4 of the device a for the twisted pair according to the first detection result (the detection result of the a pair, the C pair, and the D pair 3 for the twisted pair) and the second detection result (the detection result of the B pair twisted pair not included in the first detection result).
In the ethernet link detection apparatus provided in the embodiment of the present invention, the configuration unit configures the gigabit ethernet port of the device under test into the hundred-megabyte full-duplex mode and configures the working mode of the gigabit ethernet port of the device under test into the normal mode and the cross mode, the control unit starts the ethernet link detection of the gigabit ethernet port of the device under test and obtains a corresponding first detection result and a second detection result respectively under the condition that the working mode of the gigabit ethernet port of the device under test is the normal mode and the cross mode, the result obtaining unit obtains the ethernet link detection result of the gigabit ethernet port by combining the first detection result and the second detection result, the method avoids the problem that the Ethernet link data code stream influences the link detection, thereby ensuring the accuracy of the link detection when the network normally works.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. An ethernet link detection method, the method comprising:
configuring a gigabit Ethernet port of equipment to be tested into a hundred-megabyte full duplex mode;
configuring a kilomega Ethernet port of the equipment to be tested as a first working mode;
controlling the equipment to be tested to start the Ethernet link detection of the kilomega Ethernet port and obtaining a first detection result;
wherein, the controlling the device to be tested to start the ethernet link detection of the gigabit ethernet port and obtain a first detection result includes:
after an Ethernet LINK of the gigabit Ethernet port is communicated with a LINK, sending a detection starting command to the equipment to be detected, checking the detection result of 4 pairs of twisted pairs in a register of the gigabit Ethernet port, and taking the detection result of 3 pairs of twisted pairs without data code streams as a first detection result;
configuring a kilomega Ethernet port of the equipment to be tested as a second working mode;
controlling the equipment to be tested to start the Ethernet link detection of the kilomega Ethernet port and obtain a second detection result;
obtaining an Ethernet link detection result of the gigabit Ethernet port according to the first detection result and the second detection result;
wherein, the controlling the device to be tested to start the ethernet link detection of the gigabit ethernet port and obtain a second detection result includes:
and sending a detection starting command to the equipment to be detected, checking the detection result of the 4 twisted pairs in the register of the gigabit Ethernet port, and taking the detection result of the twisted pair which is not included in the first detection result as a second detection result.
2. The method of claim 1, wherein when the first operating mode is a normal mode, the second operating mode is a cross mode; and when the first working mode is a cross mode, the second working mode is a normal mode.
3. The method of claim 1 or 2, wherein the Ethernet link detection result is a detection result of 4 twisted pairs of the gigabit Ethernet port.
4. An ethernet link detection apparatus, comprising:
the device comprises a configuration unit, a first working mode and a second working mode, wherein the configuration unit is used for configuring a gigabit Ethernet port of equipment to be tested into a hundred-megabyte full duplex mode and configuring the gigabit Ethernet port of the equipment to be tested into the first working mode;
the control unit is used for controlling the equipment to be tested to start the Ethernet link detection of the kilomega Ethernet port and obtain a first detection result; wherein, the controlling the device to be tested to start the ethernet link detection of the gigabit ethernet port and obtain a first detection result includes:
after an Ethernet LINK of the gigabit Ethernet port is communicated with a LINK, sending a detection starting command to the equipment to be detected, checking the detection result of 4 pairs of twisted pairs in a register of the gigabit Ethernet port, and taking the detection result of 3 pairs of twisted pairs without data code streams as a first detection result;
the configuration unit is further configured to configure the gigabit ethernet port of the device under test to be in a second working mode;
the control unit is further configured to control the device under test to start an ethernet link detection of the gigabit ethernet port and obtain a second detection result; wherein, the controlling the device to be tested to start the ethernet link detection of the gigabit ethernet port and obtain a second detection result includes:
sending a detection starting command to the equipment to be detected, checking the detection result of 4 pairs of twisted pairs in a register of the gigabit Ethernet port, and taking the detection result of the pair of twisted pairs which is not included in the first detection result as a second detection result;
and the result acquisition unit is used for acquiring the Ethernet link detection result of the gigabit Ethernet port according to the first detection result and the second detection result.
5. The apparatus of claim 4, wherein the configuration unit is specifically configured to: when the first working mode is a normal mode, the second working mode is a cross mode; and when the first working mode is a cross mode, the second working mode is a normal mode.
6. The apparatus according to claim 4 or 5, wherein the control unit is specifically configured to:
and after the Ethernet LINK of the gigabit Ethernet port is communicated with the LINK, sending a detection starting command to the equipment to be detected, checking the detection result of 4 pairs of twisted pairs in the register of the gigabit Ethernet port, and taking the detection result of 3 pairs of twisted pairs without data code streams as a first detection result.
7. The apparatus of claim 6, wherein the control unit is further to:
and sending a detection starting command to the equipment to be detected, checking the detection result of the 4 twisted pairs in the register of the gigabit Ethernet port, and taking the detection result of the twisted pair which is not included in the first detection result as a second detection result.
8. The apparatus of claim 4 or 5, wherein the Ethernet link detection result is a detection result of 4 twisted pairs of the gigabit Ethernet port.
CN201810890859.2A 2018-08-08 2018-08-08 Ethernet link detection method and device Active CN108833213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810890859.2A CN108833213B (en) 2018-08-08 2018-08-08 Ethernet link detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810890859.2A CN108833213B (en) 2018-08-08 2018-08-08 Ethernet link detection method and device

Publications (2)

Publication Number Publication Date
CN108833213A CN108833213A (en) 2018-11-16
CN108833213B true CN108833213B (en) 2022-02-22

Family

ID=64153669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810890859.2A Active CN108833213B (en) 2018-08-08 2018-08-08 Ethernet link detection method and device

Country Status (1)

Country Link
CN (1) CN108833213B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7308006B1 (en) * 2000-02-11 2007-12-11 Lucent Technologies Inc. Propagation and detection of faults in a multiplexed communication system
CN101304344A (en) * 2008-06-02 2008-11-12 信息产业部通信计量中心 Apparatus and method for calibrating time delay of network performance tester
CN101465769A (en) * 2009-01-16 2009-06-24 华中科技大学 Dynamic fault detection system for dual controller disk array
CN102546289A (en) * 2011-11-28 2012-07-04 曙光信息产业(北京)有限公司 Device and method for guaranteeing normal communication of Ethernet
CN202474445U (en) * 2012-03-14 2012-10-03 黑龙江电通自动化有限公司 100-Mbit Ethernet jumper network cable with cable tracking indicator lamp

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9014248B2 (en) * 2013-01-31 2015-04-21 Broadcom Corporation BASE-T common mode testing in an Ethernet subsystem
US9811496B2 (en) * 2013-07-29 2017-11-07 Huawei Technologies Co., Ltd. Method and apparatus for detecting interface connection between devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7308006B1 (en) * 2000-02-11 2007-12-11 Lucent Technologies Inc. Propagation and detection of faults in a multiplexed communication system
CN101304344A (en) * 2008-06-02 2008-11-12 信息产业部通信计量中心 Apparatus and method for calibrating time delay of network performance tester
CN101465769A (en) * 2009-01-16 2009-06-24 华中科技大学 Dynamic fault detection system for dual controller disk array
CN102546289A (en) * 2011-11-28 2012-07-04 曙光信息产业(北京)有限公司 Device and method for guaranteeing normal communication of Ethernet
CN202474445U (en) * 2012-03-14 2012-10-03 黑龙江电通自动化有限公司 100-Mbit Ethernet jumper network cable with cable tracking indicator lamp

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"1000BASE-T千兆以太网收发器数字信号处理算法研究与VLSI设计";诸悦,;《中国博士学位论文全文数据库 (信息科技辑)》;20130915;全文 *
"802.3-2015 - IEEE Standard for Ethernet";IEEE,;《ttps://ieeexplore.ieee.org/servlet/opac?punumber=7428774》;20160304;全文 *
"FT-XDSP千兆以太网控制器物理编码子层单元设计与实现";杨俊林,;《中国优秀硕士学位论文全文数据库 (信息科技辑)》;20170315;全文 *

Also Published As

Publication number Publication date
CN108833213A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
US6629059B2 (en) Hand held diagnostic and communication device with automatic bus detection
US7289449B1 (en) Device and method for managing fault detection and fault isolation in voice and data networks
US4320508A (en) Self-diagnosing, self-correcting communications network
US9288289B2 (en) Portable device maintenance support apparatus, system, and method
US20030149921A1 (en) Bit error rate tester
US7027952B2 (en) Data transmission method for a multi-protocol handheld field maintenance tool
US6665275B1 (en) Network device including automatic detection of duplex mismatch
JPS6247239A (en) Passive bus network system checking circuit apparatus
CN103312411B (en) Optical fiber link fault detection method and device
CN109245950B (en) Method for determining link failure position and related device
CN101373205B (en) Returning ring test structure of IC chip interface module
CN108833213B (en) Ethernet link detection method and device
CN102508754A (en) Method for detecting 1553B communication interface
US10822940B2 (en) Intelligent tool bus network for a bottom hole assembly
US9319298B2 (en) System and method for data packet transceiver testing after signal calibration and power settling to minimize test time
KR101171884B1 (en) Mornitoring device for serial communication interface
JP2005529319A (en) Circuit for detecting the ground offset of network components
CN113009246B (en) PSE device detection device and PSE device detection method
KR100969222B1 (en) System and method for diagnosing a cabling infrastructure using a phy
CN113259022A (en) Receiving and sending sharing monitoring method, unit, system and storage medium
KR101010483B1 (en) Method and device for testing a monitoring function of a bus system and a corresponding bus system
US5730053A (en) Bus system for a printing machine
US11575409B2 (en) Time-domain reflectometer distance measurement for devices sharing a common bus
KR101175149B1 (en) Method for controlling multidrop optical communication and multidrop optical repeater
JPS63108828A (en) Monitoring method for digital line

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041, 17 floor, maple building, 1 building, 288 Tianfu street, Chengdu, Sichuan.

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder