Communication method and optical module

JP7637724B2Active Publication Date: 2025-02-28HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023115753
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-01-22
Filing Date
2023-07-14
Publication Date
2025-02-28
Estimated Expiration
2039-12-30

Smart Images

  • Figure 0007637724000002
    Figure 0007637724000002
  • Figure 0007637724000003
    Figure 0007637724000003
  • Figure 0007637724000004
    Figure 0007637724000004
Patent Text Reader

Abstract

To provide a communication method and an optical module.SOLUTION: This method includes the following. A first optical module determines a first delay. The first optical module transmits the first delay to an interface chip. According to the communication method and optical module provided in the present application, the delay of the optical module can be reported to the interface chip, which improves the accuracy of time synchronization between a master clock and a slave clock, thereby further improving the clock accuracy of network devices.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] TECHNICAL FIELD Embodiments of the present application relate to the field of communication technologies, and in particular to a communication method and an optical module. [Background technology]

[0002] In mobile communication networks, base stations based on the Time Division Duplex (TDD) standard must meet strict time synchronization requirements, otherwise the radio signals transmitted from one base station will cause interference with other base stations, resulting in the base stations in adjacent areas being unable to operate normally.

[0003] Currently, time synchronization between different base stations can be implemented by using a clock protocol, for example, the Institute of Electrical and Electronics Engineers (IEEE) 1588 V2 protocol. The 1588 V2 protocol is a high-precision clock synchronization protocol standard for network measurement and system control. The 1588 V2 protocol, also known as Precision Time Protocol (PTP), can implement time synchronization between multiple network devices at the microsecond level. Currently, in the 1588 V2 protocol, time synchronization between network devices is implemented by a master-slave clock method. Since the time information is encoded, the master-slave time synchronization is implemented using network symmetry and delay measurement techniques through the interactive form of two-way packet messages. Specifically, when sending a packet and when receiving a packet, the master clock and the slave clock perform a time stamp on the packet to calculate the time difference between the master clock and the slave clock. The slave clock calibrates its local time based on the calculated time difference.

[0004] Currently, how to further improve the accuracy of time synchronization between master clocks and slave clocks to further improve the clock accuracy of network devices is a technical problem that currently needs to be urgently solved. Summary of the Invention

[0005] The embodiments of the present application provide a communication method and an optical module, and report the delay of the optical module to an interface chip to improve the accuracy of time synchronization between the master clock and the slave clock, thereby further improving the clock accuracy of the network device.

[0006] A first aspect of the present application provides a communication method, including:

[0007] A first optical module determines a first delay.

[0008] The first optical module transmits a first delay to the interface chip.

[0009] In this solution, a delay reporting register access interface is defined in the first optical module, so that the first optical module can report the first delay to the interface chip through the delay reporting register access interface, and thus the first delay can be compensated in the timestamp of the packet recorded by the interface chip to improve the accuracy of time synchronization between the master clock and the slave clock, thereby further improving the clock accuracy of the network device.

[0010] In a possible implementation, the first optical module is a gray optical module. The first optical module includes an optical transmitter. The optical transmitter includes an inbound interface and an outbound interface. The first optical module determines a first delay and includes:

[0011] The first optical module receives a first data flow via an inbound interface.

[0012] The first optical module transmits the first data flow to the second network device via the outbound interface.

[0013] The first optical module determines that a delay generated when the first data flow is transmitted at the optical transmitter is a first delay.

[0014] In this solution, the first delay may be a delay generated when the first data flow is transmitted at an optical transmitter of the first optical module, and since the optical transmitter includes different processing circuits, the first delay may instead be a delay incurred when each of the different processing circuits of the optical transmitter processes the first data flow.

[0015] Specifically, the first delay may be a delay generated when the first data flow is transmitted from an inbound interface of the optical transmitter to an outbound interface of the optical transmitter, or it may be a delay incurred when at least one processing circuit included in the optical transmitter processes the first data flow, or indeed it may be the sum of a delay incurred when at least one processing circuit included in the optical transmitter processes the first data flow and a default or design value.

[0016] In a possible implementation, the first optical module is a color optical module. The first optical module includes an optical transmitter and a first optical receiver.

[0017] Before the first optical module determines the first delay, the method further includes:

[0018] The first optical module receives a first data flow by using an optical transmitter, and a delay generated when the first data flow is transmitted by the optical transmitter includes a second delay.

[0019] The first optical module transmits a first data flow to a second optical receiver of a second optical module of a second network device by using an optical transmitter, where a delay generated when the first data flow is transmitted at the second optical receiver includes a third delay.

[0020] The sum of the second delay and the third delay is the first delay.

[0021] The first optical module receives a second data flow transmitted by a second network device by using the first optical receiver, where the second data flow carries the indication information.

[0022] The first optical module determines a first delay and includes:

[0023] The first optical module determines a first delay based on the indication information.

[0024] In the present solution, the first optical module is a color optical module of a first network device, and the second optical module is a color optical module of a second network device. The first optical module includes an optical transmitter and a first optical receiver. After receiving a first data flow using the optical transmitter, the first optical module transmits the first data flow to a second optical receiver of a second optical module of a second network device using the optical transmitter. Thus, a second delay generated when the first data flow is transmitted on the first optical module and a third delay generated when the first data flow is transmitted on the second optical module can be measured based on the first data flow.

[0025] Furthermore, after determining the second delay generated when the first data flow is transmitted on the first optical module, the first optical module transmits the first data flow including the second delay to the second optical module. After determining the third delay generated when the first data flow is transmitted on the second optical module, the second optical module determines the sum of the obtained second delay and the obtained third delay as the first delay. After determining the first delay, the second optical module transmits the second data flow to the first optical module. The second data flow carries the indication information. Thus, the first optical module may determine the first delay based on the indication information.

[0026] In a possible implementation, the indication information includes a first delay.

[0027] In a possible implementation, if the first optical module does not support delay measurement, the first delay is a design value.

[0028] In this solution, if the first optical module does not have a delay measurement function, the first delay may be a preset design value, may be a simulation value obtained by simulation, or may indeed be a default value.

[0029] In a possible implementation, the method further includes:

[0030] When a first data flow is transmitted to the first circuit, the first optical module extracts a first indication signal carried in the first data flow.

[0031] When the first data flow is transmitted to the second circuit, the first optical module extracts the second indication signal carried in the first data flow.

[0032] The first optical module determines a first delay based on the first instruction signal and the second instruction signal.

[0033] In a possible implementation, the first optical module determines the first delay based on the first instruction signal and the second instruction signal, and includes:

[0034] The first optical module measures a phase difference between the first indicator signal and the second indicator signal.

[0035] The first optical module determines a first delay based on the phase difference.

[0036] Both the first and second indication signals may be adjustment marker AM indication signals, or the first indication signal may be an AM indication signal and the second indication signal may be a digital signal processing DSP frame header signal.

[0037] In the above solution, when a first data flow is sent to a first circuit, the first optical module extracts a first indication signal carried in the first data flow. When the first data flow is sent to a second circuit, the first optical module extracts a second indication signal carried in the first data flow. Then, the first optical module can determine a first delay by measuring a phase difference between the first indication signal and the second indication signal by using a highly accurate phase discrimination algorithm. Thus, the accuracy of the determined delay can be improved.

[0038] The first circuit and the second circuit can be any two different circuits within the first optical module.

[0039] Furthermore, both the first and second indicator signals may be AM indicator signals, or the first indicator signal may be an AM indicator signal and the second indicator signal may be a digital signal processing DSP frame header signal. In addition, the first and second indicator signals may alternatively be other easily identified signals, such as an identifier inserted in the first data flow.

[0040] In a possible implementation, the interface chip includes at least one of a physical layer PHY chip and a media access control layer MAC chip.

[0041] A second aspect of the present application provides an optical module for use as a first optical module, comprising: A processor configured to determine a first delay.

[0042] The processor is further configured to transmit the first delay to the interface chip.

[0043] In a possible implementation, the first optical module is a gray optical module. The first optical module includes an optical transmitter. The optical transmitter includes a processor, an inbound interface, and an outbound interface.

[0044] The optical transmitter is configured to receive a first data flow via an inbound interface.

[0045] The optical transmitter is further configured to transmit the first data flow to a second network device via the outbound interface.

[0046] The processor is further configured to determine that a delay created when the first data flow is transmitted at the optical transmitter is a first delay.

[0047] In a possible implementation, the first optical module is a color optical module in the first network device. The first optical module includes an optical transmitter and a first optical receiver. The first optical receiver includes a processor.

[0048] The optical transmitter is configured to receive a first data flow, where a delay created when the first data flow is transmitted at the optical transmitter is a second delay.

[0049] The optical transmitter is further configured to transmit the first data flow to a second optical receiver of a second optical module of a second network device, where a delay generated when the first data flow is transmitted at the second optical receiver is a third delay.

[0050] The sum of the second delay and the third delay is the first delay.

[0051] The first optical receiver is configured to receive a second data flow transmitted by a second network device, where the second data flow carries the indication information.

[0052] The processor is specifically configured to determine the first delay based on the indication information.

[0053] In a possible implementation, the indication information includes a first delay.

[0054] In a possible implementation, if the first optical module does not support delay measurement, the first delay is a design value.

[0055] In a possible implementation, the optical transmitter includes a first circuit and a second circuit. The processor is further configured as follows. When the first data flow is transmitted to the first circuit, a first indication signal carried in the first data flow is extracted. When the first data flow is transmitted to the second circuit, a second indication signal carried in the first data flow is extracted. A first delay is determined based on the first indication signal and the second indication signal.

[0056] In a possible implementation, the processor is further configured as follows. A phase difference between the first and second indicator signals is measured. A first delay is determined based on the phase difference.

[0057] Both the first and second indication signals are adjustment marker AM indication signals, or the first indication signal is an AM indication signal and the second indication signal is a digital signal processing DSP frame header signal.

[0058] In a possible implementation, the interface chip includes at least one of a physical layer PHY chip and a media access control layer MAC chip.

[0059] According to the communication method and optical module provided in the present application, after determining the first delay, the first optical module sends the determined first delay to the interface chip. A delay report register access interface is defined in the first optical module, so that the first optical module can report the first delay to the interface chip through the delay report register access interface to add the first delay to the timestamp of the packet recorded by the MAC layer or the PHY layer, improving the accuracy of the time synchronization between the master clock and the slave clock, thereby further improving the clock accuracy of the network device. [Brief description of the drawings]

