Information processing method, and system, communication apparatus and chip

By sending the first frame to any specified device, the limitations of AN or LT processes between devices are overcome, enabling flexible, accurate, and efficient information processing, improving the accuracy of transmission and link parameters, and ensuring communication quality.

WO2026012143A1PCT designated stage Publication Date: 2026-01-15HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/104111
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-10
Filing Date
2025-06-26
Publication Date
2026-01-15

AI Technical Summary

Technical Problem

In the existing technology, the AN process or LT process between devices can only be implemented between adjacent devices, resulting in insufficient accuracy of transmission parameters and link parameters, and the need to start over when it fails, which affects efficiency.

Method used

The first device sends a first frame to any designated second device to request the implementation of an end-to-end AN or LT procedure. The first frame contains extended subframes or identification information to flexibly specify the target device and avoid the failure of adjacent devices affecting other devices.

Benefits of technology

It achieves flexibility and accuracy in AN or LT processes between devices, improves the accuracy of transmission and link parameters, avoids the impact of adjacent device failures on efficiency, and ensures communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025104111_15012026_PF_FP_ABST
    Figure CN2025104111_15012026_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of communications. Disclosed are an information processing method, and a system, a communication apparatus and a chip. A first device acquires a first frame, wherein the first frame is used for requesting that the first device implements an AN procedure or an LT procedure with a second device specified by the first frame; and the first device sends the first frame to the second device. By means of sending the first frame to the second device, the first device can specify the implementation of the AN procedure or LT procedure with the second device, wherein the implemented AN procedure or LT procedure is end-to-end. The method is not only flexible, but also helps to ensure the accuracy of transmission parameters obtained by means of implementing an AN procedure and the accuracy of link parameters obtained by means of implementing an LT procedure, and also prevents the failure of an AN procedure or an LT procedure between a certain pair of adjacent devices from affecting an AN procedure or an LT procedure between other devices, thereby ensuring the efficiency of the AN procedure or LT procedure.
Need to check novelty before this filing date? Find Prior Art

Description

Information processing methods, systems, communication devices and chips

[0001] This application claims priority to Chinese Patent Application No. 202410924534.7, filed on July 10, 2024, entitled “Method, System, Communication Apparatus and Chip for Processing Information”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of communication technology, and in particular to methods, systems, communication devices and chips for processing information. Background Technology

[0003] In the field of communication technology, different devices can transmit information through links, enabling the receiving devices to process the information. Different information content necessitates different processing methods. Therefore, how to flexibly implement information processing is a noteworthy issue. Summary of the Invention

[0004] This application provides a method, system, communication device, and chip for processing information, enabling flexible information processing. The technical solution provided by this application includes the following aspects.

[0005] In a first aspect, a method for processing information is provided, the method comprising: a first device acquiring a first frame, the first frame being used to request the first device to perform an auto-negotiate (AN) process or a link training (LT) process with a second device specified in the first frame; and the first device sending the first frame to the second device.

[0006] Since the first frame is used to request the first device to perform an AN procedure or a LT procedure with the second device specified in the first frame, the first device can specify to perform an AN procedure or LT procedure with the second device by sending the first frame. The implemented AN procedure or LT procedure is end-to-end, or in other words, it is device-to-device, between the first device and the second device. As the initiator of the AN procedure or LT procedure, the first device is not limited to initiating AN procedures or LT procedures with adjacent devices, but can initiate AN procedures or LT procedures with any specified second device. This is not only more flexible, but also helps to ensure the accuracy of the transmission parameters obtained from implementing the AN procedure and the link parameters obtained from implementing the LT procedure. It also avoids the failure of an AN procedure or LT procedure between a pair of adjacent devices from affecting the AN procedures or LT procedures between other devices, thereby ensuring the efficiency of the AN procedure or LT procedure.

[0007] In one possible implementation, the first frame includes an extended subframe used to specify the second device. This implementation eliminates the need to carry device identifiers, offering greater flexibility and reducing the data volume of the first frame.

[0008] In one possible implementation, the extended subframe is also used to carry AN parameters used in the AN procedure or LT parameters used in the LT procedure. The first frame is used both to specify the second device and to implement the AN / LT procedure, achieving unified command and control.

[0009] In one possible implementation, the extended subframe includes an extended field used to specify the second device. Specifying the second device through the extended field in the extended subframe is highly practical.

[0010] In one possible implementation, the first frame carries a first identifier, which indicates the second device. Specifying the second device through the first identifier is more flexible.

[0011] In one possible implementation, the second device differs from the linear-drive pluggable optics (LPO) module. Before the first device acquires the first frame, the method further includes: the first device sending an allocation frame to the second device, the allocation frame being used to allocate a first identifier to the second device. The first identifier is obtained through an allocation process.

[0012] In one possible implementation, the allocation frame carries reference information, and the first identifier is determined based on the reference information. For example, the second device can determine the first identifier itself based on the reference information.

[0013] In one possible implementation, the second device is an LPO module, and the first identifier is determined based on the link topology information, which includes the link between the first and second devices. The first identifier of the second device can be determined and assigned based on the link topology information.

[0014] In one possible implementation, the first frame also carries a second identifier, which indicates the fifth device. The method further includes: the first device sending the first frame to the fifth device. The first frame is also used to request the first device to perform an AN procedure or a LT procedure with the fifth device indicated by the second identifier. The first frame is a broadcast frame, and different devices are indicated by different identifiers. This implementation can specify multiple devices (the second device and the fifth device) to perform the AN / LT procedure, thus improving efficiency.

[0015] In one possible implementation, the first identifier also indicates a sixth device, and the method further includes: the first device sending a first frame to the sixth device, the first frame being used to request the first device to perform an AN procedure or a LT procedure with the sixth device indicated by the first identifier. The first frame is a broadcast frame, and different devices are indicated by the same first identifier, which expands the indication range of the first identifier and enables multiple devices (the second device and the sixth device) to be specified to perform AN / LT procedures, thereby improving efficiency.

[0016] In one possible implementation, the first frame is used to request the first device and the second device to perform a LT procedure. The first identifier also indicates the first channel of the second device, and the LT procedure includes the procedure corresponding to the first channel. Here, the first channel is at least one physical channel. The first identifier can indicate both the second device and at least one physical channel of the second device. Therefore, the indication of the first identifier is more granular, more flexible, and has a wider range of applications.

[0017] In one possible implementation, before the first device sends the first frame to the second device, the method further includes: the first device acquiring a second frame, the second frame carrying a first identifier, and the frame type of the second frame being different from that of the first frame; the first device sending the second frame to the second device, the second frame being used to request the first device and the second device to establish a message path through a first channel, the message path being used to transmit the first frame. Establishing a message path (also called a message bus) before transmitting the first frame facilitates its transmission. This implementation has a wide range of applications; for example, it is applicable to scenarios where the number of physical channels on both sides of the second device is different, as well as scenarios where the number of physical channels on both sides of the second device is the same. Here, "both sides of the second device" refers to: the side where the second device is connected to the first device, and the side where the second device is connected to a device opposite to the first device (such as a device located in a different device than the first device).

[0018] In one possible implementation, the message path is located between the second channel of the first device and the first channel of the second device.

[0019] In one possible implementation, the first identifier also indicates the parameter space of the second device. The AN process includes a process corresponding to the parameter space, and the LT process includes a process corresponding to the parameter space, such as an AN / LT process implemented for at least one parameter included in the parameter space. The indication of the first identifier is more granular, more flexible, and has a wider range of applications.

[0020] In one possible implementation, the method further includes: a first device receiving a third frame sent by a second device, the third frame carrying a first identifier and response information. The second device can return a response to the first device, allowing the first device to know the status of the second device, etc. The process of the first device sending the first frame to the second device and the second device sending the third frame to the first device is a feedback process of the second device. Furthermore, after the first device sends the first frame to the second device, the second device can also send the third frame to a device opposite to the first device (such as a device located in a different device than the first device). This process is a forward transmission process of the second device, allowing the device opposite to the first device to know the status of the second device, etc.

[0021] In one possible implementation, there can be multiple response messages; these multiple response messages may be located in the same domain segment of the same extended subframe included in the third frame; or, the multiple response messages may be located in different domain segments of the same extended subframe included in the third frame; or, the multiple response messages may be located in different extended subframes included in the third frame. There are various ways to carry the response messages, offering considerable flexibility.

[0022] In one possible implementation, the first frame is used to request the first device and the second device to perform an AN (Anti-Analog) procedure. The first frame also includes optical negotiation parameters and electrical negotiation parameters. The AN procedure includes an AN procedure for the optical channel based on the optical negotiation parameters and an AN procedure for the electrical channel based on the electrical negotiation parameters. This implementation can achieve the fusion of optical and electrical AN procedures, and the optical and electrical AN procedures can refer to each other, improving negotiation efficiency and accuracy, and offering greater flexibility.

[0023] In one possible implementation, the link between the first device and the second device includes at least one third device. That is, the first device and the second device are not adjacent devices. Therefore, the AN / LT process implemented in this application is not limited to adjacent devices, thus realizing the implementation of the AN / LT process in an ultra-segment.

[0024] In one possible implementation, the method further includes: a third device receiving a first frame; the third device converting the first frame into a fourth frame; the fourth frame being used to request the first device and the second device to perform an AN procedure or a LT procedure; and the third device sending the fourth frame to the second device. The third device can perform frame format conversion to facilitate normal frame transmission.

[0025] In one possible implementation, the first frame is in non-return-to-zero (NRZ) format, and the fourth frame is in pulse amplitude modulation (PAM) format; alternatively, the first frame is in PAM format, and the fourth frame is in NRZ format. Since NRZ and PAM formats may differ, a third device can perform frame format conversion to ensure normal frame transmission.

[0026] In one possible implementation, the method further includes: a first device sending first status information to a second device, the first status information indicating the completion status of the LT process or AN process. The first device can send the first status information to the second device to facilitate the second device understanding the completion status of the LT process or AN process on the first device's side.

[0027] In one possible implementation, the method further includes: the first device sending second status information to the second device, the second status information indicating the frame-locking state of the first device. The first device can send the second status information to the second device to facilitate the second device's understanding of the frame-locking state on the first device's side.

[0028] Secondly, a method for processing information is provided, comprising: a first device sending a first frame to a second device, the first frame being an AN frame or an LT frame, the first frame including a first domain segment corresponding to the first device, the first domain segment including status information, the status information indicating the state of the first device performing AN or LT. For example, the status information includes at least one of the following: the completion status of the LT or AN process on the first device side, and the frame locking status on the first device side. Sending status information from the first device to the second device facilitates the second device's understanding of various states on the first device side.

[0029] In one possible implementation, the first domain segment further includes identification information that identifies the first device. In this implementation, by identifying the first device through the identification information, the second device can determine, based on the identification information, that the first state information included in the first domain segment is the state information of the first device, that is, the first state information indicates the state of the first device performing AN / LT, which facilitates the second device in distinguishing which device's information the received state information belongs to.

[0030] Thirdly, a system for processing information is provided, the system including a first device and a second device, the first device being used to perform the method for processing information provided by the first aspect, the second aspect, or a corresponding possible implementation thereof.

[0031] 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 method for processing information provided in the first aspect, the second aspect, or a corresponding possible implementation.

[0032] Fifthly, a chip is provided, the chip including an interface circuit and a control circuit, the interface circuit being used to transmit and receive data, and the control circuit being used to process the data, so that a first device on which the chip is mounted implements the processing information provided by the first aspect, the second aspect, or a corresponding possible implementation.

[0033] 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

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

[0035] Figure 2 is a schematic diagram of another communication system provided in an embodiment of this application;

[0036] Figure 3 is a schematic diagram of another communication system provided in an embodiment of this application;

[0037] Figure 4 is a schematic diagram of another communication system provided in an embodiment of this application;

[0038] Figure 5 is a structural schematic diagram of an HRO optical module provided in an embodiment of this application;

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

[0040] Figure 7 is a structural schematic diagram of an LPO optical module provided in an embodiment of this application;

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

[0042] Figure 9 is a flowchart of an information processing method provided in an embodiment of this application;

[0043] Figure 10 is a schematic diagram of an AN frame provided in an embodiment of this application;

[0044] Figure 11 is a schematic diagram of a basic page provided in an embodiment of this application;

[0045] Figure 12 is a schematic diagram of a next page provided in an embodiment of this application;

[0046] Figure 13 is a schematic diagram of another next page provided in an embodiment of this application;

[0047] Figure 14 is a schematic diagram of an LT frame provided in an embodiment of this application;

[0048] Figure 15 is a schematic diagram of an allocation frame provided in an embodiment of this application;

[0049] Figure 16 is a schematic diagram of segment topology discovery provided in an embodiment of this application;

[0050] Figure 17 is a schematic diagram of an allocation identifier provided in an embodiment of this application;

[0051] Figure 18 is a schematic diagram of an AN extended frame provided in an embodiment of this application;

[0052] Figure 19 is a schematic diagram of another AN extended frame provided in an embodiment of this application;

[0053] Figure 20 is a schematic diagram of an LT extended frame provided in an embodiment of this application;

[0054] Figure 21 is a schematic diagram of a non-loopback mode and a loopback mode provided in an embodiment of this application;

[0055] Figure 22 is a schematic diagram of the interaction between a first device and a second device provided in an embodiment of this application;

[0056] Figure 23 is a schematic diagram of a combination of an in-band scheme and an out-of-band scheme provided in an embodiment of this application;

[0057] Figure 24 is a schematic diagram of a lane-symmetric scene provided in an embodiment of this application;

[0058] Figure 25 is a schematic diagram of a lane asymmetric scene provided in an embodiment of this application;

[0059] Figure 26 is a schematic diagram of establishing a message path in a lane-symmetric scenario provided by an embodiment of this application;

[0060] Figure 27 is a schematic diagram of establishing a message path in a lane asymmetric scenario provided by an embodiment of this application;

[0061] Figure 28 is a schematic diagram of another lane asymmetric scenario provided in an embodiment of this application;

[0062] Figure 29 is a schematic diagram of another lane asymmetric scenario provided in the embodiments of this application;

[0063] Figure 30 is a schematic diagram of establishing a message path on the host chip side according to an embodiment of this application;

[0064] Figure 31 is a schematic diagram of establishing a message path on the intermediate device side according to an embodiment of this application;

[0065] Figure 32 is a schematic diagram of a broadcast frame provided in an embodiment of this application;

[0066] Figure 33 is a schematic diagram of another broadcast frame provided in an embodiment of this application;

[0067] Figure 34 is a schematic diagram of another broadcast frame provided in an embodiment of this application;

[0068] Figure 35 is a schematic diagram of another broadcast frame provided in an embodiment of this application;

[0069] Figure 36 is a schematic diagram of a broadcast communication method provided in an embodiment of this application;

[0070] Figure 37 is a schematic diagram of another broadcast communication method provided in an embodiment of this application;

[0071] Figure 38 is a schematic diagram of another broadcast communication method provided in an embodiment of this application;

[0072] Figure 39 is a schematic diagram of another broadcast communication method provided in an embodiment of this application;

[0073] Figure 40 is a flowchart of a broadcast communication method provided in an embodiment of this application;

[0074] Figure 41 is a flowchart of another broadcast communication method provided in an embodiment of this application;

[0075] Figure 42 is a schematic diagram of another broadcast communication method provided in an embodiment of this application;

[0076] Figure 43 is a flowchart of another broadcast communication method provided in an embodiment of this application;

[0077] Figure 44 is a flowchart of another broadcast communication method provided in an embodiment of this application;

[0078] Figure 45 is a schematic diagram of another broadcast communication method provided in an embodiment of this application;

[0079] Figure 46 is a flowchart of another broadcast communication method provided in an embodiment of this application;

[0080] Figure 47 is a flowchart of another broadcast communication method provided in an embodiment of this application. Detailed Implementation

[0081] 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.

[0082] In a communication system, after a link is established between different devices, the AN process or LT process can be implemented in full-duplex mode to determine the parameters used when communicating through the link (e.g., transmitting information) and ensure communication quality.

[0083] The AN (Answer-Ask) process is used to determine the transmission parameters between different devices. For example, transmission parameters include, but are not limited to, rate parameters and forward error correction (FEC) capability parameters. Rate parameters are, for example, 10G BASE-KR, where 10G BASE indicates a base of 10 gigabit bits per second (Gbps) and KR indicates the backplane. FEC capability parameters are, for example, 25G RS-FEC, where 25G indicates 25Gbps and RS indicates reed-solomon. 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 it supports to device B. Device B receives the transmission parameters supported by device A and, combined with the transmission parameters supported by device B, determines the transmission parameters commonly supported by both device B and device A. These are used as the transmission parameters for communication between device A and device B via the link. Further details are omitted for the transmission direction from device B to device A.

[0084] The LT process is used to determine link parameters between different devices, such as the link parameters associated with the transmitter (TX) in the link connection between devices. For example, link parameters include, but are not limited to, the equalizer coefficient, optical modulation amplitude (OMA), chirp / dispersion (CD), differential swing, drive current, or digital pre-distortion (DPD) of the TX, laser parameters, modulator parameters, bandwidth, and the voltage difference (V) corresponding to the π phase shift of the modulator. πThe parameters include Vpi), emission power, wavelength frequency offset, bias point compensation, and skew. Taking the LT process between device A and device B as an example, for the transmission direction from device B to device A, the LT process includes at least one link parameter setting process. During one link parameter setting process, the receiver (RX) of device A detects the signal status of the link (from the TX of device B to the RX of device A). The TX of device A sends the link parameters associated with the TX of device B to the RX of device B, so that the TX of device B sets the link parameters associated with the TX of device B. After the link setting process is completed, if the signal status of the link detected by the RX of device A meets the requirements, then the link parameters set in this link parameter setting process are the link parameters used by the TX of device B when communicating between device A and device B through the link, and the LT process ends. The transmission direction from device A to device B will not be described in detail.

[0085] For example, signal states include, but are not limited to, signal-to-noise ratio (SNR), bit error rate (BER), or eye pattern. For instance, if the signal state is BER, meeting the requirement could mean that the detected BER value is less than the BER threshold. However, this application does not limit the use of BER as the criterion for determining whether a signal state meets the requirement.

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

[0087] 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.

[0088] The second type of device is the electrical interconnect device, which connects to other devices via telecommunication channels. Exemplarily, electrical interconnect devices include direct attach cables (DACs), which include, but are not limited to, active electrical cables (AEC) modules, active copper cables (ACC) modules, or passive direct attach cable DAC modules. Optionally, the electrical interconnect device can be linear (L). For example, the AEC module is an LAEC module, and the ACC module is a LAC module.

[0089] The third 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.

[0090] 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.

[0091] (1) Normal optical module.

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

[0093] (3) LPO module, also known as LPO optical module.

