Method, device and equipment for carrying clock signal on Ethernet link

By sending a specific identification Ethernet frame on the Ethernet link, the receiver generates a restored clock signal based on the frequency of the received Ethernet frames, solving the problem of insufficient transmission of clock signal in Ethernet in the prior art, and achieving the effect of simplifying wiring and using ordinary Ethernet devices.

CN119834916APending Publication Date: 2025-04-15GUANGZHOU AVA ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411978464.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The method using the IEEE1588 protocol is not concise enough when transmitting clock signals in Ethernet, especially in networks with good conditions at close range.

Method used

By sending a specific identification Ethernet frame on the Ethernet link, the receiver generates a restored clock signal based on the frequency of the received Ethernet frames, thereby realizing the transmission of the clock signal.

Benefits of technology

This method simplifies wiring, does not require additional clock transmission links, and can be completed using ordinary Ethernet devices. The process is simple and can cover the requirements of many scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119834916A_ABST
    Figure CN119834916A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device and equipment for carrying a clock signal on an Ethernet link. The method comprises the following steps that: a transmitting end receives a source clock signal and a first type of Ethernet frame, and the first type of Ethernet frame comprises a first identifier; the sending end periodically sends the first type of Ethernet frames according to the frequency of the source clock signal; the receiving end receives the Ethernet frames sent by the sending end, and identifies a first type of Ethernet frames in the received Ethernet frames according to the first identifier; and the receiving end generates a restored clock signal according to the received frame frequency of the first type of Ethernet frames. According to the invention, the clock signal can be transmitted in the Ethernet without additionally arranging a clock transmission link, so that the wiring is simplified; in addition, no extra device needs to be arranged, the method can be completed through a common Ethernet device, the process is simple, and the requirement for covering many scenes can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network communications, and more specifically, to a method, device and equipment for carrying a clock signal on an Ethernet link. Background Art

[0002] With the development of information technology, communication networks can transmit various digital services. For various digital services, the basis for communication between various devices in the communication network is clock synchronization. Reliable clock synchronization is the quality guarantee of communication services.

[0003] With the development of communication systems and application requirements, the application of Ethernet is becoming more and more diversified, and more and more data and services are transmitted through Ethernet. At present, the data and services transmitted in Ethernet mostly use the packet information clock synchronization method or the Ethernet code stream clock recovery method. Among them, the packet information clock synchronization method is a method for extracting the synchronization clock based on the IEEE1588 protocol.

[0004] The clock device for extracting synchronous clock based on IEEE1588 protocol is located in the media access (MAC) layer or physical layer, and includes a network processor, a clock tag generator and a clock source. After the Ethernet data packet enters the network processor, the network processor extracts the timestamp information from the data packet, processes the time in the timestamp information extracted from multiple data packets (for example, averaging algorithm processing, etc.), and sets the time of the timestamp generator to the time obtained by the network processor; the timestamp generator converts the extracted timestamp information into a clock signal according to the set time, and sends it to an external device; the clock signal generated by the clock source is processed by the clock tag generator, and a time tag reflecting the time information is added, and the network processor sends the clock signal containing the time tag to the Ethernet.

[0005] However, since the clock synchronization method of the IEEE1588 protocol is a two-way communication method, for a short-distance network in good condition, the clock synchronization method using the IEEE1588 protocol is not simple enough. Summary of the invention

[0006] In order to overcome at least one of the above-mentioned defects of the prior art, the present invention provides a method, device, equipment and storage medium for carrying a clock signal on an Ethernet link. The technical solution adopted by the present invention is as follows.

[0007] In a first aspect, the present invention provides a method for carrying a clock signal on an Ethernet link, comprising:

[0008] The transmitting end receives a source clock signal and a first type Ethernet frame, wherein the first type Ethernet frame includes a first identifier;

[0009] The transmitting end periodically sends the first type of Ethernet frame according to the frequency of the source clock signal;

[0010] The receiving end receives the Ethernet frame sent by the sending end, and identifies the first type of Ethernet frame in the received Ethernet frame according to the first identifier;

[0011] The receiving end generates a restored clock signal according to the frame frequency of the received first type Ethernet frame.

[0012] In one implementation, all first-type Ethernet frames are Ethernet frames with the same first identifier.

[0013] In one embodiment, it further includes:

[0014] The sending end receives the data to be sent;