[0060] [Figure 1] FIG. 1 is a schematic diagram of an application scenario according to one embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of calculating the time difference between a master clock and a slave clock. [Diagram 3] FIG. 3 is a schematic flowchart of a communication method according to an embodiment of the present application. [Figure 4] FIG. 4 is a schematic diagram of an optical module. [Diagram 5] FIG. 5 is a schematic structural diagram of a gray optical module. [Figure 6] FIG. 6 is a schematic structural diagram of a color optical module. [Figure 7] FIG. 7 is a schematic structural diagram of an oDSP chip in a gray optical module. [Figure 8A]FIG. 8A is a schematic structural diagram of an oDSP chip in a color optical module. [Figure 8B] FIG. 8B is a schematic structural diagram of an oDSP chip in a color optical module. [Figure 9] FIG. 9 is a schematic structural diagram of an optical module according to an embodiment of the present application. [Figure 10] FIG. 10 is a schematic structural diagram of another optical module according to an embodiment of the present application. [Figure 11] FIG. 11 is a schematic structural diagram of yet another optical module according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0061] The following explains some terms in this application to facilitate understanding by those skilled in the art.

[0062] (1) An optical module mainly includes an optical-electrical converter and an electrical signal processor. An optical module includes two parts: an optical transmitter and an optical receiver. The electrical signal processor includes a clock and data recovery (CDR) chip or an optical digital signal processing (oDSP) chip. An optical module usually performs optical-to-electrical conversion and / or electrical-to-optical conversion. For example, a transmitting optical module converts an electrical signal into an optical signal, and transmits the converted optical signal to a receiving optical module through an optical fiber. Then, the receiving optical module converts the optical signal into an electrical signal and processes the converted electrical signal.

[0063] (2) The network device may be a device configured to communicate with a mobile device. The network device may be a router, a switch, a packet transport network (PTN) device, an optical transport network (OTN) device, a passive optical network (PON) device, a synchronous digital hierarchy (SDH) device, etc. Alternatively, the network device may be a WLAN access point (AP), a GSM or CDMA base transceiver station (BTS), a WCDMA node B (NB), an LTE evolved node B (eNB or eNodeB), a network relay station or network access point, an in-vehicle device, a wearable device, a network device of a future 5G network, a network device of a future evolved PLMN network, a new generation node B (gNode B) in an NR system, etc.

[0064] (3) The delay reporting register access interface, which may also be referred to as a register access interface or a delay reporting interface, is configured to report to the interface chip a delay generated when a packet is transmitted at an optical transmitter or an optical receiver of a first optical module, or is configured to report to the interface chip a delay generated when a packet is transmitted at an optical transmitter of a first optical module, or a delay generated when a packet is transmitted at an optical receiver in a second optical module.

[0065] (4) In this application, "at least one" can mean one or more, and "plurality" can mean two or more. The term "and / or" describes a relationship between related objects and indicates that three relationships may exist. For example, A and / or B represents the cases where only A is present, where both A and B are present, and where only B is present, and A and B may be singular or plural. The character " / " usually indicates an "or" relationship between related objects. "At least one of" or similar expressions means any combination of these items, including any combination of single items or multiple items. For example, at least one of a, b, or c can represent a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c may be singular or plural. Ranges described as "above," "below," etc., include the boundary points.

[0066] (5) The units in this application are functional or logical units and may be in the form of software. The functions of the units are implemented by a processor executing program codes. Alternatively, the units may be in the form of hardware.

[0067] Those skilled in the art may understand that the communication method provided in the embodiment of the present application may be applied to an application scenario in which an optical module reports delay to an interface chip. The interface chip includes at least one of a physical layer (PHY) chip and a media access control (MAC) chip. The interface chip may implement the function of the PHY layer. In a mobile communication network, a base station based on the Time Division Duplex (TDD) standard must meet strict time synchronization requirements. Otherwise, the radio signal transmitted by the base station may cause interference with another base station, resulting in the base station in an adjacent area being unable to operate normally. To implement time synchronization between base stations, a network protocol usually needs to be able to transmit time information. In the embodiment of the present application, an example in which the 1588 V2 protocol enables time information to be transmitted is used for illustration. Indeed, the time information may be transmitted by using another protocol instead. For example, the clock class information may be represented using a synchronous status message (SSM) in the SDH protocol.

[0068] Figure 1 is a schematic diagram of an application scenario according to an embodiment of the present application. As shown in Figure 1, a time source device is usually located in the core layer of a wireless network, and the Global Positioning System (GPS) or BeiDou satellite time is used as the reference source. Then, the time information is sent to the transmitting device 101 via an external time assistant interface, such as a Pulse per Second and Time of Day (1PPS+TOD) or PTP interface (an Ethernet interface that enables the 1588 V2 protocol). The transmitting device 101 sends the time information hop-by-hop downward from the core layer to the convergence layer device 102 via the PTP interface. Then, the convergence layer device 102 sends the time information hop-by-hop downward to the access layer device 103. The access layer device 103 sends the time information to the connected base station 104 via an external time assistant interface, such as a 1PPS+TOD or PTP interface. Thus, time synchronization between base stations throughout the network is implemented.

[0069] The transmitting device 101, the convergence layer device 102, and the access layer device 103 may each be a network device such as a router, a switch, a PTN device, an OTN device, or a PON device.

[0070] It should be noted that time synchronization among the transmitting device 101, the convergence layer device 102, and the access layer device 103 can also be performed by using the solution described in this embodiment of the present application.

[0071] The following uses the 1588 V2 protocol as an example to specifically describe how to implement time synchronization between base stations. The 1588 V2 protocol, also known as PTP for short, is a high-precision time synchronization protocol that can implement time synchronization between multiple network devices. The core idea of ​​the 1588 V2 protocol is as follows: Since the time information is encoded in a master-slave clock manner, the master-slave time synchronization is implemented using network symmetry and delay measurement technology through the interactive form of two-way packet messages. Specifically, when sending a packet and when receiving a packet, the master clock and the slave clock perform time stamping on the packet to calculate the time difference between the master clock and the slave clock. The slave clock calibrates the local time based on the calculated time difference. Figure 2 is a schematic diagram of calculating the time difference between the master clock and the slave clock. As shown in Figure 2, the master node sends a synchronization packet to the slave node and records the sending timestamp t1 in a register. After receiving the synchronization packet, the slave node records the receiving timestamp t2. Furthermore, the master node sends a follow-up packet to the slave node, which includes a timestamp t1. The slave node sends a delay request packet to the master node. The delay request packet carries a timestamp t3. After receiving the delay request packet, the master node records the received timestamp t4. The master node sends a delay response packet to the slave node, which includes t4. The master node's clock is the master clock, and the slave node's clock is the slave clock.

[0072] Based on the aforementioned timestamps t1, t2, t3, and t4, the slave clock may calculate a delay and a time difference between the slave clock and the master clock according to the following formulas (1) and (2): The slave clock may calibrate a local timestamp based on the delay and the time difference, and perform time synchronization between the master clock and the slave clock. Delay = (t2-t1+t4-t3) / 2 (1) offset=(t2-t1-t4+t3) / 2 (2)

[0073] According to the principle of the 1588 V2 protocol, the timestamp reference plane of the master clock and slave clock is at the medium dependent interface (MDI) layer of the PTP port. However, the timestamp event is triggered by the PTP packet header, and the MDI layer cannot identify the PTP packet header, so the timestamp cannot be completed. Therefore, during a specific implementation, the timestamp is usually performed at the media access control (MAC) layer or physical layer (PHY) layer to record the timestamp of the packet, and the delay between the timestamp points of the 1588 packet at the MAC layer or PHY layer and MDI layer of the optical module is measured and added to the timestamp recorded by the MAC layer or PHY layer. Thus, the timestamp function at the MDI layer is implemented. The MDI layer of the optical module is the port of the optical-electrical converter in the optical module.

[0074] However, the current Ethernet protocol IEEE 802.3 protocol only defines a delay reporting register interface at the PHY layer, and the interface is configured to report the delay generated when a packet is transmitted at the PHY layer. However, for some optical modules, the PHY layer is implemented by both the interface chip and the optical module, that is, the delay of the PHY layer includes two parts: the PHY layer delay at the interface chip and the PHY layer delay at the optical module. In the protocol, only the PHY layer delay at the interface chip is reported, and the delay added to the recorded timestamp only includes the PHY layer delay at the interface chip, and the PHY layer delay at the optical module is not recorded. As a result, the timestamp obtained by addition is inaccurate, the accuracy of the time synchronization between the master clock and the slave clock is low, and the clock accuracy of the network device is low.

[0075] In addition, the PHY layer delay reporting function currently defined in the IEEE 802.3 protocol has low accuracy, the 1588 timestamp is inaccurate, and the clock accuracy of network devices is low. The reasons for the low accuracy of delay reporting in IEEE 802.3 are: (1) the accuracy of delay reporting is 1 ns; (2) the PHY layer includes multiple sublayers (e.g., PCS, PMA, and PMD), and each sublayer has a loss of 1 ns when reporting delay, so the total delay accuracy is N ns when each of N sublayers reports delay.

[0076] In consideration of the above-mentioned problems, an embodiment of the present application provides a communication method. After determining a first delay, the first optical module sends the determined first delay to an interface chip. A delay report register access interface is defined in the first optical module, so that the first optical module can report the first delay to the interface chip through the delay report register access interface, so as to add the delay generated when the packet is transmitted in the optical module to the recorded timestamp of the packet, thereby improving the accuracy of time synchronization between the master clock and the slave clock, and thereby further improving the clock accuracy of the network device.

[0077] The following describes in detail the technical solutions of the present invention by using specific embodiments. Some of the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.

[0078] 3 is a schematic flowchart of a communication method according to an embodiment of the present application. As shown in FIG. 3, the method in this embodiment may include the following steps:

[0079] Step 301: A first optical module determines a first delay.

[0080] From the above formula (2), it can be seen that when the delays in the receiving and transmitting directions of an optical module are symmetrical, the calculation result of the PTP timestamp before correction is the same as the calculation result of the corrected offset. For this optical module, delay reporting and correction may not be performed. Therefore, in practical application, delay reporting and correction only need to be performed for optical modules whose delays in the receiving and transmitting directions are asymmetrical. Therefore, before describing how the first optical module determines the first delay, the structure of the existing optical module and the delay symmetry of the optical module will be first described.

