Method, apparatus and system for negotiating operating mode of optical module

By determining the operating mode of the optical module through negotiation, the communication performance problem caused by the diversity of optical module types was solved, targeted communication parameter configuration was achieved, and the performance of the communication system was improved.

WO2025247264A1PCT designated stage Publication Date: 2025-12-04HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/097729
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-31
Filing Date
2025-05-28
Publication Date
2025-12-04

AI Technical Summary

Technical Problem

In existing communication systems, the diversity of optical module types makes it impossible for the link training scheme to negotiate and determine the working mode of the optical modules at both ends, thus affecting communication performance.

Method used

The operating mode of the optical modules at both ends of the communication system is determined by negotiation. This includes generating and sending negotiation frames, which carry information to request and indicate the operating mode of the optical modules. During the negotiation process, the type and capabilities of the optical modules are considered, and the corresponding communication parameters are configured.

Benefits of technology

It enables targeted configuration of communication parameters based on the type and capabilities of optical modules, thereby improving communication performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025097729_04122025_PF_FP_ABST
    Figure CN2025097729_04122025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are a method, apparatus and system for negotiating an operating mode of an optical module. A first device and a second device are respectively provided at two ends of a communication system, wherein the first device is a first optical module or a first host connected to the first optical module, and the second device is a second optical module or a second host connected to the second optical module. The first device sends a first negotiation frame to the second device, so as to request an operating mode used by the second optical module. The second device may request, on the basis of the first device, the operating mode used by the second optical module and an operating mode supported by the second optical module, so as to determine an operating mode actually used by the second optical module. Similarly, the second device may also send a negotiation frame to the first device, so as to request an operating mode used by the first optical module. The first device may request, on the basis of the second device, the operating mode used by the first optical module and an operating mode supported by the first optical module, so as to determine an operating mode actually used by the first optical module.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and system for negotiating working mode of optical module

[0001] The present application claims priority from the Chinese patent application No. 202410708662.8 filed on May 31, 2024, and entitled "Method, device and system for negotiating working mode of optical module", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the field of communication technology, and in particular to a method, device and system for negotiating working mode of optical module. BACKGROUND

[0003] In a communication system, different devices are connected through a channel, which includes at least one of an optical channel or an electrical channel. After the link between different devices is established, a link training (LT) process is performed. The link training process is a link initialization mechanism defined by a physical medium dependent (PMD) layer. Through the link training process, the link parameters associated with the transmitter (TX) of the link connection are trained, so as to optimize the transmission performance of the TX, and thus affect the performance of the link.

[0004] Taking a current communication system as an example, both ends of the communication system include a host and an optical module. The host and the optical module transmit electrical signals through an electrical interface, and the optical modules at both ends transmit optical signals through an optical interface. The current link training scheme is based on the fact that the optical modules at both ends have an optical digital signal processor (oDSP) function. Such an optical module can be referred to as a normal optical module. Considering the high power consumption of the oDSP, the industry has proposed a scheme in which the oDSP in the optical module is removed. Such an optical module is referred to as a linear-drive pluggable optics (LPO) module. The industry has also proposed a scheme in which the oDSP is retained only on the transmission side or the receiving side of the optical module. Taking the case where the oDSP is retained only on the transmission side of the optical module as an example, such an optical module is referred to as a linear receive optics (LRO) module or a transmitter retimed optics (TRO) module.

[0005] Considering the diversity of optical module types, there can be various combinations of optical modules at both ends of a communication system (for example, scenarios in which at least one end of the communication system adopts LPO, LRO, or TRO), and current link training schemes cannot determine the working modes of the optical modules at both ends through negotiation, especially cannot negotiate whether the optical modules at both ends adopt linear working modes or retiming working modes, so that communication parameters cannot be configured in a targeted manner, affecting communication performance. SUMMARY

[0006] Embodiments of the present application provide a negotiation method, device and system for working modes of optical modules, which can determine the working modes of the optical modules at both ends of a communication system through negotiation, so that communication parameters can be configured in a targeted manner, which is beneficial to improving communication performance.

[0007] In a first aspect, embodiments of the present application provide a negotiation method for working modes of optical modules, applied to a first device initiating a negotiation request. Specifically, the first device obtains a first negotiation frame. The first device sends the first negotiation frame to a second device, and the information carried by the first negotiation frame is used to request the second optical module to work in a first working mode. It should be understood that the first device can be a first optical module, or the first device is a first host connected to the first optical module. Similarly, the second device can be a second optical module, or the second device is a second host connected to the second optical module.

[0008] In Example 1, the first device is a first host, the second device is a second host, the first host is connected to a first optical module through an electrical channel, the second host is connected to a second optical module through an electrical channel, and the first optical module is connected to the second optical module through an optical channel. The first host generates and sends a first negotiation frame, and the first negotiation frame is transmitted to the second host through the first optical module and the second optical module in sequence. In this Example 1, the first optical module and the second optical module can be any type of optical module. If the first optical module and the second optical module are ordinary optical modules with optical digital signal processor (oDSP) function, the first optical module and the second optical module can each read and rewrite the received negotiation frame. If the first optical module and the second optical module are optical modules without oDSP function, for example, LPO optical modules, the first optical module and the second optical module each perform transparent transmission on the received negotiation frame.

[0009] In Example 2, the first device is a first host and the second device is a second optical module. The first host generates and sends a first negotiation frame, and the first negotiation frame is transmitted to the second optical module through the first optical module. In Example 2, the first optical module can be any type of optical module, and the second optical module is a common optical module with oDSP function. If the first optical module is a common optical module with oDSP function, the first optical module can read and rewrite the received negotiation frame. If the first optical module is an optical module without oDSP function, for example, a linear-drive pluggable optics (LPO) optical module, the first optical module transmits the received negotiation frame transparently.

[0010] In Example 3, the first device is a first optical module and the second device is a second host. The first optical module generates and sends a first negotiation frame, and the first negotiation frame is transmitted to the second host through the second optical module. In Example 3, the first optical module is a common optical module with oDSP function, and the second optical module can be any type of optical module. If the second optical module is a common optical module with oDSP function, the second optical module can read and rewrite the received negotiation frame. If the second optical module is an optical module without oDSP function, for example, an LPO optical module, the second optical module transmits the received negotiation frame transparently.

[0011] In Example 4, the first device is a first optical module and the second device is a second optical module. The first optical module generates a first negotiation frame and sends the first negotiation frame to the second optical module. In Example 4, the first optical module and the second optical module are both common optical modules with oDSP function.

[0012] In this embodiment, the two ends of the communication system are a first device and a second device, the first device is a first optical module or a first host connected with the first optical module, and the second device is a second optical module or a second host connected with the second optical module. The first device sends a first negotiation frame to the second device to request the working mode adopted by the second optical module. The second device can determine the working mode actually adopted by the second optical module according to the working mode requested by the first device for the second optical module and the working modes supported by the second optical module. Similarly, the second device can also send a negotiation frame to the first device to request the working mode adopted by the first optical module. The first device can determine the working mode actually adopted by the first optical module according to the working mode requested by the second device for the first optical module and the working modes supported by the first optical module. In this way, the two ends of the communication system can determine the working mode of the optical module at each end through negotiation, so as to configure the communication parameters in a targeted manner, which is beneficial to improving the communication performance.

[0013] In some possible implementation manners, the first working mode is a linear working mode or a retimed working mode. The retimed working mode includes a function of converting an analog signal into a digital signal, and the linear working mode does not include the function of converting the analog signal into the digital signal. For the optical module in the retimed working mode, on the transmitting side of the optical module, the analog signal from the host is first converted into a digital signal, the digital signal is subjected to DSP and then converted into an analog signal, and then the analog signal is subjected to electro-optical conversion to obtain an optical signal to be transmitted; on the receiving side of the optical module, the received optical signal is subjected to photoelectric conversion to obtain an analog signal, the analog signal is converted into a digital signal, the digital signal is subjected to DSP and then converted into an analog signal, and then the analog signal is transmitted to the host. Conversely, for the optical module in the linear working mode, on the transmitting side of the optical module, the analog signal from the host is not converted into a digital signal before electro-optical conversion, and naturally, DSP is not performed; on the receiving side of the optical module, the analog signal is not converted into a digital signal after photoelectric conversion, and naturally, DSP is not performed. That is, the negotiation method provided in this embodiment of this application covers the scenario of negotiating the working mode of multiple types of optical modules, thereby facilitating adaptation to multiple possible scenarios.

[0014] In some possible implementation manners, the linear working mode includes at least one of a linear working mode on the transmitting side and a linear working mode on the receiving side. The retimed working mode includes at least one of a retimed working mode on the transmitting side and a retimed working mode on the receiving side. That is, the transmitting side and the receiving side of the optical module can adopt the same working mode or different working modes, further expanding the scenarios to which the present solution is adapted. For example, the transmitting side and the receiving side of the optical module both adopt the linear working mode, that is, an LPO optical module. For another example, the transmitting side and the receiving side of the optical module both adopt the retimed working mode, that is, a common optical module. For example, the transmitting side of the optical module adopts the retimed working mode, and the receiving side adopts the linear working mode, that is, an LRO optical module or a TRO optical module. For another example, the transmitting side of the optical module adopts the linear working mode, and the receiving side adopts the retimed working mode.

[0015] In some possible implementation manners, the information carried in the first negotiation frame is further used to instruct the first optical module to work in a second working mode, so that the second device can learn in time which working mode the first optical module is currently working in, and this is beneficial to speeding up the negotiation progress of the two parties. The second working mode is a linear working mode or a retimed working mode.

[0016] In some possible implementation manners, the information carried in the first negotiation frame further indicates whether the first optical module has the capability of the linear working mode, so that the second device can learn the working mode supported by the first optical module earlier, and the second device can timely adjust the request sent to the first device according to the working mode supported by the first optical module, which is beneficial to accelerating the negotiation progress of the two devices. For example, the first optical module currently works in the retiming working mode, but the first optical module has the capability of the linear working mode, and the second device can send the negotiation frame to the first device earlier to request the first optical module to work in the linear working mode.

[0017] In some possible implementation manners, after the first device sends the first negotiation frame to the second device, the method further includes that the first device receives a second negotiation frame sent by the second device according to the first negotiation frame, and the second negotiation frame is used to indicate whether to agree to the first optical module working in the first working mode. That is, after receiving the request sent by the first device, the second device informs the first device whether to agree to the request of the first device, which perfects the negotiation process of the two devices.

[0018] In some possible implementation manners, after the first device sends the first negotiation frame to the second device, the method further includes that the first device receives a second negotiation frame sent by the second device according to the first negotiation frame, and the second negotiation frame is used to indicate the working mode adopted by the second optical module. That is, after receiving the request sent by the first device, the second device informs the first device that the second optical module currently works in which working mode, so as to convey whether to agree to the request of the first device to the first device, which expands the implementation manners of the negotiation of the two devices.

[0019] In some possible implementation manners, after the first device receives the second negotiation frame sent by the second device according to the first negotiation frame, the method further includes that the first device sends a third negotiation frame to the second device according to the second negotiation frame, and the third negotiation frame requests the second optical module to adopt the working mode of the second optical module indicated by the second negotiation frame. That is, after receiving the feedback second negotiation frame of the second device, the first device can determine whether to update the request sent to the second device according to the information indicated by the second negotiation frame, so as to make the new request of the first device match the working mode of the second optical module, so as to facilitate the negotiation of the two devices. For example, the first device requests the second optical module to work in the linear working mode the first time, and the second device feeds back that the second optical module works in the retiming working mode, and then the first device requests the second optical module to work in the retiming working mode the second time.

[0020] In some possible implementation manners, the second optical module includes an oDSP chip, and the second optical module has the capability of the linear working mode, and the first negotiation frame is used to request the second optical module to work in the linear working mode.

[0021] In some possible implementations, the second optical module includes an oDSP chip, and the second optical module does not have the capability of linear operation mode. If the first negotiation frame is used to request the second optical module to operate in the linear operation mode, the second negotiation frame is used to instruct the second optical module to adopt the retimed operation mode, and the third negotiation frame is used to request the second optical module to adopt the retimed operation mode.

[0022] In some possible implementations, the second optical module is an LPO optical module, the second optical module has the capability of linear operation mode, and the first negotiation frame is used to request the second optical module to operate in the linear operation mode.

[0023] In some possible implementations, the second optical module is a half-retimed optics (HRO) optical module, a sending side of the second optical module has the capability of linear operation mode, and the first negotiation frame is used to request the sending side of the second optical module to operate in the linear operation mode.

[0024] In some possible implementations, the second optical module is an HRO optical module, a receiving side of the second optical module has the capability of linear operation mode, and the first negotiation frame is used to request the receiving side of the second optical module to operate in the linear operation mode.

[0025] In some possible implementations, the second optical module is an HRO optical module, a sending side of the second optical module does not have the capability of linear operation mode. If the first negotiation frame is used to request the sending side of the second optical module to adopt the linear operation mode, the second negotiation frame is used to instruct the sending side of the second optical module to adopt the retimed operation mode, and the third negotiation frame is used to request the sending side of the second optical module to adopt the retimed operation mode.

[0026] In some possible implementations, the second optical module is an HRO optical module, a receiving side of the second optical module does not have the capability of linear operation mode. If the first negotiation frame is used to request the receiving side of the second optical module to adopt the linear operation mode, the second negotiation frame is used to instruct the receiving side of the second optical module to adopt the retimed operation mode, and the third negotiation frame is used to request the receiving side of the second optical module to adopt the retimed operation mode.

[0027] In some possible implementation, the first device is a first optical module. The first device obtaining the first negotiation frame includes: the first device receiving the first negotiation frame sent by the third device, the first negotiation frame further indicating an operating mode adopted by the first optical module. If the operating mode indicated by the first negotiation frame is different from an actual operating mode adopted by the first optical module, the first device modifies the first negotiation frame, and the modified first negotiation frame indicates the actual operating mode adopted by the first optical module. The first device sending the first negotiation frame to the second device includes: the first device sending the modified first negotiation frame to the second device. In this implementation, the first optical module has the capability of reading and rewriting the first negotiation frame, and if the first optical module finds that the information carried by the first negotiation frame is incorrect, the first optical module rewrites the first negotiation frame so that the first negotiation frame carries correct information.

[0028] In some possible implementation, the first negotiation frame is a differential Manchester encoding (DME) frame.

[0029] In some possible implementation, the base page or the extension page of the first negotiation frame is used to request the operating mode adopted by the second optical module.

[0030] In some possible implementation, the method further includes: the first device receiving a fourth negotiation frame sent by the second device. The fourth negotiation frame is used to request the first optical module to work in a third operating mode, and the third operating mode is a linear operating mode or a retiming operating mode. The first device determines the operating mode adopted by the first optical module according to the fourth negotiation frame and whether the first optical module has the capability of the third operating mode.

[0031] In some possible implementation, after the first device determines the operating mode adopted by the first optical module, the method further includes: the first device configuring working parameters according to the operating mode adopted by the first optical module. The working parameters include at least one of parameters of forward error correction (FEC), parameters of pre-coding, parameters of an equalizer, and parameters of a modulator. That is, after the first device determines the operating mode adopted by the first optical module through negotiation, the first device configures parameters corresponding to the operating mode to ensure that the first optical module can work in the operating mode. The parameters of the first host and the parameters of the first optical module are both configured.

