CN110868407A - Ethernet link detection method, device, electronic equipment and computer medium - Google Patents

Ethernet link detection method, device, electronic equipment and computer medium Download PDF

Info

Publication number
CN110868407A
CN110868407A CN201911077148.4A CN201911077148A CN110868407A CN 110868407 A CN110868407 A CN 110868407A CN 201911077148 A CN201911077148 A CN 201911077148A CN 110868407 A CN110868407 A CN 110868407A
Authority
CN
China
Prior art keywords
switch
link
ethernet
target
judging
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
CN201911077148.4A
Other languages
Chinese (zh)
Other versions
CN110868407B (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.)
China Electronics Technology Network Security Technology Co ltd
Original Assignee
Chengdu Westone Information Industry Inc
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 Chengdu Westone Information Industry Inc filed Critical Chengdu Westone Information Industry Inc
Priority to CN201911077148.4A priority Critical patent/CN110868407B/en
Publication of CN110868407A publication Critical patent/CN110868407A/en
Application granted granted Critical
Publication of CN110868407B publication Critical patent/CN110868407B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general

Abstract

The utility model provides an Ethernet link detection method, a device, an electronic device and a computer medium, which are applied to a target switch in the Ethernet link, comprising the steps of determining a first switch connected with the target switch in the Ethernet link, wherein the first switch is a switch which is not connected with the target switch through other switches; judging whether the first switch is directly connected with the first switch or not; and if the first switch is not directly connected with the second switch, judging that the Ethernet link is unsafe. According to the Ethernet link detection method, the device, the electronic equipment and the computer readable storage medium provided by the disclosure, if the target switch is not directly connected with the first switch, the Ethernet link is judged to be unsafe, and after an attacker who passes the device access authentication is connected between the first switch and the target switch, the method provided by the disclosure can also be used for judging that the Ethernet link is unsafe, so that the attack probability of the attacker on the Ethernet can be reduced, and the safety of the Ethernet is improved.

Description

