CN113472593B - Solution method for link instantaneous change caused by clutter in PHY in auto-negotiation mode - Google Patents
Solution method for link instantaneous change caused by clutter in PHY in auto-negotiation mode Download PDFInfo
- Publication number
- CN113472593B CN113472593B CN202110870398.4A CN202110870398A CN113472593B CN 113472593 B CN113472593 B CN 113472593B CN 202110870398 A CN202110870398 A CN 202110870398A CN 113472593 B CN113472593 B CN 113472593B
- Authority
- CN
- China
- Prior art keywords
- link
- sending
- hello message
- port
- state
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0604—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
- H04L41/0618—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on the physical or logical position
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
- H04L41/0836—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/103—Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method for solving link transient change caused by clutter in a PHY (physical layer) in an auto-negotiation mode, which adopts hello messages to probe the state of adjacent equipment of the equipment so as to indicate the state of the PHY and check the state of a link. The invention can reduce the change of link states of the ports caused by the instability of link signals of the PHY in a communication state, thereby influencing the actual processing of upper layer software, and the technology can reduce the state of the reported link due to the influence of clutter of the PHY. The main benefit is also on the side of affecting upper layer applications, which will be more stable if the false positives of link state are reduced.
Description
Technical Field
The invention relates to the field of PHY negotiation failure processing, in particular to a method for solving link instantaneous change caused by clutter in a PHY in an auto-negotiation mode.
Background
PHY auto-negotiation is achieved by a signal called Fast Link Pulse (FLP) for short. The two parties of the auto-negotiation exchange data through FLP.
Under the condition that the PHY with the auto-negotiation capability does not have a Link, the port always sends FLP, and the FLP contains connection capability information of the port, including supported rate capability, duplex capability, flow control capability and the like. This connection capability is obtained from the Auto-Negotiation capability Register (PHY standard Register address 4). One FLP burst contains 33 pulse positions. The 17 odd-position pulses are clock pulses, which are always present; the 16 even position pulses are used to represent data: the position with a pulse indicates a 1 and the position without a pulse indicates a 0. Thus, a burst of 1 FPL can transmit 16 bits of data. The auto-negotiation interactive data is thus transmitted over the physical line.
If both ends of the network cable support auto-negotiation, the FLP of the opposite side is received and the information in the FLP is decoded. The connection capability of the other party is obtained. And records the Auto-Negotiation capability value of the peer in an Auto-Negotiation peer capability Register (PHY standard Register address 5). Meanwhile, the auto-negotiation completion bit (bit5) of the status register (PHY standard register address 1) is set to 1. In case auto-negotiation is not completed, this bit is always 0. And then selecting the best connection mode Link according to the maximum connection capacity of the self and the opposite side. For example, if both sides support both 10M and 100M, the rate is connected according to 100M; both sides support both full duplex and half duplex, and then the connection is according to the full duplex. After a certain connection is established, the FLP stops sending. The FLP will not be sent again until the link is broken or an auto-negotiation Restart command is obtained.
In this background technology, if the negotiation process is completed and links at both ends are successfully negotiated, if there is noise generated in the link, the PHY will find the noise on the connection link, and set the connection state of the PHY to down, and then after the negotiation of the PHY is successful, the port will be up again, and due to the link down and link up states of the port, the software which requires a relatively sensitive request for the port up/down state by the upper layer will be mishandled.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to provide a method for solving the link instantaneous change caused by clutter in a PHY (physical layer) in an auto-negotiation mode so as to solve the technical problem in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a method for solving link instantaneous change caused by clutter in a PHY (physical layer) in an auto-negotiation mode, which comprises the following steps:
firstly, detecting the state of adjacent equipment of the equipment by adopting a hello message to indicate the state of the equipment and check the state of a link;
sending a hello message by adopting a mode of combining fast and slow packet sending, namely in a stable packet sending stage, if a data link is relatively stable, sending the hello message by adopting a lower frequency, modifying the period for sending the hello message from the previous lower frequency to a higher frequency for probing when the slow hello message is overtime, and if the hello message is still overtime under the high-frequency condition, confirming that the link is disconnected;
enabling a FORCE LINK function of a PHY (physical layer) under the condition that a hello message is normally sent, wherein a port can forcibly keep a LINK up state after the FORCE LINK function is enabled;
when the FORCE LINK function enable is available, a hello message always uses a slow frequency to probe whether a LINK of a port is ok, if a port line is pulled out at a certain moment or the port LINK is disconnected, the hello message is subjected to slow timeout, the hello message immediately switches to a fast packet sending state after the timeout and waits for the reply of equipment, and the FORCE LINK function disable of the equipment port is not found in a timeout period, so that the port state is changed into LINK down, and the real LINK down message of the port is reported to upper-layer software.
Further, the hello message is a two-layer message.
Further, the slow sending period of the Hello message is 100ms, and the fast sending period of the Hello message is 15 ms.
Further, the slow sending timeout period of the Hello message is 300ms, and the fast sending timeout period of the Hello message is 45 ms.
Further, the Hello packet is only used to probe the surrounding devices, so ttl is 1.
Further, the structure of the Hello packet includes a port id for sending and a port state for receiving the Hello packet.
Further, the sending of the Hello packet is performed in units of ports, but not in units of trunk-like groups.
By adopting the technical scheme, the invention has the following beneficial effects:
the invention can reduce the change of link states of the ports caused by the instability of link signals of the PHY in a communication state, thereby influencing the actual processing of upper layer software, and the technology can reduce the state of the reported link due to the influence of clutter of the PHY. The main benefit is also on the side of affecting upper layer applications, which will be more stable if the false positives of link state are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is an overall flow chart of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. 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 the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
As shown in fig. 1, the present invention provides a solution for PHY link transient change due to clutter in auto-negotiation mode, first, a hello message is used to probe the state of the neighboring device of the device, so as to indicate its own state and check the state of the link; since there is a false alarm or a delay in the transmission of a message when probing a device, the timeout time for receiving the message is guaranteed to be more than 3 times of the transmission period.
Because the probing of the link is sensitive and needs a faster speed, but the state of the link cannot be probed by a method of always sending a large amount of packets, and the flow of the packets is too large to interfere with the data link and occupy a larger bandwidth, a method of combining fast and slow packets should be used here to send the hello message, that is, in a relatively stable stage of the data link in a stable packet sending stage, a method of sending packets at a slow speed is used to send the hello message at a lower frequency, when the slow hello message times out, the hello message sending period is changed from the previous lower frequency to a higher frequency for probing by the stand horse, and if the hello message times out under a high frequency condition, the link is determined to be disconnected.
The Hello message is used for probing surrounding equipment, the actual operation on the LINK of the PHY is matched with the FORCE LINK function of the PHY, the FORCE LINK function of the PHY is enabled under the condition that the Hello message is normally sent, the port can forcibly keep the LINK up state after the function is enabled, and even if an interference signal is generated on the connection LINK of the equipment, the port LINK down cannot be caused. Therefore, the up state of the port can be kept when the link of the equipment generates interference, the down of the port caused by clutter interference is prevented, and the message is reported to upper software to influence the processing of the upper software.
When the FORCE LINK function enable is available, a hello message always uses a slow frequency to probe whether a LINK of a port is ok, if a port line is pulled out at a certain moment or the port LINK is disconnected, the hello message is subjected to slow timeout, the hello message immediately switches to a fast packet sending state after the timeout and waits for the reply of equipment, and the FORCE LINK function disable of the equipment port is not found in a timeout period, so that the port state is changed into LINK down, and the real LINK down message of the port is reported to upper-layer software.
The Hello message satisfies the following conditions:
1. the message is a two-layer message;
the slow sending period of the Hello message is 100ms, and the fast sending period of the Hello message is 15 ms;
3, the slow sending overtime period of the Hello message is 300ms, and the fast sending overtime period of the Hello message is 45 ms;
4. the message is only used for probing surrounding equipment, so the ttl is 1;
5. the message structure comprises a sending port id and a port state for receiving the hello message;
the sending of Hello messages should be in port units and not in trunk units or similar groups.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (3)
1. A method for solving link transient change caused by clutter in a PHY (physical layer) in an auto-negotiation mode is characterized by comprising the following steps:
firstly, detecting the state of adjacent equipment of the equipment by adopting a hello message to indicate the state of the equipment and check the state of a link;
sending a hello message by adopting a mode of combining fast and slow sending packets, namely in a stable sending packet stage, if a data link is stable, sending the hello message by adopting a slow sending period, modifying the period for sending the hello message from the previous slow sending period to fast sending period for probing when the slow hello message is overtime, and if the hello message is still overtime under the condition of the fast sending period, determining that the link is disconnected;
enabling a FORCE LINK function of the PHY under the condition that the hello message is normally sent, and after the function is enabled, forcibly keeping a LINK up state by a port;
when the FORCE LINK function enable is available, a hello message always uses a slow sending period to detect whether a LINK of a port is ok, if a port line is pulled off at a certain moment or the port LINK is disconnected, the hello message is subjected to slow sending overtime, the hello message immediately switches to a fast sending packet state after overtime and waits for the reply of equipment, the FORCE LINK function disable of an equipment port is not found in the overtime period, the port state can be changed into LINK down, and the real LINK down message of the port is reported to upper-layer software at the moment;
the slow sending period of the Hello message is 100ms, and the fast sending period of the Hello message is 15 ms;
the slow sending overtime period of the Hello message is 300ms, and the fast sending overtime period of the Hello message is 45 ms;
the structure of the Hello message comprises a sending port id and a port state for receiving the Hello message;
the sending of the Hello message is carried out by taking a port as a unit, but cannot be carried out by taking a trunk-like group as a unit.
2. The PHY solution to link transient changes due to clutter in auto-negotiation mode of claim 1, wherein the hello packets are two-layer packets.
3. The PHY solution to link transient changes due to clutters in auto-negotiation mode according to claim 1, wherein said Hello packet is only used to probe surrounding devices, and thus ttl is 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110870398.4A CN113472593B (en) | 2021-07-30 | 2021-07-30 | Solution method for link instantaneous change caused by clutter in PHY in auto-negotiation mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110870398.4A CN113472593B (en) | 2021-07-30 | 2021-07-30 | Solution method for link instantaneous change caused by clutter in PHY in auto-negotiation mode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113472593A CN113472593A (en) | 2021-10-01 |
CN113472593B true CN113472593B (en) | 2022-05-17 |
Family
ID=77883366
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110870398.4A Active CN113472593B (en) | 2021-07-30 | 2021-07-30 | Solution method for link instantaneous change caused by clutter in PHY in auto-negotiation mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113472593B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115065615B (en) * | 2022-08-17 | 2022-11-29 | 北京左江科技股份有限公司 | FPGA-based network port state scanning system and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866962A (en) * | 2006-03-13 | 2006-11-22 | 华为技术有限公司 | Method and system for rapidly building neighborhood |
CN1956444A (en) * | 2005-10-24 | 2007-05-02 | 华为技术有限公司 | Method and device for transmitting handshake message in communication system |
CN101529951A (en) * | 2006-10-27 | 2009-09-09 | 捷讯研究有限公司 | Link quality measurements based on data rate and received power level |
CN102236340A (en) * | 2010-04-26 | 2011-11-09 | 北大方正集团有限公司 | Multi-equipment management method and device |
WO2013163937A1 (en) * | 2012-05-02 | 2013-11-07 | 华为技术有限公司 | State switching method and router bridge |
CN111800336A (en) * | 2020-08-06 | 2020-10-20 | 通维数码科技(上海)有限公司 | Routing transmission implementation method based on multi-channel network link aggregation |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7317732B2 (en) * | 2000-09-28 | 2008-01-08 | Teridian Semiconductor, Corp. | Method and apparatus for handling link suspend pulse and silent line state transitions of a network device |
CN104301121A (en) * | 2013-07-19 | 2015-01-21 | 中兴通讯股份有限公司 | Control method, control device and optical transceiver |
-
2021
- 2021-07-30 CN CN202110870398.4A patent/CN113472593B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1956444A (en) * | 2005-10-24 | 2007-05-02 | 华为技术有限公司 | Method and device for transmitting handshake message in communication system |
CN1866962A (en) * | 2006-03-13 | 2006-11-22 | 华为技术有限公司 | Method and system for rapidly building neighborhood |
CN101529951A (en) * | 2006-10-27 | 2009-09-09 | 捷讯研究有限公司 | Link quality measurements based on data rate and received power level |
CN102236340A (en) * | 2010-04-26 | 2011-11-09 | 北大方正集团有限公司 | Multi-equipment management method and device |
WO2013163937A1 (en) * | 2012-05-02 | 2013-11-07 | 华为技术有限公司 | State switching method and router bridge |
CN111800336A (en) * | 2020-08-06 | 2020-10-20 | 通维数码科技(上海)有限公司 | Routing transmission implementation method based on multi-channel network link aggregation |
Non-Patent Citations (2)
Title |
---|
IEEE Standard for Information Technology - LAN/MAN - Specific Requirements -Part 3: Carrier Sense Multiple Access with Collision Detection (CSMA/CD) Access Method and Physical Layer Specifications;IEEE Std 802.3, 2000 Edition;《Standard Publisher: IEEE》;20001016;第1-3页 * |
物理网络芯片与FPGA结合的向量网交换机的实现;宋利帅;《中国优秀硕士学位论文全文数据库 信息科技辑》;20171115;第1-76页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113472593A (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2075974A1 (en) | A method and a device for aggregating ports | |
WO2022105611A1 (en) | Heartbeat timeout detection method, server, and electronic device | |
EP0766434B1 (en) | A method and system for performing auto-negotiation for a group of interface devices | |
CN111164923B (en) | Design for unidirectional data transmission | |
US10454527B1 (en) | NBASE-T PHY-to-PHY information exchange method and apparatus | |
GB2337672A (en) | Reducing the data rate when idle state symbol errors exceed a threshold | |
US20090109864A1 (en) | Network card testing system | |
CN102318267A (en) | Data communication method, communication equipment and communication system | |
CN113472593B (en) | Solution method for link instantaneous change caused by clutter in PHY in auto-negotiation mode | |
US20040001512A1 (en) | Method and apparatus for peer to peer bandwidth sharing | |
CN103797732A (en) | Communication method, peripheral component interconnect express (PCIE) chip and PCIE devices | |
CN101796774A (en) | Method and system for checking automatically connectivity status of an IP link on IP network | |
CN101345754A (en) | Duplexing pattern matching method and apparatus, communication system | |
KR100487551B1 (en) | Improved method of parallel detection for ethernet protocol | |
EP2717532B1 (en) | High-speed link self-negotiation method and single board | |
CN109698762B (en) | Parameter adjusting method and parameter adjusting device | |
US8649261B2 (en) | Method and system for blocking protocol messages at a sub-ring control channel without virtual channel | |
CN115914164A (en) | Tunnel connection method and device, electronic equipment and storage medium | |
CN111181810B (en) | Performance test method and system for MoCA equipment | |
CN102347798B (en) | Optical signal transmission method, equipment and transmission systemof optical signal | |
US11876882B2 (en) | Method and system for optoelectronic matching | |
CN104683023A (en) | Method, equipment and system for rapidly recovering after FCoE (Fibre Channel Over Ethernet) network packet loss | |
CN114302000B (en) | PHY negotiation degradation method, device, equipment and storage medium | |
CN212343793U (en) | Backup processing system of RS485 ring network | |
WO2021136278A1 (en) | Message transmission method and electronic device |
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 |