CN112291108B - Method for detecting network port connection state in Ethernet switch - Google Patents

Method for detecting network port connection state in Ethernet switch Download PDF

Info

Publication number
CN112291108B
CN112291108B CN202010941071.7A CN202010941071A CN112291108B CN 112291108 B CN112291108 B CN 112291108B CN 202010941071 A CN202010941071 A CN 202010941071A CN 112291108 B CN112291108 B CN 112291108B
Authority
CN
China
Prior art keywords
ethernet
network cable
position sensor
physical layer
open
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
CN202010941071.7A
Other languages
Chinese (zh)
Other versions
CN112291108A (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.)
Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Cixi Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Cixi Power Supply Co of State Grid Zhejiang Electric Power 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 Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd, Cixi Power Supply Co of State Grid Zhejiang Electric Power Co Ltd filed Critical Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Priority to CN202010941071.7A priority Critical patent/CN112291108B/en
Publication of CN112291108A publication Critical patent/CN112291108A/en
Application granted granted Critical
Publication of CN112291108B publication Critical patent/CN112291108B/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
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/351Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/02Constructional details
    • H04Q1/028Subscriber network interface devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/02Constructional details
    • H04Q1/13Patch panels for monitoring, interconnecting or testing circuits, e.g. patch bay, patch field or jack field; Patching modules
    • H04Q1/135Patch panels for monitoring, interconnecting or testing circuits, e.g. patch bay, patch field or jack field; Patching modules characterized by patch cord details

Abstract

The invention relates to the field of Internet, in particular to a method for detecting the connection state of a network port in an Ethernet switch, which comprises the following steps: detecting whether a network cable is inserted into the Ethernet socket and whether the network cable is inserted in place through a position sensor arranged on the Ethernet socket; detecting whether an Ethernet port is open-circuited or not through an Ethernet physical layer chip; if the position sensor detects that the Ethernet socket has the network cable inserted and inserted in place and the Ethernet physical layer chip detects that the Ethernet interface is not open-circuited, judging that the Ethernet interface has the network cable inserted and is well connected; and if the position sensor detects that no network cable is inserted into the Ethernet interface and the Ethernet physical layer chip detects that the Ethernet interface is open, judging that no network cable is inserted into the Ethernet interface. The invention can accurately judge the state of the Ethernet interface by combining the detection result of the position sensor with the detection result of the Ethernet physical layer chip.

Description

