CN113630187A - PHY initialization method, system, equipment and medium - Google Patents

PHY initialization method, system, equipment and medium Download PDF

Info

Publication number
CN113630187A
CN113630187A CN202110840702.0A CN202110840702A CN113630187A CN 113630187 A CN113630187 A CN 113630187A CN 202110840702 A CN202110840702 A CN 202110840702A CN 113630187 A CN113630187 A CN 113630187A
Authority
CN
China
Prior art keywords
optical module
state
phy
module
detecting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110840702.0A
Other languages
Chinese (zh)
Other versions
CN113630187B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110840702.0A priority Critical patent/CN113630187B/en
Publication of CN113630187A publication Critical patent/CN113630187A/en
Application granted granted Critical
Publication of CN113630187B publication Critical patent/CN113630187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/40Transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration 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

PHY initialization method, system, equipment and medium
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:
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 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-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.
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 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, 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 on-position signal is changed from on-position to off-position, the closing action is required 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 linkup or does not report 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 to perform judgment, the judgment standard can be a predefined value, or an LOS optical power early warning value recorded in the DDM information of the optical module, and when the received optical power in the 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-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. 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 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-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-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-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 embodiments of the present invention are merely for description, and do not represent the merits 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 (10)

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, the signal receiver is turned off and it is redetected whether the light module is in a lost state.
2. The method of claim 1, further comprising:
and responding to the optical module being in the loss state, and 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.
3. The method of claim 1, 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.
4. 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.
5. 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.
6. 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.
7. 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.
8. 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;
the second detection module is used for responding to the fact that the optical module is not in a lost 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 or not;
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.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of the method according to any of claims 1-7.
10. 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 to 7.
CN202110840702.0A 2021-07-25 2021-07-25 PHY initialization method, system, equipment and medium Active CN113630187B (en)

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 true CN113630187A (en) 2021-11-09
CN113630187B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553695A (en) * 2022-01-27 2022-05-27 新华三技术有限公司合肥分公司 Chip configuration method and device
CN116471507A (en) * 2023-06-20 2023-07-21 苏州浪潮智能科技有限公司 Switch data communication method, device, switch and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069905A1 (en) * 2004-09-30 2006-03-30 Mitsubishi Denki Kabushiki Kaisha Optical transceiver module
CN101039148A (en) * 2007-02-07 2007-09-19 华为技术有限公司 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
CN103532541A (en) * 2013-09-30 2014-01-22 上海斐讯数据通信技术有限公司 Light module power supply control method and system
US20160197856A1 (en) * 2013-09-13 2016-07-07 Huawei Technologies Co., Ltd. Port Status Synchronization Method, Related Device, and System
CN107947777A (en) * 2017-11-20 2018-04-20 青岛海信宽带多媒体技术有限公司 Reset circuit and optical module, the ONT Optical Network Terminal of optical module
CN110417464A (en) * 2019-07-18 2019-11-05 锐捷网络股份有限公司 A kind of fault handling method and device, computer installation and readable storage medium storing program for executing
CN110800257A (en) * 2017-11-28 2020-02-14 马维尔国际贸易有限公司 Ethernet transceiver with PHY level loss of signal detector
CN110880952A (en) * 2019-10-23 2020-03-13 浪潮思科网络科技有限公司 Switch interface rate self-adaptive tuning system, method, equipment and medium
CN111147401A (en) * 2019-12-20 2020-05-12 苏州浪潮智能科技有限公司 PHY card hot plug method and device
CN111417034A (en) * 2020-03-13 2020-07-14 苏州浪潮智能科技有限公司 Switch and hot plug method, device and system for switch board card thereof
CN112825050A (en) * 2019-11-21 2021-05-21 中兴通讯股份有限公司 Method and system for accessing optical module register

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069905A1 (en) * 2004-09-30 2006-03-30 Mitsubishi Denki Kabushiki Kaisha Optical transceiver module
CN101039148A (en) * 2007-02-07 2007-09-19 华为技术有限公司 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
US20160197856A1 (en) * 2013-09-13 2016-07-07 Huawei Technologies Co., Ltd. Port Status Synchronization Method, Related Device, and System
CN103532541A (en) * 2013-09-30 2014-01-22 上海斐讯数据通信技术有限公司 Light module power supply control method and system
CN107947777A (en) * 2017-11-20 2018-04-20 青岛海信宽带多媒体技术有限公司 Reset circuit and optical module, the ONT Optical Network Terminal of optical module
CN110800257A (en) * 2017-11-28 2020-02-14 马维尔国际贸易有限公司 Ethernet transceiver with PHY level loss of signal detector
CN110417464A (en) * 2019-07-18 2019-11-05 锐捷网络股份有限公司 A kind of fault handling method and device, computer installation and readable storage medium storing program for executing
CN110880952A (en) * 2019-10-23 2020-03-13 浪潮思科网络科技有限公司 Switch interface rate self-adaptive tuning system, method, equipment and medium
CN112825050A (en) * 2019-11-21 2021-05-21 中兴通讯股份有限公司 Method and system for accessing optical module register
CN111147401A (en) * 2019-12-20 2020-05-12 苏州浪潮智能科技有限公司 PHY card hot plug method and device
CN111417034A (en) * 2020-03-13 2020-07-14 苏州浪潮智能科技有限公司 Switch and hot plug method, device and system for switch board card thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
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)》 *
刘红: "光电自适应通信技术在频谱监测中的应用", 《通信技术》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553695A (en) * 2022-01-27 2022-05-27 新华三技术有限公司合肥分公司 Chip configuration method and device
CN114553695B (en) * 2022-01-27 2024-02-09 新华三技术有限公司合肥分公司 Chip configuration method and device
CN116471507A (en) * 2023-06-20 2023-07-21 苏州浪潮智能科技有限公司 Switch data communication method, device, switch and storage medium
CN116471507B (en) * 2023-06-20 2023-09-12 苏州浪潮智能科技有限公司 Switch data communication method, device, switch and storage medium

Also Published As

Publication number Publication date
CN113630187B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
CN106603265B (en) Management method, network device, and non-transitory computer-readable medium
CN113630187B (en) PHY initialization method, system, equipment and medium
US8755285B2 (en) Method, system and apparatus for diagnosing physical downlink failure
CN110377469B (en) Detection system and method for PCIE (peripheral component interface express) equipment
US8140920B2 (en) Method and system for providing bit error rate characterization
CN108063687B (en) Method for judging fault node in CAN bus network
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
JP4988544B2 (en) Data processing apparatus, data processing method, and program
US7719992B1 (en) System for proactive time domain reflectometry
US10956269B2 (en) Electronic data-distribution control unit and method for operating such a control unit
KR101473144B1 (en) Semiconductor test method and system based on controller area network
CN116261067A (en) Method and device for processing Ethernet optical link fault
CN116137603A (en) Link fault detection method and device, storage medium and electronic device
CN116133021A (en) Wireless network card self-management flow based on LINUX board card
JP2010245589A (en) Communication system, communication device, method for specifying suspect portion, and program
CN113009246B (en) PSE device detection device and PSE device detection method
EP2775678B1 (en) Diagnostic port for inter-switch and node link testing in electrical, optical and remote loopback modes
US10419551B2 (en) Network device and auto detecting method for direct link thereof
JP3952387B2 (en) Network processing apparatus and setting method
US11652715B1 (en) Method for detecting network mis-cabling
CN108134689B (en) Method and device for checking faults of cascade interface inside frame type equipment
KR101858437B1 (en) Apparatus for remote power control using link signal and the method thereof
CN103346832B (en) A kind of detection method of Fiber connection state and 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