[0032] In a second aspect, the embodiments of the present application provide a method for negotiating working mode of an optical module, applied to a second device receiving a negotiation request. Specifically, the second device receives a first negotiation frame sent by a first device, the first negotiation frame being used to request the second optical module to work in a first working mode. The second device determines a working mode adopted by the second optical module according to the first negotiation frame and whether the second optical module has the capability of the first working mode. It should be understood that the first device can be a first optical module, or the first device is a first host connected to the first optical module. Similarly, the second device can be a second optical module, or the second device is a second host connected to the second optical module.

[0033] In some possible implementation manners, after the second device determines the working mode adopted by the second optical module, the method further includes: the second device sends a second negotiation frame to the first device, the second negotiation frame being used to indicate the working mode adopted by the second optical module.

[0034] In some possible implementation manners, the first working mode is a linear working mode or a retiming working mode.

[0035] In some possible implementation manners, the first negotiation frame requests the second optical module to work in the linear working mode, the second optical module has the capability of the linear working mode, and the second device determines that the second optical module adopts the linear working mode. Alternatively, the first negotiation frame requests the second optical module to work in the linear working mode, the second optical module does not have the capability of the linear working mode, and the second device determines that the second optical module adopts the retiming working mode.

[0036] In some possible implementation manners, the linear working mode includes at least one of a linear working mode of a sending side and a linear working mode of a receiving side, and the retiming working mode includes at least one of a retiming working mode of the sending side and a retiming working mode of the receiving side.

[0037] In some possible implementation manners, the first negotiation frame requests the sending side of the second optical module to work in the linear working mode, the sending side of the second optical module has the capability of the linear working mode, and the second device determines that the sending side of the second optical module adopts the linear working mode. Alternatively, the first negotiation frame requests the sending side of the second optical module to work in the linear working mode, the sending side of the second optical module does not have the capability of the linear working mode, and the second device determines that the sending side of the second optical module adopts the retiming working mode. Alternatively, the first negotiation frame requests the receiving side of the second optical module to work in the linear working mode, the receiving side of the second optical module has the capability of the linear working mode, and the second device determines that the receiving side of the second optical module adopts the linear working mode. Alternatively, the first negotiation frame requests the receiving side of the second optical module to work in the linear working mode, the receiving side of the second optical module does not have the capability of the linear working mode, and the second device determines that the receiving side of the second optical module adopts the retiming working mode.

[0038] In some possible implementation manners, the first negotiation frame is further used to instruct the first optical module to work in a second working mode, and the second working mode is a linear working mode or a retiming working mode.

[0039] In some possible implementation manners, the first negotiation frame is further used to instruct the first optical module to work in a second working mode, and the second working mode is a linear working mode or a retiming working mode.

[0040] In some possible implementation manners, the first negotiation frame is further used to instruct the first optical module to work in a second working mode, and the second working mode is a linear working mode or a retiming working mode.

[0041] In some possible implementation manners, the first working mode is a linear working mode or a retiming working mode.

[0042] In some possible implementation manners, the linear working mode includes at least one of a linear working mode on a sending side and a linear working mode on a receiving side, and the retiming working mode includes at least one of a retiming working mode on the sending side and a retiming working mode on the receiving side.

[0043] In some possible implementation manners, the first negotiation frame carries information further used to instruct the first optical module to work in a second working mode, so that the second device can learn in time which working mode the first optical module currently works in, and this is conducive to speeding up the negotiation between the two devices. The second working mode is a linear working mode or a retiming working mode.

[0044] In some possible implementation manners, the first negotiation frame carries information further used to instruct the first optical module to work in a second working mode, so that the second device can learn in time which working mode the first optical module currently works in, and this is conducive to speeding up the negotiation between the two devices. The second working mode is a linear working mode or a retiming working mode.

[0045] In some possible implementation, after the transceiving unit sends the first negotiation frame to the second device, the transceiving unit is further configured to receive a second negotiation frame sent by the second device according to the first negotiation frame, the second negotiation frame being configured to indicate whether the second optical module agrees to work in the first working mode.

[0046] In some possible implementation, after the transceiving unit sends the first negotiation frame to the second device, the transceiving unit is further configured to receive a second negotiation frame sent by the second device according to the first negotiation frame, the second negotiation frame being configured to indicate the working mode adopted by the second optical module.

[0047] In some possible implementation, after the transceiving unit receives the second negotiation frame sent by the second device according to the first negotiation frame, the transceiving unit is further configured to send a third negotiation frame to the second device according to the second negotiation frame, the third negotiation frame being configured to request the second optical module to adopt the working mode indicated by the second negotiation frame.

[0048] In some possible implementation, the second optical module comprises an oDSP chip, the second optical module has the capability of linear working mode, and the first negotiation frame is configured to request the second optical module to work in the linear working mode.

[0049] In some possible implementation, the second optical module comprises an oDSP chip, the second optical module does not have the capability of linear working mode. If the first negotiation frame is configured to request the second optical module to work in the linear working mode, the second negotiation frame is configured to indicate the second optical module to adopt the retiming working mode, and the third negotiation frame is configured to request the second optical module to adopt the retiming working mode.

[0050] In some possible implementation, the second optical module is an LPO optical module, the second optical module has the capability of linear working mode, and the first negotiation frame is configured to request the second optical module to work in the linear working mode.

[0051] In some possible implementation, the second optical module is an HRO optical module, the transmission side of the second optical module has the capability of linear working mode, and the first negotiation frame is configured to request the transmission side of the second optical module to work in the linear working mode.

[0052] In some possible implementation, the second optical module is an HRO optical module, the receiving side of the second optical module has the capability of linear working mode, and the first negotiation frame is configured to request the receiving side of the second optical module to work in the linear working mode.

[0053] In some possible implementation, the second optical module is an HRO optical module, and the transmitting side of the second optical module does not have the capability of the linear operation mode. If the first negotiation frame is used to request the transmitting side of the second optical module to adopt the linear operation mode, the second negotiation frame is used to instruct the transmitting side of the second optical module to adopt the re-timed operation mode, and the third negotiation frame is used to request the transmitting side of the second optical module to adopt the re-timed operation mode.

[0054] In some possible implementation, the second optical module is an HRO optical module, and the receiving side of the second optical module does not have the capability of the linear operation mode. If the first negotiation frame is used to request the receiving side of the second optical module to adopt the linear operation mode, the second negotiation frame is used to instruct the receiving side of the second optical module to adopt the re-timed operation mode, and the third negotiation frame is used to request the receiving side of the second optical module to adopt the re-timed operation mode.

[0055] In some possible implementation, the communication device is the first optical module. The processing unit is specifically configured to receive the first negotiation frame sent by the third device, and the first negotiation frame is further used to instruct the operation mode adopted by the first optical module. If the operation mode adopted by the first optical module instructed by the first negotiation frame is different from the actual operation mode adopted by the first optical module, the processing unit modifies the first negotiation frame, and the modified first negotiation frame is used to instruct the actual operation mode adopted by the first optical module. The transceiver unit is specifically configured to send the modified first negotiation frame to the second device.

[0056] In some possible implementation, the first negotiation frame is a DME frame.

[0057] In some possible implementation, the base page or the extension page of the first negotiation frame is used to request the operation mode adopted by the second optical module.

[0058] In some possible implementation, the transceiver unit is further configured to receive a fourth negotiation frame sent by the second device. The fourth negotiation frame is used to request the first optical module to work in a third operation mode, and the third operation mode is the linear operation mode or the re-timed operation mode. The processing unit is further configured to determine the operation mode adopted by the first optical module according to the fourth negotiation frame and whether the first optical module has the capability of the third operation mode.

[0059] In some possible implementation, after the processing unit determines the operation mode adopted by the first optical module, the processing unit is further configured to configure a working parameter according to the operation mode adopted by the first optical module. The working parameter includes at least one of a parameter of a forward error correction (FEC), a parameter of pre-coding, a parameter of an equalizer, and a parameter of a modulator.

[0060] In a fourth aspect, the embodiments of the present application provide a communication device, which is the second device in any of the embodiments of the first aspect and the second aspect. The communication device comprises a processing unit and a transceiver unit. The transceiver unit is configured to receive a first negotiation frame sent by a first device, the first negotiation frame being used to request a second optical module to work in a first working mode. The processing unit is configured to determine a working mode adopted by the second optical module according to the first negotiation frame and whether the second optical module has the capability of the first working mode. It should be understood that the first device can be a first optical module, or the first device is a first host connected to the first optical module. Similarly, the second device can be a second optical module, or the second device is a second host connected to the second optical module.

[0061] In some possible embodiments, after the processing unit determines the working mode adopted by the second optical module, the transceiver unit is further configured to send a second negotiation frame to the first device, the second negotiation frame being used to indicate the working mode adopted by the second optical module.

[0062] In some possible embodiments, the first working mode is a linear working mode or a retiming working mode.

[0063] In some possible embodiments, the first negotiation frame requests the second optical module to work in the linear working mode, the second optical module has the capability of the linear working mode, and the processing unit determines that the second optical module adopts the linear working mode. Alternatively, the first negotiation frame requests the second optical module to work in the linear working mode, the second optical module does not have the capability of the linear working mode, and the processing unit determines that the second optical module adopts the retiming working mode.

[0064] In some possible embodiments, the linear working mode comprises at least one of a linear working mode on a sending side and a linear working mode on a receiving side, and the retiming working mode comprises at least one of a retiming working mode on the sending side and a retiming working mode on the receiving side.

[0065] In some possible implementation manners, the first negotiation frame requests the transmitting side of the second optical module to work in the linear working mode, the transmitting side of the second optical module has the capability of the linear working mode, and the processing unit determines that the transmitting side of the second optical module adopts the linear working mode. Alternatively, the first negotiation frame requests the transmitting side of the second optical module to work in the linear working mode, the transmitting side of the second optical module does not have the capability of the linear working mode, and the processing unit determines that the transmitting side of the second optical module adopts the re-timed working mode. Alternatively, the first negotiation frame requests the receiving side of the second optical module to work in the linear working mode, the receiving side of the second optical module has the capability of the linear working mode, and the processing unit determines that the receiving side of the second optical module adopts the linear working mode. Alternatively, the first negotiation frame requests the receiving side of the second optical module to work in the linear working mode, the receiving side of the second optical module does not have the capability of the linear working mode, and the processing unit determines that the receiving side of the second optical module adopts the re-timed working mode.

[0066] In some possible implementation manners, the first negotiation frame is further used to indicate that the first optical module works in a second working mode, and the second working mode is the linear working mode or the re-timed working mode.

[0067] In some possible implementation manners, the first negotiation frame is further used to indicate whether the first optical module has the capability of the linear working mode.

[0068] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor, and the processor is used to execute the method in any of the embodiments of the first aspect and the second aspect.

[0069] In a sixth aspect, an embodiment of the present application provides a communication device, which includes a processor and an interface, the interface is used to transceive signals, and the processor is used to execute the method in any of the embodiments of the first aspect.

[0070] In a seventh aspect, an embodiment of the present application provides a communication device, which includes a processor and an interface, the interface is used to transceive signals, and the processor is used to execute the method in any of the embodiments of the second aspect.

[0071] In an eighth aspect, an embodiment of the present application provides a communication system, which includes a first device and a second device, the first device is used to execute the method in any of the embodiments of the first aspect, and the second device is used to execute the method in any of the embodiments of the second aspect.

[0072] In a ninth aspect, the present application provides a computer readable storage medium, and the computer readable storage medium stores instructions, and the instructions are executed by a computer to implement the method in any of the embodiments of the first aspect and the second aspect.

[0073] In a tenth aspect, the present application provides a computer program product comprising program instructions for implementing the method of any of the embodiments of the first aspect and the second aspect when the computer program product is executed. BRIEF DESCRIPTION OF DRAWINGS

[0074] Fig. 1 is a schematic diagram of a communication system to which embodiments of the present application are applied;

[0075] Fig. 2 is a schematic diagram of a flow of a negotiation method of an operating mode of an optical module in an embodiment of the present application;

[0076] Fig. 3(a) is a schematic diagram of a first scenario of negotiation between a device 1 and a device 2 in an embodiment of the present application;

[0077] Fig. 3(b) is a schematic diagram of a second scenario of negotiation between the device 1 and the device 2 in an embodiment of the present application;

[0078] Fig. 3(c) is a schematic diagram of a third scenario of negotiation between the device 1 and the device 2 in an embodiment of the present application;

[0079] Fig. 3(d) is a schematic diagram of a fourth scenario of negotiation between the device 1 and the device 2 in an embodiment of the present application;

[0080] Fig. 4 is a schematic diagram of a protocol stack layer model architecture to which an embodiment of the present application is applied;

[0081] Fig. 5 is a schematic diagram of a structure of a DME frame in an embodiment of the present application;

[0082] Fig. 6 is a schematic diagram of a possible communication system in an embodiment of the present application;

[0083] Fig. 7 is a schematic diagram of an embodiment of negotiation of an operating mode of an optical module in an embodiment of the present application;

[0084] Fig. 8 is a schematic diagram of another embodiment of negotiation of an operating mode of an optical module in an embodiment of the present application;

[0085] Fig. 9 is a schematic diagram of another embodiment of negotiation of an operating mode of an optical module in an embodiment of the present application;

[0086] Fig. 10 is a schematic diagram of another embodiment of negotiation of an operating mode of an optical module in an embodiment of the present application;

[0087] Fig. 11 is a schematic diagram of another embodiment of negotiation of an operating mode of an optical module in an embodiment of the present application;

[0088] Fig. 12 is a schematic diagram of another possible communication system in an embodiment of the present application;

[0089] Fig. 13 is a schematic diagram of another possible communication system in an embodiment of the present application;

[0090] Figure 14 is a schematic diagram of another possible communication system in embodiments of the application;

[0091] Figure 15 is a schematic diagram of another possible communication system in embodiments of the application;

[0092] Figure 16 is a schematic diagram of a non-breakout scenario for a communication system in embodiments of the application;

[0093] Figure 17 is a schematic diagram of a breakout scenario for a communication system in embodiments of the application;

[0094] Figure 18 is a schematic diagram of a structure for a communication device in embodiments of the application;

[0095] Figure 19 is a schematic diagram of another structure for a communication device in embodiments of the application. DETAILED DESCRIPTION

[0096] Embodiments of the application provide a method, apparatus and system for negotiating a working mode of an optical module, both ends of a communication system can determine the working mode of the optical module at each end by negotiation, so that the communication parameters can be configured accordingly, which is beneficial to improving the communication performance.