Method for detecting network port connection state in Ethernet switch
Technical Field
The invention relates to the field of internet, in particular to a method for detecting the connection state of a network port in an Ethernet switch.
Background
The interface circuit of the Ethernet consists of an Ethernet MAC, an Ethernet physical layer PHY, a transformer and an RJ45 socket. And the RJ45 socket is matched with the RJ45 plug to complete the physical connection function of the network cable. Some ethernet physical layer interface chips have a time domain reflectometer TDR function that can determine whether the port is open, shorted, and distance to fault, while being able to localize the fault to which pair. In addition, the PHY has an energy detection function, and can detect whether the signal line receives a signal, thereby determining whether the network connection is normal.
However, the accuracy of the TDR built in the ethernet physical layer PHY is limited, and the measurement accuracy is about 1m, so that it is impossible to detect the operation of inserting a short empty network cable into the ethernet socket, and it is impossible to accurately determine the quasi-fault state in which the connection between the ethernet chassis and the ethernet cable is loose but still remains connected.
Disclosure of Invention
In order to solve the above problem, the present invention provides a method for detecting a connection status of a network port in an ethernet switch.
A method for detecting the connection state of a network port in an Ethernet switch comprises the following steps:
detecting whether a network cable is inserted into the Ethernet socket and whether the network cable is inserted in place through a position sensor arranged on the Ethernet socket;
detecting whether an Ethernet port is open-circuited or not through an Ethernet physical layer chip;
if the position sensor detects that the Ethernet socket has the network cable inserted and inserted in place and the Ethernet physical layer chip detects that the Ethernet interface is not open-circuited, judging that the Ethernet interface has the network cable inserted and connected well;
and if the position sensor detects that the Ethernet interface is not plugged with the network cable and the Ethernet physical layer chip detects that the Ethernet interface is open-circuit, judging that the Ethernet interface is not plugged with the network cable.
Preferably, the ethernet physical layer chip generates and transmits a test pulse signal by using a TDR technique to detect whether the ethernet port is open.
Preferably, the method further comprises the following steps:
when the position sensor detects that the network cable is inserted and the Ethernet physical layer chip detects that the Ethernet interface is open, the position sensor judges that the network cable is inserted into the Ethernet interface and the connection is good.
Preferably, the method further comprises the following steps:
when the Ethernet physical layer chip detects that the Ethernet interface is not open-circuit and the state of the position sensor is constantly changed, the Ethernet interface is judged to have network cable insertion and loose connection.
Preferably, the method further comprises the following steps:
when the Ethernet physical layer chip detects that the Ethernet interface is open-circuit and the state of the position sensor is constantly changed, the Ethernet interface is judged to have an empty network cable to be inserted and the connection is loose.
By using the present invention, the following effects can be achieved: whether a network cable is inserted into the Ethernet socket or not and whether the network cable is inserted in place or not are detected through a position sensor installed on the Ethernet socket, whether an Ethernet port is open or not is detected through an Ethernet physical layer chip, and the state of the Ethernet port can be accurately judged by combining the detection result of the position sensor with the detection result of the Ethernet physical layer chip.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a schematic flow diagram of an embodiment of the present invention;
FIG. 2 is a schematic block diagram of an Ethernet interface in an embodiment of the invention;
fig. 3 is a schematic configuration diagram of a position sensor in the embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be further described below with reference to the accompanying drawings, but the present invention is not limited to these embodiments.
The invention has the basic idea that whether a network cable is inserted into an Ethernet socket or not and whether the network cable is inserted in place or not are detected by a position sensor arranged on the Ethernet socket, whether an Ethernet port is open or not is detected by an Ethernet physical layer chip, and the state of the Ethernet port can be accurately judged by combining the detection result of the position sensor with the detection result of the Ethernet physical layer chip.
Based on the above thought, an embodiment of the present invention provides a method for detecting a connection state of a network port in an ethernet switch, as shown in fig. 1, including the following steps:
s1: whether a network cable is inserted into the Ethernet socket and whether the network cable is inserted in place are detected through a position sensor installed on the Ethernet socket.
As shown in fig. 2, the general structure of the ethernet interface is composed of an ethernet socket, a transformer, an ethernet transceiver, an ethernet controller and an ethernet microprocessor, and the ethernet transceiver, the ethernet controller and the ethernet microprocessor constitute an ethernet chip.
The ethernet jack is comprised of a standard ethernet jack plus a position sensor mounted at the very top of the ethernet jack and connected to the ethernet microprocessor as shown in fig. 3. When the network cable is inserted into the socket and positioned in place, the position sensor can detect the insertion action of the network cable and detect whether the network cable is inserted in place; when the network cable is pulled out or the connection between the network cable and the interface is loosened, the inserted position is not in place, and the micro switch is changed from a closed state to an open state. The position sensor is connected with the Ethernet microprocessor, and the Ethernet microprocessor can detect the state of the position sensor so as to judge whether the network cable is inserted and the connection state is good.
A position sensor is a sensor that senses the position of an object being measured and converts the sensed position into a usable output signal. The position sensor has two types of contact and proximity, the contact of the contact sensor is pressed by two objects, and the common sensor has a travel switch, a two-dimensional matrix position sensor and the like.
The travel switch has simple structure, reliable action and low cost, and when some object touches the travel switch in the moving process, the internal contact can act, thereby completing the detection. In this embodiment, the travel switch may be installed at a suitable position at the top end of the ethernet socket, and when the network cable is inserted in place, the travel switch is turned on; when the network cable is pulled out, the travel switch is changed from closed to open.
S2: and detecting whether the Ethernet port is open-circuited or not through the Ethernet physical layer chip.
The Ethernet transceiver in the Ethernet chip has a network diagnosis function, and the state of whether the Ethernet interface is open can be detected through an internal TDR function. The Ethernet transceiver is connected to the Ethernet microprocessor, and the Ethernet microprocessor can control the Ethernet transceiver to periodically perform port open circuit diagnosis.
There are many options for ethernet phy chips, such as DP83867IR from TI corporation, which is a 10/100/1000M ethernet phy transceiver with DTR functionality. The device has a Time Domain Reflectometer (TDR) function, can judge whether the port is open-circuited or short-circuited, and can judge the distance of a fault, and the precision of distance measurement is 1 meter. The Ethernet microprocessor controls the Ethernet transceiver to send a test pulse signal, detects the nature of the received reflected echo and judges whether the port (including the connected network cable) is open-circuited.
The ethernet transceiver sends a test pulse at the TX end, in which case no signal is received at the opposite RX end, but a reflected signal is detected at the TX end. By using the mechanism, whether the port is in an open circuit state or not can be accurately judged.
And the Ethernet microprocessor judges the connection state of the Ethernet interface and the network cable according to the detected state of the travel switch and the detection result of the open circuit state obtained from the Ethernet transceiver.
S3: if the position sensor detects that the Ethernet socket has the network cable inserted and inserted in place and the Ethernet physical layer chip detects that the Ethernet interface is not open, the Ethernet interface is judged to have the network cable inserted and connected well.
S4: and if the position sensor detects that the Ethernet interface is not plugged with the network cable and the Ethernet physical layer chip detects that the Ethernet interface is open-circuit, judging that the Ethernet interface is not plugged with the network cable.
In one embodiment, the method further comprises:
when the position sensor detects that the network cable is inserted and the Ethernet physical layer chip detects that the Ethernet interface is open, the position sensor judges that the network cable is inserted into the Ethernet interface and the connection is good.
In one embodiment, the method further comprises:
when the Ethernet physical layer chip detects that the Ethernet interface is not open-circuit and the state of the position sensor is constantly changed, the Ethernet interface is judged to have network cable insertion and loose connection.
In one embodiment, the method further comprises:
when the Ethernet physical layer chip detects that the Ethernet interface is open-circuit and the state of the position sensor is constantly changed, the Ethernet interface is judged to have an empty network cable to be inserted and the connection is loose.
Compared with the prior art, the method and the device can accurately judge the connection state of the five Ethernet interfaces and the network cable by combining the detection result of the position sensor with the detection result of the Ethernet physical layer chip.
Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.