[0015] The transmitting end encapsulates the data to be sent into a second type of Ethernet frame, wherein the length of the second type of Ethernet frame is not greater than a preset length, the preset length is determined based on the frequency of the source clock signal, and the second type of Ethernet frame includes a second identifier that is different from the first identifier;

[0016] The transmitting end transmits the second type of Ethernet frame between two first type of Ethernet frames.

[0017] In one implementation manner, before the transmitting end sends the second type of Ethernet frame between two first type Ethernet frames, the process further includes:

[0018] Determining, according to the length of the second class Ethernet frame to be sent, whether the sending of the second class Ethernet frame to be sent can be completed before sending the next first class Ethernet frame;

[0019] If not, the second type Ethernet frame to be sent is sent after the next first type Ethernet frame is sent.

[0020] In one implementation, the process of the transmitting end encapsulating the data to be sent into a second type Ethernet frame includes:

[0021] The transmitting end encapsulates the data to be sent into a second type Ethernet frame of fixed length;

[0022] The process of the transmitting end sending the second type of Ethernet frame between two first type Ethernet frames includes:

[0023] The transmitting end sends the second type of Ethernet frame after sending the first type of Ethernet frame and pausing for an inter-frame gap of a fixed length.

[0024] In one embodiment, the process of generating a restored clock signal by the receiving end according to the frequency of receiving the first type of Ethernet frame includes:

[0025] Each time the receiving end receives the first type of Ethernet frame, the frame marking node performs a level flip to obtain a first frequency source clock signal, and then performs shaping processing to obtain a second frequency homologous clock signal, wherein the frame marking node is included in the first identifier, and the frequency of the second frequency homologous clock signal is higher than the first frequency source clock signal.

[0026] In a second aspect, the present invention provides a device for carrying a clock signal on an Ethernet link, comprising: a transmitting end and a receiving end, wherein the transmitting end comprises:

[0027] A transmitting end receiving module, used for receiving a source clock signal and a first type Ethernet frame, wherein the first type Ethernet frame includes a first identifier;

[0028] A transmitting module at the transmitting end, configured to periodically transmit the first class Ethernet frame according to the frequency of the source clock signal;

[0029] The receiving end comprises:

[0030] The receiving module at the receiving end is used to receive the Ethernet frame sent by the sending end;

[0031] A receiving end identification module, used for identifying a first type of Ethernet frame in a received Ethernet frame according to the first identifier;

[0032] The receiving end restoration module is used to generate a restored clock signal according to the frame frequency of the received first type Ethernet frame.

[0033] In one embodiment, the transmitting end receiving module is further used to receive data to be sent;

[0034] The transmitting end also includes:

[0035] a transmitting end encapsulation module, configured to encapsulate the data to be transmitted into a second type of Ethernet frame, wherein the length of the second type of Ethernet frame is not greater than a preset length, the preset length is determined based on the frequency of the source clock signal, and the second type of Ethernet frame includes a second identifier that is different from the first identifier;

[0036] The transmitting end sending module is further used for sending the second type of Ethernet frame between two first type of Ethernet frames.

[0037] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods when executing the program.

[0038] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method of any of the above-mentioned embodiments.

[0039] In the present invention, an Ethernet frame with a specific identifier is sent at the same frequency as the clock signal in Ethernet, and the receiving end restores the clock signal according to the frequency of receiving the Ethernet frame with the specific identifier, thereby realizing the transmission of the source clock signal from the sending end to the receiving end on Ethernet. The present invention can transmit the clock signal on Ethernet without setting up an additional clock transmission link, thus simplifying the wiring; in addition, the present invention does not need to set up additional devices, and can be completed with ordinary Ethernet devices, and the process is simple, which can cover the requirements of many scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the overall process of an implementation method of Example 1 of the present invention.

[0041] Figure 2 It is a schematic diagram of the overall process of another implementation method of the first embodiment of the present invention.

[0042] Figure 3 It is a schematic diagram of the overall structure of the second embodiment of the present invention. DETAILED DESCRIPTION

[0043] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0044] It should be noted that the terms "first\second\..." involved in the embodiments of the present invention are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that the specific order or sequence of "first\second\..." can be interchanged where permitted. It should be understood that the objects distinguished by "first\second\..." can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.

[0045] Embodiment 1

[0046] See also Figure 1 , Figure 1The flowchart of a method for carrying a clock signal on an Ethernet link provided in the first embodiment of the present invention includes step S110, step S120, step S130 and step S140. It should be noted that step S110, step S120, step S130 and step S140 are only reference numerals for clarifying the embodiment and the appendix. Figure 1 The corresponding relationship does not limit the order of the steps in this embodiment.