[0094] (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.

[0095] (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.

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

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

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

[0099] 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.

[0100] The fourth type of device, other than the three 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 embodiment does not limit this, and the fourth type of device can be flexibly set according to actual needs.

[0101] 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.

[0102] The first communication system, as shown in Figure 1, includes a first device comprising a host chip 1 and an LPO optical module 1 connected via a telecommunication channel, and a second device comprising a host chip 2 and an LPO optical module 2 connected via a telecommunication channel. The LPO optical modules 1 and 2 are connected via an optical channel. The situation shown in Figure 1 is merely an example; for instance, at least one of the LPO optical modules 1 or 2 can be replaced with the aforementioned HRO optical module.

[0103] The second type of communication system, as shown in Figure 2, includes a first device consisting of a host chip 1 and an oDSP optical module connected via a telecommunication channel, and a second device consisting of a host chip 2 and an LPO optical module connected via a telecommunication channel. The oDSP optical module and the LPO optical module are connected via an optical channel. This type of system is also referred to as a mixed insertion of oDSP optical modules and LPO optical modules.

[0104] The oDSP optical module includes an oDSP. A first side of the oDSP connects to the host chip 1; this first side can be referred to as the hostside. A second side of the oDSP connects 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 communicates with the host chip 1 via a telecommunication channel. For example, a serializer / deserializer (serdes) located on the first side of the oDSP communicates with a serdes located on the host chip 1 (serdes not shown in Figure 2) via a telecommunication channel. The second side communicates with the TOSA / ROSA via a telecommunication channel. In one implementation, the TOSA / ROSA is located within 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.

[0105] The third type of communication system, as shown in Figure 3, includes a first device consisting of a host chip 1, a retimer, and an LPO optical module connected in sequence via a telecommunication channel, and a second device consisting of 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.

[0106] The fourth communication system, as shown in Figure 4, includes a first device comprising a host chip 1 and an oDSP optical module 1 connected via a telecommunication channel, and a second device comprising 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 oDSP optical module 2 can be found in the description of the oDSP optical module in the second communication system above, and will not be repeated here.

[0107] The fifth type of communication system includes a first device comprising a host chip 1 and a second device comprising a host chip 2, wherein the host chip 2 and the host chip 1 are connected via a telecommunication channel.

[0108] The following examples, in conjunction with Figures 5 to 8, illustrate the structures of several optoelectronic interconnect devices.

[0109] 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.

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

[0111] In some implementations, referring to 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. 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.

[0112] In other embodiments, referring to Figure 6, the HRO optical module supports a CDR equipped with a DME transceiver and a MUX / DEMUX in any transmission direction. 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).

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

[0114] 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.

[0115] 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.

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

[0117] 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.

[0118] 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.

[0119] Before introducing the methods provided in the embodiments of this application, we will first introduce the ways in which different devices implement the AN process or LT process in the related art.

[0120] In related technologies, segmented AN (Anti-Segmentation) or LT (Low-Least-Segmentation) processes can be implemented between different devices. Considering the similarity between segmented AN and segmented LT processes, the segmented LT process will be used as an example here. A segmented LT process refers to the sequential implementation of LT processes between adjacent devices in a link, with each adjacent device forming a segment. For example, referring to Figure 4, the link is located between host chip 1 and host chip 2. Host chip 1 first implements segmented LT process 1 with oDSP optical module 1. Then, oDSP optical module 1 implements segmented LT process 2 with oDSP optical module 2. Next, oDSP optical module 2 implements segmented LT process 3 with host chip 2. This completes the segmented LT process between host chip 1 and host chip 2. If LT process 2 or LT process 3 fails, a timeout may occur, requiring a restart from LT process 1 to complete the segmented LT process between host chip 1 and host chip 2.

[0121] Therefore, in related technologies, the initiator of the AN or LT process (i.e., a device in the link) can only initiate AN or LT processes with adjacent devices, which is relatively limited and may affect the accuracy of the transmission parameters obtained from the AN process and the link parameters obtained from the LT process. Furthermore, the AN or LT processes between adjacent devices are implemented sequentially. If the AN or LT process between a pair of adjacent devices fails, the segmented AN or LT process needs to be restarted, affecting the efficiency of implementing the AN or LT process.

[0122] This application provides a method for processing information, which serves as the basis for implementing an AN process or a LT process, so as to facilitate the flexible, accurate and efficient implementation of the AN process or the LT process. As shown in FIG9, the method includes the following steps 901 and 902.

[0123] Step 901: The first device acquires a first frame, which is used to request the first device to perform an AN procedure or an LT procedure with the second device specified in the first frame.

[0124] Step 902: The first device sends the first frame to the second device.

[0125] Since the first frame is used to request the first device to perform an AN procedure or a LT procedure (or at least one of the AN procedure and LT procedure) with the second device specified in the first frame, the first device can specify to perform an AN procedure or LT procedure with the second device by sending the first frame. The implemented AN procedure or LT procedure is end-to-end, or in other words, the AN procedure or LT procedure is device-to-device, between the first device and the second device. As the initiator of the AN procedure or LT procedure, the first device does not need to initiate AN procedures or LT procedures only with adjacent devices, as in related technologies. Instead, it can initiate AN procedures or LT procedures with any specified second device. This not only eliminates the limitations of related technologies and is more flexible, but also helps to ensure the accuracy of the transmission parameters obtained from implementing the AN procedure and the link parameters obtained from implementing the LT procedure. It also avoids the failure of an AN procedure or LT procedure between a pair of adjacent devices from affecting the AN procedure or LT procedure between other devices, thereby ensuring the efficiency of the AN procedure or LT procedure.

[0126] In the communication system shown in Figure 1, 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.

[0127] In the communication system shown in Figure 2, 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.

[0128] In the communication system shown in Figure 3, 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.

[0129] In the communication system shown in Figure 4, 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.

[0130] Taking the communication system shown in Figure 4 as an example, the AN process or LT process implemented in the embodiments of this application are compared and explained.

[0131] Regarding the AN procedure, related technologies perform the AN procedure between host chip 1 and oDSP optical module 1 to obtain transmission parameters including FEC capability parameter 1, and perform the AN procedure between oDSP optical module 1 and oDSP optical module 2 to obtain transmission parameters including FEC capability parameter 2. In subsequent communication, oDSP optical module 1 needs to switch between FEC capability parameter 1 and FEC capability parameter 2, increasing the power consumption of oDSP optical module 1. However, in this embodiment, host chip 1 can request to perform the AN procedure with oDSP optical module 2 to obtain FEC capability parameter 3. Compared to FEC capability parameter 1 or FEC capability parameter 2, FEC capability parameter 3 is more accurate, improving the accuracy of the transmission parameters obtained from the AN procedure and ensuring link quality and communication quality. Furthermore, oDSP optical module 1 does not need to switch between FEC capability parameter 1 and FEC capability parameter 2, reducing the power consumption of oDSP optical module 1.

[0132] Alternatively, regarding the AN process, related technologies perform the AN process between host chip 1 and oDSP optical module 1 to obtain transmission parameters including FEC capability parameter 4, and perform the AN process between oDSP optical module 1 and oDSP optical module 2 to obtain transmission parameters also including FEC capability parameter 4. In this embodiment, host chip 1 can request to perform the AN process with oDSP optical module 2 to obtain FEC capability parameter 5 between host chip 1 and oDSP optical module 1, and FEC capability parameter 6 between oDSP optical module 1 and oDSP optical module 2. Compared to FEC capability parameter 4, FEC capability parameters 5 and 6 are more accurate, improving the accuracy of the transmission parameters obtained from the AN process. Although this may increase the power consumption of oDSP optical module 1, it helps ensure link quality and communication quality.

[0133] Regarding the LT (Long-Terminal) process, related technologies perform the LT process between host chip 1 and oDSP optical module 1 to obtain link parameter 1, and perform the LT process between oDSP optical module 1 and oDSP optical module 2 to obtain link parameter 2. However, even if link parameter 1 and link parameter 2 are used between host chip 1 and oDSP optical module 2 respectively, the link quality between host chip 1 and oDSP optical module 2 may still be poor because link parameter 1 and link parameter 2 are obtained by performing the LT process between adjacent devices and are not accurate enough. In the embodiment of this application, host chip 1 can request to perform the LT process with oDSP optical module 2 to obtain link parameter 3. Compared with link parameter 1 or link parameter 2, link parameter 3 is more accurate, improving the accuracy of the link parameters obtained by performing the LT process and ensuring link quality and communication quality.

[0134] The above descriptions of the first and second devices are illustrative and are not intended to limit the first and second devices in the embodiments of this application. In one example, the first device (i.e., the initiator of the AN process or LT process) is any device different from the standard LPO optical module, and the second device is located on the same link as the first device, but the second device is different from the first device.

[0135] As described in step 901, the second device can be specified through the first frame. Exemplarily, the first frame includes at least the following two frame structures.

[0136] The first frame structure, as shown in Figure 10, is an AN frame. The first frame includes a delimiter, a Differential Manchester Encoding (DME) page, and pseudo-random data. The delimiter is also called 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). The structure of the base page is shown in Figure 11. D0 to D47 are 48 valid data entries, each 2 bits long. D0 to D4 are selector fields, and D15 is the NP field, which indicates whether a next page exists after the base page. Optionally, the next page can be of message type or unformatted type. The structure of a message-type next page is shown in Figure 12, and the structure of an unformatted next page is shown in Figure 13. The first frame consists of a base subframe and extended subframes. The base subframe is called the base page, and the extended subframe is called the next page.

[0137] The second frame structure for the first frame is shown in Figure 14. The first frame is an LT frame. The first frame includes a frame marker, a DME field, and a pseudo-random binary sequence (PRBS) field. The frame marker is also called the LT frame header. The DME field is also called the control and status field, which includes a control field and a status field. Both the control and status fields consist of 16 cells, each 1 byte in length. The PRBS field is also called the training pattern and zero padding field. The first frame includes a base subframe and an extended subframe. The base subframe includes the frame marker and the DME field, while the extended subframe includes the PRBS field.

[0138] Of course, the two frame structures described above are merely examples and are not intended to limit the frame structure of the first frame. For instance, if the first frame is an AN frame, the extended subframes included in the AN frame can also be DME fields, which is equivalent to embedding the DME field from the LT frame into the AN frame to obtain an improved AN frame. Similarly, if the first frame is an LT frame, the extended subframes included in the LT frame can also be next pages. For example, embedding the next page from the AN frame into the LT frame yields an improved LT frame. Furthermore, if at least one standard LT frame A is used as the next page of a standard LT frame B, then at least one standard LT frame A is an extended subframe, resulting in an improved LT frame.

[0139] In an exemplary embodiment, based on the frame structure of the first frame described above, the first frame can specify the second device in at least two of the following ways.

[0140] In the first specification method, the first frame includes an extended subframe, which is used to specify the second device.

[0141] The link between the first device and the second device includes multiple devices, each corresponding to an extended subframe. Therefore, the second device can be specified based on the extended subframe. For example, the first specification method includes specification method one and specification method two as follows.

[0142] In the first specification method, the first frame includes multiple extended subframes, each corresponding to a specific device. For example, each device might correspond to a separate next page. If the first frame needs to specify a particular second device, the specified information is carried in the extended subframe corresponding to that second device. The device corresponding to the extended subframe carrying the specified information is the second device specified in the first frame.

[0143] For example, referring to Figure 4, the first device is host chip 1, and the second device is host chip 2. The first frame includes extended subframes 0-3. Extended subframe 0 corresponds to host chip 1, extended subframe 1 corresponds to oDSP optical module 1, extended subframe 2 corresponds to oDSP optical module 2, and extended subframe 3 corresponds to host chip 2. When extended subframe 3 in the first frame carries specified information, since extended subframe 3 corresponds to host chip 2, the second device specified in the first frame is host chip 2.

[0144] Furthermore, each of the multiple devices can be configured individually, enabling each device to know the order of its corresponding extended subframe among the multiple extended subframes. Since the second device is one of multiple devices, after receiving the first frame, the second device can determine its corresponding extended subframe from the multiple extended subframes according to the order it knows. If the extended subframe corresponding to the second device carries specified information, the second device can determine that it is the second device specified in the first frame, facilitating the implementation of the AN process or LT process between the first and second devices.

[0145] In the second specification method, the first frame includes at least one extended subframe, which contains multiple extended fields (also called extended domain segments). These extended fields correspond one-to-one with multiple devices. For example, each device might correspond to an extended field in the next page. Alternatively, each device might correspond to an extended field in the PRBS domain. If the first frame needs to specify a second device, the specified information is carried in the extended field corresponding to that second device. The device corresponding to the extended field carrying the specified information is the second device specified in the first frame. In other words, in specification method two, the extended subframe includes extended fields, which are used to specify the second device.

[0146] For example, referring to Figure 4, the first device is host chip 1, and the second device is host chip 2. The extended subframe in the first frame includes extended fields 0-3. Extended field 0 corresponds to host chip 1, extended field 1 corresponds to oDSP optical module 1, extended field 2 corresponds to oDSP optical module 2, and extended field 3 corresponds to host chip 2. When extended field 3 in the first frame carries specified information, since extended field 3 corresponds to host chip 2, the second device specified in the first frame is host chip 2.

[0147] Furthermore, each of the multiple devices can be configured individually so that each device can know the position of its corresponding extended field in the extended subframe. For example, each device can know that its corresponding extended field is the Y to Z fields in the Xth extended subframe. Since the second device is one of multiple devices, after receiving the first frame, the second device can determine its corresponding extended field from the extended subframe based on the position it knows. If the extended field of the second device carries the specified information, the second device can determine that it is the second device specified in the first frame, which facilitates the implementation of the AN process or LT process between the first and second devices.

[0148] The first specification method mentioned above mentions that the extended subframe carries specified information, and the second specification method mentioned that the extended field carries specified information. For example, the specified information includes, but is not limited to, the following two types.

[0149] The first type of specification information is either AN parameters or LT parameters. That is, the extended subframe is also used to carry AN parameters used in the AN process or LT parameters used in the LT process. When the extended subframe carries the first type of specification information, the first frame can not only specify the second device but also enable the second device to perform the AN or LT process according to the first specification information (combined command and control; specifying the second device and performing the AN / LT process are both completed through the first frame). In one example, the AN parameters include optical negotiation parameters and electrical negotiation parameters, and the AN process includes the AN process for the optical channel based on the optical negotiation parameters and the AN process for the telecommunication channel based on the electrical negotiation parameters. Examples of optical channels and telecommunication channels can be found in Figures 1 to 4. Since the first frame includes the extended subframe, in this case, the first frame can at least be used for both the first and second devices to perform the AN process.

[0150] The AN and LT parameters were illustrated above and will not be repeated here. For example, optical negotiation parameters include, but are not limited to, the type of optical module, the capabilities supported by the optical module's interface, and the transmission distance supported by the optical module's interface. The capabilities supported by the optical module's interface are, for example, rate parameters, such as those related to 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). Transmission distances are, for example, the aforementioned SR, DR, FR, LR, or ER. Optionally, electrical negotiation parameters include, but are not limited to, transmission parameters such as rate parameters and FEC capability parameters, where the rate parameter is, for example, a rate parameter related to backplane reach (KR, less than 1 meter) or cable reach (CR, less than 10 meters).

[0151] The second type of specified information is set based on experience or actual needs, and its content is not limited. Alternatively, each of the multiple devices can be configured separately, ensuring that each device is aware that the specified information represents the current device. Since the second device is one of multiple devices, it can determine that it is the second device specified in the first frame when the specified information is carried in the extended subframe (or extended field) corresponding to the second device. For example, after sending the first frame to the second device, the first device can send other frames carrying AN or LT parameters, allowing the second device to perform the AN or LT procedure based on the other frames (command and control separation; the process of specifying the second device is completed through the first frame, while the implementation of the AN / LT procedure is completed through other frames).

[0152] In the second designation method, the first frame carries a first identifier, which indicates the second device.

[0153] As previously mentioned, the first frame includes an extended subframe. For example, the first frame carries a first identifier through the extended subframe. Accordingly, after receiving the first frame, if the first identifier carried in the first frame is the same as the first identifier possessed by the second device, it determines that it is the second device specified by the first frame, facilitating the first device and the second device to perform the AN procedure or LT procedure. For example, if the first frame also carries AN parameters used in the AN procedure or LT parameters used in the LT procedure, then the first frame can not only specify the second device but also enable the second device to perform the AN procedure or LT procedure based on the first type of specification information (combined command and control). For example, the first frame is used to request the first device and the second device to perform the AN procedure. The first frame also includes optical negotiation parameters and electrical negotiation parameters; the functions of the optical negotiation parameters and electrical negotiation parameters are explained in the first type of specification information above. Alternatively, if the first frame does not carry AN parameters or LT parameters, the first device can send other frames carrying AN parameters or LT parameters to the second device after sending the first frame, enabling the second device to perform the AN procedure or LT procedure based on the other frames (separated command and control).

[0154] In one example, for a link containing multiple devices, each device has its own first identifier, and each device is aware of its own first identifier. For example, the first identifier could be a device identifier, a device address, etc. In this example, the first device can be configured with the first identifiers of other devices in the link, so that the first device can determine the second device from among the other devices according to actual needs, thereby carrying the first identifier indicating the second device in the first frame.

[0155] In another example, the first identifier of each of the multiple devices is obtained through allocation. Alternatively, each device learns its own first identifier through an allocation process. This first identifier represents the position of the indicated device on the link; for example, the first identifier represents the distance (or relative positional relationship) between the indicated device and the host chip, which can be represented by the device hierarchy relative to the host chip. For example, the first identifier could be a pointer, etc. The process of allocating the first identifier is also called a segment topology mechanism. In exemplary embodiments, the methods of allocating the first identifier include at least the following two.

[0156] The first allocation method is an in-band (as-you-go) allocation method, in which multiple devices on the link independently determine the first identifier for allocation. For example, this method is used when the link does not include a standard LPO optical module. However, if the second device is different from a standard LPO optical module, the second allocation process is used.

[0157] In the first allocation method, host chip 1 in the first device sends a first allocation frame to host chip 2 in the second device. The first allocation frame is used to allocate a first identifier in a first transmission direction to each device in the link. The first transmission direction is the transmission direction from host chip 1 to host chip 2, and the first identifier in the first transmission direction represents the distance between the indicated device and host chip 1. Optionally, the first identifier in the first transmission direction can be denoted as a local pointer. Host chip 2 in the second device sends a second allocation frame to host chip 1 in the first device. The second allocation frame is used to allocate a first identifier in a second transmission direction to each device in the link. The second transmission direction is the transmission direction from host chip 2 to host chip 1, and the first identifier in the second transmission direction represents the distance between the indicated device and host chip 2. Optionally, the first identifier in the second transmission direction can be denoted as a remote pointer, also known as a distant end.