[0081] FIG. 4 is a schematic diagram of an optical module. As shown in FIG. 4, the optical module 100 includes two parts, namely, an optical transmitter 110 and an optical receiver 120. Furthermore, the optical module 100 can be usually divided into two parts, a "digital domain" and an "analog domain". The "digital domain" includes a CDR chip or an oDSP chip, and mainly processes analog and digital signals. When the processing circuits in the receive direction and the transmit direction are asymmetric, delay asymmetry is introduced. And the "analog domain" includes a transmitter optical subassembly (TOSA) and a receiver optical subassembly (ROSA), including edge connectors, printed circuit board (PCB) lines, optical-to-electrical converters, etc. The "analog domain" is usually designed based on the symmetry of receive and transmit, the receive delay and the transmit delay are relatively fixed and symmetric, and the accuracy of clock synchronization is basically not affected. Therefore, when the delay in the optical module needs to be determined, usually only the delay in the "digital domain" is considered.

[0082] It can be understood that when the optical module uses a CDR chip, the CDR chip only uses an analog signal circuit to process the data flow, and the receiving delay and the transmitting delay in the optical module are symmetrical, so delay determination and delay reporting do not need to be performed. For example, when the optical module uses a CDR chip, the delay in the optical module can be determined by the method of this embodiment of the present application, or the delay in the optical module can be designed as a default value or a design value.

[0083] When an optical module uses an oDSP chip, the oDSP chip causes asymmetry and uncertainty between the receiving delay and the transmitting delay, so the delay generated when a packet is transmitted by the optical module affects the clock accuracy of the network device. Therefore, in order to improve the clock accuracy of the network device, it is necessary to determine the delay generated when a packet is transmitted by the optical module and report it to the interface chip. A concrete example is given below.

[0084] 5 is a schematic structural diagram of a gray optical module. As shown in FIG. 5, the gray optical module includes an optical transmitter 170 and an optical receiver 180. The optical transmitter 170 includes an oDSP chip 130 and a TOSA 25. The optical receiver 180 includes an oDSP chip 140 and a ROSA 26. The TOSA 25 and the ROSA 26 are connected to an optical fiber.

[0085] The oDSP chip 130 includes, in series, a serializing / deserializing circuitry (Serdes) 11, a channel conditioning circuit 12, a first in first out (FIFO) circuit 13, a mapping circuit 14, a digital signal processing (DSP) circuit 15, a FIFO circuit 16, and a digital analog converter (DAC) 17. The oDSP chip 140 includes, in series, a serializing / deserializing circuitry (Serdes) 18, a channel distribution circuit 19, a FIFO circuit 20, a demapping circuit 21, a DSP circuit 22, a FIFO circuit 23, and an analog digital converter (ADC) 24.

[0086] For example, the mapping circuit 14 may be implemented by a four-level pulse amplitude modulation (PAM4) circuit or a bit interleaving (BitMux) circuit. Similarly, the demapping circuit 21 may be implemented by a PAM4 circuit or a bit deinterleaving (BitDeMux) circuit.

[0087] The circuits of the oDSP chip 130 and the oDSP chip 140 may cause asymmetry and uncertainty between the receiving delay and the transmitting delay, and may cause a delay of 10 ns (nanoseconds). As a result, the accuracy of the clock synchronization between the base stations is low, and the clock accuracy of the network device is affected. Therefore, the gray optical module determines the delay generated when the packet is transmitted in the gray optical module, and reports the delay to the interface chip to further improve the clock accuracy of the network device.

[0088] Figure 6 is a schematic structural diagram of a color optical module. As shown in Figure 6, the color optical module includes an optical transmitter 190 and an optical receiver 200. The optical transmitter 190 includes an oDSP chip 150 and an integrated tunable laser assembly (ITLA) 49. The optical receiver 200 includes an oDSP chip 160 and an infrared cut 50. The ITLA 49 and the infrared cut 50 are connected to an optical fiber.

[0089] The oDSP chip 150 includes, connected in series, a serializing / deserializing circuitry (Serdes) 31, a channel conditioning circuit 32, a FIFO circuit 33, a mapping circuit 34, a FIFO circuit 35, a forward error correction (FEC) circuit 36, a DSP circuit 37, a FIFO circuit 38, and a DAC 39. The oDSP chip 160 includes, connected in series, a serializing / deserializing circuitry (Serdes) 40, a channel distribution circuit 41, a FIFO circuit 42, a demapping circuit 43, a FIFO circuit 44, an FEC circuit 45, a DSP circuit 46, a FIFO circuit 47, and an ADC 48.

[0090] For example, the mapping circuit 34 may be implemented by a framer or a bit interleave (BitMux) circuit. Similarly, the demapping circuit 43 may be implemented by a deframer or a bit deinterleave (BitDeMux) circuit.

[0091] Compared with the gray optical module, the FEC circuit is added to the oDSP chip 150 and the oDSP chip 160 of the color optical module. Therefore, there are more factors that cause the uncertainty of the receiving delay and the transmitting delay, resulting in a synchronization accuracy of about 10 ns. Therefore, the color optical module determines the delay generated when a packet is transmitted in the color optical module, and reports the delay to the interface chip to further improve the clock accuracy of the network device.

[0092] Based on the above, the process of the first light module determining the first delay will be described separately using an example in which the first light module is the aforementioned gray light module and an example in which the first light module is the aforementioned color light module.

[0093] 5, when the first optical module is a gray optical module, the first optical module includes an optical transmitter 170. The optical transmitter 170 includes an inbound interface and an outbound interface. In this case, the first optical module may receive a first data flow via the inbound interface and transmit the first data flow to a second network device via the outbound interface. The first optical module determines that a delay generated when the first data flow is transmitted at the optical transmitter is a first delay.

[0094] The first delay may be a delay generated when the first data flow is transmitted at the optical transmitter 170 of the first optical module. With reference to Figure 5, it can be understood that because the optical transmitter 170 includes different processing circuits, the first delay may instead be a delay incurred when each of the different processing circuits of the optical transmitter processes the first data flow.

[0095] Specifically, as shown in FIG. 5, the first delay may be a delay generated when the first data flow is transmitted from the inbound interface of the optical transmitter 170 to the outbound interface of the optical transmitter 170. Alternatively, the first delay may be a delay generated when at least one processing circuit included in the optical transmitter 170 processes the first data flow. Indeed, the first delay may alternatively be a sum of delays generated when at least one processing circuit included in the optical transmitter 170 processes the first data flow and a default value or a design value. For example, the first delay may be a delay generated when the first data flow is transmitted from the serialization / deserialization circuit 11 to the TOSA 25, or may be a delay generated when each processing circuit in the oDSP chip 130 processes the first data flow, or may be a sum of delays generated when each of the channel adjustment circuit 12, the FIFO circuit 13, the mapping circuit 14, the DSP circuit 15, and the FIFO circuit 16 in the oDSP chip 130 processes the first data flow and a default value or a design value.

[0096] For example, delay asymmetry and uncertainty may occur in the oDSP chip of the first optical module, so in practical applications, when calculating the delay of the first optical module, only the delay corresponding to the oDSP chip needs to be determined.

[0097] In the following, a method for determining a delay generated when a first data flow is transmitted in an oDSP chip of a gray optical module is described in detail. Specifically, when the first data flow is transmitted to a first circuit, the first optical module extracts a first indication signal carried in the first data flow. When the first data flow is transmitted to a second circuit, the first optical module extracts a second indication signal carried in the first data flow. Then, the first optical module determines a first delay based on the first indication signal and the second indication signal. Since the structure of the first data flow does not change in the mapping process of the first data flow on the receiving path and the demapping process of the first data flow on the transmitting path, in a possible implementation, the first delay can be measured based on an alignment marker (AM) indication signal. That is, the first indication signal and the second indication signal can be an AM indication signal. Indeed, in another possible implementation, the first indication signal and the second indication signal can alternatively be other easily identified signals, for example, an identifier inserted in the first data flow. The particular form of the first and second indication signals is not limited in this embodiment of the application, provided that the first and second indication signals are identifiable on the inbound and outbound interfaces.

[0098] Also, when the first delay is determined based on the first instruction signal and the second instruction signal, a phase difference between the first instruction signal and the second instruction signal may be measured, and the first delay is determined based on the phase difference.

[0099] Furthermore, the first circuit and the second circuit may be any two different circuits in the oDSP chip. For example, the first circuit may be the channel conditioning circuit 12 shown in FIG. 5, and the second circuit may be the FIFO circuit 16 shown in FIG. 5. In this case, the delay occurring when the first data flow is transmitted from the channel conditioning circuit 12 to the FIFO circuit 16 may be determined based on the phase difference between the first indication signal and the second indication signal. The delay corresponding to the other circuit may be a default value or a design value. Alternatively, the first circuit may be the FIFO circuit 13, and the second circuit may be the FIFO circuit 16. In this case, the delay occurring when the first data flow is transmitted from the FIFO circuit 13 to the FIFO circuit 16 may be determined based on the phase difference between the first indication signal and the second indication signal. Similarly, the delay corresponding to the other circuit may be a default value or a design value.

[0100] The following description will be given using an example in which the first circuit is the channel adjustment circuit 12, the second circuit is the DAC 17, and both the first instruction signal and the second instruction signal are AM instruction signals.

[0101] Specifically, FIG. 7 is a schematic structural diagram of the oDSP chip in the gray optical module. As shown in FIG. 7, Serdes11 and DAC17, or Serdes18 and ADC24, mainly implement the conversion between serialization and deserialization of data, and every time the first optical module is powered on and the link status is stable, the delay corresponding to Serdes11 and DAC17, or Serdes18 and ADC24 is relatively fixed and is not affected by factors such as the insertion and removal of optical fibers or modules. Therefore, the delay corresponding to Serdes11 and DAC17, or Serdes18 and ADC24 (for example, path A, path F, path C, and path D in FIG. 7) can be a preset design value, or can be a simulation value obtained by simulation, or can certainly be a default value.

[0102] Moreover, the mapping circuit 14 and the demapping circuit 21 mainly implement mapping and demapping from multiple low-speed channels to a high-speed channel. The mapping is performed through bit interleaving, and the structure of the first data flow is not changed, so the delay of each bit data remains the same. However, due to factors such as the insertion and removal of optical fibers or modules, and changes in PVT (process, voltage, and temperature), the read / write clock phase for synchronously processing the FIFO circuits 13 and 16, or the FIFO circuits 20 and 23, changes, so that the delay corresponding to the FIFO circuits at each level is not fixed, and delay asymmetry is introduced. Therefore, the delay of the oDSP chip needs to be measured every time the link of the first optical module is successfully established and the clock status changes. In a possible implementation, when the delay of a packet in the oDSP chip is measured, only the delay corresponding to the path B or path E shown in FIG. 7 usually needs to be measured.