[0047] Step S110, the transmitting end receives a source clock signal and a first type Ethernet frame, wherein the first type Ethernet frame includes a first identifier;

[0048] Step S120, the transmitting end periodically sends the first class Ethernet frame according to the frequency of the source clock signal;

[0049] Step S130, the receiving end receives the Ethernet frame sent by the sending end, and identifies the first type of Ethernet frame in the received Ethernet frame according to the first identifier;

[0050] Step S140: The receiving end generates a restored clock signal according to the frame frequency of the received first type Ethernet frame.

[0051] This method is a method for transmitting clock signals via Ethernet. For a short-distance network in good condition, the interference is relatively small, and this method is very suitable for transmitting clock signals.

[0052] In this method, the first type of Ethernet frame is an Ethernet frame specifically used for transmitting the frequency of the clock signal. The source clock signal periodically sends the first type of Ethernet frame, so that the frame frequency of the first type of Ethernet frame can be understood as a low-frequency signal that is homologous to the source clock signal. Since the environment in which this method is used is a network in good condition and with relatively little interference, the frame frequency of the first type of Ethernet frame received by the receiving end is the same as the frame frequency of the first type of Ethernet frame sent by the transmitting end. At this time, the receiving end can generate a clock signal with the frame frequency of the first type of Ethernet frame received, and the frequency of the clock signal restored by flipping the level of the frame marker node is half of the periodic transmission frequency of the transmitting end, and then the low-frequency clock signal is shaped by a phase-locked loop or a voltage-controlled oscillator to obtain a high-precision high-frequency homologous clock signal. The frequency of the restored clock signal is homologous to the frequency of the source clock signal, that is, at this time, the source clock signal has actually been transmitted from the transmitting end to the receiving end.

[0053] It should be noted here that the first identifier may be a type of identifier or all the same identifiers, as long as the first type of Ethernet frame can be distinguished by the identifier.

[0054] It should be noted that, for the first class Ethernet frame, all the first class Ethernet frames may be the same Ethernet frame, or other data may be added to the first class Ethernet frame. Preferably, all the first class Ethernet frames are the same Ethernet frame, because in this way, the receiving end can quickly identify and quickly restore the clock.

[0055] In the transmission link of Ethernet, in addition to sending the first type of Ethernet frame, other data also needs to be sent. These other data will also be sent in the form of Ethernet frames. The Ethernet frames of these other data need to be distinguished from the first type of Ethernet frames specifically used to transmit the frequency of the clock signal, otherwise the receiving end cannot obtain the accurate frequency of the first type of Ethernet frame and cannot restore the clock. Therefore, in this method, the first type of Ethernet frame is allowed to contain a first identifier, and the sending end sends the first type of Ethernet frame containing the first identifier. After the receiving end receives the Ethernet frame, each Ethernet frame is identified to identify the Ethernet frame with the first identifier. This Ethernet frame with the first identifier is the first type of Ethernet frame, and then the clock frequency is restored according to the above method. There are many ways to add identifiers to Ethernet frames to distinguish different types of frames. For example, a custom field is added to the header of the Ethernet frame, such as a custom identifier or version number, to distinguish different types of frames; or, a specific load format or protocol can be used in the data part of the frame, so that the receiving end can identify the type of frame according to the load content; or, the upper layer protocol type is specified, and different protocol type values ​​are specified for different types of frames to distinguish different types of frames. In summary, those skilled in the art can reasonably select a distinction method according to actual conditions to achieve the purpose of distinguishing different types of frames.

[0056] In this method, an Ethernet frame with a specific identifier is sent at the same frequency as the clock signal in Ethernet, and the receiving end restores the clock signal according to the frequency of receiving the Ethernet frame with the specific identifier, thereby realizing the transmission of the source clock signal from the sending end to the receiving end on Ethernet. This method can transmit the clock signal on Ethernet without setting up an additional clock transmission link, thus simplifying the wiring; in addition, this method does not require setting up additional devices, and can be completed with ordinary Ethernet devices, and the process is simple, which can cover the requirements of many scenarios.

[0057] In one embodiment, Figure 2 As shown, Figure 2 It is a schematic diagram of the overall flow of another implementation method of Example 1. The method for carrying a clock signal on an Ethernet link also includes: step S150, step S160 and step S170.