[0158] For example, the first allocation frame and the second allocation frame (hereinafter referred to as the allocation frame) have the same frame structure. For instance, the allocation frame may include the next page (message type or unformatted type) of the AN frame. Or, the allocation frame may include the PRBS field of the LT frame. The allocation frame is also called a segment information frame. Taking an allocation frame including a next page of message type as an example, the frame structure of the allocation frame can be seen in Figure 15, including the following fields.

[0159] The frame type field is used to identify the type of the current frame. For example, when the frame type field takes the first value, the current frame is marked as an assigned frame type. When the frame type field takes a value other than the first value, the current frame is marked as a different type than the assigned frame type, such as a broadcast frame or a test frame (broadcast frames and test frames will be explained below). The frame type field can mark two frame types. N N represents the number of bits occupied by the frame type field. The frame type field in Figure 15, which occupies D16 to D18 (3 bits in total), is only an example. The frame type field can also occupy the message code field from D0 to D10.

[0160] The "Total Number of Cascaded Components on the Local Equipment" (TNCLOC) field refers to the device where the host chip that sends the allocation frame resides. The TNCLOC field indicates the number of device cascades in the link between the host chip (excluding) and the optical module (including) of the local equipment. Each active device in the link between the host chip and the optical module can be considered a first-level device. Active devices can include the aforementioned electrical interconnects, repeaters (also called intermediate cascaded devices), and optical modules. For example, referring to Figure 3, for the first device, the TNCLOC field value is 2 (including the retimer and LPO module).

[0161] The "Local Optical Type" field specifies the type of optical module used by the local device, including but not limited to oDSP optical modules or LPO optical modules.

[0162] The "remote optical type" field indicates the type of optical module on the remote device. The remote device refers to the device containing the host chip that receives and allocates frames.

[0163] For the host chip sending the allocation frame, if the type of the optical module of the peer device is unknown, the remote potential type field can be left blank. If the peer device's optical module supports in-band parsing and padding, the peer device's optical module can parse the allocation frame and fill the remote potential type field after receiving it, obtaining an updated allocation frame, and then send the updated allocation frame to the peer device's host chip. Alternatively, if the peer device's optical module does not support in-band parsing and padding, the remote potential type field in the allocation frame received by the peer device's host chip will be an unfilled field.

[0164] The local device information field contains information about intermediate cascaded devices within the local device, such as the type of intermediate cascaded devices, including but not limited to retimers or gearboxes.

[0165] The local segment information field contains information about each segment of the link between the host chip of the local device and the optical module of the local device, including but not limited to insertion loss level.

[0166] The segment diagnostic information field contains diagnostic information for each segment on the link between the host chip of the local device and the optical module of the local device, including but not limited to frame lock status or DME decoding errors for each segment. DME decoding errors refer to the statistics of codeword errors that do not conform to the DME encoding format.

[0167] The segment pointer field (such as the identifier field and extended identifier field shown in Figure 15) is used by multiple devices on the link to determine and assign a first identifier themselves.

[0168] Optionally, all fields shown in Figure 15 are filled by the host chip within the local device. Alternatively, at least some of the fields shown in Figure 15 can be filled by other devices within the local device besides the host chip (in-band method, other devices fill in the fields themselves, without the need for the host chip to fill them). For example, the optical module within the local device can fill in the "local optical type" field, the intermediate cascade device within the local device can fill in the "local device information" field, the optical module or intermediate cascade device within the local device can fill in the "local segment information" field or the "segment diagnostic information" field, and so on.

[0169] In one example, when the local device includes a standard LPO optical module, the standard LPO optical module does not fill in any fields. Fields related to the standard LPO optical module are filled in by other devices in the local device besides the standard LPO optical module (such as the host chip, intermediate cascade devices, etc.) in place of the standard LPO optical module (out-of-band method, through control interfaces such as CMIS). For example, the fields filled in by the host chip or intermediate cascade devices in place of the standard LPO optical module include, but are not limited to, at least one of the following: the local optical type field, the local segment information field corresponding to the segment where the standard LPO optical module is located, or the segment diagnostic information field corresponding to the segment where the standard LPO optical module is located.

[0170] On the one hand, referring to Figure 16, after the host chip 1 in the first device sends the first allocation frame to the host chip 2 in the second device, the host chip 2 can determine the topology information in the first device based on the frame type field, TNCLOC field (the number of device stages in the link from host chip 1 to optical module 1 in the first device is read by host chip 1 and filled to obtain the TNCLOC field (or domain segment)), local optical type field (filled in in-band or out-of-band), local device information field (filled in in-band or out-of-band), local segment information field, and segment diagnostic information field (auxiliary information belonging to each segment in the first device) in the first allocation frame. The host chip 2 can also determine the topology information in the second device on its own. Thus, the host chip 2 can determine the topology information of the entire link. The entire link refers to the link between host chip 1 and host chip 2. Furthermore, after host chip 2 in the second device sends the second allocation frame to host chip 1 in the first device, host chip 1 can determine the topology information within the second device based on the frame type field, TNCLOC field (obtained by host chip 2 reading the number of device stages in the link from host chip 2 to optical module 2 within the second device and filling in the TNCLOC field), local optical type field (filled in either in-band or out-of-band), local device information field (filled in either in-band or out-of-band), local segment information field, and segment diagnostic information field (auxiliary information belonging to each segment within the second device) in the second allocation frame. Since host chip 1 can also determine the topology information within the first device, it can also determine the topology information of the entire link. Therefore, both host chip 1 and host chip 2 can determine the topology information of the entire link, possessing a full-link perspective (or global perspective). This process can also be called segment topology discovery.

[0171] On the other hand, after host chip 1 in the first device sends the first allocation frame to host chip 2 in the second device, since the first allocation frame needs to be transmitted to host chip 2 through intermediate devices (devices located between host chip 1 and host chip 2) in the entire link, each device in the entire link can determine the first identifier in the first transmission direction based on the segment pointer field in the first allocation frame. After host chip 2 in the second device sends the second allocation frame to host chip 1 in the first device, since the second allocation frame needs to be transmitted to host chip 1 through each device in the entire link, each device in the entire link can determine the first identifier in the second transmission direction based on the segment pointer field in the second allocation frame.

[0172] For example, the method of determining the first identifier in the first transmission direction based on the segment pointer field in the first allocation frame, and the method of determining the first identifier in the second transmission direction based on the segment pointer field in the second allocation frame, include at least the following two determination methods.

[0173] In the first determination method, each device in the entire link, except for host chip 1, reads the segment pointer field from the first allocation frame as its first identifier in the first transmission direction. All devices share the same first identifier in the first transmission direction. For example, all intermediate devices share the same first identifier in the first transmission direction. Optionally, for the first determination method, the first identifier in the first transmission direction can be recorded as the local broadcast pointer. In the entire link, each device, except for host chip 2, reads the segment pointer field from the second allocation frame as its first identifier in the second transmission direction. All devices share the same first identifier in the second transmission direction. For example, all intermediate devices share the same first identifier in the second transmission direction. Optionally, for the first determination method, the first identifier in the second transmission direction can be recorded as the remote broadcast pointer.

[0174] In the second determination method, each device in the entire link, except for host chip 1, determines its own first identifier in the first transmission direction based on the segment pointer field in the first allocation frame. After updating the segment pointer field in the first allocation frame, each device sends the first allocation frame to its downstream adjacent device in the first transmission direction until host chip 2 receives the first allocation frame. The first identifiers of each device in the first transmission direction are different. For example, the first identifiers of each intermediate device in the first transmission direction are different. Optionally, for the second determination method, the first identifier in the first transmission direction can be recorded as a local segment pointer. Each device in the entire link, except for host chip 2, determines its own first identifier in the second transmission direction based on the segment pointer field in the second allocation frame. After updating the segment pointer field in the second allocation frame, each device sends the second allocation frame to its downstream adjacent device in the second transmission direction until host chip 1 receives the second allocation frame. The first identifiers of each device in the second transmission direction are different. For example, the first identifiers of each intermediate device in the second transmission direction are different. Optionally, for the second determination method, the first identifier in the second transmission direction can be recorded as a remote segment pointer.

[0175] For example, determining a first identifier for oneself in the first transmission direction based on the segment pointer field in the first allocation frame includes: reading a first value of the segment pointer field in the first allocation frame and using the first value as the first identifier for oneself in the first transmission direction. Updating the segment pointer field in the first allocation frame includes: increasing (or decreasing) the first value by a specified value to obtain a second value, and writing the second value into the segment pointer field, such that the value of the segment pointer field in the first allocation frame is replaced by the second value. Additionally, determining a first identifier for oneself in the second transmission direction based on the segment pointer field in the second allocation frame includes: reading a third value of the segment pointer field in the second allocation frame and using the third value as the first identifier for oneself in the second transmission direction. Updating the segment pointer field in the first allocation frame includes: increasing (or decreasing) the third value by a specified value to obtain a fourth value, and writing the fourth value into the segment pointer field, such that the value of the segment pointer field in the second allocation frame is replaced by the fourth value.

[0176] For example, referring to Figure 17, host chip 1 sends a first allocation frame (segment pointer field value is 1) to the repeater. The repeater determines that the local segment pointer is 1, updates the segment pointer field value in the first allocation frame to 2, and then sends a first allocation frame (segment pointer field value is 2) to optical module 1. Optical module 1 determines that the local segment pointer is 2, updates the segment pointer field value in the first allocation frame to 3, and then sends a first allocation frame (segment pointer field value is 3) to optical module 2. Optical module 2 determines that the local segment pointer is 3, updates the segment pointer field value in the first allocation frame to 4, and then sends a first allocation frame (segment pointer field value is 4) to host chip 2. Optionally, host chip 2 can determine its own local segment pointer to be 4 (not shown in Figure 17) based on the end-to-end topology information or the received first allocation frame. Alternatively, host chip 1 can determine its own local segment pointer to be 0 (not shown in Figure 17) based on the end-to-end topology information. Alternatively, host chip 1 and host chip 2 may not have their own local segment pointers. In this case, only the intermediate device between host chip 1 and host chip 2 has a local segment pointer in the entire link. In Figure 17, C2C refers to chip to chip (C2C), and C2M refers to chip to module (C2M).

[0177] For example, referring to Figure 17 again, host chip 2 sends a second allocation frame (segment pointer field value is 1) to optical module 2. Optical module 2 determines that the remote segment pointer is 1, updates the segment pointer field value in the second allocation frame to 2, and then sends a second allocation frame (segment pointer field value is 2) to optical module 1. Optical module 1 determines that the remote segment pointer is 2, updates the segment pointer field value in the second allocation frame to 3, and then sends a second allocation frame (segment pointer field value is 3) to the repeater. The repeater determines that the remote segment pointer is 3, updates the segment pointer field value in the second allocation frame to 4, and then sends a second allocation frame (segment pointer field value is 4) to host chip 1. Optionally, host chip 1 can determine its own remote segment pointer to be 4 (not shown in Figure 17) based on the end-to-end topology information or the received second allocation frame. Alternatively, host chip 2 can determine its own remote segment pointer to be 0 (not shown in Figure 17) based on the end-to-end topology information. Alternatively, host chip 1 and host chip 2 may not have their own remote segment pointers, in which case only the intermediate device between host chip 1 and host chip 2 has a remote segment pointer in the entire link.

[0178] In an exemplary embodiment, the first allocation frame and the second allocation frame may contain different fields to facilitate the intermediate device in distinguishing different transmission directions. For example, the transmitted nonce field in the base page of the first allocation frame may have a fifth value, while the transmitted nonce field in the base page of the second allocation frame may have a sixth value, which differs from the fifth value. Accordingly, each intermediate device may be configured with both the fifth and sixth values. Upon receiving an allocation frame, if the allocation frame carries the fifth value, it indicates that the allocation frame is the first allocation frame, and the intermediate device determines the first identifier for the first transmission direction based on the first allocation frame. If the allocation frame carries the sixth value, it indicates that the allocation frame is the second allocation frame, and the intermediate device determines the first identifier for the second transmission direction based on the second allocation frame.

[0179] The first allocation method has been described above. For example, before the first device acquires the first frame, the method further includes: the first device sending an allocation frame to the second device, the allocation frame being used to allocate a first identifier to the second device. For example, the allocation frame carries reference information, and the first identifier is determined based on the reference information. The reference information may be, for example, the segment pointer field in the allocation frame.

[0180] When the first device is a host chip, it sends an allocation frame to the second device after generating it. When the first device is not a host chip, it sends an allocation frame to the second device after receiving it. In both the first and second determination methods (where the first and second devices are adjacent), the reference information in the allocation frame received by the second device is the same as the reference information in the allocation frame sent by the first device. Alternatively, in the second determination method (where the first and second devices are not adjacent), the reference information in the allocation frame received by the second device is the updated reference information from a third device between the first and second devices.

[0181] The second allocation method, an out-of-band (non-as-you-go) allocation process, assigns the first identifier of multiple devices on the link to the host chip. For example, this second allocation process can be used regardless of whether the link includes a standard LPO optical module. Similarly, this second allocation process can be used regardless of whether the second device is a standard LPO optical module.

[0182] In an exemplary embodiment, the first identifier is determined based on the link topology information, whereby the link includes a link between the first device and the second device. For example, the link is the full link described above. The link topology information has already been described in the first allocation method and will not be repeated here.

[0183] Optionally, the first identifier of a device in both the first and second transmission directions can be assigned by the host chip in the device containing the device based on the end-to-end topology information. For example, in the first device, the local segment pointer, remote segment pointer, local broadcast pointer, and remote broadcast pointer of each device are assigned by host chip 1 based on the end-to-end topology information. Similarly, in the second device, the local segment pointer, remote segment pointer, local broadcast pointer, and remote broadcast pointer of each device are assigned by host chip 2 based on the end-to-end topology information.

[0184] For example, the host chip can store the assigned first identifier in the cache of the host chip or CPU, or it can store the assigned first identifier in the register corresponding to the device indicated by the first identifier through an out-of-band interface (including but not limited to the CMIS interface), so that the device indicated by the first identifier can read and use the first identifier from the corresponding register, including but not limited to using the first identifier when implementing the AN process or LT process. In one example, the host chip stores the first identifier of a standard LPO optical module in the cache of the host chip or CPU, and stores the first identifier of a device different from the standard LPO optical module in the register corresponding to the device.

[0185] As explained above, both the first and second allocation methods involve the following identifiers: local segment pointer, remote segment pointer, local broadcast pointer, and remote broadcast pointer. The conditions for each identifier to satisfy are detailed below.

[0186] In one example, the local segment pointer and the remote segment pointer satisfy the following exemplary rules (for illustrative purposes only).

[0187] (1) The local segment pointer represents the positional offset (topological positional coordinates) of the device (including optical module) from the host chip of the first device in the entire link.

[0188] (2) The remote segment pointer represents the positional offset (topological positional coordinates) of the device (including optical module) from the host chip of the second device in the entire link.

[0189] (3) The remote segment pointer[x] of device x in the link = the total number of cascaded links - the local segment pointer[x]. The total number of cascaded links is, for example, the number of segments included in the entire link. For example, the total number of cascaded links in Figure 17 is 4. Optionally, only one device can have its remote segment pointer equal to its local segment pointer in the link topology of the same interface. In other words, at most one device is allowed to have its remote segment pointer equal to its local segment pointer in the link topology of the same interface.

[0190] For example, in Figure 17, the remote segment pointer of the optical module 2 in the second device is equal to the local segment pointer. Of course, in the embodiments of this application, any device can also satisfy the condition that the remote segment pointer is not equal to the local segment pointer, so that the first identifier is unique in the first transmission direction and the second transmission direction, or in other words, globally unique.

[0191] (4) Since local segment pointer and remote segment pointer have different meanings, they are carried in extended frames (including but not limited to the first frame or other frames mentioned above) used to implement AN or LT procedures. This allows the host chip or other device in the first device to select the device corresponding to the local segment pointer and establish a message bus (MsgBus). It also allows the host chip or other device in the second device to select the device corresponding to the remote segment pointer and establish a message bus. Local and remote segment pointers can also be used by devices on the link to determine whether the initiator of the extended frame is the host chip or other device in the first device and the transmission direction of the extended frame is the first transmission direction, or whether the initiator of the extended frame is the host chip or other device in the second device and the transmission direction of the extended frame is the second transmission direction. Devices on the link can then perform forward, backward, or processing operations based on the initiator and transmission direction of the extended frame. Forward, backward, and processing operations will be explained in detail below.

[0192] (5) In the link topology, each device contains at least two first identifiers, namely one local segment pointer and one remote segment pointer.

[0193] (6) In the same interface link topology, the local segment pointers of different devices are different, and the remote segment pointers of different devices are different.

[0194] (7) The same rules can be used to generate local segment pointers and remote segment pointers within the same interface link topology.

[0195] For example, local segment pointer=function 1(local topology info, remote topology info), remote segment pointer=function 2(local topology info, remote topology info).

[0196] Here, `function` refers to the processing function, `local topology info` is the local topology information, and `remote topology info` is the remote topology information. The processing function can refer to either sequentially numbered according to the device's offset from the host chip, or performing calculations based on these numbers. Optionally, the calculations include, but are not limited to, at least one of the following arithmetic or logical combinational operations: maximum value calculation (max), minimum value calculation (min), offset, or value assignment.

[0197] When the local segment pointer and remote segment pointer are globally unique, the local segment pointer and remote segment pointer can be determined sequentially (including but not limited to ascending or descending) from the local segment pointer of the host chip with the smaller transmitted nonce field value. For example, referring to Figure 17, the transmitted nonce field corresponding to host chip 1 in the first device has a value of 1, and the transmitted nonce field corresponding to host chip 2 in the second device has a value of 2, where value 2 is greater than value 1. Therefore, starting from the local segment pointer of host chip 1, the local segment pointer of the repeater is determined as 1, the local segment pointer of optical module 1 as 2, the local segment pointer of optical module 2 as 3, the remote segment pointer of optical module 2 as 4, the remote segment pointer of optical module 1 as 5, and the remote segment pointer of the repeater as 6. The protocol defines that the AN state machine can only normally transition to the ACKNOWLEDGE_DETECT state when the values ​​of the transmitted nonce field of the base page of the local end (first device) and the base page of the peer end (second device) are not equal, thus allowing the smaller value of the transmitted nonce field to exist.

[0198] In one example, the local broadcast pointer and the remote broadcast pointer satisfy the following exemplary rules (for illustrative purposes only).

[0199] (1) In the link topology, each device contains at least two first identifiers, namely the local broadcast pointer and the remote broadcast pointer.