[0103] In other words, the delay of packets in the oDSP chip of the optical transmitter is used as an example. In practical application, when measuring the first delay generated when the first data flow is transmitted from the inbound interface of the optical transmitter to the outbound interface of the optical transmitter, only the delay of the first data flow on path B can be measured. After measuring the delay corresponding to path B, add the delay corresponding to path B, the delay corresponding to path A, and the delay corresponding to path C to obtain the delay generated when the first data flow is transmitted in the optical transmitter.

[0104] For example, an example in which the first indication signal and the second indication signal are AM indication signals will be used for explanation. As shown in FIG. 7, the first data flow arrives at the channel adjustment circuit 12 through multiple channels. After the channel adjustment circuit 12 performs channel adjustment on the first data flow of the multiple channels, the channel selection module 55 selects one channel from the multiple channels, detects the AM indication signal 1 carried in the first data flow from the selected channel, and transmits the detected AM indication signal 1 to the TX delay measurement module 56. Furthermore, in order to accurately extract the AM indication signal from the outbound interface of the optical transmitter, it is necessary to further identify the AM indication signal. The identified AM indication signal is carried in the first data flow and then transmitted. After it is detected that the first data flow is output from the FIFO circuit 16, that is, the first data flow is transmitted to the DAC 17, the AM extraction module 53 extracts the AM indication signal 2 carried in the first data flow from the channel in which the AM indication signal 1 is detected based on the above-mentioned identifier, and transmits the detected AM indication signal 2 to the TX delay measurement module 56. In this case, the TX delay measurement module 56 may determine the delay of the first data flow on path B by measuring the phase difference between AM indication signal 1 and AM indication signal 2 using a high-precision phase discrimination algorithm. The measurement accuracy depends on the accuracy of the phase discrimination algorithm. Typically, the accuracy of the measured delay may reach the 100 ps level.

[0105] AM indication signal 1 and AM indication signal 2 are the same AM indication signal.

[0106] For example, after the delay of a first data flow on path B is determined, the delay generated when the first data flow is transmitted at the optical transmitter may be obtained by obtaining the delay corresponding to path A and the delay corresponding to path C, and adding together the delay corresponding to path A, the delay corresponding to path C, and the delay corresponding to path B.

[0107] Also, in order to improve the accuracy of delay determination, when performing channel adjustment and selecting one channel from multiple channels to extract an AM indication signal, it should be noted that the channel in which the first data flow last reaches the channel adjustment module may be selected to extract the AM indication signal.

[0108] Those skilled in the art may understand that the delay generated when the first data flow is transmitted at the optical receiver of the first optical module may be a value obtained by adding the delay corresponding to the path D, the delay corresponding to the path E, and the delay corresponding to the path F. The delay corresponding to the path D and the delay corresponding to the path F are similar to the delay corresponding to the path C and the delay corresponding to the path A in the optical transmitter, and may be a preset design value, or may be a simulation value obtained by simulation, or may certainly be a default value. The method of determining the delay corresponding to the path E is similar to the method of determining the delay corresponding to the path B in the transmission direction. Specifically, when the first data flow is transmitted to the first circuit, the AM detection module 54 extracts the AM indication signal 3 carried in the first data flow. When the first data flow is transmitted to the second circuit, the AM extraction module extracts the AM indication signal 4 carried in the first data flow. The RX delay measurement module 57 may determine the delay corresponding to the path E by measuring the phase difference between the AM indication signal 3 and the AM indication signal 4. The first circuit may be a FIFO circuit, and the second circuit may be a serialization / deserialization circuit 18. For the channel selection process and the AM indication signal extraction process, please refer to the description of the optical transmitter, and the details will not be described again here.

[0109] Also, considering the difference in chip implementation, if the gray optical module does not have the function of measuring the delay corresponding to path B and the delay corresponding to path E, the delay corresponding to path B and the delay corresponding to path E may be a preset design value, or may be a simulation value obtained by simulation, or may certainly be a default value. In addition, every time the link of the first optical module is successfully established and the clock state changes, the actual delay corresponding to path B and the actual delay corresponding to path E will change, so the preset design value, simulation value, or default value is not accurate enough. To solve this problem, in practical application, the preset design value is used as an example. The average value of the design value may be calculated, and the average value is used as the delay corresponding to path B and the delay corresponding to path E. Alternatively, the minimum design value and the maximum design value are determined, and the determined minimum design value and the determined maximum design value are used as the delay corresponding to path B and the delay corresponding to path E, and the two values ​​are reported to the interface chip. The method of determining the simulation value and the default value is similar to the method of determining the design value. Details will not be described again here.

[0110] Referring to FIG. 6, when the first optical module is a color optical module, overhead processing circuits such as a Framer or FEC circuit are disposed in the color optical module, so that the structure of the original data flow changes due to the addition or removal of overhead. As a result, the delay of each bit data changes during the overhead addition (sender) and overhead removal (receiver) processes. Because each bit data received by the first optical module may be a PTP packet timestamp signal, the delay when the first optical module is used as a sender or the delay when the first optical module is used as a receiver cannot be measured individually due to such non-fixed delay. However, those skilled in the art may understand that the delay change caused by data mapping at the sender and the delay change caused by data demapping at the receiver are opposite processes, that is, the sum of the delays of a part of the bit data at the sender and the receiver is fixed. Therefore, in this embodiment of the present application, the first optical module and the second optical module may be paired for delay measurement.

[0111] The first optical module is a color optical module of a first network device, and the second optical module is a color optical module of a second network device. The first optical module includes an optical transmitter and a first optical receiver, and the first optical module receives a first data flow by using the optical transmitter. A delay generated when the first data flow is transmitted at the optical transmitter is a second delay. Then, the first optical module transmits the first data flow to a second optical receiver of a second optical module of a second network device using the optical transmitter. A delay generated when the first data flow is transmitted at the second optical receiver is a third delay. A sum of the second delay and the third delay is the aforementioned first delay. The first optical module receives a second data flow transmitted by the second network device by using the first optical receiver. The second data flow carries indication information. In response, the first optical module may determine the first delay based on the indication information carried in the second data flow.

[0112] Specifically, Figures 8A and 8B are schematic structural diagrams of the oDSP chip of a color optical module. As shown in Figures 8A and 8A, the first optical module 67 is a color optical module of a first network device, and includes an optical transmitter 210 and an optical receiver 220. The first optical module 67 receives a first data flow using the optical transmitter 210, and then transmits the first data flow to a second optical receiver 230 of a second optical module 96 of a second network device using the optical transmitter 210. Thus, a second delay generated when the first data flow is transmitted by the optical transmitter 210 of the first optical module 67, and a third delay generated when the first data flow is transmitted by the optical receiver 230 of the second optical module 96 can be measured based on the first data flow.

[0113] The second optical module 96 includes an optical transmitter 240 and an optical receiver 230. The optical transmitter 240 includes an oDSP chip 97 and an ITLA 82, and the optical receiver 230 includes an oDSP chip 95 and an infrared cut 70. The ITLA 82 and the infrared cut 70 are connected to an optical fiber.

[0114] The oDSP chip 97 includes, connected in sequence, a serializing / deserializing circuitry (Serdes) 93, a channel conditioning circuit 91, a FIFO circuit 90, a mapping circuit 89, a FIFO circuit 88, a forward error correction (FEC) circuit 87, a DSP circuit 86, a FIFO circuit 85, and a DAC 83. The oDSP chip 95 includes, connected in sequence, an ADC 71, a FIFO circuit 73, a DSP circuit 74, an FEC circuit 75, a FIFO circuit 76, a demapping circuit 77, a FIFO circuit 78, a channel distribution circuit 79, and a serializing / deserializing circuit (Serdes) 81.

[0115] For example, the mapping circuit 89 may be implemented by a Framer or a BitMux circuit. Similarly, the demapping circuit 77 may be implemented by a DeFramer or a BitDeMux circuit.

[0116] 8A and 8B, because the transmitter 210 of the first optical module includes different processing circuits, the second delay may be a delay incurred when each of the different processing circuits of the transmitter 210 processes the first data flow. Similarly, because the optical receiver 230 of the second optical module also includes different processing circuits, the third delay may be a delay incurred when each of the different processing circuits of the optical receiver 230 processes the first data flow.

[0117] Specifically, as shown in Figures 8A and 8B, the second delay may be a delay generated when the first data flow is transmitted from an inbound interface of the optical transmitter 210 to an outbound interface of the optical transmitter 210, or may be a delay incurred when at least one processing circuit included in the optical transmitter 210 processes the first data flow, or indeed may be a sum of delays incurred when at least one processing circuit included in the optical transmitter 210 processes the first data flow and default or design values. For example, the second delay may be a delay generated when the first data flow is transmitted from the serialization / deserialization circuit 31 to the TOSA 49, or may be a delay generated when the first data flow is transmitted from the oDSP chip 31 to the TOSA 49. 68 It may be the delay incurred when each processing circuit of the first data flow processes the first data flow, or the delay may be the delay incurred when each processing circuit of the first data flow processes the first data flow. 68 The delay may be the sum of delays incurred when each of the channel adjustment circuit 32, the FIFO circuit 33, the mapping circuit 34, the FIFO circuit 35, the FEC circuit 36, the DSP circuit 37, and the FIFO circuit 38 processes the first data flow and the default or design value.

[0118] The third delay is the delay time it takes for the first data flow to reach the second optical receiver 230 from the inbound interface of the second optical receiver 230. ReceiverThe third delay may be a delay generated when the first data flow is transmitted to the outbound interface of the second optical receiver 230, or may be a delay incurred when at least one processing circuit included in the second optical receiver 230 processes the first data flow, or indeed may be a sum of delays that occur when at least one processing circuit included in the optical receiver 230 processes the first data flow and a default or design value. For example, the third delay may be a delay generated when the first data flow is transmitted from the infrared cut 70 to the serialization / deserialization circuit 81, or may be a delay that occurs when each processing circuit of the oDSP chip 95 processes the first data flow, or may be a sum of delays that occur when each of the DAC 71, FIFO circuit 73, DSP circuit 74, FEC circuit 75, FIFO circuit 76, demapping circuit 77, FIFO circuit 78, and channel distribution circuit 79 of the oDSP chip 95 processes the first data flow and a default or design value.

