Auto-negotiation method and system, communication device and chip

By carrying a unified frame containing optical and electrical negotiation parameters during the self-negotiation process, the problem of inaccurate negotiation results between optical and electrical channels is solved, thereby improving communication quality.

CN121333480APending Publication Date: 2026-01-13HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410928497.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2026-01-13

AI Technical Summary

Technical Problem

In the existing technology, the self-negotiation process between different devices requires the separate implementation of the AN process for the optical channel and the telecommunication channel, which leads to inaccurate negotiation results and affects communication quality.

Method used

By carrying a unified frame containing optical and electrical negotiation parameters during the self-negotiation process, joint negotiation between optical and electrical channels is achieved, using a unified HCD truth table to fuse the OAN and EAN processes.

Benefits of technology

It improves the accuracy of the self-negotiation process, ensures the accuracy of the negotiation results of transmission parameters for optical and telecommunication channels, and enhances communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121333480A_ABST
    Figure CN121333480A_ABST
Patent Text Reader

Abstract

The invention discloses an auto-negotiation method and system, a communication device and a chip, and belongs to the technical field of communication. In the method, a first device acquires a first frame and sends the first frame to a second device. Wherein the first frame carries an optical negotiation parameter and an electrical negotiation parameter, the optical negotiation parameter is used for implementing an AN process of an optical channel, the electrical negotiation parameter is used for implementing an AN process of a telecommunication channel, and at least one of the optical channel or the telecommunication channel is included between the first device and the second device. According to the invention, the first frame carries the optical negotiation parameter and the electric negotiation parameter, so that the OAN process and the EAN process do not need to be implemented respectively, and fusion of the OAN process and the EAN process can be realized. The OAN process and the EAN process can use a unified HCD truth table and are relatively flexible, and the OAN process and the EAN process can reference each other, so that the accuracy of a negotiation result obtained by auto-negotiation is improved, and the communication quality between the first device and the second device is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to self-negotiation methods, systems, communication devices and chips. Background Technology

[0002] In the field of communication technology, different devices need to implement an auto-negotiation (AN) process to determine the transmission parameters used when communicating through a link. Summary of the Invention

[0003] This application provides an auto-negotiation method, system, communication device, and chip to implement the AN process between different devices. The technical solution provided in this application includes the following aspects.

[0004] Firstly, a self-negotiation method is provided. In this method, a first device acquires a first frame and sends the first frame to a second device. The first frame carries optical negotiation parameters and electrical negotiation parameters. The optical negotiation parameters are used to implement the AN procedure for the optical channel, and the electrical negotiation parameters are used to implement the AN procedure for the telecommunication channel. The communication between the first device and the second device includes at least one of an optical channel or a telecommunication channel.

[0005] Since the first frame carries both optical and electrical negotiation parameters, it allows for the implementation of both the optical channel's AN process (i.e., optical AN (OAN)) and the telecommunication channel's AN process (i.e., electrical AN (EAN)). Both the optical and telecommunication channels can be used to transmit the first frame. Therefore, this embodiment eliminates the need for separate OAN and EAN processes; instead, they can be integrated, allowing both processes to use a unified HCD truth table. Furthermore, the electrical negotiation parameters can be referenced during the OAN process to improve the accuracy of the optical channel's transmission parameters. Similarly, the optical negotiation parameters can be referenced during the EAN process to improve the accuracy of the telecommunication channel's transmission parameters. This improved accuracy of the negotiation results facilitates better communication quality between the first and second devices.

[0006] In one possible implementation, the first device and the second device include an optical channel and a telecommunication channel, which are coupled through an optical module. The first device acquiring the first frame includes: the first device generating the first frame, whereby optical negotiation parameters are obtained by the first device from the optical module. The first device sending the first frame to the second device includes: the first device sending the first frame to the second device through the optical module.

[0007] The first frame generated by the first device includes optical negotiation parameters and electrical negotiation parameters. The device between the first device and the second device (such as an optical module) can transmit the first frame directly (i.e., send it directly without processing after receiving it). The device between the first device and the second device does not need to have frame parsing capabilities, and the OAN and EAN processes can be implemented between the first device and the second device.

[0008] In one possible implementation, an optical channel is included between the first device and the second device. The first device acquires a first frame by: receiving a second frame from a third device, the second frame carrying electrical negotiation parameters, and an electrical channel being included between the first device and the third device; and the first device filling the second frame with the optical negotiation parameters to obtain the first frame.

[0009] The second frame sent by the third device to the first device carries electrical negotiation parameters. The first device fills the second frame with optical negotiation parameters to obtain the first frame (carrying electrical and optical negotiation parameters), and then sends the first frame to the second device, which is more flexible.

[0010] In one possible implementation, the padding position of the optical negotiation parameters in the second frame corresponds to the device identifier, which indicates the device corresponding to the optical negotiation parameters.

[0011] In this implementation, the device identifier represents the filling position of the optical negotiation parameters in the second frame (i.e., the position of the optical negotiation parameters in the first frame). This facilitates the second device's identification of the optical negotiation parameters based on the device identifier after receiving the first frame filled with the optical negotiation parameters. For example, if the optical negotiation parameters are parameters possessed by an optical module, and the device identifier indicates the optical module, then after receiving the first frame, the second device can identify the optical negotiation parameters based on the device identifier and determine that the optical negotiation parameters are parameters possessed by the optical module indicated by the device identifier. Optionally, the position of the electrical negotiation parameters in the first frame can also correspond to the device identifier (optionally, indicating the electrical device corresponding to the electrical negotiation parameters, such as a host chip, repeater, etc.), facilitating the second device's identification of the electrical negotiation parameters. Of course, in addition to identifying the optical and electrical negotiation parameters based on the device identifier, the second device can also identify the optical and electrical negotiation parameters based on the extended subframes or domain segments included in the first frame.

[0012] Optionally, the first frame may also carry a device identifier of the second device, so that the second device can determine that the first frame is a frame sent to the second device, or that the second device is a device designated by the first device through the first frame, thereby realizing the implementation of OAN and EAN procedures between the first device and any designated second device. The second device and the first device can be adjacent devices or non-adjacent devices.

[0013] In one possible implementation, a telecommunication channel is included between the first device and the second device. The first device acquires a first frame by: receiving a third frame from a fourth device, the third frame carrying optical negotiation parameters, and an optical channel being included between the first device and the fourth device; and the first device filling the third frame with the telecommunication negotiation parameters to obtain the first frame.

[0014] The third frame sent by the fourth device to the first device carries optical negotiation parameters. The first device fills the third frame with electrical negotiation parameters to obtain the first frame (carrying electrical and optical negotiation parameters), and then sends the first frame to the second device, which is more flexible.

[0015] In one possible implementation, an optical channel is included between the first device and the second device. The first device acquires the first frame by: receiving a fourth frame from the fifth device, the fourth frame carrying optical negotiation parameters and electrical negotiation parameters, and an electrical channel being included between the first device and the fifth device; the first device then corrects the optical negotiation parameters according to the electrical negotiation parameters to obtain the first frame.

[0016] The fourth frame sent by the fifth device to the first device carries optical negotiation parameters and electrical negotiation parameters. Since there is an optical channel between the first device and the second device, the first device corrects the optical negotiation parameters in the fourth frame and obtains the first frame (carrying electrical negotiation parameters and updated optical negotiation parameters). Then, the first device sends the first frame to the second device, which ensures the accuracy of the optical negotiation parameters in the first frame and thus improves the accuracy of the OAN process implemented for the optical channel between the first device and the second device.

[0017] In one possible implementation, a telecommunication channel is included between the first device and the second device. The first device acquires the first frame by: receiving a fifth frame from a sixth device, the fifth frame carrying optical negotiation parameters and electrical negotiation parameters, and an optical channel being included between the first device and the sixth device; the first device corrects the electrical negotiation parameters according to the optical negotiation parameters to obtain the first frame.

[0018] The fifth frame sent by the sixth device to the first device carries optical negotiation parameters and electrical negotiation parameters. Since there is a telecommunication channel between the first device and the second device, the first device corrects the electrical negotiation parameters in the fifth frame and obtains the first frame (carrying the optical negotiation parameters and the updated electrical negotiation parameters). Then, the first device sends the first frame to the second device, which ensures the accuracy of the electrical negotiation parameters in the first frame and thus improves the accuracy of the EAN process implemented for the telecommunication channel between the first device and the second device.

[0019] In one possible implementation, the first device differs from a standard linear-drive pluggable optics (LPO) module.

[0020] In cases where standard LPO optical modules lack frame generation, frame padding, and frame update capabilities—for example, if standard LPO optical modules do not support differential Manchester encoding (DME) coding / decoding—the first device differs from the standard LPO optical module to avoid auto-negotiation process failure. Optionally, the first device can be a host chip, another optical module besides the standard LPO optical module, or a repeater, etc. For standard LPO optical modules, frames can be transparently transmitted after receiving a frame (the first frame or other frames).

[0021] In one possible implementation, the first frame comprises a base subframe and an extended subframe. Optical negotiation parameters and electrical negotiation parameters reside in different segments of the same extended subframe; alternatively, the optical negotiation parameters and electrical negotiation parameters reside in different extended subframes.

[0022] The method of carrying optical and electrical negotiation parameters in the first frame is quite flexible; the position of carrying optical and electrical negotiation parameters in the first frame can be selected according to actual needs.

[0023] In one possible implementation, the first frame includes a frame identifier. The frame identifier is located in the base subframe; or, the frame identifier is located in at least one field in the message coding field or the unformatted coding field of the extended subframe.

[0024] The frame identifier is used to mark the first frame, so as to distinguish the first frame carrying optical negotiation parameters and electrical negotiation parameters from the frame carrying only optical negotiation parameters (without electrical negotiation parameters) and the frame carrying only electrical negotiation parameters (without optical negotiation parameters), so as to facilitate the normal transmission of the first frame from the first device to the second device and ensure the normal implementation of the auto-negotiation process.

[0025] Secondly, a self-negotiation device is provided, including an acquisition module and a transmission module, which can be applied to a first device.