[0097] Fig. 1 is a schematic diagram of a communication system to which embodiments of the present application are applied. As shown in Fig. 1, the communication system includes a sending device 01, a sending processing module 02, a channel transmission medium 03, a receiving processing module 04 and a receiving device 05. Taking the communication system as a data center network for example, the sending device 01 and the receiving device 05 can be switches, routers or servers, and the sending device 01 is also referred to as a host at the sending end, and the receiving device 05 is also referred to as a host at the receiving end. The host can also be referred to as a host chip or a host module, etc. In the implementation of the present application, the host can be a server. When the host is a server, the server can integrate the function of an optical module, or the server can be connected with an optical module. That is to say, when the host is a server, the optical module in the embodiments of the present application can be connected to the server in a pluggable manner. For the convenience of introduction, the sending device 01 and the receiving device 05 are taken as examples of hosts in the following description. Exemplarily, the host includes but is not limited to a switch chip or a physical layer (PHY) chip, and the PHY chip is, for example, an application specific integrated circuit (ASIC) chip. The channel transmission medium 03 can be an optical fiber. The sending device 01 and the sending processing module 02 can be connected through a channel, and the receiving device 05 and the receiving processing module 04 can be connected through a channel. The type of the channel can depend on the type of the sending processing module 02 and the receiving processing module 04, and the type of the channel includes an electrical interface, such as an attachment unit interface (AUI) and a common electrical interface (CEI). Alternatively, the channel can also be referred to as an electrical link. Exemplarily, the channel can be a physical medium such as a Printed circuit board (PCB) trace, a copper cable or a connector. The sending processing module 02 and the receiving processing module 04 can be optical modules, electrical modules or other modules that process data during data transmission. For the convenience of introduction, the sending processing module 02 and the receiving processing module 04 are taken as examples of optical modules in the following description. For example, the optical module can be an 800G-FR4 optical module, which is a direct detection optical module. It should be understood that the sending device 01, the sending processing module 02, the channel transmission medium 03, the receiving processing module 04 and the receiving device 05 in the communication system can support bidirectional transmission or unidirectional transmission, and the specific implementation is not limited herein.

[0098] In some possible scenarios, the host is implemented by a chip, which is specifically a PHY chip.

[0099] In some other possible scenarios, the sending device 01 includes a host at the sending end, and the receiving device 05 includes a host at the receiving end. For example, the sending device 01 is connected to an optical module at the sending end through a gold finger, and the receiving device 05 is connected to an optical module at the receiving end through a gold finger. For another example, the optical module at the sending end is integrated in the sending device 01, the host at the sending end is connected to the optical module at the sending end through an electrical circuit, the optical module at the receiving end is integrated in the receiving device 05, and the host at the receiving end is connected to the optical module at the receiving end through an electrical circuit.

[0100] It should be understood that the optical module is a hardware device, and the optical module includes a transmitter optical sub-assembly (TOSA), a receiver optical sub-assembly (ROSA), a micro controller unit (MCU), and the like. The TOSA includes a laser and a modulator, and the like. The ROSA includes a photo detector (PD), and the like. Among them, based on the type of the optical module, some optical modules include an optical digital signal processor (oDSP) chip, and some optical modules do not include an oDSP chip.

[0101] It should be noted that the types of the optical module include, but are not limited to, a normal optical module, a linear-drive pluggable optics (LPO) module, a near package optics (NPO) module, a co-packaged optics (CPO) module, a half-retimed optics (HRO) module, a linear receive optics (LRO) module, a transmitter retimed optics (TRO) module, and the like. In the embodiments of the present application, the LPO module, the NPO module, the CPO module, the HRO module, the LRO module, and the TRO module can also be referred to as an LPO optical module, an NPO optical module, a CPO optical module, an HRO optical module, an LRO optical module, and a TRO optical module.

[0102] It should be understood that the functions that can be implemented by the common optical module include, but are not limited to, digital signal processing (DSP) and clock data recovery (CDR), etc. The current mainstream way is to use a DSP chip in the optical module, which can also be referred to as an optical digital signal processor (oDSP) chip. Since DSP needs to be retimed, the common optical module can also be referred to as a retimed module. The common optical module is connected with the host through an attachment unit interface (AUI).

[0103] The NPO module and the CPO module do not have a pluggable optical module physical package form, and are closer to the host. The NPO module and the CPO module can also be referred to as an optical engine. The NPO technology or the CPO technology is a technology of "packaging" the host and the optical engine. When the host and the optical engine are packaged by using the NPO technology, the optical engine can be referred to as an NPO module. When the host and the optical engine are packaged by using the CPO technology, the optical engine can be referred to as a CPO module.

[0104] In view of the high power consumption of the oDSP chip, the industry proposes a scheme of removing the oDSP chip in the optical module, which is an LPO optical module, and transferring the pre-processing and equalization of the electrical signal to the host. In a communication system using the LPO optical module, since the LPO optical module lacks the oDSP chip, the electrical signal sent by the serializer / deserializer (serdes) of the host is transmitted to the optical transmitter of the LPO optical module through the passive electrical link in the host, and has experienced a certain degree of impairment (loss from the electrical link, filtering effect caused by bandwidth limitation, and reflection of the connector). The electrical signal has already been deteriorated. The optical transmitter converts the deteriorated electrical signal into an optical signal, so the optical signal output by the optical transmitter has already been deteriorated. The optical signal is transmitted through the optical fiber link, and is further deteriorated by the defects of the optical fiber link. At the optical receiver of the LPO optical module at the receiving end, the optical signal is converted into an electrical signal, and the electrical signal directly reaches the host at the receiving end without digital signal processing. The deterioration of the optical signal through the optical fiber link and the impairment of the electrical signal by the passive electrical link in the host at the receiving end will be carried to the serdes of the host at the receiving end. In actual application, the local host will perform certain pre-processing (pre-emphasis, equalization, etc.) on the sent electrical signal to pre-compensate for the impairment caused by the passive electrical link of the host and the signal deterioration introduced when the optical transmitter performs photoelectric conversion. The compensation and equalization capability of the host at the receiving end is mainly used to cope with the deterioration of the optical signal through the optical fiber link, the signal deterioration introduced when the optical receiver performs photoelectric conversion, and the impairment of the electrical signal by the passive electrical link of the host at the receiving end. Such complex signal processing requirements put high requirements on the serdes of the host, and even may not obtain sufficient signal processing capability and cause problems.

[0105] Therefore, the industry proposes to retain part of the functions of the oDSP chip in the optical module, for example, only retain the function of the oDSP chip on the transmitting side of the optical module, or only retain the function of the oDSP chip on the receiving side of the optical module, which is an HRO optical module. As an example, the optical module that retains the function of the oDSP chip on the transmitting side can be called an LRO optical module or a TRO optical module. The optical signal sent by the optical module has better performance, meets the standard and has a margin, can realize interconnection and intercommunication with ordinary optical modules, and simplifies the factory calibration and testing of the transmitting side of the optical module. The receiving side of the optical module does not have the function of the oDSP chip, and the signal processing still depends on the serdes of the host.

[0106] It should be noted that the oDSP chip in the common optical module has a transceiving bidirectional function, and in some possible scenarios, the common optical module can choose not to perform (for example, bypass) the function of the oDSP chip on the sending side or the function of the oDSP chip on the receiving side, and at this time, the common optical module is equivalent to the HRO optical module. For example, if the common optical module does not perform (for example, bypass) the function of the oDSP chip on the receiving side, at this time, the common optical module is equivalent to the LRO optical module or the TRO optical module.

[0107] Considering the diversity of optical module types, the optical modules at both ends of the communication system can have various combinations (for example, the scenario in which at least one end of the communication system adopts LPO, LRO, or TRO), and neither end of the communication system knows the working mode of the optical module at the other end. To this end, an embodiment of the present application provides a negotiation method for the working mode of an optical module, and both ends of the communication system can determine the working mode of the optical module at the end through negotiation and learn the working mode of the optical module at the other end, so as to be able to configure the communication parameters in a targeted manner, which is beneficial to improving the communication performance.

[0108] Specifically, the working mode of the optical module refers to the state and type of the optical module when it is running. In a possible implementation, the working mode of the optical module can be divided according to the type of the optical module, for example, the working mode is the oDSP working mode, or the working mode is the LPO working mode, or the working mode is the LRO working mode. In another possible implementation, the working mode of the optical module can be divided according to the processing action performed by the optical module, for example, the working mode is the linear working mode, or the working mode is the retimed working mode. The embodiment of the present application does not limit the specific implementation of the working mode of the optical module, and in actual scenarios, the working mode can be divided according to the characteristics of the optical module.

[0109] In the implementation in which the working mode of the optical module is divided according to the processing action performed by the optical module, the oDSP optical module can implement the retimed working mode; the LPO optical module and the CPO optical module can implement the linear working mode; the LRO optical module, the HRO optical module, and the TRO optical module can implement the retimed working mode or the linear working mode according to the transmission direction; and the NPO optical module can implement the retimed working mode or the linear working mode according to the configuration mode. In addition, in some scenarios, the working mode of the optical module can also be changed through the configuration mode, for example, by bypassing the oDSP function on the sending side, so that the sending side of the oDSP optical module implements the linear working mode.

[0110] The negotiation method for the working mode of the optical module provided by the embodiment of the present application will be described in detail below.

[0111] Figure 2 is a flow diagram of a negotiation method of an optical module according to an embodiment of the present application. As shown in Figure 2, two ends of a communication system are referred to as device 1 and device 2, for example, device 1 and device 2 are located at two ends of an optical fiber. Device 1 includes optical module 1, for example, device 1 can be optical module 1, or device 1 can be host 1 electrically connected to optical module 1. Device 2 includes optical module 2, for example, device 2 can be optical module 2, or device 2 can be host 2 electrically connected to optical module 2. For ease of description, in some embodiments below, optical module 1 can also be referred to as a local optical module at the end of device 1, and optical module 2 can also be referred to as a local optical module at the end of device 2. Device 1 initiates a negotiation process to device 2, for example, device 1 sends a first negotiation frame to device 2, device 2 sends a second negotiation frame to device 1 according to the first negotiation frame, device 1 sends a third negotiation frame to device 2 according to the second negotiation frame, and so on. Correspondingly, device 2 also initiates a negotiation process to device 1, for example, device 2 sends a fourth negotiation frame to device 1, device 1 sends a fifth negotiation frame to device 2 according to the fourth negotiation frame, device 2 sends a sixth negotiation frame to device 1 according to the fifth negotiation frame, and so on. It should be understood that the negotiation process initiated by device 1 to device 2 and the negotiation process initiated by device 2 to device 1 are performed synchronously.

[0112] Figure 3(a) is a schematic diagram of a first scenario of negotiation between device 1 and device 2 according to an embodiment of the present application. As shown in Figure 3(a), device 1 is host 1, and device 2 is host 2. The negotiation process is performed between host 1 and host 2. In this scenario, optical module 1 and optical module 2 can be any type of optical module. It should be noted that if optical module 1 and optical module 2 are ordinary optical modules with oDSP chip function, optical module 1 and optical module 2 can each read and rewrite the received negotiation frame. If optical module 1 and optical module 2 are optical modules without oDSP chip function, for example, LPO optical modules, optical module 1 and optical module 2 each transparently transmit the received negotiation frame.

[0113] Figure 3(b) is a schematic diagram of a second scenario of negotiation between device 1 and device 2 according to an embodiment of the present application. As shown in Figure 3(b), device 1 is host 1, and device 2 is optical module 2. The negotiation process is performed between host 1 and optical module 2. In this scenario, optical module 1 can be any type of optical module, and optical module 2 is an ordinary optical module with oDSP chip function. It should be noted that if optical module 1 is an ordinary optical module with oDSP chip function, optical module 1 can read and rewrite the received negotiation frame. If optical module 1 is an optical module without oDSP chip function, for example, an LPO optical module, optical module 1 transparently transmits the received negotiation frame.

[0114] Fig. 3(c) is a schematic diagram of a third scenario of negotiation between device 1 and device 2 in embodiments of the present application. As shown in Fig. 3(c), device 1 is optical module 1, and device 2 is host 2. The negotiation process is performed between optical module 1 and host 2. In this scenario, optical module 1 is a normal optical module with oDSP chip function, and optical module 2 can be any type of optical module. It should be noted that if optical module 2 is a normal optical module with oDSP chip function, optical module 2 can read and rewrite the received negotiation frame. If optical module 2 is an optical module without oDSP chip function, such as an LPO optical module, optical module 2 transmits the received negotiation frame transparently.

[0115] Fig. 3(d) is a schematic diagram of a fourth scenario of negotiation between device 1 and device 2 in embodiments of the present application. As shown in Fig. 3(d), device 1 is optical module 1, and device 2 is optical module 2. The negotiation process is performed between optical module 1 and optical module 2. In this scenario, optical module 1 is a normal optical module with oDSP chip function, and optical module 2 is a normal optical module with oDSP chip function.

[0116] Fig. 4 is a schematic diagram of a protocol stack layer model architecture applicable in embodiments of the present application. The protocol stack layer model is the protocol stack layer of Ethernet. Ethernet is a set of standards defined by the Institute of Electrical and Electronics Engineers (IEEE) 802 standard organization, which involves network, interface, and physical layer technology. The protocol stack layer of Ethernet can be referred to Fig. 4, which is related to embodiments of the present application. As shown in Fig. 4, the model architecture is a network interconnection model, which defines a seven-layer framework of network interconnection. From bottom to top, the seven layers are physical layer, data link layer, network layer, transport layer, session layer, presentation layer, and application layer.

[0117] Ethernet is in the data link layer and physical layer of the open system interconnection (OSI) reference model. As shown in Fig. 4, the data link layer includes two sub-layers: logical link control (LLC) sub-layer and medium access control (MAC) sub-layer responsible for parsing and assembling Ethernet frames.

[0118] As shown in FIG. 4, the physical layer can include an auto-negotiation (AN) sublayer, a physical medium dependent (PMD) sublayer, a physical medium attachment (PMA) sublayer, and a physical coding sublayer (PCS). There is also a reconciliation sublayer (RS) between the PCS and the MAC sublayer. There is a certain gigabit media independent interface (GMII) between the RS and the PCS, for example, XGMII, 25GMII, 50GMII, etc. It should be understood that the AN sublayer is not a physically existing layer, and the PMD sublayer is connected with a medium (which can be a cable or an optical fiber, etc.) through a medium dependent interface (MDI).

[0119] It should be understood that in a possible scenario, the method for negotiating the working mode of the optical module provided by the embodiments of the present application can be implemented in the AN sublayer, and the negotiation process shown in FIG. 2 above is implemented in the AN sublayer. That is, the method for negotiating the working mode of the optical module provided by the embodiments of the present application can be implemented in the auto-negotiation phase. The AN sublayer can provide three functions of AN transmit, AN receive and AN arbitration. The method for negotiating the working mode of the optical module provided by the embodiments of the present application also has the three functions of the AN, and defines the specific content of the AN transmit and the AN receive, so as to implement the negotiation of the working mode of the optical module.