[0119] Similar to the gray optical module, delay asymmetry and uncertainty may occur on the oDSP chips of the first optical module and the second optical module. Therefore, in practical applications, when calculating the delays of the first optical module and the second optical module, only the delays corresponding to the oDSP chips of the first optical module and the second optical module need to be determined.

[0120] The following provides a detailed description of the delay generated when a first data flow is transmitted by an oDSP chip of a first optical module and the delay generated when a first data flow is transmitted by an oDSP chip of a second optical module.

[0121] Specifically, assume that a first data flow is transmitted on a first optical module. When the first data flow is transmitted to a first circuit, the first optical module extracts a first indication signal carried on the first data flow. When the first data flow is transmitted to a second circuit, the first optical module extracts a second indication signal carried on the first data flow. Then, based on the first indication signal and the second indication signal, the first optical module may determine a second delay to be generated when the first data flow is transmitted on the optical transmitter 210 of the first optical module 67.

[0122] Further assume that the first data flow is transmitted on the second optical module. When the first data flow is transmitted to the third circuit, the second optical module extracts a third indicator signal carried on the first data flow. When the first data flow is transmitted to the fourth circuit, the second optical module extracts a fourth indicator signal carried on the first data flow. The second optical module then determines, based on the third indicator signal and the fourth indicator signal, a third delay to be generated when the first data flow is transmitted on the second optical receiver 230 of the second optical module 96.

[0123] Furthermore, the first circuit and the second circuit are 68 8A and 8B, and the second circuit may be any two different circuits. For example, the first circuit may be the channel conditioning circuit 32 shown in FIG. 8A and 8B, and the second circuit may be the FIFO circuit 38 shown in FIG. 8A and 8B. In this case, the delay generated when the first data flow is transmitted from the channel conditioning circuit 32 to the FIFO circuit 38 may be determined based on the phase difference between the first indication signal and the second indication signal. The delay corresponding to the other circuit may be a default value or a design value. Alternatively, the first circuit may be the FIFO circuit 33 and the second circuit may be the FIFO circuit 38. In this case, the delay generated when the first data flow is transmitted from the FIFO circuit 33 to the FIFO circuit 38 may be determined based on the phase difference between the first indication signal and the second indication signal. Similarly, the delay corresponding to the other circuit may be a default value or a design value.

[0124] Similarly, the third circuit and the fourth circuit may be any two different circuits of the oDSP chip 95. For example, the third circuit may be the FIFO circuit 73 shown in FIG. 8A and the fourth circuit may be the serialization / deserialization circuit 81 shown in FIG. 8A and 8B. In this case, the delay generated when the first data flow is transmitted from the FIFO circuit 73 to the serialization / deserialization circuit 81 may be determined based on the phase difference between the first indication signal and the second indication signal. The delay corresponding to the other circuit may be a default value or a design value. Alternatively, the third circuit may be the signal processing circuit 74 and the fourth circuit may be the serialization / deserialization circuit 81. In this case, the delay generated when the first data flow is transmitted from the signal processing circuit 74 to the serialization / deserialization circuit 81 may be determined based on the phase difference between the first indication signal and the second indication signal. Similarly, the delay corresponding to the other circuit may be a default value or a design value.

[0125] 8A and 8B, the transmission direction in which the first optical module 67 transmits the first data flow to the second optical module 96 is used as an example. The delays corresponding to the paths A1 and C1 of the first optical module 67 and the delays corresponding to the paths D2 and F2 of the second optical module 96 are similar to the delays corresponding to the Serdes 11 and DAC 17, or the Serdes 18 and ADC 24 of the gray optical module, and may be pre-set design values, or may be simulation values ​​obtained by simulation, or may certainly be default values. Therefore, when measuring the second delay generated when the first data flow is transmitted by the optical transmitter 210 of the first optical module 67, only the delay corresponding to the path B1 needs to be measured. When measuring the third delay generated when the first data flow is transmitted by the second optical receiver 230 of the second optical module 96, only the delay corresponding to the path E2 needs to be measured.

[0126] Specifically, when measuring the delay corresponding to the path B1, as shown in FIG. 8A and FIG. 8B, an example in which the first circuit is the channel adjustment circuit 32, the second circuit is the DAC 39, the first instruction signal is an AM instruction signal, and the second instruction signal is a DSP frame header signal is used for explanation, the first data flow arrives at the channel adjustment circuit 32 of the first optical module 67 through multiple channels. After the channel adjustment circuit 32 performs channel adjustment on the first data flow on the multiple channels, the channel selection module 64 selects one channel from the multiple channels. When the first data flow is transmitted to the channel adjustment circuit 32, the AM detection module 60 detects the AM instruction signal 1 carried in the first data flow from the selected channel, and transmits the detected AM instruction signal 1 to the TX delay measurement module 65. In addition, the optical transmitter of the second optical module 96 240 In order to accurately extract the AM indication signal from the outbound interface of the first optical module 67, it is necessary to further identify the AM indication signal. The identified AM indication signal is carried in the first data flow and then transmitted. The inbound interface of the optical transmitter 210 of the first optical module 67 periodically extracts the DSP frame header indication signal 1. For example, after the first data flow is transmitted to the DAC 39, the DSP frame header extraction module 61 extracts the DSP frame header indication signal 1 carried in the first data flow and transmits the extracted DSP frame header indication signal 1 to the TX delay measurement module 65. In this case, the TX delay measurement module 65 can determine the delay of the first data flow on the path B1 by measuring the phase difference between the AM indication signal 1 and the DSP frame header indication signal 1 using a high-precision phase discrimination algorithm. The measurement accuracy depends on the accuracy of the phase discrimination algorithm. In general, the accuracy of the measured delay can reach the 100ps level.

[0127] It should be noted that the period of the AM indication signal is different from that of the DSP frame header indication signal, so there is no fixed phase relationship between the AM indication signal and the DSP frame header indication signal. In order to facilitate pairing and measurement, it is necessary to select two adjacent signals from the AM indication signal and the DSP frame header indication signal for measurement. For example, if the period of the AM indication signal is 3 ms and the period of the DSP frame header indication signal is 1.2 ms, one AM indication signal may appear in the first data flow after two DSP frame header indication signals. In this case, the AM indication signal and the DSP frame header indication signal adjacent to the AM indication signal, for example, the AM indication signal and the second DSP frame header indication signal, may be selected for measurement, and the phase difference between the two signals is measured.

[0128] Furthermore, in order to accurately extract the DSP frame header indication signal from the inbound interface of the second optical receiver 230 of the second optical module 96, identification information needs to be further added to the DSP frame header indication signal, and the first data flow to which the identification information is added is transmitted to the second optical module 96 via the optical fiber.

[0129] Similarly, when the delay corresponding to the path E2 is measured, an example is used for explanation in which the third circuit is the FIFO circuit 73, the fourth circuit is the serialization / deserialization circuit 81, the third indication signal is the DSP frame header indication signal, and the fourth indication signal is the AM indication signal. As shown in FIG. 8A and FIG. 8A, after the first optical module 67 uses the optical transmitter 210 to transmit the first data flow to the second optical receiver 230 of the second optical module 96, the ADC 71 of the second optical module 96 transmits the first data flow to the FIFO circuit 73. Then, the DSP frame header pre-detection module 72 extracts the DSP frame header indication signal 2 based on the identification information added to the DSP frame header indication signal of the optical transmitter 210 of the first optical module 67, and transmits the extracted DSP frame header indication signal 2 to the RX delay measurement module 94. In this case, the first data flow continues to be transmitted. After being detected, the first data flow is sent to the serialization / deserialization circuit 81, and the AM extraction module 80 extracts the AM of the optical transmitter 210 of the first optical module 67. instruction signal , extracts the AM indication signal 2 carried in the first data flow from the channel based on the identification information added to the AM indication signal 2, and transmits the extracted AM indication signal 2 to the RX delay measurement module 94. In this case, the RX delay measurement module 94 can determine the delay of the first data flow on the path E2 by measuring the phase difference between the DSP frame header indication signal 2 and the AM indication signal 2 using a high-precision phase discrimination algorithm. The measurement accuracy depends on the accuracy of the phase discrimination algorithm. In general, the accuracy of the measured delay can reach the 100 ps level.

[0130] The AM indication signal 1 and the AM indication signal 2 are the same AM indication signal. The DSP frame header indication signal 1 and the DSP frame header indication signal 2 are the same indication signal.

[0131] In addition, other easily identifiable data identifiers may also be used for the second and fourth indication information. For example, a new identifier is inserted into the first data flow. The specific form of the second and fourth indication information is not limited in this embodiment of the present application.

[0132] For example, after the delay of a first data flow on path B1 is determined, a second delay generated when the first data flow is transmitted at an optical transmitter of a first optical module may be obtained by obtaining a delay corresponding to path A1 and a delay corresponding to path C1, and adding together the delay corresponding to path A1, the delay corresponding to path C1, and the delay corresponding to path B1.

[0133] For example, after the delay of the first data flow on path E2 is determined, a third delay generated when the first data flow is transmitted at the second optical receiver of the second optical module may be obtained by obtaining the delay corresponding to path D2 and the delay corresponding to path F2, and adding together the delay corresponding to path D2, the delay corresponding to path E2, and the delay corresponding to path F2.

[0134] It should be noted that after determining the second delay generated when the first data flow is transmitted at the optical transmitter 210, the first optical module transmits the first data flow including the second delay to the second optical receiver 230 of the second optical module 96. After determining the third delay generated when the first data flow is transmitted at the second optical receiver 230, the second optical module determines the sum of the obtained second delay and the obtained third delay as the first delay.

[0135] In a possible implementation, after determining the first delay, the second optical receiver 230 of the second optical module transmits the second data flow to the first optical receiver 220 of the first optical module 67. The second data flow carries indication information. Thus, the first optical module can determine the first delay based on the indication information. In a possible implementation, the indication information includes the first delay. After receiving the indication information in the second data flow by using the first optical receiver 220, the first optical module 67 can directly determine the first delay.

[0136] It should be noted that, like the gray light module, if the color light module does not have the ability to measure the delay corresponding to path B1 and the delay corresponding to path E2, the delay corresponding to path B1 and the delay corresponding to path E2 may be pre-set design values, or may be simulation values ​​obtained by simulation, or may certainly be default values.