[0026] The acquisition module is used to acquire a first frame, which carries optical negotiation parameters and electrical negotiation parameters. The optical negotiation parameters are used to implement the AN process of the optical channel, and the electrical negotiation parameters are used to implement the AN process of the telecommunication channel. The first device and the second device include at least one of the optical channel or the telecommunication channel.

[0027] The transmitting module is used to send the first frame to the second device.

[0028] In one possible implementation, the first device and the second device include an optical channel and a telecommunication channel, which are coupled via an optical module. An acquisition module is used to generate a first frame, with optical negotiation parameters obtained by the first device from the optical module. A transmission module is used to transmit the first frame to the second device via the optical module.

[0029] In one possible implementation, an optical channel is included between the first device and the second device. An acquisition module is configured to receive a second frame from a third device, the second frame carrying electrical negotiation parameters, and an electrical channel being included between the first device and the third device; the optical negotiation parameters are then filled into the second frame to obtain a first frame.

[0030] In one possible implementation, the padding position of the optical negotiation parameters in the second frame corresponds to the device identifier, which indicates the device corresponding to the optical negotiation parameters.

[0031] In one possible implementation, a telecommunication channel is included between the first device and the second device. An acquisition module is configured to receive a third frame from a fourth device, the third frame carrying optical negotiation parameters, and an optical channel is included between the first device and the fourth device; the first device fills the third frame with the telecommunication negotiation parameters to obtain a first frame.

[0032] In one possible implementation, an optical channel is included between the first device and the second device. An acquisition module is configured to receive a fourth frame from a fifth device, the fourth frame carrying optical negotiation parameters and electrical negotiation parameters, and an electrical channel is included between the first device and the fifth device; the optical negotiation parameters are corrected according to the electrical negotiation parameters to obtain the first frame.

[0033] In one possible implementation, a telecommunication channel is included between the first device and the second device. An acquisition module is configured to receive a fifth frame from a sixth device, the fifth frame carrying optical negotiation parameters and electrical negotiation parameters, and an optical channel is included between the first device and the sixth device; the electrical negotiation parameters are corrected based on the optical negotiation parameters to obtain the first frame.

[0034] In one possible implementation, the first device differs from the standard LPO.

[0035] In one possible implementation, the first frame comprises a base subframe and an extended subframe. Optical negotiation parameters and electrical negotiation parameters reside in different segments of the same extended subframe; alternatively, the optical negotiation parameters and electrical negotiation parameters reside in different extended subframes.

[0036] In one possible implementation, the first frame includes a frame identifier. The frame identifier is located in the base subframe; or, the frame identifier is located in at least one field in the message coding field or the unformatted coding field of the extended subframe.

[0037] Thirdly, a chip is provided, comprising an interface circuit and a control circuit. The interface circuit is used for transmitting and receiving data, and the control circuit is used for processing the data, so that a first device on which the chip is mounted implements the following auto-negotiation method:

[0038] The first device acquires a first frame, which carries optical negotiation parameters and electrical negotiation parameters. The optical negotiation parameters are used to implement the AN process of the optical channel, and the electrical negotiation parameters are used to implement the AN process of the telecommunication channel. The first device and the second device include at least one of the optical channel or the telecommunication channel. The first device sends the first frame to the second device.

[0039] In one possible implementation, the first device and the second device include an optical channel and a telecommunication channel, which are coupled through an optical module. The first device acquiring the first frame includes: the first device generating the first frame, whereby optical negotiation parameters are obtained by the first device from the optical module. The first device sending the first frame to the second device includes: the first device sending the first frame to the second device through the optical module.

[0040] In one possible implementation, an optical channel is included between the first device and the second device. The first device acquires a first frame by: receiving a second frame from a third device, the second frame carrying electrical negotiation parameters, and an electrical channel being included between the first device and the third device; and the first device filling the second frame with the optical negotiation parameters to obtain the first frame.

[0041] In one possible implementation, the padding position of the optical negotiation parameters in the second frame corresponds to the device identifier, which indicates the device corresponding to the optical negotiation parameters.

[0042] In one possible implementation, a telecommunication channel is included between the first device and the second device. The first device acquires a first frame by: receiving a third frame from a fourth device, the third frame carrying optical negotiation parameters, and an optical channel being included between the first device and the fourth device; and the first device filling the third frame with the telecommunication negotiation parameters to obtain the first frame.

[0043] In one possible implementation, an optical channel is included between the first device and the second device. The first device acquires the first frame by: receiving a fourth frame from the fifth device, the fourth frame carrying optical negotiation parameters and electrical negotiation parameters, and an electrical channel being included between the first device and the fifth device; the first device then corrects the optical negotiation parameters according to the electrical negotiation parameters to obtain the first frame.

[0044] In one possible implementation, a telecommunication channel is included between the first device and the second device. The acquisition of the first frame by the first device includes: the first device receiving a fifth frame from the sixth device, the fifth frame carrying optical negotiation parameters and electrical negotiation parameters, and an optical channel being included between the first device and the sixth device; the first device correcting the electrical negotiation parameters according to the optical negotiation parameters to obtain the first frame.

[0045] In one possible implementation, the first device differs from the standard LPO.

[0046] In one possible implementation, the first frame comprises a base subframe and an extended subframe. Optical negotiation parameters and electrical negotiation parameters reside in different segments of the same extended subframe; alternatively, the optical negotiation parameters and electrical negotiation parameters reside in different extended subframes.

[0047] In one possible implementation, the first frame includes a frame identifier. The frame identifier is located in the base subframe; or, the frame identifier is located in at least one field in the message coding field or the unformatted coding field of the extended subframe.

[0048] Fourthly, a communication device is provided, comprising a transceiver and a processor, wherein the transceiver performs a transmitting and receiving function, and the processor performs other functions besides the transmitting and receiving function, so that the communication device implements the auto-negotiation method provided in the first aspect or any possible implementation thereof.

[0049] Fifthly, a self-negotiation system is provided, the system including a first device and a second device, the first device being used to execute the self-negotiation method provided by the first aspect or any possible implementation of the first aspect.

[0050] It should be understood that the technical effects achieved by the technical solutions provided by the second to fifth aspects of this application and their corresponding possible implementations can be found in the above description of the technical effects achieved by the technical solutions provided by the first aspect and their corresponding possible implementations, and will not be repeated here. Attached Figure Description

[0051] Figure 1 A schematic diagram of a communication system provided in an embodiment of this application;

[0052] Figure 2 A schematic diagram of another communication system provided in the embodiments of this application;

[0053] Figure 3 A schematic diagram of yet another communication system provided in the embodiments of this application;

[0054] Figure 4 A schematic diagram of another communication system provided in the embodiments of this application;

[0055] Figure 5 This is a schematic diagram of the structure of an HRO optical module provided in an embodiment of this application;

[0056] Figure 6 This is a schematic diagram of another HRO optical module provided in an embodiment of this application;

[0057] Figure 7 This is a schematic diagram of the structure of an LPO optical module provided in an embodiment of this application;

[0058] Figure 8This is a schematic diagram of another LPO optical module provided in an embodiment of this application;

[0059] Figure 9 A schematic diagram of an AN frame provided in an embodiment of this application;

[0060] Figure 10 A schematic diagram of a basic page provided for an embodiment of this application;

[0061] Figure 11 A schematic diagram illustrating the value of a selection field provided in an embodiment of this application;

[0062] Figure 12 A schematic diagram of a next page provided for an embodiment of this application;

[0063] Figure 13 Another schematic diagram of the next page provided for an embodiment of this application;

[0064] Figure 14 Another schematic diagram of the next page provided for an embodiment of this application;

[0065] Figure 15 A flowchart of a self-negotiation method provided in an embodiment of this application;

[0066] Figure 16 This application provides a schematic diagram of interaction between different devices.

[0067] Figure 17 This is another schematic diagram illustrating the interaction between different devices provided in an embodiment of this application;

[0068] Figure 18 This is a schematic diagram of the structure of a self-negotiation device provided in an embodiment of this application. Detailed Implementation

[0069] The terminology used in the implementation section of this application is for the purpose of explaining specific embodiments of this application only, and is not intended to limit this application.

[0070] In a communication system, after a link is established between different devices, the Anchoring Parameter (AN) process can be implemented in full-duplex mode to determine the transmission parameters used when communicating over the link (e.g., transmitting information) and ensure communication quality. Taking the AN process between device A and device B as an example, for the transmission direction from device A to device B, device A sends the transmission parameters supported by device A to device B. Device B receives the transmission parameters supported by device A and, together with the transmission parameters supported by device B, determines the transmission parameters commonly supported by both device B and device A. These are then used as the transmission parameters for communication between device A and device B over the link. The transmission direction from device B to device A will not be elaborated further.

[0071] This application provides a communication system comprising at least two devices, wherein different devices among the at least two devices are capable of performing the AN process described above. In exemplary embodiments, the devices in the communication system provided by this application include, but are not limited to, the following.

[0072] The first type of device is the host chip, also known as the host chip within a device, which is connected to other devices via telecommunications channels. For example, host chips include, but are not limited to, switch chips or physical layer (PHY) chips, such as application-specific integrated circuit (ASIC) chips.

[0073] The second type of device is the optoelectronic interconnect device, which is used for optoelectronic conversion and is connected to other devices through optical channels, or to other devices through optical channels and telecommunication channels.

[0074] In some implementations, the optoelectronic interconnect device includes an optical module. Exemplarily, the types of optical modules include, but are not limited to, the following.

[0075] (1) Normal optical module.

[0076] (2) Optical digital signal processor (oDSP) module, also known as oDSP optical module.

[0077] (3) Linear-drive pluggable optics (LPO) modules, also known as LPO optical modules.

[0078] (4) Co-packaged optics (CPO) modules, also known as CPO optical modules. CPO modules are obtained by assembling optical engines (OE) and host chips together, for example, by assembling them together on a substrate to form a co-package of OE and host chips.

[0079] (5) Near package optics (NPO) modules, also known as NPO optical modules. By assembling the OE and the host chip on the same printed circuit board (PCB) respectively, a near package of OE and host chip can be formed, thus obtaining an NPO module.

[0080] (6) Half retimed optics (HRO) module, also known as HRO optical module. HRO module refers to retimed transmitter linear receiver.

[0081] (7) Linear receive optics (LRO) module, also known as LRO optical module.

