CN116471507B - Switch data communication method, device, switch and storage medium - Google Patents

Switch data communication method, device, switch and storage medium Download PDF

Info

Publication number
CN116471507B
CN116471507B CN202310730814.XA CN202310730814A CN116471507B CN 116471507 B CN116471507 B CN 116471507B CN 202310730814 A CN202310730814 A CN 202310730814A CN 116471507 B CN116471507 B CN 116471507B
Authority
CN
China
Prior art keywords
optical module
state
switch
data path
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310730814.XA
Other languages
Chinese (zh)
Other versions
CN116471507A (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 CN202310730814.XA priority Critical patent/CN116471507B/en
Publication of CN116471507A publication Critical patent/CN116471507A/en
Application granted granted Critical
Publication of CN116471507B publication Critical patent/CN116471507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Abstract

The application relates to a switch data communication method, a device, a switch and a storage medium. The method is applied to the switch, and the optical module is inserted into the switch, and comprises the following steps: when the optical module is detected to be normally in place, the optical module is controlled to enter a low-power consumption state; when the receiving switch of the PHY chip is detected to be in an unopened state, the optical module is controlled to release a low-power consumption state, the optical module is powered on normally, and the receiving switch is used for receiving a receiving signal sent by the optical module; when the optical module enters a module in-place state, acquiring a data path state of the optical module; when the data path state indicates that the optical module enters the data path activation state, the control PHY chip opens the receiving switch, so that data communication is carried out between the optical module and the switch. The method can effectively solve the problem of abnormal connection between the switch and the optical module.

Description

Switch data communication method, device, switch and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for data communication between switches, a switch, and a storage medium.
Background
An Optical Module (Optical Module) is an optoelectronic device that realizes photoelectric conversion and electro-Optical conversion functions as an important component in Optical fiber communication. The optical module can realize interconnection of the network card and the switch and interconnection of switches at different levels.
The related industry of the optical module formulates protocol specifications to restrict the characteristics of hardware interfaces, management interfaces, physical forms and the like of the module, so that each optical module manufacturer, the switch and the network card manufacturer can communicate ports according to the same specifications, and the compatibility of the optical module and the switch is improved. However, the compatibility problem between the optical module and the switch still cannot be completely guaranteed, and the problem that the optical module is plugged into a port of the switch to generate abnormal connection is still more common at present.
The main reason for this problem is that the PHY chip in the switch is completely adapted to the signal sent by the optical module by itself to receive the signal sent by the optical module completely passive by the switch, and the normal connection can not be completely limited by the performance of the PHY chip itself and the quality of the output signal of the optical module, so that the abnormal connection rate before the switch and the optical module is improved.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a switch data communication method, apparatus, switch, and storage medium that can effectively solve the problem of abnormal connection between the switch and the optical module.
A data communication method of a switch, the method being applied to the switch, an optical module being inserted into the switch, the method comprising:
when the optical module is detected to be normally in place, the optical module is controlled to enter a low-power consumption state;
when the receiving switch of the PHY chip is detected to be in an unopened state, the optical module is controlled to release a low-power consumption state, the optical module is powered on normally, and the receiving switch is used for receiving a receiving signal sent by the optical module;
when the optical module enters a module in-place state, acquiring a data path state of the optical module;
when the data path state indicates that the optical module enters the data path activation state, the control PHY chip opens the receiving switch, so that data communication is carried out between the optical module and the switch.
In one embodiment, the method further comprises: and when the receiving switch of the PHY chip is detected to be in an on state, the receiving switch of the PHY chip is turned off.
In one embodiment, when detecting that the optical module is in place, controlling the optical module to enter a low power consumption state includes: when the optical module is detected to be normally in place, the optical module is controlled to enter a low-power-consumption state through the low-power-consumption state control pin.
In one embodiment, when detecting that the optical module is in place, before controlling the optical module to enter the low power consumption state, the method further includes: detecting whether the optical module is normally in place, executing a step of controlling the optical module to enter a low power consumption state when the optical module is detected to be normally in place, and pulling out the optical module from the switch and reinserting the optical module into the switch when the optical module is detected to be abnormally in place.
In one embodiment, when detecting that the receiving switch of the PHY chip is in an unopened state, controlling the optical module to release the low power consumption state, and performing normal power-up of the optical module includes: and acquiring a switch state corresponding to a receiving switch of the PHY chip, judging whether the receiving switch is started to receive a receiving signal sent by the optical module according to the switch state, and controlling the optical module to release a low-power consumption state when the receiving switch is not started, wherein the optical module is powered on normally, and then works normally after the power on is successful.
In one embodiment, when the optical module enters the module in-place state, acquiring the data path state of the optical module includes: and after the optical module is powered on, the optical module enters a module in-place state, and the data path state of marking the quality of the output signal in the optical module is identified.
In one embodiment, identifying a data path state in an optical module that marks the quality of an output signal includes: accessing a register of an internal marking data path of the optical module through an I2C path of the optical module, and acquiring the state of the data path according to the register.
In one embodiment, when the data path state indicates that the optical module enters the data path active state, the control PHY chip turns on the receiving switch, including: and judging whether the optical module enters a data path activation state according to the data path state, and modifying a receiving switch of the PHY chip from an off state to an on state when the data path state indicates that the optical module enters the data path activation state.
In one embodiment, determining whether the optical module enters the data path activation state according to the data path state includes: acquiring a first data path state corresponding to the optical module, judging whether the optical module is in a data path inactive state according to the first data path state, acquiring a second data path state corresponding to the optical module when the optical module is not in the data path inactive state, judging whether the optical module is in a data path initialization state according to the second data path state, acquiring a third data path state corresponding to the optical module when the optical module is not in the data path initialization state, and judging whether the optical module enters the data path active state according to the data path state.
In one embodiment, the method further comprises: and when the data path state indicates that the optical module does not enter the data path activation state, acquiring preset waiting time, and after the preset waiting time, returning to execute the step of acquiring the data path state of the optical module until the data path state indicates that the optical module enters the data path activation state.
In one embodiment, modifying the receive switch of the PHY chip from an off state to an on state includes: and sending an opening command to the PHY chip, and modifying the receiving switch from the closed state to the open state through the PHY chip according to the opening command.
In one embodiment, modifying the receive switch of the PHY chip from an off state to an on state includes: the receive switch of the PHY chip is modified from an off state to an on state by a complex programmable logic device.
In one embodiment, the control PHY chip turns on the receiving switch, so that data communication is performed between the optical module and the switch, including: and receiving the signal sent by the optical module, and decoding the signal to obtain a signal processing result.
In one embodiment, acquiring the data path state of the optical module includes: and reading a register corresponding to the optical module through the complex programmable logic device, and acquiring the data path state from the register through the complex programmable logic device.
In one embodiment, the optical module is an optoelectronic device that performs both photoelectric and electro-optic conversion functions.
In one embodiment, the optical module is inserted into the switch, so as to realize interconnection between the network card of the server and the switch or interconnection between the switch and other switches.
In one embodiment, the switch performs data communication with the optical modules of other switches through the optical modules, so as to realize interconnection between the switch and the other switches.
A data communication device for a switch, the device being applied to the switch, an optical module being inserted into the switch, the device comprising:
the first detection module is used for controlling the optical module to enter a low-power consumption state when detecting that the optical module is normally in place;
the second detection module is used for controlling the optical module to release the low-power consumption state when detecting that the receiving switch of the PHY chip is in an unopened state, the optical module is powered on normally, and the receiving switch is used for receiving a receiving signal sent by the optical module;
the acquisition module is used for acquiring the data path state of the optical module when the optical module enters the module in-place state;
and the control module is used for controlling the PHY chip to start the receiving switch when the data path state indicates that the optical module enters the data path activation state, so that data communication is carried out between the optical module and the switch.
A switch comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
when the optical module is detected to be normally in place, the optical module is controlled to enter a low-power consumption state;
when the receiving switch of the PHY chip is detected to be in an unopened state, the optical module is controlled to release a low-power consumption state, the optical module is powered on normally, and the receiving switch is used for receiving a receiving signal sent by the optical module;
when the optical module enters a module in-place state, acquiring a data path state of the optical module;
when the data path state indicates that the optical module enters the data path activation state, the control PHY chip opens the receiving switch, so that data communication is carried out between the optical module and the switch.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
when the optical module is detected to be normally in place, the optical module is controlled to enter a low-power consumption state;
when the receiving switch of the PHY chip is detected to be in an unopened state, the optical module is controlled to release a low-power consumption state, the optical module is powered on normally, and the receiving switch is used for receiving a receiving signal sent by the optical module;
When the optical module enters a module in-place state, acquiring a data path state of the optical module;
when the data path state indicates that the optical module enters the data path activation state, the control PHY chip opens the receiving switch, so that data communication is carried out between the optical module and the switch.
According to the switch data communication method, device, switch and storage medium, when the optical module is inserted into the switch, whether the optical module is normally in place is detected, when the optical module is detected to be normally in place, the optical module is controlled to enter a low power consumption state, at the moment, the optical module cannot work normally, whether a receiving switch of the PHY chip is started is detected again, when the receiving switch of the PHY chip is not started, the switch cannot receive a receiving signal sent by the optical module, at the moment, the low power consumption state of the optical module is relieved, the optical module is normally powered on, when the signal quality output by the optical module is optimal, the receiving chip of the PHY chip is started again, data transmission between the optical module and the switch is achieved, connection abnormality between the switch and the optical module can be effectively solved, and connection abnormality rate between the switch and the optical module is reduced.
Drawings
FIG. 1 is a flow diagram of a method of switch data communication in one embodiment;
FIG. 2 is a schematic diagram of a method of communicating switch data in one embodiment;
FIG. 3 is a block diagram of a switch data communications device in one embodiment;
FIG. 4 is an internal block diagram of a switch in one embodiment;
fig. 5 is an internal block diagram of a switch in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, as shown in fig. 1, a method for data communication of a switch is provided, and the method is applied to the switch for example, and the optical module is inserted into the switch, and includes the following steps:
and 102, when the optical module is detected to be in place normally, controlling the optical module to enter a low power consumption state.
The Optical Module (Optical Module) is used as an important component in Optical fiber communication and is an optoelectronic device for realizing photoelectric conversion and electro-Optical conversion functions, and the Optical Module can realize interconnection of a network card and a switch and interconnection of switches at different levels.
Specifically, when the optical module is inserted into the switch, the switch detects whether the optical module is normally in place, that is, the optical module is inserted into the correct position in the switch and is normally connected, when the switch detects that the optical module is normally in place, the optical module is controlled to directly enter a low power consumption state, and when the optical module is inserted into the switch, the optical module enters a starting state and then enters the low power consumption state after a period of time, so that when the switch detects that the optical module is normally in place, the optical module is controlled to directly enter the low power consumption state.
In one embodiment, step 102 includes: when the optical module is detected to be normally in place, the optical module is controlled to enter a low-power-consumption state through the low-power-consumption state control pin.
The switch control optical module directly enters the low power consumption state through the low power consumption state control pin control, the starting state and the low power consumption state of the optical module are connected with the switch through corresponding pins, and the switch can control the optical module to enter the low power consumption state (moduleLowPwr) through the low power consumption state control pin corresponding to the low power consumption state. The optical module enters a low power consumption state, and in the state, the optical module cannot work normally, namely, the optical module cannot send any signal to the switch at the moment, and any data communication cannot be carried out between the optical module and the switch.
And 104, when the receiving switch of the PHY chip is detected to be in an unopened state, controlling the optical module to release the low-power-consumption state, and enabling the optical module to be normally powered on, wherein the receiving switch is used for receiving a receiving signal sent by the optical module.
When the optical module enters a low power consumption state and cannot normally work, the switch needs to detect the state corresponding to the receiving switch of the PHY chip (Port Physical Layer, the state corresponding to the receiving switch of the port physical layer) can be used for determining whether to release the low power consumption state of the optical module, so that if the state corresponding to the receiving switch of the PHY chip is on, the low power consumption state of the optical module is released, the optical module can normally work, the switch receives a signal sent by the optical module through the receiving switch of the PHY chip, and if the quality of the signal sent by the optical module is poor, abnormal connection between the switch and the optical module can be caused, and therefore, when the optical module cannot normally work, the switch detects the state corresponding to the receiving switch of the PHY chip.
The receiving switch is used for receiving a receiving signal sent by the optical module in the switch, and data communication between the switch and the optical module can be controlled through the state of the receiving switch. Specifically, when the switch detects that the state corresponding to the receiving switch of the PHY chip is not turned on, it is indicated that signal transmission is not performed between the switch and the optical module, so that the low-power consumption state of the optical module can be relieved, and the optical module is powered on normally.
In one embodiment, step 104 includes: and when the receiving switch of the PHY chip is detected to be in an on state, the receiving switch of the PHY chip is turned off.
If the switch detects that the state corresponding to the receiving switch of the PHY chip is in the on state, it indicates that the switch and the optical module can perform signal transmission through the receiving switch of the PHY chip, so that if the low-power consumption state of the optical module is released at this time, the switch is easily affected by the signal quality of the optical module, and therefore the receiving switch of the PHY chip that has been turned on needs to be turned off, specifically, when the switch detects that the receiving switch of the PHY chip is in the on state, the receiving switch of the PHY chip can be turned off temporarily.
And step 106, when the optical module enters the module in-place state, acquiring the data path state of the optical module.
After the switch releases the low power consumption state of the optical module, the optical module is normally powered on, when the optical module is powered on successfully, the optical module can enter a module in-place state, and when the optical module enters the module in-place state, the optical module is ready for working, but the optical module does not represent that the optical module can stably perform data transmission even after entering the module in-place state, but only represents that all parts of the optical module are powered on normally, but for a data path, a laser, a PD chip and a DSP chip are powered on only after the optical module performs the module in-place state, so that the output signal quality cannot be ensured in the initial power-on stage of the optical module, and therefore, the signal quality of the data path is self-checked inside the optical module, and the corresponding data path state is generated.
Further, the switch can determine whether the optical module enters a formal readiness state through the data path state generated by the optical module, and at this time, the signal quality output by the optical module is guaranteed. The data path state is a state of a data path embodying the optical module and can be obtained through a state of a data path state machine.
And step 108, when the data path state indicates that the optical module enters the data path activation state, the control PHY chip opens the receiving switch so that data communication is carried out between the optical module and the switch.
Specifically, when the data path state read by the switch indicates that the optical module enters the data path activation state, it is indicated that the optical module is ready at the moment, and at the moment, the signal quality output by the optical module is guaranteed, so that a receiving switch of the PHY chip can be turned on, and data communication can be performed between the optical module and the switch, and when the signal quality of the optical module reaches the standard, the signal receiving of the PHY chip is turned on, so that the problem of abnormal connection between the optical module and the switch can be effectively solved, and the signal quality output by the optical module is improved.
In the switch data communication method, when the optical module is inserted into the switch, whether the optical module is normally in place is detected, when the optical module is detected to be normally in place, the optical module is controlled to enter a low power consumption state, at the moment, the optical module cannot normally work, whether a receiving switch of the PHY chip is started is detected, when the receiving switch of the PHY chip is not started, the switch cannot receive a receiving signal sent by the optical module, at the moment, the low power consumption state of the optical module is relieved, the optical module is normally electrified to work, when the quality of the signal output by the optical module is optimal, the receiving chip of the PHY chip is opened, data transmission between the optical module and the switch is realized, abnormal connection between the switch and the optical module can be effectively solved, and abnormal connection rate between the switch and the optical module is reduced.
In one embodiment, when detecting that the optical module is in place, before controlling the optical module to enter the low power consumption state, the method further comprises: detecting whether the optical module is normally in place, executing a step of controlling the optical module to enter a low power consumption state when the optical module is detected to be normally in place, and pulling out the optical module from the switch and reinserting the optical module into the switch when the optical module is detected to be abnormally in place.
However, there is a possibility that the optical module is inserted into a position of the switch, and the optical module is inserted into a wrong position, loose insertion of the optical module, or other problems. Specifically, whether the optical module is inserted normally or not is detected, when the optical module is detected to be normally in place, a step of controlling the optical module to enter a low power consumption state can be executed, otherwise, when the detected optical module is abnormally in place, a step of controlling the optical module to enter the low power consumption state cannot be executed, and the optical module needs to be pulled out of the switch and reinserted to a correct position in the switch. Wherein, abnormal bit includes error of insertion position of optical module, loose insertion of optical module, or quality problem of optical module.
In one embodiment, when detecting that the receiving switch of the PHY chip is in an unopened state, controlling the optical module to release the low power consumption state, and performing normal power-up of the optical module includes: and acquiring a switch state corresponding to a receiving switch of the PHY chip, judging whether the receiving switch is started to receive a receiving signal sent by the optical module according to the switch state, and controlling the optical module to release a low-power consumption state when the receiving switch is detected to be in a non-started state, wherein the optical module is powered on normally, and then works normally after the power on is successful.
Specifically, the switch detects a switch state corresponding to a receiving switch of the PHY chip, where the receiving switch of the PHY chip is used to receive a receiving signal sent by the optical module, and the switch can determine whether the PHY chip starts to receive the receiving signal sent by the optical module according to the switch state of the receiving switch of the PHY chip, so as to determine whether the low power consumption state of the optical module can be released. Further, when the switch state of the receiving switch of the PHY chip indicates that the PHY does not start receiving signals sent by the optical module, the optical module can be controlled to release the low-power-consumption state, and even if the signal quality output by the optical module is relatively poor at present, the switch is not affected, so that the low-power-consumption state of the optical module can be released, the optical module can be powered on normally, and the optical module can work normally after the power-on is successful.
In one embodiment, when the optical module enters a module in-place state, acquiring the data path state of the optical module includes: and after the optical module is powered on, the optical module enters a module in-place state, and the data path state of marking the quality of the output signal in the optical module is identified.
Specifically, when the switch releases the low power consumption state of the optical module, the optical module is powered on normally, after the power on is successful, the optical module can work normally, and the state corresponding to the optical module is the module in-place state at this time, but the optical module enters the module in-place state, and the optical module is not represented to be capable of transmitting data stably, but only represents that all parts of the optical module are powered on normally, especially for a data path, a laser, a PD chip and a DSP chip are powered on only after the optical module enters the module in-place state, and the output signal quality cannot be ensured in the early stage of power on, so that the signal quality of the data path is self-checked inside the optical module, and the corresponding data path state is generated.
The data path state corresponding to the optical module may be identified by identifying the data path state in the optical module, where the data path state is marked with the output signal quality, that is, each data path state is marked with a corresponding label in the optical module, and the label stored in the optical module is searched for the data path state corresponding to the output signal quality.
In one embodiment, identifying a data path state in an optical module that marks the quality of an output signal includes: accessing a register of an internal marking data path of the optical module through an I2C path of the optical module, and acquiring the state of the data path according to the register.
Specifically, since the optical module stores the data path state into the corresponding register and associates the corresponding tag with the register, the switch may access the register marked as the data path by the tag in the optical module through the I2C path of the optical module, and further, acquire the data path state corresponding to the optical module from the accessed register. The data path state here may represent all states corresponding to the data path of the optical module at this time, and may represent signal quality output by the optical module.
In one embodiment, controlling the PHY chip to turn on the receive switch when the data path state indicates that the optical module enters the data path active state comprises: and judging whether the optical module enters a data path activation state according to the data path state, and modifying a receiving switch of the PHY chip from an off state to an on state when the data path state indicates that the optical module enters the data path activation state.
When the data path state represents that the optical module enters the data path activation state, the signal output by the optical module is indicated to be the best, so that data transmission between the switch and the optical module can be opened. Specifically, after the switch reads the data path state corresponding to the optical module, whether the optical module enters the data path activation state needs to be judged according to the data path state, if the data path state does not indicate that the signal quality output by the optical module is not the best, connection abnormality easily occurs, the receiving switch of the PHY chip cannot be turned on, otherwise, if the optical module is judged to have entered the data path activation state, the signal quality output by the optical module is indicated to have reached the optimum, that is, the signal quality output by the optical module has been guaranteed, therefore, the switch can modify the receiving switch of the PHY chip from the off state to the on state, that is, the switch turns on the receiving switch of the PHY chip, so that data transmission is performed between the optical module and the switch, and at the moment, the connection abnormality rate between the optical module and the switch is far reduced.
In one embodiment, determining whether the optical module enters a data path activation state based on the data path state includes: acquiring a first data path state corresponding to the optical module, judging whether the optical module is in a data path inactive state according to the first data path state, acquiring a second data path state corresponding to the optical module when the optical module is not in the data path inactive state, judging whether the optical module is in a data path initialization state according to the second data path state, acquiring a third data path state corresponding to the optical module when the optical module is not in the data path initialization state, and judging whether the optical module enters the data path active state according to the data path state.
When the optical module enters a module in-place state, the data path state of the optical module does not reach a data path activation state at a time, so that a first data path state corresponding to the optical module can be obtained, whether the optical module is in a data path non-activation state is judged according to the first data path state, if the first data path state indicates that the optical module is in the data path non-activation state, it is indicated that the optical module just performs signal processing, and the signal quality is not the best at the moment, so that the optical module waits for a period of working processing, and then a second data path state corresponding to the optical module is obtained.
Further, if the first data path state indicates that the optical module is not in the data path inactive state, which indicates that the optical module has been in operation for a period of time, the optical module has already entered the next stage, and at this time, a second data path state corresponding to the optical module at this time may also be obtained, and whether the optical module is in the data path initialization state is determined by the second data path state, and if the optical module is not in the data path initialization state, which indicates that the optical module may have entered the final stage, a third data path state is obtained, and whether the optical module enters the data path active state is determined by the third data path state.
When the optical module enters a module in-place state, the data path state of the optical module is usually a data path inactive state, a data path initialization state and a data path activation state, when the optical module just enters the module in-place state, the data path is just electrified, the data path state is the data path inactive state, when the data path of the optical module is ready, the data path state enters the data path initialization state from the data path inactive state, when the data path of the optical module is ready, the optical module is electrified normally, and when the data path of the optical module is ready, the data path state enters the data path activation state from the data path initialization state, and the signal quality output by the optical module is optimal, so that the signal quality output by the optical module can be ensured.
In one embodiment, the method further comprises: and when the data path state indicates that the optical module does not enter the data path activation state, acquiring preset waiting time, and after the preset waiting time, returning to execute the step of acquiring the data path state of the optical module until the data path state indicates that the optical module enters the data path activation state.
Specifically, when the read data path state indicates that the optical module does not enter the data path activation state, it indicates that the optical module is not completely ready at this time, and the output signal quality is not optimal, so that the preset waiting time is obtained, which may be set according to the actual service condition, the actual application scenario, or the actual product requirement, and is the waiting time for re-obtaining the data path state of the optical module, if the data path state is obtained immediately, the step of obtaining the data path state of the optical module is returned after the preset waiting time, that is, the data path state of the optical module is re-obtained until the obtained data path state indicates that the optical module enters the data path activation state.
In one embodiment, modifying the receive switch of the PHY chip from an off state to an on state includes: and sending an opening command to the PHY chip, and modifying the receiving switch from the closed state to the open state through the PHY chip according to the opening command.
Specifically, when the read data path state indicates that the optical module enters the data path activation state, it is indicated that the optical module is completely ready at this time, and the output signal quality is already optimal, that is, the quality of the signal output by the optical module can be ensured, and abnormal connection between the switch and the optical module is reduced. Therefore, a receiving switch of the PHY chip can be turned on to receive a receiving signal sent by the optical module, so that data transmission between the optical module and the switch is realized. Specifically, the switch sends an on command to the PHY chip, and after the PHY chip receives the on command, the PHY chip modifies a switch state corresponding to the receiving switch according to the on command, modifies the receiving switch from an off state to an on state, and successfully turns on the receiving switch of the PHY chip.
In one embodiment, modifying the receive switch of the PHY chip from an off state to an on state includes: the receiving switch of the PHY chip is modified from an off state to an on state by a complex programmable logic device.
The receiving switch of the PHY chip can be modified from an off state to an on state by the hardware complex programmable logic device CPLD.
In one embodiment, the control PHY chip turns on the receiving switch to enable data communication between the optical module and the switch, including: and receiving the signal sent by the optical module, and decoding the signal to obtain a signal processing result.
When the switch controls the PHY chip to turn on the receiving switch, data communication can be carried out between the optical module and the switch, the optical module can send signals to be processed to the switch, the switch receives the signals sent by the optical module, processes the signals to obtain signal processing results, and finally, the processed signal processing results are sent to the optical module. After the switch and the optical module perform data communication by the method, the probability of abnormal connection is reduced, so that the data transmission efficiency between the switch and the optical module can be improved, and the signal transmission between the switch and the optical module is ensured.
In one embodiment, obtaining the data path state of the optical module includes: and reading a register corresponding to the optical module through the complex programmable logic device, and acquiring the data path state from the register through the complex programmable logic device.
The Complex programmable logic device CPLD (Complex Programmable Logic Device) is a simple name of the Complex PLD, which is a logic element more Complex than the PLD, and is a digital integrated circuit that a user constructs a logic function according to the needs of the user. Specifically, the switch can read the register corresponding to the optical module through the complex programmable logic device, and then acquire the data path state from the register through the complex programmable logic device.
In one embodiment, the optical module is an optoelectronic device that performs both photoelectric and electro-optic conversion functions.
In one embodiment, the optical module is inserted into the switch, so as to implement interconnection between the server network card and the switch or interconnection between the switch and other switches.
In one embodiment, the switch performs data communication with the optical modules of other switches through the optical modules, so as to realize interconnection between the switch and the other switches.
The Optical Module (Optical Module) is an optoelectronic device for implementing photoelectric conversion and electro-Optical conversion functions, and can implement interconnection of a network card and a switch and interconnection of switches at different levels. Therefore, the current switch is all the optical signals sent by the passive receiving optical module, namely, the optical module is inserted into the switch, the switch can passively receive the optical signals sent by the optical module, if the signal quality output by the optical module is poor or the performance of the switch is poor, the connection between the optical module and the switch is easily affected, and the abnormal rate of the connection between the optical module and the switch is increased. The switch inserted with the optical module can also perform data communication with other switches inserted with the optical module.
In a specific switch application scenario, as shown in fig. 2, fig. 2 shows a schematic diagram of a switch data communication method in an embodiment, which specifically includes the following steps:
1) The optical module is normally inserted into the switch and connected with the optical fiber.
2) The switch detects that the optical module is in place.
3) The switch controls the optical module to enter an LP MODE (low power consumption state) in which the optical module cannot normally operate.
4) The switch detects whether the RX side (receiving switch) signal reception of the PHY is off, and if not, the switch controls the signal on the RX side (receiving switch) of the PHY chip to be off.
5) The light module releases LP MODE (releases the low power state) and powers up normally.
6) After the optical module is normally powered on, the switch accesses a register of an internal mark data path of the optical module through an I2C path of the optical module, judges whether the optical module enters a datapath activated state, and if the state is not carried out temporarily, re-accesses the register after a period of time is suspended, and judges.
7) If the optical module has entered into the datapath active state, the switch controls the signal reception on the RX side (receiving switch) of the PHY to be turned on, and the switch starts to normally receive the signal from the optical module, and starts the link procedure with the optical module.
8) And the optical module completes link on the switch.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described above may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with at least a part of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 3, there is provided a switch data communication apparatus 300, the apparatus being applied to a switch, an optical module being inserted into the switch, the apparatus comprising: a first detection module 302, a second detection module 304, an acquisition module 306, and a control module 308, wherein:
the first detection module 302 is configured to control the optical module to enter a low power consumption state when detecting that the optical module is in place.
And the second detection module 304 is configured to control the optical module to release the low power consumption state when detecting that the receiving switch of the PHY chip is in an unopened state, where the optical module is powered on normally, and the receiving switch is configured to receive a receiving signal sent by the optical module.
And the obtaining module 306 is configured to obtain a data path state of the optical module when the optical module enters the module in-place state.
And the control module 308 is configured to control the PHY chip to turn on the receiving switch when the data path state indicates that the optical module enters the data path active state, so that data communication is performed between the optical module and the switch.
In one embodiment, the switch data communication device 300 turns off the receive switch of the PHY chip when detecting that the receive switch of the PHY chip is in an on state.
In one embodiment, the first detection module 302 controls the optical module to enter a low power consumption state through the low power consumption state control pin when detecting that the optical module is in place.
In one embodiment, the switch data communication device 300 detects whether the optical module is in place, and when detecting that the optical module is in place, the first detection module 302 performs a step of controlling the optical module to enter a low power consumption state, and when detecting that the optical module is in place abnormally, the optical module is pulled out from the switch and reinserted into the switch.
In one embodiment, the second detection module 304 obtains a switch state corresponding to a receiving switch of the PHY chip, determines whether the receiving switch is turned on to receive a receiving signal sent by the optical module according to the switch state, and when detecting that the receiving switch is in a non-turned-on state, controls the optical module to release the low power consumption state, and performs normal power-up after the power-up is successful.
In one embodiment, the acquisition module 306 enters a module in-place state when the optical module is powered up, identifying a data path state in the optical module that marks the quality of the output signal.
In one embodiment, the acquisition module 306 accesses a register of the optical module internal tag data path through the I2C path of the optical module, and acquires the data path state according to the register.
In one embodiment, the control module 308 determines whether the optical module enters the data path active state according to the data path state, and modifies the receive switch of the PHY chip from the off state to the on state when the data path state indicates that the optical module enters the data path active state.
In one embodiment, the control module 308 obtains a first data path state corresponding to the optical module, determines whether the optical module is in a data path inactive state according to the first data path state, obtains a second data path state corresponding to the optical module when the optical module is not in the data path inactive state, determines whether the optical module is in a data path initialization state according to the second data path state, obtains a third data path state corresponding to the optical module when the optical module is not in the data path initialization state, and determines whether the optical module enters the data path active state according to the data path state.
In one embodiment, the control module 308 obtains a preset wait time when the data path state indicates that the optical module does not enter the data path active state, and after the preset wait time, returns to the obtaining module 306 to perform the step of obtaining the data path state of the optical module until the data path state indicates that the optical module enters the data path active state.
In one embodiment, the control module 308 sends an on command to the PHY chip, through which the receive switch is modified from an off state to an on state according to the on command.
In one embodiment, the control module 308 modifies the receive switch of the PHY chip from an off state to an on state through a complex programmable logic device.
In one embodiment, the switch data communication device 300 receives the signal sent by the optical module, and performs decoding processing on the signal to obtain a signal processing result.
In one embodiment, the acquiring module 306 reads the register corresponding to the optical module through a complex programmable logic device, and acquires the data path state from the register through the complex programmable logic device.
In one embodiment, the optical module is an optoelectronic device that performs both photoelectric and electro-optic conversion functions.
In one embodiment, the optical module is inserted into the switch, so as to implement interconnection between the server network card and the switch or interconnection between the switch and other switches.
In one embodiment, the switch performs data communication with the optical modules of other switches through the optical modules, so as to realize interconnection between the switch and the other switches.
The specific limitation of the switch data communication device can be referred to the limitation of the switch data communication method hereinabove, and will not be repeated here. The respective modules in the switch data communication device described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a switch is provided, which may be a computer device, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing data path states. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a switch data communication method.
In one embodiment, a switch is provided, which may be a computer device, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a switch data communication method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 4 or 5 are merely block diagrams of portions of structures associated with aspects of the application and are not intended to limit the computer device to which aspects of the application may be applied, and that a particular computer device may include more or fewer components than those shown, or may combine certain components, or may have a different arrangement of components.
In one embodiment, a switch is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: when the optical module is detected to be in place normally, the optical module is controlled to enter a low power consumption state, when the receiving switch of the PHY chip is detected to be in an unopened state, the optical module is controlled to be in a low power consumption state, the optical module is powered on normally, the receiving switch is used for receiving a receiving signal sent by the optical module, when the optical module enters the module in place state, a data path state of the optical module is obtained, and when the data path state indicates that the optical module enters the data path activation state, the PHY chip is controlled to open the receiving switch, so that data communication is carried out between the optical module and a switch.
In one embodiment, the processor when executing the computer program further performs the steps of: and when the receiving switch of the PHY chip is detected to be in an on state, the receiving switch of the PHY chip is turned off.
In one embodiment, the processor when executing the computer program further performs the steps of: when the optical module is detected to be normally in place, the optical module is controlled to enter a low-power-consumption state through the low-power-consumption state control pin.
In one embodiment, the processor when executing the computer program further performs the steps of: detecting whether the optical module is normally in place, executing a step of controlling the optical module to enter a low power consumption state when the optical module is detected to be normally in place, and pulling out the optical module from the switch and reinserting the optical module into the switch when the optical module is detected to be abnormally in place.
In one embodiment, the processor when executing the computer program further performs the steps of: and acquiring a switch state corresponding to a receiving switch of the PHY chip, judging whether the receiving switch is started to receive a receiving signal sent by the optical module according to the switch state, and controlling the optical module to release a low-power consumption state when the receiving switch is not started, wherein the optical module is powered on normally, and then works normally after the power on is successful.
In one embodiment, the processor when executing the computer program further performs the steps of: and after the optical module is powered on, the optical module enters a module in-place state, and the data path state of marking the quality of the output signal in the optical module is identified.
In one embodiment, the processor when executing the computer program further performs the steps of: accessing a register of an internal marking data path of the optical module through an I2C path of the optical module, and acquiring the state of the data path according to the register.
In one embodiment, the processor when executing the computer program further performs the steps of: and judging whether the optical module enters a data path activation state according to the data path state, and modifying a receiving switch of the PHY chip from an off state to an on state when the data path state indicates that the optical module enters the data path activation state.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a first data path state corresponding to the optical module, judging whether the optical module is in a data path inactive state according to the first data path state, acquiring a second data path state corresponding to the optical module when the optical module is not in the data path inactive state, judging whether the optical module is in a data path initialization state according to the second data path state, acquiring a third data path state corresponding to the optical module when the optical module is not in the data path initialization state, and judging whether the optical module enters the data path active state according to the data path state.
In one embodiment, the processor when executing the computer program further performs the steps of: and when the data path state indicates that the optical module does not enter the data path activation state, acquiring preset waiting time, and after the preset waiting time, returning to execute the step of acquiring the data path state of the optical module until the data path state indicates that the optical module enters the data path activation state.
In one embodiment, the processor when executing the computer program further performs the steps of: and sending an opening command to the PHY chip, and modifying the receiving switch from the closed state to the open state through the PHY chip according to the opening command.
In one embodiment, the processor when executing the computer program further performs the steps of: the receiving switch of the PHY chip is modified from an off state to an on state by a complex programmable logic device.
In one embodiment, the processor when executing the computer program further performs the steps of: and receiving the signal sent by the optical module, and decoding the signal to obtain a signal processing result.
In one embodiment, the processor when executing the computer program further performs the steps of: and reading a register corresponding to the optical module through the complex programmable logic device, and acquiring the data path state from the register through the complex programmable logic device.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: when the optical module is detected to be in place normally, the optical module is controlled to enter a low power consumption state, when the receiving switch of the PHY chip is detected to be in an unopened state, the optical module is controlled to be in a low power consumption state, the optical module is powered on normally, the receiving switch is used for receiving a receiving signal sent by the optical module, when the optical module enters the module in place state, a data path state of the optical module is obtained, and when the data path state indicates that the optical module enters the data path activation state, the PHY chip is controlled to open the receiving switch, so that data communication is carried out between the optical module and a switch.
In one embodiment, the processor when executing the computer program further performs the steps of: and when the receiving switch of the PHY chip is detected to be in an on state, the receiving switch of the PHY chip is turned off.
In one embodiment, the processor when executing the computer program further performs the steps of: when the optical module is detected to be normally in place, the optical module is controlled to enter a low-power-consumption state through the low-power-consumption state control pin.
In one embodiment, the processor when executing the computer program further performs the steps of: detecting whether the optical module is normally in place, executing a step of controlling the optical module to enter a low power consumption state when the optical module is detected to be normally in place, and pulling out the optical module from the switch and reinserting the optical module into the switch when the optical module is detected to be abnormally in place.
In one embodiment, the processor when executing the computer program further performs the steps of: and acquiring a switch state corresponding to a receiving switch of the PHY chip, judging whether the receiving switch is started to receive a receiving signal sent by the optical module according to the switch state, and controlling the optical module to release a low-power consumption state when the receiving switch is not started, wherein the optical module is powered on normally, and then works normally after the power on is successful.
In one embodiment, the processor when executing the computer program further performs the steps of: and after the optical module is powered on, the optical module enters a module in-place state, and the data path state of marking the quality of the output signal in the optical module is identified.
In one embodiment, the processor when executing the computer program further performs the steps of: accessing a register of an internal marking data path of the optical module through an I2C path of the optical module, and acquiring the state of the data path according to the register.
In one embodiment, the processor when executing the computer program further performs the steps of: and judging whether the optical module enters a data path activation state according to the data path state, and modifying a receiving switch of the PHY chip from an off state to an on state when the data path state indicates that the optical module enters the data path activation state.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a first data path state corresponding to the optical module, judging whether the optical module is in a data path inactive state according to the first data path state, acquiring a second data path state corresponding to the optical module when the optical module is not in the data path inactive state, judging whether the optical module is in a data path initialization state according to the second data path state, acquiring a third data path state corresponding to the optical module when the optical module is not in the data path initialization state, and judging whether the optical module enters the data path active state according to the data path state.
In one embodiment, the processor when executing the computer program further performs the steps of: and when the data path state indicates that the optical module does not enter the data path activation state, acquiring preset waiting time, and after the preset waiting time, returning to execute the step of acquiring the data path state of the optical module until the data path state indicates that the optical module enters the data path activation state.
In one embodiment, the processor when executing the computer program further performs the steps of: and sending an opening command to the PHY chip, and modifying the receiving switch from the closed state to the open state through the PHY chip according to the opening command.
In one embodiment, the processor when executing the computer program further performs the steps of: the receiving switch of the PHY chip is modified from an off state to an on state by a complex programmable logic device.
In one embodiment, the processor when executing the computer program further performs the steps of: and receiving the signal sent by the optical module, and decoding the signal to obtain a signal processing result.
In one embodiment, the processor when executing the computer program further performs the steps of: and reading a register corresponding to the optical module through the complex programmable logic device, and acquiring the data path state from the register through the complex programmable logic device.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (19)