[0058] Step S150, the sending end receives the data to be sent;

[0059] Step S160, the transmitting end encapsulates the data to be sent into a second type of Ethernet frame, wherein the length of the second type of Ethernet frame is not greater than a preset length, the preset length is determined based on the frequency of the source clock signal, and the second type of Ethernet frame includes a second identifier that is different from the first identifier;

[0060] Step S170: the transmitting end transmits the second type of Ethernet frame between two first type of Ethernet frames.

[0061] As described above, this embodiment is a situation where other data needs to be sent in addition to the first type Ethernet frame. In this embodiment, the second type Ethernet frame is sent by using the second type Ethernet frame, which includes a second identifier different from the first identifier to distinguish it from the first type Ethernet frame.

[0062] In addition, since the frequency of the clock is fixed, the frequency of sending the first type Ethernet frame is also fixed, and the second type Ethernet frame can only be sent between two first type Ethernet frames, so in step S170, the second type Ethernet frame is sent between two first type Ethernet frames.

[0063] Finally, since the second class Ethernet frame can only be sent between two first class Ethernet frames, its length should be limited. If it is too long, the first class Ethernet frame will be sent before the second class Ethernet frame is sent. At this time, the second class Ethernet frame will hinder the transmission of the next first class Ethernet frame, affecting the accuracy of the frequency. Based on the above reasons, a preset length should be set so that the length of the second class Ethernet frame is not greater than the preset length to ensure that the second class Ethernet frame can be sent between two first class Ethernet frames and will not hinder the transmission of the next first class Ethernet frame due to excessive length. In addition, since the preset length is used to ensure that it will not hinder the transmission of the next first class Ethernet frame, it is affected by the transmission frequency of the first class Ethernet frame, so it is naturally determined based on the frequency of the source clock signal.

[0064] In one implementation, before step S170, the method further includes: step S210 and step S220.

[0065] Step S210, judging whether the sending of the second class Ethernet frame to be sent can be completed before sending the next first class Ethernet frame according to the length of the second class Ethernet frame to be sent;

[0066] Step S220: If not, then after sending the next first-class Ethernet frame, the second-class Ethernet frame to be sent is sent.

[0067] Although the length of the second class Ethernet frame is limited, since the time for sending the second class Ethernet frame is not fixed, there will still be a situation where the first class Ethernet frame needs to be sent before the second class Ethernet frame is sent. At this time, it is necessary to coordinate the sending time of the first and second class Ethernet frames. Since the sending time point of the first class Ethernet frame is fixed according to the source clock signal, the sending time of the second class Ethernet frame can only be adjusted to avoid the first class Ethernet frame. Step S210 is a step for predicting whether there will be a conflict between the second class Ethernet frame and the first class Ethernet frame. When the predicted result is that a conflict will occur, step S220 makes corresponding avoidance and postpones the sending time of the second class Ethernet frame so that it can be sent after the next first class Ethernet frame is sent.

[0068] In one implementation, the process of step S160 includes: step S161.

[0069] Step S161, the transmitting end encapsulates the data to be sent into a second type Ethernet frame of fixed length;

[0070] The process of step S170 includes: step S171.

[0071] Step S171: After sending the first type of Ethernet frame and pausing for a fixed inter-frame gap, the transmitting end sends the second type of Ethernet frame.

[0072] This implementation method sends the second type of Ethernet frame in a fixed-time and fixed-length manner, so that the sending time of the second type of Ethernet frame can be fully coordinated and data can be sent through the second type of Ethernet frame to the maximum extent.

[0073] In one implementation, the process of step S140 includes: step S141.

[0074] Step S141, each time the receiving end receives the first type of Ethernet frame, the frame marker node performs a level flip to obtain a first frequency source clock signal, and then performs shaping processing to obtain a second frequency homologous clock signal, wherein the frame marker node is included in the first identifier, and the frequency of the second frequency homologous clock signal is higher than the first frequency source clock signal.

[0075] The most common clock signal waveform has two stable voltage levels: high level and low level. In this embodiment, the receiving end can generate a clock signal at the frame frequency of the received first-class Ethernet frame, and the frequency of the clock signal restored by flipping the level of the frame marker node is half of the periodic transmission frequency of the sending end, and then the low-frequency clock signal is shaped by a phase-locked loop or voltage-controlled oscillator to obtain a high-precision high-frequency homologous clock signal. The frequency of the restored clock signal is the same as the frequency of the source clock signal, that is, at this time, the source clock signal has actually been transmitted from the sending end to the receiving end.