[0120] In the embodiments of the present application, the working modes of the optical module can be divided into linear working mode and retimed working mode according to the processing actions performed by the optical module. The retimed working mode includes the function of converting analog signals into digital signals, and the linear working mode does not include the function of converting analog signals into digital signals. For the optical module adopting the retimed working mode, on the sending side of the optical module, the analog signals from the host are first converted into digital signals, the digital signals are processed by DSP and then converted into analog signals, and then the analog signals are converted into optical signals to be sent; on the receiving side of the optical module, the received optical signals are converted into analog signals by photoelectric conversion, the analog signals are converted into digital signals, the digital signals are processed by DSP and then converted into analog signals, and then the analog signals are sent to the host. Conversely, for the optical module adopting the linear working mode, on the sending side of the optical module, the analog signals from the host will not be converted into digital signals before electro-optical conversion, and naturally, DSP will not be performed; on the receiving side of the optical module, the analog signals will not be converted into digital signals after photoelectric conversion, and naturally, DSP will not be performed. It should be understood that the optical module adopting the retimed working mode also has the function of CDR, and the function of DSP includes but is not limited to equalization processing and impairment compensation, etc. It should be noted that although the continuous time linear equalizer (CTLE) is also considered as a kind of equalization processing, the CTLE does not need to be based on the retimed working mode, and therefore, the optical module with CTLE can adopt the linear working mode.

[0121] It should be noted that the sending side and the receiving side of the optical module can adopt the same working mode. For example, the sending side and the receiving side of the optical module both adopt the linear working mode, i.e., the LPO optical module. For another example, the sending side and the receiving side of the optical module both adopt the retimed working mode, i.e., the common optical module. Alternatively, the sending side and the receiving side of the optical module can also adopt different working modes, i.e., the HRO optical module. For example, the sending side of the optical module adopts the retimed working mode, and the receiving side adopts the linear working mode, i.e., the LRO optical module or the TRO optical module. For another example, the sending side of the optical module adopts the linear working mode, and the receiving side adopts the retimed working mode.

[0122] FIG. 5 is a schematic diagram of a structure of a DME frame in an embodiment of the present application. In a possible implementation, the negotiation frame in the negotiation process shown in FIG. 2 can be a differential Manchester encoding (DME) frame. As shown in FIG. 5, the DME frame includes a base page and a next page, where the next page is also referred to as an extension page. The base page and the extension page each include 48 bits. The base page includes a plurality of fields, and the extension page includes a plurality of fields. For example, bits D0-D4 in the base page are defined as a Selector Field. Therefore, one field in the base page includes at least one bit in the base page, and one field in the extension page includes at least one bit in the extension page. The embodiment of the present application can use the bits that are not yet occupied in the base page and / or the extension page to deliver information for negotiating the working mode of the optical module, and the embodiment of the present application does not limit the number of bits used and the location of the bits.

[0123] In the embodiment of the present application, the information carried by the negotiation frame transmitted between the device 1 and the device 2 can be one or more, and each information can be represented by at least one bit in the negotiation frame. The negotiation method is further introduced below in combination with specific embodiments. For ease of introduction, the embodiments below are introduced by taking the scenario shown in FIG. 3(a) as an example, and each embodiment can also be adaptively modified for the scenarios shown in FIG. 3(b), FIG. 3(c) and FIG. 3(d). Moreover, the embodiments below are all taken as an example for negotiating the same working mode of the transmitting side and the receiving side of the same optical module, for example, using N bits of the negotiation frame to carry information for negotiating the working mode, that is, after the negotiation is successful, the transmitting side and the receiving side of the same optical module adopt the same working mode. On this basis, each embodiment can also be extended to negotiate the working mode of the transmitting side and the receiving side of the same optical module respectively, for example, using N bits of the negotiation frame to carry information for negotiating the working mode of the transmitting side, and using another N bits of the negotiation frame to carry information for negotiating the working mode of the receiving side; that is, after the negotiation is successful, the transmitting side and the receiving side of the same optical module can adopt the same working mode or different working modes, and the specific negotiation process is similar whether for the transmitting side or the receiving side, which will not be introduced one by one below.

[0124] FIG. 6 is a schematic diagram of a possible communication system in an embodiment of the present application. As shown in FIG. 6, the optical module 1 and the optical module 2 are both common optical modules including an oDSP chip. The common optical module further includes a TOSA and / or a ROSA, and further includes a micro controller unit (MCU). The host includes a PHY chip and a chip with processing function, which can be a central processing unit (CPU) or a field programmable gate array (FPGA), etc., and a CPU is taken as an example for illustration in the figure. A first side of the oDSP chip is used for connecting the PHY chip, and can be referred to as a host side. A second side of the oDSP chip is used for connecting the TOSA / ROSA, and can be referred to as a media side. The host side and the media side are not limited in the embodiments of the present application. The first side is used for communicating with the host chip 1 through an electrical channel. For example, a serdes located at the first side of the oDSP chip communicates with a Serdes (not shown in FIG. 6) located at the PHY chip through an electrical channel. The second side is used for communicating with the TOSA / ROSA through an electrical channel. In an implementation, the TOSA / ROSA in the common optical module 1 is connected with the TOSA / ROSA in the common optical module 2 through an optical channel.

[0125] The MCU of the optical module is connected with the CPU of the host through a management interface. After the optical module is powered on, whether the optical module has the capability of linear operation and the current working mode adopted by the optical module can be reported to the host through the management interface. For example, the management interface can be an inter-integrated circuit (IIC, I2C) interface, and a management protocol based on the management interface can be a common management interface specification (CMIS).

[0126] Scenario 1 based on the communication system shown in FIG. 6: the optical module 1 can not perform the function of the oDSP chip (for example, bypass), and the optical module 2 needs to perform the function of the oDSP chip. That is, the optical module 1 has the capability of linear operation mode, and the optical module 2 does not have the capability of linear operation mode.

[0127] In the first possible implementation based on scenario 1, the negotiation procedure shown in Fig. 2 is taken as an example. For the negotiation procedure initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request optical module 2 to work in linear mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries second information B, which is used to indicate that optical module 2 is not agreed to work in linear mode; device 1 modifies the first information A according to the second negotiation frame and sends a third negotiation frame to device 2, which carries the modified first information B, and is used to request optical module 2 to work in re-timing mode. For the negotiation procedure initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to work in linear mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries second information A, which is used to indicate that optical module 1 is agreed to work in linear mode; device 2 sends a sixth negotiation frame to device 1 according to the fifth negotiation frame, which carries the first information A, and is used to request optical module 1 to work in linear mode.

[0128] Fig. 7 is a schematic diagram of one implementation of the negotiation of the working mode of the optical module in the embodiment of the present application. As shown in Fig. 7, the negotiation frame transmitted between host 1 and host 2 includes bit 1 and bit 2, which is represented as negotiation frame (X1, X2), X1 in the bracket represents bit 1, and X2 in the bracket represents bit 2. Bit 1 is used to request the working mode of the optical module at the opposite end, bit 1 being 1 represents linear mode, and bit 1 being 0 represents re-timing mode. Bit 2 is used to indicate whether to agree to the request of the opposite end, bit 1 representing agreement to the request, and bit 0 representing disagreement to the request.

[0129] In the initial state, host 1 sends negotiation frame 1-1 (1, 0), which is transmitted to host 2 through optical module 1 and optical module 2 in sequence, bit 1 being 1 is used to request optical module 2 to work in linear mode, and bit 2 is 0 by default. That is, in the initial state, host 1 has not received the request from host 2, and by default, it disagrees with the request of host 2 (i.e., bit 2 is 0), and host 1 specifically needs to confirm whether to agree according to the actual request initiated by host 2.

[0130] In the initial state, the host 2 sends the negotiation frame 2-1 (1, 0), which is transmitted to the host 1 through the optical module 2 and the optical module 1 in sequence, bit 1 is 1 for requesting the optical module 1 to work in the linear working mode, and bit 2 is 0 by default. That is, in the initial state, the host 2 has not received the request from the host 1, and by default, the host 2 disagrees with the request of the host 1 (i.e., bit 2 is 0), and the host 2 specifically needs to confirm whether to agree according to the actual request initiated by the host 1.

[0131] The host 2 sends the negotiation frame 1-2 (1, 0) according to the negotiation frame 1-1 (1, 0), which is transmitted to the host 1 through the optical module 2 and the optical module 1 in sequence, bit 1 is 1 for requesting the optical module 1 to work in the linear working mode, and bit 2 is 0 for indicating disagreement with the optical module 2 working in the linear working mode.

[0132] The host 1 sends the negotiation frame 2-2 (1, 1) according to the negotiation frame 2-1 (1, 0), which is transmitted to the host 2 through the optical module 1 and the optical module 2 in sequence, bit 1 is 1 for requesting the optical module 2 to work in the linear working mode, and bit 2 is 1 for indicating agreement with the optical module 1 working in the linear working mode.

[0133] The host 1 sends the negotiation frame 1-3 (0, 1) according to the negotiation frame 1-2 (1, 0), which is transmitted to the host 2 through the optical module 1 and the optical module 2 in sequence, bit 1 is 0 for requesting the optical module 2 to work in the re-timing working mode, and bit 2 is 1 for indicating agreement with the optical module 1 working in the linear working mode.

[0134] The host 2 sends the negotiation frame 2-3 (1, 0) according to the negotiation frame 2-2 (1, 1), which is transmitted to the host 1 through the optical module 2 and the optical module 1 in sequence, bit 1 is 1 for requesting the optical module 1 to work in the linear working mode, and bit 2 is 0 for indicating disagreement with the optical module 2 working in the linear working mode.

[0135] The host 2 sends the negotiation frame 1-4 (1, 1) according to the negotiation frame 1-3 (0, 1), which is transmitted to the host 1 through the optical module 2 and the optical module 1 in sequence, bit 1 is 1 for requesting the optical module 1 to work in the linear working mode, and bit 2 is 1 for indicating agreement with the optical module 2 working in the re-timing working mode.

[0136] Host 1 sends negotiation frame 2-4 (0, 1) according to negotiation frame 2-3 (1, 0), negotiation frame 2-4 (0, 1) is transmitted to host 2 through optical module 1 and optical module 2 in turn, bit 1 is 0 for requesting optical module 2 to work in the retiming working mode, and bit 2 is 1 for indicating to agree that optical module 1 works in the linear working mode.

[0137] Optionally, after that, host 1 and host 2 can continue to send negotiation frames to each other, for example, host 1 sends negotiation frame 1-5 (0, 1), host 2 sends negotiation frame 2-5 (1, 1), and so on. If the information carried in the negotiation frames sent by host 1 and host 2 respectively does not change any more, for example, the information carried in the negotiation frames sent repeatedly N times does not change, it is considered that the negotiation is successful. Then, optical module 1 works in the linear working mode, and optical module 2 works in the retiming working mode.

[0138] Scenario 2 based on the communication system shown in FIG. 6: optical module 1 is required to perform the function of the oDSP chip, and optical module 2 can not perform (for example, bypass) the function of the oDSP chip. That is, optical module 1 does not have the capability of the linear working mode, and optical module 2 has the capability of the linear working mode.

[0139] In a first possible implementation manner based on scenario 2, the above negotiation process shown in FIG. 2 is taken as an example. For the negotiation process initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used for requesting optical module 2 to work in the linear working mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries second information A, which is used for indicating to agree that optical module 2 works in the linear working mode; the third negotiation frame sent by device 1 to device 2 according to the second negotiation frame carries first information A, which is used for requesting optical module 2 to work in the linear working mode. For the negotiation process initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used for requesting optical module 1 to work in the linear working mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries second information B, which is used for indicating to disagree that optical module 1 works in the linear working mode; device 2 modifies first information A according to the fifth negotiation frame and sends the sixth negotiation frame to device 1, the sixth negotiation frame carries modified first information B, which is used for requesting optical module 1 to work in the retiming working mode.

[0140] Scenario 3 based on the communication system shown in FIG. 6: optical module 1 is required to perform the function of the oDSP chip, and optical module 2 is required to perform the function of the oDSP chip. That is, neither optical module 1 nor optical module 2 has the capability of the linear working mode.

[0141] In the first possible implementation based on scenario 3, taking the negotiation process shown in Figure 2 above as an example. For the negotiation process initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request the optical module 2 to operate in linear mode; the second negotiation frame sent by device 2 to device 1 based on the first negotiation frame carries second information B, which is used to indicate disagreement with the optical module 2 operating in linear mode; device 1 modifies the first information A based on the second negotiation frame and sends a third negotiation frame to device 2, which carries the modified first information B, and is used to request the optical module 2 to operate in retiming mode. For the negotiation process initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to operate in linear mode; the fifth negotiation frame sent by device 1 to device 2 based on the fourth negotiation frame carries second information B, which is used to indicate disagreement with optical module 1 operating in linear mode; device 2 modifies the first information A based on the fifth negotiation frame and sends a sixth negotiation frame to device 1, which carries the modified first information B and is used to request optical module 1 to operate in retiming mode.

[0142] Based on scenario 4 of the communication system shown in Figure 6: optical module 1 can bypass (e.g., perform the functions of the oDSP chip), and optical module 2 can also bypass (e.g., perform the functions of the oDSP chip). That is, both optical module 1 and optical module 2 have the capability of linear operation mode.

[0143] In the first possible implementation based on scenario 4, taking the negotiation process shown in Figure 2 above as an example. For the negotiation process initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request the optical module 2 to operate in linear mode; the second negotiation frame sent by device 2 to device 1 based on the first negotiation frame carries second information A, which is used to indicate agreement that the optical module 2 operates in linear mode; device 1 sends a third negotiation frame to device 2 based on the second negotiation frame, which carries first information A and is used to request the optical module 2 to operate in linear mode. For the negotiation process initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request the optical module 1 to operate in linear mode; the fifth negotiation frame sent by device 1 to device 2 based on the fourth negotiation frame carries second information A, which is used to indicate agreement that the optical module 1 operates in linear mode; device 2 sends a sixth negotiation frame to device 1 based on the fifth negotiation frame, which carries first information A and is used to request the optical module 1 to operate in linear mode.

[0144] It should be understood that in the scenario 2, scenario 3 and scenario 4 based on the communication system shown in Fig. 6, the above-mentioned embodiment shown in Fig. 7 can also be adaptively modified, which will not be introduced one by one here.

[0145] Scenario 1 based on the communication system shown in Fig. 6: the optical module 1 can not perform (for example, bypass) the function of the oDSP chip, and the optical module 2 needs to perform the function of the oDSP chip. That is, the optical module 1 has the ability of linear working mode, and the optical module 2 does not have the ability of linear working mode.

[0146] In a second possible embodiment based on scenario 1, the above-mentioned negotiation process shown in Fig. 2 is taken as an example. For the negotiation process initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries the first information A, which is used to request the optical module 2 to work in linear working mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries the third information B, which is used to indicate that the optical module 2 works in the retiming working mode; device 1 modifies the first information A according to the second negotiation frame and sends the third negotiation frame to device 2, which carries the modified first information B, which is used to request the optical module 2 to work in the retiming working mode. For the negotiation process initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries the first information A, which is used to request the optical module 1 to work in linear working mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries the third information A, which is used to indicate that the optical module 1 works in linear working mode; device 2 sends the sixth negotiation frame to device 1 according to the fifth negotiation frame, which carries the first information A, which is used to request the optical module 1 to work in linear working mode.

[0147] Fig. 8 is another embodiment of the negotiation of the working mode of the optical module in the embodiment of the application. As shown in Fig. 8, the negotiation frame transmitted between host 1 and host 2 includes bit 1 and bit 2, which is represented by negotiation frame (X1, X2), X1 in the bracket represents bit 1, and X2 in the bracket represents bit 2. Bit 1 is used to indicate the working mode currently adopted by the local optical module, and bit 1 is 1 represents linear working mode, and bit 1 is 0 represents retiming working mode. Bit 2 is used to request the working mode of the optical module at the other end, and bit 2 is 1 represents linear working mode, and bit 2 is 0 represents retiming working mode.

