A method and device for reducing Ethernet data transmission jitter

By obtaining and processing the absolute time of data frames on the receiving end, combining multi-buffer pooling mechanism and frequency synchronization, the problem of data transmission shaking in complex Ethernet networks is solved, and the accurate and real-time transmission of data frames is achieved, which is suitable for high-demand Industrial motion control.

CN114401076BActive Publication Date: 2024-11-01CHINA RAILWAY SIGNAL & COMM +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111447551.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-11-01
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

In complex Ethernet networks, there is a large delay shaking during data transmission, resulting in data frames that may be discarded and difficult to apply to motion control and closed-loop control. Although existing technologies such as PROFINET and EtherCAT provide certain improvements, they cannot be completely eliminated. Solve resource and latency issues.

Method used

The receiver obtains the absolute time of the sampling start point in the data frame, determines the activation time based on the delay configuration value and absolute time, and compares it with the local clock count value, reads the data frame, and uses the multi-buffer pooling mechanism and synchronization and interface logic to perform frequency Synchronization eliminates clock accumulation deviations and ensures accurate reading and transmission of data frames.

Benefits of technology

It effectively eliminates time shaking during data transmission, ensures the accuracy and real-timeness of data frames, and is suitable for high-demand industrial motion control applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114401076B_ABST
    Figure CN114401076B_ABST
Patent Text Reader

Abstract

The present invention proposes a method and device for reducing Ethernet data transmission jitter, the method comprising: the receiving end obtains the absolute time of the sampling starting point in the data frame; determines the activation time according to the delay configuration value and the absolute time; compares the activation time with the local clock count value, and reads the data frame according to the comparison result. The frequency and time synchronization of the transmitting end and the receiving end of the present invention eliminates the cumulative deviation of the clock, and the synchronization state can keep the absolute time count value of the acquisition starting point of the recorded data acquisition for a long time, so that the receiving end can restore the acquisition time of the data frame after receiving it, thereby eliminating the time jitter caused by the delay; at the same time, the multi-buffer pool mechanism can solve the problem of data frame delay interleaving and data frame arrival time interleaving of different sampling channels.
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 data transmission, and in particular to a method and device for reducing Ethernet data transmission jitter. Background Art

[0002] During the operation of the network motion control system, all control devices are connected in the form of a network, which can realize remote speed regulation and control parameter setting, etc. The fieldbus connects multiple devices into a network, and according to an open and standardized communication protocol, it realizes communication and control between devices on the network and computers, and can easily establish a multi-node distributed network control system.

[0003] For example, field buses such as CAN, RS232, and MODBUS have strict definition constraints on network topology and underlying communication protocols, and pre-configure the network through precise and standardized protocols. In these networks, data transmission delay mainly comes from the propagation delay of physical cables and the processing delay of interface devices. There is no delay change caused by the switching and forwarding process, which can ensure the real-time and deterministic transmission of key control information, and its shaking is very small.

[0004] However, in Ethernet, the network structure is more complex. Data frames (e.g., Ethernet data frames) are sent from one node to another, with many transmission nodes, such as from an endpoint to a switch (e.g., a bridge), and may be forwarded from the switch to other switches before finally reaching another endpoint. This architecture is largely self-configurable. The switch receives the data frame completely before forwarding it. However, this will cause many problems: if too many frames are accumulated in the buffer of a port of the switch, the newly received frames will be discarded; the delay time of the Ethernet frame in the switching routing device is related to its length, which will cause delay jitter; because the target port may have other data frames being sent, it will cause additional delays.

[0005] Therefore, the switching routing mechanism, which is an important feature of Ethernet in the prior art, cannot provide delay guarantee, that is, data will produce large jitter when transmitted in a complex network such as Ethernet. This jitter may cause data frames to be discarded during transmission, making Ethernet difficult to apply to motion control / closed-loop control.

[0006] In order to solve the above technical problems, the industry has developed a variety of different real-time industrial Ethernet solutions to improve the reliability, real-time and determinism of complex networks such as Ethernet. Several typical methods:

[0007] PROFINET: This protocol offers two solutions with different performances. PROFINET RT (Real-time Communication) is a factory automation solution with a maximum cycle time of 1ms. RT is directly based on standard Ethernet and uses some extension mechanisms of the Ethernet standard, such as Quality of Service (QoS), to differentiate between real-time / non-real-time traffic priorities. However, QoS is software-based, the improvement is very limited, and it does not completely solve resource and latency issues. For hard real-time, PROFINET offers the Isochronous Real-Time (IRT) extension. Here, part of the Ethernet bandwidth is reserved exclusively for IRT traffic through an extension of the standard Ethernet hardware. This can be achieved through precise synchronization of the clocks in the IRT nodes. As a result, normal traffic in the channel (red phase) can be blocked in every cycle. Only IRT frames in the red phase reach the network. In addition, network participants send IRT frames exactly at the pre-calculated time, thereby maximizing efficiency in the red phase. IRT frames pass through the network with almost no cycle slips.