Ethernet link detection method, device, electronic equipment and computer medium
Technical Field
The present disclosure relates to the field of ethernet data communication technologies, and in particular, to a method and an apparatus for ethernet link detection, an electronic device, and a computer medium.
Background
Ethernet (Ethernet) is a computer local area network technology; the IEEE 802.3 standard of the IEEE organization sets forth a technical standard for ethernet, which specifies the contents of the wiring, electrical signals, and medium access layer protocols, including the physical layer. Due to the characteristic of Ethernet autocorrelation, the Ethernet is applied to telecommunication engineering. In the use process of the Ethernet, in order to ensure the security of the transmission data, the legitimacy of the equipment in the Ethernet is ensured by the equipment access authentication technology in the prior art, and further the security of the Ethernet is ensured; that is, when the device accesses the ethernet, the device access authentication needs to be performed on the device through the server, and the device is allowed to access the ethernet after the authentication is passed.
However, even if the device passes the device access authentication, in the ethernet link, the connected attacker may acquire information when exchanging information between the two switches, thereby causing a security risk of the ethernet.
In summary, how to ensure the security of the ethernet is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The present disclosure is directed to an ethernet link detection method, which can solve the technical problem of how to ensure the security of the ethernet to a certain extent. The disclosure also provides an Ethernet link detection device, an electronic device and a computer readable storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an ethernet link detection method applied to a target switch in an ethernet link, including:
determining a first switch connected with the target switch in the Ethernet link, wherein the first switch is a switch which is not connected with the target switch through other switches;
judging whether the first switch is directly connected with the first switch or not;
and if the Ethernet link is not directly connected with the first switch, judging that the Ethernet link is unsafe.
Preferably, the determining whether to directly connect to the first switch includes:
disconnecting the link of the self;
judging whether the link of the first switch is disconnected;
if the link of the first switch is not disconnected, judging that the first switch is not directly connected with the first switch;
and if the link of the first switch is disconnected, judging that the first switch is directly connected with the first switch.
Preferably, the determining whether the link of the first switch is disconnected includes:
recording the change time of a first link state of the self;
acquiring second link state change time of the first switch;
judging whether the first link state change time is consistent with the second link state change time;
if the first link state change time is inconsistent with the second link state change time, determining that the link of the first switch is not disconnected;
and if the first link state change time is consistent with the second link state change time, judging that the link of the first switch is disconnected.
Preferably, after disconnecting the connection of the self, before recording the first link state change time of the self, the method further includes:
and restoring the link of the self.
Preferably, before disconnecting the link of the self, the method further includes:
synchronizing time with the first switch.
Preferably, the determining whether to directly connect to the first switch includes:
sending detection information of a preset scale to the first switch;
acquiring the transmission time length for transmitting the detection information from the target switch to the first switch;
judging whether the transmission time length is greater than or equal to a preset time length or not;
if the transmission time length is greater than or equal to the preset time length, judging that the first switch is not directly connected;
and if the transmission time length is less than the preset time length, judging that the first switch is directly connected with the first switch.
Preferably, the determining a first switch connected to the target switch includes:
and determining the first switch connected with the target switch along the information transmission direction.
According to a second aspect of the embodiments of the present disclosure, there is provided an ethernet link detection apparatus applied to a target switch in an ethernet link, including:
a first determining module, configured to determine, in the ethernet link, a first switch connected to the target switch, where the first switch is a switch that is not connected to the target switch through another switch;
the first judgment module is used for judging whether the first switch is directly connected with the first switch or not; and if the Ethernet link is not directly connected with the first switch, judging that the Ethernet link is unsafe.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a memory for storing a computer program;
a processor for executing the computer program in the memory to implement the steps of any of the methods described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above.
The method for detecting the Ethernet link is applied to a target switch in the Ethernet link, and comprises the steps of determining a first switch connected with the target switch in the Ethernet link, wherein the first switch is a switch which is not connected with the target switch through other switches; judging whether the first switch is directly connected with the first switch or not; and if the first switch is not directly connected with the second switch, judging that the Ethernet link is unsafe. The method for detecting the Ethernet link determines the first switch connected with the target switch, judges whether the target switch is directly connected with the first switch or not, and judges that the Ethernet link is unsafe if the target switch is not directly connected with the first switch. The Ethernet link detection device, the electronic equipment and the computer readable storage medium provided by the disclosure also solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a method of ethernet link detection in accordance with an exemplary embodiment;
FIG. 2 is a diagram illustrating an attacker attacking an Ethernet link in the prior art;
FIG. 3 is a second flowchart illustrating a method of Ethernet link detection in accordance with an exemplary embodiment;
fig. 4 is a schematic structural diagram illustrating an ethernet link detection apparatus according to an exemplary embodiment;
fig. 5 is a block diagram illustrating an electronic device 400 according to an example embodiment.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Ethernet (Ethernet) is a computer local area network technology; the IEEE 802.3 standard of the IEEE organization sets forth a technical standard for ethernet, which specifies the contents of the wiring, electrical signals, and medium access layer protocols, including the physical layer. Due to the characteristic of Ethernet autocorrelation, the Ethernet is applied to telecommunication engineering. In the use process of the Ethernet, in order to ensure the security of the transmission data, the legitimacy of the equipment in the Ethernet is ensured by the equipment access authentication technology in the prior art, and further the security of the Ethernet is ensured; that is, when the device accesses the ethernet, the device access authentication needs to be performed on the device through the server, and the device is allowed to access the ethernet after the authentication is passed. However, even if the device passes the device access authentication, in the ethernet link, the connected attacker may acquire information when exchanging information between the two switches, thereby causing a security risk of the ethernet. For example, an attacker who accesses authentication through equipment can access two switches through a HUB (multi-port repeater), a two-layer switch and the like, so that data between the two switches can be acquired, and the ethernet is attacked.
Referring to fig. 1, fig. 1 is a first flowchart illustrating an ethernet link detection method according to an exemplary embodiment.
The Ethernet link detection method related by the present disclosure is applied to a target switch in an Ethernet link, and may include the following steps:
step S101: in the Ethernet link, a first switch connected with a target switch is determined, and the first switch is a switch which is not connected with the target switch through other switches.
It should be noted that the target switch is a switch in an ethernet link. In practical applications, the target switch may determine, in the ethernet link, a first switch connected to the target switch, where the first switch is a switch that is not connected to the target switch through another switch, and if the target switch is connected to the switch B through the switch a, the first switch connected to the target switch is the switch a, but not the switch B.
Step S102: and judging whether the first switch is directly connected with the first switch or not, and if not, executing the step S103.
Step S103: it is determined that the ethernet link is not secure.
It should be noted that after the target switch determines the first switch, it can be determined whether the target switch is directly connected to the first switch, and if not, it is determined that the ethernet link is not secure. It can be understood that, after the target switch determines that the target switch is not directly connected to the first switch, the first determination result of the target switch is that the ethernet link between the target switch and the first switch is not secure, so the target switch can store the ethernet link information between the target switch and the first switch, and can also send out prompt information to notify a user that the ethernet link is not secure, and the prompt information can be determined according to an actual application scenario.
The method for detecting the Ethernet link is applied to any target switch of the Ethernet link, and comprises the steps of determining a first switch connected with the target switch in the Ethernet link, wherein the first switch is a switch which is not connected with the target switch through other switches; judging whether the first switch is directly connected with the first switch or not; and if the first switch is not directly connected with the second switch, judging that the Ethernet link is unsafe. The method for detecting the Ethernet link determines the first switch connected with the target switch, judges whether the target switch is directly connected with the first switch or not, and judges that the Ethernet link is unsafe if the target switch is not directly connected with the first switch.
According to the Ethernet link detection method, when the target switch judges whether the target switch is directly connected with the first switch or not, the target switch can disconnect the link of the target switch and judge whether the link of the first switch is disconnected or not; if the link of the first switch is not disconnected, judging that the first switch is not directly connected with the first switch; and if the link of the first switch is disconnected, judging that the first switch is directly connected with the first switch. That is, in this disclosure, if the target switch is directly connected to the first switch, after the link of the target switch is disconnected, the link of the first switch is also disconnected accordingly, so that whether the target switch is directly connected to the first switch or not can be quickly determined according to this characteristic.
According to the Ethernet link detection method, when a target switch judges whether a link of a first switch is disconnected, the change time of the state of the first link of the target switch can be recorded; acquiring second link state change time of the first switch; judging whether the first link state change time is consistent with the second link state change time; if the first link state change time is inconsistent with the second link state change time, judging that the link of the first switch is not disconnected; and if the first link state change time is consistent with the second link state change time, judging that the link of the first switch is disconnected. That is, in the present disclosure, whether the link of the first switch is disconnected may be determined by the link state change time information of the target switch and the first switch, where it should be noted that the link state change time refers to time information describing a change of the link state, for example, the link state change time may be a link disconnection time of the target switch; by means of the link state change time, the target switch can judge whether the link of the first switch is disconnected only by acquiring the link state change time of the first switch, and link state change time information between the target switch and the first switch is easy to transmit, so that the target switch can quickly judge whether the link of the first switch is disconnected, and the operation efficiency of the method is improved.
According to the Ethernet link detection method, after the target server is disconnected, the link of the target server can be recovered before the first link state change time of the target server is recorded. It should be noted that at this time, the link state change time recorded by the target switch and the first switch not only includes the information of the link disconnection time, but also includes the information of the link connection recovery time, that is, it can be determined whether the target switch is directly connected to the first switch by using the information of the link disconnection time and the information of the link connection recovery time, so that the determination accuracy is improved. It should be noted that the link disconnection time in the first link state change time and the second link state change time may be consistent, and when the link connection recovery time is consistent, the target switch and the first switch are determined to be directly connected, and of course, in practical application, an error may also be allowed to exist between the first link state change time and the second link state change time, and the disclosure is not limited specifically.
According to the Ethernet link detection method, the target switch can synchronize the time with the first switch before disconnecting the link of the target switch. That is, the target switch can synchronize the time with the first switch first and then disconnect the link of the target switch, so that the time between the target switch and the first switch is synchronized, and whether the change time of the state of the first link is consistent with the change time of the state of the second link can be directly compared; it should be noted that when the time between the target switch and the first switch is not synchronized, the first link state change time and the first link state change time need to be time-synchronized, and then the synchronized first link state change time and the second link state change time need to be compared to determine whether the synchronized first link state change time is consistent.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating an attacker attacking an ethernet link in the prior art. As can be seen from fig. 2, the switch a and the switch B are originally directly connected through the links 1 and 4, and data can directly reach the switch B from the switch a; after the exchange A and the exchange B are indirectly connected with the HUB, the exchange A and the HUB are connected through links 3 and 2, and data can reach the exchange B only through the HUB after being sent out by the exchange A; the efficiency of data transmission between switch a and switch B over links 1, 4 is greater than the efficiency of switch a over 2, 3 lines. Therefore, in the ethernet link detection method according to the present disclosure, the data transmission time between the target switch and the first switch is related to the connection mode therebetween, and the data transmission time when the target switch is directly connected to the first switch is shorter than the data transmission time when the target switch is indirectly connected to the first switch, so that whether the target switch is directly connected to the first switch can be determined according to the data transmission time between the target switch and the first switch, and when determining whether the target switch is directly connected to the first switch, the target switch can send detection information of a preset scale to the first switch; acquiring transmission time length for transmitting detection information from a target switch to a first switch; judging whether the transmission time length is greater than or equal to a preset time length or not; if the transmission time length is greater than or equal to the preset time length, judging that the first switch is not directly connected; and if the transmission time length is less than the preset time length, judging that the first switch is directly connected with the first switch. The preset scale, the preset duration and the like can be determined according to actual needs.
In the ethernet link detection method according to the present disclosure, in order to improve detection efficiency, when a first switch connected to a target switch is determined, the first switch connected to the target switch may be determined along an information transmission direction. That is, each target switch only determines the first switch in the information transmission direction, so that the number of the determined first switches is reduced, and the operation efficiency of the method is improved.
Referring to fig. 3, fig. 3 is a second flowchart illustrating a method for ethernet link detection according to an exemplary embodiment.
In the method for detecting an ethernet link provided by the present disclosure, the target switch may perform the following steps:
step S201: in the Ethernet link, a first switch connected with a target switch is determined, and the first switch is a switch which is not connected with the target switch through other switches.
Step S202: time is synchronized with the first switch.
Step S203: and disconnecting the own link and restoring the own link.
Step S204: and recording the first link state change time of the self.
Step S205: and acquiring the second link state change time of the first switch.
Step S206: judging whether the first link state change time is consistent with the second link state change time; if the first link state transition time does not coincide with the second link state change time, step S207 is executed, and if the first link state transition time coincides with the second link state change time, step S208 is executed.
Step S207: it is determined that the ethernet link is not secure.
Step S208: and determining the safety of the Ethernet link.
Referring to fig. 4, fig. 4 is a schematic structural diagram illustrating an ethernet link detection apparatus according to an exemplary embodiment.
The ethernet link detection apparatus 300 according to the present disclosure is applied to a target switch in an ethernet link, and may include:
a first determining module 310, configured to determine, in an ethernet link, a first switch connected to a target switch, where the first switch is a switch that is not connected to the target switch through another switch;
a first judging module 320, configured to judge whether to directly connect to the first switch; and if the first switch is not directly connected with the second switch, judging that the Ethernet link is unsafe.
The ethernet link detection apparatus 300 according to the present disclosure is applied to a target switch in an ethernet link, and the first determining module may include:
the first disconnection submodule is used for disconnecting the link of the first disconnection submodule;
the first judgment submodule is used for judging whether a link of the first switch is disconnected or not; if the link of the first switch is not disconnected, judging that the first switch is not directly connected with the first switch; and if the link of the first switch is disconnected, judging that the first switch is directly connected with the first switch.
The ethernet link detection apparatus 300 according to the present disclosure is applied to a target switch in an ethernet link, and the first determining sub-module may include:
the first recording unit is used for recording the change time of the first link state of the first recording unit;
a first obtaining unit, configured to obtain a second link state change time of the first switch;
the first judging unit is used for judging whether the first link state change time is consistent with the second link state change time; if the first link state change time is inconsistent with the second link state change time, judging that the link of the first switch is not disconnected; and if the first link state change time is consistent with the second link state change time, judging that the link of the first switch is disconnected.
The ethernet link detection apparatus 300 according to the present disclosure is applied to a target switch in an ethernet link, and may further include:
and the first recovery submodule is used for recovering the link of the first recording unit before the first recording unit records the state change time of the first link of the first recording unit after the first disconnection submodule disconnects the link of the first recording unit.
The ethernet link detection apparatus 300 according to the present disclosure is applied to a target switch in an ethernet link, and may further include:
and the first synchronization submodule is used for synchronizing the time with the first switch before the first disconnection submodule disconnects the link of the first disconnection submodule.
The ethernet link detection apparatus 300 according to the present disclosure is applied to a target switch in an ethernet link, and the first determining module may include:
the first sending unit is used for sending detection information of a preset scale to the first switch;
the second acquisition unit is used for acquiring the transmission time length of the detection information transmitted from the target switch to the first switch;
the second judging unit is used for judging whether the transmission time length is greater than or equal to the preset time length or not; if the transmission time length is greater than or equal to the preset time length, judging that the first switch is not directly connected; and if the transmission time length is less than the preset time length, judging that the first switch is directly connected with the first switch.
The ethernet link detection apparatus 300 according to the present disclosure is applied to a target switch in an ethernet link, and the first determining module may include:
and the first determining unit is used for determining a first switch connected with the target switch along the information transmission direction.
Fig. 5 is a block diagram illustrating an electronic device 400 according to an example embodiment. As shown in fig. 5, the electronic device 400 may include: a processor 401 and a memory 402. The electronic device 400 may also include one or more of a multimedia component 403, an input/output (I/O) interface 404, and a communications component 405.
The processor 401 is configured to control the overall operation of the electronic device 400, so as to complete all or part of the steps in the ethernet link detection method. The memory 402 is used to store various types of data to support operation at the electronic device 400, such as instructions for any application or method operating on the electronic device 400 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 402 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 403 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 402 or transmitted through the communication component 405. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 404 provides an interface between the processor 401 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 405 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the ethernet link detection method described above.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the ethernet link detection method described above is also provided. For example, the computer readable storage medium may be the memory 402 comprising program instructions executable by the processor 401 of the electronic device 400 to perform the ethernet link detection method described above.
For a description of a relevant part in an ethernet link detection apparatus, an electronic device, and a computer-readable storage medium provided in the embodiments of the present disclosure, please refer to a detailed description of a corresponding part in an ethernet link detection method provided in the embodiments of the present disclosure, which is not repeated herein. In addition, parts of the above technical solutions provided in the embodiments of the present disclosure that are consistent with the implementation principle of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
It is further 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. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An ethernet link detection method applied to a target switch in an ethernet link, comprising:
determining a first switch connected with the target switch in the Ethernet link, wherein the first switch is a switch which is not connected with the target switch through other switches;
judging whether the first switch is directly connected with the first switch or not;
and if the Ethernet link is not directly connected with the first switch, judging that the Ethernet link is unsafe.
2. The method of claim 1, wherein the determining whether to connect directly to the first switch comprises:
disconnecting the link of the self;
judging whether the link of the first switch is disconnected;
if the link of the first switch is not disconnected, judging that the first switch is not directly connected with the first switch;
and if the link of the first switch is disconnected, judging that the first switch is directly connected with the first switch.
3. The method of claim 2, wherein determining whether the link of the first switch is down comprises:
recording the change time of a first link state of the self;
acquiring second link state change time of the first switch;
judging whether the first link state change time is consistent with the second link state change time;
if the first link state change time is inconsistent with the second link state change time, determining that the link of the first switch is not disconnected;
and if the first link state change time is consistent with the second link state change time, judging that the link of the first switch is disconnected.
4. The method according to claim 3, wherein after the disconnecting itself and before the recording of the first link state change time of itself, further comprising:
and restoring the link of the self.
5. The method of claim 3, wherein before disconnecting the own link, further comprising:
synchronizing time with the first switch.
6. The method of claim 1, wherein the determining whether to connect directly to the first switch comprises:
sending detection information of a preset scale to the first switch;
acquiring the transmission time length for transmitting the detection information from the target switch to the first switch;
judging whether the transmission time length is greater than or equal to a preset time length or not;
if the transmission time length is greater than or equal to the preset time length, judging that the first switch is not directly connected;
and if the transmission time length is less than the preset time length, judging that the first switch is directly connected with the first switch.
7. The method of claim 1, wherein said determining a first switch connected to said target switch comprises:
and determining the first switch connected with the target switch along the information transmission direction.
8. An ethernet link detection apparatus, applied to a target switch in an ethernet link, includes:
a first determining module, configured to determine, in the ethernet link, a first switch connected to the target switch, where the first switch is a switch that is not connected to the target switch through another switch;
the first judgment module is used for judging whether the first switch is directly connected with the first switch or not; and if the Ethernet link is not directly connected with the first switch, judging that the Ethernet link is unsafe.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201911077148.4A 2019-11-06 2019-11-06 Ethernet link detection method, device, electronic equipment and computer medium Active CN110868407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911077148.4A CN110868407B (en) 2019-11-06 2019-11-06 Ethernet link detection method, device, electronic equipment and computer medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911077148.4A CN110868407B (en) 2019-11-06 2019-11-06 Ethernet link detection method, device, electronic equipment and computer medium