[0200] (2) In the same interface link topology, the local broadcast pointers of each device are the same, and the remote broadcast pointers of each device are also the same.

[0201] (3) In the same interface link topology, the local broadcast pointer is different from the local segment pointer and remote segment pointer of each device.

[0202] (4) In the same interface link topology, the remote broadcast pointer is different from the local segment pointer and remote segment pointer of each device.

[0203] (5) The local broadcast pointer can be used by the host chip or other devices in the first device to select multiple devices corresponding to the local broadcast pointer and establish a message path. The remote broadcast pointer can be used by the host chip or other devices in the second device to select multiple devices corresponding to the remote broadcast pointer and establish a message path. The local broadcast pointer and the remote broadcast pointer can also be used by each device on the link to determine whether the initiator of the extended frame is the host chip or other device in the first device and the transmission direction of the extended frame is the first transmission direction, or whether the initiator of the extended frame is the host chip or other device in the second device and the transmission direction of the extended frame is the second transmission direction. Each device on the link can perform forward transmission, backward transmission, or processing operations according to the initiator and transmission direction of the extended frame. Forward transmission, backward transmission, and processing operations will be explained in detail below.

[0204] (6) When the sender of the extended frame does not need to identify the device status or distinguish the return status of each device, the local broadcast pointer can be equal to the remote broadcast pointer.

[0205] (7) When the sender of the extended frame needs to identify the device status or distinguish the return status of each device, the local broadcast pointer is not equal to the remote broadcast pointer.

[0206] (8) The same rules can be used to generate local broadcast pointers and remote broadcast pointers in the same link topology within the same interface.

[0207] For example, local broadcast pointer=function3(local topology info, remote topology info), remote broadcast pointer=function4(local topology info, remote topology info).

[0208] For explanations of function, local topology info, and remote topology info, please refer to the above text, and they will not be repeated here.

[0209] As described above, the first identifier indicates the second device. Exemplarily, the second device includes multiple transmission channels (lanes), and the first identifier further indicates at least one of the multiple lanes (such as the first channel). Optionally, the second device has multiple parameter spaces (units), each unit including at least one parameter (transmission parameter, link parameter, or mode parameter, etc.), and the first identifier further indicates at least one of the multiple units. The content indicated by the first identifier can be extended based on experience or actual needs, and this application embodiment does not limit this. When the first identifier further indicates the first channel, the implemented AN process is the AN process corresponding to the first channel, and the implemented LT process is the LT process corresponding to the first channel. For example, when implementing the LT process, the trained link parameters are the link parameters of the first channel. When the first identifier further indicates the parameter space, the implemented AN process is the AN process corresponding to the parameter space, and the implemented LT process is the LT process corresponding to the parameter space. For example, when implementing the LT process, the trained link parameters are the link parameters included in the parameter space.

[0210] In the first example, the first identifier indicates a combination of the second device, lane, and unit. For example, when the first identifier is P, it indicates the second device 1, lane 2, and unit 3. When the first identifier is Q, it indicates the second device 1, lane 4, and unit 5.

[0211] In the second example, the first identifier includes multiple sub-identifiers, each indicating one or two of the second device, lane, or unit, with different sub-identifiers indicating different content. For example, the first sub-identifier indicates the second device and lane, while the second sub-identifier indicates the unit. Another example is that the first sub-identifier indicates the second device, and the second sub-identifier indicates the lane and unit. Yet another example is that the first sub-identifier indicates the second device (first-level device identifier), the second sub-identifier indicates the lane (second-level lane identifier), and the third sub-identifier indicates the unit (third-level unit identifier).

[0212] The first identifier in both examples above can be assigned according to the rules described above. For example, it can be assigned based on the overall link topology information, following the rules described above. When the first identifier includes multiple sub-identifiers, each sub-identifier can be independently assigned according to the rules described above.

[0213] Whether the second device is specified through an extended subframe (such as an extended field) in the first frame or through a first identifier carried in the first frame, it is used to implement the AN procedure or LT procedure between the first and second devices. For example, if the first frame (or other frames after the first frame, i.e., the extended frames mentioned above) contains AN parameters used in the AN procedure, the second device can use the AN parameters to implement the AN procedure. Similarly, if the first frame (or other frames after the first frame, i.e., the extended frames mentioned above) contains LT parameters used in the LT procedure, the second device can use the LT parameters to implement the LT procedure. Considering that the way the first frame carries AN or LT parameters has the same principle as the way other frames carry AN or LT parameters, the following explanation uses the way the first frame carries AN or LT parameters as an example to avoid redundancy.

[0214] For example, the extended subframe of the first frame includes the following three fields.

[0215] The first field, the `frame type` field, is used to identify the frame type of the current frame. For example, it can identify the frame type as a unicast, broadcast, multicast, or test frame, etc. Unicast targets a single device on the link, broadcast targets all devices on the link (such as all intermediate devices), and multicast targets some (at least two) of all devices. The value of the `frame type` field corresponds one-to-one with the identified frame type.

[0216] The second type of field is the field related to the identifier. For example, the field related to the identifier includes a first part and a second part.