[0082] (8) Transmitter retimed optics (TRO) module, also known as TRO optical module.

[0083] In other embodiments, the optoelectronic interconnect device includes active optical cables (AOCs), which are obtained by integrating optical modules and optical fibers. Optionally, the optoelectronic interconnect device in this embodiment can be linear (L). For example, the AOC is an LAOC.

[0084] The third type of device, other than the two types mentioned above, is also called a repeater. For example, the fourth type of device may be a retimer, repeater, redriver, or gearbox, etc. This application does not limit this type of device; the fourth type of device can be flexibly set according to actual needs.

[0085] In communication systems, the devices described above can be located in different equipment, such as switches or network interface cards (NICs). For ease of understanding, the following are some exemplary communication systems.

[0086] The first type of communication system, such as Figure 1 As shown, the first device includes a host chip 1 and an LPO optical module 1 connected via a telecommunications channel, and the second device includes a host chip 2 and an LPO optical module 2 connected via a telecommunications channel. The LPO optical module 1 and the LPO optical module 2 are connected via an optical channel. Figure 1 The examples shown are merely illustrative. For instance, at least one of the LPO optical modules 1 or LPO optical module 2 can be replaced with the HRO optical module described above.

[0087] The second type of communication system, such as Figure 2As shown, the first device includes a host chip 1 and an oDSP optical module connected via a telecommunications channel, and the second device includes a host chip 2 and an LPO optical module connected via a telecommunications channel. The oDSP optical module and the LPO optical module are connected via an optical channel, which is also referred to as mixed insertion of oDSP optical modules and LPO optical modules.

[0088] The oDSP optical module includes an oDSP. A first side of the oDSP is used to connect to the host chip 1; this first side can be referred to as the hostside. A second side of the oDSP is used to connect to the transmitter optical sub-assembly (TOSA) and / or the receiver optical sub-assembly (ROSA); this second side can be referred to as the mediaside. This application does not limit the devices included in the hostside and mediaside. The first side is used to communicate with the host chip 1 via a telecommunications channel. For example, the serializer / deserializer (serdes) located on the first side of the oDSP communicates with the Serdes located on the host chip 1. Figure 2 The Serdes (not shown) communicates via a telecommunication channel. The second side is used to communicate with the TOSA / ROSA via a telecommunication channel. In one implementation, the TOSA / ROSA is located in the oDSP optical module. The TOSA / ROSA communicates with the LPO optical module of the second device via an optical channel. Compared to the oDSP optical module, the LPO optical module eliminates the oDSP. Because the LPO optical module eliminates the oDSP, the host chip 2 is required to perform optoelectronic channel compensation.

[0089] The third type of communication system, such as Figure 3 As shown, the first device includes a host chip 1, a retimer, and an LPO optical module connected in sequence via a telecommunications channel. The second device includes a CPO module, which includes an OE and a host chip 2. The LPO optical module and the CPO module are connected via an optical channel. This situation is also called mixed insertion of LPO optical modules and CPO modules.

[0090] The fourth type of communication system, such as Figure 4 As shown, the first device includes a host chip 1 and an oDSP optical module 1 connected via a telecommunication channel, and the second device includes a host chip 2 and an oDSP optical module 2 connected via a telecommunication channel. The oDSP optical module 2 is connected to the oDSP optical module 1 via an optical channel. The structures of the oDSP optical module 1 and the oDSP optical module 2 can be found in the description of the oDSP optical module in the second type of communication system above, and will not be repeated here.

[0091] Below, in conjunction with Figures 5 to 8The structure of several optoelectronic interconnect devices is illustrated with examples.

[0092] The first structure is an oDSP optical module, which includes an internal microcontroller unit (MCU) and an oDSP. The oDSP optical module can participate in the methods provided in the embodiments of this application through the MCU and the oDSP.

[0093] The second structure is the HRO optical module.

[0094] In some implementations, see Figure 5 The HRO optical module supports the inclusion of a lite digital signal processor (DSP), analog signal processor (ASP), or clock and data recovery (CDR) in any transmission direction. Therefore, the HRO optical module includes, but is not limited to: a lite DSP / ASP / CDR, an MCU, a continuous time linear equalizer (CTLE), a driver (DRV), a trans-impedance amplifier (TIA), a laser, a modulator, a photodetector (PD), a multiplexer (MUX), and a demultiplexer (DEMUX). The HRO optical module can participate in the methods provided in the embodiments of this application through a lite DSP / ASP / CDR.

[0095] In other implementations, see Figure 6 The HRO optical module supports a CDR equipped with a DME transceiver and a MUX / DEMUX in any transmission direction. Therefore, the HRO optical module includes, but is not limited to: a CDR (equipped with a DME transceiver and MUX / DEMUX), an MCU, a CTLE, a DRV, a TIA, a laser, a modulator, a PD, a MUX, and a DEMUX. The HRO optical module can participate in the methods provided in the embodiments of this application through the CDR (equipped with a DME transceiver and MUX / DEMUX).

[0096] The third structure is the standard LPO optical module, such as... Figure 7As shown, the standard LPO optical module includes, but is not limited to: MCU, CTLE, DRV, TIA, laser, modulator, PD, MUX, and DEMUX. This standard LPO optical module connects to the control system via the common management interface specification (CMIS) and participates in the methods provided in the embodiments of this application according to the control system's control functions.

[0097] The CMIS interface is an out-of-band interface, meaning it is not part of the network interface. Besides the CMIS interface, embodiments of this application may also employ peripheral component interconnect express (PCIe), management data input / output (MDIO), or inter-integrated circuit (IIC). 2 C) and other interfaces are not limited here.

[0098] For example, the control system includes an off-chip processor (e.g., a central processing unit (CPU)) or a main control board, implemented in software, which is more flexible. Alternatively, the control system includes a host chip, such as an MCU integrated in the host chip; this application embodiment does not limit this.

[0099] The fourth structure improves the LPO optical module, such as... Figure 8 As shown, the improved LPO optical module in Figure 7 Based on the standard architecture shown, firmware, such as a digital / analog signal processing chip, is added as a co-processor for the MCU, forming an MCU with the digital / analog signal processing chip. This allows the MCU with the digital / analog signal processing chip to participate in the methods provided in the embodiments of this application, reducing reliance on software. For example, the digital / analog signal processing chip is... Figure 8 The Lite CDR & DME transceiver shown.

[0100] For example, the digital / analog signal processing chip can be integrated into the MCU, or it can be located in at least one of the CTLE or Laser and called by the MCU. The embodiments of this application do not limit the deployment location of the digital / analog signal processing chip in the LPO optical module.

[0101] For example, the fourth structure is illustrated using an improved LPO optical module. For CPO or NPO modules, the CPO or NPO module may also include an MCU equipped with a digital / analog signal processing chip, and the MCU with the digital / analog signal processing chip participates in the method provided in the embodiments of this application.

[0102] In communication systems, the links between different devices include telecommunication channels and optical channels. The AN process for telecommunication channels is called electrical AN (EAN), and the AN process for optical channels is called optical AN (OAN). In related technologies, the EAN and OAN processes are implemented based on the AN frame, as detailed below.

[0103] See Figure 9 , Figure 9 The diagram illustrates the frame structure of an AN frame. An AN frame includes a delimiter, a DME page, and pseudo-random data. The delimiter is also known as the AN frame header or the Manchester violation delimiter. A DME page includes at least a base page and may also include a next page (NP).

[0104] The structure of the base page can be found in [reference]. Figure 10 D0 to D47 represent 48 valid data points. D0 to D4 (i.e., S0 to S4) form the selector field, and the selector field takes the first value, for example, [example value would be inserted here]. Figure 11 The value shown is 00001 (representing 1). D15 is the NP field, which indicates whether a next page exists after the base page. Furthermore, "after the base page" means immediately following the base page. When the value of D15 (i.e., the NP field) in the base page is 1, it indicates that a next page exists after the base page.

[0105] In one example, the next page is of type message. The structure of the next page for message type can be found in [link to relevant documentation]. Figure 12D0 to D10 are message code fields, and the value of the message code field is the second value. D16 to D47 are unformatted code fields.

[0106] In another example, the next page is of type unformatted. The structure of an unformatted next page can be found in [link to example]. Figure 13 D0 to D10 are unformatted code fields, and the value of an unformatted code field is the third value. D16 to D47 are also unformatted code fields.

[0107] In yet another example, the next page is a new message type; the structure of the next page for a new message type can be found here. Figure 14 D0 to D10 are message code fields. The message code field takes the fourth value, which is different from the second value mentioned above. For example, the fourth value is 000 0000 0010 (representing 2).

[0108] Optionally, in Figure 12 , Figure 13 or Figure 14 In the next page shown, D16 to D31 are extended technology ability fields (TAFs), D32 to D43 are also extended TAFs, and D44 to D47 are extended forward error correction (FEC) fields. When at least one of D41 or D42 in the base page is 1, it indicates that the next page includes an extended capability field, such as the extended TAF or extended FEC field mentioned above.

[0109] When implementing the EAN process using the AN frame described above, D21 to D43 (i.e., A0 to A22) in the base page carry the interface capabilities of electrical devices such as host chips and repeaters. In other words, the EAN process uses EAN frames, and the base page included in the EAN frame carries the interface capabilities of the electrical devices. For example, the interface capabilities of the electrical devices include rate parameters related to transmission processes such as backplane reach (KR, less than 1 meter) or cable reach (CR, less than 10 meters). For instance, rate parameters related to KR or CR include 400GBASE-CR8 / KR8, where 400GBASE indicates support for a transmission rate of 400 gigabit per second (Gbps), and 8 represents 8 channels.

[0110] When implementing the OAN process using the AN frame described above, D21 to D43 (i.e., A0 to A22) in the base page carry the interface capabilities of optical devices such as optical modules. In other words, the OAN process uses OAN frames, and the base page included in the OAN frame carries the interface capabilities of the optical devices. For example, the interface capabilities of optical devices include rate parameters related to transmission processes such as short reach (SR, 100 meters), data center reach (DR, 500 meters), long reach or fiber reach (FR, 2 kilometers), long reach (LR, 10 kilometers), or extended reach (ER, 40 kilometers). For example, rate parameters related to DR include 1.6TABSE-DR8, where 1.6T indicates a supported transmission rate of 1.6 terabit per second (Tbps), and 8 represents 8 channels.