Claims (2)

1. A method for detecting a network port connection state in an Ethernet switch is characterized by comprising the following steps:
detecting whether a network cable is inserted into the Ethernet socket and whether the network cable is inserted in place through a position sensor arranged on the Ethernet socket;
detecting whether an Ethernet port is open-circuited or not through an Ethernet physical layer chip;
if the position sensor detects that the Ethernet socket has the network cable inserted and inserted in place and the Ethernet physical layer chip detects that the Ethernet interface is not open-circuited, judging that the Ethernet interface has the network cable inserted and connected well;
if the position sensor detects that no network cable is inserted into the Ethernet interface and the Ethernet physical layer chip detects that the Ethernet interface is open-circuit, judging that no network cable is inserted into the Ethernet interface;
further comprising:
when the position sensor detects that a network cable is inserted and the Ethernet physical layer chip detects that the Ethernet interface is open-circuit, judging that the network cable is inserted into the Ethernet interface and the connection is good;
when the Ethernet physical layer chip detects that the Ethernet interface is a non-open circuit and the state of the position sensor is constantly changed, judging that the Ethernet interface has network cable insertion and loose connection;
when the Ethernet physical layer chip detects that the Ethernet interface is open-circuit and the state of the position sensor is constantly changed, the Ethernet interface is judged to have an empty network cable to be inserted and the connection is loose.
2. The method according to claim 1, wherein the ethernet physical layer chip generates and transmits a test pulse signal by using TDR technology to detect whether the ethernet port is open.
CN202010941071.7A 2020-09-09 2020-09-09 Method for detecting network port connection state in Ethernet switch Active CN112291108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010941071.7A CN112291108B (en) 2020-09-09 2020-09-09 Method for detecting network port connection state in Ethernet switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010941071.7A CN112291108B (en) 2020-09-09 2020-09-09 Method for detecting network port connection state in Ethernet switch

