Forward error correction mode notification method and apparatus, and device, system and storage medium

By using optical modules to transmit FEC mode advertisement messages in optical interface connection scenarios, the problem that the prior art is only applicable to electrical interface connection is solved, and FEC mode advertisement and negotiation under optical interface is realized, which improves the flexibility and reliability of data transmission.

WO2025108182A1PCT designated stage expired Publication Date: 2025-05-30HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/132216
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-21
Filing Date
2024-11-15
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The prior art supports multiple forward error correction (FEC) modes, and is only suitable for electrical interface connections, and cannot effectively realize FEC mode notification in optical interface connection scenarios.

Method used

A forward error correction mode advertisement method is proposed, which generates an announcement message on the control module at the sending end and transmits the message to the receiving end using the optical module to realize the announcement and confirmation of the FEC mode.

Benefits of technology

In scenarios including optical modules, the FEC mode is announced and negotiated, which solves the problem that the prior art is only applicable to electrical interface connections, expands applicable scenarios, and improves the flexibility and reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024132216_30052025_PF_FP_ABST
    Figure CN2024132216_30052025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications. Disclosed are a forward error correction (FEC) mode notification method and apparatus, and a device, a system and a storage medium. The method is applied to a first control module comprised in a first apparatus, wherein the first apparatus further comprises a first optical module, and the first optical module is connected to the first control module and a second apparatus, respectively. The method comprises: a first control module generating a first notification message, wherein the first notification message is obtained on the basis of a first AM; and the first control module sending the first notification message to a second apparatus by means of a first optical module, and notifying, by means of the first notification message, the second apparatus of the application of a first FEC mode. In the method, by means of sending the first notification message, the first control module connected to the first optical module can notify the second apparatus of the application of the first FEC mode, such that the application of an FEC mode can be notified in a scenario comprising an optical module.
Need to check novelty before this filing date? Find Prior Art

Description

Forward error correction mode notification method, device, equipment, system and storage medium

[0001] This application claims priority to Chinese patent application number 202311562986.7 filed on November 21, 2023, entitled “Forward Error Correction Mode Notification Method, Device, Equipment, System and Storage Medium,” the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a forward error correction mode notification method, apparatus, device, system and storage medium. Background Art

[0003] With the continuous development of communication technology, forward error correction (FEC) has become a common data protection method during data transmission. The transmitter (Tx) performs FEC encoding on the data to be transmitted at least once to obtain the encoded result, and then transmits the encoded result to the receiver (Rx). After receiving the encoded result, the receiver performs FEC decoding on the encoded result at least once and corrects the errors to recover the data to be transmitted.

[0004] When FEC encoding is applied once during data transmission, it is called end-to-end FEC. When FEC encoding is applied multiple times during data transmission, if the multiple FEC encoding operations include FEC decoding, it is called segmented FEC; if the multiple FEC encoding operations do not include FEC decoding, it is called cascaded FEC. Therefore, a FEC mode notification method is needed to determine the applied FEC mode when the sender and receiver support multiple FEC modes.

[0005] In related technologies, if a transmitter and receiver are connected via an electrical interface and both support multiple FEC modes, they use auto-negotiation (AN) to select the FEC mode to use among the multiple FEC modes, thereby completing mode notification. However, AN is a negotiation method applied between electrical interfaces, making related technologies only applicable to electrical interface connections, which is relatively limited. Summary of the Invention

[0006] The present application proposes a forward error correction mode notification method, apparatus, device, system and storage medium for implementing FEC mode notification.

[0007] In a first aspect, a forward error correction mode notification method is provided. The method is applied to a first control module included in a first device, the first device also including a first optical module, the first optical module being connected to the first control module and a second device, respectively. The method comprises: the first control module generating a first notification message, the first notification message being obtained based on a first alignment marker (AM); the first control module sending the first notification message to the second device via the first optical module, notifying the second device of the application of a first FEC mode via the first notification message. In this method, by sending the first notification message to the second device, the first control module connected to the first optical module can notify the second device of the application of the first FEC mode, thereby enabling notification of the application of the FEC mode in a scenario including the optical module.

[0008] In some embodiments, the first control module generates the first notification message, including: the first control module monitoring the quality of a first link between the first device and the second device; and the first control module generating the first notification message based on the first link quality satisfying a first application condition. In other words, the first control module can actively monitor the quality of the first link, and generate the first notification message when the first link quality satisfies the first application condition.

[0009] In some embodiments, the first link quality includes at least one of a bit error rate and a frame loss rate. Therefore, there are many types of first link quality, and the first control module can obtain the first link quality by monitoring different indicators.

[0010] In some embodiments, the first control module generates the first notification message, including: the first control module obtaining configuration information indicating application of the first FEC mode; and the first control module generating the first notification message based on the configuration information. In other words, the first control module can generate the first notification message based on the obtained configuration information, and the conditions for the first control module to generate the first notification message are relatively flexible.

[0011] In some embodiments, after the first control module sends a first notification message to the second device via the first optical module, the method further includes: the first control module receiving a first response message, the first response message being obtained based on the second AM, the first response message being sent by the second device after receiving the first notification message, the first response message being used to confirm application of the first FEC mode; and based on the first response message, the first control module determining application of the first FEC mode. By determining application of the first FEC mode upon receipt of the first response message, the method can ensure that the first device and the second device apply the same FEC mode.

[0012] In some embodiments, after the first control module sends a first notification message to the second device via the first optical module, the method further includes: the first control module receiving a second response message, the second response message being derived based on the third AM, the second response message being sent by the second device after receiving the first notification message, the second response message being used to reject the application of the first FEC mode; and based on the second response message, the first control module determining not to apply the first FEC mode. By determining not to apply the first FEC mode upon receiving the second response message, the method can maintain the FEC modes used by the first and second devices unchanged. Thus, if the first and second devices initially apply the same FEC mode, the method can ensure that the first and second devices apply the same FEC mode.

[0013] In some embodiments, the method further includes: the first control module receiving a second notification message sent by the second device, the second notification message being derived based on the first AM and used to notify the application of the first FEC mode; and based on the second notification message, the first control module determining to apply the first FEC mode. In other words, the second device can also proactively send the second notification message to the first device to apply the first FEC mode, rather than being limited to the second device merely responding to the first notification message. Upon receiving the second notification message, the first control module determines to apply the first FEC mode. The manner in which the first control module determines to apply the first FEC mode is relatively flexible.

[0014] In some embodiments, after the first control module sends the first notification message to the second device via the first optical module, the method further includes: the first control module monitoring the quality of the second link between the first device and the second device; based on the second link quality meeting the second application condition, the first control module generating a third notification message, the third notification message being obtained based on the fourth AM; the first control module sending the third notification message to the second device via the first optical module, notifying the second device of the application of an FEC mode other than the first FEC mode via the third notification message. By monitoring the second link quality and determining whether the second link quality meets the second application condition, the first control module can flexibly adjust the FEC mode to be applied, thereby adapting the applied FEC mode to the link conditions between the first device and the second device.

[0015] In some embodiments, after the first control module sends the first notification message to the second device via the first optical module, the method further includes: the first control module receiving a fourth notification message sent by the second device, the fourth notification message being obtained based on the fourth AM, the fourth notification message being used to notify the application of an FEC mode other than the first FEC mode; and if it is determined based on the fourth notification message that an FEC mode other than the first FEC mode is to be applied, applying the FEC mode other than the first FEC mode. In other words, the first device including the first control module can determine whether to switch to an FEC mode other than the first FEC mode based on the received fourth notification message, and the manner in which the first device determines the FEC mode to be switched is relatively flexible.

[0016] In some embodiments, applying the first FEC mode includes applying the first FEC mode in a first receive direction, or applying the first FEC mode in both a first transmit direction and a first receive direction, where the first receive direction is a direction in which the first device receives data from the second device, and the first transmit direction is a direction in which the first device sends data to the second device. Therefore, the method of applying the first FEC mode is relatively flexible.

[0017] In some embodiments, the first optical module includes an optical digital signal processor (oDSP) chip, and the method further includes: the first control module sending a first switch instruction to the oDSP chip, the first switch instruction being used to instruct the oDSP chip to control an FEC encoding function to implement a first FEC mode. In other words, the method is applicable when the first optical module has FEC encoding capabilities.

[0018] In some embodiments, the first optical module comprises a linear-driver pluggable optics (LPO) module, and the method further comprises: the first control module regulating the FEC encoding function to implement a first FEC mode. In other words, the method is applicable to situations where the first optical module does not have FEC encoding capabilities. Because the first optical module may or may not have FEC encoding capabilities, the method is applicable to a wide range of scenarios.

[0019] In some embodiments, the first AM is also used to identify a physical coding sublayer (PCS) channel. Thus, the first AM is compatible with the AM functionality specified by the Institute of Electrical and Electronics Engineers (IEEE) 802.3 standard. When the first notification message includes the first AM and the first AM is used to notify the application of the first FEC mode, there is no need to introduce overhead other than the first AM to notify the application of the FEC mode. The overhead of notifying the application of the FEC mode is low, and there is no need to include information notifying the application of the FEC mode by deleting certain information, thereby avoiding information loss.

[0020] In some embodiments, the method further includes: the first optical module acquiring a transmission rate corresponding to the first FEC mode; and the first control module transmitting a signal to the second device via the first optical module at the transmission rate. By transmitting the signal at the transmission rate corresponding to the first FEC mode, the transmission rate can be adapted to the first FEC mode.

[0021] In some embodiments, the first control module sending the first notification message to the second device via the first optical module includes: the first control module sending multiple first notification messages to the second device via the first optical module. The number of first notification messages sent by the first control module is flexible. When multiple first notification messages are sent, the probability of the second device receiving the first notification message is higher, thereby increasing the reliability of the transmission of the first notification message.

[0022] In some embodiments, the first response message is sent by the second device after receiving the first notification message and sending n AMs to the first device, where n is an integer not less than 0 and the number of first response messages is at least one. The number and timing of sending first response messages are relatively flexible. When there are multiple first response messages, the probability of the first device receiving the first response message is higher, thereby increasing the reliability of transmitting the first response message.

[0023] In some embodiments, the method further includes: based on receiving m first response messages, regulating the FEC encoding function to apply a first FEC mode, where m is a positive integer and less than or equal to the number of first response messages. Since m is a positive integer and less than or equal to the number of first response messages, the timing of applying the first FEC mode is relatively flexible.

[0024] In some embodiments, the first notification message includes an FEC mode field, the FEC mode field is determined based on the first AM, and the FEC mode field includes a request field, the value of which is used to request the application of the first FEC mode. Therefore, the first notification message can implement the function of requesting the application of the first FEC mode. Exemplarily, the FEC mode field is determined based on the unique pad (UP) field of the first AM, or based on a pad field used to form a 257-bit code block with multiple AMs, or based on a recovery field located after an AM group, where the multiple AMs and the AM group include the first AM. Therefore, the situation of the FEC mode field is relatively flexible.

[0025] In some embodiments, the first response message includes an FEC mode field, the FEC mode field being determined based on the second AM. The FEC mode field also includes an acknowledgment field, the value of which is used to confirm the application of the first FEC mode. Therefore, the first response message can confirm the application of the first FEC mode. Exemplarily, the FEC mode field is determined based on the UP field of the second AM, or based on a padding field used to form a 257-bit code block with multiple AMs, or based on a recovery field located after an AM group, where the multiple AMs and the AM group include the second AM. Therefore, the FEC mode field is relatively flexible.

[0026] In some embodiments, the first control module includes a physical layer (PHY) chip, so that the first control module has FEC encoding and decoding functions, and the first device can apply the FEC mode.

[0027] In a second aspect, another forward error correction mode notification method is provided. The method is applied to a second control module included in a second device, the second device also including a second optical module, the second optical module being connected to the second control module and the first device, respectively. The method comprises: the second control module receiving a first notification message from the first device via the second optical module, the first notification message being obtained based on a first AM, the first notification message being used to notify the application of a first FEC mode; and applying the first FEC mode when it is determined to apply the first FEC mode based on the first notification message. In this method, based on the first notification message sent by the first device, the second control module connected to the second optical module can be notified by the first device of the application of the first FEC mode, thereby enabling notification of the application of the FEC mode in a scenario including the optical module.

[0028] In some embodiments, before applying the first FEC mode based on the first notification message, the method further includes: a second control module monitoring the quality of the first link between the second device and the first device; and upon receiving the first notification message and the first link quality satisfying a first application condition, the second control module determining to apply the first FEC mode. In other words, the second control module can also monitor the quality of the first link, and thus determine to apply the first FEC mode upon receiving the first notification message and the first link quality satisfying the first application condition.

[0029] In some embodiments, the first link quality includes at least one of a bit error rate and a frame loss rate, so that the types of the first link quality are relatively rich, and the second control module can obtain the first link quality by monitoring different indicators.

[0030] In some embodiments, the method further includes: if the first link quality satisfies the first application condition, the second control module generating a second notification message, the second notification message being obtained based on the first AM; and the second control module sending the second notification message to the first device via the second optical module, notifying the first device of the application of the first FEC mode via the second notification message. In other words, the second device can also proactively send the second notification message to the first device to apply the first FEC mode, and is not limited to being merely a device that responds to the first notification message.

[0031] In some embodiments, the method further includes: upon determining to apply the first FEC mode, the second control module sending a first response message to the first device via the second optical module, the first response message being obtained based on the second AM, the first response message being used to confirm application of the first FEC mode. By sending the first response message, the first device can determine to apply the first FEC mode upon receiving the first response message, thereby ensuring that the first device and the second device can apply the same FEC mode.

[0032] In some embodiments, the method further includes: upon determining that the first FEC mode is not to be applied, the second control module sending a second response message to the first device via the second optical module, the second response message being derived based on the third AM and refusing to apply the first FEC mode. By sending the second response message, the first device can determine that the first FEC mode is not to be applied upon receiving the second response message, thereby maintaining the FEC modes applied by the first and second devices unchanged. If the first and second devices initially apply the same FEC mode, this method can ensure that the first and second devices apply the same FEC mode.

[0033] In some embodiments, after applying the first FEC mode, the method further includes: receiving a third notification message sent by the first device by the second control module, the third notification message being derived based on the fourth AM, the third notification message being used to notify the application of an FEC mode other than the first FEC mode; and applying the FEC mode other than the first FEC mode if it is determined based on the third notification message that an FEC mode other than the first FEC mode should be applied. In other words, the second device including the second control module can determine whether to switch to an FEC mode other than the first FEC mode based on the received third notification message, providing a relatively flexible method for the second device to determine the FEC mode to be switched.

[0034] In some embodiments, after applying the first FEC mode, the method further includes: a second control module monitoring the quality of a second link between the second device and the first device; based on whether the second link quality meets a second application condition, the second control module generating a fourth notification message, the fourth notification message being obtained based on a fourth AM; the second control module sending the fourth notification message to the first device via a second optical module, notifying the first device of the application of an FEC mode other than the first FEC mode via the fourth notification message. By monitoring the second link quality and determining whether the second link quality meets the second application condition, the second control module can flexibly adjust the FEC mode to be applied, thereby adapting the applied FEC mode to the link conditions between the first and second devices.