[0008] EtherCAT (Ethernet Fieldbus) is currently the best mechanism for achieving real-time performance under the Ethernet framework. However, EtherCAT is not only optimized for fieldbus applications and high-throughput applications at Layer 2, but also has made major modifications to the Ethernet physical layer (i.e., Layer 1). In fact, it is more like a fieldbus. Unlike ordinary Ethernet, each device sends a separate frame and exchanges and transmits it through a switch or router; EtherCAT does not have a classic Ethernet bridge, but the entire network sends a total frame per cycle, which contains all the data of the addressed device. When the EtherCAT total frame is forwarded by the device, the data of the specific device is inserted into and taken out of the frame in real time. In this way, extremely short cycle times can be achieved, and deterministic transmission delays and extremely small delay jitters can be provided, so it has achieved certain success in areas such as motion control. Due to EtherCAT's extensive modifications to the Ethernet physical layer and link layer, it does not meet the specifications of standard Ethernet and has many compatibility and interconnectivity restrictions.

[0009] In industrial motion control applications, as users' requirements for service quality continue to increase, more and more stringent requirements are placed on the real-time transmission of acquisition and control information. The control algorithm must obtain input information and generate control results at a certain time. If there is a large time deviation in the sampling information, it will cause calculation errors in the control algorithm and reduce the control accuracy.

[0010] Therefore, there is an urgent need for a method and device to reduce data jitter generated during data transmission in a complex network such as Ethernet. Summary of the invention

[0011] In view of the above problems, the present invention designs a processing method for reducing Ethernet data transmission jitter, which is as follows:

[0012] A method for reducing data transmission jitter in a network according to the present invention comprises:

[0013] The receiving end obtains the absolute time of the sampling starting point in the data frame;

[0014] Determine the activation time based on the delay configuration value and the absolute time;

[0015] The activation time is compared with a local clock count value, and the data frame is read according to the comparison result.

[0016] Furthermore,

[0017] The activation time is obtained by adding the delay configuration value and the absolute time information.

[0018] Furthermore,

[0019] Acquire marking information in the data frame, and determine delay configuration information according to the marking information.

[0020] Furthermore,

[0021] The tag information is network layer port information or application layer information.

[0022] Furthermore,

[0023] Writing the activation time and the data frame into a selected buffer pool;

[0024] The activation time information plus the expected read-out duration of the frame data is used as the allowed activation time for subsequent write data frames of the buffer pool.

[0025] Furthermore,

[0026] The activation time of the data frame subsequently written into the buffer pool is greater than the allowed activation time.

[0027] Furthermore,

[0028] The activation time of the subsequent data frame is compared with the allowed activation time of all buffer pools, and the appropriate buffer pool is selected in combination with the remaining capacity of the buffer pool.

[0029] Further, the step of comparing the activation time with the local clock count value and reading the data frame according to the comparison result is specifically as follows:

[0030] The activation time of the top data frame in each buffer pool is pre-fetched and compared with the local real-time clock count value. When the comparison result of the two is equal, all data frames are read out of the buffer pool and output from the corresponding sampling channel data port.

[0031] Furthermore,

[0032] The absolute time of the sampling starting point is the current clock count value corresponding to when the data is sampled.

[0033] Further, before obtaining the absolute time of the sampling starting point in the data frame, the method includes:

[0034] The transmitting end and the receiving end perform frequency synchronization, determine the transmission delay between the transmitting end and the receiving end, and make corrections.

[0035] Correspondingly, the present invention provides a device for reducing data transmission jitter in a network, the device comprising:

[0036] An extraction unit, used for obtaining the absolute time of the sampling starting point in the data frame;

[0037] An activation time determination unit, used to determine the activation time according to the delay configuration value and the absolute time;

[0038] The buffer activation processing unit is used to compare the activation time with the local clock count value and read the data frame according to the comparison result.

[0039] Furthermore,

[0040] The activation time is obtained by adding the delay configuration value and the absolute time.

[0041] Furthermore, the device also includes a delay configuration unit, wherein:

[0042] The delay configuration unit is used to obtain the marking information in the data frame and determine the delay configuration value according to the marking information.