Publications (2)

Publication Number Publication Date
CN112291108A CN112291108A (en) 2021-01-29
CN112291108B true CN112291108B (en) 2022-06-24

Family

ID=74419805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010941071.7A Active CN112291108B (en) 2020-09-09 2020-09-09 Method for detecting network port connection state in Ethernet switch

Country Status (1)

Country Link
CN (1) CN112291108B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113993316A (en) * 2021-10-26 2022-01-28 保定卓能电力科技有限公司 Optical transmitter and receiver and optical transmitter and receiver network management system
CN114124663B (en) * 2021-11-16 2023-12-01 太原市华纳方盛科技有限公司 Method, device and equipment for reconnecting Ethernet chip in disconnected mode

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2309678A1 (en) * 2009-10-08 2011-04-13 Nxp B.V. An ethernet network component
CN107291646A (en) * 2016-04-11 2017-10-24 中兴通讯股份有限公司 The device and veneer of network interface and serial port
CN211151975U (en) * 2019-12-24 2020-07-31 北京经纬恒润科技有限公司 Vehicle-mounted Ethernet testing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2309678A1 (en) * 2009-10-08 2011-04-13 Nxp B.V. An ethernet network component
CN107291646A (en) * 2016-04-11 2017-10-24 中兴通讯股份有限公司 The device and veneer of network interface and serial port
CN211151975U (en) * 2019-12-24 2020-07-31 北京经纬恒润科技有限公司 Vehicle-mounted Ethernet testing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
集成以太网接口的压力检测仪表设计与实现;韩冬林;《电子设计工程》;20130205(第03期);全文 *

Also Published As

Publication number Publication date
CN112291108A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN112291108B (en) Method for detecting network port connection state in Ethernet switch
US7906973B1 (en) Cable tester
US10382312B2 (en) Detecting and locating process control communication line faults from a handheld maintenance tool
CN101110009A (en) Touch detection method and system for a touch sensor
US20130278274A1 (en) Electrical interconnect status monitoring system
CN101551228A (en) Inner diameter measuring device and measuring method
US20140239937A1 (en) Multilevel Connector System For Medical Use
KR101250243B1 (en) Apparatus and Method for Measuring the Length of a Pipe
CN103888308B (en) Serial ports test method, system and device
JPS63282669A (en) Method and device for measuring capacitance and resistance of electric part
CA2360031C (en) Capacitive test point voltage and phasing detector
CN103345436B (en) Detect circuit and detection method
US20070157705A1 (en) Leak detection system with addressable sensors
TWI763565B (en) Line self-testing method of automatic test equipment
CN212245798U (en) Detection apparatus for lift-cabin door state
CN205506168U (en) Quiet appearance bimodulus charge level indicator
CN205840862U (en) A kind of pore-forming grooving multi-parameter comprehensive detection device
TW201122502A (en) Electrical connection defect detection system and method
JP2013160763A (en) Position measuring device
CN2927068Y (en) RS232 series wire inspector
CN201241699Y (en) Casing tube deformation logger
TWI594191B (en) Identification system, pysical apparatus, identification apparatus, and identification method of pysical apparatus
CN208843681U (en) A kind of forklift lifting process accelerating performance measuring device
CN214544306U (en) Production detection device of power line carrier communication module
CN110940896B (en) Damage diagnosis method for ultra-long cable

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