[0035] In some embodiments, applying the first FEC mode includes applying the first FEC mode in the second sending direction, or applying the first FEC mode in both the second sending direction and the second receiving direction, where the second sending direction is the direction in which the second device sends data to the first device, and the second receiving direction is the direction in which the second device receives data from the first device. Therefore, the manner in which the first FEC mode is applied is relatively flexible.

[0036] In some embodiments, the second optical module includes an oDSP chip and uses a first FEC mode, including: the second control module sending a second switch instruction to the oDSP chip, the second switch instruction instructing the oDSP chip to control the FEC decoding function to implement the first FEC mode. In other words, this method is applicable when the second optical module has FEC encoding capabilities.

[0037] In some embodiments, the second optical module includes an LPO and employs a first FEC mode, including: a second control module regulating an FEC decoding function to implement the first FEC mode. This method is applicable to situations where the second optical module does not have FEC encoding capabilities. Because the second optical module may or may not have FEC encoding capabilities, this method has a wide range of applicable scenarios.

[0038] In some embodiments, the first AM is also used to identify the PCS channel. Therefore, the first AM is compatible with the AM functionality specified in the IEEE 802.3 standard. When the first notification message includes the first AM and the first AM is used to notify the application of the first FEC mode, no overhead other than the first AM is required to notify the application of the FEC mode. The overhead of notifying the application of the FEC mode is low, and there is no need to delete certain information to include the information notifying the application of the FEC mode, thus avoiding information loss.

[0039] In some embodiments, the method further includes: obtaining a transmission rate corresponding to the first FEC mode by a second optical module; and receiving a signal from the first device at the transmission rate via the second optical module. By receiving the signal at the transmission rate corresponding to the first FEC mode, the transmission rate can be adapted to the first FEC mode.

[0040] In some embodiments, the second control module receives the first notification message from the first device via the second optical module, including: the second control module receives multiple first notification messages from the first device via the second optical module. The number of first notification messages is relatively flexible. Furthermore, when there are multiple first notification messages, the probability of the second device receiving the first notification message is higher, thereby increasing the reliability of transmitting the first notification message.

[0041] In some embodiments, the first response message is sent by the second device after receiving the first notification message and sending n AMs to the first device, where n is an integer not less than 0 and the number of first response messages is at least one. The number and timing of sending first response messages are relatively flexible. When there are multiple first response messages, the probability of the first device receiving the first response message is higher, thereby increasing the reliability of transmitting the first response message.

[0042] In some embodiments, the first notification message includes an FEC mode field, which is determined based on the first AM. The FEC mode field also includes a request field, the value of which is used to request application of the first FEC mode. Therefore, the first notification message can function as a request for application of the first FEC mode. Exemplarily, the FEC mode field is determined based on the UP field of the first AM, or based on a padding field used to form a 257-bit code block with multiple AMs, or based on a recovery field located after an AM group, where the multiple AMs and the AM group include the first AM. This provides flexibility in the FEC mode field.

[0043] In some embodiments, the first response message includes an FEC mode field, the FEC mode field being determined based on the second AM. The FEC mode field also includes an acknowledgment field, the value of which is used to confirm the application of the first FEC mode. Therefore, the first response message can confirm the application of the first FEC mode. Exemplarily, the FEC mode field is determined based on the UP field of the second AM, or based on a padding field used to form a 257-bit code block with multiple AMs, or based on a recovery field located after an AM group, where the multiple AMs and the AM group include the second AM. Therefore, the FEC mode field is relatively flexible.

[0044] In some embodiments, the second control module includes a PHY chip, so that the second control module has FEC encoding and decoding functions, and the second device can apply the FEC mode.

[0045] In a third aspect, a forward error correction mode notification device is provided, which is applied to a first control module included in a first device. The first device also includes a first optical module, and the first optical module is connected to the first control module and the second device respectively. The device includes: a transceiver module for performing operations related to reception and / or transmission in the first aspect and any corresponding possible implementation method; a processing module for performing other operations other than the operations related to reception and / or transmission in the first aspect and any corresponding possible implementation method.

[0046] In a fourth aspect, a forward error correction mode notification device is provided, which is applied to a second control module included in a second device. The second device also includes a second optical module, and the second optical module is connected to the second control module and the first device respectively. The device includes: a transceiver module for performing operations related to reception and / or transmission in the second aspect and any corresponding possible implementation method; a processing module for performing other operations other than the operations related to reception and / or transmission in the second aspect and any corresponding possible implementation method.

[0047] In a fifth aspect, an electronic device is provided, which includes a processor, the processor is coupled to a memory, and the memory stores at least one program instruction or code, and the at least one program instruction or code is loaded and executed by the processor to enable the electronic device to implement any forward error correction mode notification method in the first aspect or the second aspect.

[0048] In the sixth aspect, a computer-readable storage medium is provided, in which at least one program instruction or code is stored. When the program instruction or code is loaded and executed by the computer's processor, the computer implements any forward error correction mode notification method in the first aspect or the second aspect.

[0049] In the seventh aspect, a communication system is provided, which includes a first device and a second device, the first device includes a first control module and a first optical module, the second device includes a second control module and a second optical module, the first optical module is connected to the first control module and the second optical module respectively, and the second optical module is also connected to the second control module, the first control module is used to execute any forward error correction mode notification method in the first aspect, and the second control module is used to execute any forward error correction mode notification method in the second aspect.

[0050] In an eighth aspect, another communication device is provided, comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other via an internal connection path. The memory is configured to store instructions, and the processor is configured to execute the instructions stored in the memory to control the transceiver to receive signals and to control the transceiver to transmit signals. When the processor executes the instructions stored in the memory, the processor executes the forward error correction mode notification method according to either the first aspect or the second aspect.

[0051] Illustratively, there are one or more processors and one or more memories.

[0052] For example, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0053] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same chip as the processor or be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.

[0054] In the ninth aspect, a computer program or computer program product is provided, the computer program or computer program product comprising: computer program code, which, when executed by a computer, enables the computer to execute any one of the forward error correction mode notification methods of the first aspect or the second aspect.

[0055] In a tenth aspect, a chip is provided, the chip including an interface module, the interface module being used to execute the forward error correction mode notification method of either the first aspect or the second aspect.

[0056] In an eleventh aspect, a chip is provided, comprising a processor configured to retrieve and execute instructions stored in a memory, thereby causing a communication device equipped with the chip to perform the forward error correction mode notification method according to either the first or second aspect. Exemplarily, the chip further comprises an input interface, an output interface, and a memory, wherein the input interface, the output interface, the processor, and the memory are connected via an internal connection path.

[0057] It should be understood that the beneficial effects achieved by the technical solutions of the third to eleventh aspects of this application and the corresponding possible implementation methods can be referred to the technical effects of the technical solutions of the first to second aspects and their corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] FIG1 is a schematic diagram of a transmitting end applying various FEC modes according to an embodiment of the present application;

[0059] FIG2 is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0060] FIG3 is a schematic diagram of a system architecture provided in an embodiment of the present application;

[0061] FIG4 is a schematic diagram of another system architecture according to an embodiment of the present application;

[0062] FIG5 is a schematic structural diagram of a conventional pluggable optical module interface provided in an embodiment of the present application;

[0063] FIG6 is a schematic structural diagram of an LPO interface provided in an embodiment of the present application;

[0064] FIG7 is a flowchart of a forward error correction mode notification method provided in an embodiment of the present application;

[0065] FIG8 is a schematic structural diagram of an AM provided in an embodiment of the present application;

[0066] FIG9 is a schematic diagram of an AM mapping to a PCS channel provided in an embodiment of the present application;

[0067] FIG10 is a schematic diagram of the structure of an FEC mode field provided in an embodiment of the present application;

[0068] FIG11 is a schematic diagram of the structure of another FEC mode field provided in an embodiment of the present application;

[0069] FIG12 is a schematic structural diagram of another AM provided in an embodiment of the present application;

[0070] FIG13 is a schematic diagram of a process of sending a first switch instruction according to an embodiment of the present application;

[0071] FIG14 is a flowchart of another forward error correction mode notification method provided in an embodiment of the present application;

[0072] FIG15 is a schematic diagram of a process of unilaterally initiating a unilateral handover according to an embodiment of the present application;

[0073] FIG16 is a schematic diagram of a process of bidirectionally initiating unilateral switching provided by an embodiment of the present application;

[0074] FIG17 is a schematic diagram of a process of unidirectionally initiating bilateral handover according to an embodiment of the present application;

[0075] FIG18 is a schematic diagram of a notification switching process provided by an embodiment of the present application;

[0076] FIG19 is a schematic structural diagram of a forward error correction mode notification device provided in an embodiment of the present application;

[0077] FIG20 is a schematic structural diagram of another forward error correction mode notification device provided in an embodiment of the present application;

[0078] FIG21 is a schematic diagram of the structure of a computer system provided in an embodiment of the present application;

[0079] FIG22 is a schematic diagram of the structure of another computer system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] The terms used in the embodiments of the present application are only used to explain the embodiments of the present application and are not intended to limit the present application. The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0081] With the advancement of communication technology, the transmission rate of Ethernet channels continues to increase. Channels can be divided into two categories: optical channels and electrical channels. For example, in the IEEE 802.3dj project, the single-channel transmission rate of both optical and electrical channels can reach 200 gigabits per second (Gb / s). 200Gb / s is also referred to as 200G, and a channel with a transmission rate of 200Gb / s is called a 200G channel. Optical channels are implemented based on a physical architecture that includes optical modules. However, due to limitations such as link performance, optical module specifications, packaging, serializer / deserializer (SerDes) performance, and power consumption, optical modules present certain performance risks. Improving optical module specifications to mitigate performance risks will increase the cost of the optical module. Optical module specifications include, but are not limited to, the supported transmission distance and the transmitter dispersion eye closure quaternary (TDECQ) indicator. Exemplarily, the optical module is located in the optical Ethernet interface, and the types of optical Ethernet interfaces supporting 200G channels are as follows: 200G baseband (BASE)-DR1, 200GBASE-DR1-2, 400GBASE-DR4, 400GBASE-DR4-2, 800GBASE-DR4, 800GBASE-DR4-2, 1.6 terabit (T) BASE-DR8, 1.6TBASE-DR8-2. The above optical Ethernet interfaces are all Ethernet interface types defined by the IEEE 802.3 standard.

[0082] In a physical architecture including an optical module, FEC can be used to encode the data to be transmitted to achieve data protection. Among them, different FEC modes can provide different protection capabilities for the data. Thus, while reducing the requirements for the specifications of the optical module, the accurate transmission of the data can be guaranteed by using an FEC mode with higher protection capabilities. Figure 1 is a schematic diagram of a transmitter applying various FEC modes provided by an embodiment of the present application. As shown in Figure 1, the architecture of the transmitter application includes a media access control (MAC) layer or a reconciliation sublayer (RS), a physical coding sublayer (PCS), a physical medium attachment (PMA) sublayer, a physical medium dependent (PMD) sublayer and a transmission medium (medium). Among them, the number of PMA sublayers can be multiple, and the multiple PMA sublayers are connected by an attachment unit interface (AUI), and the PMD sublayer is connected to the transmission medium by a medium dependent interface (MDI). Furthermore, when the PCS at the transmitting end performs both FEC encoding and FEC decoding, the PCS can also be expressed as XS.

[0083] Referring to FIG1 , FIG1 (1) shows a transmitter architecture without applying an FEC mode, and the transmission rate of the architecture can be 800 Gbps or 1.6 terabit per second (Tb / s). FIG1 (2) shows an end-to-end FEC mode. As shown in FIG1 (2), FEC encoding is applied once at PCS. The PCS shown in FIG1 (2) is represented by PCS1, and the FEC code type used for FEC encoding is represented by FEC1. FIG1 (3) shows a segmented FEC mode. As shown in FIG1 (3), the first FEC encoding and the first FEC decoding are performed at XS2. The FEC code type used for the first FEC encoding and the first FEC decoding is represented by FEC2. Then, the second FEC encoding is performed at PCS3. The FEC code type used for the second FEC encoding is represented by FEC3. XS2 and PCS3 both correspond to PCS. (4) in FIG1 shows a cascaded FEC mode. As shown in (4) in FIG1 , the first FEC encoding is performed at PCS4, and the second FEC encoding is performed at the FEC layer. The FEC code type used for the first FEC encoding is represented by FEC4, and the FEC code type used for the second FEC encoding is represented by FEC5. The FEC layer may be PCS. The embodiments of the present application do not limit the FEC code type in FIG1 .

[0084] Exemplarily, the FEC mode used for data transmission is adapted to the application type, link quality and device capabilities. For example, for applications that are sensitive to latency and power consumption, and systems with good link quality and device capabilities, an end-to-end FEC mode is used. Taking the latency-sensitive short-distance artificial intelligence (AI) or high-performance computing (HPC) optical interconnection scenario as an example, when the device capabilities and link quality meet the requirements, an end-to-end FEC mode is used to provide low-latency Ethernet interconnection. For another example, for applications that are not sensitive to latency and power consumption, and systems with poor link quality and device capabilities, a cascade FEC mode is used to ensure the accuracy of end-to-end data transmission. In the case where the sending and receiving ends of data transmission support multiple FEC modes, an FEC mode notification method is required so that the sending and receiving ends can determine the FEC mode of the application.

[0085] In a related technology, multiple optical modules are used to support multiple FEC modes, wherein one optical module supports one FEC mode, and the FEC mode to be used is determined by using different optical modules. However, the solution of the related technology requires the provision of multiple optical modules, which is costly. In another related technology, for a transmitter and a receiver connected by an electrical interface, auto-negotiation (AN) is used to determine the FEC mode to be used in a plurality of FEC modes. However, AN is a negotiation method applied between electrical interfaces, which makes the related technology only applicable to scenarios connected by electrical interfaces, and the applicable scenarios are relatively limited.

[0086] An embodiment of the present application provides a forward error correction mode notification method for implementing FEC mode notification. The method can be applied to the implementation environment shown in FIG2 . As shown in FIG2 , the implementation environment includes a first device 201 and a second device 202, wherein the first device 201 and the second device 202 are connected. The first device 201 includes a first control module 2011 and a first optical module 2012, and the second device 202 includes a second control module 2021 and a second optical module 2022. The first optical module 2012 is connected to the first control module 2011 and the second optical module 2022, respectively, and the second optical module 2022 is also connected to the second control module 2021. Exemplarily, the first control module 2011 and the second control module 2021 are both application-specific integrated circuit (ASIC) chips. The first control module 2011 and the first optical module 2012 are connected via an electrical interface, the second control module 2021 and the second optical module 2022 are connected via an electrical interface, and the first optical module 2012 and the second optical module 2022 are connected via an optical fiber.