[0148] In the initial state, host 1 sends negotiation frame 1-1 (0, 1), which is transmitted to host 2 through optical module 1 and optical module 2 in turn. Bit 1 is 0, which indicates that optical module 1 currently adopts the re-timing working mode, and bit 2 is 1, which requests optical module 2 to work in the linear working mode. It should be understood that optical module 1 has the ability to read and rewrite negotiation frame 1-1 (0, 1), for example, if host 1 sends negotiation frame 1-1 (1, 1), and optical module 1 currently adopts the re-timing working mode, optical module 1 will rewrite negotiation frame 1-1 (1, 1) to negotiation frame 1-1 (0, 1) and send it.

[0149] In the initial state, host 2 sends negotiation frame 2-1 (0, 1), which is transmitted to host 1 through optical module 2 and optical module 1 in turn. Bit 1 is 0, which indicates that optical module 2 currently adopts the re-timing working mode, and bit 2 is 1, which requests optical module 1 to work in the linear working mode. It should be understood that optical module 2 has the ability to read and rewrite negotiation frame 2-1 (0, 1), for example, if host 2 sends negotiation frame 2-1 (1, 1), and optical module 2 currently adopts the re-timing working mode, optical module 2 will rewrite negotiation frame 2-1 (1, 1) to negotiation frame 2-1 (0, 1) and send it.

[0150] Host 2 sends negotiation frame 1-2 (0, 1) according to negotiation frame 1-1 (0, 1), which is transmitted to host 1 through optical module 2 and optical module 1 in turn. Bit 1 is 0, which indicates that optical module 2 currently adopts the re-timing working mode, and bit 2 is 1, which requests optical module 1 to work in the linear working mode.

[0151] Host 1 sends negotiation frame 2-2 (1, 1) according to negotiation frame 2-1 (0, 1), which is transmitted to host 2 through optical module 1 and optical module 2 in turn. Bit 1 is 1, which indicates that optical module 1 currently adopts the linear working mode, and bit 2 is 1, which requests optical module 2 to work in the linear working mode.

[0152] Host 1 sends negotiation frame 1-3 (1, 0) according to negotiation frame 1-2 (0, 1), which is transmitted to host 2 through optical module 1 and optical module 2 in turn. Bit 1 is 1, which indicates that optical module 1 currently adopts the linear working mode, and bit 2 is 0, which requests optical module 2 to work in the re-timing working mode.

[0153] Host 2 sends negotiation frame 2-3 (0, 1) according to negotiation frame 2-2 (1, 1), negotiation frame 2-3 (0, 1) is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 currently adopts the re-timing working mode, and bit 2 is 1 for requesting optical module 1 to work in the linear working mode.

[0154] Host 2 sends negotiation frame 1-4 (0, 1) according to negotiation frame 1-3 (1, 0), negotiation frame 1-4 (0, 1) is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 currently adopts the re-timing working mode, and bit 2 is 1 for requesting optical module 1 to work in the linear working mode.

[0155] Host 1 sends negotiation frame 2-4 (1, 0) according to negotiation frame 2-3 (0, 1), negotiation frame 2-4 (1, 0) is transmitted to host 2 through optical module 1 and optical module 2 in turn, bit 1 is 1 for indicating that optical module 1 currently adopts the linear working mode, and bit 2 is 0 for requesting optical module 2 to work in the re-timing working mode.

[0156] Optionally, after that, host 1 and host 2 can continue to send negotiation frames to each other, for example, host 1 sends negotiation frame 1-5 (1, 0), host 2 sends negotiation frame 2-5 (0, 1), and so on. If the information carried in the negotiation frames sent by host 1 and host 2 respectively does not change any more, for example, the information carried in the negotiation frames sent repeatedly N times does not change, it is considered that the negotiation is successful. Then, optical module 1 works in the linear working mode, and optical module 2 works in the re-timing working mode.

[0157] Scenario 2 based on the communication system shown in FIG. 6: optical module 1 is required to perform the function of oDSP chip, and optical module 2 can not perform (for example, bypass) the function of oDSP chip. That is, optical module 1 does not have the capability of linear working mode, and optical module 2 has the capability of linear working mode.

[0158] In a second possible implementation based on scenario 2, the negotiation procedure shown in Fig. 2 is taken as an example. For the negotiation procedure initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request optical module 2 to work in linear working mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries third information A, which is used to instruct optical module 2 to work in linear working mode; the third negotiation frame sent by device 1 to device 2 according to the second negotiation frame carries first information A, which is used to request optical module 2 to work in linear working mode. For the negotiation procedure initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to work in linear working mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries third information B, which is used to instruct optical module 1 to work in retiming working mode; device 2 modifies first information A according to the fifth negotiation frame and sends the sixth negotiation frame to device 1, which carries modified first information B, which is used to request optical module 1 to work in retiming working mode.

[0159] Scenario 3 based on the communication system shown in Fig. 6: optical module 1 is required to perform the function of an oDSP chip, and optical module 2 is required to perform the function of an oDSP chip. That is, neither optical module 1 nor optical module 2 has the capability of linear working mode.

[0160] In a second possible implementation based on scenario 3, the negotiation procedure shown in Fig. 2 is taken as an example. For the negotiation procedure initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request optical module 2 to work in linear working mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries third information B, which is used to instruct optical module 2 to work in retiming working mode; device 1 modifies first information A according to the second negotiation frame and sends the third negotiation frame to device 2, which carries modified first information B, which is used to request optical module 2 to work in retiming working mode. For the negotiation procedure initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to work in linear working mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries third information B, which is used to instruct optical module 1 to work in retiming working mode; device 2 modifies first information A according to the fifth negotiation frame and sends the sixth negotiation frame to device 1, which carries modified first information B, which is used to request optical module 1 to work in retiming working mode.

[0161] Scenario 4 based on the communication system shown in FIG. 6: the optical module 1 can not perform (e.g., bypass) the function of the oDSP chip, and the optical module 2 can not perform (e.g., bypass) the function of the oDSP chip. That is, both the optical module 1 and the optical module 2 have the capability of linear working mode.

[0162] In a second possible implementation based on scenario 4, the above-mentioned negotiation process shown in FIG. 2 is taken as an example. For the negotiation process initiated by the device 1, the first negotiation frame sent by the device 1 to the device 2 carries the first information A, which is used to request the optical module 2 to work in linear working mode; the second negotiation frame sent by the device 2 to the device 1 according to the first negotiation frame carries the third information A, which is used to indicate that the optical module 2 works in linear working mode; the third negotiation frame sent by the device 1 to the device 2 according to the second negotiation frame carries the first information A, which is used to request the optical module 2 to work in linear working mode. For the negotiation process initiated by the device 2, the fourth negotiation frame sent by the device 2 to the device 1 carries the first information A, which is used to request the optical module 1 to work in linear working mode; the fifth negotiation frame sent by the device 1 to the device 2 according to the fourth negotiation frame carries the third information A, which is used to indicate that the optical module 1 works in linear working mode; the sixth negotiation frame sent by the device 2 to the device 1 according to the fifth negotiation frame carries the first information A, which is used to request the optical module 1 to work in linear working mode.

[0163] It should be understood that in scenarios 2, 3 and 4 based on the communication system shown in FIG. 6, the above-mentioned implementation shown in FIG. 8 can also be adaptively modified, which will not be introduced one by one here.

[0164] Scenario 1 based on the communication system shown in FIG. 6: the optical module 1 can not perform (e.g., bypass) the function of the oDSP chip, and the optical module 2 needs to perform the function of the oDSP chip. That is, the optical module 1 has the capability of linear working mode, and the optical module 2 does not have the capability of linear working mode.

[0165] In a third possible implementation based on scenario 1, the negotiation procedure shown in Fig. 2 is taken as an example. For the negotiation procedure initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request optical module 2 to work in linear mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries fourth information B, which is used to indicate that optical module 2 has no capability of linear mode; device 1 modifies the first information A according to the second negotiation frame and sends the third negotiation frame to device 2, which carries the modified first information B, used to request optical module 2 to work in re-timed mode. For the negotiation procedure initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to work in linear mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries fourth information A, which is used to indicate that optical module 1 has capability of linear mode; device 2 sends the sixth negotiation frame to device 1 according to the fifth negotiation frame, which carries the first information A, used to request optical module 1 to work in linear mode.

[0166] Fig. 9 is another implementation of the negotiation procedure for the working mode of optical module in the embodiment of the present application. As shown in Fig. 9, the negotiation frame transmitted between host 1 and host 2 includes bit 1 and bit 2, which is represented as negotiation frame (X1, X2), X1 in the bracket represents bit 1, and X2 in the bracket represents bit 2. Bit 1 is used to indicate whether the local optical module has capability of linear mode, and bit 1 is 1 to indicate that the optical module has capability of linear mode, and bit 1 is 0 to indicate that the optical module has no capability of linear mode. Bit 2 is used to request the peer optical module to work in which mode, and bit 2 is 1 to indicate linear mode, and bit 2 is 0 to indicate re-timed mode.

[0167] In the initial state, host 1 sends negotiation frame 1-1 (1, 1), which is transmitted to host 2 through optical module 1 and optical module 2 in sequence, and bit 1 is 1 to indicate that optical module 1 has capability of linear mode, and bit 2 is 1 to request optical module 2 to work in linear mode. It should be understood that optical module 1 has the capability of reading and rewriting negotiation frame 1-1 (1, 1), for example, if host 1 sends negotiation frame 1-1 (0, 1), and optical module 1 has capability of linear mode, optical module 1 will rewrite negotiation frame 1-1 (0, 1) to negotiation frame 1-1 (1, 1) and send it.

[0168] In the initial state, host 2 sends negotiation frame 2-1 (0, 1), which is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 has no capability of linear operation mode, and bit 2 is 1 for requesting optical module 1 to operate in linear operation mode. It should be understood that optical module 2 has the capability of reading and rewriting negotiation frame 2-1 (0, 1), for example, if host 2 sends negotiation frame 2-1 (1, 1), and optical module 2 has no capability of linear operation mode, optical module 2 will rewrite negotiation frame 2-1 (1, 1) into negotiation frame 2-1 (0, 1) and send it.

[0169] Host 2 sends negotiation frame 1-2 (0, 1) according to negotiation frame 1-1 (1, 1), which is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 has no capability of linear operation mode, and bit 2 is 1 for requesting optical module 1 to operate in linear operation mode.

[0170] Host 1 sends negotiation frame 2-2 (1, 0) according to negotiation frame 2-1 (0, 1), which is transmitted to host 2 through optical module 1 and optical module 2 in turn, bit 1 is 1 for indicating that optical module 1 has capability of linear operation mode, and bit 2 is 0 for requesting optical module 2 to operate in retiming operation mode.

[0171] Host 1 sends negotiation frame 1-3 (1, 0) according to negotiation frame 1-2 (0, 1), which is transmitted to host 2 through optical module 1 and optical module 2 in turn, bit 1 is 1 for indicating that optical module 1 has capability of linear operation mode, and bit 2 is 0 for requesting optical module 2 to operate in retiming operation mode.

[0172] Host 2 sends negotiation frame 2-3 (0, 1) according to negotiation frame 2-2 (1, 0), which is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 has no capability of linear operation mode, and bit 2 is 1 for requesting optical module 1 to operate in linear operation mode.

[0173] Host 2 sends negotiation frame 1-4 (0, 1) according to negotiation frame 1-3 (1, 0), which is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 has no capability of linear operation mode, and bit 2 is 1 for requesting optical module 1 to operate in linear operation mode.

[0174] Host 1 sends negotiation frame 2-4 (1, 0) according to negotiation frame 2-3 (0, 1), negotiation frame 2-4 (1, 0) is transmitted to host 2 through optical module 1 and optical module 2 in turn, bit 1 is 1 for indicating that optical module 1 has the capability of linear working mode, and bit 2 is 0 for requesting optical module 2 to work in retiming working mode.

[0175] Optionally, after that, host 1 and host 2 can continue to send negotiation frames to each other, for example, host 1 sends negotiation frame 1-5 (1, 0), host 2 sends negotiation frame 2-5 (0, 1), and so on. If the information carried in the negotiation frames sent by host 1 and host 2 respectively does not change any more, for example, the information carried in the negotiation frames sent repeatedly N times does not change, it is considered that the negotiation is successful. Then, optical module 1 works in linear working mode, and optical module 2 works in retiming working mode.

[0176] Scenario 2 based on the communication system shown in FIG. 6: optical module 1 is required to perform the function of oDSP chip, and optical module 2 can not perform (for example, bypass) the function of oDSP chip. That is, optical module 1 does not have the capability of linear working mode, and optical module 2 has the capability of linear working mode.

[0177] In a third possible implementation based on scenario 2, the above negotiation process shown in FIG. 2 is taken as an example. For the negotiation process initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request optical module 2 to work in linear working mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries fourth information A, which is used to indicate that optical module 2 has the capability of linear working mode; the third negotiation frame sent by device 1 to device 2 according to the second negotiation frame carries first information A, which is used to request optical module 2 to work in linear working mode. For the negotiation process initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to work in linear working mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries fourth information B, which is used to indicate that optical module 1 does not have the capability of linear working mode; device 2 modifies first information A according to the fifth negotiation frame and sends sixth negotiation frame to device 1, which carries modified first information B, which is used to request optical module 1 to work in retiming working mode.

[0178] Scenario 3 based on the communication system shown in FIG. 6: optical module 1 is required to perform the function of oDSP chip, and optical module 2 is required to perform the function of oDSP chip. That is, optical module 1 and optical module 2 do not have the capability of linear working mode.

[0179] In a third possible implementation based on scenario 3, the negotiation procedure shown in FIG. 2 is taken as an example. For the negotiation procedure initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request optical module 2 to work in linear mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries fourth information B, which is used to indicate that optical module 2 does not have the capability of linear mode; device 1 modifies the first information A according to the second negotiation frame and sends the third negotiation frame to device 2, which carries the modified first information B, used to request optical module 2 to work in retiming mode. For the negotiation procedure initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to work in linear mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries fourth information B, which is used to indicate that optical module 1 does not have the capability of linear mode; device 2 modifies the first information A according to the fifth negotiation frame and sends the sixth negotiation frame to device 1, which carries the modified first information B, used to request optical module 1 to work in retiming mode.

[0180] Scenario 4 based on the communication system shown in FIG. 6: optical module 1 can not perform (e.g., bypass) the function of the oDSP chip, and optical module 2 can not perform (e.g., bypass) the function of the oDSP chip. That is, both optical module 1 and optical module 2 have the capability of linear mode.

[0181] In a third possible implementation based on scenario 4, the negotiation procedure shown in FIG. 2 is taken as an example. For the negotiation procedure initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request optical module 2 to work in linear mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries fourth information A, which is used to indicate that optical module 2 has the capability of linear mode; device 1 sends the third negotiation frame to device 2 according to the second negotiation frame, which carries the first information A, used to request optical module 2 to work in linear mode. For the negotiation procedure initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to work in linear mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries fourth information A, which is used to indicate that optical module 1 has the capability of linear mode; device 2 sends the sixth negotiation frame to device 1 according to the fifth negotiation frame, which carries the first information A, used to request optical module 1 to work in linear mode.