[0111] Because EAN frames require D21 to D43 in the base page to carry the interface capabilities of electrical devices, while OAN frames require D21 to D43 in the base page to carry the interface capabilities of optical devices, in related technologies, the EAN process can only be implemented based on the EAN frame alone, and the OAN process can only be implemented based on the OAN frame alone; otherwise, D21 to D43 in the base page will conflict. In other words, the EAN process and the OAN process are implemented separately. For the same device, when participating in the EAN process, the device's AN state machine needs to use one highest common denominator (HCD) truth table, while when participating in the OAN process, the device's AN state machine needs to use another HCD truth table.

[0112] Furthermore, in related technologies, EAN frames can only be transmitted on the telecommunication channel, while OAN frames can only be transmitted on the optical channel, which is somewhat limiting. For example, host chip 1 sends EAN frame 1 to oDSP optical module 1 to implement the EAN process for the telecommunication channel between host chip 1 and oDSP optical module 1. Then, EAN frame 1 terminates at oDSP optical module 1, and oDSP optical module 1 sends an OAN frame to oDSP optical module 2 to implement the OAN process for the optical channel between oDSP optical module 1 and oDSP optical module 2. Next, the OAN frame terminates at oDSP optical module 2, and oDSP optical module 2 sends EAN frame 2 to host chip 2 to implement the EAN process for the telecommunication channel between oDSP optical module 2 and host chip 2. Wherein, Figure 4 EAN frame 1, OAN frame and EAN frame 2 are not shown.

[0113] This application provides a self-negotiation method for integrating EAN and OAN processes. Figure 15 As shown, the method includes the following steps 1501 and 1502.

[0114] Step 1501: The first device acquires a first frame. The first frame carries optical negotiation parameters and electrical negotiation parameters. The optical negotiation parameters are used to implement the AN process of the optical channel, and the electrical negotiation parameters are used to implement the AN process of the telecommunication channel. The first device and the second device include at least one of the optical channel or the telecommunication channel.

[0115] Step 1502: The first device sends the first frame to the second device.

[0116] Since the first frame carries both optical and electrical negotiation parameters, it allows for the implementation of both the optical channel's AN process (OAN process) and the telecommunication channel's AN process (EAN process). Both the optical and telecommunication channels can be used to transmit the first frame. Therefore, unlike related technologies, this embodiment does not require separate implementation of the OAN and EAN processes. Instead, the OAN and EAN processes can complement each other, using a unified HCD truth table. For example, electrical negotiation parameters can be referenced during the OAN process to improve the accuracy of the optical channel's transmission parameters negotiated during the OAN process. Similarly, optical negotiation parameters can be referenced during the EAN process to improve the accuracy of the telecommunication channel's transmission parameters negotiated during the EAN process.

[0117] For example, optical negotiation parameters include, but are not limited to, the type of optical module, the capabilities supported by the interface of the optical module, the transmission distance supported by the interface of the optical module, and so on. Capabilities are, for example, rate parameters, as detailed in the examples above, and will not be repeated here. Transmission distances are, for example, SR, DR, FR, LR, or ER as mentioned above.

[0118] Optionally, the negotiated parameters include, but are not limited to, the rate parameters and forward error correction (FEC) capability parameters exemplified above. For example, the FEC capability parameter could be 25G RS-FEC, where 25G represents 25Gbps and RS represents Reed-Solomon.

[0119] exist Figure 1 In the communication system shown, the first device is host chip 1 or host chip 2, and the second device is any device different from the first device, such as LPO optical module 1, LPO optical module 2 or HRO optical module, etc.

[0120] exist Figure 2 In the communication system shown, the first device is host chip 1, oDSP optical module or host chip 2, and the second device is any device different from the first device.

[0121] exist Figure 3 In the communication system shown, the first device is the host chip 1, the retimer, or the CPO module, and the second device is any device different from the first device.

[0122] exist Figure 4 In the communication system shown, the first device and the second device are any different devices from the following four devices: host chip 1, oDSP optical module 1, oDSP optical module 2 or host chip 2.

[0123] The above descriptions of the first and second devices are illustrative and not intended to limit the scope of the first and second devices. In the embodiments of this application, the first device can be any device different from the standard LPO optical module, and the second device is located on the same link as the first device, and the second device can be any device different from the first device.

[0124] In this embodiment, the first frame is an improved AN frame. Exemplarily, the improved AN frame carries a frame identifier indicating that the current frame (i.e., the first frame) is an improved AN frame, meaning it is an AN frame capable of carrying optical negotiation parameters and electrical negotiation parameters, unlike OAN frames and EAN frames in related technologies. Of course, the first frame may not carry a frame identifier. For example, in this embodiment, the first and second devices can be configured such that the first frame transmitted by both devices by default is an improved AN frame.

[0125] In an exemplary embodiment, the first frame includes a base subframe and an extended subframe, to carry a frame identifier through at least one of the base subframes or extended subframes. For example, embodiments of this application provide at least the following two carrying methods.

[0126] In the first method, the base subframe carries the improved base page, which in turn carries the frame identifier. That is, the frame identifier is located within the base subframe.

[0127] For example, the improved base page structure can still be found in [reference]. Figure 10 To ensure compatibility with the current protocol, the selector field in the improved base page takes a fifth value, which differs from the first value mentioned above (e.g., 00001 represents 1). The fifth value is the frame identifier.

[0128] In the second carrying method, the extended subframe is used to carry the improved next page, which carries the frame identifier. The frame identifier is located in at least one field in the message coding field or the unformatted coding field of the extended subframe.

[0129] In one example, the improved next page is of type message; the structure of the improved next page can be found in [reference needed]. Figure 12 or Figure 14 To ensure compatibility with the current protocol, the message code field in the improved next page takes a sixth value, which differs from both the second and fourth values ​​mentioned above (e.g., 000 00000010 represents 2). The sixth value is the frame identifier. In other words, the frame identifier is located in the message coding field of the extended subframe.

[0130] In another example, the improved next page is of type unformatted; the structure of the improved next page can be found in [reference needed]. Figure 13 To ensure compatibility with the current protocol, the unformatted code field in the improved next page takes the seventh value, which differs from the third value mentioned above, and may also differ from the sixth value mentioned above. The seventh value is the frame identifier. That is, the frame identifier is located in the unformatted coding field of the extended subframe.