[0137] Those skilled in the art may understand that when the second optical module 96 transmits a first data flow to the first optical receiver 220 of the first optical module 67 by using the optical transmitter 240, the first delay may be the sum of the delay generated when the first data flow is transmitted at the optical transmitter 240 of the second optical module 96 and the delay generated when the first data flow is transmitted at the first optical receiver 220 of the first optical module 67. The delay generated when the first data flow is transmitted at the optical transmitter 240 of the second optical module 96 is the sum of the delay corresponding to the path A2, the delay corresponding to the path B2, and the delay corresponding to the path C2. The delay generated when the first data flow is transmitted at the first optical receiver 220 of the first optical module 67 is the sum of the delay corresponding to the path D1, the delay corresponding to the path E1, and the delay corresponding to the path F1. The delay corresponding to the path A2, the delay corresponding to the path C2, the delay corresponding to the path D1, and the delay corresponding to the path F1 are similar to the delay corresponding to the path A1 and the delay corresponding to the path C1, and the delay corresponding to the path D2 and the delay corresponding to the path F2 may be preset design values, or may be simulation values ​​obtained by simulation, or may certainly be default values. The method of determining the delay corresponding to the path B2 of the optical transmitter 240 of the second optical module 96 and the delay corresponding to the path E1 of the first optical receiver 220 of the first optical module 67 is similar to the method of determining the delay corresponding to the path B1 of the optical transmitter 210 of the first optical module 67 and the delay corresponding to the path E2 of the second optical receiver 230 of the second optical module 96. The details will not be described again here.

[0138] Step 202: The first optical module sends a first delay to the interface chip.

[0139] In this embodiment, since the delay report register access interface is defined in the first optical module, after determining the first delay, the first optical module sends the first delay to the interface chip through the delay report register access interface, so that the interface chip adds the first delay to the recorded timestamp. Therefore, since the timestamp recorded by the MDI layer includes the delay generated when the packet is transmitted by the optical module, the timestamp recorded by the MDI layer is more accurate, and the accuracy of the time synchronization between the master clock and the slave clock can be made higher, and the clock accuracy of the network device can be further improved.

[0140] In a possible implementation, the interface chip includes at least one of a PHY chip and a MAC chip.

[0141] In a possible implementation, the delay reporting register access interface of the first optical module may be defined in the manner of the following table.

[0142] [Table 1]

[0143] The interface bit width is used to represent the amount of bits of the interface signal. For optical modules that do not support delay reporting, the report value of the delay report register access interface is a fixed value of 0. Optical modules that support delay reporting can be further classified into two types: optical modules that do not support delay measurement and optical modules that support delay measurement. The first delay reported by optical modules that do not support delay measurement is the design value of the oDSP chip. The first delay reported by optical modules that support delay measurement is a measured value obtained based on the indication information.

[0144] Furthermore, if the first optical module is a gray optical module, after determining the first delay, the first optical module may report the first delay to the interface chip through the aforementioned defined interface. After receiving the first delay, the interface chip may add the first delay and the delay generated when the packet is transmitted on the MAC layer or PHY layer to the timestamp recorded by the MAC layer or PHY layer. Therefore, the asymmetric error caused by the optical module can be greatly reduced, so that the timestamp recorded by the MDI layer is more accurate, the accuracy of the time synchronization between the master clock and the slave clock can be higher, and the clock accuracy of the network can be further improved.

[0145] If the first optical module is a color optical module, the first delay is the sum of the delay generated when the first data flow is transmitted at the optical transmitter of the first optical module and the delay generated when the first data flow is transmitted at the second optical receiver of the second optical module. In the implementation, if the second optical module transmits the measured first delay to the first optical module by using the second data flow, the first optical module may report the first delay to the interface chip through the delay report register access interface defined in the first optical module. In this case, the second optical module may report the first delay to the interface chip through the delay report register access interface defined in the second optical module, or may report 0 or a special identifier. Indeed, the second optical module may not perform reporting.

[0146] In another implementation, when the second optical module reports the first delay to the interface chip through the delay report register access interface defined in the second optical module, the first optical module may report the first delay through the delay report register access interface defined in the first optical module, or may report 0, or may report a special identifier. Indeed, the first optical module may not perform reporting.

[0147] In yet another implementation, the first optical module and the second optical module may divide the first delay into two parts according to a preset rule, the first part being reported by the first optical module to the interface chip via a delay report register access interface defined by the first optical module, and the second part being reported by the second optical module to the interface chip via a delay report register access interface defined by the second optical module.

[0148] According to the communication method provided in this embodiment of the present application, after determining the first delay, the first optical module sends the determined first delay to the interface chip. A delay report register access interface is defined in the first optical module, so that the first optical module can report the first delay to the MAC layer or the PHY layer through the delay report register access interface, and add the first delay to the timestamp of the packet recorded by the MAC layer or the PHY layer, thereby improving the accuracy of the time synchronization between the master clock and the slave clock, and thereby further improving the clock accuracy of the network device.

[0149] The above describes the communication method provided in the embodiment of the present application. The following describes the optical module provided in the embodiment of the present application.

[0150] The optical module provided in the embodiment of the present application may be used as a first optical module and configured to perform the operations related to the first optical module in the embodiment of the method described above. 901 Includes.

[0151] Processor 901 is configured to determine a first delay.

[0152] Processor 901 is further configured to transmit the first delay to the interface chip.

[0153] After determining the first delay, the optical module provided in the embodiment of the present application sends the determined first delay to the interface chip. Since a delay report register access interface is defined in the optical module, the optical module can report the first delay to the MAC layer or the PHY layer through the delay report register access interface, and add the first delay to the timestamp of the packet recorded by the MAC layer or the PHY layer, thereby improving the accuracy of the time synchronization between the master clock and the slave clock, and thereby further improving the clock accuracy of the network device.

[0154] 9 is a schematic structural diagram of an optical module according to an embodiment of the present application. Referring to FIG. 9, the first optical module 910 is a gray optical module. 910 is an optical transmitter 902 Includes: Optical transmitter 902 is a processor 901 , Inbound Interface 9021 , and the outbound interface 9022 Includes.

[0155] Optical Transmitter 902 is the inbound interface 9021 The first data flow is configured to receive the first data flow via the

[0156] Optical Transmitter 902 In addition, the outbound interface 9022 The first data flow is configured to transmit to the second network device via the first network device.

[0157] Processor 901 The first data flow is further 902 The delay generated when the signal is transmitted on the first delay is determined to be the first delay.

[0158] 10 is a schematic structural diagram of another optical module according to an embodiment of the present application. Referring to FIG. 10, the first optical module 920 is a color optical module of a first network device. 920 is an optical transmitter 903 and a first optical receiver. 904 A first optical receiver 904 is a processor 901 Includes.

[0159] Optical Transmitter 903 is configured to receive a first data flow. The first data flow is 903 The delay created when the signal is transmitted at is the second delay.

[0160] Optical Transmitter 903 is further configured to transmit the first data flow to a second optical receiver in a second optical module of the second network device, where a delay generated when the first data flow is transmitted at the second optical receiver is a third delay.

[0161] The sum of the second delay and the third delay is the first delay.

[0162] First Optical Receiver 904 is configured to receive a second data flow transmitted by a second network device, the second data flow carrying the indication information.

[0163] Processor901 is particularly configured to determine the first delay based on the indication information.

[0164] In one embodiment, the indication includes a first delay.

[0165] In one embodiment, if the optical module does not support delay measurement, the first delay is a design value.

[0166] 11 is a schematic structural diagram of yet another optical module according to an embodiment of the present application. Based on the embodiment shown in FIG. 10, referring to FIG. 11, an optical transmitter 903 The first circuit 9031 and the second circuit 9032 Includes: Processor 901 is further structured as follows: When the first data flow is transmitted to the first circuit, a first indication signal carried in the first data flow is extracted. When the first data flow is transmitted to the second circuit, a second indication signal carried in the first data flow is extracted. A first delay is determined based on the first indication signal and the second indication signal.

[0167] In one embodiment, the processor 901 is further structured as follows: A phase difference between the first and second indicator signals is measured. A first delay is determined based on the phase difference.

[0168] Both the first and second indication signals are adjustment marker AM indication signals, or the first indication signal is an AM indication signal and the second indication signal is a digital signal processing DSP frame header signal.

[0169] In one embodiment, the interface chip includes at least one of a physical layer PHY chip and a media access control layer MAC chip.

[0170] Processor901 may be one or more integrated circuits configured to perform the aforementioned methods, such as an oDSP, one or more application specific integrated circuits (ASICs), one or more microprocessors (digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). As another example, the processor may be a central processing unit (CPU) or another processor capable of invoking a program.

[0171] The optical module provided in the embodiment of the present application can implement the corresponding method embodiment described above. The implementation principle and technical effect of the optical module are similar to those in the method embodiment. The details are not described again here.

[0172] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the procedure related to the first optical module in the communication method provided in the above-mentioned method embodiment can be implemented.

[0173] Those skilled in the art may recognize that the units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware in combination with the examples described in the embodiments disclosed herein. Whether a function is performed by hardware or software depends on the design constraints of a specific application and technical solution. Those skilled in the art may use different methods to implement the functions described for each specific application, but the implementation should not be considered to go beyond the scope of the embodiments of the present application.

[0174] Furthermore, aspects or features in the embodiments of the present application may be implemented as a method, apparatus, or article of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" as used in this application covers a computer program accessible from a computer-readable component, carrier, or medium. For example, computer-readable media may include, but are not limited to, magnetic storage components (e.g., hard disks, floppy disks, or magnetic tapes), optical disks (e.g., compact discs (CDs), digital versatile discs (DVDs)), smart cards, and flash memory components (e.g., erasable programmable read-only memory (EPROM), cards, sticks, or key drives). Furthermore, various storage media described herein may refer to one or more devices and / or other machine-readable media configured to store information. The term "machine-readable medium" may include, but is not limited to, wireless channels, and various other media capable of storing, containing, and / or carrying instructions and / or data.

[0175] All or some of the above-mentioned embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When implementing the embodiments using software, the embodiments may be implemented completely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded into a computer and executed, the procedures or functions according to the embodiments of the present application are generated completely or partially. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (e.g., coaxial cable, optical fiber, or digital subscriber line (DSL)) or wireless (e.g., infrared, radio, or microwave) manner. The computer-readable storage medium may be any available medium accessible by a computer, or a data storage device such as a server or data center that integrates one or more available media. The media that can be used include magnetic media (e.g., soft disks, hard disks, or magnetic tapes), optical media (e.g., DVDs), and semiconductor media (e.g., solid-state drives). ( Solid State Disks 、 SSD), etc.