[0182] It should be understood that in the scenario 2, scenario 3 and scenario 4 based on the communication system shown in Fig. 6, the above-mentioned embodiment shown in Fig. 9 can also be adaptively modified, which will not be introduced one by one here.

[0183] Scenario 1 based on the communication system shown in Fig. 6: the optical module 1 can not perform (for example, bypass) the function of the oDSP chip, and the optical module 2 performs the function of the oDSP chip. That is, the optical module 1 has the ability of linear working mode, and the optical module 2 does not have the ability of linear working mode.

[0184] In a fourth possible embodiment based on scenario 1, the above-mentioned negotiation process shown in Fig. 2 is taken as an example. For the negotiation process initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries the first information A, which is used to request the optical module 2 to work in linear working mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries the third information B and the fourth information B, the third information B is used to indicate that the optical module 2 works in the retiming working mode, and the fourth information B is used to indicate that the optical module 2 does not have the ability of linear working mode; device 1 modifies the first information A according to the second negotiation frame and sends the third negotiation frame to device 2, the third negotiation frame carries the modified first information B, which is used to request the optical module 2 to work in the retiming working mode. For the negotiation process initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries the first information A, which is used to request the optical module 1 to work in linear working mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries the third information A and the fourth information A, the third information A is used to indicate that the optical module 1 works in linear working mode, and the fourth information A is used to indicate that the optical module 1 has the ability of linear working mode; device 2 sends the sixth negotiation frame to device 1 according to the fifth negotiation frame, and the sixth negotiation frame carries the first information A, which is used to request the optical module 1 to work in linear working mode.

[0185] Fig. 10 is another embodiment of the negotiation of the working mode of the optical module in the embodiment of the application. As shown in Fig. 10, the negotiation frame transmitted between host 1 and host 2 includes bit 1, bit 2 and bit 3, which is represented by negotiation frame (X1, X2, X3), X1 in the bracket represents bit 1, X2 in the bracket represents bit 2, and X3 in the bracket represents bit 3. Bit 1 is used to indicate whether the local optical module has the ability of linear working mode, bit 1 being 1 indicates that it has the ability of linear working mode, and bit 1 being 0 indicates that it does not have the ability of linear working mode. Bit 2 is used to indicate the working mode currently adopted by the local optical module, bit 2 being 1 indicates linear working mode, and bit 2 being 0 indicates retiming working mode. Bit 3 is used to request the working mode of the optical module at the other end, bit 3 being 1 indicates linear working mode, and bit 3 being 0 indicates retiming working mode.

[0186] In the initial state, host 1 sends negotiation frame 1-1 (1, 0, 1), which is transmitted to host 2 through optical module 1 and optical module 2 in turn. Bit 1 is 1, which indicates that optical module 1 has the capability of linear operation mode. Bit 2 is 0, which indicates that optical module 1 currently adopts the re-timing operation mode. Bit 3 is 1, which requests optical module 2 to operate in the linear operation mode. It should be understood that optical module 1 has the capability of reading and rewriting negotiation frame 1-1 (1, 0, 1). For example, if host 1 sends negotiation frame 1-1 (0, 0, 1) and optical module 1 has the capability of linear operation mode, optical module 1 rewrites negotiation frame 1-1 (0, 0, 1) to negotiation frame 1-1 (1, 0, 1) and sends. For another example, if host 1 sends negotiation frame 1-1 (1, 1, 1) and optical module 1 currently adopts the re-timing operation mode, optical module 1 rewrites negotiation frame 1-1 (1, 1, 1) to negotiation frame 1-1 (1, 0, 1) and sends.

[0187] In the initial state, host 2 sends negotiation frame 2-1 (0, 0, 1), which is transmitted to host 1 through optical module 2 and optical module 1 in turn. Bit 1 is 0, which indicates that optical module 2 does not have the capability of linear operation mode. Bit 2 is 0, which indicates that optical module 2 currently adopts the re-timing operation mode. Bit 3 is 1, which requests optical module 1 to operate in the linear operation mode. It should be understood that optical module 2 has the capability of reading and rewriting negotiation frame 2-1 (0, 1). For example, if host 2 sends negotiation frame 2-1 (1, 0, 1) and optical module 2 does not have the capability of linear operation mode, optical module 2 rewrites negotiation frame 2-1 (1, 0, 1) to negotiation frame 1-1 (0, 0, 1) and sends. For another example, if host 2 sends negotiation frame 1-1 (0, 1, 1) and optical module 2 currently adopts the re-timing operation mode, optical module 2 rewrites negotiation frame 2-1 (0, 1, 1) to negotiation frame 2-1 (0, 0, 1) and sends.

[0188] In the initial state, host 2 sends negotiation frame 2-1 (0, 0, 1), which is transmitted to host 1 through optical module 2 and optical module 1 in turn. Bit 1 is 0, which indicates that optical module 2 does not have the capability of linear operation mode. Bit 2 is 0, which indicates that optical module 2 currently adopts the re-timing operation mode. Bit 3 is 1, which requests optical module 1 to operate in the linear operation mode. It should be understood that optical module 2 has the capability of reading and rewriting negotiation frame 2-1 (0, 1). For example, if host 2 sends negotiation frame 2-1 (1, 0, 1) and optical module 2 does not have the capability of linear operation mode, optical module 2 rewrites negotiation frame 2-1 (1, 0, 1) to negotiation frame 1-1 (0, 0, 1) and sends. For another example, if host 2 sends negotiation frame 1-1 (0, 1, 1) and optical module 2 currently adopts the re-timing operation mode, optical module 2 rewrites negotiation frame 2-1 (0, 1, 1) to negotiation frame 2-1 (0, 0, 1) and sends.

[0189] Host 1 sends negotiation frame 2-2 (1, 1, 0) according to negotiation frame 2-1 (0, 0, 1), negotiation frame 2-2 (1, 1, 0) is transmitted to host 2 through optical module 1 and optical module 2 in turn, bit 1 is 1 for indicating that optical module 1 has the capability of linear working mode, bit 2 is 1 for indicating that optical module 1 currently adopts linear working mode, and bit 3 is 0 for requesting optical module 2 to work in retiming working mode.

[0190] Host 1 sends negotiation frame 1-3 (1, 1, 0) according to negotiation frame 1-2 (0, 0, 1), negotiation frame 1-3 (1, 1, 0) is transmitted to host 2 through optical module 1 and optical module 2 in turn, bit 1 is 1 for indicating that optical module 1 has the capability of linear working mode, bit 2 is 1 for indicating that optical module 1 currently adopts linear working mode, and bit 3 is 0 for requesting optical module 2 to work in retiming working mode.

[0191] Host 2 sends negotiation frame 2-3 (0, 0, 1) according to negotiation frame 2-2 (1, 1, 0), negotiation frame 2-3 (0, 0, 1) is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 does not have the capability of linear working mode, bit 2 is 0 for indicating that optical module 2 currently adopts retiming working mode, and bit 3 is 1 for requesting optical module 1 to work in linear working mode.

[0192] Host 2 sends negotiation frame 1-4 (0, 0, 1) according to negotiation frame 1-3 (1, 1, 0), negotiation frame 1-4 (0, 0, 1) is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 does not have the capability of linear working mode, bit 2 is 0 for indicating that optical module 2 currently adopts retiming working mode, and bit 3 is 1 for requesting optical module 1 to work in linear working mode.

[0193] Host 1 sends negotiation frame 2-4 (1, 1, 0) according to negotiation frame 2-3 (0, 0, 1), negotiation frame 2-4 (1, 1, 0) is transmitted to host 2 through optical module 1 and optical module 2 in turn, bit 1 is 1 for indicating that optical module 1 has the capability of linear working mode, bit 2 is 1 for indicating that optical module 1 currently adopts linear working mode, and bit 3 is 0 for requesting optical module 2 to work in retiming working mode.

[0194] Optionally, after that, host1 and host2 can continue to send negotiation frames to each other, for example, host1 sends negotiation frame 1-5 (1, 1, 0), host2 sends negotiation frame 2-5 (0, 0, 1), and so on. If the information carried in the negotiation frames sent by host1 and host2 respectively does not change any more, for example, the information carried in the negotiation frames sent repeatedly N times does not change, it is considered that the negotiation is successful. Then, optical module 1 works in linear working mode, and optical module 2 works in retiming working mode.

[0195] Scenario 2 based on the communication system shown in FIG. 6: optical module 1 is required to perform the function of the oDSP chip, and optical module 2 can not perform (for example, bypass) the function of the oDSP chip. That is, optical module 1 does not have the capability of linear working mode, and optical module 2 has the capability of linear working mode.

[0196] In a fourth possible implementation based on scenario 2, the above negotiation process shown in FIG. 2 is taken as an example. For the negotiation process initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request optical module 2 to work in linear working mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries third information A and fourth information A, the third information A is used to indicate that optical module 2 works in linear working mode, and the fourth information A is used to indicate that optical module 2 has the capability of linear working mode; the third negotiation frame sent by device 1 to device 2 according to the second negotiation frame carries first information A, which is used to request optical module 2 to work in linear working mode. For the negotiation process initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to work in linear working mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries third information B and fourth information B, the third information B is used to indicate that optical module 1 works in retiming working mode, and the fourth information B is used to indicate that optical module 1 does not have the capability of linear working mode; device 2 modifies first information A according to the fifth negotiation frame and sends the sixth negotiation frame to device 1, the sixth negotiation frame carries modified first information B, which is used to request optical module 1 to work in retiming working mode.

[0197] Scenario 3 based on the communication system shown in FIG. 6: optical module 1 is required to perform the function of the oDSP chip, and optical module 2 is required to perform the function of the oDSP chip. That is, optical module 1 and optical module 2 do not have the capability of linear working mode.

[0198] In a fourth possible implementation based on the scenario 3, the negotiation procedure shown in FIG. 2 is taken as an example. For the negotiation procedure initiated by the device 1, the first negotiation frame sent by the device 1 to the device 2 carries the first information A for requesting the optical module 2 to work in the linear working mode; the second negotiation frame sent by the device 2 to the device 1 according to the first negotiation frame carries the third information B for instructing the optical module 2 to work in the retiming working mode and the fourth information B for indicating that the optical module 2 has no capability of the linear working mode; the device 1 modifies the first information A according to the second negotiation frame and sends the third negotiation frame to the device 2, the third negotiation frame carries the modified first information B for requesting the optical module 2 to work in the retiming working mode. For the negotiation procedure initiated by the device 2, the fourth negotiation frame sent by the device 2 to the device 1 carries the first information A for requesting the optical module 1 to work in the linear working mode; the fifth negotiation frame sent by the device 1 to the device 2 according to the fourth negotiation frame carries the third information B for instructing the optical module 1 to work in the retiming working mode and the fourth information B for indicating that the optical module 1 has no capability of the linear working mode; the device 2 modifies the first information A according to the fifth negotiation frame and sends the sixth negotiation frame to the device 1, the sixth negotiation frame carries the modified first information B for requesting the optical module 1 to work in the retiming working mode.

[0199] Scenario 4 based on the communication system shown in FIG. 6: the optical module 1 can not perform (e.g. bypass) the function of the oDSP chip, and the optical module 2 can not perform (e.g. bypass) the function of the oDSP chip. That is, the optical module 1 and the optical module 2 both have the capability of the linear working mode.

[0200] In a fourth possible implementation based on scenario 4, the negotiation procedure shown in Fig. 2 is taken as an example. For the negotiation procedure initiated by device 1, the first negotiation frame sent by device 1 to device 2 carries first information A, which is used to request optical module 2 to work in linear mode; the second negotiation frame sent by device 2 to device 1 according to the first negotiation frame carries third information A and fourth information A, the third information A is used to instruct optical module 2 to work in linear mode, and the fourth information A is used to indicate that optical module 2 has the capability of linear mode; the third negotiation frame sent by device 1 to device 2 according to the second negotiation frame carries first information A, which is used to request optical module 2 to work in linear mode. For the negotiation procedure initiated by device 2, the fourth negotiation frame sent by device 2 to device 1 carries first information A, which is used to request optical module 1 to work in linear mode; the fifth negotiation frame sent by device 1 to device 2 according to the fourth negotiation frame carries third information A and fourth information A, the third information A is used to instruct optical module 1 to work in linear mode, and the fourth information A is used to indicate that optical module 1 has the capability of linear mode; the sixth negotiation frame sent by device 2 to device 1 according to the fifth negotiation frame carries first information A, which is used to request optical module 1 to work in linear mode.

[0201] It should be understood that in scenarios 2, 3 and 4 based on the communication system shown in Fig. 6, the implementation shown in Fig. 10 can also be adapted accordingly, which will not be introduced one by one here.

[0202] Based on the various scenarios of the communication system shown in Fig. 6, in some possible implementations, the negotiation frame sent by device 1 to device 2 is only used to indicate the working mode currently adopted by optical module 1, and the negotiation frame sent by device 2 to device 1 is only used to indicate the working mode currently adopted by optical module 2. A possible implementation is introduced below taking scenario 1 of the communication system shown in Fig. 6 as an example.

[0203] Scenario 1 of the communication system shown in Fig. 6: Optical module 1 can not perform the function of oDSP chip (e.g., bypass), and optical module 2 is required to perform the function of oDSP chip. That is, optical module 1 has the capability of linear mode, and optical module 2 does not have the capability of linear mode.

[0204] Fig. 11 is a schematic diagram of another implementation of the negotiation of the working mode of the optical module in the embodiment of the application. As shown in Fig. 11, the negotiation frame transmitted between host 1 and host 2 includes bit 1, which is represented by negotiation frame (X1), and the X1 in the bracket represents bit 1. Bit 1 is used to indicate the working mode currently adopted by the local optical module, and bit 1 is 1 indicates linear mode, and bit 1 is 0 indicates retiming mode.

[0205] In the initial state, host 1 sends negotiation frame 1-1(0), which is transmitted to host 2 through optical module 1 and optical module 2 in turn, with bit 1 being 0 by default to indicate that optical module 1 is currently in the re-timing working mode. It should be understood that optical module 1 has the ability to read and rewrite negotiation frame 1-1(0), for example, if host 1 sends negotiation frame 1-1(1), and optical module 1 is currently in the re-timing working mode, optical module 1 will rewrite negotiation frame 1-1(1) to negotiation frame 1-1(0) and send it.

[0206] In the initial state, host 2 sends negotiation frame 2-1(0), which is transmitted to host 1 through optical module 2 and optical module 1 in turn, with bit 1 being 0 by default to indicate that optical module 2 is currently in the re-timing working mode. It should be understood that optical module 2 has the ability to read and rewrite negotiation frame 2-1(0), for example, if host 2 sends negotiation frame 2-1(1), and optical module 2 is currently in the re-timing working mode, optical module 2 will rewrite negotiation frame 2-1(1) to negotiation frame 2-1(0) and send it.