[0087] Figure 3 is a schematic diagram of a system architecture provided by an embodiment of the present application. As shown in Figure 3, the first control module and the second control module are located in the MAC layer, PCS and PMA sublayer, and the first control module and the second control module can perform FEC encoding and FEC decoding in the PCS. The first optical module and the second optical module are located in the PMA sublayer, the FEC layer and the PMD sublayer. Among them, the PMA sublayer where the first optical module is located includes a PMA sublayer connected to the first control module via AUI and a PMA sublayer connected to the FEC layer and the PMD sublayer respectively. The PMA sublayer where the second optical module is located includes: a PMA sublayer connected to the second control module via AUI and a PMA sublayer connected to the FEC layer and the PMD sublayer respectively. As shown in Figure 3, the first control module and the first optical module are connected via AUI, the second control module and the second optical module are connected via AUI, and the first optical module and the second optical module are connected via optical fiber.

[0088] Exemplarily, as shown in FIG3 , when the first optical module and the second optical module have data encoding and decoding functions, the first optical module and the second optical module can perform FEC encoding and FEC decoding at the FEC layer. When both the first control module and the first optical module perform FEC encoding, and the second control module and the second optical module both perform FEC decoding, the first device and the second device apply a cascaded FEC mode, wherein the FEC code type applied by the first control module and the second control module is called an outer code, and the FEC code type applied by the first optical module and the second optical module is called an inner code. Exemplarily, the first control module performs FEC encoding twice, and the second control module performs FEC decoding twice. That is, when the cascaded FEC mode is applied, multiple FEC encodings are implemented by the first control module, and multiple FEC decodings are implemented by the second control module, so that the first optical module and the second optical module may not have data encoding and decoding functions.

[0089] Figure 4 is a schematic diagram of another system architecture provided by an embodiment of the present application. Among them, the system architecture can be applied to a data center. As shown in Figure 4, the system architecture includes a server and a spine switch, and the system architecture also includes a top of rack (TOR) switch or a leaf switch, and the server and the spine switch are communicatively connected through the top of rack switch or the leaf switch. Exemplarily, the first device and the second device are located in the switch of the system architecture, and the first device and the second device are both used as Ethernet optical interfaces of the switch, and the single-channel transmission rate supported by the first device and the second device is 200Gb / s. The number of switches and servers shown in Figure 4 is for illustration only and is not used to limit the number of switches and servers.

[0090] In one possible implementation, the first device and the second device are used as a traditional pluggable optical module interface. Figure 5 is a structural diagram of a traditional pluggable optical module interface provided in an embodiment of the present application. The traditional pluggable optical module interface is referred to as an optical interface. As shown in (1) in Figure 5, the optical interface includes an ASIC and an optical module, the first control module and the second control module can be the ASICs included in the optical interface, and the first optical module and the second optical module can be the optical modules included in the optical interface. As shown in Figure 5, the optical modules are connected by optical fibers, and the optical fiber length can be 500 meters or less or 2 kilometers or less. The PCS of the ASIC implements the FEC encoding and decoding function, and the ASIC also includes Serdes. As shown in (2) in Figure 5, the optical module includes an optical digital signal processor (oDSP) chip. On the transmitting side, the oDSP chip is connected to the Serdes (Serdes Tx) on the transmitting side, and the oDSP chip includes a receiving side (Serdes Rx) of a very short reach (VSR) Serdes, an FEC encoding function, and a long reach (LR) Serdes Tx. The transmitting optical module also includes a driver, a modulator, and a laser. The oDSP chip is connected to the driver, which is connected to the modulator, which is also connected to the laser. The modulator is an electro-absorption modulator (EAM) or a Mach-Zehnder interferometer (MZI)-based modulator.

[0091] On the receiving side, the oDSP chip is connected to the Serdes Rx, which includes the LR Serdes Rx, FEC decoding function, and VSR Serdes Tx. The optical module on the receiving side also includes a photodiode (PD) and a transimpedance amplifier (TIA). The PD is connected to the modulator on the transmitting side via an optical fiber, and the PD is also connected to the TIA, which is connected to the oDSP chip. When the cascaded FEC encoding and decoding is implemented by the ASIC and the oDSP chip in the optical module, the FEC encoding and decoding performed in the ASIC is called outer FEC, and the FEC encoding and decoding performed by the oDSP chip is called inner FEC. For example, the PCS of the ASIC supports the selection and switching of FEC modes based on the alignment marker (AM), and the optical module supports the switch of obtaining signals from the ASIC for the FEC encoding and decoding function.

[0092] FIG6 is a schematic diagram of the structure of a linear-driver pluggable optics (LPO) interface provided in an embodiment of the present application. The LPO interface is referred to as an optical interface. As shown in (1) in FIG6 , the optical interface includes an ASIC and an optical module. The first control module and the second control module may be the ASICs included in the optical interface, and the first optical module and the second optical module may be the optical modules included in the optical interface. In FIG6 , the optical modules are connected by optical fibers, and the optical fiber length may be 500 meters or less. The PCS of the ASIC implements the cascaded FEC encoding and decoding function, and the ASIC also includes Serdes. The optical module may be any one of a near packaged optics module (NPO), a co-packaged optics module (CPO), or a linear optical module.

[0093] In the case where the optical interface is a digital pluggable optical interface, as shown in (2) in Figure 6, the optical module on the transmitting side includes a driver, a modulator, and a laser. The driver is connected to the Serdes Tx and the modulator respectively. The modulator is also connected to the laser. The modulator can be an EAM or an MZI-based modulator. The optical module on the receiving side includes a PD and a TIA. The PD is connected to the modulator on the transmitting side through an optical fiber. The TIA is connected to the PD and the Serdes Rx respectively. In the case where the optical interface is an analog pluggable optical interface, as shown in (3) in Figure 6, the optical module on the transmitting side includes a modulator and a laser. The modulator is connected to the Serdes Tx and the laser respectively. The modulator can be an EAM or an MZI-based modulator. The optical module on the receiving side includes a PD and a TIA. The PD is connected to the modulator on the transmitting side through an optical fiber. The TIA is connected to the PD and the Serdes Rx respectively.

[0094] For example, in the optical interface shown in FIG6 , the PCS of the ASIC supports the selection and switching of AM-based FEC modes. The ASIC also supports switching of cascaded FEC codec functions. In some embodiments, the ASIC can transmit signals at the transmission rate corresponding to the FEC mode in both the optical interface shown in FIG5 and the optical interface shown in FIG6 . For example, the transmission rate corresponding to the end-to-end FEC mode is 106.25 Gbaud (GBd), and the transmission rate corresponding to the cascaded FEC mode is 113.4375 GBd.

[0095] The encoding method provided in the embodiment of the present application can be shown in Figure 7. Next, the method is described in conjunction with the implementation environment shown in Figure 2. The method can be applied to the first control module 2011 shown in Figure 2, that is, the method is applied to the first control module included in the first device, the first device also including a first optical module, and the first optical module is connected to the first control module and the second device respectively. For example, the first optical module is connected to the first control module and the second optical module in the second device respectively. As shown in Figure 7, the method includes but is not limited to S701 and S702.

[0096] S701: A first control module generates a first notification message, where the first notification message is obtained based on a first AM.

[0097] In one possible implementation, the first control module includes a physical layer (PHY) chip. Exemplarily, the first control module generates the first notification message, including but not limited to the following method A and method B.

[0098] In mode A, the first control module monitors the quality of a first link between the first device and the second device; based on the first link quality meeting a first application condition, the first control module generates a first notification message.

[0099] That is to say, the first control module can actively monitor the quality of the first link and generate a first notification message based on the monitored first link quality. In one possible implementation, the first link quality includes at least one of a bit error rate (BER) or a frame loss rate (FLR). For example, when the first link quality includes BER, the first application condition includes that the BER is higher than a first BER threshold. When the first link quality includes FLR, the first application condition includes that the FLR is higher than a first FLR threshold. Exemplarily, when the BER is higher than the first BER threshold or the FLR is higher than the first FLR threshold, the generated first notification message is used to notify the application of the cascaded FEC mode. Both the first BER threshold and the first FLR threshold can be set according to experience or actual needs, and the embodiments of the present application are not limited to this.

[0100] For another example, when the first link quality includes BER, the first application condition includes the BER being lower than a second BER threshold, where the second BER threshold is less than or equal to the first BER threshold. When the first link quality includes FLR, the first application condition includes the FLR being lower than a second FLR threshold, where the second FLR threshold is less than or equal to the first FLR threshold. Exemplarily, when the BER is lower than the second BER threshold or the FLR is lower than the second FLR threshold, the generated first notification message is used to notify the application of the end-to-end FEC mode. Both the second BER threshold and the second FLR threshold can be set based on experience or actual needs, and are not limited in this regard in the embodiments of the present application.

[0101] For another example, when the first link quality includes BER and the second BER threshold is lower than the first BER threshold, the first application condition includes the BER being higher than the second BER threshold and lower than the first BER threshold. When the first link quality includes FLR and the second FLR threshold is lower than the first FLR threshold, the first application condition includes the FLR being higher than the second FLR threshold and lower than the first FLR threshold. Exemplarily, when the BER is higher than the second BER threshold and lower than the first BER threshold, or when the FLR is higher than the second FLR threshold and lower than the first FLR threshold, the first notification message is used to notify application of the segmented FEC mode.

[0102] In mode B, the first control module obtains configuration information, where the configuration information is used to indicate application of the first FEC mode; based on the configuration information, the first control module generates a first notification message.

[0103] That is, the first control module generates a first notification message based on the acquired configuration information. For example, the first control module acquires the configuration information, including but not limited to: the first control module receives the configuration information sent by the control device, or the first control module reads the register parameters inside the first control module to obtain the configuration information. The control device may be a device connected to the first control module and capable of receiving user input, so that the control device can transmit the configuration information to the first control module after receiving the configuration information input by the user. Exemplarily, the configuration information corresponds to the application type. In the case where the application is an AI application or an HPC application, the configuration information indicates a low-latency mode, and in the case where the configuration information indicates a low-latency mode, the first notification message is used to notify the application of an end-to-end FEC mode. In the case where an application other than an AI application and an HPC application is applied, the configuration information indicates a performance mode, and in the case where the configuration information indicates a performance mode, the first notification message is used to notify the application of a cascaded FEC mode.

[0104] Regardless of whether the first notification message is generated in mode A or mode B, the first notification message is obtained based on the first AM. In one possible implementation, the first notification message includes the first AM, and the first AM can be used to notify the second device to apply the first FEC mode. Exemplarily, the first AM is also used to identify the PCS channel. That is, based on the AM function specified in the IEEE 802.3 standard, the first AM can also be used to notify the second device to apply the first FEC mode, thereby eliminating the need to introduce overhead other than the first AM to notify the application of the FEC mode. The overhead of notifying the application of the FEC mode is low, and there is no need to include information notifying the application of the FEC mode by deleting certain information, thereby avoiding information loss.

[0105] Figure 8 is a schematic diagram of the structure of an AM provided in an embodiment of the present application. As shown in Figure 8, the AM includes a common marker (CM) field, a unique marker (UM) field, and a unique pad (UP) field. The CM field includes CM0 to CM5, which are common identifiers for all virtual channels. In other words, the value of the CM field for each virtual channel is the same. The UM field includes UM1 to UM5, and a set of values ​​from UM0 to UM5 uniquely identifies a virtual channel. The UP field includes UP0 to UP2, and the values ​​from UP0 to UP2 are padding data set based on experience or actual needs. The bit positions of CM0 to CM2, UP0, CM3 to CM5, UP1, UM0 to UM2, UP2, and UM3 to UM5 can be shown in Figure 8. Furthermore, CM3 to CM5 are bit-reversed versions of CM0 to CM2, and UM3 to UM5 are bit-reversed versions of UM0 to UM2.

[0106] In one possible implementation, the first notification message includes an FEC mode field, which is determined based on the first AM. The FEC mode field includes a request field, the value of which is used to request application of the first FEC mode. Therefore, the second device can determine whether to apply the first FEC mode based on the request field of the first notification message. Exemplarily, the FEC mode field is determined based on the UP field of the first AM, or based on a pad field used to form a 257-bit code block with multiple AMs, or based on a recovery field located after an AM group, where the multiple AMs and the AM group include the first AM. That is, if the FEC mode field is determined based on the pad field used to form a 257-bit code block with multiple AMs, the first AM can be any one of the multiple AMs; if the FEC mode field is determined based on the recovery field located after the AM group, the first AM can be any one of the AMs.

[0107] Exemplarily, when the FEC Mode field is determined based on the UP field of the first AM, at least one of the fields UP0 to UP2 included in the UP field includes the FEC Mode field. The number of fields in UP0 to UP2 that include the FEC Mode field can be determined based on the length of the FEC Mode field. According to the IEEE 802.3 standard, the lengths of UP0 to UP2 are each 8 bits. If the length of the FEC Mode field is less than or equal to 8 bits, any one of the fields UP0 to UP2 can include the FEC Mode field. If the length of the FEC Mode field is greater than 8 bits, at least two of the fields UP0 to UP2 can include the FEC Mode field.

[0108] In an embodiment of the present application, the FEC mode domain field can also be determined based on either a padding field used to form a 257-bit code block with multiple AMs or a recovery field located after the AM group. The AM group includes AMs corresponding to multiple virtual channels in Ethernet, padding fields, and status fields. For example, in 200G Ethernet, the AM group includes AMs corresponding to 8 virtual channels, a 65-bit padding field, and a 3-bit status field. For another example, in 400G Ethernet, the AM group includes AMs corresponding to 16 virtual channels, a 133-bit padding field, and a 3-bit status field. Figure 9 is a schematic diagram of an AM mapping to a PCS channel provided in an embodiment of the present application. Figure 9 takes the PCS channel corresponding to 400G Ethernet as an example. Referring to Figure 9, the AM corresponding to the i-th PCS channel is represented by AM_i, and the value of i ranges from 0 to 15. The symbols included in AM_i come from FEC codeword A and FEC codeword B, respectively. Each symbol consists of 10 bits. For the acquisition and mapping methods of FEC codeword A and FEC codeword B, please refer to the relevant content of FEC encoding and PCS channel mapping in the IEEE 802.3 standard, which will not be further explained here. The content shown in Figure 9 also includes a 133-bit padding field, a 3-bit status field, and a recovery field of 257-bit blocks. The 133-bit padding field and the 3-bit status field are used together with the 16 AMs to form 8 257-bit code blocks. In Figure 9, the AM group includes AM_0 to AM_15, a 133-bit padding field and a 3-bit status field. The recovery field is located after the AM group. For other contents in Figure 9, please refer to the relevant content in the IEEE 802.3 standard and will not be repeated here.

[0109] In one possible implementation, the request field includes at least one bit, and different values ​​of the at least one bit are used to indicate different FEC modes. Figure 10 is a schematic diagram of the structure of an FEC mode field provided in an embodiment of the present application. As shown in Figure 10, the FEC mode field includes a request field, which includes one bit. The first value of the request field indicates a request for end-to-end FEC mode, and the second value of the request field indicates a request for cascaded FEC mode. For example, the first value is 1 and the second value is 0.