[0217] The first part is filled by the sender of the first frame and includes the first identifier indicating the second device, so that the second device can identify itself as the receiver of the first frame. Optionally, the first part may also include an identifier indicating the first device (or the first device's lane, unit, etc.), so that the second device can identify the first device as the sender of the first frame. If the first part only includes the first identifier (or the first identifier and the identifier indicating the first device), then the first frame is a unicast frame. For example, the unicast frame is a device-level unicast frame, but it can be a lane-level broadcast frame.

[0218] For example, when the first identifier is a local segment pointer or a remote segment pointer, the first frame also includes a second identifier, which indicates a fifth device. The first device, the second device, and the fifth device are devices on the same link. The first device can also send the first frame to the fifth device, and the first frame is also used to request the first device to perform an AN procedure or a LT procedure with the fifth device indicated by the first identifier. In this case, the first frame is a broadcast frame.

[0219] Alternatively, when the first identifier is a local broadcast pointer or a remote broadcast pointer, it indicates not only the second device but also the sixth device, and the first, second, and sixth devices are on the same link. The first device can also send a first frame to the sixth device, which is also used to request the first device to perform an AN procedure or a LT procedure with the sixth device indicated by the first identifier. In this case, the first frame is a broadcast frame.

[0220] Optionally, the first frame may also include a broadcast mask, which indicates a reference device (or its lane, unit, etc.). This reference device is located on the same link as the first and second devices, but it is an unspecified device (or a masked device). For example, when the first identifier is a local broadcast pointer or a remote broadcast pointer (not limited to this), the reference device is located on the same link as the first, second, and sixth devices, but it is an unspecified device. In other words, by using the local broadcast pointer or remote broadcast pointer in conjunction with the broadcast mask (not limited to this), it is possible to specify a portion of all devices included in the entire link (i.e., devices other than the reference device). In this case, the first frame is a multicast frame.

[0221] The second part is filled by the receiver of the first frame as a response to the first frame. The second part can be the same as the first part, so that the sender of the first frame can determine that the response comes from the receiver of the first frame. The receiver of the first frame includes the second device, and may also include the fifth device, sixth device, etc., mentioned above. Optionally, if a response from the receiver of the first frame is not required, the second field may include only the first part and not the second part, or include both the first and second parts but the second part does not need to be filled.

[0222] The third type of field is the field related to implementing the AN or LT process. For example, the fields related to implementing the AN or LT process include the third and fourth parts.

[0223] The third part is filled by the sender of the first frame and includes control information for implementing the AN or LT procedure, including but not limited to the AN or LT parameters mentioned above, for controlling the receiver of the first frame to implement the AN or LT procedure.

[0224] The fourth part is filled in by the receiver of the first frame, including but not limited to status information. The status information is the information obtained by the receiver of the first frame through the AN or LT process controlled by the control information, as a response to the first frame. If there are multiple receivers of the first frame, each receiver can independently fill in the status information according to its own identifier. Optionally, if a response from the receiver of the first frame is not required, the third field may include only the third part and exclude the fourth part, or include both the third and fourth parts but the fourth part does not need to be filled in.

[0225] For example, both the second and third fields described above are optional. For instance, in the first specification method described above, the first frame does not need to include the second field. Or, for the second specification method described above, in the case of unified command and control, the first frame includes both the second and third fields to specify the second device through the second field and to carry the AN or LT parameters through the third field. Alternatively, in the second specification method described above, in the case of separate command and control, the first frame includes the second field to specify the second device, and other frames include the third field to carry the AN or LT parameters.

[0226] Based on the above explanation, the frame structure of the first frame is illustrated as follows.

[0227] In the first example, when the first frame has the first frame structure (AN frame), the next page of the first frame (message type or unformatted type) can carry AN parameters so that the second device can use the AN parameters to implement the AN process. The first frame is a unified AN extended frame. Taking the unformatted type next page as an example, see Figures 18 and 19. The unformatted type next page can include the following fields.

[0228] (1) The frame type field is used to mark the frame type of the current frame. The frame type field in Figures 18 and 19 occupies U0 to U2 (3 bits in total) only as examples, and the number of bits occupied by the frame type field in this application embodiment is not limited. For example, the frame type field can mark the current next page in combination with other next pages (as shown in Figure 18), or it can mark the current next page alone (as shown in Figure 19).

[0229] For example, see Figure 18, which illustrates the combination of the current next page with other next pages. The current next page includes a frame type field, and this frame type field indicates that the current frame is used in combination with other next pages. Other next pages also include a frame type field, and this frame type field indicates that the other next page is a test frame.

[0230] In an exemplary embodiment, fields other than the frame type field in the test frame are used to carry test-related information to implement design for X (DFX) functions, such as link measurement, timestamps, loopback control, broadcast commands, PRBS, or custom code patterns.

[0231] In one example, other fields carry specific test patterns to test DME encoding and decoding that support different oversampling ratios. These test patterns can be PRBS patterns or custom patterns. The test patterns can be used for link error rate measurement or link diagnosis. For example, the test frame can modify different oversampling ratios (affecting T1 to T4) while still maintaining the AN protocol definition for T5 to T6 (i.e., not affecting T5 and T6), and does not affect the total duration of a single page of the AN frame as defined by the protocol (i.e., T5), simplifying the encoding / decoding state machine design. The DME oversampling ratio (rate) can be dynamically adjusted sequentially during the process (e.g., from low speed to high speed, 1 / 16, 1 / 8, 1 / 4, 1 / 2, or 1, etc.) to reduce the initial state error rate requirement and achieve gradual optimization of link parameters. Exemplarily, in addition to dynamically adjusting the rate sequentially, AN frames and LT frames in this embodiment can be transmitted at the same rate. Wherein, T1 is the transition position spacing, T2 is the clock transition to clock transition, T3 is the clock transition to data transition, T4 is the transitions in a DME page, T5 is the DME page width, and T6 is the DME Manchester violation delimiter width.

[0232] In another example, other fields carry specific test patterns to measure channel characteristics such as insertion loss (IL), return loss (RL), impedance, or crosstalk of the optical and telecommunication channels on the link, thereby completing channel estimation and parameter initialization.

[0233] In yet another example, other fields carry specific test patterns to measure the incident and reflected spectra when using the test patterns, test link impedance discontinuities, and can be used in online time domain reflectometer (TDR) or optical TDR (OTDR) functions to support the diagnosis of photoelectric channel fault types and fault locations, and can adjust the device transceiver circuits or optical device impedance matching through measurement results.

[0234] In another example, under different oversampling ratios for DME encoding and decoding (1 / 4, 1 / 2, or 1, etc.), the design of the AN protocol definition T1 to T6 is still compatible with the AN frame decoding state machine design. The link performance under different frequency signals is measured and can be used to set the device initial mode and parameters.

[0235] (2) Fields related to the first identifier.

[0236] In one example, referring to Figure 18, the fields associated with the first identifier include the segment pointer select field and the segment pointer echo field. Optionally, for a standard LPO optical module, these two fields can be read / written (WR) out of band using a control interface such as CMIS.

[0237] For example, the segment pointer select field carries a first identifier, and this first identifier indicates the second device (or the lane, unit, etc. of the second device). If the first identifier carried in the segment pointer select field is the same as the first identifier of the second device itself, the second device determines that it is the second device specified in the first frame. After the second device implements the AN procedure based on the control information carried in the segment request control field, in addition to filling the segment response status field with status information, it also fills the segment pointer echo field with the first identifier, making the value of the segment pointer echo field equal to the value of the segment pointer select field. Then, it returns to the first device so that the first device knows that the responding device is the second device indicated by the first identifier carried in the segment pointer echo field. Alternatively, if the first identifier carried in the segment pointer select field is different from the first identifier of the second device itself, the second device transmits the first frame to its downstream adjacent device according to the transmission direction of the first frame.

[0238] For example, the `segment pointer select` field carries a first identifier, and the `segment pointer echo` field carries an identifier indicating the first device (or the lane, unit, etc. of the first device). For instance, the first identifier in the `segment pointer select` field indicates the second device, and the identifier in the `segment pointer echo` field indicates the first device, used to establish a message path between the first and second devices to implement AN or LT procedures. Alternatively, the first identifier in the `segment pointer select` field indicates a lane of the second device, and the identifier in the `segment pointer echo` field indicates a lane of the first device, used to establish a message path between the lanes of the first and second devices to implement AN or LT procedures.

[0239] In another example, referring to Figure 19, the fields associated with the first identifier include a segment pointer select field and an extended segment pointer field, each carrying a different sub-identifier from the first identifier. For example, the segment pointer select field carries a first sub-identifier that indicates a second device, and the extended segment pointer field carries a second sub-identifier that indicates at least one of a lane or a unit.

[0240] Optionally, if the segment pointer select field carries a first sub-identifier indicating the second device and the extended segment pointer field carries a second sub-identifier indicating the lane (as the extended segment pointer field (2nd)), the segment request control field can be used to carry a third sub-identifier indicating the unit (as the extended segment pointer field (3rd)), and the segment response status field can be used as the segment pointer echo field described above. Of course, the segment request control field can also carry control information as described above, and the segment response status field can also carry status information as described above.

[0241] (3) segment request control field and segment response status field.

[0242] For example, the segment request control field can refer to the control field of the standard LT frame (occupying 16 bytes) to carry AN parameters used in the AN process, including but not limited to control information such as rate parameters, FEC capability parameters and device mode parameters. Device mode parameters include but are not limited to retimed mode, low power mode, etc. Retimed mode is a working mode of HRO optical module.

[0243] For example, referring to Figures 18 and 19, the segment request control field may carry at least one of the following: a preset (such as preset 4) including multiple coefficients, a test pattern (such as test pattern 2), a coefficient (such as coefficient 5), a mode (such as mode 3), a reserved field (reserve, rsv, which may carry an NP or toggle.LT (toggle bit field, T) for pagination, as detailed below), an extended segment pointer field, or a command, etc.

[0244] For example, the segment response status field can refer to the standard LT frame status field (occupying 16 bytes) to carry status information obtained after implementing the AN procedure. The status information is, for example, a specified status returned as needed after implementing the AN procedure. The AN procedure can be implemented based on the control information such as the rate parameters, FEC capability parameters, and device mode parameters mentioned above. After the second device implements the AN procedure according to the control information carried in the segment request control field, it fills the status information into the segment response status field and returns it to the first device so that the first device can know the status information.

[0245] For example, referring to Figures 18 and 19, the segment response status field may carry at least one of the following: initial condition status (IC_status), pattern status, coefficient status (coeff_status), rsv, ready to send (RTS), complete (e.g., indicating completion of the LT process), training frame local (TFL), or segment pointer echo field, etc.

[0246] This is equivalent to embedding the DME field (including the control field and status field) of the LT frame into the AN frame, so as to facilitate the adjustment of link parameters during the implementation of AN.

[0247] Based on the unified AN extended frame illustrated above, implementing the AN procedure between the first device and the second device may include the following steps. The AN procedure transmits and receives unified AN extended frames on a single lane (e.g., lane 0).

[0248] (1) The first device and the second device establish a message path based on the first frame and implement the AN process.

[0249] (2) The AN process can be used to configure transmission parameters such as rate parameters, FEC capability parameters, and device mode parameters. This configuration can refer to the state machine defined by at least one of the AN or LT protocols to complete message interaction and parameter updates, thereby simplifying the design. This configuration can be based on the results of implementing the LT process, and it can also provide assurance for subsequent LT process implementations. For example, it can ensure that the link quality meets the requirements of DME decoding.

[0250] (3) The first device and the second device can be flexibly configured. For example, the first device is the host chip 1 in the first device, and the second device is the optical module in the second device. Or, for example, the first device is the optical module in the first device, and the second device is the optical module in the second device.

[0251] In a second example, if the first frame has a second frame structure (LT frame), the PRBS field or next page of the first frame can carry LT parameters so that the second device can use the LT parameters to perform the LT procedure. The first frame is a unified LT extended frame. Referring to Figure 20, the PRBS field may include the following fields.

[0252] (1) The frame header field includes the frame type field, a first identifier, and a length. The first identifier and length are optional fields. The length can be, for example, the length of the segment control field and segment status field within the PRBS field, or the page number of the next page. The fields in the frame header can be functionally divided into: request or control type fields, and response or status type fields. Different types of the first frame can be identified using the frame header fields.

[0253] (a) Classified by communication object: Supports unicast, broadcast or multicast types.

[0254] (b) By function: mode configuration (e.g., device mode parameters as described above, which is equivalent to embedding AN frames into LT frames, or loopback mode as described below), link parameter configuration (presets for coarse tuning, including multiple coefficients, single coefficients for fine tuning, or convergence thresholds corresponding to the LT algorithm required for implementing the LT process, etc. Coarse tuning can be performed before the device state machine defined by the LT protocol enters the TRAIN_LOCAL state to avoid timeouts and restarts in the LT process), status information query (frame locking status, segment diagnostic results, SNR, BER, TX equalizer coefficients or RX equalizer coefficients, etc., RX equalizer coefficients are, for example, feed-forward equalizer (FFE) coefficients or decision feedback equalizer (DFE) coefficients, etc.), DFX test (see description above), etc.

[0255] (c) By communication method: No need to identify the device return status, but need to identify the common status information returned by each device (each device can use the same field segment or next page for parsing and filling), and need to identify and distinguish the different status information returned by each device (each device can use different field segments or next page for parsing and filling).

[0256] (2) The segment control field and segment status field can be defined with reference to the LT frame DME field segment format or the AN frame format shown in Figures 18 and 19, which simplifies the design of the encoder-decoder state machine. For example, different meanings of the segment control field and segment status field are defined according to different frame types.

[0257] The segment control field carries control information, including but not limited to LT parameters. If the first identifier carried in the frame header is the same as the first identifier of the second device itself, the second device determines that it is the second device specified in the first frame.

[0258] In one example, after the second device performs the LT procedure based on the control information carried in the segment control field, it fills the segment status field with status information (see the explanation above, which will not be repeated here), and then returns it to the first device so that the first device can know the status information of the second device. Alternatively, if the first identifier carried in the segment control field is different from the first identifier of the second device itself, the second device will transmit the first frame to the downstream adjacent device according to the transmission direction of the first frame.

[0259] In another example, after the second device performs the LT procedure, it obtains the link parameters (such as the RX parameters of the second device), fills the link parameters into the segment status field, and then returns the RX parameters of the second device to the first device. This allows the first device to configure the TX link parameters of the first device in one go based on the link parameters carried in the segment status field, thereby improving the efficiency of link parameter configuration.

[0260] Based on the unified LT extended frame illustrated above, implementing the LT process between the first device and the second device may include the following steps.

[0261] (1) The first device determines the second device based on the signal state of the first device's RX. The LT process needs to be implemented to train and obtain the link parameters of the second device's TX.

[0262] (2) The first device can select the device that is closer to itself (such as the device that is located in the same device) as the second device by the first identifier, or it can select the device that is farther away from itself (such as the device that is located in a different device) as the second device, or it can select the second device according to the quality of each segment included in the link.

[0263] For example, the first device first queries the frame locking status of each segment. Different devices can respond to the frame locking status of the segments they are connected to based on their own identifiers. If a segment is not locked, the device connected to that segment is selected as the second device.

[0264] For example, the first device can be configured with a loopback mode for the second device for segmented diagnostics and parameter tuning. The first device can also preferentially select a device located within the same equipment (such as an optical module) as the second device, configure a loopback mode for the second device to tune the segment within the equipment where the first device is located, then cancel the loopback mode of the second device, and then select a device located in a different equipment as the second device to tune the segment between different equipment. Referring to Figure 21, the device operation supports loopback modes (including but not limited to dual-transmission mode loopback or non-dual-transmission mode loopback). Any device (or lane, unit, etc.) in the link can be selected as the second device through a first identifier, and the loopback mode at the loopback point can be configured to achieve data path switching. This application does not limit the location of the loopback point in the device; for example, the loopback point of an optical module can be located on the HostSide side or the MediaSide side.

[0265] (3) The second device parses the first frame. If the first identifier in the first frame is different from the first identifier of the second device itself, the first frame is transmitted transparently. If the first identifier in the first frame is the same as the first identifier of the second device itself, a message path is established between the second device and the first device based on the first identifier in the first frame. The second device can distinguish the transmission direction of the first frame by the first identifier (or whether the initiator of the first frame is a device within the first device or a device within the second device). The second device can also distinguish the transmission direction of the first frame by the RX identifier (identification, ID) of the lane received in the first frame. The RXID is used to uniquely identify the RX. The reason is that the first transmission direction and the second transmission direction in the second device correspond to different RXIDs. If the second device does not involve changes in the number of lanes in the link, each lane within the interface of the second device can be used independently as a MsgBus, and each MsgBus supports independent parallel operation at the lane granularity.

[0266] (4) If the second device receives the first frame in different transmission directions simultaneously, it can respond sequentially in a time-division manner (without order restrictions) to avoid failure caused by simultaneous bidirectional responses. Taking the optical module in the first device as an example, if the HostSide side of the optical module detects that the RX of lane (x) is not locked, while the MediaSide side detects that the RX of lane (y) is normally locked, then the second device can respond to the first frame in the second transmission direction first. This first frame is sent by the device in the second device (such as host chip 2). Alternatively, if both the HostSide and MediaSide sides of the optical module are normally locked, but the host chip in the first device where the optical module is located is not locked, then the second device can respond to the first frame in the first transmission direction first. This first frame is sent by the device in the first device (such as host chip 1).

[0267] (5) The first and second devices can set the lane swap mapping relationship of intermediate devices according to the topology information of the entire link. Lane swap includes the mapping relationship between RX and TX of the same lane on the intermediate device. For example, the CPU or host chip can pre-store the lane swap mapping relationship of intermediate devices according to the hardware design of the device, or obtain the lane swap mapping relationship according to the segment topology mechanism mentioned above.

[0268] (6) The LT process implemented between host chip 1 in the first device and host chip 2 in the second device is the local host chip LT process, the LT process implemented between host chip 2 and host chip 1 is the remote host chip LT process, and the LT process between different devices is the segment LT process. The embodiments of this application can integrate the segment LT process into the local host chip LT process (or the remote host chip LT process). Each lane supports independent parallel training and supports full-duplex training in the first transmission direction and the second transmission direction.

[0269] For example, referring to Figure 22, in the first transmission direction, the first device can be host chip 1, and the second device can be optical module 2. Host chip 1 sends a request (such as the first frame). The first frame carries the local segment pointer of optical module 2 = 3. After the first frame is transparently transmitted through the repeater and optical module 1, it reaches optical module 2. Optical module 2 performs the AN procedure or LT procedure according to the first frame and then returns a response to host chip 1. In the second transmission direction, the first device can be host chip 2, and the second device can be a repeater. Host chip 2 sends a request (such as the first frame). The first frame carries the remote segment pointer of the repeater = 3. After the first frame is transparently transmitted through optical module 2 and optical module 1, it reaches the repeater. The repeater performs the AN procedure or LT procedure according to the first frame and then returns a response to host chip 2.

[0270] The above describes the methods for implementing the AN process and the LT process. In exemplary embodiments, this application also supports using the Protocol Physical Coding Sublayer (PCS) or FEC layer to reserve codewords, and dynamically and losslessly fine-tuning any specified device (or lane, unit, etc.) in the link topology during service traffic gaps based on the RX side signal quality in the device, the order of extended subframes, the order of extended fields in the extended subframes, or identifiers, etc.

[0271] In this embodiment, the implementation of the AN process and the implementation of the LT process can be achieved collaboratively through out-of-band (control interfaces such as CMIS) and in-band (MsgBus).

[0272] (a) In-band scheme: If devices such as repeaters and optical modules in the link support in-band parsing and padding of unified AN / LT extended frames, then these devices can implement the AN process or the LT process in-band based on a first identifier and a state machine defined by at least one of the AN or LT protocols. Optionally, these devices can also respond, such as padding the first frame with state information to obtain a response frame, or returning a response frame to the first device to respond.

[0273] (b) Out-of-band solution (devices within the same device): If the first device and the second device are within the same device, and the second device does not support in-band parsing and padding of unified AN / LT extended frames, then the control system such as the host chip or CPU within the device can use the out-of-band control interface such as CMIS within the device to perform the AN process or the LT process on behalf of the second device (such as directly setting the transmission parameters or link parameters of the second device).

[0274] (c) Combination of out-of-band and in-band solutions (devices in different devices): The first device and the second device are in different devices, and the second device does not support in-band parsing and padding of unified AN / LT extended frames. After the first device sends a first frame to the second device, the second device transparently transmits the first frame, enabling the host chip or CPU control system of the device where the second device is located to receive the first frame (sending the first frame to the host chip of the device where the second device is located via in-band method). Subsequently, the host chip or CPU control system of the device where the second device is located parses the first frame, identifies the second device based on the first identifier in the first frame, and performs the AN process or LT process on behalf of the second device through the out-of-band control interface such as CMIS within the device (such as directly setting the parameters of the second device). Optionally, the host chip or CPU control system of the device where the second device is located can also respond, for example, the host chip or CPU control system of the device where the second device is located fills the status information into the first frame to obtain a response frame, sends the response frame to the second device, and the second device transparently transmits the response frame to the first device to respond.

[0275] Since the host chip can obtain the full-link topology information (including the types of each device on the link), when the host chip is used as the first device, it can determine whether the second device supports in-band parsing and padding of unified AN / LT extended frames based on the type of the second device, so as to select from (a) to (c) above according to actual needs. Optionally, other devices besides the host chip can also obtain the full-link topology information, so as to select from (a) to (c) above according to actual needs.

[0276] Next, referring to Figure 23, and taking the host chip 1 in the first device as an example, we will continue to illustrate the in-band and out-of-band methods.

[0277] (1) When the host chip 1 knows the topology information of the entire link and the first identifier indicating the second device, it selects the in-band, out-of-band or a combination of in-band and out-of-band modes according to the position of the second device in the link and the type of the second device.

[0278] (2) Corresponding to (b) above, if the second device is the optical module 1 in the first device, the host chip 1 or the CPU in the first device and other control systems (or the two can work together, such as the host chip 1 reporting an interrupt to the CPU and the CPU responding to the interrupt) establish a message path with the optical module 1 through the out-of-band CMIS and other control interfaces, and implement the LT process (e.g., configure link parameters and obtain response information).

[0279] For example, the host chip 1 or CPU may have X control interfaces for interfacing with Y optical modules (each optical module needs to have an independent control interface). When the values ​​of X and Y are different, there is a map from X to Y. When the second device is one of the Y optical modules, the ModSelL signal of the second device can be controlled to select the second device according to the map from X to Y. The ModSelL signal is, for example, the chip select signal of the CMIS control interface of the optical module defined by the QSFPDD-800 protocol.

[0280] (3) Corresponding to (c) above, if the second device is optical module 2 (standard LPO optical module) within the second device, then the host chip 1 fills the first identifier of optical module 2 in the first transmission direction, i.e., local segment pointer = 3, embeds the unified AN / LT extended frame for transmission, and transmits it to the host chip 2 via the repeater, optical module 1, and optical module 2. Specifically, for the repeater (whose own local segment pointer = 1), since the local segment pointer carried by the unified AN / LT extended frame is different from its own local segment pointer, it transmits the unified AN / LT extended frame to optical module 1 without parsing. For optical module 1 (whose own local segment pointer = 2), since the local segment pointer carried by the unified AN / LT extended frame is different from its own local segment pointer, it transmits the unified AN / LT extended frame to optical module 2 without parsing. For optical module 2, since it is a standard LPO optical module and does not have the ability to parse the unified AN / LT extended frame in-band (i.e., it does not support DME encoding / decoding), it transmits the unified AN / LT extended frame to the host chip 2.

[0281] (4) The host chip 2 receives the unified AN / LT extended frame and parses the local segment pointer field in the unified AN / LT extended frame to obtain the first identifier, i.e., local segment pointer = 3. The host chip 2 determines that the second device is the optical module 2 in the second device, i.e. the standard LPO optical module, which does not have the ability to parse the unified AN / LT extended frame in-band.

[0282] (5) The control system such as the CPU in the host chip 2 or the second device (or both can be used together, see the description in (2)) establishes a message path connection with the optical module 2 through the control interface such as CMIS, configures the link parameters corresponding to the optical module 2 according to the control information carried in the control field and other fields in the Unified AN / LT extension received by the host chip 2, and reads the status information of the optical module 2.

[0283] (6) Host chip 2 fills the segment pointer echo field in the unified AN / LT extended frame with the value of the local segment pointer field, resulting in segment pointer echo = 3. Host chip 2 also fills the status field in the unified AN / LT extended frame with the read status information, resulting in a response frame (also a unified AN / LT extended frame). After host chip 2 sends the response frame, the response frame is sequentially transmitted to host chip 1 through optical module 2, optical module 1, and repeater. The reason for the transmission of optical module 2, optical module 1, and repeater is explained in (3), and will not be repeated here.

[0284] (7) After receiving the response frame, the host chip 1 parses the segment pointer echo field and status field in the response frame to obtain the response information carried by segment pointer echo=3 and status field. Then the host chip 1 can determine that the optical module 2 implements this LT process. Then the host chip 1 can enter the next LT process according to the actual needs. For example, the host chip 1 can jump to (1).

[0285] Through the technical solution of this application, the host chip 1 of the first device communicates with the optical module of the second device via AN or LT in a specified manner, thereby enabling the host chip 1 of the first device to control or adjust the optical module of the second device.

[0286] When the optical module of the second device lacks in-band capability (e.g., an LPO optical module), the host chip of the first device establishes an AN or LT procedure with the optical module of the second device by specifying the optical module. However, since the optical module of the second device lacks in-band capability, the specification request frame sent by the host chip of the first device is received by the host chip of the second device. The host chip of the second device parses the specification request frame and adjusts the TX parameters of the optical module of the second device based on CMIS through the management interface. The management interface is, for example, I... 2The second device uses a C interface. In this way, the optical module of the second device is treated as a "dumb terminal" device during the AN or LT process, while the host chip of the second device becomes a proxy device for the host chip of the first device, performing adjustments to the TX parameters of the optical module of the second device, thereby enabling the host chip of the first device to control the TX of the optical module of the second device.

[0287] For example, when the optical module of the second device is a standard LPO optical module, when the host chip 1 specifies AN or LT with the standard LPO optical module, the host chip 2 of the second device can perform AN or LT on behalf of the standard LPO optical module as described above. The host chip 2 can also return a response to the host chip 1 on behalf of the standard LPO optical module, thereby realizing that the host chip 1 of the first device controls or adjusts the standard LPO optical module of the second device.

[0288] When the optical module of the second device has in-band capability (e.g., oDSP optical module), the host chip of the first device can directly establish AN or LT process with the optical module of the second device by specifying the optical module of the second device, thereby completing the TX parameters of the optical module of the second device.

[0289] For example, if the optical module of the second device is an ODSP optical module, then the host chip 2 of the second device does not need to perform the work. The optical module of the second device can complete the AN or LT on its own and return a response to the host chip 1, thereby realizing that the host chip 1 of the first device can directly control or adjust the optical module of the second device.

[0290] In the above implementation, in-band capability refers to the ability to resolve DME frames. Having in-band capability means operating in retiming mode; conversely, lacking in-band capability means operating in linear mode. Some optical modules determine their in-band capability based on the direction of optical signal transmission, such as linear receive optics (LRO) modules.

[0291] In the above implementation, the in-band capability of the optical module of the second device is configurable. That is, the optical module of the second device can be configured to have in-band capability or not. In this case, the host chip of the first device is unaware of the current operating mode of the optical module of the second device. In this scenario, the host chip of the first device requests (or desires) to establish an AN or LT procedure with the optical module of the second device by specifying it. If the optical module of the second device currently has in-band capability, then, according to the aforementioned implementation, the host chip of the first device and the optical module of the second device directly implement the AN or LT procedure. If the optical module of the second device currently does not have in-band capability, then, according to the aforementioned implementation, the host chip of the first device controls the TX parameters of the optical module of the second device through a proxy of the host chip of the second device.

[0292] In the above implementation, the host chip of the first device does not need to know the operating mode of the optical module of the second device. The host chip of the first device requests to establish an AN or LT procedure with the optical module of the second device by specifying the optical module of the second device. Furthermore, the specified request frame (such as the first frame) sent by the host chip of the first device also includes request proxy information, which requests the host chip of the second device to act as an agent for the host chip of the first device in controlling the optical module of the second device. Based on the specified request frame, the host chip of the second device determines the operating mode of the optical module of the second device, and then performs TX parameter control of the optical module of the second device according to the operating mode of the optical module.

[0293] In related technologies, the TX of the optical module of the second device is optimized by performing LT or AN between the host chip of the second device and the optical module of the second device. However, the transmission quality of the TX of the optical module of the second device may be affected by the host chip of the first device. Therefore, simply performing LT or AN between the host chip of the second device and the optical module of the second device can only achieve limited performance optimization for the TX of the optical module of the second device.

[0294] In this embodiment, the host chip of the first device establishes a message path with the optical module of the second device in a specified manner and implements the LT or AN process. In this way, the TX parameters of the specified optical module of the second device are adjusted through the message path, thereby realizing the control of the TX of the optical module of the second device by the host chip of the first device. This control process takes into account the influence of the host chip of the first device on the TX parameters of the optical module of the second device, ensures the accuracy of the TX parameters of the optical module of the second device, improves the transmission quality of the TX of the optical module of the second device, and achieves a large degree of performance optimization.

[0295] The above text mentions the message path MsgBus. This application embodiment can obtain the MsgBus based on the first identifier described above to transmit the aforementioned unified AN / LT extended frame, thereby realizing unicast, broadcast, or multicast mechanisms. These mechanisms are applicable to lane-symmetric scenarios (see Figure 24) and also to lane-asymmetric scenarios (see Figure 25). For example, when the repeater is a gearbox, the lanes on both sides of the gearbox are asymmetrical. Alternatively, the lanes on both sides of an optical module (including but not limited to an oDSP optical module) may also be asymmetrical. Lane asymmetry means that the total number of lanes on both sides of a device is different; one side of a device is closer to host chip 1, and the other side is closer to host chip 2. In lane asymmetry scenarios, the number of lanes changes throughout the entire link. The upstream and downstream lanes in a certain transmission direction are not a one-to-one mapping relationship, and there may be multiple mutual influence relationships between upstream and downstream lanes in a certain transmission direction under different types of devices and link topologies.

[0296] In a lane-symmetrical scenario, there is a MsgBus between corresponding lanes. For example, referring to Figure 24, there is a MsgBus between lane 0 of the first device (interface A) and lane 0 of the second device (interface B), and there is a MsgBus between lane 1 of the first device (interface A) and lane 1 of the second device (interface B). Referring to Figure 26, in a lane-symmetrical scenario, all lanes are treated as MsgBus (message path, also known as message bus). The system receives and checks whether the extended frame satisfies the following conditions: the segment identifier selection (semgent pointer select field) is equivalent to (==) the remote segment pointer or (||) the local segment point. If not, reception and detection continue. If satisfied, the system matches the lane receive channel number (RXID) M, queries the channel mapping relationship (laneswap), and finds the lane transmit channel number (TXID) N corresponding to M. This allows for the formation of a MsgBus between the lane (e.g., the lane receiving the extended frame, with its receive channel number M and transmit channel number N) and the host chip, and communication via MsgBus, including but not limited to transparent transmission of extended frames.

[0297] In scenarios with asymmetric lanes, lanes are not in a one-to-one correspondence. Referring to Figure 27, a lane is selected as the MsgBus for the lane group. The MsgBus receives and checks whether the extended frame satisfies the following: the segment identifier selection (semgent pointer select field, for example, carrying the 1st device identifier) ​​is equivalent to (==) the remote segment pointer or (||) the local segment point. If not, it can continue to receive and check. If it satisfies, it obtains the 2nd lane identifier from the extended frame, matches the lane receive channel number (RXID) M, queries the laneswap relationship, and finds the lane transmit channel number (TXID) N corresponding to M. Thus, an MsgBus can be formed between the lane (such as the lane indicated by the 2nd lane identifier, the receive channel number M, and the transmit channel number N of this lane) and the host chip, and communication can be carried out using the MsgBus, including but not limited to extended frame termination and regeneration.

[0298] For example, embodiments of this application may obtain MsgBus based on a first identifier. For example, the methods for obtaining MsgBus include, but are not limited to, the following three.

[0299] The first acquisition method is the banding scheme. For devices with asymmetrical lanes (including but not limited to gearboxes), all lanes within the device's interface are grouped together. One lane in the lane group is selected as the MsgBus. The MsgBus (which lane is used to transmit the unified AN / LT extended frame) and the control mechanism (which lane the AN / LT procedure is implemented on, or in other words, the control object targeted by the unified AN / LT extended frame) are separated and independent. Therefore, devices with asymmetrical lanes can be simplified to single-lane devices, and the AN or LT procedure can be implemented directly as described above.

[0300] For example, as shown in Figure 25, in a 2:1 mapping (2 lanes become 1 lane), two lanes can be grouped into one lane group, which appears as one lane group from the system's perspective. Any lane in the lane group (such as lane 0) can be used as the MsgBus, while the other lane (such as lane 1) is not represented by the MsgBus, i.e., it is not used as the MsgBus. From the system's perspective, the MsgBus on both sides of the interface still maintain a one-to-one mapping relationship. The MsgBus and the control mechanism are separated. Any lane in the lane group is used to transmit the unified AN / LT extended frame, while each lane in the lane group (which can be either lane 0 or lane 1, separate and independent from lane 0 which is used as the MsgBus) can use the unified AN / LT extended frame to implement the AN procedure or the LT procedure.

[0301] For example, each lane within a lane group can meet certain design requirements (such as equal-length design, where the AN and LT processes of all lanes within the lane group can be bound together for control), effectively improving the training efficiency of initial parameters (coarse tuning). For instance, all lanes within a lane group can use the same parameter tuning results (such as the same link parameters).

[0302] For example, if the link loss relationship of each lane within a lane group is fixed, then each lane within the lane group can be differentiated by adjusting its parameters based on this link loss relationship. This link loss relationship can be pre-stored in the device according to the hardware design or configured by the CPU. For instance, after performing the AN or LT process on lane0, the parameter adjustment result of lane1 (such as the link parameters corresponding to lane0) can be calculated based on the parameter adjustment result of lane0 (such as the link parameters corresponding to lane0) according to the link loss relationship.

[0303] The first device selects one lane from the lanegroup within its interface as the MsgBus for transmitting unified AN / LT extended frames. The MsgBus selection can be based on a static principle, such as fixing it to lane 0 (both the first and second devices can be configured to determine which lane is used). In this case, a MsgBus exists between the first and second devices by default, eliminating the need for a separate MsgBus establishment. Alternatively, the MsgBus selection can be based on a dynamic principle, such as selecting lane X with a better link signal. In this case, a separate MsgBus needs to be established between the first and second devices before transmitting the first frame. Another option is to first design the MsgBus selection based on a static principle and then on a dynamic principle. For example, first designing based on a static principle, selecting lane 0 as the MsgBus, and then designing based on a dynamic principle, selecting lane X with a better link signal as the MsgBus. When laneX is different from lane0, it is equivalent to updating MsgBus from lane0 to laneX. When laneX is the same as lane0, it is equivalent to verifying that the MsgBus link signal selected based on the static principle is better.

[0304] For example, before the first device sends the first frame to the second device, the method further includes: the first device acquiring the second frame, the second frame carrying a first identifier, the first identifier indicating the first channel of the second device and the second device, the frame type of the second frame being different from the frame type of the first frame; the first device sending the second frame to the second device, the second frame being used to request the first device to establish a message path with the first channel of the second device, the message path being used to transmit the first frame.

[0305] In this design, since the second frame is used to request the establishment of a message path, and the first frame is used to specify the second device, the frame type of the second frame differs from that of the first frame. For example, the value of the frame type in the second frame differs from that in the first frame. Furthermore, after receiving the second frame, the second device, since the first identifier indicates itself and also its first channel, determines to establish a message path with the first device using its first channel to transmit the first frame. For example, the second frame may also carry an identifier indicating the second channel of the first device, such that the message path is located between the second channel and the first channel of the first device. The frame structure of the second frame can be referenced from the frame structure of the first frame described above, and the method of carrying the identifier in the second frame can also be referenced from the method of carrying the identifier in the first frame described above, and will not be repeated here.

[0306] The second acquisition method is the code division scheme. According to the code division multiplexing principle, one lane is regarded as two sublanes. Different sublanes can be indicated by different identifiers. For example, the 2nd lane identifier included in the first identifier in the above description can further indicate the sublane. Thus, the first identifier indicates the sublane in the first channel of the second device and the second device, thereby enabling the establishment of MsgBus between the lane and the sublane based on the first identifier.

[0307] For example, as shown in Figure 25, in the 2:1 mapping, lane0 of the second device (interface B) is regarded as sublane0 and sublane1. The first identifier carried in the second frame indicates the device and interface B.lane0.sublane0 where interface B is located. The second frame can establish MsgBus between interface A.lane0 and interface B.lane0.sublane0 of the first device (interface A), and between interface A.lane1 and interface B.lane0.sublane1 of the first device. From the system perspective, two independent MsgBus based on sublane are established on one lane, and the MsgBus of both sides (interface A and interface B) still maintain a one-to-one mapping relationship.

[0308] For example, code division schemes and clustering schemes can be used in combination. For instance, a lane group can be used to designate a lane as the MsgBus. The first device identifier in the first identifier indicates the second device, and the second lane identifier indicates different sublanes within the same lane group. This allows MsgBus to be established between any lane and sublane (belonging to the same lane) of different devices based on the MsgBus and the first identifier (including the first device identifier and the second lane identifier). Furthermore, the MsgBus and the control mechanism are separate and independent.

[0309] The third acquisition method is a time-division multiplexing scheme. Following the time-division multiplexing principle, a MsgBus is established in time-division between interface A.lane0 and interface B.lane0, and between interface A.lane1 and interface B.lane0. From a system perspective, this allows for two time-division MsgBus on a single lane, maintaining a one-to-one mapping between the MsgBus on both sides of the interface. Furthermore, the MsgBus and control mechanism are separate and independent.

[0310] The AN protocol itself is based on a single lane. Therefore, in lane asymmetry scenarios, simplifying multiple lanes into one lane has no impact on the implementation of the AN process. However, in lane symmetry scenarios, the LT process can be implemented in parallel and independently across multiple lanes. In lane asymmetry scenarios, however, the LT process can only be implemented on a single lane (i.e., the lane serving as the MsgBus), reducing efficiency. Therefore, embodiments of this application provide a broadcast / multicast mechanism to achieve the effect of parallel and independent implementation across multiple lanes even when the LT process is implemented on a single lane, thus avoiding the impact of lane asymmetry on efficiency.

[0311] In lane asymmetry scenarios, a single interface of a device can contain multiple lanes, which are physical lanes. For example, taking optical module 1 in Figure 28 as an example, the HostSide side has 2 lanes, and the MediaSide side has 1 lane. The number of lanes on both sides of optical module 1 is not equal (optical module 1 performs 2:1 rate and lane transformation). The link may include devices with multiple lane asymmetry. In addition, repeater 1 performs 4:2 rate and lane transformation, optical module 2 performs 1:2 rate and lane transformation, and repeater 2 performs 2:1 rate and lane transformation.

[0312] For example, in a unified AN or unified LT process, the lane rates on both sides of the device differ in a lane asymmetry scenario. In one example, when the device terminates and regenerates a unified AN extended frame or a unified LT extended frame, if the frame format defined by the AN or LT protocol is the same, both sides of the device can still follow the same frame format parsing and padding rules and are unaware of the lane rate change. In another example, the link between the first and second devices includes at least one third device, and the lanes on both sides of the third device are asymmetric. The method provided in this application embodiment further includes: the third device receiving a first frame; the third device converting the first frame into a fourth frame; the fourth frame being used to request the first device and the second device to implement an AN or LT process; and the third device sending the fourth frame to the second device.

[0313] In one example, the first frame is in non-return-to-zero (NRZ) format, and the fourth frame is in pulse amplitude modulation (PAM) format, such as PAM4. In another example, the first frame is in PAM format, and the fourth frame is in NRZ format. During the transmission of the unified LT extended frame, when the NRZ and PAM4 rates change on both sides of the device (e.g., from 2x25G to 1x50G), because the LT frame formats defined by NRZ and PAM are different, the device needs to parse and fill the unified LT extended frame according to both NRZ and PAM formats respectively.

[0314] For MsgBus, referring to Figure 29, based on a single lane (e.g., lane 0), MsgBus can be numbered according to each segment in the link (e.g., MsgBus1 to MsgBus5). On the host chip side, MsgBus transmit / receive markers are Yt (receive) and Xt (transmit). On the middle device side (including optical modules), MsgBus transmit / receive markers are Xi (receive) and Yi (transmit), while on the other side, they are Zj (transmit) and Kj (receive). The {Xi, Yi, Zj, Kj} of MsgBus are used in a bounded manner. For example, based on the laneswap and frame (e.g., unified LT extended frame) transmission direction described above, determining one of Xi, Yi, Zj, or Kj will yield the other three. The host chip terminates frames, while intermediate devices either transmit frames transparently (if DME encoding / decoding is not supported) or terminate and regenerate frames (if DME encoding / decoding is supported). Intermediate devices can be categorized as upstream and downstream based on the frame transmission direction. For example, taking Xi of optical module 1 as an example, for the first transmission direction, the upstream could be Zj and Xi of repeater 1, or Xt of host chip 1, while the downstream could be Xi and Zj of optical module 2, etc.

[0315] After receiving the extended frame, Xi of optical module 1 sends the extended frame to Zj, which can be considered as a forward transmission. Forward transmission means that the transmission direction of sending the extended frame is the same as the transmission direction of receiving the extended frame. After receiving the extended frame, Xi of optical module 1 sends the extended frame to Yi, which can be considered as a backward transmission. Backward transmission means that the transmission direction of sending the extended frame is opposite to the transmission direction of receiving the extended frame.

[0316] For the host chip side, the MsgBus communication method is shown in Figure 30. Based on the end-to-end topology information, the host chip can use different MsgBus acquisition methods to establish MsgBus connections with specified objects (second devices, second device lanes, or second device units, etc.) in the end-to-end connection, according to actual needs. As mentioned earlier, MsgBus can be used to transmit the first frame, which can be unicast (unicast frame or unicast request), broadcast (broadcast frame or broadcast request), or multicast (multicast frame or multicast request). These connections are independent between different interfaces. A unicast request refers to the host chip communicating with a single specified object via MsgBus, while a broadcast request refers to the host chip communicating with multiple specified objects via MsgBus.

[0317] The host chip can select different types of requests based on actual needs. For example, it can first use broadcast requests to coarsely adjust and improve the efficiency of initial parameter configuration (the parameters of multiple objects can be configured at once during the coarse adjustment phase, saving time), and then use unicast requests to fine-tune and improve link performance (the parameters of a single object can be adjusted at a time during the fine adjustment phase, avoiding link oscillations). Alternatively, it can use broadcast requests to quickly recover when a fault occurs. When there are devices with asymmetric lane numbers in the link topology of this interface, the entire link can be uniformly built based on a single lane to construct a single MsgBus, simplifying the entire link message path topology. When there are no devices with asymmetric lane numbers in the link topology of the interface, the entire link can be built based on multiple lanes to obtain multiple MsgBus, which can communicate independently and in parallel at the lane granularity.

[0318] For example, referring to Figure 30, the host chip can determine whether a specified object (such as a device) supports DME decoding, whether a gearbox exists in the entire link (in non-lane symmetric scenarios), and whether a broadcast request should be sent based on the segment topology discovery process described above. If the device supports DME decoding, a MsgBus is established in-band. If the device does not support DME decoding, a MsgBus can be established out-of-band through control interfaces such as CMIS. If a gearbox does not exist in the entire link, a MsgBus can be established as shown in Figure 26 (different lanes are arranged side-by-side). If a gearbox exists in the entire link, a MsgBus can be established as shown in Figure 27 (a single lane in the lane group is used as the MsgBus). If a broadcast request is sent, the broadcast request carries a broadcast pointer (and may also carry a broadcast mask) to indicate multiple devices (or lanes, parameter spaces, etc.) to facilitate obtaining responses from multiple devices. If no broadcast request is sent (i.e., a unicast request is sent), the unicast request carries a segment pointer to indicate a single device (or lane, parameter space, etc.) to facilitate obtaining responses from a single device.

[0319] For the intermediate device side, the communication method of MsgBus can be seen in Figure 31. The intermediate device can determine whether it supports DME decoding. If it does not support DME decoding, it will pass through the request (such as the first frame). If it supports DME decoding, it will establish MsgBus using the in-band method. If there is no gearbox, the method shown in Figure 26 is used to establish MsgBus. If there is a gearbox, the method shown in Figure 27 is used to establish MsgBus. The intermediate device can choose different MsgBus construction methods (in-band / out-of-band, single MsgBus / multiple MsgBus) according to different device types.

[0320] Intermediate devices can perform frame detection to facilitate frame termination and regeneration. Specifically, the intermediate device determines the initiator (either a device within the first or second device) and the designated object of different types of first frames based on its own first identifier. For example, if the first identifier carried by the first frame is an identifier in the first transmission direction, the initiator is a device within the first device (e.g., host chip 1); if the requested first identifier is an identifier in the second transmission direction, the initiator is a device within the second device (e.g., host chip 2).

[0321] If the initiator is a device within the first device, the intermediate device determines the current MsgBus RX to be Xi based on the initiator. If the initiator is a device within the second device, the intermediate device determines the current MsgBus RX to be Kj based on the initiator. The intermediate device can obtain the following information based on the RX of the lane corresponding to the current MsgBus RX and the laneswap relationship.

[0322] The TX of the lane on the same side (backhaul) as the initiator. If the initiator is a device within the first device, the TX corresponding to MsgBus is Yi; if the initiator is a device within the second device, the TX corresponding to MsgBus is Zj.

[0323] The TX of the lane on the opposite side (fronthaul) of the initiator. If the initiator is a device in the first device, the TX corresponding to MsgBus is Zj; if the initiator is a device in the second device, the TX corresponding to MsgBus is Yi.

[0324] The RX of the lane opposite to the initiator. If the initiator is a device within the first device, its corresponding MsgBus RX is Kj; if the initiator is a device within the second device, its corresponding MsgBus RX is Xi. A lane includes TX and RX. In Figure 31 above, N1 and N2 refer to the TXID of the lane whose RX corresponds to the current MsgBus RX and is on the same side (backhaul). M1 and M2 refer to the RXID of the lane whose RX corresponds to the current MsgBus RX and is on the opposite side (forwardhaul).

[0325] M (M1 and M2) and N (N1 and N2) can represent the RXID and TXID of different lanes on both sides of the intermediate device, respectively. The link parameters of RXID and TXID both affect the signal quality received by the host chip's RX. In one example, M and N are scalars representing the RXID and TXID of a single lane. In another example, M and N can be multi-element arrays, where each element indicates at least one lane or unit. After the intermediate device performs the AN / LT procedure for the specified object, it can fill the first frame with status information according to the first identifier of the intermediate device to obtain a response frame, and then transmit or forward the response frame. The transmission and forward transmission are full-duplex and do not affect each other. For example, when it is necessary to fill the status information and then transmit the response frame, it will not affect the forward transmission process. Similarly, when it is necessary to fill the status information and then transmit the response frame, it will not affect the transmission process.

[0326] The response frame is designated as the third frame. If the first device sends the first frame and requests the second device to send it back, the first device receives the third frame sent by the second device. The third frame carries a first identifier and response information. Alternatively, if the first device sends the first frame and requests the second device to forward it, the device opposite the first device (e.g., a device located in a different device than the first device) receives the third frame sent by the second device. The first identifier is used to indicate the second device (or its lane, unit, etc.), and is used by the first device to determine that the response information corresponds to the second device (or its lane, unit, etc.). The response information includes, but is not limited to: negotiation results (such as the results obtained from implementing the AN process), status information (such as frame locking status or LT training complete status), or segment diagnostic information (such as the segment's SNR or BER).

[0327] Regarding this response information, embodiments of this application can distinguish the response information either by using a first identifier (e.g., different second devices also fill in the first identifier of the second device when filling the response information in the third frame), or by using the following methods:

[0328] The response information is distinguished by the page order of different next pages, such as different second devices filling response information into different next pages;

[0329] The response information is distinguished by the domain segment order of different domain segments, such as different second devices filling response information into different domain segments in the same next page;

[0330] The response information is distinguished by the bit order of different bits in the same domain segment, such as different second devices filling different bits in the same domain segment with response information.

[0331] For example, embodiments of this application can achieve segmented diagnosis.

[0332] In related technologies, the notification during the LT or AN process is implemented segment by segment. For example, host chip 1 in the first device notifies optical module 1 in the first device, optical module 1 notifies optical module 2 in the second device, and optical module 2 then notifies host chip 2 in the second device. If any segment fails in LT or AN, host chip 2 can only determine that there is an LT or AN fault in the entire link, but cannot determine which specific segment of the entire link has the LT or AN fault.

[0333] In this embodiment of the application, since different second devices can fill in response information (such as status information, segment diagnostic information, etc.), the first device can understand the LT or AN status of each segment in the entire link in real time. Thus, when a segment has an LT or AN fault, the first device can locate the fault in a timely manner.

[0334] Furthermore, in related technologies, the notification during the LT or AN process is implemented using only one bit. The response information in this application embodiment can include multiple bits (such as multiple domain segments, multiple next pages, etc.), thereby expanding the carried response information and enabling the carrying of LT or AN response information from multiple segments throughout the entire link.

[0335] As described above, this application provides a broadcast / multicast mechanism to enable parallel and independent operation across multiple lanes even when implementing the LT process on a single lane, thus avoiding the impact of lane asymmetry on efficiency. In the broadcast mechanism, the first frame is a broadcast frame (or broadcast request), which may include extended subframes. Taking an extended subframe including an unformatted type next page as an example, the broadcast frame will be explained in conjunction with Figures 32 to 35.

[0336] Referring to Figure 32, device-level broadcast configuration (1st broadcast configure). The host chip carries the local broadcast pointer or remote broadcast pointer in the broadcast pointer select field (similar to the segment pointer select field mentioned above) in the broadcast frame, thereby configuring multiple devices at once. The host chip also indicates the devices to be masked through the broadcast mask in the broadcast frame. The masked devices can be those that do not support DME encoding / decoding, or those that support DME encoding / decoding but do not require configuration during the unified AN / LT process. The broadcast mask can be used to mask any specified device in the entire link according to actual needs, such as supporting the masking of devices whose local segment pointer or remote segment pointer is greater than or less than the broadcast mask. The broadcast mask of different broadcast frames can be the same or different.

[0337] After a blocked device identifies the broadcast mask in a broadcast frame, it indicates that it will not respond to the broadcast frame. The host chip ignores the response of the blocked device. The broadcast mask supports indicating the blocked device using a one-hot value, meaning that each device corresponds to an independent bit in the broadcast mask. For example, if there are 5 devices in the link, the broadcast mask consists of 5 bits, and each of the 5 bits corresponds one-to-one with one of the 5 devices.

[0338] The broadcast pointer select field and broadcast mask support multi-level extensions, such as 2nd lane level or 3rd unit level broadcast pointer select field and broadcast mask. The settings for each level of broadcast pointer select field and broadcast mask can follow the above rules and are independent of each other, supporting flexible specification of objects at each level (device level, lane level, or unit level). Each device can independently fill in response information based on its own local segment pointer or remote segment pointer and the type of broadcast request (such as type 3 broadcast request below). Device-level broadcast configuration can be applied to the unified AN / LT process to achieve rapid initial parameter configuration or rapid fault recovery, improving configuration efficiency.

[0339] In one example, the broadcast frame shown in Figure 32 includes a frame type field, a broadcast pointer select field (indicating multiple devices), a broadcast mask field (masking at least one device), a segment request control field (carrying an extended broadcast mask (masking a lane or unit), command or rsv, etc.), and a segment response status field (carrying segment device echo, status or rsv, etc., for device filling response information).

[0340] Referring to Figure 33, lane-level / unit-level broadcast configuration (2nd / 3rd broadcast configure). The host chip specifies an individual device in the link topology through the segment pointer select field (sender-side padding for broadcast frames) and the segment pointer echo field (receiver-side padding for broadcast frames). Broadcast frames can carry extended broadcast pointer select and extended broadcast mask fields, thereby configuring multiple objects (lanes or units) within a single device at once.

[0341] A single device identifies multiple objects by recognizing the extended broadcast pointer select field and identifies objects masked by the extended broadcast mask field. Masked objects do not respond to broadcast frames, and the host chip ignores their responses. Each device can independently populate response information based on the type of broadcast frame (such as broadcast requests of type 2 below). Lane-level / unit-level broadcast configuration can be applied to the unified AN / LT process to flexibly specify the initial parameters of multiple objects on a single device for rapid configuration or rapid fault recovery, improving configuration efficiency while avoiding impact on other devices.

[0342] In one example, the broadcast frame shown in Figure 33 includes a frame type field, a segment pointer select field (indicating a single device), a segment pointer echo field (for single device filling), a segment request control field (carrying extended broadcast pointer select (indicating lane or unit), extended broadcast mask (masking lane or unit), command or rsv, etc.), and a segment response status field (carrying segment device echo, status, or rsv, etc., for device filling response information).

[0343] Referring to Figure 34, the first broadcast query is performed. The host chip uses the broadcast pointer select field (similar to the segment pointer select field mentioned above) in the broadcast frame to carry the local broadcast pointer or remote broadcast pointer, thereby querying multiple devices at once. The host chip also indicates the masked devices through the broadcast mask in the broadcast frame. After recognizing the broadcast mask in the broadcast frame, the masked device indicates that it will not respond to the broadcast frame, and the host chip ignores the response of the masked device.

[0344] Unlike device-level, lane-level, or unit-level broadcast configurations, broadcast queries require devices to fill in more response information. Therefore, each device can fill response information into a group of next pages consisting of one next page (or multiple next pages).

[0345] The broadcast pointer select field and broadcast mask support multi-level extensions, such as 2nd lane level or 3rd unit level broadcast pointer select field and broadcast mask. The settings for each level of broadcast pointer select field and broadcast mask can follow the above rules and are independent of each other, supporting flexible specification of objects at each level (device level, lane level, or unit level). Each device can independently fill in response information based on its own local segment pointer or remote segment pointer and the type of broadcast request (such as type 5 broadcast request below). Device-level broadcast queries can be applied to the unified AN / LT process for quick querying of status information of multiple devices. The host chip can determine subsequent control strategies based on the response information returned by each device (such as SNR, BER, or equalizer parameters), such as the purpose of the next broadcast frame to be sent (e.g., parameter adjustment, mode switching, or DFX fault diagnosis).

[0346] In one example, the broadcast frame shown in Figure 34 includes a frame type field, a broadcast pointer select field (indicating multiple devices), a broadcast mask field (masking at least one device), a segment request control field (carrying an extended broadcast mask (masking a lane or unit), command or rsv, etc.), and a segment response status field (carrying segment device echo, status or rsv, etc., for device filling response information).

[0347] Referring to Figure 35, lane-level / unit-level broadcast query (2nd / 3rd broadcast query). The host chip specifies a single device in the link topology through the segment pointer select field (sender-side padding for broadcast frames) and the segment pointer echo field (receiver-side padding for broadcast frames). Broadcast frames can carry extended broadcast pointer select and extended broadcast mask fields, thereby querying multiple objects (lanes or units) within a single device at once.

[0348] A single device identifies multiple objects by recognizing the extended broadcast pointer select field and identifies objects masked by the extended broadcast mask field. Masked objects do not respond to broadcast frames, and the host chip ignores their responses. Each device can independently fill in response information based on the type of broadcast frame (such as a broadcast request of type 4 below). Therefore, each device can fill in response information into one next page (or a group of next pages).

[0349] Different devices can use the same or different next pages. For example, in Figure 29, when host chip 2 queries the status information of the repeater, the repeater can fill the four next pages with the status information corresponding to lanes 0 to 3 of the repeater. When host chip 2 queries the status information of optical module 1, optical module 1 can fill the two next pages with the status information corresponding to lanes 0 and 1 of optical module 1. When filling the status information, the device can also fill in the object identifier (such as lane-level identifier or unit-level identifier) ​​to distinguish the status information corresponding to different objects. Lane-level / unit-level broadcast queries can be applied to the unified AN / LT process to flexibly specify the status information of multiple objects of a single device for fast querying, improve query efficiency, and query the status information of different objects for different devices.

[0350] In one example, the broadcast frame shown in Figure 35 includes a frame type field, a segment pointer select field (indicating a single device), a segment pointer echo field (for single device filling), a segment request control field (carrying extended broadcast pointer select (indicating lane or unit), extended broadcast mask (masking lane or unit), command or rsv, etc.), and a segment response status field (carrying segment device echo, status, or rsv, etc., for device filling response information).

[0351] In an exemplary embodiment, the types of broadcast frames (broadcast requests) include, but are not limited to, the following nine types, and different types of broadcast requests may have different requirements for the device response. Exemplarily, there are multiple response messages. Multiple response messages are located in the same field segment of the same extended subframe included in the third frame. Alternatively, multiple response messages are located in different field segments of the same extended subframe included in the third frame. Alternatively, multiple response messages are located in different extended subframes included in the third frame.

[0352] The first type, TYPE1 Requests, specifies that the designated object's status updated information is not postbacked or transmitted forward. After processing a TYPE1 Request, the designated object (such as a device, physical channel lane, or parameter space unit, which will not be elaborated upon below) does not need to post back (or transmit forward) response information. The host chip initiating the TYPE1 Request (or the remote host chip initiating the TYPE1 Request) does not need to recognize the response information posted back (or transmitted forward) by the designated object, as in some DFX test commands.

[0353] The second type, TYPE2 Requests, includes status-updated information in the same common field (same page) postback. After a specified object completes the TYPE2 Requests processing, it posts back the updated status information in the agreed-upon common field. For example, each device can support updating the status information in the same common field using unified logical operation rules such as "wired-AND," "wired-OR," or "read + 1 write-back." If one device updates status to 0, the common status bit field equals 0; if one device updates status to 1, the common status bit field equals 1. Alternatively, each level of device can sequentially perform a read + 1 write-back operation on the common field according to the data flow. The host chip of the TYPE2 Request initiator identifies the final returned common status field information.

[0354] The third type, TYPE3 Requests, includes status-updated information returned in different fields (same page) postbacks. After a specified object completes the TYPE3 Request processing, it returns updated status information in different fields. For example, after each device determines the initiator of the TYPE3 Request (such as a device in the first device or a device in the second device, or a host chip), it fills its own status information in different fields corresponding to the extended frame and returns it back using its own local segment pointer (for devices initiating the first device) or remote segment pointer (for devices initiating the second device). The TYPE3 Request initiator identifies different fields and obtains the status information returned by each device.

[0355] The fourth type, TYPE4 Requests, involves different next pages (single device) postbacking updated status information. This specifies that after multiple objects (lanes or units) within a single device complete TYPE4 Request processing, they post back updated status information on different next pages (or groups of next pages). The TYPE4 Request initiator distinguishes the updated status information returned by each object by identifying the page order or identifier within the next page.

[0356] The fifth type, TYPE5 Requests, involves different next pages (multiple devices) postbacking updated status information. After multiple devices complete the TYPE5 Request processing, they post back updated status information on different next pages (or groups of next pages). The TYPE5 Request initiator distinguishes the updated status information returned by each object by identifying the page order or identifier within the next page.

[0357] The sixth type, TYPE6 Requests, includes forwarded status updates within the same common field (same page). After a specified object completes TYPE6 Request processing, it forwards updated status information within the agreed-upon common field. For example, each device can support updating the status information of the same common field using unified logical operation rules such as "wired-AND," "wired-OR," or "read + 1 write-back." If one device updates status to 0, the common status bit field equals 0; if one device updates status to 1, the common status bit field equals 1. Alternatively, devices at each level can sequentially perform read + 1 write-back operations on the common field according to the data flow. The remote end (e.g., the host chip) of the TYPE6 Request initiator identifies the final forwarded common field information.

[0358] For example, each device can parse and fill the segment pointer common domain in a "read + 1 write back" manner. The remote host chip of the TYPE6 Requests initiator identifies the final forward common domain information to determine the number of device levels in the link topology.

[0359] The seventh type, TYPE7 Requests, includes forwarded status updates in different fields (same page). After a specified object completes the TYPE7 Requests processing, it forwards the updated status information in different fields. For example, after each device determines the initiator of the TYPE7 Requests (such as a device of the first device or a device of the second device, the device is, for example, the host chip), it forwards its own status information by filling in the different fields corresponding to the extended frame through its own local segment pointer (for devices initiating the first device) or remote segment pointer (for devices initiating the second device). The remote end of the TYPE7 Requests initiator identifies the different fields and obtains the forwarded updated status information of each device.

[0360] For example, each level of device updates its own frame locking status and other status information, and fills this status information into different domains of the extended frame according to its own local segment pointer or remote segment pointer for forward transmission level by level. The remote end of the TYPE7 Requests initiator identifies the different domains of the forward transmission to obtain the frame locking status of each level of device in the link topology, or the diagnostic information of each segment in the link topology. For example, the diagnostic information of different segments can be distinguished by different identifiers (such as local segment pointer or remote segment pointer).

[0361] The eighth type, TYPE8 Requests, involves transmitting updated status information (with status updated information in the different next pages (multiple devices)) forward. After multiple devices complete the TYPE8 Request processing, they transmit updated status information forward on different next pages (or groups of next pages). The remote end (such as the host chip) that initiated the TYPE8 Request distinguishes the transmitted updated status information by identifying the page order or identifiers within the next page. For example, host chip 1 can push status information from multiple intermediate devices (or intermediate devices) to host chip 2.

[0362] Of course, the eighth type also applies to the forward transmission of status updated information across different next pages (single devices). This involves multiple objects (lanes or units) within a single device completing TYPE8 Requests processing and then transmitting their updated status information forward across different next pages (or next page groups). The remote end initiating the TYPE8 Requests distinguishes the updated status information returned by each object by identifying the page order or identifier within the next page.

[0363] The ninth type is collection communication. See Figure 36, which includes the following four subtypes.

[0364] Subtype 1, Broadcast, involves a data sender to multiple data receivers, and can be used to broadcast and replicate information from one device to other devices. For example, a host chip can broadcast end-to-end topology information, AN process negotiation results, or LT process negotiation results to devices at each level, enabling each device to obtain end-to-end information and thus improving the efficiency of parameter training for each device. For instance, host chip 1 sends a broadcast frame, and repeater 1, optical module 1, optical module 2, repeater 2, and host chip 2 receive the broadcast frame.

[0365] Subtype two, scattering, involves a data sender to multiple data receivers. This can be used to slice information from one device and distribute it to other devices. For example, a host chip issues identifiers to devices at various levels to allocate identifiers. For instance, host chip 1 sends "domain segment or NP1" to "domain segment or NP5", repeater 1 receives "domain segment or NP1", optical module 1 receives "domain segment or NP2", optical module 2 receives "domain segment or NP3", repeater 2 receives "domain segment or NP4", and host chip 2 receives "domain segment or NP5".

[0366] Subtype 3, Gather, involves multiple data senders to a single data receiver. This can be used to collect information from multiple devices into a single device, and is the inverse of scattering. For example, devices at different levels return different status information to the host chip, which then performs segmented diagnostics on each device. For instance, host chip 1 receives data from "domain segment or NP1" to "domain segment or NP5," where "domain segment or NP1" is sent by repeater 1, "domain segment or NP2" by optical module 1, "domain segment or NP3" by optical module 2, "domain segment or NP4" by repeater 2, and "domain segment or NP5" by host chip 2.

[0367] Subtype four, reduction, involves multiple data senders to a single data receiver. It can be used to process information from multiple devices and aggregate it into a single reduction protocol for a single device. The processing supports arithmetic, logical, statistical, and combinational operations. For example, devices at each level send the information after reduction processing in the common domain segment or next page to the host chip, which then uses this information to determine the link or device status. For instance, host chip 2, repeater 2, optical module 2, optical module 1, and repeater 1 perform reduction processing, fill in and update the common domain segment or NP, and then send the information. Host chip 1 receives the common domain segment or NP (next page) and obtains the information after reduction processing.

[0368] In the unified AN / LT process, Local and Remote HostChip can independently use TYPE1 to 9 Requests, and different types of Requests can be flexibly combined as needed. For example, unicast requests support indications of types 1 to 3, and broadcast requests support types 1 to 9.

[0369] Different Request types support independent object granularity. For example, unicast or multicast requests allow the host chip to independently select different Request types (TYPE 1 to 9) when communicating with various objects (devices, physical channels, or parameter space units, etc.), thus independently controlling different operating modes for different objects. The Respond mode for each device level supports selecting one or more combinations of the above based on commands and processing needs.

[0370] For example, the broadcast requests of the second to ninth types above can be a null command (or idle command). The next page in the broadcast request can be a null-message so that the device receiving the broadcast request can fill the null frame, for example, by filling the null frame with the update status information mentioned above.

[0371] Next, taking the scenario shown in Figure 29 as an example, we will explain the communication process corresponding to the above 9 types of Requests.

[0372] The first type, as mentioned before, is relatively simple and does not require forward or backward transmission, so it will not be elaborated further.

[0373] The second type, as shown in Figure 37, uses steps B0 to B4 as an example. Host chip 2 initiates a Type 2 Request, intermediate devices transmit the request forward, and the process terminates at host chip 1. The specified object (e.g., device) completes the processing flow corresponding to the Type 2 Request and fills in the information according to the processing rules (functions) corresponding to the common status field (also called the general domain). The processing rules for different common domains are independent of each other (they can be different or the same). The shielded object transmits the request but does not respond to the Type 2 Request. For example, repeater 2, optical module 1, repeater 1, and host chip 1 update the general domain respectively. Optical module 2 is a shielded device; it transmits the request forward but does not update the general domain. Host chip 2 detects the finally returned common domain information.

[0374] The third type, taking steps A0 to A4 in Figure 37 as an example, involves host chip 1 initiating a Type 3 Request, intermediate devices transmitting forward requests, and finally host chip 2 completing the process. The specified object (e.g., a device) completes the processing flow corresponding to the Type 3 Request and independently fills in information in different domain segments based on its local segment pointer, transmitting back information. Blocked objects transmit forward but do not respond to the Type 3 Request. For example, repeater 1 updates domain segment 1, optical module 2 updates domain segment 3, repeater 2 updates domain segment 4, host chip 2 updates domain segment 5, and optical module 1, being a blocked device, transmits forward but does not update domain segment 2. Host chip 1 detects the returned information in different domain segments, identifies the domain segment location or identifier within the domain segment (e.g., local segment pointer), and distinguishes the returned information from different devices.

[0375] The sixth type, taking steps B0 to B4 in Figure 38 as an example, involves host chip 1 initiating a Type 6 Request, intermediate devices transmitting the request forward, and finally host chip 2 completing the process. The specified object (e.g., a device) completes the processing flow corresponding to the Type 6 Request and forwards information according to the processing rules corresponding to the common domain segment (e.g., common status field). The processing rules for different common domain segments are independent (they can be different or the same). Blocked objects transmit the information forward but do not respond to the Type 6 Request. For example, repeater 1, optical module 1, and repeater 2 update the common domain segment respectively. Optical module 2 is a blocked device, so it transmits the information forward but does not update the common domain segment. Host chip 2 detects the final forwarded common domain segment information.

[0376] The seventh type, taking steps A0 to A4 in Figure 38 as an example, involves host chip 2 initiating a Type 7 Request, intermediate devices transmitting forward, and the process terminating at host chip 1. The specified object (e.g., a device) completes the processing flow corresponding to the Type 7 Request and independently transmits information in different domain segments based on its own local segment pointer or remote segment pointer. The shielded object (e.g., optical module 1) transmits forward but does not respond to the Type 7 Request. Host chip 1 detects the forwarded information in different domain segments, identifies the domain segment location or identifier within the domain segment (e.g., local segment pointer or remote segment pointer), and distinguishes the forwarded information from different devices.

[0377] The fourth type, taking steps B0 to B4 in Figure 39 as an example, involves host chip 2 initiating a Type 4 Request, intermediate devices transmitting forward requests, and the process terminating at host chip 1. The specified object (e.g., a lane within the device) completes the processing flow corresponding to the Type 4 Request and independently fills in information and sends it back to different next pages (or next page groups) based on its own remote segment pointer. Objects that are blocked transmit information but do not respond to the Type 4 Request. Host chip 2 detects the different returned next pages (or next page groups) and identifies the next page order or identifier within the next page (e.g., the remote segment pointer) to distinguish the returned information of different objects. For example, host chip 2 sends next page 1 to next page 4 to repeater 1. Repeater 1 fills in lane 1 information to next page 1, lane 2 information to next page 2, lane 3 information to next page 3, and lane 4 information to next page 4.

[0378] For example, the host chip (such as host chip 1 or host chip 2) knows the status of each device (such as the number of lanes included in the device) based on the topology negotiation results, and can query the status information of multiple lanes of any specified single device in the link topology through TYPE4 Request.

[0379] In one example, the host chip can send multiple next pages to a designated device as needed. (The host chip can determine the number of response frames returned by the designated device. The number of next pages sent by the host chip can be equal to the total number of lanes in the device minus the number of masked lanes, or the number of next pages sent can be equal to the total number of lanes in the device, but the return information of masked lanes is ignored.) The host chip can implement page turning through the NP and Toggle bit fields. The designated device can distinguish the information return of different lanes through different next page order or embedded identifiers (such as the 2nd lane identifier). The host chip can distinguish the information return of different lanes through different next page order or embedded identifiers (such as the 2nd lane identifier).

[0380] In another example, after sending the first frame, the host chip fills in null-message frames according to the protocol and sends them to the designated device (the host chip does not need to determine the number of response frames returned by the designated device). If the host chip receives a response frame from the designated device, and the NP or Toggle bit field in the response frame indicates that a next page is still needed, the host chip continues to fill in null-message frames according to the protocol and send them to the designated device until the host chip receives a response frame from the designated device, and the NP or Toggle bit field in the response frame indicates that a next page is no longer needed. At this point, the host chip stops filling in null-message frames according to the protocol and sending them to the designated device.

[0381] The method by which the host chip determines the number of response frames, or the method that does not require determining the number of response frames, is not limited to a single type, but can be applied to all types that require pagination, depending on actual needs. For example, in Figure 40 (not limited to a single type), when the host chip does not need to determine the number of response frames returned by the device, the host chip determines whether there is still a next page according to the above description. If not, it completes the broadcast request; if so, it continues to send the next page (next pages other than the base page can be filled with empty frames according to the protocol) until all next pages have been sent. As another example, in Figure 41, the downstream device checks whether it is blocked. If blocked, it does not respond (e.g., no filling, pass-through); if not blocked, it checks whether it is an intermediate device. If not an intermediate device, it latches the information and sends an updated next page, until there are no new next pages. If it is an intermediate device, the return buffer is initialized and cleared. The return buffer is used to store the updated response information of the device that needs to be returned. In this embodiment, the cache depth of the return buffer is not limited. A cache depth of 1 represents a single next page, and a cache depth of W (greater than 1) represents multiple next pages (next page group). If all pages of the return buffer have been sent, the response to the broadcast request is completed. If all pages of the return buffer have not been sent, the system continues to receive new broadcast request next pages from upstream, send return broadcast request next pages (transparent transmission) downstream, send the updated device X information next page in the return buffer upstream (only the response field is updated, other fields are not affected), receive and latch the updated device X information next page from downstream into the return buffer, until all pages of the return buffer have been sent.

[0382] The fifth type, taking steps B0 to B4 in Figure 42 as an example, involves the host chip 2 initiating a Type 5 Request, the intermediate device transmitting the request forward, and the process ending at the host chip 1. The specified object (such as a device) completes the processing flow corresponding to the Type 5 Request and independently fills in information and sends it back in different next pages (or next page groups) based on its own remote segment pointer. The blocked object transmits the request forward but does not respond to the Type 5 Request. The host chip 2 detects the information in the different next pages (or next page groups) returned and identifies the next page order or the identifier within the next page (such as the remote segment pointer) to distinguish the returned information of different objects.

[0383] For example, the host chip knows the status of each device based on the topology negotiation result. It can obtain (e.g., pull) the status information of any specified multiple devices in the link topology through Type 5 Request. The host chip can send multiple next pages to downstream devices as needed. (The host chip can determine the number of response frames returned by the specified device. The number of next pages sent by the host chip can be equal to the total number of lanes in the device minus the number of masked lanes, or the number of next pages sent can be equal to the total number of lanes in the device, but ignore the return information of masked lanes.) The host chip can implement page turning through NP and Toggle bit fields. The control and status fields of the extended frame can support independent selection of the extension method (e.g., extension of different fields or extension of different next pages). Each specified device embeds information back in different next pages (or next page groups) according to its own local segment pointer or remote segment pointer. The host chip distinguishes the back information of different devices through different next page order or identifiers (e.g., local segment pointer or remote segment pointer).

[0384] Figures 43 and 44, using a Type 5 Request as an example, illustrate the communication process between the initiating host chip and its downstream devices based on next page extension. This embodiment does not limit the order in which each device sequentially sends back its next page (or next page group). After receiving a broadcast request, a device may first send its own next page (or next page group) information, and then determine the page turning information and sequentially send the cached next page (or next page group) information of its downstream devices. Alternatively, it may first send the cached next page (or next page group) information of its downstream devices, and then send its own next page (or next page group) information.

[0385] Referring to Figure 43, when the host chip sends a Type 5 Request, it can calculate the total number of next pages N. N equals the number of pages corresponding to downstream devices (the number of pages that downstream devices need to fill) minus the number of pages corresponding to the blocked devices (the number of pages that the blocked devices need to fill). The host chip records the number of next pages M that have been sent. If M is equal to N, the Type 5 Request is sent. If M is not equal to N, the host chip sends the next page, receives and latches the next page of the upstream device X, and increments the number of next pages M that have been sent by one until M is equal to N.

[0386] Referring to Figure 44, for a Type 5 Request, the downstream device checks whether it is blocked. If blocked, it does not respond (e.g., no padding, pass-through). If not blocked, it checks whether it is an intermediate device. If not, it latches the information and sends an updated next page. If it is an intermediate device, it checks whether it is a broadcast request for local use and determines the transmission direction (first transmission direction: local or second transmission direction: remote). The intermediate device parses the mask field of the Type 5 Request, obtains the level of the blocked downstream device in the transmission direction, calculates the number of pages of the transparent broadcast request as PR (PR is the level of the downstream device minus the level of the blocked downstream device), and records the number of pages sent, PRN. The return buffer is initialized and cleared. The return buffer is used to store the updated response information of the devices that need to be returned. In this embodiment, the cache depth of the return buffer is not limited. A cache depth of 1 represents a single next page, and a cache depth of W (greater than 1) represents multiple next pages (next page group). If PRN is equal to PR, the response to the broadcast request is completed. If PRN is not equal to PR, then continue to receive new broadcast requests next page from upstream, send back broadcast requests next page (transparent transmission) to downstream, send updated device X information next page from the backhaul buffer to upstream (only update the response field segment, other fields are not affected), receive and latch the updated device X information next page from downstream to the backhaul buffer, increment the number of pages sent PRN by one, until PRN is equal to PR.

[0387] The eighth type, taking steps B0 to B5 in Figure 45 as an example, involves host chip 1 initiating a Type 8 Request (B2 in Figure 45), intermediate devices transmitting the request forward, and the process terminating at host chip 2. The specified object (e.g., a device) completes the processing flow corresponding to the Type 8 Request and independently transmits information forward in different next pages (or next page groups) based on its own local segment pointer or remote segment pointer. The blocked object transmits the information forward but does not respond to the Type 8 Request. Host chip 2 detects the forwarded information of different next pages (or next page groups) and identifies the next page order or identifiers within the next page (e.g., local segment pointer or remote segment pointer) to distinguish the forwarded information of different objects.

[0388] For example, the host chip (e.g., host chip 1) knows the status of each device based on the topology negotiation result. It can push the status information of any number of devices in the link topology to the remote host chip (e.g., host chip 2) through TYPE8 Request. The host chip can send multiple next pages to downstream devices as needed. The host chip can realize page turning through NP and Toggle bit fields. The control and status fields of the extended frame can support independent selection of the extension method (e.g., extension of different fields or extension of different next pages). Each designated device embeds information forwarding in different next pages (or next page groups) according to its own local segment pointer or remote segment pointer. There is no restriction on the order in which each device forwards the next page (or next page group) level by level. The host chip distinguishes the forwarding information of different devices through different next page order or identifiers (e.g., local segment pointer or remote segment pointer). Steps B0 to B5 shown in Figure 45 are just examples. The Type 8 Request can be initiated by the host chip 1 (B2), or the host chip 2 can send a Type 8 Request pull (tow) first, and the intermediate device will transmit the Type 8 Request pull to the host chip 1 (B0 to B1), thereby triggering the host chip 1 to initiate the Type 8 Request.

[0389] In addition, Figures 46 and 47, using Type 8 Request as an example, illustrate the communication process between the initiating host chip and its downstream devices based on the next page extension.

[0390] Referring to Figure 46, when the host chip sends a Type 8 Request, it can initialize and clear the forward buffer. The forward buffer is used to store the update response information of the devices that need to be forwarded. This embodiment does not limit the cache depth of the forward buffer; a cache depth of 1 represents a single next page, and a cache depth of W (greater than 1) represents multiple next pages (a group of next pages). If the host chip has sent all pages of the forward buffer, the Type 8 Request is sent. If the host chip has not sent all pages of the forward buffer, it continues to send the remaining pages in the forward buffer to downstream devices (i.e., continues sending the Type 8 Request).

[0391] Referring to Figure 47, for a Type 8 Request, the downstream device checks whether it is blocked. If blocked, it does not respond (e.g., no padding, pass-through). If not blocked, it checks whether it is an intermediate device. If not an intermediate device, it receives and latches the updated next page until there are no new next pages. If it is an intermediate device, it initializes and clears the forward buffer. The forward buffer is used to store the updated response information of devices that need to be forwarded. In this embodiment, the cache depth of the forward buffer is not limited. A cache depth of 1 represents a single next page, and a cache depth of W (greater than 1) represents multiple next pages (next page group). If the intermediate device receives a new next page, it sends a forward broadcast request to the downstream, carrying the updated device X information next page (NP bit field = 1) in the forward buffer, and receives and latches the updated device X information next page from the upstream into the forward buffer. If the intermediate device does not receive the new next page, it completes the response to the broadcast request after sending all pages of the forward buffer. If it does not send all pages of the forward buffer, it continues to send forward broadcast requests downstream, carrying the updated device X information next page in the forward buffer, until all pages of the forward buffer have been sent.

[0392] The ninth type is aggregated communication. Each device is treated as an independent network element, allowing aggregated communication. Here, Gather is equivalent to TYPE 3 or TYPE 7, Scatter and Gather are inverse processes, and Reduce is equivalent to TYPE 2 or TYPE 6, which will not be elaborated further here. In Broadcast, the host chip can carry the identifiers described above to replicate information to each device in the link.

[0393] In an exemplary embodiment, the method provided in this application further includes: a first device sending first status information to a second device, the first status information indicating the completion status of the LT process or the AN process.

[0394] For example, a first device sends a command (such as a first frame) to a second device. After the second device performs an AN (Answer-Alternate) or LT (Long-Terminal) procedure based on the first frame, it returns status information to the first device using the method described above. Then, the first device performs the AN or LT procedure locally based on the status information returned by the second device, obtaining first status information indicating the completion status of the LT or AN procedure. The first device can then send the first status information to the second device, allowing the second device to determine that the first device has completed the LT or AN procedure. In one example, the second device can return status information to the first device multiple times. Each time the second device returns status information, the first device performs the AN or LT procedure locally based on the returned status information and sends the first status information to the second device. In another example, the second device returns status information to the first device, and the first device performs one or more AN or LT procedures locally based on the returned status information. Each time the first device performs the AN or LT procedure locally, it sends the first status information to the second device.

[0395] In an exemplary embodiment, the method provided in this application further includes: a first device sending second status information to a second device, the second status information indicating the frame-locking state of the first device.

[0396] For example, when the LT process is implemented between the first device and the second device, if the first device completes frame locking, it can send second status information to the second device. Since the second status information indicates the frame locking status of the first device, the second device can determine that the first device has locked the frame.

[0397] This application also provides a method for processing information. In this method, a first device sends a first frame to a second device. The first frame is an AN frame or an LT frame. The first frame includes a first domain segment corresponding to the first device, and the first domain segment includes status information indicating that the first device is performing an AN or LT state. Exemplarily, the status information includes at least one of the first status information or the second status information described above, which will not be elaborated here.

[0398] In one example, the first field segment also includes identification information that identifies the first device, such as the identifier of the first device described above. The second device determines, based on the identification information, that the status information included in the first field segment is the status information of the first device, and thus determines the state of the first device executing the AN process or the LT process based on the status information.

[0399] In another example, the first frame includes multiple domain segments, each corresponding to a specific device. These devices include the first device and other devices between the first and second devices. The second device determines the correspondence between the domain segments and devices, identifies the first domain segment corresponding to the first device based on this correspondence, and determines that the status information included in the first domain segment is the status information of the first device. Based on this status information, the device's execution status for the AN or LT process is determined. For example, the first frame includes control fields and status fields for each device. The status fields may include status information (or can be expanded to include negotiation results, diagnostic information, etc.). The corresponding device is determined based on the positions of the control and status fields, with each device corresponding to one control field and one status field. For example, the second device identifies the first device through control field 1 and status field 1.

[0400] In another example, the first domain segment includes multiple bits, with multiple devices each corresponding to at least one bit from these multiple bits. Different devices correspond to different bits. The multiple devices include the first device and other devices between the first and second devices. The second device determines the correspondence between the bits and devices, and based on this correspondence, determines the corresponding bit of the first device in the first domain segment. The bit corresponding to the first device carries status information (indicating the state of the first device performing AN or LT, which can also be extended to negotiation results, diagnostic information, etc.). The second device determines the state of the first device performing the AN or LT process based on the status information carried by the bit corresponding to the first device. For example, the first frame includes a control field and a status field shared by all devices. The position of the bits in the status field is used to indicate the corresponding device. For example, the second device identifies the first device by a bit 1 in the status field.

[0401] This application also provides a system for processing information, the system including a first device and a second device, the first device being used to perform any of the exemplary information processing methods described above.

[0402] This application 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 transmission and reception functions, so that the communication device can implement any of the exemplary information processing methods described above.

[0403] This application 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 on which the chip is mounted can implement any of the exemplary information processing methods described above.

[0404] 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).

[0405] 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.

[0406] 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.

[0407] 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.

[0408] 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.

[0409] 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.

[0410] 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]”.