[0076] Embodiment 2

[0077] Corresponding to the method of embodiment 1, as Figure 3 As shown, the present invention also provides a device for carrying a clock signal on an Ethernet link, comprising: a transmitting end 2 and a receiving end 3;

[0078] The transmitting end includes: a transmitting end receiving module 210 and a transmitting end sending module 220;

[0079] The transmitting end receiving module 210 is used to receive a source clock signal and a first type Ethernet frame, wherein the first type Ethernet frame includes a first identifier;

[0080] The transmitting end sending module 220 is used to periodically send the first class Ethernet frame according to the frequency of the source clock signal;

[0081] The receiving end includes: a receiving end receiving module 310, a receiving end identifying module 320 and a receiving end restoring module 330;

[0082] The receiving end receiving module 310 is used to receive the Ethernet frame sent by the sending end;

[0083] A receiving end identification module 320, configured to identify a first type of Ethernet frame in a received Ethernet frame according to the first identifier;

[0084] The receiving end restoration module 330 is used to generate a restored clock signal according to the frame frequency of the received first type Ethernet frame.

[0085] In one implementation, all first-type Ethernet frames are Ethernet frames with the same first identifier.

[0086] In one embodiment, the transmitting end receiving module is further used to receive data to be sent;

[0087] The transmitting end also includes:

[0088] a transmitting end encapsulation module, configured to encapsulate the data to be transmitted into a second type of Ethernet frame, wherein the length of the second type of Ethernet frame is not greater than a preset length, the preset length is determined based on the frequency of the source clock signal, and the second type of Ethernet frame includes a second identifier that is different from the first identifier;

[0089] The transmitting end sending module is further used for sending the second type of Ethernet frame between two first type of Ethernet frames.

[0090] In one implementation, before executing the process in which the transmitting end sends the second type of Ethernet frame between two first type Ethernet frames, the transmitting end sending module further includes:

[0091] Determining, according to the length of the second class Ethernet frame to be sent, whether the sending of the second class Ethernet frame to be sent can be completed before sending the next first class Ethernet frame;

[0092] If not, the second type Ethernet frame to be sent is sent after the next first type Ethernet frame is sent.

[0093] In one implementation, the process in which the transmitting end encapsulation module encapsulates the data to be sent into a second type Ethernet frame includes:

[0094] The transmitting end encapsulates the data to be sent into a second type Ethernet frame of fixed length;

[0095] The process in which the transmitting end sending module sends the second type of Ethernet frame between two first type Ethernet frames includes:

[0096] The transmitting end sends the second type of Ethernet frame after sending the first type of Ethernet frame and pausing for an inter-frame gap of a fixed length.

[0097] In one embodiment, the receiving end restoration module performs the process of generating a restored clock signal according to the frequency of receiving the first type of Ethernet frame, including:

[0098] Each time the receiving end receives the first type of Ethernet frame, the frame marking node performs a level flip to obtain a low-frequency source clock signal, and then performs shaping processing to obtain a high-precision high-frequency homologous clock signal, wherein the frame marking node is included in the first identifier.

[0099] In this device, an Ethernet frame with a specific identifier is sent at the same frequency as the clock signal in Ethernet. The receiving end restores the clock signal according to the frequency of the Ethernet frame with the specific identifier, thereby transmitting the source clock signal from the sending end to the receiving end on Ethernet. This device can transmit the clock signal on Ethernet without setting up an additional clock transmission link, which simplifies the wiring; in addition, this device does not require the setting of additional devices, and can be completed with ordinary Ethernet devices, and the process is simple, which can cover the requirements of many scenarios.

[0100] Embodiment 3

[0101] An embodiment of the present invention further provides a storage medium on which computer instructions are stored. When the instructions are executed by a processor, the method of carrying a clock signal on an Ethernet link according to any of the above embodiments is implemented.

[0102] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, random access memories (RAM), read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0103] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, RAM, ROM, magnetic disks or optical disks.

[0104] Corresponding to the above-mentioned computer storage medium, in one embodiment, a computer device is also provided, which includes a memory, an encoder, and a computer program stored in the memory and executable on the encoder, wherein when the encoder executes the program, a method for carrying a clock signal on an Ethernet link as described in any one of the above-mentioned embodiments is implemented.