1. A method of switch data communication, the method being applied to a switch to which an optical module is inserted, the method comprising:
when the optical module is detected to be normally in place, controlling the optical module to enter a low-power consumption state;
when detecting that a receiving switch of a port physical layer PHY chip is in an unopened state, controlling the optical module to release the low-power consumption state, and enabling the optical module to be normally electrified, wherein the receiving switch is used for receiving a receiving signal sent by the optical module;
When the optical module enters a module in-place state, acquiring a data path state of the optical module;
when the data path state indicates that the optical module enters a data path activation state, controlling the port physical layer PHY chip to start the receiving switch so as to enable the optical module to conduct data communication with the switch;
and when the receiving switch of the port physical layer PHY chip is detected to be in an on state, the receiving switch of the port physical layer PHY chip is turned off.
2. The method of claim 1, wherein controlling the optical module to enter a low power consumption state when the optical module is detected to be in place comprises:
when the optical module is detected to be in place normally, the optical module is controlled to enter the low-power-consumption state through a low-power-consumption state control pin.
3. The method of claim 1, wherein when the optical module is detected to be in place, before controlling the optical module to enter a low power consumption state, further comprising:
detecting whether the optical module is normally in place;
when the optical module is detected to be in place normally, executing the step of controlling the optical module to enter a low power consumption state;
When the abnormal in-place of the optical module is detected, the optical module is pulled out of the switch and reinserted into the switch.
4. The method of claim 1, wherein when the receiving switch of the port physical layer PHY chip is detected to be in an unopened state, controlling the optical module to release the low power consumption state, and the optical module is powered on normally, including:
acquiring a switch state corresponding to the receiving switch of the port physical layer PHY chip;
judging whether the receiving switch is started to receive a receiving signal sent by the optical module according to the switch state;
when the receiving switch is detected to be in an unopened state, the optical module is controlled to release the low-power consumption state, the optical module is powered on normally, and normal work is performed after the power on is successful.
5. The method of claim 1, wherein the obtaining the data path state of the optical module when the optical module enters a module in-place state comprises:
after the power-on of the optical module is completed, the optical module enters a module in-place state;
and identifying the data path state of the marked output signal quality in the optical module.
6. The method of claim 5, wherein the identifying the data path state of the marked output signal quality in the optical module comprises:
accessing a register of an internal marking data path of the optical module through an I2C path of the optical module;
and acquiring the data path state according to the register.
7. The method of claim 1, wherein controlling the port physical layer PHY chip to turn on the receive switch when the data path state indicates that the optical module enters a data path active state comprises:
judging whether the optical module enters a data path activation state according to the data path state;
and when the data path state indicates that the optical module enters a data path activation state, modifying the receiving switch of the port physical layer PHY chip from an off state to an on state.
8. The method of claim 7, wherein the determining whether the optical module enters a data path active state based on the data path state comprises:
acquiring a first data path state corresponding to the optical module;
judging whether the optical module is in a data path inactive state according to the first data path state;
When the optical module is not in the data path inactive state, acquiring a second data path state corresponding to the optical module;
judging whether the optical module is in a data path initialization state according to the second data path state;
when the optical module is not in the data path initialization state, acquiring a third data path state corresponding to the optical module;
and judging whether the optical module enters a data path activation state according to the data path state.
9. The method of claim 7, wherein the method further comprises:
when the data path state indicates that the optical module does not enter a data path activation state, acquiring preset waiting time;
and after the preset waiting time, returning to the step of acquiring the data path state of the optical module until the data path state indicates that the optical module enters a data path activation state.
10. The method of claim 7, wherein the modifying the receive switch of the port physical layer PHY chip from an off state to an on state comprises:
sending an opening instruction to the port physical layer PHY chip;
And modifying the receiving switch from an off state to an on state according to the on command through the port physical layer PHY chip.
11. The method of claim 7, wherein the modifying the receive switch of the port physical layer PHY chip from an off state to an on state comprises:
the receiving switch of the port physical layer PHY chip is modified from an off state to an on state by a complex programmable logic device.
12. The method of claim 1, wherein controlling the port physical layer PHY chip to turn on the receive switch to enable data communication between the optical module and the switch comprises:
receiving a signal sent by the optical module;
and decoding the signal to obtain a signal processing result.
13. The method of claim 1, wherein the obtaining the data path state of the optical module comprises:
reading a register corresponding to the optical module through a complex programmable logic device;
the data path state is retrieved from the register by the complex programmable logic device.
14. The method of claim 1, wherein the optical module is an optoelectronic device that performs photoelectric and electro-optic conversion functions.
15. The method of claim 1, wherein the optical module is inserted into the switch to implement interconnection of a network card of a server with the switch or interconnection between the switch and other switches.
16. The method of claim 1, wherein the switch communicates data with the optical modules of other switches via the optical modules to effect interconnection between the switch and the other switches.
17. A switch data communication device, the device being applied to a switch to which an optical module is inserted, the device comprising:
the first detection module is used for controlling the optical module to enter a low-power consumption state when detecting that the optical module is in place normally;
the second detection module is used for controlling the optical module to release the low-power consumption state when detecting that a receiving switch of a port physical layer PHY chip is in an unopened state, the optical module is powered on normally, and the receiving switch is used for receiving a receiving signal sent by the optical module;
the acquisition module is used for acquiring the data path state of the optical module when the optical module enters the module in-place state;
And the control module is used for controlling the port physical layer PHY chip to start the receiving switch when the data path state indicates that the optical module enters the data path activation state, so that data communication is carried out between the optical module and the switch.
18. A switch comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 16 when the computer program is executed.
19. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 16.
CN202310730814.XA 2023-06-20 2023-06-20 Switch data communication method, device, switch and storage medium Active CN116471507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310730814.XA CN116471507B (en) 2023-06-20 2023-06-20 Switch data communication method, device, switch and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310730814.XA CN116471507B (en) 2023-06-20 2023-06-20 Switch data communication method, device, switch and storage medium