[0176] It should be understood that the sequence numbers of the above processes do not mean the execution sequence in various embodiments of the present application. The execution sequence of the processes should be determined according to the functions and internal logic of the processes, and should not be construed as any restriction on the implementation process of the embodiments of the present application.

[0177] For the purpose of convenient and simple description, it may be clearly understood by those skilled in the art that the detailed work processes of the aforementioned systems, apparatuses and units may be referred to the corresponding processes in the aforementioned method embodiments, and the details will not be described again herein.

[0178] In some embodiments provided in the present application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the described device embodiment is merely an example. For example, the unit division is merely a division of logical functions, and may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some functions may be ignored or not performed. Furthermore, the shown or described mutual couplings or direct couplings or communication connections may be implemented using some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electronic, mechanical, or other forms.

[0179] Units described as separate parts may or may not be physically separated, and parts shown as units may or may not be physical units, may be located in one location or may be distributed over multiple network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.

[0180] When the functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application, or the parts contributing to the prior art, or some technical solutions, may be implemented in the form of a software product. The software product is stored in a storage medium and includes some instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to execute all or some of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0181] Further embodiments of the present application are provided below. Please note that the numbers used in the following sections do not necessarily have to match the numbers used in the previous sections.

[0182] Embodiment 1. A communication method comprising: determining a first delay by a first optical module applied to a first network device, the first delay including a delay generated when a packet is transmitted within the first optical module; transmitting, by the first optical module, the first delay to an interface chip applied to the first network device via a delay reporting interface of the first optical module, the interface chip being at least one of a physical layer PHY chip and a media access control layer MAC chip; The method includes:

[0183] Embodiment 2. The method of embodiment 1, comprising: The first optical module includes an optical transmitter, the optical transmitter including an inbound interface and an outbound interface, and determining a first delay by the first optical module includes: receiving, by the first optical module, a first data flow via the inbound interface; transmitting, by the first optical module, the first data flow via the outbound interface to a second network device; determining, by the first optical module, that a delay generated when the first data flow is transmitted within the optical transmitter is the first delay; The method includes:

[0184] Embodiment 3. The method of embodiment 1, comprising: The first optical module includes an optical transmitter, and determining a first delay by the first optical module includes: receiving, by the optical transmitter, a first data flow; The method, wherein the first delay comprises a delay incurred when at least one circuit of the optical transmitter processes the first data flow.

[0185] Embodiment 4. The method of embodiment 3, comprising: The method, wherein the optical transmitter includes a digital signal processing module, and the at least one circuit includes at least one circuit of the digital signal processing module.

[0186] Embodiment 5. The method of embodiment 1, comprising: The first optical module includes an optical receiver, and transmitting, by the first optical module, the first delay to an interface chip via a delay reporting interface, comprises: transmitting, by the first optical receiver, the first delay to the interface chip via the delay reporting interface.

[0187] Embodiment 6. The method of embodiment 5, comprising: receiving, by the optical receiver, a second data flow transmitted by an optical transmitter of a second optical module of a second network device; The method, wherein the first delay comprises a delay incurred when at least one circuit of the optical receiver processes the second data flow.

[0188] Embodiment 7. The method of embodiment 6, comprising: The method, wherein the optical receiver includes a digital signal processing module, and the at least one circuit includes at least one circuit of the digital signal processing module.

[0189] Embodiment 8. The method according to any one of embodiments 5 to 7, comprising: a delay generated when the second data flow is transmitted within the optical transmitter of the second optical module includes a second delay, a delay generated when the second data flow is transmitted within the optical receiver of the first optical module includes a third delay, and the first delay includes the second delay and the third delay.

[0190] Embodiment 9. The method of embodiment 1, comprising: the first optical module includes an optical transmitter and a first optical receiver; Prior to determining a first delay by the first optical module, the method may further include: receiving, by the first optical module, a first data flow by using the optical transmitter, wherein a delay generated when the first data flow is transmitted within the optical transmitter includes a second delay; transmitting, by the first optical module, the first data flow to a second optical receiver of a second optical module of a second network device by using the optical transmitter, wherein a delay generated when the first data flow is transmitted within the second optical receiver includes a third delay; receiving, by the first optical module, a second data flow transmitted by the second network device by using the first optical receiver, the second data flow carrying indication information; Determining a first delay by the first optical module includes: A method comprising: determining, by the first optical module, the first delay based on the instruction information, wherein the first delay comprises the second delay and the third delay.

[0191] Embodiment 10. The method according to any one of embodiments 1 to 4, comprising: The first optical module includes a first circuit and a second circuit, and the method further includes: extracting, when the first data flow is transmitted to the first circuit, a first indication signal carried in the first data flow by the first optical module; extracting, by the first optical module, a second indication signal carried in the first data flow when the first data flow is transmitted to the second circuit; determining, by the first optical module, the first delay based on the first instruction signal and the second instruction signal.

[0192] Embodiment 11. The method according to embodiment 10, comprising: Determining the first delay based on the first indication signal and the second indication signal includes: Measuring a phase difference between the first indicator signal and the second indicator signal; determining the first delay based on the phase difference.

[0193] Embodiment 12. The method according to embodiment 10 or 11, The method, wherein both the first indication signal and the second indication signal are adjustment marker (AM) indication signals, or the first indication signal is an AM indication signal and the second indication signal is a digital signal processing DSP frame header signal, or both the first indication signal and the second indication signal are a frame start delimiter SFD.

[0194] Embodiment 13. The method according to any one of embodiments 1 to 12, comprising: The method, wherein the interface chip comprises a chip configured to implement a physical layer PHY function or a media access control MAC function.

[0195] Embodiment 14. The method according to any one of embodiments 1 to 13, comprising: Reporting, by the first optical module, the first delay includes: reporting the first delay to the interface chip when a clock state of the first optical module changes; or reporting the first delay to the interface chip upon successful establishment of a link of the first optical module.

[0196] Embodiment 15. The method according to any one of embodiments 1 to 14, comprising: The method, wherein the first delay is a maximum or minimum transmission delay value when the first optical module is configured to transmit data, or the first delay is a maximum or minimum reception delay value when the first optical module is configured to receive data.

[0197] Embodiment 16. An optical module applied to a first network device, which is used as a first optical module, a processor configured to determine a first delay, the first delay comprising a delay created when a packet is transmitted within the first optical module; and a delay reporting interface further configured to transmit the first delay to an interface chip of the first network device, the interface chip being one of a physical layer (PHY) chip and a media access control layer (MAC) chip.

[0198] Embodiment 17 The optical module according to embodiment 16, the first optical module includes an optical transmitter, the optical transmitter comprising the processor, the delay reporting interface, an inbound interface, and an outbound interface; the inbound interface configured to receive a first data flow; the outbound interface is configured to transmit the first data flow to a second network device; The optical module, wherein the processor is configured to determine that a delay created when the first data flow is transmitted within the optical transmitter is the first delay.

[0199] Embodiment 18. The optical module according to embodiment 16, the first optical module includes an optical transmitter, the optical transmitter comprising the processor, the delay reporting interface, an inbound interface, and an outbound interface; the inbound interface configured to receive a first data flow; the outbound interface is configured to transmit the first data flow to a second network device; An optical module, wherein the first delay includes a delay incurred when at least one circuit of the optical transmitter processes the first data flow.

[0200] Embodiment 19. The optical module according to embodiment 18, An optical module, wherein the optical transmitter includes a digital signal processing module, and the at least one circuit includes at least one circuit of the digital signal processing module.

[0201] Embodiment 20. The optical module according to embodiment 16, An optical module, wherein the first optical module includes an optical receiver, the optical receiver including the processor and the delay reporting interface.

[0202] Embodiment 21. The optical module according to embodiment 20, the optical receiver includes an inbound interface; The inbound interface is configured to receive a second data flow transmitted by an optical transmitter of a second optical module of a second network device, and the first delay includes a delay incurred when at least one circuit of the optical receiver processes the second data flow, the optical module.

[0203] Embodiment 22. The optical module according to embodiment 21, An optical module, wherein the optical receiver includes a digital signal processing module, and the at least one circuit includes at least one circuit of the digital signal processing module.

[0204] Embodiment 23. The optical module according to embodiment 21 or 22, an optical module, wherein a delay generated when the second data flow is transmitted within the optical transmitter of the second optical module includes a second delay, and a delay generated when the second data flow is transmitted within the optical receiver of the first optical module includes a third delay, and the first delay includes the second delay and the third delay.

[0205] Embodiment 24. The optical module according to embodiment 16, the first optical module is the optical module of the first network device, the first optical module including an optical transmitter and a first optical receiver, the first optical receiver including the processor and the delay reporting interface; the optical transmitter is configured to receive a first data flow, and a delay generated when the first data flow is transmitted by the optical transmitter comprises a second delay; the optical transmitter is further configured to transmit the first data flow to a second optical receiver of a second optical module of a second network device, and a delay generated when the first data flow is transmitted at the second optical receiver includes a third delay; the first optical receiver is configured to receive a second data flow transmitted by the second network device, the second data flow carrying indication information; The processor is specifically configured to determine the first delay based on the instruction information, the first delay including the second delay and the third delay.

[0206] Embodiment 25. An optical module according to any one of embodiments 16 to 19, The first optical module includes a first circuit and a second circuit, and the processor further comprises: extracting a first indication signal carried in the first data flow when the first data flow is transmitted to the first circuit; extracting a second indication signal carried in the first data flow when the first data flow is transmitted to the second circuit; an optical module configured to determine the first delay based on the first instruction signal and the second instruction signal;

[0207] Embodiment 26 The optical module according to embodiment 25, The processor further comprises: measuring a phase difference between the first and second indicator signals; configured to determine the first delay based on the phase difference; An optical module, wherein both the first instruction signal and the second instruction signal are adjustment marker AM instruction signals, or the first instruction signal is an AM instruction signal and the second instruction signal is a digital signal processing DSP frame header signal, or both the first instruction signal and the second instruction signal are a frame start delimiter SFD.

[0208] Embodiment 27. The optical module according to any one of embodiments 16 to 26, The optical module, wherein the interface chip includes a chip configured to implement a physical layer PHY function or a media access control MAC function.

[0209] Embodiment 28. The optical module according to any one of embodiments 16 to 27, The delay reporting interface includes: reporting the first delay to the interface chip when the clock state of the first optical module changes; or an optical module configured to report the first delay to the interface chip upon successful establishment of a link of the first optical module;