[0043] Furthermore, the device further comprises a buffer queue scheduling unit, wherein the buffer queue scheduling unit is used to:

[0044] Writing the activation time and the data frame into a selected buffer pool;

[0045] The activation time information plus the expected read-out duration of the frame data is used as the allowed activation time for subsequent write data frames of the buffer pool.

[0046] Furthermore,

[0047] The activation time of the data frame subsequently written into the buffer pool is greater than the allowed activation time.

[0048] Furthermore,

[0049] The activation time of the subsequent data frame is compared with the allowed activation time of all buffer pools, and the appropriate buffer pool is selected in combination with the remaining capacity of the buffer pool.

[0050] Further, the step of comparing the activation time with the local clock count value and reading the data frame according to the comparison result is specifically as follows:

[0051] The activation time of the top data frame in each buffer pool is pre-fetched and compared with the local real-time clock count value. When the comparison result of the two is equal, all data frames are read out of the buffer pool and output from the corresponding sampling channel data port.

[0052] Furthermore, the device also includes synchronization and interface logic, which performs frequency synchronization with the transmitter before acquiring the absolute time of the sampling start point in the data frame, determines the transmission delay between the transmitter and the device and corrects it.

[0053] The present invention designs a processing system and method for reducing Ethernet data transmission jitter. The frequency and time of the sending end and the receiving end are synchronized, and the accumulated deviation of the clock is eliminated. The synchronization state can keep the absolute time count value of the acquisition starting point of the recorded data acquisition for a long time, so that the receiving end can restore the acquisition time of the data frame after receiving it, thereby eliminating the time jitter caused by the delay; at the same time, the multi-buffer pool mechanism can solve the problems of delayed interleaving of data frames of different sampling channels and interleaving of data frame arrival times.

[0054] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 A network connection structure diagram of a network control system according to an embodiment of the present invention is shown;

[0057] Figure 2 It shows a logical structure diagram of data processing at the collector side according to an embodiment of the present invention;

[0058] Figure 3 A controller-side processing logic structure diagram according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Figure 1 FIG. 1 shows a network connection structure diagram of a network control system according to an embodiment of the present invention. Figure 1 The structure shown is used as an example to illustrate the method for reducing data transmission jitter of the present invention, but it is not limited to this network structure.

[0061] like Figure 1 As shown, the collector as the sending end can sample data according to a fixed or non-fixed cycle or based on an external signal trigger, and form the collected data information. After the data information is collected, it is sent to the transmission network through the sending logic, and finally sent to the controller as the receiving end.

[0062] During the transmission of the above data information in the transmission network, due to the storage and forwarding processes in the transmission network, the data information actually received by the controller as the receiving end will fluctuate greatly at all times.

[0063] After receiving the data information, the controller processes it according to the method of reducing network data transmission jitter set internally, so as to reduce or even avoid the jitter of the arrival time of the data information reaching the controller, so as to eliminate the impact of delay in the process of network data transmission.

[0064] It should be noted that the embodiments of the present invention are illustrated by taking the collector as the data sending end and the controller as the data receiving end as an example, but it is not limited to the collector and the controller. Any device that sends data information in the network can be used as a sending end, and any device that receives data information in the network can be used as a receiving end; and when the device sends a data frame, the device acts as a sending end; when the device receives a data frame, the device acts as a receiving end.

[0065] The method for reducing data transmission jitter according to the embodiment of the present invention generally includes the following steps:

[0066] Step 1: The frequency synchronization between the collector and the controller is achieved through the synchronization and interface logic between the two.

[0067] The collector sends the data collected by sampling and other methods to its synchronization and interface logic through its sending logic, uses its determined working frequency as the sending carrier frequency of the communication link, carries the data frame and other data information formed by the data on the sending carrier frequency, and sends it to the controller through the transmission network;

[0068] After the controller receives the data information sent from the transmission network through its synchronization and interface logic, it uses CDR clock data recovery technology to recover the data transmission carrier frequency of the collector end from the communication link, and further generates the operating frequency inside the controller. This method of the embodiment of the present invention can enable the controller to follow the frequency of the collector with the help of the communication link. Using the same principle, the collector can also be configured to follow the frequency of the controller. In other words, in the embodiment of the present invention, the frequency synchronization between the collector and the controller can be achieved by one party following the other party, or both parties can follow a third party to achieve frequency synchronization, as long as the frequency synchronization of the two is achieved.

[0069] When the frequencies of the above collector and controller are synchronized, the time counting pace of both parties will be consistent, which eliminates the cumulative error of the time counting between the collector and the controller.