Publications (2)

Publication Number Publication Date
CN116471507A CN116471507A (en) 2023-07-21
CN116471507B true CN116471507B (en) 2023-09-12

Family

ID=87179294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310730814.XA Active CN116471507B (en) 2023-06-20 2023-06-20 Switch data communication method, device, switch and storage medium

Country Status (1)

Country Link
CN (1) CN116471507B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111884951A (en) * 2020-07-07 2020-11-03 苏州浪潮智能科技有限公司 Method, device, equipment and storage medium for controlling network node port of switch
CN113630187A (en) * 2021-07-25 2021-11-09 苏州浪潮智能科技有限公司 PHY initialization method, system, equipment and medium
CN113640922A (en) * 2020-04-24 2021-11-12 青岛海信宽带多媒体技术有限公司 Optical module
WO2022021048A1 (en) * 2020-07-28 2022-02-03 华为技术有限公司 Optical module and protection switching method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113640922A (en) * 2020-04-24 2021-11-12 青岛海信宽带多媒体技术有限公司 Optical module
CN111884951A (en) * 2020-07-07 2020-11-03 苏州浪潮智能科技有限公司 Method, device, equipment and storage medium for controlling network node port of switch
WO2022021048A1 (en) * 2020-07-28 2022-02-03 华为技术有限公司 Optical module and protection switching method
CN113630187A (en) * 2021-07-25 2021-11-09 苏州浪潮智能科技有限公司 PHY initialization method, system, equipment and medium