[0210] Embodiment 29. The optical module according to any one of embodiments 16 to 28, An optical module, wherein the first delay is a maximum or minimum transmission delay value when the optical module is configured to transmit data, or the first delay is a maximum or minimum reception delay value when the optical module is configured to receive data.

[0211] Embodiment 30. A network device including an optical module according to any one of embodiments 16 to 29.

[0212] The above description is merely a specific implementation of the present invention, and is not intended to limit the protection scope of the present invention. Any variation or replacement that is easily understood by a person skilled in the art within the technical scope disclosed in the present invention shall be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. 1. A communication method comprising: determining a first delay value by a first optical module applied to a first network device, the first delay being a delay generated when a packet is transmitted within the first optical module, the first optical module including a first optical transmitter, the first optical transmitter including a digital domain and an analog domain, the digital domain including a Clock and Data Recovery (CDR) chip or an optical digital signal processing (oDSP) chip, and the analog domain including an integrated tunable laser assembly; reporting, by the first optical module, the value of the first delay to an interface chip applied to the first network device via a delay report register access interface of the first optical module, the interface chip being at least one of a physical layer (PHY) chip and a media access control layer (MAC) chip; A method comprising:

2. The first optical transmitter includes an inbound interface and an outbound interface, and the step of determining a value of a first delay by a first optical module includes: receiving, by the first optical module, a first data flow via the inbound interface; transmitting, by the first optical module, the first data flow via the outbound interface to a second network device; determining that a value of a second delay, the second delay being a delay generated by the first optical module when the first data flow is transmitted within the first optical transmitter, is equal to the value of the first delay; The method of claim 1 , comprising:

3. The step of determining a value of a first delay by a first optical module comprises: receiving, by the first optical transmitter, a first data flow; Including, the first delay includes a delay incurred when at least one circuit in the first optical transmitter processes the first data flow; The method of claim 1.

4. The method of claim 3 , wherein the first optical transmitter includes a digital signal processing module, and the at least one circuit includes at least one circuit within the digital signal processing module.

5. the first optical module includes a first optical receiver for receiving a second data flow transmitted from a second network device that receives the first data flow from the first network device, and the step of reporting, by the first optical module, the value of the first delay to an interface chip via a delay report register access interface includes: reporting, by the first optical receiver, the value of the first delay to the interface chip via the delay report register access interface. The method of claim 3 , comprising:

6. receiving, by the first optical receiver, the second data flow transmitted by a second optical transmitter in a second optical module applied to the second network device; Further equipped with The method of claim 5 , wherein the first delay further comprises a delay incurred when at least one circuit in the first optical receiver processes the second data flow.

7. The method of claim 6 , wherein the first optical receiver includes a digital signal processing module, and the at least one circuit includes at least one circuit within the digital signal processing module.

8. 8. The method of claim 6 or 7, wherein a delay generated when the second data flow is transmitted in the second optical transmitter in the second optical module is a second delay, a delay generated when the second data flow is transmitted in the first optical receiver in the first optical module is a third delay, and the value of the first delay is the sum of a value of the second delay and a value of the third delay.

9. the first optical module includes a first optical receiver for receiving a second data flow transmitted from a second network device that receives the first data flow from the first network device; Prior to the step of determining a value of a first delay by a first optical module, the method further comprises: receiving, by the first optical module, the first data flow by using the first optical transmitter, a delay generated when the first data flow is transmitted within the first optical transmitter being a second delay; transmitting, by the first optical module, the first data flow to a second optical receiver in a second optical module applied to a second network device by using the first optical transmitter, wherein a delay generated when the first data flow is transmitted in the second optical receiver is a third delay; receiving, by the first optical module, a second data flow transmitted by the second network device by using the first optical receiver, the second data flow carrying indication information; Further equipped with The step of determining a value of a first delay by a first optical module comprises: determining, by the first optical module, the value of the first delay based on the indication, the value of the first delay being a sum of a value of the second delay and a value of the third delay; Including, The method according to claim 3.

10. The first optical module includes a first circuit and a second circuit, and the method includes: extracting, when the first data flow is transmitted to the first circuit, a first indication signal carried in the first data flow by the first optical module; extracting, by the first optical module, a second indication signal carried in the first data flow when the first data flow is transmitted to the second circuit; Further equipped with The step of determining a value of a first delay by a first module comprises: determining, by the first optical module, the value of the first delay based on the first indicator signal and the second indicator signal. Including, 5. The method according to any one of claims 2 to 4.

11. The step of determining the value of the first delay based on the first indication signal and the second indication signal comprises: measuring a time difference between the first indication signal and the second indication signal adjacent to the first indication signal at an extraction time as a phase difference; determining the first delay based on the phase difference; The method of claim 10, comprising:

12. 12. The method of claim 10 or 11, wherein both the first indication signal and the second indication signal are adjustment marker (AM) indication signals, or the first indication signal is an AM indication signal and the second indication signal is a digital signal processing (DSP) frame header signal, or both the first indication signal and the second indication signal are start of frame delimiter SFD.

13. The step of reporting the value of the first delay by the first optical module comprises: reporting the value of the first delay to the interface chip when a clock state of the first optical module changes; or reporting the value of the first delay to the interface chip when a link of the first optical module is successfully established.

13. The method of any one of claims 1 to 12, comprising:

14. 14. The method according to claim 1, wherein the value of the first delay is a maximum or minimum transmission delay value when the first optical module is configured to transmit data, or the value of the first delay is a maximum or minimum reception delay value when the first optical module is configured to receive data.

15. An optical module applied to a first network device, which is used as a first optical module, a processor configured to determine a value of a first delay, the first delay being a delay created when a packet is transmitted within the first optical module, the first optical module including a first optical transmitter, the first optical transmitter including a digital domain and an analog domain, the digital domain including a Clock and Data Recovery (CDR) chip or an optical digital signal processing (oDSP) chip, and the analog domain including an integrated tunable laser assembly; a delay-reporting register access interface further configured to report the value of the first delay to an interface chip applied to the first network device, the interface chip being one of a physical layer (PHY) chip and a media access control layer (MAC) chip; An optical module comprising:

16. the first optical transmitter includes the processor, the delay report register access interface, an inbound interface, and an outbound interface; the inbound interface configured to receive a first data flow; the outbound interface is configured to transmit the first data flow to a second network device; the processor is configured to determine that a value of a second delay, the value being a delay created when the first data flow is transmitted within the optical transmitter, is equal to the value of the first delay.

16. The optical module according to claim 15.

17. the first optical transmitter includes the processor, the delay report register access interface, an inbound interface, and an outbound interface; the inbound interface configured to receive a first data flow; the outbound interface is configured to transmit the first data flow to a second network device; the first delay includes a delay incurred when at least one circuit in the first optical transmitter processes the first data flow; 16. The optical module according to claim 15.

18. 20. The optical module of claim 17, wherein the first optical transmitter includes a digital signal processing module, and the at least one circuit includes at least one circuit within the digital signal processing module.

19. 20. The optical module of claim 17, wherein the first optical module includes a first optical receiver that receives a second data flow transmitted from a second network device that receives the first data flow from the first network device, the first optical receiver including the processor and the delay report register access interface.

20. the first optical receiver includes an inbound interface; the inbound interface is configured to receive the second data flow transmitted by a second optical transmitter in a second optical module applied to the second network device, and the first delay includes a delay incurred when at least one circuit in the first optical receiver processes the second data flow; 20. The optical module according to claim 19.

21. 21. The optical module of claim 20, wherein the first optical receiver includes a digital signal processing module, and the at least one circuit includes at least one circuit within the digital signal processing module.

22. 22. The optical module of claim 20 or 21, wherein a delay generated when the second data flow is transmitted within the second optical transmitter in the second optical module is a second delay, and a delay generated when the second data flow is transmitted within the optical receiver in the first optical module is a third delay, and the value of the first delay is the sum of a value of the second delay and a value of the third delay.

23. the first optical module is the optical module in the first network device, the first optical module includes a first optical receiver that receives the first data flow from the first network device and a second data flow transmitted from a second network device, the first optical receiver including the processor and the delay report register access interface; the first optical transmitter is configured to receive the first data flow, and a delay created when the first data flow is transmitted within the first optical transmitter is a second delay; the optical transmitter is further configured to transmit the first data flow to a second optical receiver in a second optical module applied to the second network device, and a delay generated when the first data flow is transmitted in the second optical receiver is a third delay; the first optical receiver is configured to receive the second data flow transmitted by the second network device, the second data flow carrying indication information; the processor is specifically configured to determine the value of the first delay based on the indication information, the value of the first delay being a sum of a value of the second delay and a value of the third delay; 18. The optical module according to claim 17.

24. The first optical module includes a first circuit and a second circuit, and the processor: extracting a first indication signal carried in the first data flow when the first data flow is transmitted to the first circuit; extracting a second indication signal carried in the first data flow when the first data flow is transmitted to the second circuit; [0023] 20. The method according to claim 1, further comprising: the processor is configured to determine a value of the first delay including determining the value of the first delay based on the first indication signal and the second indication signal.

19. The optical module according to claim 16.

25. The processor, measuring a time difference between the first indication signal and the second indication signal adjacent to the first indication signal at an extraction time as a phase difference; determining the first delay based on the phase difference; [0023] 20. The method according to claim 1, further comprising: both the first indication signal and the second indication signal are adjustment marker AM indication signals, or the first indication signal is an AM indication signal and the second indication signal is a digital signal processing DSP frame header signal, or both the first indication signal and the second indication signal are a start of frame delimiter SFD; 25. The optical module according to claim 24.

26. The delay report register access interface includes: reporting the value of the first delay to the interface chip when a clock state of the first optical module changes; or reporting the value of the first delay to the interface chip when a link of the first optical module is successfully established. configured to:

26. An optical module according to any one of claims 15 to 25.

27. 27. An optical module according to claim 15, wherein the value of the first delay is a maximum or minimum transmission delay value when the optical module is configured to transmit data, or the first delay is a maximum or minimum reception delay value when the optical module is configured to receive data.

28. A network device comprising an optical module according to any one of claims 15 to 27.

Citation Information

Patent Citations

  • Mobile communication wireless system

    JP2009239527A

  • Optical module, optical transmission device, and optical module deterioration determination method

    JP2018037811A

  • Optical transmission device

    JP2018182647A

  • APPARATUS AND METHODS FOR GENERATING AND RECEIVING OPTICAL SIGNALS AT SUBSTANTIALLY 100Gb / s AND BEYOND

    US20150043919A1

  • Method, apparatus, and system for generating timestamp

    US20160043823A1