[0110] In another possible implementation, the request field includes multiple bits, which indicate the requested FEC mode in a bitmap format, with one bit corresponding to each FEC mode. Figure 11 is a schematic diagram of the structure of another FEC mode field provided in an embodiment of the present application. As shown in Figure 11, the FEC mode field includes a request field, which includes three bits, with one bit corresponding to each FEC mode. For example, the first bit of the request field corresponds to the end-to-end FEC mode, the second bit corresponds to the segmented FEC mode, and the third bit corresponds to the cascaded FEC mode. For any of these three bits, if the value of the bit is a third value, the third value indicates that the FEC mode corresponding to the bit is requested. If the value of the bit is a fourth value, the fourth value indicates that the FEC mode corresponding to the bit is not requested. For example, the third value is 1 and the fourth value is 0. In some embodiments, when the request field includes multiple bits and the multiple bits indicate the requested FEC modes in a bitmap format, the value of the request field can be used to request multiple FEC modes, that is, all of the requested FEC modes are used as the first FEC mode.

[0111] Exemplarily, the FEC mode domain field includes a response field, and the value of the response field is used to confirm the application of the first FEC mode. The value of the response field can also be used to deny the application of the first FEC mode, wherein the value used to confirm the application of the first FEC mode is different from the value used to deny the application of the first FEC mode. In embodiments of the present application, the FEC mode domain field may include both a request field and a response field, or may include only one of the request field and the response field. For example, the first notification message includes only the request field, and the first response message subsequently received by the first control module includes only the response field.

[0112] In one possible implementation, the Response field includes at least one bit, and different values ​​of the at least one bit are used to indicate different FEC modes. Continuing with FIG10 , the FEC Mode field includes a Response field, which includes one bit. The Response field, when the fifth value is set, indicates confirmation of application of the first FEC mode, and the Response field, when the sixth value is set, indicates rejection of application of the first FEC mode. For example, the fifth value is 1, and the sixth value is 0.

[0113] In another possible implementation, the Response field includes multiple bits, which indicate the FEC mode to be confirmed or rejected in a bitmap format, with one bit corresponding to each FEC mode. Continuing with Figure 11 , the FEC Mode field includes a Response field, which includes three bits, one corresponding to each FEC mode. For example, the first bit of the Response field corresponds to the end-to-end FEC mode, the second bit corresponds to the segmented FEC mode, and the third bit corresponds to the concatenated FEC mode. For any of these three bits, if the value of that bit is the seventh value, the seventh value indicates confirmation of application of the FEC mode corresponding to that bit; if the value of that bit is the eighth value, the fourth value indicates rejection of application of the FEC mode corresponding to that bit. For example, the seventh value is 1, and the eighth value is 0. In some embodiments, if the Response field includes multiple bits, and the multiple bits indicate the FEC mode to be confirmed or rejected in a bitmap format, if the first AM requests multiple FEC modes, the Response field may confirm the FEC mode with the shortest latency or the highest performance among the multiple FEC modes, and reject all other FEC modes except the confirmed FEC mode. In the embodiment of the present application, the performance of the FEC mode may refer to the error correction capability. The stronger the error correction capability, the higher the performance of the FEC mode.

[0114] Exemplarily, when the first notification message includes the first AM, the first AM is obtained based on the codeword encoded by extended Bose-Chaudhuri-Hocquenghem (eBCH), and the first AM is used to announce the application of the first FEC mode. For example, the first AM is obtained based on the codeword encoded by eBCH (16, 5), wherein eBCH (16, 5) means encoding 5 bits of information bits to generate 11 bits of check bits, and the codeword encoded by eBCH (16, 5) can be used to correct 3 bits of errors. The 32 codewords obtained by eBCH (16, 5) encoding and the direct current (DC) values ​​of the four-level pulse amplitude modulation (PAM4) corresponding to each codeword are shown in Tables 1 to 4 below.

[0115] Table 1

[0116] Table 2

[0117] Table 3

[0118] Table 4

[0119] For example, the codewords with a PAM4DC value of 0 in Tables 1 to 4 are used to obtain the first AM. That is, codewords 4, 8, 11, 13, 14, 17, 22, 23, 26, and 27 are used to obtain the first AM. In one possible implementation, the AM obtained based on the eBCH (16,5)-encoded codeword includes a CM field, a UM field, and an UP field. The CM field has the same value as the CM field specified in the Ethernet standard, and the values ​​of the UM and UP fields are obtained based on the eBCH (16,5)-encoded codeword. Figure 12 is a schematic diagram of the structure of another AM provided in an embodiment of the present application. Referring to Figure 12, the AM includes a CM field, a UM field, and an UP field. The arrangement of the CM, UM, and UP fields is shown in Figure 12. The CM field includes CM0 to CM5, each of which is 1 byte long; the UP field is 1 byte long; and the UM field includes UM0 to UM7, each of which is 1 byte long. That is, the length of the AM is also 120 bits.

[0120] In one possible implementation, the values ​​of the UM and UP fields are derived based on a codeword with a PAM4DC value of 0. Thus, the AM obtained based on the eBCH (16,5) encoded codeword exhibits PAM4DC equalization. The set of selected UM field values ​​can be shown in Table 5, where one codeword corresponds to two UM field values.

[0121] Table 5

[0122] As shown in Table 5, the selected sets of {UM0, UM1}, {UM2, UM3}, {UM4, UM5}, and {UM6, UM7} all include codeword 4, codeword 8, codeword 11, codeword 13, codeword 14, codeword 17, codeword 22, codeword 23, codeword 26, and codeword 27. The specific codewords selected for {UM0, UM1}, {UM2, UM3}, {UM4, UM5}, and {UM6, UM7} can be the same or different, and this embodiment of the application is not limited thereto. The selected set of values ​​for the UP field can be shown in Table 6.

[0123] Table 6

[0124] In one possible implementation, the CM field included in the first AM has the same value as the CM field specified in the Ethernet standard. If the first AM is used to request the application of the cascaded FEC mode, the values ​​of the UM field and UP field of the first AM are shown in Table 7. If the first AM is used to request the application of the end-to-end FEC mode, the values ​​of the UM field and UP field of the first AM are shown in Table 8. Exemplarily, the first control module receives a first response message or a second response message sent by the second device. The first response message is obtained based on the second AM and is used to confirm the application of the first FEC mode. The second response message is obtained based on the third AM and is used to deny the application of the first FEC mode. If the first response message includes the second AM, the CM field included in the second AM has the same value as the CM field specified in the Ethernet standard. The values ​​of the UM field and UP field of the second AM are shown in Table 9. If the second response message includes the third AM, the CM field included in the third AM has the same value as the CM field specified in the Ethernet standard. The values ​​of the UM field and UP field of the third AM are shown in Table 10. The specific values ​​in Tables 7 to 10 are only used for illustration. The values ​​of the UM field and the UP field of the first AM, the second AM, and the third AM can be set based on experience or actual needs, and are not limited in this embodiment of the present application.

[0125] Table 7

[0126] Table 8

[0127] Table 9

[0128] Table 10

[0129] In some embodiments, the first control module sends multiple first notification messages to the second device. That is, the first control module sends the first notification message to the second device via the first optical module, including: the first control module sends multiple first notification messages to the second device via the first optical module. This increases the probability that the second device receives the first notification message, and the reliability of transmitting the first notification message is increased.

[0130] S702: The first control module sends a first notification message to the second device via the first optical module, notifying the second device of applying the first FEC mode through the first notification message.

[0131] Exemplarily, the first FEC mode is any one of an end-to-end FEC mode, a segmented FEC mode, or a cascaded FEC mode. In one possible implementation, after the first control module sends a first notification message to the second device via the first optical module, it determines to apply the first FEC mode. In another possible implementation, after the first control module sends the first notification message to the second device via the first optical module, it determines whether to apply the first FEC mode based on a response message received from the second device.

[0132] For example, after the first control module sends a first notification message to the second device via the first optical module, the method further includes: the first control module receives a first response message, the first response message is obtained based on the second AM, the first response message is sent by the second device after receiving the first notification message, and the first response message is used to confirm the application of the first FEC mode; based on the first response message, the first control module determines to apply the first FEC mode. For another example, after the first control module sends a first notification message to the second device via the first optical module, the method further includes: the first control module receives a second response message, the second response message is obtained based on the third AM, the second response message is sent by the second device after receiving the first notification message, and the second response message is used to refuse to apply the first FEC mode; based on the second response message, the first control module determines not to apply the first FEC mode.

[0133] Illustratively, the first response message includes an FEC mode field, which is determined based on the second AM. The FEC mode field includes an acknowledgment field, and the value of the acknowledgment field is used to confirm the application of the first FEC mode. The second response message also includes an FEC mode field, which is determined based on the third AM. The FEC mode field includes an acknowledgment field, and the value of the acknowledgment field is used to deny the application of the first FEC mode. The acknowledgment field is described in the description of Figures 10 and 11 above and will not be further elaborated here.

[0134] Exemplarily, the FEC Mode field in the first response message is determined based on the UP field of the second AM, or based on a padding field used to form a 257-bit code block with multiple AMs, or based on a recovery field located after an AM group, where the multiple AMs and the AM group include the second AM. That is, in the first response message, if the FEC Mode field is determined based on the padding field used to form a 257-bit code block with the multiple AMs, the second AM can be any one of the multiple AMs; if the FEC Mode field is determined based on the recovery field located after the AM group, the second AM can be any one of the AMs. Similarly, the FEC Mode field in the second response message is determined based on the UP field of the third AM, or based on a padding field used to form a 257-bit code block with the multiple AMs, or based on a recovery field located after the AM group, where the multiple AMs and the AM group include the third AM. That is, in the second response message, if the FEC mode domain field is determined based on the padding field used to form a 257-bit code block with multiple AMs, the third AM can be any one of the multiple AMs; if the FEC mode domain field is determined based on the recovery field located after the AM group, the third AM can be any one of the AMs in the AM group.

[0135] In one possible implementation, the first response message is sent by the second device after receiving the first notification message and sending n AMs to the first device, where n is an integer not less than 0, and the number of first response messages is at least one. This allows for greater flexibility in the number and timing of first response messages. Similarly, the second response message is sent by the second device after receiving the first notification message and sending t AMs to the first device, where t is an integer not less than 0, and the number of second response messages is at least one. This allows for greater flexibility in the number and timing of second response messages. In some embodiments, when there are multiple first response messages, the reliability of transmitting the first response message is higher. When there are multiple second response messages, the reliability of transmitting the second response message is higher.

[0136] In some embodiments, a second device generates a second notification message, the second notification message being obtained based on the first AM, the second notification message being used to notify the application of the first FEC mode, and the second device transmitting the second notification message to the first control module. That is, both the first device and the second device can send notification messages to inform the other end to apply the first FEC mode. The manner in which the second device generates the second notification message is the same as the principle by which the first control module generates the first notification message, and will not be further described here. Thus, the method may further include: the first control module receiving a second notification message sent by the second device, the second notification message being obtained based on the first AM, the second notification message being used to notify the application of the first FEC mode; and based on the second notification message, the first control module determining to apply the first FEC mode. In embodiments of the present application, the second notification message may include an FEC mode field, the FEC mode field being determined based on the first AM, and the structure of the FEC mode field included in the second notification message being the same as the structure of the FEC mode field included in the first notification message, and will not be further described here.

[0137] For example, if it is determined not to apply the first FEC mode, if the first device does not apply the FEC mode, the FEC mode continues to be not applied. If it is determined to apply the first FEC mode, the first device applies the first FEC mode. In some embodiments, applying the first FEC mode includes applying the first FEC mode in a first receive direction, or applying the first FEC mode in both a first transmit direction and a first receive direction, where the first receive direction is the direction in which the first device receives data from the second device, and the first transmit direction is the direction in which the first device sends data to the second device. Thus, the manner in which the first FEC mode is applied in this method is relatively flexible.

[0138] For example, when it is determined to apply the first FEC mode, the first FEC mode is applied. In one possible implementation, the first control module can start applying the first FEC mode after sending the first notification message for the first reference duration without waiting for a response from the second device, so that when the second device determines to switch to the first FEC mode, the time when the first device and the second device start applying the first FEC mode can be relatively close. The first reference duration can be set based on experience or actual needs, and this embodiment of the present application is not limited to this. For example, the first reference duration is greater than or equal to the sum of the transmission duration of the first notification message between the first device and the second device and the duration of the second device processing the first notification message.

[0139] In one possible implementation, the method further includes: adjusting the FEC encoding function to apply a first FEC mode based on receiving m first response messages, where m is a positive integer and is less than or equal to the number of first response messages. Thus, if there are multiple first response messages, the FEC encoding function can be adjusted to apply the first FEC mode when m first response messages are received, and the timing of applying the first FEC mode is relatively flexible.

[0140] Exemplarily, when the first device applies an FEC mode, the first control module performs FEC encoding by default. In some embodiments, when the first optical module includes an oDSP chip, the method further includes: the first control module sending a first switch instruction to the oDSP chip, the first switch instruction being used to instruct the oDSP chip to apply the first FEC mode by regulating an FEC encoding function. For example, when the first FEC mode is a cascaded FEC mode, the first switch instruction is used to instruct the oDSP chip to apply the cascaded FEC mode by turning on the FEC encoding function. For another example, when the first FEC mode is an end-to-end FEC mode, the first switch instruction is used to instruct the oDSP chip to apply the end-to-end FEC mode by turning off the FEC encoding function. For another example, when the first FEC mode is a segmented FEC mode, the first switch instruction is used to instruct the oDSP chip to apply the segmented FEC mode by turning on both an FEC decoding function and an FEC encoding function, the FEC decoding function being used to decode the FEC codeword encoded by the first control module to obtain a decoding result, and the FEC encoding function being used to perform FEC encoding on the decoding result.

[0141] In one possible implementation, the first control module sends the first switch instruction to the oDSP chip via a local management channel, where the local management channel is implemented based on a management data input / output (MDIO) or a two-wire serial bus (inter-integrated circuit, I2C). Alternatively, the first control module expands an implementation of an AN so that the expanded implementation of the AN can be used to send the first switch instruction. Alternatively, the oDSP chip includes a register, and the first control module sends a write instruction to the register of the oDSP chip, where the write instruction is used as the first switch instruction.