Also Published As

Publication number Publication date
CN116471507A (en) 2023-07-21

Similar Documents

Publication Publication Date Title
US5687346A (en) PC card and PC card system with dual port ram and switchable rewritable ROM
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN104471600A (en) Safety unit management method and terminal
CN106201563A (en) The method and apparatus that the collocation method of start-up parameter and device, mainboard start
US10037206B2 (en) Methods and systems for state switching
US20120151231A1 (en) Power supply switching device, a power supply switching device control method and a power supply control program
US6519698B1 (en) Method for saving system configuration information to shorten computer system initialization time by checking the state of a chassis intrusion detection circuit
CN113127302B (en) Board GPIO monitoring method and device
CN101295255B (en) Firmware updating system and method
SG173004A1 (en) Portable mobile communication device and method of controlling near field communication
CN111756858B (en) Remote development processing system, method and device for embedded equipment
CN103092648A (en) Method and system of mirror image upgrade and user device and personal computer
CN104158709A (en) Optical module identification method and port extender
CN116471507B (en) Switch data communication method, device, switch and storage medium
CN114201360A (en) AER function management method, device, server and storage medium
CN102169442A (en) Method, equipment, device and system for performing system boot by using USB (universal serial bus) device
CN107102851A (en) Memory chip and data protection method
CN111309553B (en) Method, system, equipment and medium for monitoring storage Jbod
CN110459260B (en) Automatic test switching device, method and system
CN107908418B (en) Method for upgrading logic program of fiber channel node card and fiber channel bus equipment
US20170364368A1 (en) Setting method of accessing system parameters and server using the same
US20100332731A1 (en) Flash memory apparatus and method for operating the same and data storage system
JP2009187474A (en) Semiconductor device, portable electronic equipment, self-diagnosis method, and self-diagnosis program
WO2008104601A2 (en) Method of managing command execution in an electronic token
EP3876096B1 (en) Process implemented in an integrated circuit module, corresponding integrated circuit module, system including such a module and associated computer program

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