[0131] In yet another example, the improved next page includes at least one next page of the message type (see [link]). Figure 12 or Figure 14 ) and at least one unformatted type next page (see Figure 13 This application does not limit the number of next pages of each type, nor does it limit the order of next pages of different types. For example, the next page of the message type is denoted as A, and the next page of the unformatted type is denoted as B. The improved next page can include various orders such as ABAB, AABB, ABBA, or AAAB, which will not be listed here. Exemplarily, in the improved next page, any order in which B is after A is acceptable. Optionally, in this example, the frame identifier includes the sixth value carried by the next page of the message type and the seventh value carried by the next page of the unformatted type, that is, the combination of the sixth value and the seventh value serves as the frame identifier, and the frame identifier is located in the message coding field and the unformatted coding field of the extended subframe.

[0132] As explained above, the first frame carries optical negotiation parameters and electrical negotiation parameters. For example, since the first frame includes a base subframe and an extended subframe, the optical negotiation parameters and electrical negotiation parameters can be located in different segments of the same extended subframe, or they can be located in different extended subframes.

[0133] For example, the first frame includes a base page and at least one improved next page. The improved next page carries a frame identifier, optical negotiation parameters, and electrical negotiation parameters, which are located in different segments of the improved next page.

[0134] For example, the first frame includes a base page and at least two improved next pages. The first improved next page carries a frame identifier and optical negotiation parameters, while the second improved next page carries a frame identifier and electrical negotiation parameters. Alternatively, the first improved next page carries a frame identifier and electrical negotiation parameters, while the second improved next page carries a frame identifier and optical negotiation parameters. Exemplarily, the frame identifier values ​​carried by the different improved next pages can be the same or different. Alternatively, the first improved next page carries a frame identifier and optical negotiation parameters, while the second improved next page only carries electrical negotiation parameters (without a frame identifier). Still another possibility is that the first improved next page carries a frame identifier and electrical negotiation parameters, while the second improved next page only carries optical negotiation parameters (without a frame identifier).

[0135] The following is an example illustrating the acquisition and transmission process of the first frame.

[0136] In the first scenario, the first frame is obtained solely through the generation process. For example, the first frame generated by the first device carries a frame identifier (for example only), as well as optical and electrical negotiation parameters. After the first device sends the first frame to the second device, the first frame is transparently transmitted to the second device by at least one intermediate device between the first and second devices based on the frame identifier (for example only). Transparent transmission of the first frame means that after receiving the first frame, no processing is performed on it; the first frame is transmitted directly.

[0137] In the first example, the first device is a device other than the optical module. The first device and the second device are connected by an optical channel and a telecommunication channel, which are coupled through the optical module. At least one intermediate device mentioned above may include the optical module. The first device acquiring the first frame includes: the first device generating the first frame, whereby the optical negotiation parameters are obtained by the first device from the optical module. For example, the first device obtains the optical negotiation parameters from the optical module through a control interface (including but not limited to a CMIS interface). Additionally, the electrical negotiation parameters may include the first device's own electrical negotiation parameters, or they may include the electrical negotiation parameters obtained by the first device through the control interface. Correspondingly, the first device sending the first frame to the second device includes: the first device sending the first frame to the second device through the optical module, whereby the optical module is used to transparently transmit the first frame.

[0138] See Figures 1 to 4 Taking the transmission direction from the first device to the second device as an example, the first device and the second device include, but are not limited to, the following examples.

[0139] exist Figure 1In the communication system shown, the first device is host chip 1, and the second device is LPO optical module 2 or host chip 2. The electrical negotiation parameters included in the first frame are the electrical negotiation parameters of host chip 1, and the optical negotiation parameters included in the first frame are the optical negotiation parameters obtained by host chip 1 from LPO optical module 1 through the control interface.

[0140] exist Figure 2 In the communication system shown, the first device is host chip 1, and the second device is either an LPO optical module or host chip 2. The electrical negotiation parameters included in the first frame are the electrical negotiation parameters of host chip 1, and the optical negotiation parameters included in the first frame are the optical negotiation parameters obtained by host chip 1 from the oDSP optical module through the control interface.

[0141] exist Figure 3 In the communication system shown, the first device is either a host chip 1 or a retimer (one type of repeater), and the second device is a CPO module. The electrical negotiation parameters included in the first frame are the respective electrical negotiation parameters of the host chip 1 and the retimer, and the optical negotiation parameters included in the first frame are the optical negotiation parameters obtained by the host chip 1 or the retimer from the LPO optical module through the control interface.

[0142] exist Figure 4 In the communication system shown, the first device is host chip 1, and the second device is oDSP optical module 2 or host chip 2. The electrical negotiation parameters included in the first frame are the electrical negotiation parameters of host chip 1, and the optical negotiation parameters included in the first frame are the optical negotiation parameters obtained by host chip 1 from oDSP optical module 1 through the control interface.

[0143] In the second example, the first device is an optical module other than a standard LPO optical module. An optical channel and a telecommunications channel are connected between the first and second devices, coupled via an optical module. At least one intermediate device may include an optical module different from the first device. The first device acquiring the first frame includes: the first device generating the first frame, with electrical negotiation parameters obtained by the first device. For example, the first device obtains the electrical negotiation parameters through a control interface (including but not limited to a CMIS interface). Additionally, the optical negotiation parameters may include the first device's own optical negotiation parameters. Correspondingly, the first device sending the first frame to the second device includes: the first device sending the first frame to the second device via an optical module, whereby the optical module is used for transparent transmission of the first frame.

[0144] See Figure 2 and Figure 4 Taking the transmission direction from the first device to the second device as an example, the first device and the second device include, but are not limited to, the following examples.

[0145] exist Figure 2In the communication system shown, the first device is an oDSP optical module, and the second device is the host chip 2. The optical negotiation parameters included in the first frame are the optical negotiation parameters of the oDSP optical module itself, and the electrical negotiation parameters included in the first frame are the electrical negotiation parameters obtained by the oDSP optical module from the host chip 1 through the control interface.

[0146] exist Figure 4 In the communication system shown, the first device is the oDSP optical module 1, and the second device is the host chip 2. The optical negotiation parameters included in the first frame are the optical negotiation parameters of the oDSP optical module 1 itself, and the electrical negotiation parameters included in the first frame are the electrical negotiation parameters obtained by the oDSP optical module 1 from the host chip 1 through the control interface.

[0147] In the second scenario, the first frame is obtained through a generation and padding process. For example, a device other than the first and second devices generates an improved AN frame. This improved AN frame carries a frame identifier (for example only) and at least one of optical or electrical negotiation parameters. After the other device sends the improved AN frame to the first device, the first device determines, based on the frame identifier (for example only), that the improved AN frame can carry both optical and electrical negotiation parameters. Therefore, it pads the improved AN frame with at least one of these parameters to obtain the first frame, thus ensuring that the first frame carries both optical and electrical negotiation parameters. Because the first device needs to have padding capabilities, it differs from a standard LPO optical module. The first device then sends the first frame to the second device. If there are no intermediate devices between the first and second devices, the first device directly sends the first frame to the second device. If there is at least one intermediate device between the first device and the second device, then for any intermediate device, it can either transmit the first frame transparently, fill the first frame with optical or electrical negotiation parameters, and then send the filled first frame to the second device, or update the optical or electrical negotiation parameters in the first frame and then send the updated first frame to the second device. The update process is detailed in the third case below and will not be repeated here. The operations (transmission, filling, or updating) performed by different intermediate devices can be the same or different.

[0148] In the third example, an optical channel exists between the first and second devices. The first device acquires a first frame by: receiving a second frame from a third device, the second frame carrying electrical negotiation parameters, and an electrical channel existing between the first and third devices; and the first device filling the second frame with the optical negotiation parameters to obtain the first frame. The third device corresponds to the other devices in the second case, and the second frame corresponds to the improved AN frame in the second case.

[0149] See Figures 2 to 4Taking the transmission direction from the first device to the second device as an example, the first device, the second device, and the third device include, but are not limited to, the following examples.

[0150] exist Figure 2 In the communication system shown, the third device is host chip 1, the first device is an oDSP optical module, and the second device is either an LPO optical module or host chip 2. The second frame sent by host chip 1 to the oDSP optical module includes the electrical negotiation parameters of host chip 1 itself, and the oDSP optical module fills the second frame with its own optical negotiation parameters.

[0151] exist Figure 3 In the communication system shown, the third device is host chip 1, the first device is a retimer, and the second device is a CPO module. The second frame sent by host chip 1 to the retimer includes the host chip 1's own electrical negotiation parameters. The retimer fills the second frame with its own electrical negotiation parameters and the optical negotiation parameters of the LPO module, which are obtained by the retimer from the LPO module through the control interface.

[0152] Or, in Figure 3 In the communication system shown, the second frame sent by host chip 1 to the retimer may include the host chip 1's own electrical negotiation parameters and the LPO module's optical negotiation parameters. These optical negotiation parameters are obtained by host chip 1 from the LPO module via the control interface. The retimer fills the second frame with its own electrical negotiation parameters. While this example is not specifically related to the third example, it is a supplementary example to the second scenario.

[0153] exist Figure 4 In the communication system shown, the third device is host chip 1, the first device is oDSP optical module 1, and the second device is either oDSP optical module 2 or host chip 2. The second frame sent by host chip 1 to oDSP optical module 1 includes the electrical negotiation parameters of host chip 1 itself, and oDSP optical module 1 fills the second frame with its own optical negotiation parameters.

[0154] In the fourth example, a telecommunication channel is included between the first device and the second device. The first device acquires the first frame by: receiving a third frame from the fourth device, the third frame carrying optical negotiation parameters, and an optical channel being included between the first and fourth devices; and the first device filling the third frame with the telecommunication negotiation parameters to obtain the first frame. The fourth device corresponds to the other devices in the second case, and the third frame corresponds to the improved AN frame in the second case.

[0155] Taking the transmission direction from the second device to the first device as an example, in Figure 3In the communication system shown, the fourth device is host chip 2, the first device is the retimer, and the second device is host chip 1. The third frame sent by host chip 2 to the LPO optical module includes the optical negotiation parameters of the CPO module, and the retimer fills the third frame with its own electrical negotiation parameters.

[0156] Taking the transmission direction from the first device to the second device as an example, in Figure 4 In the communication system shown, the fourth device is oDSP optical module 1, the first device is oDSP optical module 2, and the second device is host chip 2. The third frame sent by oDSP optical module 1 to oDSP optical module 2 includes the optical negotiation parameters of oDSP optical module 1. The retimer fills the third frame with the optical negotiation parameters of oDSP optical module 2 itself and the electrical negotiation parameters of the repeater. The repeater is located between oDSP optical module 2 and host chip 2. Figure 4 (Not shown in the image), the electrical negotiation parameters are obtained from the repeater by the oDSP optical module 2 through the control interface.

[0157] As mentioned earlier, in the second scenario, the first device needs to have a filling function. For example, the filling methods include, but are not limited to, the following two.

[0158] In the first filling method, the position of the parameter to be filled by the first device corresponds to the device identifier. The device identifier indicates the device corresponding to the parameter, which is the device that possesses that parameter. For example, the position of the parameter to be filled corresponding to the device identifier includes: the parameter to be filled and the device identifier being located in the same extended subframe, such as the same nextpage. Embodiments of this application can configure the first device so that it can know the device identifier indicating the device, thereby completing the filling according to the first filling method.

[0159] For example, in the third example, the first device fills the second frame with optical negotiation parameters. The filling position of the optical negotiation parameters in the second frame corresponds to the device identifier, which indicates the device corresponding to the optical negotiation parameters. For example, if the optical negotiation parameters are parameters of an LPO optical module, then the optical negotiation parameters correspond to an LPO optical module, and the LPO optical module possesses those optical negotiation parameters.

[0160] For example, in the fourth example, the first device fills the third frame with electrical negotiation parameters. The filling position of the electrical negotiation parameters in the third frame corresponds to the device identifier, and the device identifier indicates the device corresponding to the electrical negotiation parameters.

[0161] For example, device identifiers can take many forms, including but not limited to device identifiers, device addresses, or pointers. This application does not limit the form of device identifiers, as long as they can uniquely indicate the first device in the link (or in one transmission direction of the link).

[0162] For example, the device is identified as a pointer, in order to Figure 4 Taking the communication system shown as an example, the first transmission direction is from the first device to the second device, and the second transmission direction is from the second device to the first device. In Example A, in the first transmission direction, the first pointers of host chip 1, oDSP optical module 1, oDSP optical module 2, and host chip 2 are 0, 1, 2, and 3 respectively; in the second transmission direction, the second pointers of host chip 2, oDSP optical module 2, oDSP optical module 1, and host chip 1 are 0, 1, 2, and 3 respectively. In Example B, in the first transmission direction, the first pointers of host chip 1, oDSP optical module 1, oDSP optical module 2, and host chip 2 are 0, 1, 2, and 3 respectively; in the second transmission direction, the second pointers of host chip 2, oDSP optical module 2, oDSP optical module 1, and host chip 1 are 4, 5, 6, and 7 respectively.

[0163] Based on Example A, and referring to the third example above... Figure 4 The example of the communication system shown illustrates the first filling method. In this example, the third device is host chip 1, the first device is oDSP optical module 1, and the second device is either oDSP optical module 2 or host chip 2. The second frame sent by host chip 1 to oDSP optical module 1 includes a base page, an extended subframe 1 (next page 1), and an extended subframe 2 (next page 2). Extended subframe 1 carries the pointer 0 of host chip 1 in the first transmission direction and the electrical negotiation parameters of host chip 1 itself. Extended subframe 2 carries the pointer 1 of oDSP optical module 1 in the first transmission direction. When oDSP optical module 1 fills, since pointer 1 is located in extended subframe 2, oDSP optical module 1 fills the extended subframe 2 included in the second frame with its own optical negotiation parameters.

[0164] In the second filling method, when no device identifier is available, the position of the parameter to be filled by the first device is a reference position. The reference position is a fixed position corresponding to the device (i.e., the device with the parameter). For example, the fixed position can be an extended subframe or a segment within an extended subframe. Embodiments of this application can configure the first device so that it can know the fixed position corresponding to the device, thereby completing the filling according to the second filling method.

[0165] For example, in the third example, the first device fills the second frame with optical negotiation parameters, and the reference position of the optical negotiation parameters in the second frame is the fixed position corresponding to the device corresponding to the optical negotiation parameters. As another example, in the fourth example, the first device fills the third frame with electrical negotiation parameters, and the reference position of the electrical negotiation parameters in the third frame is the fixed position corresponding to the device corresponding to the electrical negotiation parameters.

[0166] The third example above is for Figure 4 The example of the communication system shown illustrates the second filling method. In this example, the third device is host chip 1, the first device is oDSP optical module 1, and the second device is either oDSP optical module 2 or host chip 2. The second frame sent by host chip 1 to oDSP optical module 1 includes a base page, next page 1, and next page 2. The fixed position corresponding to host chip 1 is next page 1 (or the X domain segment in next page 1), and the fixed position corresponding to host chip 1 carries the host chip 1's own optical negotiation parameters. The fixed position corresponding to oDSP optical module 1 is next page 2 (or the Y domain segment in next page 1). When oDSP optical module 1 fills, it fills the next page 2 (or the Y domain segment in next page 1) with its own optical negotiation parameters.

[0167] In the third scenario, the first frame is obtained through a generation and update process. For example, a device other than the first and second devices generates an improved AN frame. This improved AN frame carries a frame identifier (for example only), as well as optical and electrical negotiation parameters. After the other device sends the improved AN frame to the first device, the first device determines, based on the frame identifier (for example only), that the improved AN frame can carry optical and electrical negotiation parameters. Therefore, it updates (e.g., corrects) at least one of the optical or electrical negotiation parameters in the improved AN frame to obtain the first frame, which then carries both optical and electrical negotiation parameters. For example, the parameters updated by the first device include parameters related to the channel between the first and second devices. For instance, if there is an optical channel between the first and second devices, the first device updates the optical negotiation parameters in the improved AN frame. Similarly, if there is a telecommunication channel between the first and second devices, the first device updates the electrical negotiation parameters in the improved AN frame. Optionally, the channel between the first and second devices can be the entire channel between them or a portion of the channel. For example, if there is at least one intermediate device between the first device and the second device, then part of the channel is, for example, the channel between the first device and an adjacent intermediate device. An adjacent intermediate device refers to an intermediate device located downstream of and adjacent to the first device in the transmission direction of the first frame. Since the first device needs to have update functionality, it differs from a standard LPO optical module. Afterward, the first device sends the first frame to the second device. The transmission method can be found in the explanation of the second case above, and will not be repeated here.

[0168] In the fifth example, an optical channel is included between the first device and the second device. The first device acquires the first frame by: receiving a fourth frame from the fifth device, the fourth frame carrying optical negotiation parameters and electrical negotiation parameters, and an electrical channel being included between the first and fifth devices; the first device corrects the optical negotiation parameters according to the electrical negotiation parameters to obtain the first frame. The fifth device corresponds to the other devices in the third case, and the fourth frame corresponds to the improved AN frame in the third case.

[0169] See Figures 2 to 4 Taking the transmission direction from the first device to the second device as an example, the first device, the second device, and the fifth device include, but are not limited to, the following examples.

[0170] exist Figure 2In the communication system shown, the fifth device is host chip 1, the first device is the oDSP optical module, and the second device is either an LPO optical module or host chip 2. The fourth frame sent by host chip 1 to the oDSP optical module carries the optical negotiation parameters obtained by host chip 1 from the oDSP optical module through the control interface, as well as the electrical negotiation parameters of host chip 1 itself. If the second device is the LPO optical module, the oDSP optical module corrects the optical negotiation parameters according to the electrical negotiation parameters, because there is an optical channel between the oDSP optical module and the LPO optical module. If the second device is host chip 2, the oDSP optical module corrects the optical negotiation parameters according to the electrical negotiation parameters, and also corrects the electrical negotiation parameters according to the optical negotiation parameters (the order of correction is not limited), because there are both telecommunication channels and optical channels between the oDSP optical module and host chip 2.

[0171] exist Figure 3 In the communication system shown, the fifth device is host chip 1, the first device is the retimer, and the second device is the CPO module. The fourth frame sent by host chip 1 to the retimer optical module carries the optical negotiation parameters obtained by host chip 1 from the oDSP optical module via the control interface, the electrical negotiation parameters obtained by host chip 1 from the retimer via the control interface, and the electrical negotiation parameters of host chip 1 itself. The retimer corrects the optical negotiation parameters based on the electrical negotiation parameters, and also corrects the electrical negotiation parameters based on the optical negotiation parameters (the order of correction is not limited), because there are both telecommunication and optical channels between the retimer and the CPO module.

[0172] exist Figure 4In the communication system shown, the fifth device is host chip 1, the first device is oDSP optical module 1, and the second device is either oDSP optical module 2 or host chip 2. The fourth frame sent by host chip 1 to oDSP optical module 1 carries the optical negotiation parameters obtained by host chip 1 from oDSP optical module 1 through the control interface, as well as the electrical negotiation parameters of host chip 1 itself. If the second device is oDSP optical module 2, oDSP optical module 1 corrects the optical negotiation parameters according to the electrical negotiation parameters, because there is an optical channel between oDSP optical module 1 and oDSP optical module 2. If the second device is host chip 2, oDSP optical module 1 can correct the optical negotiation parameters according to the electrical negotiation parameters, and also correct the electrical negotiation parameters according to the optical negotiation parameters (the order of correction is not limited), because there are both telecommunication channels and optical channels between oDSP optical module 1 and host chip 2. Optionally, if the second device is host chip 2, oDSP optical module 1 can also correct the optical negotiation parameters only according to the electrical negotiation parameters, because oDSP optical module 2 is an adjacent intermediate device of oDSP optical module 1 in the transmission direction of the first frame, and there is an optical channel between oDSP optical module 2 and oDSP optical module 1. Optionally, after receiving the first frame sent by the oDSP optical module 1, the oDSP optical module 2 can correct the electrical negotiation parameters based on the optical negotiation parameters carried in the first frame.

[0173] In the sixth example, a telecommunication channel exists between the first device and the second device. The first device acquires the first frame by: receiving a fifth frame from the sixth device, the fifth frame carrying optical negotiation parameters and electrical negotiation parameters, and an optical channel existing between the first and sixth devices; the first device then corrects the electrical negotiation parameters based on the optical negotiation parameters to obtain the first frame. The sixth device corresponds to the other devices in the third case, and the fifth frame corresponds to the improved AN frame in the third case.

[0174] Taking the transmission direction from the first device to the second device as an example, in Figure 4 In the communication system shown, the sixth device is either host chip 1 or oDSP optical module 1, the first device is oDSP optical module 2, and the second device is host chip 2. The fifth frame sent by host chip 1 or oDSP optical module 1 to oDSP optical module 2 includes the optical negotiation parameters of oDSP optical module 1 and the electrical negotiation parameters of host chip 1. oDSP optical module 2 corrects the electrical negotiation parameters according to the optical negotiation parameters because there is a telecommunication channel between oDSP optical module 2 and host chip 2.

[0175] As mentioned earlier, in the third case, the first device needs to have an update function. For example, the update methods include, but are not limited to, the following two.

[0176] In the first update method, the position of the parameter updated by the first device corresponds to a device identifier. The device identifier indicates the device corresponding to the parameter, which is the device that possesses that parameter. For example, the position of the updated parameter corresponding to the device identifier includes: the updated parameter and the device identifier being located in the same extended subframe, such as the same nextpage. Embodiments of this application can configure the first device so that it can know the device identifier indicating the device, thereby completing the update according to the first update method.

[0177] In the second update method, when no device identifier is available, the position of the parameter updated by the first device is a reference position. The reference position is a fixed position corresponding to the device (i.e., the device possessing the parameter). For example, the fixed position can be an extended subframe or a segment within an extended subframe. Embodiments of this application can configure the first device so that it can know the fixed position corresponding to the device, thereby completing the update according to the second update method.

[0178] The first, second, and third scenarios have been explained above. For example, regardless of the scenario, when the second device is a standard LPO optical module, after the first device sends the first frame to the second device, the standard LPO optical module can transmit the first frame transparently. This allows the host chip within the device containing the standard LPO optical module to receive the first frame and perform the OAN or EAN process on behalf of the standard LPO optical module. This method is called out-of-band mode. For instance, the host chip configures the transmission parameters of the standard LPO optical module through a control interface. When the second device is different from a standard LPO optical module (e.g., the second device is an oDSP optical module), the host chip does not need to perform the process; the second device can perform the OAN or EAN process itself. This method is called in-band mode.

[0179] Optionally, when the second device is an HRO optical module (between a standard LPO optical module and an oDSP optical module), there are retimed and liner directions. For a fixed-mode HRO optical module, the retimed direction refers to the distance from the hostside to the mediaside of the HRO optical module, and the liner direction refers to the distance from the mediaside to the hostside of the HRO optical module. For a flexible-mode HRO optical module, it can be switched between the following three modes: two retimed directions (oDSP operating mode), one retimed direction and one liner direction (HRO operating mode), and two liner directions (LPO operating mode).

[0180] In one example, if the transmission direction of the first frame is retimed, the HRO optical module can be treated as an oDSP optical module, and the OAN or EAN process can be implemented in-band. If the transmission direction of the first frame is liner, the HRO optical module can be treated as a standard LPO optical module, and the OAN or EAN process can be implemented out-of-band. In another example, regardless of whether the transmission direction is retimed or liner, the HRO optical module can be treated as a standard LPO optical module (out-of-band) or as an oDSP optical module (in-band).

[0181] In the first, second, and third scenarios described above, the first frame carries both optical and electrical negotiation parameters. Therefore, after the first device sends the first frame to the second device, the second device can obtain global parameter information. This global parameter information includes the parameter information of all channels between the first and second devices, namely the optical and electrical negotiation parameters carried in the first frame. This gives the second device a global perspective, allowing the first and second devices to more accurately and comprehensively implement the EAN and OAN processes, obtain negotiation results, and perform optical and electrical channel compensation based on the negotiation results.

[0182] Optionally, the EAN and OAN processes for obtaining the negotiation results, and the compensation based on the negotiation results, can be two different AN processes or the same AN ​​process; this application embodiment does not limit this. For example, the first device and the second device can be adjacent devices or non-adjacent devices; this application embodiment also does not limit this.

[0183] In one example, for the oDSP optical module, compensation is performed on the optical channel and the telecommunication channel respectively based on the negotiation results.

[0184] In another example, for LPO optical modules and fixed-mode HRO optical modules, the need for optical correlation compensation for the telecommunication channel is determined based on the negotiation results (the capabilities of optical devices (e.g., optical modules), information about the optical channel, and information about the telecommunication channel, etc.). This need can be determined independently for different transmission directions. For flexible-mode HRO optical modules, the operating mode (oDSP operating mode, HRO operating mode, or LPO operating mode) is determined based on the negotiation results (the capabilities of electrical devices (e.g., host chips, retimers, etc.), information about the optical channel, and information about the telecommunication channel, etc.). Additionally, FEC capability parameters for the optical channel and telecommunication channel can also be determined based on the negotiation results; however, this embodiment does not limit this aspect.

[0185] The above explanation includes six examples, all of which pertain to the transmission direction from the first device to the second device (i.e., the first transmission direction). Below, in conjunction with... Figure 16 and Figure 17 Examples are given for both the first and second transmission directions.

[0186] like Figure 16 As shown, the communication system includes a host chip 1, an oDSP optical module, a standard LPO optical module, and a host chip 2. The host chip 1 and the oDSP optical module are connected via chip to module (C2M), the oDSP optical module and the standard LPO optical module are connected via fiber, and the standard LPO optical module and the host chip 2 are connected via C2M.

[0187] In the first transmission direction, host chip 1 sends AN frame 1 (carrying the electrical negotiation parameters of host chip 1), oDSP optical module fills AN frame 1 with optical negotiation parameters (such as the optical negotiation parameters on the mediaside side of oDSP optical module) to obtain AN frame 2, and sends AN frame 2 to standard LPO optical module, standard LPO optical module transmits AN frame 2 to host chip 2, host chip 2 latches AN frame 2, and identifies the electrical negotiation parameters and optical negotiation parameters according to AN frame 2 (through device identifier, extended subframe or domain segment in extended subframe, etc.), thereby implementing EAN process and OAN process.

[0188] In the second transmission direction, the host chip 2 sends AN frame 3 (carrying optical negotiation parameters and electrical negotiation parameters), and the standard LPO optical module transmits AN frame 3 to the oDSP optical module.

[0189] In one example, the oDSP optical module fills AN frame 3 with electrical negotiation parameters (such as the hostside electrical negotiation parameters of the oDSP optical module) to obtain AN frame 4. AN frame 4 is then sent to host chip 1, enabling host chip 1 to identify the electrical and optical negotiation parameters based on AN frame 4 and implement the EAN and OAN processes. For example, the oDSP optical module generates base page 1 (carrying the electrical negotiation parameters filled in by the oDSP optical module), extracts base page 2 and the next page from AN frame 3, and uses the extracted page as the next page of base page 1 to obtain AN frame 4. Alternatively, the oDSP optical module generates next page 1 (carrying the electrical negotiation parameters filled in by the oDSP optical module), AN frame 3 includes a base page and next page 2, and the generated next page 1 is used as the next page of the base page to obtain AN frame 4.

[0190] In another example, the oDSP optical module generates AN frame 5 (carrying electrical negotiation parameters, such as the electrical negotiation parameters on the hostside side of the oDSP optical module), sends AN frame 5 to host chip 1, and transparently transmits AN frame 3 to host chip 1, so that host chip 1 can identify the electrical negotiation parameters and optical negotiation parameters according to AN frame 5 and AN frame 3, and implement the EAN process and OAN process.

[0191] like Figure 17 As shown, the communication system includes a host chip 1, an oDSP optical module 1, an oDSP optical module 2, and a host chip 2. The host chip 1 and the oDSP optical module 1 are connected via a C2M connection, the oDSP optical module 1 and the oDSP optical module 2 are connected via a fiber connection, and the oDSP optical module 2 and the host chip 2 are connected via a C2M connection.

[0192] In the first transmission direction, host chip 1 sends AN frame 1 (carrying the electrical negotiation parameters of host chip 1), and oDSP optical module 1 fills AN frame 1 with optical negotiation parameters (such as the optical negotiation parameters of the mediaside side of oDSP optical module 1) to obtain AN frame 2. AN frame 2 is then sent to oDSP optical module 2. oDSP optical module 2 can either fill AN frame 2 with the electrical negotiation parameters of its hostside side as described above before sending it to host chip 2, or it can send the electrical negotiation parameters of its hostside side to host chip 2 separately before transparently transmitting AN frame 2. Regardless of the example, host chip 2 can identify the electrical and optical negotiation parameters based on the received AN frame and implement the EAN and OAN processes.

[0193] In the second transmission direction, host chip 2 sends AN frame 3 (carrying the electrical negotiation parameters of host chip 2), and oDSP optical module 2 fills AN frame 3 with optical negotiation parameters (such as the optical negotiation parameters of the mediaside side of oDSP optical module 2) to obtain AN frame 4. AN frame 4 is then sent to oDSP optical module 1. oDSP optical module 1 can either fill AN frame 4 with the electrical negotiation parameters of its hostside side as described above before sending it to host chip 1, or it can send the electrical negotiation parameters of its hostside side to host chip 1 separately before transparently transmitting AN frame 4. Regardless of the example, host chip 1 can identify the electrical and optical negotiation parameters based on the received AN frame and implement the EAN and OAN processes.

[0194] In summary, the embodiments of this application carry optical negotiation parameters and electrical negotiation parameters in the first frame, thus eliminating the need to implement the OAN and EAN processes separately as in related technologies. Instead, they achieve the fusion of the OAN and EAN processes. This not only allows the OAN and EAN processes to use a unified HCD truth table, providing greater flexibility, but also enables them to reference each other, improving the accuracy of the negotiation results obtained through auto-negotiation and helping to ensure the communication quality between the first and second devices.

[0195] The above describes the self-negotiation method provided by the embodiments of this application. Corresponding to the above method, the embodiments of this application also provide a self-negotiation device. This device is applied to a first device. The device is used to... Figure 18 Each module shown performs the above... Figure 15 The method shown. (As illustrated) Figure 18 As shown, the self-negotiation device provided in this application embodiment includes the following modules.

[0196] The acquisition module 1801 is used to acquire a first frame, which carries optical negotiation parameters and electrical negotiation parameters. The optical negotiation parameters are used to implement the AN process of the optical channel, and the electrical negotiation parameters are used to implement the AN process of the telecommunication channel. The first device and the second device include at least one of the optical channel or the telecommunication channel.

[0197] The transmitting module 1802 is used to transmit the first frame to the second device.

[0198] In one example, the first device and the second device are connected by an optical channel and a telecommunication channel, which are coupled through an optical module. An acquisition module 1801 generates a first frame, with optical negotiation parameters obtained by the first device from the optical module. A transmission module 1802 transmits the first frame to the second device via the optical module.

[0199] In another example, an optical channel is included between the first and second devices. Acquisition module 1801 is used to receive a second frame from a third device, the second frame carrying electrical negotiation parameters, and an electrical channel being included between the first and third devices; the optical negotiation parameters are then filled into the second frame to obtain a first frame.

[0200] For example, the padding position of the optical negotiation parameter in the second frame corresponds to the device identifier, which indicates the device corresponding to the optical negotiation parameter.

[0201] In another example, an electrical channel is included between the first device and the second device. Acquisition module 1801 is used to receive a third frame from the fourth device, the third frame carrying optical negotiation parameters, and an optical channel is included between the first device and the fourth device; the first device fills the third frame with the electrical negotiation parameters to obtain the first frame.

[0202] In another example, an optical channel is included between the first device and the second device. Acquisition module 1801 is used to receive a fourth frame from the fifth device, the fourth frame carrying optical negotiation parameters and electrical negotiation parameters, and an electrical channel is included between the first device and the fifth device; the optical negotiation parameters are corrected according to the electrical negotiation parameters to obtain the first frame.

[0203] In another example, a telecommunications channel is included between the first device and the second device. Acquisition module 1801 is used to receive a fifth frame from a sixth device, the fifth frame carrying optical negotiation parameters and electrical negotiation parameters, and an optical channel is included between the first device and the sixth device; the electrical negotiation parameters are corrected according to the optical negotiation parameters to obtain the first frame.

[0204] In an exemplary embodiment, the first device differs from a standard LPO.

[0205] For example, the first frame includes a base subframe and an extended subframe. The optical negotiation parameters and the electrical negotiation parameters are located in different segments of the same extended subframe; or, the optical negotiation parameters and the electrical negotiation parameters are located in different extended subframes.

[0206] For example, the first frame includes a frame identifier. The frame identifier is located in the base subframe; or, the frame identifier is located in at least one field in the message coding field or the unformatted coding field of the extended subframe.

[0207] It should be understood that the above Figure 18 The device shown, in performing its function, possesses beneficial effects and Figure 15 The methods shown have the same beneficial effects. Figure 18 The device illustrated here is only an example of the division of the above-described functional modules to demonstrate its functions. In practical applications, the functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the device and method embodiments provided in the above examples belong to the same concept, and their specific implementation processes are detailed in the method embodiments, which will not be repeated here.

[0208] This application embodiment also provides a chip, which includes an interface circuit and a control circuit. The interface circuit is used to transmit and receive data, and the control circuit is used to process the data so that a first device with the chip installed can implement the following auto-negotiation method: the first device acquires a first frame, the first frame carries optical negotiation parameters and electrical negotiation parameters, the optical negotiation parameters are used to implement the AN process of the optical channel, and the electrical negotiation parameters are used to implement the AN process of the telecommunication channel. The first device and the second device include at least one of the optical channel or the telecommunication channel; the first device sends the first frame to the second device.

[0209] In one example, the first device and the second device are connected by an optical channel and a telecommunication channel, which are coupled through an optical module. The first device acquiring the first frame includes: the first device generating the first frame, whereby optical negotiation parameters are obtained by the first device from the optical module. The first device sending the first frame to the second device includes: the first device sending the first frame to the second device through the optical module.

[0210] In another example, an optical channel is included between the first device and the second device. The first device acquires a first frame by: the first device receiving a second frame from the third device, the second frame carrying electrical negotiation parameters, and an electrical channel being included between the first device and the third device; the first device filling the second frame with the optical negotiation parameters to obtain the first frame.

[0211] For example, the padding position of the optical negotiation parameter in the second frame corresponds to the device identifier, which indicates the device corresponding to the optical negotiation parameter.

[0212] In yet another example, a telecommunications channel is included between the first device and the second device. The first device acquires a first frame by: the first device receiving a third frame from the fourth device, the third frame carrying optical negotiation parameters, and an optical channel being included between the first device and the fourth device; the first device filling the third frame with the telecommunications negotiation parameters to obtain the first frame.

[0213] In another example, an optical channel is included between the first device and the second device. The first device acquires the first frame by: the first device receiving a fourth frame from the fifth device, the fourth frame carrying optical negotiation parameters and electrical negotiation parameters, and an electrical channel being included between the first device and the fifth device; the first device correcting the optical negotiation parameters according to the electrical negotiation parameters to obtain the first frame.

[0214] In another example, a telecommunication channel is included between the first device and the second device. The first device acquires a first frame by: the first device receiving a fifth frame from the sixth device, the fifth frame carrying optical negotiation parameters and electrical negotiation parameters, and an optical channel being included between the first device and the sixth device; the first device correcting the electrical negotiation parameters according to the optical negotiation parameters to obtain the first frame.

[0215] For example, the first device differs from the standard LPO.

[0216] In an exemplary embodiment, the first frame includes a base subframe and an extended subframe. Optical negotiation parameters and electrical negotiation parameters are located in different segments of the same extended subframe; alternatively, the optical negotiation parameters and electrical negotiation parameters are located in different extended subframes.

[0217] In an exemplary embodiment, the first frame includes a frame identifier. The frame identifier is located in the base subframe; or, the frame identifier is located in at least one field in the message coding field or the unformatted coding field of the extended subframe.

[0218] This application embodiment also provides a communication device, which includes a transceiver and a processor. The transceiver is used to perform transmission and reception functions, and the processor is used to perform other functions besides the transmission and reception functions, so that the communication device can achieve... Figure 15 The self-negotiation method shown.

[0219] This application also provides a self-negotiation system, which includes a first device and a second device, wherein the first device is used to execute... Figure 15 The self-negotiation method shown.

[0220] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to this application are generated, in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. 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 integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk).