[0142] Figure 13 is a schematic diagram of a process for sending a first switch instruction provided by an embodiment of the present application. As shown in Figure 13, the first control module included in the first device and the second control module included in the second device are both located in the MAC layer, PCS and PMA sublayers, and the first optical module included in the first device and the second optical module included in the second device are both located in the PMA sublayer, FEC layer and PMD layer. The PMA sublayer where the first optical module is located includes a PMA sublayer connected to the first control module and a PMA sublayer connected to the FEC layer and PMD sublayer respectively. The PMA sublayer where the second optical module is located includes a PMA sublayer connected to the second control module and a PMA sublayer connected to the FEC layer and PMD sublayer respectively. Among them, the first optical module and the second optical module both include an oDSP chip, which is not shown in Figure 13. When determining to apply the first FEC mode, the first control module sends a first switch instruction to the oDSP chip in the first optical module. The first switch instruction is used to instruct the oDSP chip to implement the application of the first FEC mode by regulating the FEC encoding function. Exemplarily, the transmission rate between the first control module and the first optical module is 106.25 GBd, and the transmission rate between the second control module and the second optical module is also 106.25 GBd.

[0143] In other embodiments, the first optical module includes LPO, that is, the first optical module does not have an FEC encoding function. In this case, the method further includes: the first control module regulates the FEC encoding function to implement the application of the first FEC mode. For example, in the case where the first optical module includes LPO, if the first FEC mode is an end-to-end FEC mode, the first control module performs an FEC encoding operation once. If the first FEC mode is a segmented FEC mode, the first control module can perform a first FEC encoding operation, a first FEC decoding operation, and a second FEC encoding operation. If the first FEC mode is a cascaded FEC mode, the first control module can perform two FEC encoding operations. The method provided in the embodiment of the present application can be applied to different types of optical modules and has a wide range of applicable scenarios.

[0144] Exemplarily, the method further includes: the first optical module obtains the transmission rate corresponding to the first FEC mode; the first control module transmits a signal to the second device via the first optical module according to the transmission rate. By transmitting the signal according to the transmission rate corresponding to the first FEC mode, the transmission rate can be adapted to the first FEC mode. For example, when the overhead of the first FEC mode is high, the transmission rate corresponding to the first FEC mode is faster. When the overhead of the first FEC mode is low, the transmission rate corresponding to the first FEC mode is slower. Thus, when the applied FEC mode changes, the data transmission rate can be kept unchanged. Please continue to refer to Figure 13. The transmission rate corresponding to the end-to-end FEC mode is 106.25GBd, and the transmission rate corresponding to the cascaded FEC mode is 113.4375GBd.

[0145] In one possible implementation, after the first control module sends a first notification message to the second device via the first optical module, the method further includes: the first control module monitoring the quality of the second link between the first device and the second device; based on the second link quality satisfying the second application condition, the first control module generates a third notification message, the third notification message is obtained based on the fourth AM, the first control module sends the third notification message to the second device via the first optical module, and notifies the second device of the application of other FEC modes other than the first FEC mode through the third notification message. In other words, after applying the first FEC mode, the first control module can continue to monitor the link quality between the first device and the second device, so that in the event of a change in the link quality, the FEC mode to be applied can be flexibly adjusted based on the changed link quality. Exemplarily, the second application condition is different from the first application condition.

[0146] In some embodiments, the second link quality includes at least one of BER or FLR. For example, when the second link quality includes BER and the first application condition includes BER exceeding a first BER threshold, the second application condition includes BER not exceeding a third BER threshold, and the third BER threshold is less than or equal to the first BER threshold. When the first link quality includes FLR and the first application condition includes FLR exceeding a first FLR threshold, the second application condition includes FLR not exceeding a third FLR threshold, and the third FLR threshold is less than or equal to the first FLR threshold. Exemplarily, if the BER is not exceeding the third BER threshold or the FLR is not exceeding the third FLR threshold, if the first FEC mode is a cascaded FEC mode, it is determined to switch from the cascaded FEC mode to the end-to-end FEC mode. Both the third BER threshold and the third FLR threshold can be set based on experience or actual needs, and are not limited in this embodiment of the present application.

[0147] For another example, when the second link quality includes BER and the first application condition includes BER being lower than a second BER threshold, the second application condition includes BER being no lower than a fourth BER threshold, and the fourth BER threshold being greater than or equal to the second BER threshold. When the second link quality includes FLR and the first application condition includes FLR being lower than a second FLR threshold, the second application condition includes FLR being no lower than a fourth FLR threshold, and the fourth FLR threshold being greater than or equal to the second FLR threshold. Exemplarily, when the BER is no lower than the fourth BER threshold or the FLR is no lower than the fourth FLR threshold, if the first FEC mode is an end-to-end FEC mode, it is determined to switch from applying the end-to-end FEC mode to applying the cascaded FEC mode. Both the fourth BER threshold and the fourth FLR threshold can be set based on experience or actual needs, and are not limited in this regard in the embodiments of the present application.

[0148] For another example, when the second link quality includes BER and the third BER threshold is lower than the fourth BER threshold, the second application condition includes that the BER is higher than the third BER threshold and lower than the fourth BER threshold. If the first application mode is the end-to-end FEC mode or the cascade FEC mode, it is determined to switch to the segmented FEC mode.

[0149] Exemplarily, the way in which the first control module generates the third notification message is the same as the principle of the way in which it generates the first notification message. The difference between the third notification message and the first notification message lies in that the FEC mode of the notification application is different and the AM used to generate the third notification message is the fourth AM. The embodiment of the present application will no longer elaborate on the way in which the third notification message is generated.

[0150] In some embodiments, after the first control module sends a first notification message to the second device via the first optical module, the method further includes: the first control module receiving a fourth notification message sent by the second device, the fourth notification message being derived based on a fourth AM, the fourth notification message being used to notify the application of an FEC mode other than the first FEC mode; and if it is determined based on the fourth notification message that an FEC mode other than the first FEC mode is to be applied, applying the FEC mode other than the first FEC mode. In other words, the first device including the first control module can determine whether to switch to an FEC mode other than the first FEC mode based on the received fourth notification message, and the manner in which the first device determines the FEC mode to be switched is relatively flexible. Exemplarily, the manner in which the second device generates the fourth notification message is similar in principle to the manner in which the second notification message is generated. The difference between the fourth notification message and the second notification message lies in the different FEC modes being notified and the AM used to generate the fourth notification message being the fourth AM. The manner in which the fourth notification message is generated is not further described in this embodiment of the present application.

[0151] Exemplarily, both the third and fourth notification messages include an FEC mode field, which is determined based on the fourth AM. The FEC mode field also includes a request field for requesting the application of an FEC mode other than the first FEC mode. In one possible implementation, the FEC mode field is determined based on the UP field of the fourth AM, or based on a padding field used to form a 257-bit code block with multiple AMs, or based on a recovery field located after an AM group, where the multiple AMs and the AM group include the fourth AM. That is, in the third or fourth notification message, if the FEC mode field is determined based on the padding field used to form a 257-bit code block with multiple AMs, the fourth AM can be any one of the multiple AMs; if the FEC mode field is determined based on the recovery field located after the AM group, the fourth AM can be any one of the AMs.

[0152] In one possible implementation, the third or fourth notification message includes a fourth AM, which is used to request the application of an FEC mode other than the first FEC mode. For example, the fourth AM includes a CM field, a UM field, and a UP field, where the CM field included in the fourth AM has the same value as the CM field specified in the Ethernet standard. If the first FEC mode is an end-to-end FEC mode, the values ​​of the UM and UP fields of the fourth AM may be as shown in Table 7, indicating that the fourth AM is used to request the application of a cascaded FEC mode. If the first FEC mode is a cascaded FEC mode, the values ​​of the UM and UP fields of the fourth AM may be as shown in Table 9, indicating that the fourth AM is used to request the application of an end-to-end FEC mode.

[0153] In the method provided in the embodiment of the present application, by sending a first notification message to the second device, the first control module connected to the first optical module can notify the second device of the application of the first FEC mode, thereby enabling the notification of the application of the FEC mode in the scenario including the optical module. In the case where the first AM is also used to identify the PCS channel, the first AM can be compatible with the AM function specified in the IEEE 802.3 standard. Therefore, in the case where the first notification message includes the first AM and the first AM is used to notify the application of the first FEC mode, there is no need to introduce overhead other than the first AM to notify the application of the FEC mode. The overhead of notifying the application of the FEC mode is low, and there is no need to include information notifying the application of the FEC mode by deleting certain information, thereby avoiding information loss.

[0154] The foregoing description is from the perspective of the forward error correction mode notification method executed on the first device side. Next, the forward error correction mode notification method provided by the embodiment of the present application is described from the second device side. The method can be applied to the second control module 2021 shown in Figure 2, that is, the method is applied to the second control module included in the second device, and the second device also includes a second optical module, and the second optical module is respectively connected to the second control module and the first device. For example, the second optical module is respectively connected to the second control module and the first optical module in the first device. As shown in Figure 14, the method includes but is not limited to S1401 and S1402.

[0155] S1401: A second control module receives a first notification message from a first device via a second optical module, where the first notification message is obtained based on a first AM and is used to notify application of a first FEC mode.

[0156] Exemplarily, the second control module includes a PHY chip. For the relevant contents of the first notification message and the first AM, please refer to the description in S701 above, which will not be repeated here.

[0157] S1402: When it is determined based on the first notification message that the first FEC mode is to be applied, apply the first FEC mode.

[0158] In one possible implementation, when determining to apply the first FEC mode based on the first notification message, before applying the first FEC mode, the method further includes: a second control module monitoring the quality of the first link between the second device and the first device; and based on receiving the first notification message and the first link quality satisfying a first application condition, the second control module determining to apply the first FEC mode. In other words, the second control module may also monitor the quality of the first link between the second device and the first device, and determine that the first FEC mode can be applied if the first notification message is received and the first link quality satisfies the first application condition. The first link quality and the first application condition are the same as those in S701 and are not further described here.

[0159] Exemplarily, the method further includes: if the first link quality meets the first application condition, the second control module generating a second notification message, the second notification message being obtained based on the first AM; and the second control module sending the second notification message to the first device via the second optical module, notifying the first device of the application of the first FEC mode via the second notification message. In other words, if the first link quality meets the first application condition, the second control module may also generate the second notification message based on the first AM, so that after receiving the second notification message, the first control module can determine to apply the first FEC mode based on the second notification message.

[0160] Exemplarily, in the case of determining to apply the first FEC mode based on the first notification message, before applying the first FEC mode, the method also includes: the second control module receives configuration information, the configuration information is used to indicate the application of the first FEC mode, so that after receiving the first notification message, the second control module can determine to apply the first FEC mode based on the configuration information.

[0161] In some embodiments, the method further includes: in the case of determining to apply the first FEC mode, the second control module sends a first response message to the first device via the second optical module, the first response message is obtained based on the second AM, and the first response message is used to confirm the application of the first FEC mode. Thus, after receiving the first response message, the first control module of the first device can determine to apply the first FEC mode based on the first response message. Exemplarily, the first response message includes an FEC mode domain field, the FEC mode domain field is determined based on the second AM, the FEC mode domain field includes a response field, and the value of the response field is used to confirm the application of the first FEC mode. The FEC mode domain field and the response field can refer to the relevant description of the FEC mode domain field and the response field in S701 above. In the case where the first response message includes the second AM, the second AM can refer to the relevant description of Table 9 above, and no further details will be given here.

[0162] Exemplarily, the first response message is sent by the second device after receiving the first notification message and sending n AMs to the first device, where n is an integer not less than 0 and the number of first response messages is at least one. This allows the second control module to be more flexible in the number and timing of sending first response messages. When there are multiple first response messages, the first device is more likely to receive the first response message, and the reliability of transmitting the first response message is higher.

[0163] In other embodiments, the method further includes: upon determining that the first FEC mode is not to be applied, the second control module sending a second response message to the first device via the second optical module, the second response message being derived based on the third AM and refusing to apply the first FEC mode. Thus, after receiving the second response message, the first control module of the first device can determine not to apply the first FEC mode based on the second response message. Exemplarily, the second response message includes an FEC mode field, which is determined based on the third AM. The FEC mode field includes a response field, the value of which is used to refuse to apply the first FEC mode. For the FEC mode field and the response field, refer to the description of the FEC mode field and the response field in S701 above. If the second response message includes the third AM, refer to the description of the third AM in Table 10 above, and are not further described here. Exemplarily, the second response message is sent by the second device after receiving the first notification message and sending t AMs to the first device, where t is an integer not less than 0, and the number of second response messages is at least one. This provides flexibility in the number and timing of second response messages sent by the second control module. In the case where there are multiple second response messages, the probability that the first device receives the second response message is greater, and the reliability of transmitting the second response message is higher.

[0164] In one possible implementation, if the second control module determines that the first FEC mode is not to be applied, the second control module does not respond, that is, does not send a second response message. If the second control module does not respond, if the second device does not apply the FEC mode, the FEC mode remains not applied; if the second device applies the FEC mode, the applied FEC mode remains unchanged.

[0165] Exemplarily, when it is determined to apply the first FEC mode, the first FEC mode is applied. In some embodiments, applying the first FEC mode includes applying the first FEC mode in the second sending direction, or applying the first FEC mode in both the second sending direction and the second receiving direction, wherein the second sending direction is a direction in which the second device sends data to the first device, and the second receiving direction is a direction in which the second device receives data from the first device.

[0166] In one possible implementation, the first FEC mode is applied after the second control module sends the second notification message for a second reference duration. This allows the first and second devices to begin applying the first FEC mode at relatively close times when the first device determines to switch to the first FEC mode. The second reference duration can be set based on experience or actual needs and is not limited in this embodiment of the present application. For example, the second reference duration is greater than or equal to the sum of the transmission duration of the second notification message between the first and second devices and the duration of the first device processing the second notification message.

[0167] Exemplarily, when the second device applies an FEC mode, the second control module performs FEC decoding by default. In some embodiments, when the second optical module includes an oDSP chip, applying the first FEC mode includes: the second control module sends a second switch instruction to the oDSP chip, the second switch instruction being used to instruct the oDSP chip to apply the first FEC mode by regulating the FEC encoding function. For example, when the first FEC mode is a cascade FEC mode, the second switch instruction is used to instruct the oDSP chip to apply the cascade FEC mode by turning on the FEC decoding function. For another example, when the first FEC mode is an end-to-end FEC mode, the second switch instruction is used to instruct the oDSP chip to apply the end-to-end FEC mode by turning off the FEC decoding function. For another example, when the first FEC mode is a segmented FEC mode, the second switch instruction is used to instruct the oDSP chip to apply the segmented FEC mode by turning on both the FEC decoding function and the FEC encoding function, the FEC decoding function being used to decode the FEC codeword transmitted by the first device to obtain a decoding result, and the FEC encoding function being used to perform FEC encoding on the decoding result. Exemplarily, the second control module sends the second switch instruction to the oDSP chip in the same manner as the first control module sends the first switch instruction to the oDSP chip, and is not further described here. Referring again to FIG. 13 , upon determining to apply the first FEC mode, the second control module sends the second switch instruction to the oDSP chip in the second optical module. The second switch instruction instructs the oDSP chip to implement the first FEC mode by adjusting its FEC encoding function.