[0411] 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 method for processing information, characterized in that, The method includes: The first device acquires a first frame, which is used to request the first device to perform an auto-negotiation (AN) process or a link training (LT) process with the second device specified in the first frame. The first device sends the first frame to the second device.

2. The method according to claim 1, characterized in that, The first frame includes an extended subframe, which is used to specify the second device.

3. The method according to claim 2, characterized in that, The extended subframe is also used to carry AN parameters used in the AN process or LT parameters used in the LT process.

4. The method according to claim 2 or 3, characterized in that, The extended subframe includes an extended field, which is used to specify the second device.

5. The method according to claim 1, characterized in that, The first frame carries a first identifier, which indicates the second device.

6. The method according to claim 5, characterized in that, The second device differs from the linearly driven pluggable optical LPO module. Before the first device acquires the first frame, the method further includes: The first device sends an allocation frame to the second device, the allocation frame being used to allocate the first identifier to the second device.

7. The method according to claim 6, characterized in that, The allocation frame carries reference information, and the first identifier is determined based on the reference information.

8. The method according to claim 5, characterized in that, The second device is a linearly driven pluggable optical LPO module, and the first identifier is determined based on the link topology information, the link including the link between the first device and the second device.

9. The method according to any one of claims 5-8, characterized in that, The first frame also carries a second identifier, which indicates a fifth device, and the method further includes: The first device sends the first frame to the fifth device, and the first frame is also used to request the first device and the fifth device indicated by the second identifier to perform the AN process or the LT process.