Publications (2)

Publication Number Publication Date
CN110868407A true CN110868407A (en) 2020-03-06
CN110868407B CN110868407B (en) 2022-05-17

Family

ID=69654491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911077148.4A Active CN110868407B (en) 2019-11-06 2019-11-06 Ethernet link detection method, device, electronic equipment and computer medium

Country Status (1)

Country Link
CN (1) CN110868407B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878110A (en) * 2006-07-12 2006-12-13 华为技术有限公司 Directly connected network promulgating method and system
CN101483570A (en) * 2009-02-17 2009-07-15 杭州华三通信技术有限公司 Method, system and device for preventing looped network temporary loop circuit of relaying link
CN101908986A (en) * 2010-08-12 2010-12-08 杭州华三通信技术有限公司 Method and equipment for detecting link fault
CN102014024A (en) * 2010-12-03 2011-04-13 福建星网锐捷网络有限公司 Method, system and device for detecting network intercept of direct-connecting link and network equipment
CN109450738A (en) * 2018-12-19 2019-03-08 迈普通信技术股份有限公司 Chain circuit detecting method, device and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878110A (en) * 2006-07-12 2006-12-13 华为技术有限公司 Directly connected network promulgating method and system
CN101483570A (en) * 2009-02-17 2009-07-15 杭州华三通信技术有限公司 Method, system and device for preventing looped network temporary loop circuit of relaying link
CN101908986A (en) * 2010-08-12 2010-12-08 杭州华三通信技术有限公司 Method and equipment for detecting link fault
CN102014024A (en) * 2010-12-03 2011-04-13 福建星网锐捷网络有限公司 Method, system and device for detecting network intercept of direct-connecting link and network equipment
CN109450738A (en) * 2018-12-19 2019-03-08 迈普通信技术股份有限公司 Chain circuit detecting method, device and server