[0070] Step 2: Use a time synchronization protocol, such as the PTPv2 (IEEE-1588) network synchronization protocol, to measure and calculate the transmission delay between the collector and the controller, and pre-correct the transmission delay so that the absolute values ​​of the time counts of both parties are consistent.

[0071] In the embodiment of the present invention, since both parties have achieved frequency synchronization, no cumulative error in time counting will occur, so the synchronization process of the time counting value does not need to be performed frequently, and only needs to be performed once every second or every few seconds to eliminate the slow drift of the transmission path delay.

[0072] After the above steps 1 and 2, the collector and controller have built a continuously running "local time counter" respectively, and both have the same counting beat and starting time. The collector and controller logic can obtain the current count value of the counter at any time, that is, the current time.

[0073] Step 3: As the collector at the sending end, each time the signal is sampled, the absolute time count value of the sampling starting point is recorded and packaged together with the sampled data as the data content of the data frame.

[0074] Figure 2 FIG. 2 shows a logical structure diagram of data processing at the collector side according to an embodiment of the present invention. Figure 2 The collector as the sending end captures the count value of the current clock based on the sampling start signal to form the absolute time count value of the sampling data this time; at the same time, it generates a number of sampling data based on the sampling start signal.

[0075] The data frame forming unit obtains the absolute time count value and the sampled data, takes the absolute time count value as part of the frame header, and the sampled data as the data part of the data frame, to generate a complete transmission data frame. The data frame is stored in the network transmission buffer so that the collector can send it to the controller through the transmission network.

[0076] In the embodiment of the present invention, there can be multiple independent sampling channels on the collector side to generate multiple sets of sampling data, not limited to Figure 2 A collection channel in .

[0077] The data frames generated in the collector are sent to the controller via the transmission network. It should be noted that in the embodiment of the present invention, there may be multiple collectors or controllers in the entire network, and data may be transmitted between these devices via the IP network. The data of a single sampling channel of a collector may be sent to multiple controllers, and a controller may also receive data from multiple sampling channels.

[0078] Figure 3 FIG. 2 shows a logic structure diagram of the controller side processing according to an embodiment of the present invention. Figure 3 As shown, the controller's network receiving buffer stores sampled data sent from multiple collectors in the transmission network, or the controller's network receiving buffer stores multiple sampled data sent from one collector in the transmission network. Due to differences in sending buffer delay and network transmission delay, the sampled data from multiple collectors may be received in a disordered order in the network buffer after being received by the controller, that is, the data sampled by the collector first may arrive at the network receiving buffer later, and the data sampled by the collector later may arrive at the network receiving buffer first.

[0079] The data frame analysis unit of the controller reads the data frame from its receiving buffer, extracts the marking information of the data frame (such as multi-component information such as IP, MAC, port or type of the network layer and / or the collector number, sampling channel number or sampling frame sequence number of the application layer, etc.) and the absolute time information of the sampling starting point, that is, the absolute time count value in the data frame.

[0080] The delay configuration unit of the controller obtains the corresponding delay configuration value from the delay configuration table using a preset matching strategy according to the extracted tag information. The matching strategy and delay configuration table in the embodiment of the present invention can be dynamically updated and reconstructed.

[0081] The extraction unit of the controller extracts the absolute time information of the sampling start point in the data frame.

[0082] The activation time determination unit of the controller receives the delay configuration value sent by the delay configuration unit and the absolute time information extracted by the extraction unit, adds the delay configuration value and the absolute time information, and obtains the activation time information corresponding to the sampling data.

[0083] The buffer queue scheduling unit of the controller writes the activation time information and the data frame into the selected buffer pool according to the tag information, and uses the activation time plus the expected read duration of the frame data as the allowed activation time for subsequent data frames written into the buffer pool. The activation time of the subsequent data frames written into the buffer pool must be greater than the allowed activation time, which can ensure that after the buffer pool is activated and a frame of data is read out, the activation time of the next data frame in the buffer pool has not yet been reached.

[0084] It should be noted that, in the embodiment of the present invention, there are multiple buffer pools, for example Figure 3 Buffer pool 1, buffer pool 2, ... buffer pool n are shown in FIG.

[0085] The buffer scheduling unit of the controller compares the activation time of the subsequent data frame with the allowed activation time of all buffer pools, and selects a buffer pool suitable for the subsequent frame in combination with the remaining capacity of the buffer pool.

[0086] In the embodiment of the present invention, multiple collectors or sampling channels can be time-sequenced through the scheduling of multiple buffer pools, and the order disorder of network frames can be eliminated.