10. The method according to any one of claims 5-8, characterized in that, The first identifier also indicates a sixth device, and the method further includes: The first device sends the first frame to the sixth device, and the first frame is also used to request the first device to perform the AN process or the LT process with the sixth device indicated by the first identifier.

11. The method according to any one of claims 5-8, characterized in that, The first frame is used to request the first device and the second device to perform the LT procedure, and the first identifier also indicates a first channel of the second device, the LT procedure including the procedure corresponding to the first channel.

12. The method according to claim 11, characterized in that, Before the first device sends the first frame to the second device, the method further includes: The first device acquires a second frame, the second frame carries the first identifier, and the frame type of the second frame is different from the frame type of the first frame; The first device sends the second frame to the second device. The second frame is used to request the first device to establish a message path with the first channel of the second device. The message path is used to transmit the first frame.

13. The method according to claim 12, characterized in that, The message path is located between the second channel of the first device and the first channel of the second device.

14. The method according to any one of claims 5-8, characterized in that, The first identifier also indicates the parameter space of the second device, the AN process includes the process corresponding to the parameter space, and the LT process includes the process corresponding to the parameter space.

15. The method according to any one of claims 5-14, characterized in that, The method further includes: The first device receives a third frame sent by the second device, the third frame carrying the first identifier and response information.