Also Published As

Publication number Publication date
CN110868407B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN107852416B (en) Monitoring the lifecycle of a computer network connection
CN104349288B (en) Message transmission method and device
CN106534277B (en) Data sharing method and device
CN111414334A (en) File fragment uploading method, device, equipment and storage medium based on cloud technology
WO2017071207A1 (en) Application installation method, corresponding apparatus, and application installation system
CN103327119B (en) Remote control method, device and system
CN105471824A (en) Method, device and system for invoking local service assembly by means of browser
CN108647317B (en) Incremental file generation method and device, storage medium and electronic equipment
CN110602108B (en) Data communication method, device, equipment and storage medium based on block chain network
CN105554752A (en) Hotspot sharing method and related equipment
CN104580409A (en) Service request processing method, server and terminal
CN110895469A (en) Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
CN112714158A (en) Transaction processing method, relay network, cross-link gateway, system, medium, and device
CN104540135A (en) Safety access method of wireless network, device and terminal
CN112636977B (en) Internet of things equipment management method, registration method, device and system and electronic equipment
US9749278B1 (en) Persistent connections for email web applications
JP6701377B2 (en) SIP information analysis method, device, server and medium
CN110868407B (en) Ethernet link detection method, device, electronic equipment and computer medium
CN110908881A (en) Method and device for sending buried point data, electronic equipment and computer readable storage medium
CN107819761B (en) Data processing method and device and readable storage medium
WO2022257927A1 (en) Key burning method and apparatus, electronic device board card, and storage medium
JP2007241720A (en) Ims (ip multimedia subsystem) access right authentication method and terminal unit
CN115525930A (en) Information transfer method, device and related equipment
CN104660812A (en) Information processing method and electronic equipment
CN105163335B (en) A kind of network access management method, server, mobile terminal and system

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: No. 333, Yunhua Road, high tech Zone, Chengdu, Sichuan 610041

Patentee after: China Electronics Technology Network Security Technology Co.,Ltd.

Address before: No. 333, Yunhua Road, high tech Zone, Chengdu, Sichuan 610041

Patentee before: CHENGDU WESTONE INFORMATION INDUSTRY Inc.