[0207] Host 2 attempts to rewrite bit 1 according to negotiation frame 1-1(0), that is, sends negotiation frame 1-2(1). Since optical module 2 does not have the ability of linear working mode, optical module 2 will rewrite negotiation frame 1-2(1) to negotiation frame 1-2(0) and send it, and negotiation frame 1-2(0) is transmitted to host 1 through optical module 1, with bit 1 being 0 to indicate that optical module 2 is currently in the re-timing working mode.

[0208] Host 1 attempts to rewrite bit 1 according to negotiation frame 2-1(0), that is, sends negotiation frame 2-2(1). Since optical module 1 has the ability of linear working mode, optical module 1 will not rewrite negotiation frame 2-2(1). Negotiation frame 2-2(1) is transmitted to host 2 through optical module 1 and optical module 2 in turn, with bit 1 being 1 to indicate that optical module 1 is currently in the linear working mode.

[0209] Host 1 attempts to rewrite bit 1 according to negotiation frame 1-2(0), that is, sends negotiation frame 1-3(1). Since optical module 1 has the ability of linear working mode, optical module 1 will not rewrite negotiation frame 1-3(1,0). Negotiation frame 1-3(1,0) is transmitted to host 2 through optical module 1 and optical module 2 in turn, with bit 1 being 1 to indicate that optical module 1 is currently in the linear working mode.

[0210] Host 2 sends negotiation frame 2-3(0) according to negotiation frame 2-2(1), negotiation frame 2-3(0) is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 currently adopts the re-timing working mode.

[0211] Host 2 sends negotiation frame 1-4(0) according to negotiation frame 1-3(1), negotiation frame 1-4(0) is transmitted to host 1 through optical module 2 and optical module 1 in turn, bit 1 is 0 for indicating that optical module 2 currently adopts the re-timing working mode.

[0212] Host 1 sends negotiation frame 2-4(1) according to negotiation frame 2-3(0), negotiation frame 2-4(1) is transmitted to host 2 through optical module 1 and optical module 2 in turn, bit 1 is 1 for indicating that optical module 1 currently adopts the linear working mode.

[0213] Optionally, after that, host 1 and host 2 can continue to send negotiation frames to each other, for example, host 1 sends negotiation frame 1-5(1), host 2 sends negotiation frame 2-5(0), and so on. If the information carried in the negotiation frames sent by host 1 and host 2 respectively does not change any more, for example, the information carried in the negotiation frames sent repeatedly N times does not change, it is considered that the negotiation is successful. Then, optical module 1 works in the linear working mode, and optical module 2 works in the re-timing working mode.

[0214] It should be understood that in scenarios 2, 3 and 4 based on the communication system shown in Fig. 6, the implementation shown in Fig. 11 can also be adapted, which will not be introduced one by one here.

[0215] Fig. 12 is a schematic diagram of another possible communication system in the embodiments of the present application. Different from the communication system shown in Fig. 6, as shown in Fig. 12, optical module 1 is a common optical module including an oDSP chip, and optical module 2 is an LPO optical module not including an oDSP chip.

[0216] Scenario 5 based on the communication system shown in Fig. 12: optical module 1 can not perform the function of the oDSP chip (for example, bypass), that is, optical module 1 and optical module 2 both have the capability of the linear working mode. It should be understood that scenario 5 based on the communication system shown in Fig. 12 is equivalent to scenario 4 based on the communication system shown in Fig. 6. Therefore, the implementation of scenario 5 based on the communication system shown in Fig. 12 is similar to the implementation of scenario 4 based on the communication system shown in Fig. 6, and the specific implementation can be referred to the introduction of the various implementations of scenario 4 based on the communication system shown in Fig. 6, which will not be described here.

[0217] Scenario 6 based on the communication system shown in FIG. 12: the optical module 1 is to perform the function of the oDSP chip, i.e., the optical module 1 does not have the capability of linear operation mode, and the optical module 2 has the capability of linear operation mode. It should be understood that the scenario 6 based on the communication system shown in FIG. 12 is equivalent to the above-mentioned scenario 2 based on the communication system shown in FIG. 6. Therefore, the implementation of the scenario 6 based on the communication system shown in FIG. 12 is similar to the implementation of the scenario 2 based on the communication system shown in FIG. 6, and specific reference can be made to the above-mentioned introduction of various implementations of the scenario 2 based on the communication system shown in FIG. 6, which will not be repeated here.

[0218] FIG. 13 is another possible communication system in embodiments of the present application. Different from the communication systems shown in FIG. 6 and FIG. 12, as shown in FIG. 13, the optical module 1 and the optical module 2 are both LPO optical modules without oDSP chips.

[0219] Scenario 7 based on the communication system shown in FIG. 13: the optical module 1 and the optical module 2 both have the capability of linear operation mode. It should be understood that the scenario 7 based on the communication system shown in FIG. 13 is equivalent to the above-mentioned scenario 4 based on the communication system shown in FIG. 6. Therefore, the implementation of the scenario 7 based on the communication system shown in FIG. 13 is similar to the implementation of the scenario 4 based on the communication system shown in FIG. 6, and specific reference can be made to the above-mentioned introduction of various implementations of the scenario 4 based on the communication system shown in FIG. 6, which will not be repeated here.

[0220] FIG. 14 is another possible communication system in embodiments of the present application. Different from the communication systems shown in FIG. 6, FIG. 12 and FIG. 13, as shown in FIG. 14, the optical module 1 is a common optical module including an oDSP chip, and the optical module 2 is an LRO optical module without performing (e.g., bypassing) the function of the oDSP chip on the receiving side. The common optical module 1 and the LRO optical module 2 each further include a driver (DRV), a trans-impedance amplifier (TIA), a TOSA, a ROSA, etc. For the host 1, the transmitter (TX) module and the receiver (RX) module of the PHY chip are connected with the oDSP chip of the common optical module 1. For the host 2, the TX module of the PHY chip is connected with the oDSP chip of the LRO optical module 2, and the RX module of the PHY chip is not connected with the oDSP chip of the LRO optical module 2. As an example, as shown in FIG. 14, the driver and the trans-impedance amplifier can be devices independent of the oDSP chip. As another example, the driver and the trans-impedance amplifier can also be integrated in the oDSP chip.

[0221] Scenario 8 based on the communication system shown in FIG. 14: the optical module 1 can not perform (e.g., bypass) the function of the oDSP chip, i.e., both the receiving side of the optical module 1 and the optical module 2 have the capability of linear working mode. Taking the negotiation of the working mode of the receiving side of the optical module at both ends in scenario 8 as an example, the specific implementation is similar to the implementation of scenario 4 based on the communication system shown in FIG. 6, and the main difference is that the information carried in the negotiation frame is specifically used to indicate the content related to the working mode of the receiving side of the optical module. For example, the first information A described above is used to request the receiving side of the optical module at the opposite end to work in linear working mode, and the first information B is used to request the receiving side of the optical module at the opposite end to work in retiming working mode. For another example, the second information A is used to indicate the agreement of the receiving side of the local optical module to work in the working mode requested by the opposite end, and the second information B is used to indicate the disagreement of the receiving side of the local optical module to work in the working mode requested by the opposite end. For another example, the third information A is used to indicate the receiving side of the local optical module to work in linear working mode, and the third information B is used to indicate the receiving side of the local optical module to work in retiming working mode. For another example, the fourth information A is used to indicate that the receiving side of the local optical module has the capability of linear working mode, and the fourth information B is used to indicate that the receiving side of the local optical module does not have the capability of linear working mode. Similarly, the working mode of the sending side of the optical module at both ends can also be negotiated based on scenario 8, and the specific implementation is also similar to the implementation of scenario 4 based on the communication system shown in FIG. 6, and the main difference is that the information carried in the negotiation frame is specifically used to indicate the content related to the working mode of the sending side of the optical module. Therefore, for scenario 8 of the communication system shown in FIG. 14, the specific implementation can be referred to the introduction of various embodiments of scenario 4 based on the communication system shown in FIG. 6, which will not be described here.

[0222] Scenario 9 based on the communication system shown in FIG. 14: the optical module 1 is required to perform the function of the oDSP chip, i.e., the optical module 1 does not have the capability of linear working mode, and the receiving side of the optical module 2 has the capability of linear working mode. Taking the negotiation of the working mode of the receiving side of the optical module at both ends in scenario 8 as an example, the specific implementation is similar to the implementation of scenario 2 based on the communication system shown in FIG. 6, and the main difference is that the information carried in the negotiation frame is specifically used to indicate the content related to the working mode of the receiving side of the optical module. Similarly, the working mode of the sending side of the optical module at both ends can also be negotiated based on scenario 9, and the specific implementation is also similar to the implementation of scenario 2 based on the communication system shown in FIG. 6, and the main difference is that the information carried in the negotiation frame is specifically used to indicate the content related to the working mode of the sending side of the optical module. Therefore, for scenario 9 of the communication system shown in FIG. 14, the specific implementation can be referred to the introduction of various embodiments of scenario 2 based on the communication system shown in FIG. 6, which will not be described here.

[0223] Fig. 15 is a schematic diagram of another possible communication system in embodiments of the present application. Different from the communication systems shown in Fig. 6, Fig. 12, Fig. 13 and Fig. 14, as shown in Fig. 15, both optical module 1 and optical module 2 are LRO optical modules which do not perform (e.g. bypass) oDSP chip function at the receiving side. For host 1, the TX module and RX module of the PHY chip are connected with the oDSP chip of optical module 1, i.e. both the transmitting side and the receiving side of optical module 1 have oDSP chip function, for example, the oDSP chip of optical module 1 includes two sub-modules oDSP(TX) and oDSP(RX), the transmitting side of optical module 1 performs the function of the oDSP chip, and the receiving side of optical module 1 does not perform (e.g. bypass) the function of the oDSP chip, i.e. optical module 1 turns on the oDSP(TX) sub-module and turns off the oDSP(RX) sub-module. For host 2, the TX module of the PHY chip is connected with the oDSP chip of optical module 2, and the RX module of the PHY chip is connected with the oDSP chip of optical module 2. That is, both optical module 1 and optical module 2 can be called LRO optical modules although they have different hardware structures.

[0224] Scenario 10 based on the communication system shown in Fig. 15: both optical module 1 and optical module 2 have the capability of linear operation mode at the receiving side. Taking the negotiation of the operation mode of the receiving side of the two optical modules in scenario 10 as an example, the specific implementation is similar to the implementation of scenario 4 based on the communication system shown in Fig. 6, and the main difference is that the information carried in the negotiation frame is specifically used to indicate the content related to the operation mode of the receiving side of the optical module. Similarly, the operation mode of the transmitting side of the two optical modules can also be negotiated based on scenario 10, and the specific implementation is also similar to the implementation of scenario 4 based on the communication system shown in Fig. 6, and the main difference is that the information carried in the negotiation frame is specifically used to indicate the content related to the operation mode of the transmitting side of the optical module. Therefore, for scenario 10 of the communication system shown in Fig. 15, the various implementations of scenario 4 based on the communication system shown in Fig. 6 can be referred to, and details are not described herein.

[0225] Fig. 16 is a schematic diagram of a non-breakout scenario of a communication system according to an embodiment of the present application. As shown in Fig. 16, taking one of the transmission directions of the scenario as an example, a 400GE bandwidth is divided into 4 independent 100GE signals in an optical manner at a rate of 400 gigabits per second (Gbps). The host transmits 4 data streams to the 400G optical module 1 through 4 channels, and the transmission rate of each data stream is 100Gbps, and the total transmission rate is 400Gbps. The 4 data streams are transmitted to the host 2 through the 400G optical module 2. For the non-breakout scenario in which the 400G optical module 1 is connected to the 400G optical module 2 in a one-to-one manner, the host 1 and the host 2 can transmit negotiation frames through any one of the 4 channels, instead of transmitting negotiation frames through all the channels, for example, the host 1 and the host 2 both transmit negotiation frames through channel 0. After the working mode of the optical module is successfully negotiated, the negotiated working mode is applicable to each channel connected to the optical module.

[0226] Fig. 17 is a schematic diagram of a breakout scenario of a communication system according to an embodiment of the present application. Different from the scenario shown in Fig. 16, as shown in Fig. 17, the 400G optical module 1 is connected to 4 100G optical modules respectively. The 4 data streams transmitted by the host 1 through the 4 channels are transmitted to the 4 100G optical modules respectively through the 400G optical module 1, and then transmitted to the corresponding 4 hosts respectively. For the breakout scenario in which the 400G optical module 1 is connected to the 4 100G optical modules in a one-to-many manner, the host 1 transmits negotiation frames to the corresponding opposite host through each channel, so as to negotiate the working mode of the corresponding optical module. For example, the host 1 and the host 2 transmit negotiation frames to each other through channel 0, so as to negotiate the working mode of the 400G optical module 1 based on channel 0 and the working mode of the 100G optical module 2, that is, the negotiated working mode is only applicable to the 100G optical module 2 bound to channel 0.

[0227] It should be understood that the scenarios shown in Figs. 16 and 17 above are both described by taking the transmission of data through 4 channels as an example. In some other possible scenarios, data can also be transmitted through other numbers of channels. For example, 2 data streams are transmitted through 2 channels respectively. For another example, 8 data streams are transmitted through 8 channels respectively. For another example, 16 data streams are transmitted through 16 channels respectively.

[0228] After the negotiation process described in the above embodiments is completed, the host also needs to configure parameters according to the working mode of the local optical module obtained through negotiation. Each working mode of the optical module has corresponding parameters for both the optical module and the host. Therefore, the host needs to configure both its own parameters and the parameters of the local optical module. Specifically, the parameters of the optical module and the host include, but are not limited to, parameters for forward error correction (FEC), precoding, equalizer, and modulator. The host can select the parameters corresponding to the working mode of the local optical module from a pre-stored parameter configuration table for configuration.

[0229] In some possible scenarios, the parameters that need to be configured for the host and local optical modules may be influenced by factors other than the operating mode of the local optical module. These could include port number, port link loss, and single-channel rate. It should be understood that in the parameter configuration table pre-stored on the host, each operating mode of the optical module may correspond to multiple sets of parameters. As an example, first determine the multiple sets of parameters corresponding to the negotiated operating mode of the optical module from the parameter configuration table, and then determine the unique set of parameters based on other influencing factors. As another example, combine the negotiated operating mode of the optical module with other influencing factors to directly determine the unique set of parameters from the parameter configuration table.

[0230] It should be noted that the negotiation method for the optical module operating mode provided in this application embodiment, as mentioned in the scenario shown in Figure 4 above, can be implemented in the self-negotiation phase of the AN sublayer. Alternatively, in another possible scenario, the negotiation method for the optical module operating mode provided in this application embodiment can also be implemented in the link training (LT) phase. The LT phase is a processing procedure that runs after the self-negotiation phase. In the LT phase, the first device sends an LT frame to the second device. The LT frame is used to train the link from the second device to the first device; that is, the LT frame is used to train the transmitter (TX) parameters of the second device.

[0231] In this implementation, the aforementioned negotiation information (e.g., bit 1 and bit 2) can be extended into the LT frame of the LT stage, transforming the traditional LT frame into an extended LT frame. The extended LT frame includes the aforementioned negotiation information (e.g., bit 1 and bit 2). Thus, the optical module operating mode negotiation method provided in this embodiment is implemented using the extended LT frame.