[0221] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items that have essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor does it limit the quantity or order of execution. 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 merely used to distinguish one element from another.

[0222] It should also be understood that, in the various embodiments of this application, the sequence number of each process does not imply 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 this application.

[0223] In this application, the term "at least one" means one or more, and the term "multiple" means two or more; for example, multiple devices means two or more devices. The terms "system" and "network" are often used interchangeably herein.

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

[0225] It should also be understood that the term "and / or" as used herein refers to and covers any and all possible combinations of one or more of the associated listed items. The term "and / or" describes an association between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects are in an "or" relationship.

[0226] It should also be understood that the terms “if” and “if” can be interpreted as meaning “when” or “upon”, or “in response to determination” or “in response to detection”. Similarly, depending on the context, the phrases “if determination…” or “if detection [the stated condition or event]” can be interpreted as meaning “when determination…”, or “in response to determination…”, or “when detection [the stated condition or event]” or “in response to detection [the stated condition or event]”.

[0227] The above description is merely an embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A self-negotiation method, characterized in that, The method includes: The first device acquires a first frame, which carries optical negotiation parameters and electrical negotiation parameters. The optical negotiation parameters are used to implement the auto-negotiation (AN) process of the optical channel, and the electrical negotiation parameters are used to implement the AN process of the telecommunication channel. The first device and the second device include at least one of the optical channel and the telecommunication channel. The first device sends the first frame to the second device.