[0168] In other embodiments, the second optical module includes LPO, that is, the second optical module does not have an FEC decoding function. In this case, the first FEC mode is applied, including: the second control module regulates the FEC decoding function to implement the application of the first FEC mode. For example, in the case where the second optical module includes LPO, if the first FEC mode is an end-to-end FEC mode, the second control module performs an FEC decoding operation once. If the first FEC mode is a segmented FEC mode, the second control module can perform a first FEC decoding operation, a first FEC encoding operation, and a second FEC decoding operation. If the first FEC mode is a cascaded FEC mode, the second control module can perform two FEC decoding operations. The method provided in the embodiment of the present application can be applied to different types of optical modules and has a wide range of applicable scenarios.

[0169] Exemplarily, the method further includes: obtaining, by a second optical module, a transmission rate corresponding to the first FEC mode; and receiving, by a second control module, a signal from the first device via the second optical module according to the transmission rate. By transmitting the signal at the transmission rate corresponding to the first FEC mode, the transmission rate can be adapted to the first FEC mode. For example, when the overhead of the first FEC mode is high, the transmission rate corresponding to the first FEC mode is faster. When the overhead of the first FEC mode is low, the transmission rate corresponding to the first FEC mode is slower. Thus, even when the applied FEC mode changes, the data transmission rate can remain unchanged.

[0170] In some embodiments, after applying the first FEC mode, the method further includes: a second control module receiving a third notification message sent by the first device, the third notification message being derived based on the fourth AM, the third notification message being used to notify the application of an FEC mode other than the first FEC mode; and upon determining based on the third notification message that an FEC mode other than the first FEC mode is to be applied, applying the FEC mode other than the first FEC mode. In other words, the second device including the second control module can determine whether to switch to an FEC mode other than the first FEC mode based on the received third notification message, providing a flexible method for the second device to determine the FEC mode to be switched. For details on the third notification message and the fourth AM, please refer to the description of the third notification message and the fourth AM after S702 above and will not be repeated here.

[0171] In one possible implementation, after applying the first FEC mode, the method further includes: a second control module monitoring the second link quality between the second device and the first device; based on the second link quality satisfying the second application condition, the second control module generating a fourth notification message, the fourth notification message being obtained based on the fourth AM; the second control module sending the fourth notification message to the first device via the second optical module, notifying the first device of the application of other FEC modes other than the first FEC mode through the fourth notification message. That is, after applying the first FEC mode, the second control module can continue to monitor the link quality between the first device and the second device, so that when the link quality changes, the FEC mode to be applied can be flexibly adjusted based on the changed link quality. The second link quality, the second application condition and the fourth notification message can be found in the description of the second link quality, the second application condition and the fourth notification message after S702 above, which will not be repeated here.

[0172] For example, if the first device applies the first FEC mode and the second device does not apply the first FEC mode, because the FEC modes used by the first and second devices are inconsistent, the first and second devices will detect a rapid increase in the bit error rate when transmitting according to their respective FEC modes. In this case, the first and second devices can both switch to applying an FEC mode other than the first FEC mode. Alternatively, if the first and second devices initially apply the same FEC mode, and the first device applies the first FEC mode and the second device does not apply the first FEC mode, the first device can switch to applying the initial FEC mode, while the second device maintains the applied FEC mode unchanged.

[0173] In the method provided in the embodiment of the present application, based on the first notification message sent by the first device, the second control module connected to the second optical module can be notified by the first device to apply the first FEC mode, thereby enabling notification of the application of the FEC mode in a scenario including the optical module. In the case where the first AM is also used to identify the PCS channel, the first AM can be compatible with the AM function specified in the IEEE 802.3 standard. Therefore, in the case where the first notification message includes the first AM, there is no need to introduce overhead other than the first AM to notify the application of the FEC mode, the overhead of notifying the application of the FEC mode is low, and there is no need to include information notifying the application of the FEC mode by deleting certain information, thereby avoiding information loss.

[0174] Next, the forward error correction mode notification method provided by an embodiment of the present application will be described using the interaction process between the first control module and the second control module as an example, in conjunction with Figures 15 to 18. Figure 15 is a schematic diagram of a process for initiating a unilateral handover in a unidirectional manner, provided by an embodiment of the present application. The first control module and the second control module both support end-to-end FEC mode and cascaded FEC mode, and both the first control module and the second control module initiate data transmission and reception using the same default FEC mode. As shown in Figure 15, the process includes the following steps S1501 to S1504.

[0175] S1501, the Rx of the first control module detects the first link quality between the first device and the second device, and based on the first link quality meeting the first application condition, the Tx of the first control module sends a first notification message, the first notification message is obtained based on the first AM, and the first notification message is used to indicate the application of the first FEC mode.

[0176] S1502. After the Rx of the second control module receives the first notification message, if it confirms the application of the first FEC mode, the Tx of the second control module sends a first response message, the first response message is obtained based on the second AM, and the first response message is used to confirm the application of the first FEC mode; if the application of the first FEC mode is rejected, the Tx of the second control module sends a second response message, the second response message is obtained based on the third AM, and the second response message is used to reject the application of the first FEC mode.

[0177] S1503: When the second control module confirms to apply the first FEC mode, notify the second optical module to apply the first FEC mode in the second sending direction.

[0178] S1504: When the first control module receives the first response message, it notifies the first optical module to apply the first FEC mode in the first receiving direction.

[0179] In conjunction with the content shown in Figure 15, the request to apply the first FEC mode is initiated by the first control module, so this process is called a unidirectional initiation process. Because the first FEC mode is applied only in the first receiving direction of the first control module and the second transmitting direction of the second control module, this process is called a unilateral switching process.

[0180] Figure 16 is a schematic diagram of a process for bidirectionally initiating unilateral handover, provided in an embodiment of the present application. The first control module and the second control module both support end-to-end FEC mode and cascaded FEC mode, and both the first control module and the second control module initiate data transmission and reception using the same default FEC mode. As shown in Figure 16 , the process includes steps S1601 to S1608.

[0181] S1601, the Rx of the first control module detects the first link quality between the first device and the second device, and based on the first link quality meeting the first application condition, the Tx of the first control module sends a first notification message, the first notification message is obtained based on the first AM, and the first notification message is used to indicate the application of the first FEC mode.

[0182] S1602, the Rx of the second control module detects the first link quality between the first device and the second device, and based on the first link quality meeting the first application condition, the Tx of the second control module sends a second notification message, the second notification message is obtained based on the first AM, and the second notification message is used to indicate the application of the first FEC mode.

[0183] S1603, after the Rx of the second control module receives the first notification message, if it confirms to apply the first FEC mode, the Tx of the second control module sends a first response message, the first response message is obtained based on the second AM, and the first response message is used to confirm the application of the first FEC mode.

[0184] S1604, after the Rx of the first control module receives the second notification message, if it confirms to apply the first FEC mode, the Tx of the first control module sends a third response message, the third response message is obtained based on the second AM, and the third response message is used to confirm the application of the first FEC mode.

[0185] In the embodiment of the present application, the third response message is generated by the first control module. The way in which the first control module generates the third response message is the same as the way in which the second control module generates the first response message, which will not be repeated here.

[0186] S1605 : When the second control module confirms to apply the first FEC mode, notify the second optical module to apply the first FEC mode in the second sending direction.

[0187] S1606: When the first control module receives the first response message, notify the first optical module to apply the first FEC mode in the first receiving direction.

[0188] S1607: When the first control module confirms to apply the first FEC mode, notify the first optical module to apply the first FEC mode in the first sending direction.

[0189] S1608 : When the second control module receives the third response message, it notifies the second optical module to apply the first FEC mode in the second receiving direction.

[0190] In conjunction with the content shown in Figure 16, the request to apply the first FEC mode is initiated by the first control module and the second control module, so this process is called a bidirectional initiation process. Since the application of the first FEC mode in the first receiving direction and the second transmitting direction is determined based on the first notification message and the first response message, and the application of the first FEC mode in the first transmitting direction and the second receiving direction is determined based on the second notification message and the third response message, this process is still called a unilateral switching process.

[0191] Figure 17 is a schematic diagram of a process for unidirectionally initiating bilateral handover, provided in an embodiment of the present application. The first control module and the second control module both support end-to-end FEC mode and cascade FEC mode, and both the first control module and the second control module initiate data transmission and reception using the same default FEC mode. As shown in Figure 17 , the process includes steps S1701 to S1704.

[0192] S1701, the Rx of the first control module detects the first link quality between the first device and the second device, and based on the first link quality meeting the first application condition, the Tx of the first control module sends a first notification message, the first notification message is obtained based on the first AM, and the first notification message is used to indicate the application of the first FEC mode.

[0193] S1702. After the Rx of the second control module receives the first notification message, if it confirms the application of the first FEC mode, the Tx of the second control module sends a first response message, which is obtained based on the second AM and is used to confirm the application of the first FEC mode; if it refuses to apply the first FEC mode, the Tx of the second control module sends a second response message, which is obtained based on the third AM and is used to refuse the application of the first FEC mode.

[0194] S1703: When the second control module confirms that the first FEC mode is to be applied, the second optical module is notified to apply the first FEC mode in both the second transmitting direction and the second receiving direction.

[0195] S1704: When the first control module receives the first response message, notify the first optical module to apply the first FEC mode in both the first sending direction and the first receiving direction.

[0196] In conjunction with the content shown in Figure 17, the request to apply the first FEC mode is initiated by the first control module, so this process is called a unidirectional initiation process. Since the first FEC mode is applied in the first transmission direction, the first reception direction, the second transmission direction, and the second reception direction, this process is called a bilateral switching process.

[0197] Figure 18 is a schematic diagram of a notification switching process provided by an embodiment of the present application. The first control module and the second control module both support end-to-end FEC mode and cascade FEC mode, and both the first control module and the second control module initiate data transmission and reception using the same default FEC mode. As shown in Figure 18 , the process includes steps S1801 to S1803.

[0198] S1801, the Rx of the first control module detects the first link quality between the first device and the second device, and based on the first link quality satisfying the first application condition, the Tx of the first control module sends a first notification message, the first notification message is obtained based on the first AM, and the first notification message is used to indicate the application of the first FEC mode.

[0199] S1802: After sending the first notification message, the first control module notifies the first optical module to apply the first FEC mode in both the first sending direction and the first receiving direction.

[0200] S1803, after receiving the first notification message, if the second control module confirms the application of the first FEC mode, it notifies the second optical module to apply the first FEC mode in both the second sending direction and the second receiving direction; if the application of the first FEC mode is rejected, the applied FEC mode remains unchanged.

[0201] In conjunction with the content shown in FIG. 18 , since the first control module can apply the first FEC mode without the need for a response from the second device after sending the first notification message, this process is called a notification switching process.

[0202] An embodiment of the present application also provides a forward error correction mode notification device. Figure 19 is a structural diagram of a forward error correction mode notification device provided by an embodiment of the present application. The device is applied to the first device 201 shown in Figure 2. Based on the multiple modules shown in Figure 19, the device can perform all or part of the operations in the forward error correction mode notification method shown in Figure 7. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown therein, and the embodiment of the present application does not limit this. As shown in Figure 19, the device includes a first control module 1901 and a first optical module 1902, and the first optical module 1902 is connected to the first control module 1901 and the second device, respectively.

[0203] In some embodiments, the first control module 1901 is used to generate a first notification message, and the first notification message is obtained based on the first AM; the first control module 1901 is also used to send the first notification message to the second device via the first optical module 1902, and notify the second device of the application of the first FEC mode through the first notification message.

[0204] In some embodiments, the first control module 1901 is configured to monitor the quality of a first link between the first device and the second device; and generate a first notification message based on whether the quality of the first link satisfies a first application condition.

[0205] In some embodiments, the first link quality includes at least one of a bit error rate or a frame loss rate.

[0206] In some embodiments, the first control module 1901 is configured to obtain configuration information, where the configuration information is used to indicate application of a first FEC mode; and generate a first notification message based on the configuration information.

[0207] In some embodiments, the first control module 1901 is also used to receive a first response message, which is obtained based on the second AM. The first response message is sent by the second device after receiving the first notification message. The first response message is used to confirm the application of the first FEC mode; based on the first response message, it is determined to apply the first FEC mode.

[0208] In some embodiments, the first control module 1901 is also used to receive a second response message, which is obtained based on the third AM. The second response message is sent by the second device after receiving the first notification message. The second response message is used to refuse to apply the first FEC mode; based on the second response message, it is determined not to apply the first FEC mode.

[0209] In some embodiments, the first control module 1901 is further configured to receive a second notification message sent by a second device, where the second notification message is obtained based on the first AM; and determine to apply the first FEC mode based on the second notification message.

[0210] In some embodiments, the first control module 1901 is also used to monitor the second link quality between the first device and the second device; based on the second link quality satisfying the second application condition, generate a third notification message, and the third notification message is obtained based on the fourth AM; send the third notification message to the second device via the first optical module, and notify the second device through the third notification message that other FEC modes other than the first FEC mode are applied.

[0211] In some embodiments, the first control module 1901 is also used to receive a fourth notification message sent by the second device, the fourth notification message is obtained based on the fourth AM, and the fourth notification message is used to announce the application of other FEC modes other than the first FEC mode; in the case of determining to apply other FEC modes other than the first FEC mode based on the fourth notification message, apply other FEC modes other than the first FEC mode, or control the first optical module 1902 to apply other FEC modes.

[0212] In some embodiments, applying the first FEC mode includes applying the first FEC mode in a first receiving direction, or applying the first FEC mode in both a first sending direction and a first receiving direction, wherein the first receiving direction is a direction in which the first device receives data from the second device, and the first sending direction is a direction in which the first device sends data to the second device.

[0213] In some embodiments, the first optical module 1902 includes an oDSP chip. The first control module 1901 is further configured to send a first switch instruction to the oDSP chip. The first switch instruction is configured to instruct the oDSP chip to adjust the FEC encoding function to implement the first FEC mode.

[0214] In some embodiments, the first optical module 1902 includes a linear drive pluggable optical module LPO, and the first control module 1901 is further configured to regulate the FEC encoding function to implement the first FEC mode.

[0215] In some embodiments, the first AM is also used to identify the PCS channel.

[0216] In some embodiments, the first optical module 1902 is further configured to obtain a transmission rate corresponding to the first FEC mode; and the first control module 1901 is further configured to transmit a signal to the second device via the first optical module according to the transmission rate.

[0217] In some embodiments, the first control module 1901 is configured to send a plurality of first notification messages to the second device via the first optical module 1902 .

[0218] In some embodiments, the first response message is sent by the second device after receiving the first notification message and sending n AMs to the first device, where n is an integer not less than 0, and the number of first response messages is at least one.

[0219] In some embodiments, the first control module 1901 is configured to control the FEC encoding function to apply the first FEC mode based on receiving m first response messages, where m is a positive integer and is less than or equal to the number of first response messages. Alternatively, the first control module 1901 is configured to control the first optical module 1902 to control the FEC encoding function to apply the first FEC mode based on receiving m first response messages, where m is a positive integer and is less than or equal to the number of first response messages.