16. The method according to claim 15, characterized in that, The number of response messages is multiple; Multiple response messages are located in the same domain segment of the same extended subframe included in the third frame; Alternatively, the multiple response messages may be located in different domain segments of the same extended subframe included in the third frame; Alternatively, the multiple response messages may be located in different extended subframes included in the third frame.

17. The method according to any one of claims 1-16, characterized in that, The first frame is used to request the first device and the second device to perform the AN process. The first frame also includes optical negotiation parameters and electrical negotiation parameters. The AN process includes an AN process for an optical channel based on the optical negotiation parameters and an AN process for an electrical channel based on the electrical negotiation parameters.

18. The method according to any one of claims 1-17, characterized in that, The link between the first device and the second device includes at least one third device.

19. The method according to claim 18, characterized in that, The method further includes: The third device receives the first frame and converts the first frame into a fourth frame. The fourth frame is used to request the first device and the second device to perform the AN process or the LT process. The third device sends the fourth frame to the second device.

20. The method according to claim 19, characterized in that, The first frame is in non-return-to-zero (NRZ) format, and the fourth frame is in pulse amplitude modulation (PAM) format. Alternatively, the first frame may be in the PAM format, and the fourth frame may be in the NRZ format.

21. The method according to any one of claims 1-20, characterized in that, The method further includes: The first device sends first status information to the second device, the first status information indicating the completion status of the LT process or the AN process.

22. The method according to any one of claims 1-21, characterized in that, The method further includes: The first device sends second status information to the second device, the second status information indicating the frame-locking status of the first device.

23. A system for processing information, characterized in that, The system includes a first device and a second device, wherein the first device is used to perform the information processing method according to any one of claims 1-22.

24. A communication device, characterized in that, The communication device includes a transceiver and a processor. The transceiver is used to perform a transmitting and receiving function, and the processor is used to perform other functions besides the transmitting and receiving function, so that the communication device implements the information processing method according to any one of claims 1-22.

25. A chip, characterized in that, The chip includes an interface circuit and a control circuit. The interface circuit is used to send and receive data, and the control circuit is used to process the data so that the first device on which the chip is installed can implement the information processing method according to any one of claims 1-22.

Citation Information

Patent Citations

  • Chip port link training connection method and application

    CN114745450A

  • Device-to-device link training

    US20200259936A1

  • Interoperability of communication devices

    US20230354445A1