2. The method according to claim 1, characterized in that, The first device and the second device include the optical channel and the telecommunication channel, and the optical channel and the telecommunication channel are coupled through an optical module; The first device acquires the first frame, including: the first device generates the first frame, and the optical negotiation parameters are obtained by the first device from the optical module; Sending the first frame from the first device to the second device includes: the first device sending the first frame to the second device through the optical module.

3. The method according to claim 1, characterized in that, The optical channel is included between the first device and the second device; The first device acquires the first frame, including: The first device receives a second frame from the third device, the second frame carrying the electrical negotiation parameters, and the first device and the third device include the electrical channel; The first device fills the second frame with the optical negotiation parameters to obtain the first frame.

4. The method according to claim 3, characterized in that, The position of the optical negotiation parameter in the second frame corresponds to the device identifier, which indicates the device corresponding to the optical negotiation parameter.

5. The method according to claim 1, characterized in that, The first device and the second device include the telecommunication channel; The first device acquires the first frame, including: The first device receives a third frame from the fourth device, the third frame carrying the optical negotiation parameters, and the optical channel is included between the first device and the fourth device. The first device fills the third frame with the electrical negotiation parameters to obtain the first frame.

6. The method according to claim 1, characterized in that, The optical channel is included between the first device and the second device; The first device acquires the first frame, including: The first device receives a fourth frame from the fifth device, the fourth frame carrying the optical negotiation parameters and the electrical negotiation parameters, and the first device and the fifth device include the telecommunication channel; The first device corrects the optical negotiation parameters according to the electrical negotiation parameters to obtain the first frame.