[0105] The above-mentioned computer device sends Ethernet frames with specific identification at the same frequency as the clock signal in Ethernet. The receiving end restores the clock signal according to the frequency of receiving the Ethernet frames with specific identification, thereby realizing the transmission of the source clock signal from the sending end to the receiving end on Ethernet. The above-mentioned computer device can transmit the clock signal on Ethernet without setting up an additional clock transmission link, which simplifies the wiring; in addition, the above-mentioned computer device does not need to set up additional devices, and can be completed with ordinary Ethernet devices, and the process is simple, which can cover the requirements of many scenarios.

[0106] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0107] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A method for carrying a clock signal on an Ethernet link, characterized in that: include: The transmitting end receives a source clock signal and a first type Ethernet frame, wherein the first type Ethernet frame includes a first identifier; The transmitting end periodically sends the first type of Ethernet frame according to the frequency of the source clock signal; The receiving end receives the Ethernet frame sent by the sending end, and identifies the first type of Ethernet frame in the received Ethernet frame according to the first identifier; The receiving end generates a restored clock signal according to the frame frequency of the received first type Ethernet frame.

2. The method for carrying a clock signal on an Ethernet link according to claim 1, characterized in that: All first-type Ethernet frames are Ethernet frames with the same first identifier.

3. The method for carrying a clock signal on an Ethernet link according to claim 2, characterized in that: Also includes: The sending end receives the data to be sent; The transmitting end encapsulates the data to be sent into a second type of Ethernet frame, wherein the length of the second type of Ethernet frame is not greater than a preset length, the preset length is determined based on the frequency of the source clock signal, and the second type of Ethernet frame includes a second identifier that is different from the first identifier; The transmitting end transmits the second type of Ethernet frame between two first type of Ethernet frames.

4. The method for carrying a clock signal on an Ethernet link according to claim 3, characterized in that: Before the transmitting end sends the second type of Ethernet frame between two first type Ethernet frames, the method further includes: Determining, according to the length of the second class Ethernet frame to be sent, whether the sending of the second class Ethernet frame to be sent can be completed before sending the next first class Ethernet frame; If not, the second type Ethernet frame to be sent is sent after the next first type Ethernet frame is sent.

5. The method for carrying a clock signal on an Ethernet link according to claim 3, characterized in that: The process in which the transmitting end encapsulates the data to be sent into a second type Ethernet frame includes: The transmitting end encapsulates the data to be sent into a second type Ethernet frame of fixed length; The process of the transmitting end sending the second type of Ethernet frame between two first type Ethernet frames includes: The transmitting end sends the second type of Ethernet frame after sending the first type of Ethernet frame and pausing for an inter-frame gap of a fixed length.

6. The method for carrying a clock signal on an Ethernet link according to any one of claims 1 to 5, characterized in that: The process of generating a restored clock signal by the receiving end according to the frequency of receiving the first type of Ethernet frame includes: Each time the receiving end receives the first type of Ethernet frame, the frame marking node performs a level flip to obtain a first frequency source clock signal, and then performs shaping processing to obtain a second frequency homologous clock signal, wherein the frame marking node is included in the first identifier, and the frequency of the second frequency homologous clock signal is higher than the first frequency source clock signal.

7. A device for carrying a clock signal on an Ethernet link, characterized in that: include: A transmitting end and a receiving end, wherein the transmitting end comprises: A transmitting end receiving module, used for receiving a source clock signal and a first type Ethernet frame, wherein the first type Ethernet frame includes a first identifier; A transmitting module at the transmitting end, configured to periodically transmit the first class Ethernet frame according to the frequency of the source clock signal; The receiving end comprises: The receiving module at the receiving end is used to receive the Ethernet frame sent by the sending end; A receiving end identification module, used for identifying a first type of Ethernet frame in a received Ethernet frame according to the first identifier; The receiving end restoration module is used to generate a restored clock signal according to the frame frequency of the received first type Ethernet frame.

8. The device for carrying a clock signal on an Ethernet link according to claim 7, characterized in that: The transmitting end receiving module is also used to receive data to be sent; The transmitting end also includes: a transmitting end encapsulation module, configured to encapsulate the data to be transmitted into a second type of Ethernet frame, wherein the length of the second type of Ethernet frame is not greater than a preset length, the preset length is determined based on the frequency of the source clock signal, and the second type of Ethernet frame includes a second identifier that is different from the first identifier; The transmitting end sending module is further used for sending the second type of Ethernet frame between two first type of Ethernet frames.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.