[0220] In some embodiments, the first notification message includes an FEC mode field, the FEC mode field is determined based on the first AM, the FEC mode field includes a request field, and the value of the request field is used to request application of the first FEC mode. Exemplarily, the FEC mode field is determined based on the UP field of the first AM, or the FEC mode field is determined based on a padding field used to form a 257-bit code block with multiple AMs, or the FEC mode field is determined based on a recovery field located after an AM group, wherein the multiple AMs and the AM group include the first AM.

[0221] In some embodiments, the first response message includes an FEC mode field, the FEC mode field is determined based on the second AM, the FEC mode field includes an acknowledgment field, and the value of the acknowledgment field is used to confirm the application of the first FEC mode. Exemplarily, the FEC mode field is determined based on the UP field of the second AM, or the FEC mode field is determined based on a padding field used to form a 257-bit code block with multiple AMs, or the FEC mode field is determined based on a recovery field located after an AM group, wherein the multiple AMs and the AM group include the second AM.

[0222] In some embodiments, the first control module 1901 includes a PHY chip.

[0223] In the device provided in the embodiment of the present application, by sending a first notification message, the first control module connected to the first optical module can notify the second device of the application of the first FEC mode, thereby enabling the notification of the application of the FEC mode in the scenario including the optical module. In the case where the first AM is also used to identify the PCS channel, the first AM can be compatible with the AM function specified in the IEEE 802.3 standard. Therefore, in the case where the first notification message includes the first AM and the first AM is used to notify the application of the first FEC mode, there is no need to introduce overhead other than the first AM to notify the application of the FEC mode. The overhead of notifying the application of the FEC mode is low, and there is no need to include information on the notification of the application of the FEC mode by deleting certain information, thereby avoiding information loss.

[0224] An embodiment of the present application also provides another forward error correction mode notification device. Figure 20 is a structural diagram of another forward error correction mode notification device provided by an embodiment of the present application. The device is applied to the second control module 202 shown in Figure 2. Based on the multiple modules shown in Figure 19, the device can perform all or part of the operations in the forward error correction mode notification method shown in Figure 14. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown therein, and the embodiment of the present application does not limit this. As shown in Figure 20, the device includes a second control module 2001 and a second optical module 2002, and the second optical module 2002 is connected to the second control module 2001 and the first device, respectively.

[0225] The second control module 2001 is used to receive a first notification message from the first device via the second optical module, the first notification message is obtained based on the first AM, and the first notification message is used to announce the application of the first FEC mode; the second control module 2001 is also used to apply the first FEC mode when it is determined to apply the first FEC mode based on the first notification message, or the second control module 2001 is also used to control the second optical module 2002 to apply the first FEC mode when it is determined to apply the first FEC mode based on the first notification message.

[0226] In some embodiments, the second control module 2001 is further configured to monitor the quality of a first link between the second device and the first device; and determine to apply the first FEC mode based on receiving the first notification message and the first link quality meeting the first application condition.

[0227] In some embodiments, the first link quality includes at least one of a bit error rate or a frame loss rate.

[0228] In some embodiments, the second control module 2001 is also used to generate a second notification message when the first link quality meets the first application condition, and the second notification message is obtained based on the first AM; send the second notification message to the first device via the second optical module, and notify the first device of the application of the first FEC mode through the second notification message.

[0229] In some embodiments, the second control module 2001 is further used to send a first response message to the first device via the second optical module when it is determined to apply the first FEC mode. The first response message is obtained based on the second AM and is used to confirm the application of the first FEC mode.

[0230] In some embodiments, the second control module 2001 is further used to send a second response message to the first device via the second optical module when it is determined that the first FEC mode is not to be applied. The second response message is obtained based on the third AM and is used to refuse to apply the first FEC mode.

[0231] In some embodiments, the second control module 2001 is also used to receive a third notification message sent by the first device, the third notification message is obtained based on the fourth AM, and the third notification message is used to announce the application of other FEC modes other than the first FEC mode; when it is determined to apply other FEC modes other than the first FEC mode based on the third notification message, other FEC modes other than the first FEC mode are applied, or the second optical module 2002 is controlled to apply other FEC modes.

[0232] In some embodiments, the second control module 2001 is also used to monitor the second link quality between the second device and the first device; based on the second link quality satisfying the second application condition, generate a fourth notification message, and the fourth notification message is obtained based on the fourth AM; send the fourth notification message to the first device via the second optical module, and notify the first device through the fourth notification message that other FEC modes other than the first FEC mode are applied.

[0233] In some embodiments, applying the first FEC mode includes applying the first FEC mode in the second sending direction, or applying the first FEC mode in both the second sending direction and the second receiving direction, wherein the second sending direction is the direction in which the second device sends data to the first device, and the second receiving direction is the direction in which the second device receives data from the first device.

[0234] In some embodiments, the second optical module 2002 includes an oDSP chip, and the second control module 2001 is configured to send a second switch instruction to the oDSP chip, where the second switch instruction is configured to instruct the oDSP chip to adjust the FEC decoding function to implement the first FEC mode.

[0235] In some embodiments, the second optical module 2002 includes an LPO, and the second control module 2001 is configured to regulate the FEC decoding function to implement the first FEC mode.

[0236] In some embodiments, the first AM is also used to identify the PCS channel.

[0237] In some embodiments, the second optical module 2002 is further configured to obtain a transmission rate corresponding to the first FEC mode; and the second control module 2001 is further configured to receive a signal from the first device via the second optical module according to the transmission rate.

[0238] In some embodiments, the second control module 2001 is configured to receive a plurality of first notification messages from the first device via the second optical module 2002 .

[0239] In some embodiments, the first response message is sent by the second device after receiving the first notification message and sending n AMs to the first device, where n is an integer not less than 0, and the number of first response messages is at least one.

[0240] In some embodiments, the first notification message includes an FEC mode field, the FEC mode field is determined based on the first AM, the FEC mode field includes a request field, and the value of the request field is used to request application of the first FEC mode. Exemplarily, the FEC mode field is determined based on the UP field of the first AM, the FEC mode field is determined based on a padding field used to form a 257-bit code block with multiple AMs, or the FEC mode field is determined based on a recovery field located after an AM group, wherein the multiple AMs and the AM group include the first AM.

[0241] In some embodiments, the first response message includes an FEC mode field, the FEC mode field is determined based on the second AM, the FEC mode field includes an acknowledgment field, and the value of the acknowledgment field is used to confirm the application of the first FEC mode. Exemplarily, the FEC mode field is determined based on the UP field of the second AM, or the FEC mode field is determined based on a padding field used to form a 257-bit code block with multiple AMs, or the FEC mode field is determined based on a recovery field located after an AM group, wherein the multiple AMs and the AM group include the second AM.

[0242] In some embodiments, the second control module 2001 includes a PHY chip.

[0243] In the device provided in the embodiment of the present application, based on the first notification message sent by the first device, the second control module connected to the second optical module can be notified by the first device to apply the first FEC mode, so that the notification of applying the FEC mode can be implemented in the scenario including the optical module. In the case where the first AM is also used to identify the PCS channel, the first AM can be compatible with the AM function specified in the IEEE 802.3 standard. Therefore, in the case where the first notification message includes the first AM and the first AM is used to notify the application of the first FEC mode, there is no need to introduce overhead other than the first AM to notify the application of the FEC mode. The overhead of notifying the application of the FEC mode is low, and there is no need to include information notifying the application of the FEC mode by deleting certain information, thereby avoiding information loss.

[0244] Referring to FIG. 21 , FIG. 21 is a schematic diagram of the structure of a computer system provided in an embodiment of the present application. For example, as shown in FIG. 21 , the computer system is a computer system 2100. Computer system 2100 may be a network device, a routing device, or a switching device. Computer system 2100 shown in FIG. 21 is used to perform the operations in the forward error correction mode notification method shown in FIG. 7 or FIG. 14 . Computer system 2100 is, for example, a server, and may be implemented using a general bus architecture.

[0245] As shown in FIG. 21 , a computer system 2100 includes at least one processor 2101 , an optical module 2102 , a memory 2103 , and at least one communication interface 2104 .

[0246] The processor 2101 is a central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural network processing unit (NPU), a data processing unit (DPU), a microprocessor or one or more integrated circuits for implementing the method provided in the embodiments of the present application. For example, the processor 2101 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL) or any combination of the above three. The processor 2101 can be a combination of various logic blocks, modules and circuits that implement or execute the contents disclosed in conjunction with the embodiments of the present application, or a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0247] Optionally, computer system 2100 also includes a bus. The bus is used to transmit information between the components of computer system 2100. The bus may be a Peripheral Component Interconnect Express (PCIe) bus or an Extended Industry Standard Architecture (EISA) bus, for example. Buses can be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG21 shows only one thick line, but this does not imply that there is only one bus or only one type of bus.

[0248] The optical module 2102 may include an oDSP chip or an LPO. The memory 2103 may be, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2103 may exist independently and be connected to the processor 2101 via a bus. The memory 2103 may also be integrated with the processor 2101.

[0249] The communication interface 2104 uses any transceiver-like device for communicating with other devices or communication networks. The communication network can be Ethernet, a radio access network (RAN), or a wireless local area network (WLAN). The communication interface 2104 can include a wired communication interface or a wireless communication interface. Specifically, the communication interface 2104 can be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a WLAN interface, a cellular network communication interface, or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. In the embodiment of the present application, the communication interface 2104 can be used for the computer system 2100 to communicate with other devices.

[0250] In a specific implementation, as an embodiment, the processor 2101 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG21 . Each of these processors may be a single-core processor or a multi-core processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0251] In a specific implementation, as an embodiment, the computer system 2100 may include multiple processors, such as processor 2101 and processor 2105 shown in FIG21 . Each of these processors may be a single-core processor or a multi-core processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0252] In a specific implementation, as an embodiment, the computer system 2100 may further include an output device and an input device. The output device communicates with the processor 2101 and can display information in a variety of ways. For example, the output device can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device communicates with the processor 2101 and can receive user input in a variety of ways. For example, the input device can be a mouse, a keyboard, a touch screen device, or a sensor device.

[0253] In some embodiments, the memory 2103 is used to store program code 2110, and the processor 2101 can execute the program code 2110 stored in the memory 2103. The program code 2110 may include one or more software modules. Alternatively, the processor 2101 itself may also store program code or instructions.

[0254] In a specific embodiment, the computer system 2100 of the embodiment of the present application may include the first control module and / or the second control module in the above-mentioned method embodiments, and the first control module and / or the second control module may be implemented by the processor 2101 in the computer system 2100.

[0255] The computer system 2100 may also correspond to the apparatus shown in FIG. 19 and FIG. 20 . The first control module in the apparatus shown in FIG. 19 or the second control module in the apparatus shown in FIG. 20 may be implemented by a circuit in the processor 2101 .

[0256] 7 or 14 are implemented by hardware integrated logic circuits in the processor of the computer system 2100. The steps of the method disclosed in the embodiments of the present application can be directly implemented by the hardware processor.

[0257] Figure 22 is a schematic diagram of the structure of another computer system provided in an embodiment of the present application, wherein the computer system is used to perform the operations in the forward error correction mode notification method shown in Figure 7 or Figure 14 above. Exemplarily, the computer system is a switch, and the switch may have relatively large differences due to different configurations or performance. The computer system may include one or more processors 2201, and the one or more processors 2201 are used to implement the first control module and / or the second control module in the method embodiment. The computer system also includes an optical module 2202, and the optical module 2202 is used to implement the first optical module and / or the second optical module in the method embodiment. As shown in Figure 22, the computer system may also include one or more memories 2203, wherein the one or more memories 2203 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 2201. Exemplarily, the processor 2201 is a CPU. Of course, the computer system may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The computer system may also include other components for implementing device functions, which are not described here.

[0258] An embodiment of the present application also provides a communication device, which includes: a transceiver module for performing operations related to reception and / or transmission in the forward error correction mode notification method shown in Figure 7; a processing module for performing other operations in addition to operations related to reception and / or transmission in the forward error correction mode notification method shown in Figure 7. An embodiment of the present application also provides another communication device, which includes: a transceiver module for performing operations related to reception and / or transmission in the forward error correction mode notification method shown in Figure 14; a processing module for performing other operations in addition to operations related to reception and / or transmission in the forward error correction mode notification method shown in Figure 14.

[0259] An embodiment of the present application provides a chip, which includes: an interface module, the interface module is used to execute the forward error correction mode notification method shown in Figure 7 or Figure 14. An embodiment of the present application also provides another chip, which includes a processor, the processor is used to call and run instructions stored in the memory from a memory, so that a communication device equipped with the chip executes the forward error correction mode notification method shown in Figure 7 or Figure 14. Exemplarily, the chip also includes: an input interface, an output interface and a memory, the input interface, the output interface, the processor and the memory are connected by an internal connection path, and the memory contains the above-mentioned program instructions or code.

[0260] An embodiment of the present application also provides an electronic device, which includes: a processor, the processor is coupled to a memory, the memory stores at least one program instruction or code, and the at least one program instruction or code is loaded and executed by the processor to enable the electronic device to implement the forward error correction mode notification method shown in Figure 7 or Figure 14.

[0261] An embodiment of the present application also provides a communication system, which includes a first device and a second device, the first device including a first control module and a first optical module, the second device including a second control module and a second optical module, the first optical module being connected to the first control module and the second optical module respectively, and the second optical module being also connected to the second control module; the first control module is used to execute the forward error correction mode notification method shown in Figure 7, and the second control module is used to execute the forward error correction mode notification method shown in Figure 14.

[0262] An embodiment of the present application also provides a computer-readable storage medium, in which at least one program instruction or code is stored. When the program instruction or code is loaded and executed by a computer processor, the computer implements the forward error correction mode notification method in the method embodiment.

[0263] An embodiment of the present application further provides a computer program or a computer program product, which includes: computer program code, which, when executed by a computer, enables the computer to execute the forward error correction mode notification method in the method embodiment.

[0264] It should be understood that the processor may be a CPU, or other general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced Reduced Instruction Set Machine (ARM) architecture.

[0265] Furthermore, in an optional embodiment, if one or more of the aforementioned computer system, communication device, chip, or communication system further includes memory, the memory may include read-only memory and random access memory, and provide instructions and data to the processor. The memory may also include non-volatile random access memory. For example, the memory may also store device type information.

[0266] The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a RAM, which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0267] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program or computer program product. The computer program or computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0268] To clearly illustrate the interchangeability of hardware and software, the above description has generally described the steps and components of each embodiment according to their functions. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0269] The computer program code for realizing the method for the embodiment of the application can be written in one or more programming languages. These computer program codes can be provided to the processor of the storage device of general-purpose computer, special-purpose computer or other programmable annotation content, so that the program code, when being executed by the storage device of computer or other programmable annotation content, causes the function / operation specified in the flow chart and / or block diagram to be implemented. The program code can be executed completely on the computer, partially on the computer, as an independent software package, partially on the computer and partially on a remote computer or completely on a remote computer or server.