7. The method according to claim 1, characterized in that, The first device and the second device include the telecommunication channel; The first device acquires the first frame, including: The first device receives a fifth frame from the sixth device, the fifth frame carrying the optical negotiation parameters and the electrical negotiation parameters, and the optical channel is included between the first device and the sixth device; The first device corrects the electrical negotiation parameters according to the optical negotiation parameters to obtain the first frame.

8. The method according to any one of claims 1-7, characterized in that, The first device is different from the standard linearly driven pluggable optical LPO module.

9. The method according to any one of claims 1-8, characterized in that, The first frame includes a base subframe and an extended subframe; The optical negotiation parameters and the electrical negotiation parameters are located in different domain segments of the same extended subframe; Alternatively, the optical negotiation parameters and the electrical negotiation parameters may be located in different extended subframes.

10. The method according to claim 9, characterized in that, The first frame includes a frame identifier; The frame identifier is located in the base subframe; Alternatively, the frame identifier may be located in at least one field of the message coding field or the unformatted coding field of the extended subframe.

11. A self-negotiation system, characterized in that, The system includes a first device and a second device, wherein the first device is used to perform the self-negotiation method according to any one of claims 1-10.

12. A communication device, characterized in that, The communication device includes a transceiver and a processor. The transceiver is used to perform a transmit / receive function, and the processor is used to perform other functions besides the transmit / receive function, so that the communication device implements the auto-negotiation method according to any one of claims 1-10.

13. A chip, characterized in that, The chip includes an interface circuit and a control circuit. The interface circuit is used to transmit and receive data, and the control circuit is used to process the data so that the first device with the chip installed implements the following auto-negotiation method: The first device acquires a first frame, which carries optical negotiation parameters and electrical negotiation parameters. The optical negotiation parameters are used to implement the auto-negotiation (AN) process of the optical channel, and the electrical negotiation parameters are used to implement the AN process of the telecommunication channel. The first device and the second device include at least one of the optical channel or the telecommunication channel. The first device sends the first frame to the second device.

14. The chip according to claim 13, characterized in that, The first device and the second device include the optical channel and the telecommunication channel, and the optical channel and the telecommunication channel are coupled through an optical module; The first device acquires the first frame, including: the first device generates the first frame, and the optical negotiation parameters are obtained by the first device from the optical module; Sending the first frame from the first device to the second device includes: the first device sending the first frame to the second device through the optical module.

15. The chip according to claim 13, characterized in that, The optical channel is included between the first device and the second device; The first device acquires the first frame, including: The first device receives a second frame from the third device, the second frame carrying the electrical negotiation parameters, and the first device and the third device include the electrical channel; The first device fills the second frame with the optical negotiation parameters to obtain the first frame.

16. The chip according to claim 15, characterized in that, The position of the optical negotiation parameter in the second frame corresponds to the device identifier, which indicates the device corresponding to the optical negotiation parameter.

17. The chip according to claim 13, characterized in that, The first device and the second device include the telecommunication channel; The first device acquires the first frame, including: The first device receives a third frame from the fourth device, the third frame carrying the optical negotiation parameters, and the optical channel is included between the first device and the fourth device. The first device fills the third frame with the electrical negotiation parameters to obtain the first frame.

18. The chip according to claim 13, characterized in that, The optical channel is included between the first device and the second device; The first device acquires the first frame, including: The first device receives a fourth frame from the fifth device, the fourth frame carrying the optical negotiation parameters and the electrical negotiation parameters, and the first device and the fifth device include the telecommunication channel; The first device corrects the optical negotiation parameters according to the electrical negotiation parameters to obtain the first frame.

19. The chip according to claim 13, characterized in that, The first device and the second device include the telecommunication channel; The first device acquires the first frame, including: The first device receives a fifth frame from the sixth device, the fifth frame carrying the optical negotiation parameters and the electrical negotiation parameters, and the optical channel is included between the first device and the sixth device; The first device corrects the electrical negotiation parameters according to the optical negotiation parameters to obtain the first frame.

20. The chip according to any one of claims 13-19, characterized in that, The first device is different from the standard linearly driven pluggable optical LPO module.

21. The chip according to any one of claims 13-20, characterized in that, The first frame includes a base subframe and an extended subframe; The optical negotiation parameters and the electrical negotiation parameters are located in different domain segments of the same extended subframe; Alternatively, the optical negotiation parameters and the electrical negotiation parameters may be located in different extended subframes.

22. The chip according to claim 21, characterized in that, The first frame includes a frame identifier; The frame identifier is located in the base subframe; Alternatively, the frame identifier may be located in at least one field of the message coding field or the unformatted coding field of the extended subframe.