[0232] Specifically, the negotiation frame in the embodiments of the present application can be implemented by extending the corresponding negotiation information in the LT frame. Taking the scenario shown in FIG. 2 as an example, the first negotiation frame mentioned above can be an extended LT frame. That is, the extended LT frame mentioned above can be referred to as the first negotiation frame. Correspondingly, the second negotiation frame, the third negotiation frame, the fourth negotiation frame, the fifth negotiation frame and the sixth negotiation frame mentioned above can also be implemented by extending the LT frame, so that the negotiation method of the working mode of the optical module provided in the embodiments of the present application is applied to the LT stage.

[0233] FIG. 18 is a schematic diagram of a structure of a communication device in the embodiments of the present application. As shown in FIG. 18, the communication device includes a processing unit 101 and a transceiver unit 102. In a possible implementation, the communication device is configured to perform the operations of the device 1 in the above embodiments. Specifically, the transceiver unit 102 is configured to perform the operations of the device 1 in transmitting and receiving the negotiation frames, and the processing unit 101 is configured to perform the operations of the device 1 other than transmitting and receiving the negotiation frames.

[0234] FIG. 19 is another schematic diagram of a structure of a communication device in the embodiments of the present application. As shown in FIG. 19, the communication device includes a processor 201 and an interface 202. It should be understood that the interface 202 can be a transceiver or an input / output interface. The interface is configured to receive a signal from another device outside the communication device and transmit the signal to the processor 201, or transmit a signal from the processor 201 to another device outside the communication device. In a possible implementation, the communication device is configured to perform the operations of the device 1 in the above embodiments. Specifically, the interface 202 is configured to perform the operations of the device 1 in transmitting and receiving the negotiation frames, and the processor 201 is configured to perform the operations of the device 1 other than transmitting and receiving the negotiation frames. In another possible implementation, the communication device is configured to perform the operations of the device 2 in the above embodiments. Specifically, the interface 202 is configured to perform the operations of the device 2 in transmitting and receiving the negotiation frames, and the processor 201 is configured to perform the operations of the device 2 other than transmitting and receiving the negotiation frames. Optionally, the communication device can further include a memory 203, where the memory 203 is configured to store program instructions and data.

[0235] The embodiments of the present application also provide a chip. The chip integrates a circuit for implementing the functions of the processor 201 and one or more interfaces. As an example, the chip integrates a memory. As another example, when the chip does not integrate a memory, the chip can be connected with an external memory through the interface. The chip can complete the method steps of any one or more of the preceding embodiments. Alternatively, the chip implements the actions performed by the data processing apparatus in the embodiments according to program codes stored in the memory.

[0236] As an example, the chip in the embodiments of the present application can be a central processing unit (CPU), and can also be another general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a transistor logic device, a hardware component or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor, and can also be a processing circuit implementing specific functions.

[0237] The embodiments of the present application also provide a computer readable storage medium, including a program or instructions, which, when executed on a computer, cause the implementation of the method performed by the method embodiments.

[0238] It should be understood that the processor mentioned in the embodiments of the present application can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit or the like. When implemented by software, the processor can be a general-purpose processor, which implements by reading software codes stored in a memory. The memory can exist independently and be connected with the processor, or the memory can be integrated with the processor.

[0239] As an example, the processor in the embodiments of the present application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor, and can also be a processing circuit that implements specific functions.

[0240] The memory in the embodiments of the present application can be a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically EPROM (EEPROM), a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can be a component of the processor. The processor and the storage medium can be located in an ASIC. The ASIC can be located in a network device or a terminal device. Of course, the processor and the storage medium can also exist as discrete components in the network device or the terminal device.

[0241] In the above embodiments, the data processing method provided by the embodiments of the present application can be implemented wholly or partially by software, hardware, firmware or any combination thereof.

[0242] When implemented by using hardware, the data processing method provided by the embodiments of the present application can be implemented without reading software codes or instructions, for example, by using a CPU, a DSP, an ASIC, an FPGA, other programmable logic devices, transistor logic devices, hardware components or any combination thereof.

[0243] When implemented using software, the functions can be implemented using one or more computer programs or instructions stored or executed in at least one computer-readable medium. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, or a computer-readable signal. The computer-readable medium can include, but is not limited to, floppy diskettes, optical disks, CD-ROMs, DVDs, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards, flash memory, or any other suitable type of machine-readable medium. Suitable machine-readable media for storing or transmitting software include hardware- or software-readable media that store data which can be accessed by one or more computer systems. A computer-readable medium stores computer-executable instructions or data that, in combination with the computer system, cause the computer system to operate. For example, a non-transitory computer-readable medium comprising a computer-readable medium that does not undergo a transformation during transmission is any medium that stores data that is not transmitted but is accessed by the computer system. Examples of non-transitory computer-readable media include random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory, etc. In contrast, a transitory computer-readable medium is a computer-readable medium that undergoes a transformation during transmission. Examples of transitory computer-readable media include carrier waves, optical signals, and the like. The computer system can include a processor, a memory, and input and output devices. The memory stores computer-executable instructions or data that, in combination with the computer system, cause the computer system to operate. For example, the memory can store a computer program that, when executed by the computer system, causes the computer system to perform one or more processes.

[0244] Finally, it should be noted that the above merely illustrates the present application by way of example, and the scope of the present application is not limited thereto. Any person skilled in the art can easily make modifications or substitutions within the technical scope disclosed in the present application, and all such modifications or substitutions should be encompassed within the scope of the present application. Therefore, the scope of the present application should be determined by the scope of the claims.

Claims

1. A method for negotiating the operating mode of an optical module, characterized in that, include: The first device acquires the first negotiation frame; The first device sends the first negotiation frame to the second device. The first negotiation frame is used to request the second optical module to operate in a first working mode. The second device is the second optical module, or the second device is connected to the second optical module.

2. The method according to claim 1, characterized in that, The first working mode is either a linear working mode or a retiming working mode.

3. The method according to claim 2, characterized in that, The linear operating mode includes at least one of the linear operating mode on the transmitting side and the linear operating mode on the receiving side, and the retiming operating mode includes at least one of the retiming operating mode on the transmitting side and the retiming operating mode on the receiving side.

4. The method according to any one of claims 1 to 3, characterized in that, The first negotiation frame is also used to instruct the first optical module to operate in a second operating mode, wherein the first device is the first optical module, or the first device is connected to the first optical module, and the second operating mode is a linear operating mode or a retiming operating mode.

5. The method according to any one of claims 1 to 4, characterized in that, The first negotiation frame is also used to indicate whether the first optical module has the capability of a linear operating mode, wherein the first device is the first optical module, or the first device is connected to the first optical module.

6. The method according to any one of claims 1 to 5, characterized in that, After the first device sends the first negotiation frame to the second device, the method further includes: The first device receives a second negotiation frame sent by the second device based on the first negotiation frame. The second negotiation frame is used to indicate whether the second optical module is agreed to operate in the first working mode.

7. The method according to any one of claims 1 to 5, characterized in that, After the first device sends the first negotiation frame to the second device, the method further includes: The first device receives a second negotiation frame sent by the second device based on the first negotiation frame. The second negotiation frame is used to indicate the operating mode adopted by the second optical module.

8. The method according to claim 7, characterized in that, After the first device receives the second negotiation frame sent by the second device according to the first negotiation frame, the method further includes: The first device sends a third negotiation frame to the second device according to the second negotiation frame, the third negotiation frame requesting the second optical module to adopt the operating mode indicated by the second negotiation frame.

9. The method according to any one of claims 1 to 8, characterized in that, The second optical module includes an optical digital signal processing (oDSP) chip and has the capability of a linear operating mode. The first negotiation frame is used to request the second optical module to operate in the linear operating mode.

10. The method according to claim 8, characterized in that, The second optical module includes an oDSP chip, and the second optical module does not have the capability of a linear operating mode; If the first negotiation frame is used to request the second optical module to operate in the linear operating mode, then the second negotiation frame is used to instruct the second optical module to adopt the retiming operating mode, and the third negotiation frame is used to request the second optical module to adopt the retiming operating mode.

11. The method according to any one of claims 1 to 8, characterized in that, The second optical module is a linearly driven pluggable optical LPO module. The second optical module has the capability of a linear operating mode. The first negotiation frame is used to request the second optical module to operate in the linear operating mode.

12. The method according to any one of claims 1 to 8, characterized in that, The second optical module is a semi-retiming optical HRO optical module. The transmitting side of the second optical module has the capability of a linear operating mode. The first negotiation frame is used to request the transmitting side of the second optical module to operate in the linear operating mode.

13. The method according to any one of claims 1 to 8, characterized in that, The second optical module is an HRO optical module. The receiving side of the second optical module has the capability of a linear operating mode. The first negotiation frame is used to request the receiving side of the second optical module to operate in the linear operating mode.

14. The method according to claim 8, characterized in that, The second optical module is an HRO optical module, and the transmitting side of the second optical module does not have the capability of a linear operating mode; If the first negotiation frame is used to request the transmitting side of the second optical module to adopt the linear operating mode, then the second negotiation frame is used to instruct the transmitting side of the second optical module to adopt the retiming operating mode, and the third negotiation frame is used to request the transmitting side of the second optical module to adopt the retiming operating mode.

15. The method according to claim 8, characterized in that, The second optical module is an HRO optical module, and the receiving side of the second optical module does not have the capability of a linear operating mode; If the first negotiation frame is used to request the receiving side of the second optical module to adopt the linear operating mode, then the second negotiation frame is used to instruct the receiving side of the second optical module to adopt the retiming operating mode, and the third negotiation frame is used to request the receiving side of the second optical module to adopt the retiming operating mode.

16. The method according to any one of claims 1 to 15, characterized in that, The first device is a first optical module, and the first device acquires the first negotiation frame by: The first device receives the first negotiation frame sent by the third device, and the first negotiation frame is also used to indicate the operating mode adopted by the first optical module. If the operating mode of the first optical module indicated by the first negotiation frame is different from the actual operating mode of the first optical module, the first device modifies the first negotiation frame, and the modified first negotiation frame is used to indicate the actual operating mode of the first optical module. The first device sending the first negotiation frame to the second device includes: The first device sends the modified first negotiation frame to the second device.

17. The method according to any one of claims 1 to 15, characterized in that, The first negotiated frame is a Differential Manchester Coded (DME) frame.

18. The method according to claim 17, characterized in that, The base page or extension page of the first negotiation frame is used to request the operating mode adopted by the second optical module.

19. The method according to any one of claims 1 to 18, characterized in that, The method further includes: The first device receives a fourth negotiation frame sent by the second device. The fourth negotiation frame is used to request the first optical module to operate in a third working mode. The first device is the first optical module, or the first device is connected to the first optical module. The third working mode is a linear working mode or a retiming working mode. The first device determines the operating mode adopted by the first optical module based on the fourth negotiation frame and whether the first optical module has the capability of the third operating mode.

20. The method according to claim 19, characterized in that, After the first device determines the operating mode adopted by the first optical module, the method further includes: The first device configures operating parameters according to the operating mode adopted by the first optical module. The operating parameters include at least one of the following: parameters of forward error correction (FEC), parameters of precoding, parameters of equalizer, and parameters of modulator.

21. A method for negotiating the operating mode of an optical module, characterized in that, include: The second device receives a first negotiation frame sent by the first device. The first negotiation frame is used to request the second optical module to work in a first working mode. The second device is the second optical module, or the second device is connected to the second optical module. The second device determines the operating mode adopted by the second optical module based on the first negotiation frame and whether the second optical module has the capability of the first operating mode.

22. The method according to claim 21, characterized in that, After the second device determines the operating mode adopted by the second optical module, the method further includes: The second device sends a second negotiation frame to the first device, the second negotiation frame being used to indicate the operating mode adopted by the second optical module.

23. The method according to claim 21 or 22, characterized in that, The first working mode is either a linear working mode or a retiming working mode.

24. The method according to claim 23, characterized in that, The first negotiation frame requests the second optical module to operate in the linear operating mode, the second optical module has the capability of the linear operating mode, and the second device determines that the second optical module adopts the linear operating mode. Alternatively, if the first negotiation frame requests the second optical module to operate in the linear operating mode, and the second optical module does not have the capability of the linear operating mode, the second device determines that the second optical module adopts the retiming operating mode.

25. The method according to claim 23, characterized in that, The linear operating mode includes at least one of the linear operating mode on the transmitting side and the linear operating mode on the receiving side, and the retiming operating mode includes at least one of the retiming operating mode on the transmitting side and the retiming operating mode on the receiving side.

26. The method according to claim 25, characterized in that, The first negotiation frame requests the transmitting side of the second optical module to operate in the linear operating mode, the transmitting side of the second optical module has the capability of the linear operating mode, and the second device determines that the transmitting side of the second optical module adopts the linear operating mode; Alternatively, the first negotiation frame requests the transmitting side of the second optical module to operate in the linear operating mode, but the transmitting side of the second optical module does not have the capability of the linear operating mode, and the second device determines that the transmitting side of the second optical module adopts the retiming operating mode. Alternatively, the first negotiation frame requests the receiving side of the second optical module to operate in the linear operating mode, the receiving side of the second optical module has the capability of the linear operating mode, and the second device determines that the receiving side of the second optical module adopts the linear operating mode. Alternatively, if the first negotiation frame requests the receiving side of the second optical module to operate in the linear operating mode, and the receiving side of the second optical module does not have the capability of the linear operating mode, the second device determines that the receiving side of the second optical module adopts the retiming operating mode.

27. The method according to any one of claims 21 to 26, characterized in that, The first negotiation frame is also used to instruct the first optical module to operate in a second operating mode, wherein the first device is the first optical module, or the first device is connected to the first optical module, and the second operating mode is a linear operating mode or a retiming operating mode.

28. The method according to any one of claims 21 to 27, characterized in that, The first negotiation frame is also used to indicate whether the first optical module has the capability of a linear operating mode, wherein the first device is the first optical module, or the first device is connected to the first optical module.

29. A chip, characterized in that, The chip includes a processor for performing the method as described in any one of claims 1 to 28.

30. A communication device, characterized in that, The communication device includes a processor and an interface, the interface being used to transmit and receive signals, and the processor being used to perform the method as described in any one of claims 1 to 20.

31. A communication device, characterized in that, The communication device includes a processor and an interface, the interface being used to transmit and receive signals, and the processor being used to perform the method as described in any one of claims 21 to 28.

32. A communication system, characterized in that, The communication system includes a first device and a second device, the first device being configured to perform the method as described in any one of claims 1 to 20, and the second device being configured to perform the method as described in any one of claims 21 to 28.

33. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed by a computer, cause the method as described in any one of claims 1 to 28 to be implemented.

Citation Information

Patent Citations

  • Link establishing method, device and system

    CN111049865A

  • Optical module working mode negotiation method and device and electronic equipment

    CN114301532A

  • Synchronization system, method and master / slave optical module device for detecting asymmetry of optical fibers

    US20150372776A1

  • Sending methof and receiving method for connection information, optical module and central processing device

    WO2020244632A1