[0087] The buffer activation processing unit of the controller pre-takes out the activation time of the top data frame in each buffer pool and compares it with the local real-time clock count value. When the comparison result of the two is equal, it starts to read all the data frames from the buffer pool and output them from the corresponding sampling channel data port.

[0088] In the embodiment of the present invention, the delay variation in the data transmission process is eliminated through the buffering and delayed activation readout process. The control logic strictly ensures that the time when the collected data is obtained is the sampling time plus the set delay value. The above method of the embodiment of the present invention only needs to consider the influence of the fixed and determined delay, and does not need to consider the time jitter of the sampled data.

[0089] Compared with IEEE 1588, deterministic Ethernet, TSN and other technologies, the processing method of the present invention has the following advantages:

[0090] Existing technologies such as TSN and DetNet improve the determinism of Ethernet through a collection of a series of protocols and mechanisms, such as network slicing, explicit routing, resource reservation, clock / frequency synchronization, cycle mapping, gated priority queue scheduling, frame preemption, traffic filtering and shaping, multiple transmission and selection, etc., to ensure QoS indicators such as deterministic bandwidth, low latency, low jitter, and high reliability. These methods are all concentrated at the network transmission level, while the method of the present invention focuses on the data processing method at the receiving end, and the two are complementary to each other. These existing technologies are mainly improved at the network transmission level, which can only try to improve transmission delay and jitter, while the method of the present invention can fully guarantee the strict fixation of the time when the final algorithm obtains sampling information.

[0091] In the method proposed in the present invention, the synchronization and interface logic of the collector and the controller can adopt the IEEE 1588-2019HA specification or WhiteRabbit technology, and the time synchronization can reach better than the nanosecond level, that is, not only the frequency resonance but also the phase can be guaranteed to be locked, and the time count can be aligned to a single clock cycle.

[0092] The configured fixed delay value should be able to cover the maximum delay that may occur in network transmission. The various mechanisms proposed by TSN can reduce the maximum transmission delay of the network, which will help reduce the fixed delay value configured by this method.

[0093] Finally, it should be noted that, in this article, relational terms such as one and another are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0094] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for reducing data transmission jitter in a network, the method comprising: The transmitter and receiver perform frequency synchronization, determine the transmission delay between the transmitter and receiver, and make corrections; The receiving end obtains the absolute time of the sampling starting point in the data frame; Acquire the marking information in the data frame, and determine the delay configuration value according to the marking information; Add the delay configuration value and the absolute time of the sampling starting point to obtain the activation time; Writing the activation time and the data frame into the selected buffer pool; taking the activation time information plus the expected read-out duration of the data frame as the allowed activation time for subsequent data frames written into the selected buffer pool, the activation time of the subsequent data frame being greater than the allowed activation time, comparing the activation time of the subsequent data frame with the allowed activation times of all buffer pools, and selecting a suitable buffer pool for the subsequent data frame in combination with the remaining capacity of all buffer pools; The activation time of the top data frame in each buffer pool is pre-fetched and compared with the local real-time clock count value. When the comparison result of the two is equal, all data frames are read out of the buffer pool and output from the corresponding sampling channel data port.

2. The method according to claim 1, wherein: The tag information is network layer port information or application layer information.

3. The method according to claim 1, wherein: The absolute time of the sampling starting point is the current clock count value corresponding to when the data is sampled.

4. A device for reducing data transmission jitter in a network, the device comprising: An extraction unit, used for obtaining the absolute time of the sampling starting point in the data frame; A delay configuration unit, used to obtain the marking information in the data frame and determine the delay configuration value according to the marking information; An activation time determination unit, used for adding the delay configuration value and the absolute time of the sampling starting point to obtain the activation time; a buffer queuing scheduling unit, configured to write the activation time and the data frame into a selected buffer pool; use the activation time information plus the expected read-out duration of the data frame as the permitted activation time for subsequent data frames written into the selected buffer pool; if the activation time of the subsequent data frame written into the selected buffer pool is greater than the permitted activation time, compare the activation time of the subsequent data frame with the permitted activation times of all buffer pools, and select a suitable buffer pool in combination with the remaining capacity of all buffer pools; The buffer activation processing unit is used to pre-take out the activation time of the top data frame in each buffer pool and compare it with the local real-time clock count value. When the comparison result of the two is that the time is equal, the data frame is read out from the buffer pool and output from the corresponding sampling channel data port; The device also includes synchronization and interface logic, which performs frequency synchronization with the transmitter before acquiring the absolute time of the sampling start point in the data frame, determines the transmission delay between the transmitter and the device and performs correction.