CN113630187B - PHY initialization method, system, equipment and medium - Google Patents
PHY initialization method, system, equipment and medium Download PDFInfo
- Publication number
- CN113630187B CN113630187B CN202110840702.0A CN202110840702A CN113630187B CN 113630187 B CN113630187 B CN 113630187B CN 202110840702 A CN202110840702 A CN 202110840702A CN 113630187 B CN113630187 B CN 113630187B
- Authority
- CN
- China
- Prior art keywords
- optical module
- state
- phy
- detecting
- module
- 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
- 238000011423 initialization method Methods 0.000 title claims abstract description 9
- 230000003287 optical effect Effects 0.000 claims abstract description 265
- 230000004044 response Effects 0.000 claims abstract description 39
- 238000003860 storage Methods 0.000 claims abstract description 11
- 238000004886 process control Methods 0.000 claims abstract description 5
- 238000000034 method Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 3
- 239000013307 optical fiber Substances 0.000 abstract description 14
- 230000002159 abnormal effect Effects 0.000 abstract description 11
- 230000007488 abnormal function Effects 0.000 abstract description 10
- 238000011065 in-situ storage Methods 0.000 abstract description 7
- 230000009471 action Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000013154 diagnostic monitoring Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/40—Transceivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/25—Arrangements specific to fibre transmission
-
- 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/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Optical Communication System (AREA)
Abstract
The invention discloses a PHY initialization method, which comprises the following steps: detecting the on-position state of the optical module; in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module; judging whether the optical module is in a lost state or not; responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not; in response to no preset report being generated, the signal receiver is turned off and it is redetected whether the light module is in a lost state. The invention also discloses a system, a computer device and a readable storage medium. The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.
Description
Technical Field
The present invention relates to the field of initialization, and in particular, to a PHY initialization method, system, device, and storage medium.
Background
With the improvement of the requirements on the communication rate and the transmission distance, there are more and more scenes using optical fibers as transmission media in a computer network, and meanwhile, an optical module is also required to receive optical signals, and after optical/electrical signal conversion, electrical signals are sent to the PHY through an optical module interface. The optical module is usually independent from the optical module interface as a module, and the optical module is connected to the optical module interface and can be hot-plugged. When the optical module is inserted into the optical module interface, the PHY connected to the other end of the optical module interface and the optical signal connected to the optical module also need to operate in a correct state, and the link can be correctly connected.
In the prior art, the optical module can be pulled out from the optical module interface at any time, and the optical fiber can also be pulled out from the optical module at any time, which means that for the optical signal receiving end of the optical module, the optical signal is unstable, and the unstable optical signal can cause the electrical signal sent by the optical module to the optical module interface and the PHY signal to be unstable. An error may be generated after the unstable electrical signal is received by the PHY chip, so that the PHY chip considers that an error occurs on the communication link or the Serdes receiver inside the PHY chip is abnormal, and stays in an error state.
Therefore, before and after the optical fiber or the optical module is plugged, the optical module interface and the PHY chip do not take specific logic actions, and the Serdes transmitter and the receiver connected to the optical module interface and the optical module on the PHY chip are always in a working state, so that the abnormality of plugging and unplugging the optical module and the optical fiber to the local interface and the interface opposite-end interface cannot be avoided. The abnormality may cause errors on the PHY chip or the PHY may fail to communicate properly.
Disclosure of Invention
In view of the above, in order to overcome at least one aspect of the above problems, an embodiment of the present invention provides a PHY initialization method, including the following steps:
detecting the on-position state of the optical module;
in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module;
judging whether the optical module is in a lost state;
responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not;
in response to no preset report being generated, the signal receiver is turned off and it is redetected whether the light module is in a lost state.
In some embodiments, further comprising:
responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.
In some embodiments, further comprising:
and in response to detecting that the optical module is changed from the on-bit state to the off-bit state, controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module.
In some embodiments, detecting an in-place status of a light module further comprises:
detecting the level of an in-place pin of the optical module;
and confirming that the optical module is detected to be in the in-place state in response to the fact that the number of times of continuously detecting that the level of the in-place pin is low reaches a preset number of times.
In some embodiments, determining whether the light module is in a lost state further comprises:
detecting a first register of the optical module;
and judging whether the optical module is in a lost state or not according to the value of the first register.
In some embodiments, determining whether the light module is in a lost state further comprises:
acquiring DDM information in the optical module;
and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.
In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:
detecting whether the PCS layer generates a connection establishment report.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a PHY initialization system, including:
the first detection module is configured to detect the in-place state of the optical module;
a control module configured to control the PHY to turn on a signal transmitter corresponding to the optical module in response to detecting that the optical module is in an in-place state;
the judging module is configured to judge whether the optical module is in a lost state;
a second detection module configured to control the PHY to turn on a signal receiver corresponding to the optical module in response to the optical module not being in a lost state, and detect whether a PCS layer in the PHY generates a preset report;
a processing module configured to turn off the signal receiver and re-detect whether the optical module is in a lost state in response to no preset report being generated.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer apparatus, including:
at least one processor; and
a memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of:
detecting the on-position state of the optical module;
in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module;
judging whether the optical module is in a lost state or not;
responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not;
in response to no preset report being generated, the signal receiver is turned off and it is redetected whether the light module is in a lost state.
In some embodiments, further comprising:
responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.
In some embodiments, further comprising:
and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.
In some embodiments, detecting an in-place status of a light module further comprises:
detecting the level of an in-place pin of the optical module;
and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.
In some embodiments, determining whether the light module is in a lost state further comprises:
detecting a first register of the optical module;
and judging whether the optical module is in a lost state or not according to the value of the first register.
In some embodiments, determining whether the light module is in a lost state further comprises:
acquiring DDM information in the optical module;
and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.
In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:
detecting whether the PCS layer generates a connection establishment report.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of:
detecting the on-position state of the optical module;
in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module;
judging whether the optical module is in a lost state or not;
responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not;
in response to no preset report being generated, the signal receiver is turned off and it is redetected whether the light module is in a lost state.
In some embodiments, further comprising:
responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.
In some embodiments, further comprising:
and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.
In some embodiments, detecting an in-place status of a light module further comprises:
detecting the level of an in-place pin of the optical module;
and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.
In some embodiments, determining whether the light module is in a lost state further comprises:
detecting a first register of the optical module;
and judging whether the optical module is in a lost state or not according to the value of the first register.
In some embodiments, determining whether the light module is in a lost state further comprises:
acquiring DDM information in the optical module;
and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.
In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:
detecting whether the PCS layer generates a connection establishment report.
The invention has one of the following beneficial technical effects: the scheme provided by the invention defines a set of PHY initialization flow by identifying the in-place signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the optical module interface or the plugging and unplugging and loosening of the optical fiber on the optical module.
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 only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a PHY initialization method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a connection structure between a PHY and an optical module interface according to an embodiment of the present invention;
fig. 3 is a flow chart of a PHY initialization method according to an embodiment of the present invention; (ii) a
Fig. 4 is a schematic structural diagram of a PHY initialization system according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a computer device provided in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In the embodiment of the present invention, LOS refers to Lost of Signal, and a Signal or register in the optical module is used to indicate that the optical module does not receive an optical Signal at this time; PCS refers to Physical Coding Sublayer, here defined in IEEE 802.3; PMA refers to Physical Medium Attachment, here the Physical media Attachment sublayer defined in IEEE 802.3; PHY is a Physical layer defined in IEEE802.3, includes sublayers such as PCS and PMA, and is a Physical layer in a device in a communication link, and realizes a function of transmitting and receiving signals on a communication medium. DDM refers to Digital Diagnostic Monitoring, and Digital Diagnostic function is defined by SFF-8472.
According to an aspect of the present invention, an embodiment of the present invention provides a PHY initialization method, as shown in fig. 1, which may include the steps of:
s1, detecting the in-place state of the optical module;
s2, in response to the fact that the optical module is detected to be in the in-place state, controlling the PHY to turn on a signal transmitter corresponding to the optical module;
s3, judging whether the optical module is in a lost state;
s4, responding to the optical module not being in the loss state, controlling the PHY to open a signal receiver corresponding to the optical module, and detecting whether a PCS layer in the PHY generates a preset report;
and S5, responding to the condition that no preset report is generated, turning off the signal receiver and re-detecting whether the optical module is in a loss state.
The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.
In some embodiments, as shown in FIG. 2, the optical module includes an LOS register and physical in-place signal pins. When the optical module is inserted into the optical module interface, the on-site signal on the optical module interface is driven to a low level by the optical module. After the device is started, the controller detects the presence signal on the optical module interface in a fixed period, and judges whether the optical module is accessed, and if the controller detects that the presence state of the optical module is changed from "not in place" (corresponding to the high level of the presence signal) to "in place" (corresponding to the low level of the signal), the controller needs to execute an initialization action. If the controller detects that the in-place signal changes from in-place to out-of-place, the closing action needs to be executed. The act of detecting the presence signal is therefore always performed after the device has been started.
In some embodiments, further comprising:
responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.
In some embodiments, further comprising:
and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.
In some embodiments, detecting an in-place status of a light module further comprises:
detecting the level of an in-place pin of the optical module;
and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.
In some embodiments, determining whether the light module is in a lost state further comprises:
detecting a first register of the optical module;
and judging whether the optical module is in a lost state or not according to the value of the first register.
In some embodiments, determining whether the light module is in a lost state further comprises:
acquiring DDM information in the optical module;
and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.
In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:
detecting whether the PCS layer generates a connection establishment report.
Specifically, as shown in fig. 3, when it is detected that the optical module is changed from the non-live state to the live state, the optical module that needs to perform the reset operation according to the protocol standard is reset. And then the controller turns on a signal transmitter corresponding to the PHY chip and the optical module and transmits a signal to the optical module. The controller judges whether the optical module is in an LOS state at the moment, if not, the controller enters the next step, the electric signal receiver of the PHY chip is turned on to prepare to receive the electric signal converted from the optical signal from the optical module, if the optical module is still in the LOS state, the controller waits for time t2 to detect whether the optical module is in the LOS state again, and the steps are repeated until the LOS state is released. If the LOS state is released, after waiting t1, it is detected whether the physical layer chip reports that the link connection is established (i.e., link up), and if the link connection is reported to be established, the controller may consider the port link up at this time to notify the program using the optical module interface that the optical module interface can normally communicate. If the PCS in the PHY does not report link up or reports HI-BER or Fault state defined in IEEE802.3, the electric signal receiver of the optical module corresponding to the PHY chip is closed, and the LOS state is detected again.
The LOS state can access the LOS register of the optical module through the LOS pin or the I2C bus of the optical module, and for the optical module supporting DDM information acquisition, the received optical power in DDM information in the optical module can be preferably accessed through the I2C bus for judgment, the judgment standard can be a predefined value, or an LOS optical power early warning value recorded in DDM information of the optical module, and when the received optical power in DDM information is smaller than a preset value or an early warning value, the LOS state is judged. These registers for DDM information are defined by the optical module standard.
And after the optical module is detected to be changed from the in-position to the out-of-position, the receiver and the transmitter corresponding to the PHY and the optical module are turned off.
For the detection of the on-bit signal, the controller may repeatedly detect the on-bit signal, each time the detection interval is t3, and if the on-bit signal is detected to be in the "on-bit" (low) state 3 times or other times defined, the on-bit signal is considered to be in the on-bit state, otherwise, the on-bit state is not detected.
The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a PHY initialization system 400, as shown in fig. 4, including:
a first detection module 401 configured to detect an in-place state of a light module;
a control module 402 configured to control the PHY to turn on a signal transmitter corresponding to a light module in response to detecting that the light module is in a presence state;
a determining module 403 configured to determine whether the optical module is in a lost state;
a second detection module 404, configured to, in response to that the optical module is not in a lost state, control the PHY to turn on a signal receiver corresponding to the optical module, and detect whether a preset report is generated by a PCS layer in the PHY;
a processing module 405 configured to turn off the signal receiver and re-detect whether a light module is in a lost state in response to no preset report being generated.
The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.
In some embodiments, further comprising:
responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.
In some embodiments, further comprising:
and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.
In some embodiments, detecting an in-place status of a light module further comprises:
detecting the level of an in-place pin of the optical module;
and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.
In some embodiments, determining whether the light module is in a lost state further comprises:
detecting a first register of the optical module;
and judging whether the optical module is in a lost state or not according to the value of the first register.
In some embodiments, determining whether the light module is in a lost state further comprises:
acquiring DDM information in the optical module;
and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.
In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:
detecting whether the PCS layer generates a connection establishment report.
The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-place signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the optical module interface or the plugging and unplugging and loosening of the optical fiber on the optical module.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 5, an embodiment of the present invention further provides a computer apparatus 501, comprising:
at least one processor 520; and
a memory 510, the memory 510 storing a computer program 511 executable on the processor, the processor 520 executing the program to perform the steps of:
s1, detecting the on-position state of the optical module;
s2, in response to the fact that the optical module is detected to be in the in-place state, controlling the PHY to turn on a signal transmitter corresponding to the optical module;
s3, judging whether the optical module is in a lost state;
s4, responding to the optical module not being in the loss state, controlling the PHY to open a signal receiver corresponding to the optical module, and detecting whether a PCS layer in the PHY generates a preset report;
and S5, responding to the condition that no preset report is generated, turning off the signal receiver and re-detecting whether the optical module is in a loss state.
The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.
In some embodiments, further comprising:
responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.
In some embodiments, further comprising:
and in response to detecting that the optical module is changed from the on-bit state to the off-bit state, controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module.
In some embodiments, detecting an in-place status of a light module further comprises:
detecting the level of an in-place pin of the optical module;
and confirming that the optical module is detected to be in the in-place state in response to the fact that the number of times of continuously detecting that the level of the in-place pin is low reaches a preset number of times.
In some embodiments, determining whether the light module is in a lost state further comprises:
detecting a first register of the optical module;
and judging whether the optical module is in a lost state or not according to the value of the first register.
In some embodiments, determining whether the light module is in a lost state further comprises:
acquiring DDM information in the optical module;
and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.
In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:
detecting whether the PCS layer generates a connection establishment report.
The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 6, an embodiment of the present invention further provides a computer-readable storage medium 601, where the computer-readable storage medium 601 stores computer program instructions 610, and the computer program instructions 610, when executed by a processor, perform the following steps:
s1, detecting the on-position state of the optical module;
s2, in response to the fact that the optical module is detected to be in the in-place state, controlling the PHY to turn on a signal transmitter corresponding to the optical module;
s3, judging whether the optical module is in a lost state;
s4, responding to the optical module not being in the loss state, controlling the PHY to open a signal receiver corresponding to the optical module, and detecting whether a PCS layer in the PHY generates a preset report;
and S5, responding to the condition that no preset report is generated, turning off the signal receiver and re-detecting whether the optical module is in a loss state.
The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-place signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the optical module interface or the plugging and unplugging and loosening of the optical fiber on the optical module.
In some embodiments, further comprising:
responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.
In some embodiments, further comprising:
and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.
In some embodiments, detecting an in-place status of a light module further comprises:
detecting the level of an in-place pin of the optical module;
and confirming that the optical module is detected to be in the in-place state in response to the fact that the number of times of continuously detecting that the level of the in-place pin is low reaches a preset number of times.
In some embodiments, determining whether the light module is in a lost state further comprises:
detecting a first register of the optical module;
and judging whether the optical module is in a lost state or not according to the value of the first register.
In some embodiments, determining whether the light module is in a lost state further comprises:
acquiring DDM information in the optical module;
and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.
In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:
detecting whether the PCS layer generates a connection establishment report.
The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.
Claims (8)
1. A PHY initialization method, comprising the steps of:
detecting the on-position state of the optical module;
in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module;
judging whether the optical module is in a lost state or not;
responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not;
in response to no preset report being generated, turning off the signal receiver and re-detecting whether the optical module is in a lost state;
responding to the optical module being in the loss state, and detecting whether the optical module is in the loss state again at intervals of a preset time period until the optical module is not in the loss state;
and in response to detecting that the optical module is changed from the on-bit state to the off-bit state, controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module.
2. The method of claim 1, wherein detecting an in-place status of a light module, further comprises:
detecting the level of an in-place pin of the optical module;
and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.
3. The method of claim 1, wherein determining whether the optical module is in a lost state further comprises:
detecting a first register of the optical module;
and judging whether the optical module is in a lost state or not according to the value of the first register.
4. The method of claim 1, wherein determining whether the optical module is in a lost state further comprises:
acquiring DDM information in the optical module;
and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.
5. The method of claim 1, wherein detecting whether a preset report is generated by a PCS layer in the PHY, further comprises:
detecting whether the PCS layer generates a connection establishment report.
6. A PHY initialization system, comprising:
the first detection module is configured to detect the in-place state of the optical module;
a control module configured to control the PHY to turn on a signal transmitter corresponding to the optical module in response to detecting that the optical module is in an in-place state;
the judging module is configured to judge whether the optical module is in a lost state;
a second detection module configured to control the PHY to turn on a signal receiver corresponding to the optical module in response to the optical module not being in a lost state, and detect whether a PCS layer in the PHY generates a preset report;
a processing module configured to turn off the signal receiver and re-detect whether the optical module is in a lost state in response to no preset report being generated;
responding to the optical module being in the loss state, and detecting whether the optical module is in the loss state again at intervals of a preset time period until the optical module is not in the loss state;
and in response to detecting that the optical module is changed from the on-bit state to the off-bit state, controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module.
7. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, characterized in that the processor executes the program to perform the steps of the method according to any of claims 1-5.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110840702.0A CN113630187B (en) | 2021-07-25 | 2021-07-25 | PHY initialization method, system, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110840702.0A CN113630187B (en) | 2021-07-25 | 2021-07-25 | PHY initialization method, system, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113630187A CN113630187A (en) | 2021-11-09 |
CN113630187B true CN113630187B (en) | 2022-06-10 |
Family
ID=78380944
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110840702.0A Active CN113630187B (en) | 2021-07-25 | 2021-07-25 | PHY initialization method, system, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113630187B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114553695B (en) * | 2022-01-27 | 2024-02-09 | 新华三技术有限公司合肥分公司 | Chip configuration method and device |
CN116471507B (en) * | 2023-06-20 | 2023-09-12 | 苏州浪潮智能科技有限公司 | Switch data communication method, device, switch and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112825050A (en) * | 2019-11-21 | 2021-05-21 | 中兴通讯股份有限公司 | Method and system for accessing optical module register |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4417217B2 (en) * | 2004-09-30 | 2010-02-17 | 三菱電機株式会社 | Optical transceiver module |
CN101039148B (en) * | 2007-02-07 | 2011-04-06 | 华为技术有限公司 | Optical module and method and network equipment for supporting GE optical connector and FE optical connector |
CN101583054A (en) * | 2009-06-12 | 2009-11-18 | 中兴通讯股份有限公司 | Method for realizing that optical interface supports multiple rate patterns by adopting optical module and device |
CN103501239B (en) * | 2013-09-13 | 2017-01-04 | 华为技术有限公司 | A kind of port status synchronous method, relevant device and system |
CN103532541B (en) * | 2013-09-30 | 2017-02-22 | 上海斐讯数据通信技术有限公司 | Light module power supply control method and system |
CN107947777B (en) * | 2017-11-20 | 2021-06-22 | 青岛海信宽带多媒体技术有限公司 | Reset circuit of optical module, optical module and optical network terminal |
US10530559B2 (en) * | 2017-11-28 | 2020-01-07 | Marvell World Trade Ltd. | Ethernet transceiver with PHY-level signal-loss detector |
CN110417464B (en) * | 2019-07-18 | 2021-01-15 | 锐捷网络股份有限公司 | Fault processing method and device, computer device and readable storage medium |
CN110880952A (en) * | 2019-10-23 | 2020-03-13 | 浪潮思科网络科技有限公司 | Switch interface rate self-adaptive tuning system, method, equipment and medium |
CN111147401B (en) * | 2019-12-20 | 2022-03-22 | 苏州浪潮智能科技有限公司 | PHY card hot plug method and device |
CN111417034B (en) * | 2020-03-13 | 2022-02-18 | 苏州浪潮智能科技有限公司 | Switch and hot plug method, device and system for switch board card thereof |
-
2021
- 2021-07-25 CN CN202110840702.0A patent/CN113630187B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112825050A (en) * | 2019-11-21 | 2021-05-21 | 中兴通讯股份有限公司 | Method and system for accessing optical module register |
Non-Patent Citations (2)
Title |
---|
Niu, XM (Niu, Xingmao) ; Xue, HY (Xue, Haiyun).100Gbps chip-level optical interconnect integrated packaging design.《21st International Conference on Electronic Packaging Technology (ICEPT)》.2020, * |
光电自适应通信技术在频谱监测中的应用;刘红;《通信技术》;20130910(第09期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113630187A (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106603265B (en) | Management method, network device, and non-transitory computer-readable medium | |
US8755285B2 (en) | Method, system and apparatus for diagnosing physical downlink failure | |
CN113630187B (en) | PHY initialization method, system, equipment and medium | |
CN111176939B (en) | Multi-node server management system and method based on CPLD | |
KR101185971B1 (en) | Communication system, test device, communication device, communication method, and test method | |
US11012150B2 (en) | Autonomous failure recovery method and system for fiber-optic communication system | |
US8737419B2 (en) | Network concentrator and method of controlling the same | |
US7719992B1 (en) | System for proactive time domain reflectometry | |
CN117472625A (en) | Method and device for determining abnormal information of PCIE link | |
US10956269B2 (en) | Electronic data-distribution control unit and method for operating such a control unit | |
CN110247833B (en) | Communication control method, device, sub-equipment and communication system | |
KR101473144B1 (en) | Semiconductor test method and system based on controller area network | |
JP2010245589A (en) | Communication system, communication device, method for specifying suspect portion, and program | |
CN113009246B (en) | PSE device detection device and PSE device detection method | |
CN116137603A (en) | Link fault detection method and device, storage medium and electronic device | |
CN117135029A (en) | Communication fault processing method, system and equipment | |
JP3952387B2 (en) | Network processing apparatus and setting method | |
US10419551B2 (en) | Network device and auto detecting method for direct link thereof | |
CN116719712B (en) | Processor serial port log output method and device, electronic equipment and storage medium | |
US11652715B1 (en) | Method for detecting network mis-cabling | |
JPH11261615A (en) | Double loop type data transmitter | |
CN118631700A (en) | Method, device, product and server cluster system for detecting BMC connectivity | |
CN108134689B (en) | Method and device for checking faults of cascade interface inside frame type equipment | |
JP2007189435A (en) | Monitoring device | |
KR101858437B1 (en) | Apparatus for remote power control using link signal and the method thereof |
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 |