[0270] In the context of the embodiments of the present application, computer program code or related data may be carried by any suitable carrier to enable a device, apparatus, or processor to perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, and the like. Examples of signals may include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.

[0271] Those skilled in the art will clearly understand that, for the sake of convenience and brevity of description, the specific working processes of the above-described systems, devices, and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0272] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or can be electrical, mechanical or other forms of connection.

[0273] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0274] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0275] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limit on the quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the various examples, a first device can be referred to as a second device, and similarly, a second device can be referred to as a first device.

[0276] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0277] In this application, the term "at least one" means one or more, and the term "plurality" means two or more. For example, "plurality of first AMs" means two or more first AMs. The terms "system" and "network" are often used interchangeably herein.

[0278] It should be understood that the terminology used in the description of the various examples herein is for the purpose of describing particular examples only and is not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0279] It will also be understood that the term “comprise” (also known as “includes,” “including,” “comprises,” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0280] It should also be understood that, depending on the context, the phrase “if it is determined that…” or “if [stated condition or event] is detected” may be interpreted to mean “upon determining…” or “in response to determining…” or “upon detecting [stated condition or event]” or “in response to detecting [stated condition or event]”.

[0281] It should be understood that determining B based on A does not mean determining B based solely on A. B can also be determined based on A and / or other information.

[0282] It should also be understood that references throughout this specification to "one embodiment," "an embodiment," or "one possible implementation" mean that specific features, structures, or characteristics associated with that embodiment or implementation are included in at least one embodiment of the present application. Therefore, the appearance of "in one embodiment," "in an embodiment," or "one possible implementation" throughout this specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0283] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application should be included in the scope of protection of the present application.

Claims

1. A forward error correction mode notification method, characterized in that: The method is applied to a first control module included in a first device, the first device also includes a first optical module, the first optical module is connected to the first control module and the second device respectively, and the method includes: The first control module generates a first notification message, where the first notification message is obtained based on the first alignment mark AM; The first control module sends the first notification message to the second device via the first optical module, and notifies the second device of applying a first forward error correction FEC mode through the first notification message.

2. The method according to claim 1, characterized in that The first control module generates a first notification message, including: The first control module monitors a first link quality between the first device and the second device; Based on the first link quality satisfying a first application condition, the first control module generates the first notification message.

3. The method according to claim 2, characterized in that The first link quality includes at least one of a bit error rate or a frame loss rate.

4. The method according to claim 1, characterized in that: The first control module generates a first notification message, including: The first control module acquires configuration information, where the configuration information is used to indicate application of the first FEC mode; Based on the configuration information, the first control module generates the first notification message.

5. The method according to any one of claims 1 to 4, characterized in that: After the first control module sends the first notification message to the second device via the first optical module, the method further includes: The first control module receives a first response message, the first response message is obtained based on the second AM, the first response message is sent by the second device after receiving the first notification message, and the first response message is used to confirm the application of the first FEC mode; Based on the first response message, the first control module determines to apply the first FEC mode.

6. The method according to any one of claims 1 to 4, characterized in that: After the first control module sends the first notification message to the second device via the first optical module, the method further includes: The first control module receives a second response message, the second response message is obtained based on the third AM, the second response message is sent by the second device after receiving the first notification message, and the second response message is used to refuse to apply the first FEC mode; Based on the second response message, the first control module determines not to apply the first FEC mode.

7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The first control module receives a second notification message sent by the second device, where the second notification message is obtained based on the first AM, and the second notification message is used to notify application of the first FEC mode; Based on the second notification message, the first control module determines to apply the first FEC mode.

8. The method according to any one of claims 1 to 5 and 7, characterized in that: After the first control module sends the first notification message to the second device via the first optical module, the method further includes: The first control module monitors a second link quality between the first device and the second device; Based on the second link quality satisfying the second application condition, the first control module generates a third notification message, where the third notification message is obtained based on the fourth AM; The first control module sends the third notification message to the second device via the first optical module, and notifies the second device through the third notification message of applying other FEC modes except the first FEC mode.

9. The method according to any one of claims 1 to 5 and 7, characterized in that: After the first control module sends the first notification message to the second device via the first optical module, the method further includes: The first control module receives a fourth notification message sent by the second device, the fourth notification message is obtained based on a fourth AM, and the fourth notification message is used to notify the application of other FEC modes except the first FEC mode; In a case where it is determined based on the fourth notification message to apply another FEC mode except the first FEC mode, the other FEC mode except the first FEC mode is applied.

10. The method according to any one of claims 1 to 9, characterized in that: Applying the first FEC mode includes applying the first FEC mode in a first receiving direction, or applying the first FEC mode in a first sending direction and in the first receiving direction, wherein the first receiving direction is a direction in which the first device receives data from the second device, and the first sending direction is a direction in which the first device sends data to the second device.

11. The method according to any one of claims 1-5, 7-10, characterized in that: The first optical module includes an optical digital signal processor oDSP chip, and the method further includes: The first control module sends a first switch instruction to the oDSP chip, where the first switch instruction is used to instruct the oDSP chip to implement the first FEC mode by adjusting the FEC encoding function.

12. The method according to any one of claims 1-5, 7-10, characterized in that: The first optical module includes a linear drive pluggable optical module LPO, and the method further includes: The first control module regulates the FEC encoding function to implement the application of the first FEC mode.

13. The method according to any one of claims 1 to 12, characterized in that: The first AM is also used to identify a physical coding sublayer PCS channel.

14. The method according to any one of claims 1 to 13, characterized in that: The method further comprises: The first optical module acquires a transmission rate corresponding to the first FEC mode; The first control module transmits a signal to the second device via the first optical module at the transmission rate.

15. The method according to any one of claims 1 to 14, characterized in that: The first control module sending the first notification message to the second device via the first optical module includes: The first control module sends a plurality of the first notification messages to the second device via the first optical module.

16. The method according to claim 5, characterized in that The first response message is sent by the second device after receiving the first notification message and sending n AMs to the first device, where n is an integer not less than 0, and the number of the first response message is at least one.

17. The method according to claim 16, characterized in that The method further comprises: Based on receiving m first response messages, the FEC encoding function is adjusted to apply the first FEC mode, where m is a positive integer and is less than or equal to the number of the first response messages.

18. The method according to any one of claims 1 to 17, characterized in that: The first notification message includes an FEC mode domain field, the FEC mode domain field is determined based on the first AM, the FEC mode domain field includes a request field, and a value of the request field is used to request application of the first FEC mode.

19. The method according to claim 18, characterized in that The FEC mode domain field is determined based on a unique padding UP field of the first AM, or the FEC mode domain field is determined based on a padding field used to form a 257-bit code block with multiple AMs, or the FEC mode domain field is determined based on a recovery field located after an AM group, wherein the multiple AMs and the AM group include the first AM.

20. The method according to any one of claims 5, 16 and 17, characterized in that: The first response message includes an FEC mode domain field, the FEC mode domain field is determined based on the second AM, the FEC mode domain field includes an answer field, and the value of the answer field is used to confirm the application of the first FEC mode.

21. The method according to claim 20, characterized in that The FEC mode domain field is determined based on the unique padding UP field of the second AM, or the FEC mode domain field is determined based on a padding field used to form a 257-bit code block with multiple AMs, or the FEC mode domain field is determined based on a recovery field located after an AM group, wherein the multiple AMs and the AM group include the second AM.

22. The method according to any one of claims 1 to 21, characterized in that: The first control module includes a physical layer PHY chip.

23. A forward error correction mode notification method, characterized in that: The method is applied to a second control module included in a second device, the second device also includes a second optical module, the second optical module is connected to the second control module and the first device respectively, and the method includes: The second control module receives a first notification message from the first device via the second optical module, where the first notification message is obtained based on a first alignment marker AM, and the first notification message is used to notify application of a first forward error correction FEC mode; In a case where it is determined based on the first notification message to apply the first FEC mode, the first FEC mode is applied.

24. The method according to claim 23, characterized in that In the case where it is determined based on the first notification message to apply the first FEC mode, before applying the first FEC mode, the method further includes: The second control module monitors a first link quality between the second device and the first device; Based on receiving the first notification message and the first link quality meeting a first application condition, the second control module determines to apply the first FEC mode.

25. The method according to claim 24, characterized in that The first link quality includes at least one of a bit error rate or a frame loss rate.

26. The method according to any one of claims 23 to 25, characterized in that: The method further comprises: When the first link quality meets the first application condition, the second control module generates a second notification message, where the second notification message is obtained based on the first AM; The second control module sends the second notification message to the first device via the second optical module, and notifies the first device of applying the first FEC mode through the second notification message.

27. The method according to any one of claims 23 to 25, characterized in that: The method further comprises: In the case of determining to apply the first FEC mode, the second control module sends a first response message to the first device via the second optical module, the first response message is obtained based on the second AM, and the first response message is used to confirm the application of the first FEC mode.

28. The method according to any one of claims 23 to 25, characterized in that: The method further comprises: In the case of determining not to apply the first FEC mode, the second control module sends a second response message to the first device via the second optical module, where the second response message is obtained based on the third AM and is used to refuse to apply the first FEC mode.

29. The method according to any one of claims 23 to 28, characterized in that: After applying the first FEC mode, the method further includes: The second control module receives a third notification message sent by the first device, where the third notification message is obtained based on the fourth AM, and the third notification message is used to notify the application of other FEC modes except the first FEC mode; In a case where it is determined based on the third notification message that another FEC mode other than the first FEC mode is to be applied, the other FEC mode other than the first FEC mode is applied.

30. The method according to any one of claims 23 to 28, characterized in that: After applying the first FEC mode, the method further includes: The second control module monitors a second link quality between the second device and the first device; Based on the second link quality satisfying the second application condition, the second control module generates a fourth notification message, where the fourth notification message is obtained based on the fourth AM; The second control module sends the fourth notification message to the first device via the second optical module, and notifies the first device of applying other FEC modes except the first FEC mode through the fourth notification message.

31. The method according to any one of claims 23 to 30, characterized in that: Applying the first FEC mode includes applying the first FEC mode in a second sending direction, or applying the first FEC mode in both the second sending direction and the second receiving direction, wherein the second sending direction is the direction in which the second device sends data to the first device, and the second receiving direction is the direction in which the second device receives data from the first device.

32. The method according to any one of claims 23 to 31, characterized in that: The second optical module includes an optical digital signal processor oDSP chip, and the applying the first FEC mode includes: The second control module sends a second switch instruction to the oDSP chip, where the second switch instruction is used to instruct the oDSP chip to implement the first FEC mode by adjusting the FEC decoding function.

33. The method according to any one of claims 23 to 31, characterized in that: The second optical module includes a linear drive pluggable optical module LPO, and the applying of the first FEC mode includes: The second control module regulates the FEC decoding function to implement the application of the first FEC mode.

34. The method according to any one of claims 23 to 33, characterized in that: The first AM is also used to identify a physical coding sublayer PCS channel.

35. The method according to any one of claims 23 to 34, characterized in that: The method further comprises: The second optical module acquires a transmission rate corresponding to the first FEC mode; The second control module receives a signal from the first device at the transmission rate via the second optical module.

36. The method according to any one of claims 23 to 35, characterized in that: The second control module receives a first notification message from the first device via the second optical module, including: The second control module receives a plurality of the first announcement messages from the first device via the second optical module.

37. The method according to claim 27, characterized in that The first response message is sent by the second device after receiving the first notification message and sending n AMs to the first device, where n is an integer not less than 0, and the number of the first response message is at least one.

38. The method according to any one of claims 23 to 37, characterized in that: The first notification message includes an FEC mode domain field, the FEC mode domain field is determined based on the first AM, the FEC mode domain field includes a request field, and a value of the request field is used to request application of the first FEC mode.

39. The method according to claim 38, characterized in that The FEC mode domain field is determined based on a unique padding UP field of the first AM, or the FEC mode domain field is determined based on a padding field used to form a 257-bit code block with multiple AMs, or the FEC mode domain field is determined based on a recovery field located after an AM group, wherein the multiple AMs and the AM group include the first AM.

40. The method according to claim 27 or 37, characterized in that The first response message includes an FEC mode domain field, the FEC mode domain field is determined based on the second AM, the FEC mode domain field includes an answer field, and the value of the answer field is used to confirm the application of the first FEC mode.

41. The method according to claim 40, characterized in that The FEC mode domain field is determined based on a unique padding UP field of the second AM, or the FEC mode domain field is determined based on a padding field used to form a 257-bit code block with multiple AMs, or the FEC mode domain field is determined based on a recovery field located after an AM group, wherein the multiple AMs and the AM group include the second AM.

42. The method according to any one of claims 23 to 41, characterized in that: The second control module includes a physical layer PHY chip.

43. A forward error correction mode notification device, characterized in that: The device is applied to a first control module included in a first device, the first device also includes a first optical module, the first optical module is connected to the first control module and the second device respectively, and the device includes: A transceiver module, used to perform operations related to receiving and / or sending in any of the methods described in claims 1-22; A processing module, used to perform other operations in the method described in any one of claims 1-22 except for operations related to receiving and / or sending.

44. A forward error correction mode notification device, characterized in that: The device is applied to a second control module included in a second device, the second device also includes a second optical module, the second optical module is connected to the second control module and the first device respectively, and the device includes: A transceiver module, used to perform the operations related to receiving and / or sending in any of the methods described in claims 23-42; A processing module, used to perform other operations in the method described in any one of claims 23-42 except for operations related to receiving and / or sending.

45. A chip, characterized in that: The chip includes: an interface module, and the interface module is used to execute the forward error correction mode notification method as described in any one of claims 1-42.

46. ​​A chip, characterized in that: The chip includes a processor, which is used to call and execute instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the forward error correction mode notification method as described in any one of claims 1-42.

47. An electronic device, characterized in that: The electronic device includes: a processor, the processor is coupled to a memory, the memory stores at least one program instruction or code, and the at least one program instruction or code is loaded and executed by the processor so that the electronic device implements the forward error correction mode notification method as described in any one of claims 1-42.

48. A communication system, characterized in that: The system includes a first device and a second device, the first device includes a first control module and a first optical module, the second device includes a second control module and a second optical module, the first optical module is connected to the first control module and the second optical module respectively, the second optical module is also connected to the second control module, the first control module is used to execute the forward error correction mode notification method as described in any one of claims 1-22, and the second control module is used to execute the forward error correction mode notification method as described in any one of claims 23-42.

49. A computer-readable storage medium, characterized in that The computer-readable storage medium stores at least one program instruction or code, and when the program instruction or code is loaded and executed by the computer's processor, the computer implements the forward error correction mode notification method as described in any one of claims 1-42.

Citation Information

Patent Citations

  • Physical layer state notification method, optical module, network device and network system

    CN114760544A

  • Data transmission method, apparatus, device and system, and readable storage medium

    CN115706622A

  • Error detection device and error detection method

    JP2022094099A

  • Alignment detection by full and partial FEC decoding

    US11601216B1

  • Error rate measuring apparatus and codeword position display method

    US20220197766A1