System and method for network data processing

By generating time stamped data frames in network devices and calculating residence time, the problem of long residence time in IEEE802.1AS protocol is solved, and the accuracy of time transmission and system performance are improved.

CN119072870APending Publication Date: 2024-12-03MICROCHIP TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380035292.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-01-18
Filing Date
2023-09-07
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the IEEE802.1AS protocol, the dwell time in network data processing is long, resulting in inaccurate time transmission, especially when the number of nodes increases, the accuracy of frequency difference measurement is reduced, affecting the accuracy of the timestamp.

Method used

A device and system is designed, including an inlet port, an output circuit, a frame analyzer, a processor, a timestamp extractor, a time calculator and a rewriter circuit, to generate time stamped data frames at the inlet port and output port , calculate the dwell time and peer delay, and update the clock rate parameters based on this, reduce the software processing of data frames, and increase the proportion of hardware forwarding.

Benefits of technology

It effectively reduces the residence time in network data processing, improves the accuracy of time transmission and the overall performance of the system, especially when the number of nodes increases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119072870A_ABST
    Figure CN119072870A_ABST
Patent Text Reader

Abstract

A system for network data transactions, the system comprising: an ingress port to receive data frames and time stamp the received data frames; a frame analyzer to forward the data frame to a processor to extract timing information from the data frame and update the data frame based on an updated timing calculation and output the updated data frame via one or more egress ports. The data frame is timestamped at the ingress port and the egress port, and the egress timestamp is saved in a timestamp memory. The system reduces overall network latency by using dedicated hardware and stored timestamp information.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related patent applications

[0002] This application claims priority to commonly owned U.S. Patent Application No. 63 / 404,710 filed on September 8, 2022, the entire contents of which are hereby incorporated by reference herein for all purposes. Technical Field

[0003] The present disclosure relates to network data processing, and more particularly to the processing of network transactions in a packet-switched communication network. Background Art

[0004] Clock synchronization is very important in many network communication applications such as real-time audio and video transmission. Many such networks use Ethernet as the communication medium. In such systems, it may be advantageous for the devices in the network to have a common time base. The common time base can be used, for example, to trigger coordinated measurement actions in a sensor network, coordinate the actions of controllers in an industrial system, or synchronize the clocks of mobile / cellular radio base stations. In addition to sensors, controllers, and radio base stations, the system may also include computers and communication equipment, such as routers and switches.

[0005] The IEEE802.1AS protocol, also known as the generalized precision time protocol (gPTP), is a protocol for accurately transmitting time information over Ethernet. The protocol was designed as a software protocol and was originally targeted at audio video bridging (AVB) networks, but has recently been repurposed for time-sensitive networking (TSN) applications, including low-latency networks and industrial automation.

[0006] In the IEEE802.1AS protocol, frames are forwarded to the local central processing unit (CPU) in the switch, which receives the frame and performs frame modifications. These software operations in the local CPU significantly increase the time that the data frame stays inside the Ethernet switch (called residence time) because software processing is much slower than hardware forwarding.

[0007] The gPTP protocol also runs a separate software routine that measures the frequency difference between the local time base in the Ethernet switch and the gPTP master clock source. The calculation of the frequency difference between the local time base and the master clock source is the result of calculations done in all previous gPTP bridges between the master clock source and the respective individual bridges, and is affected by the timestamp accuracy of those systems, so the accuracy of this frequency difference degrades with the number of nodes in a given network.

[0008] The accuracy of the dwell time depends on the accuracy of the measured RateRatio (the frequency difference between the local time reference and the master clock source time reference) and multiplied by the dwell time, so keeping the dwell time low is the best way to increase the time transfer accuracy of the gPTP bridge.

[0009] A solution is needed to reduce the dwell time in network data processing. Summary of the invention

[0010] A device, the device comprising: an ingress port, the ingress port comprising a timestamp circuit to determine first timestamp information based on a received data frame and to update the received data frame based on the first timestamp information to create a data frame with a timestamp, the ingress port being used to output the data frame with a timestamp; an output circuit, the output circuit comprising one or more egress ports to receive updated and timestamped data frames and modified and timestamped data frames, wherein the egress port comprises a timestamp circuit to determine egress timestamp information and to save the egress timestamp information to a timestamp memory, the output circuit being used to output the data frame; a frame analyzer, the frame analyzer being used to receive the data frame with a timestamp from the ingress port and to forward the data frame with a timestamp to a processor, the processor comprising: a timestamp extractor, the timestamp extractor being used to extract the first timestamp information from the data frame with a timestamp and to read the egress timestamp information from the timestamp memory; a time counter a time calculator, the input of which is coupled to receive the first timestamp information and the egress timestamp information, the time calculator being used to calculate the dwell time based at least on the first timestamp information and the egress timestamp information; a clock rate extractor, the clock rate extractor being used to extract the clock rate information from the timestamped data frame; a clock rate calculator, the clock rate calculator being used to receive the extracted clock rate information from the clock rate extractor and to update one or more clock rate parameters; a frame generator, the output of which is coupled to provide the data frame to the output circuit, the frame generator being used to generate the data frame based at least on the updated clock rate parameters from the clock rate calculator, and a rewriter circuit, the input of which is coupled to the output of the frame analyzer, the rewriter circuit being used to modify the received data frame from the frame analyzer and output the modified and timestamped data frame to the one or more egress ports of the output circuit.

[0011] A system, the system comprising: a plurality of network devices, wherein a corresponding network device among the plurality of network devices is coupled to at least one other network device among the plurality of network devices, each corresponding network device among the network devices comprising: an ingress port, the ingress port comprising a timestamp circuit to determine first timestamp information based on a received data frame and to update the received data frame based on the first timestamp information to create a data frame with a timestamp, the ingress port being used to output the data frame with a timestamp; an output circuit, the output circuit comprising one or more egress ports to receive updated and timestamped data frames and modified and timestamped data frames, wherein the egress port comprises a timestamp circuit to determine egress timestamp information and to save the egress timestamp information to a timestamp memory, the output circuit being used to output the data frame; a frame analyzer, the frame analyzer being used to receive the data frame with a timestamp from the ingress port and to forward the data frame with a timestamp to a processor, the processor comprising: a timestamp extractor, the timestamp extractor being used to extract the timestamp from the data frame with a timestamp a time calculator, the input of which is coupled to receive the first timestamp information and the egress timestamp information, the time calculator being used to calculate a time value based at least on the first timestamp information and the egress timestamp information; a clock rate extractor, the clock rate extractor being used to extract clock rate information from the timestamped data frame; a clock rate calculator, the clock rate calculator being used to receive the extracted clock rate information from the clock rate extractor and update one or more clock rate parameters; a frame generator, the output of which is coupled to provide a data frame to the output circuit, the frame generator being used to generate a data frame based at least on the updated clock rate parameters from the clock rate calculator, and a rewriter circuit, the input of which is coupled to the output of the frame analyzer, the rewriter circuit being used to modify the received data frame from the frame analyzer and output the modified and timestamped data frame to the one or more egress ports of the output circuit.

[0012] A method, the method comprising: receiving a first data frame at an ingress port and generating a first time-stamped data frame at the ingress port; sending the first time-stamped data frame to a processor; extracting the first time stamp information from the first data frame; reading second time stamp information from a time stamp memory; calculating a residence time and a peer delay based on the first time stamp information and the second time stamp information; extracting clock rate information from the first data frame; calculating updated clock rate information based at least on the extracted clock rate information; generating an updated and time-stamped data frame based at least on the updated clock rate information; and sending the updated and time-stamped data frame on an egress port. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings illustrate systems and methods for network data processing.

[0014] Figure 1 One of various examples of an apparatus for network data processing is illustrated.

[0015] Figure 2 One of various examples of network data transaction sequences is illustrated.

[0016] Figure 3 One of various examples of network data transaction sequences is illustrated.

[0017] Figure 4 A method for network data processing according to one of various examples is illustrated. DETAILED DESCRIPTION

[0018] Figure 1 One example of various examples of a device 100 for receiving and sending network data transactions is illustrated. The device 100 may be composed of a master device 110 and one or more relay devices 115. According to the gPTP protocol, the relay device 115 may be a switch or a bridge device.

[0019] The master device 110 may send a data frame 111 to one or more relay devices 115, and the data frame 111 may be received by the corresponding relay device 115. The data frame 111 may be sent over a single line, or may be sent over a bus connection. Departure timestamp information may be stored in the master device 110, and the departure timestamp information reflects the departure time of the data frame from the master device 110. The data frame may be received at the ingress port 120. The ingress port 120 may include a timestamp circuit 125. The timestamp circuit 125 may determine arrival timestamp information reflecting the arrival time of the data frame at the ingress port 120, which is also referred to as t r The timestamp circuit 125 may append the arrival timestamp information to the received data frame to generate a timestamped data frame 127. The arrival timestamp information may also be referred to as first timestamp information.

[0020] The time stamped data frames 127 may be output by the ingress port 120 and may be received by the frame analyzer 140. The frame analyzer 140 may control the processing of the data frames in the auxiliary device 115 via the control interface 157 based at least on the information in the received time stamped data frames 127.

[0021] Frame analyzer 140 may forward time stamped data frame 127 to rewriter circuit 150. Rewriter circuit 150 may receive time stamped data frame 127 from frame analyzer 140, and frame analyzer 140 may instruct rewriter circuit 150 to modify predetermined data fields in time stamped data frame 127 for at least one egress port. Figure 1 The example includes three egress ports, but this is not intended to be limiting. Figure 1 In an example of , the frame analyzer 140 may instruct the rewriter circuit 150 to modify a predetermined data field in the timestamped data frame 127 for the egress ports 161, 162, and 163, and the rewriter circuit 150 may create a modified and timestamped data frame for the corresponding egress ports 161, 162, and 163. In one example of various examples, the rewriter circuit 150 may modify the media access control (MAC) address information in the received data frame for the corresponding egress ports 161, 162, and 163. The rewriter circuit 150 may modify other data in the received timestamped data frame 127. The rewriter circuit 150 may forward the modified and timestamped data frame 155 to the output circuit 160. The output circuit 160 may include one or more egress ports. In Figure 1 In the illustrated example, output circuit 160 may include three egress ports 161, 162, and 163. Output circuit 160 may update timestamp memory 170 with egress timestamp information of respective egress ports 161, 162, 163. The egress timestamp information may reflect the departure time of the modified and timestamped data frame 155 at the respective egress port. Figure 1 The illustrated example includes three outlet ports 161, 162, and 163, but this is not intended to be limiting. One example of the various examples may include more than Figure 1 More outlet ports than the illustrated number of outlet ports may be included. Figure 1 A smaller number of egress ports are illustrated.Time stamp memory 170 may be a random access memory, a first in first out (FIFO), or another memory component.

[0022] Additionally, the frame analyzer 140 may forward the data frame 127 with the timestamp to the processor 130. The processor 130 may receive the data frame 127 with the timestamp from the frame analyzer 140. In the processor 130, the timestamp extractor 131 extracts the timestamp information tr from the data frame 127 with the timestamp. The processor 130 may read the egress timestamp t of the egress port from the egress timestamp memory 170. s For a corresponding egress port among the N egress ports in the timestamp memory 170, the corresponding timestamp may be indicated as t sn , where n is a number from 1 to N. The egress timestamp may also be referred to as second timestamp information.

[0023] In one example among various examples, the time calculator 132 in the processor 130 may calculate the residence time of a corresponding one of the outlet ports as t sn -t r .t snThe value of t may represent the egress port timestamp from timestamp memory 170, as previously described, and t r The value of may represent the extracted timestamp information, as previously described.

[0024] In one example among various examples, a clock rate extractor 134 in the processor 130 may extract clock rate information from the time-stamped data frame 127. A clock rate calculator 135 in the processor 130 may calculate clock rate information based on the extracted clock rate information. The clock rate information calculated by the clock rate calculator 135 may include one or more clock rate parameters, including but not limited to RateRatio, correction field, peer delay, and dwell time. A frame generator 136 in the processor 130 may update a data field in the time-stamped data frame 127 and output the updated and time-stamped data frame 133 to the output circuit 160. The updated and time-stamped data frame 133 may be sent on at least one egress port in the output circuit 160.

[0025] The RateRatio between a master device and a relay device can be defined as the ratio of the frequency of the master clock source in the master device to the frequency of the local clock in the relay device. The neighborRateRatio between two networked devices can be defined as the ratio of the clock frequency at the second networked device to the clock frequency at the first networked device. The neighborRateRatio can represent the drift of the clock as it travels between networked devices.

[0026] Processor 130 may calculate an updated RateRatio (uRR) based on clock rate information extracted from time-stamped frame 127, including the extracted RateRatio (RR) and the extracted NeighborRateRatio (NRR), wherein the updated RateRatio (uRR) is defined as uRR = RR + NRR.

[0027] In one example among various examples, the processor 130 may calculate a new correction field (nCF) value as nCF=CF+(dwell time+peer delay)*uRR, where CF is the correction field extracted from the timestamped data frame 127, the dwell time is the dwell time calculated as previously disclosed, and the peer delay is as previously disclosed. Figure 2 The peer delay calculated as described, and uRR is the updated RateRatio calculated as previously disclosed. The frame generator 136 may generate an updated and time-stamped data frame 133 based at least on the new correction field value and the updated RateRatio.

[0028] exist Figure 1In the illustrated example, the modified and time-stamped data frame 155 received from the rewriter circuit 150 may be sent at the egress port 161 and sent through the physical link 181. The physical link 181 may be connected to one or more network devices. The output circuit 160 may save the timestamp generated at the egress of the modified and time-stamped data frame 155 from the egress port 161 to the timestamp memory 170. The timestamp of the egress port 161 may reflect the time at which the modified and time-stamped data frame 155 may be sent on the egress port 161. The timestamp of the egress port 161 may be read by the processor 130, as previously described. The modified and time-stamped data frame 155 may be sent at the egress port 162 and sent through the physical link 182. The physical link 182 may be connected to one or more network devices. The output circuit 160 may save the timestamp generated at the egress of the modified and time-stamped data frame 155 from the egress port 162 to the timestamp memory 170. The timestamp of the egress port 162 may reflect the time at which the modified and time-stamped data frame 155 may be sent on the egress port 162. The timestamp of the egress port 162 may be read by the processor 130, as previously disclosed. The modified and time-stamped data frame 155 is sent at the egress port 163 and is sent over the physical link 183. The physical link 183 may be connected to one or more network devices. The output circuit 160 may save the timestamp generated at the egress of the modified and time-stamped data frame 155 from the egress port 163 to the timestamp memory 170. The timestamp of the egress port 163 may reflect the time at which the modified and time-stamped data frame 155 may be sent on the egress port 163. The timestamp of the egress port 163 may be read by the processor 130, as previously disclosed.

[0029] Figure 2 One of various examples of transaction sequences in a network is illustrated. Figure 2 The illustrated transaction sequence may be part of a process of calculating various delays between network components, including but not limited to peer delay and dwell time. Peer delay may be defined as the delay in sending a message from one networked device to a second networked device. Figure 2 The illustrated transaction sequence can be represented by Figure 1 The illustrated device receives and transmits, or may be received and transmitted by another network device.

[0030] Transactions sent from and received at the master device 201 are illustrated on the left vertical axis, and transactions sent from and received at the auxiliary device 202 are illustrated on the right vertical axis. The vertical direction may indicate time. The master device 201 may represent a bridge device, a switch device, or another network device capable of receiving and sending network transactions. The auxiliary device 202 may represent a bridge device, a switch device, or another network device capable of receiving and sending network transactions.

[0031] The primary device 201 may send a request frame 215 to the secondary device 202. The request frame 215 may be sent by the primary device 201 at time 210. The time 210 may also be referred to as t1. The time value 210 may be stored as a timestamp in a timestamp storage element in the primary device 201, including but not limited to a FIFO or a random access memory. The request frame 215 may be received at the secondary device 202 at time 220. The time 220 may also be referred to as t2. The time from time 210 to time 220 (illustrated as 231) represents the time for the request frame to traverse the physical network from the primary device 201 to the secondary device 202.

[0032] In one example of various examples, the auxiliary device 202 can be as shown in FIG. Figure 1 The request frame 215 is processed as described and the clock rate information may be calculated and the data frame fields may be updated.

[0033] The secondary device 202 may send a response frame 216 at time 221. Time 221 may also be referred to as t3. The response frame 216 may send information from the secondary device 202 to the primary device 201, including but not limited to the value of time 220, i.e., t2. The secondary device 202 may store the timestamp (i.e., t3) generated when sending the response frame 216 in a timestamp storage element in the secondary device 202, including but not limited to a FIFO or a random access memory. The response frame 216 may be received at the primary device 201 at time 212. Time 212 may also be referred to as t4. The time value 212 may be stored as a timestamp in a timestamp storage element in the primary device 201, including but not limited to a FIFO or a random access memory.

[0034] The duration from time 221 to time 212 (illustrated as interval 233 ) may represent the time for the response frame to traverse the network from secondary device 202 to primary device 201 .

[0035] Secondary device 202 may send subsequent frame 217 at time 222, which may be before time 212. Subsequent frame 217 may send information from secondary device 202 to primary device 201, including, but not limited to, the value of time 221. Subsequent frame 217 may be received at primary device 201 at time 213.

[0036] The primary device 201 may include a processor, microcontroller or other processing element. The primary device 201 may calculate a peer delay between the primary device 201 and the secondary device 202 based on the time values ​​t1, t2, t3 and t4. The peer delay between the primary device 201 and the secondary device 202 may be calculated as a peer delay. This calculation is based on a symmetric system where the total time to send messages from the primary server to the secondary server and vice versa is divided by two. Other equations that do not assume a symmetric system can be used to calculate peer delay.

[0037] During the transmission of subsequent frames from the secondary device 202 to the primary device 201, clock rate information may be calculated. NeighborRateRatio may be calculated based on the values ​​of t3 and t4 in the subsequent frames, which may represent the difference in clock rate between the primary device 201 and the secondary device 202. NeighborRateRatio may be defined as Among them, t3′ may represent the time when the slave device 202 sends the second frame to the master device 201, t4′ may represent the time when the slave device 201 receives the second frame, t3 may represent the time when the slave device 202 sends the first frame to the master device 201, and t4 may represent the time when the master device 201 receives the first frame.

[0038] Figure 3 One example of various examples of transaction sequences received and sent by a network device is illustrated. A transaction sequence may be as follows: Figure 1 The transaction sequence can be determined by Figure 1 In the example shown, device 1 can send data to device 2. Device 2 can send data to another node (not shown) in the network. Data can be sent from device 1 egress port 301 to device 2 ingress port 321, and then output at device 2 egress port 341.

[0039] Transactions sent by device 1 egress port 301 are illustrated along the left vertical axis, transactions received by device 2 ingress port 321 are illustrated along the middle vertical axis, and transactions sent by device 2 egress port 341 are illustrated along the right vertical axis. The vertical direction may indicate time. Device 1 and device 2 may each represent a bridge device, a switch device, or another network device capable of receiving and sending network transactions. Device 1 and device 2 may represent a device such as a reference device. Figure 1 Describes the network device.

[0040] At time 310, device 1 may send a sync frame 315 from device 1 egress port 301. Sync frame 315 may be received at device 2 ingress port 321 at time 330. Timestamp circuitry in device 2 ingress port 321 may timestamp the arrival time of sync frame 315 at device 2 ingress port 321 to time tr, as shown in reference to FIG. Figure 1 The inlet port 120 is described.

[0041] The internal circuitry in device 2 may forward the time-stamped synchronization frame to the rewriter circuit, and the rewriter circuit may modify the synchronization frame information, such as reference Figure 1 The processor in device 2 may calculate the dwell time of device 2 and the peer delay between device 1 and device 2, as previously described. The processor in device 2 may calculate the peer delay and neighborRateRatio, as previously described. The sync frame 355 may be output at device 2 egress port 341 at time 350, and the egress timestamp may be recorded in the timestamp memory, as described in reference Figure 1 The output circuit 160 and the time stamp memory 170 are described.

[0042] At time 330, device 1 may send subsequent frame 316 from device 1 egress port 301. Figure 3 In the illustrated example, the subsequent frame 316 may be sent while the synchronization frame 315 is received at the device 2 inlet port 321, but this is not intended to be limiting. The subsequent frame 316 may be sent by the device 1 outlet port 301 before or after the synchronization frame 315 arrives at the device 2 inlet port 321. The subsequent frame 316 may include timing information, including but not limited to RateRatio (RR) and correction field information. The subsequent frame 316 may be received at the device 2 inlet port 321 at time 331.

[0043] The internal circuitry in device 2 may calculate the updated RateRatio (uRR) and the new correction field (nCF), as shown in FIG. Figure 1 Device 2 may generate a subsequent frame 356 for device 2 egress port 341 , which may be sent at time 351 .

[0044] In operation, Figure 3 The described example reduces dwell time because the forwarding and processing of data frames is done in hardware. Figure 3 In the example of , device 2 may output a sync frame 355 at time 350 before subsequent frame 316 arrives at time 331 .

[0045] Figure 4 A method 400 for network data processing in a network device according to one of various examples is illustrated.

[0046] At operation 410, the network device may receive a first data frame and generate first timestamp information. At operation 420, the network device may modify the data frame based on the first timestamp information. At operation 430, the network device may send the modified and timestamped data frame to the processor. At operation 440, the processor may read second timestamp information from the timestamp memory.

[0047] At operation 450, the processor may calculate the residence time and the peer delay based on the first timestamp information and the second timestamp information. At operation 460, the processor may extract the clock rate information from the modified and time-stamped data frame and calculate the updated clock rate information. At operation 470, the processor may generate an updated and time-stamped data frame based on the updated clock rate information. At operation 480, the network device may send the updated and time-stamped data frame at the egress port.

Claims

1. A device, the device include: an ingress port, the ingress port comprising a timestamp circuit to determine first timestamp information based on a received data frame and to update the received data frame based on the first timestamp information to create a timestamped data frame, the ingress port being configured to output the timestamped data frame; an output circuit, the output circuit comprising one or more egress ports to receive the updated and time-stamped data frame and the modified and time-stamped data frame, wherein the egress port comprises a timestamp circuit to determine egress timestamp information and save the egress timestamp information to a timestamp memory, the output circuit to output the data frame; a frame analyzer, the frame analyzer being configured to receive the data frame with the time stamp from the ingress port and forward the data frame with the time stamp to a processor, the processor comprising: A timestamp extractor, the timestamp extractor being used to extract the first timestamp information from the data frame with the timestamp and read the egress timestamp information from the timestamp memory; a time calculator having an input coupled to receive the first timestamp information and the exit timestamp information, the time calculator being configured to calculate a dwell time based at least on the first timestamp information and the exit timestamp information; a clock rate extractor for extracting clock rate information from the time-stamped data frame; a clock rate calculator for receiving the extracted clock rate information from the clock rate extractor and updating one or more clock rate parameters; a frame generator, an output of the frame generator being coupled to provide a data frame to the output circuit, the frame generator for generating a data frame based at least on the updated clock rate parameters from the clock rate calculator, and A rewriter circuit having an input coupled to the output of the frame analyzer, the rewriter circuit being operable to modify received data frames from the frame analyzer and output the modified and time-stamped data frames to the one or more egress ports of the output circuit.

2. The apparatus of claim 1, wherein the rewriter circuit is to modify the received data frame based at least on information in the received data frame.

3. The apparatus according to any one of claims 1 to 2, wherein the timestamp memory comprises a first-in-first-out memory. 4 . The apparatus according to claim 1 , wherein the clock calculator is configured to calculate clock information based at least on the extracted clock rate information.

5. The apparatus according to any one of claims 1 to 4, wherein the time calculator is configured to calculate a residence time and a peer delay of the received first data frame based at least on the received first data frame.

6. The system according to any one of claims 1 to 5, wherein the clock rate extractor is configured to calculate updated clock rate information based at least on the extracted clock rate information.

7. A system, wherein the system include: A plurality of network devices, wherein respective network devices of the plurality of network devices are coupled to at least one other network device of the plurality of network devices, each respective network device of the network devices comprising any one of the devices according to claims 1 to 6.

8. A method, the method comprising: include: receiving a first data frame at an ingress port and generating a first time-stamped data frame at the ingress port, Send the first timestamped data frame to the processor, Extracting the first timestamp information from the first data frame; Reading second timestamp information from the timestamp memory; calculating a dwell time and a peer delay based on the first timestamp information and the second timestamp information; extracting clock rate information from the first data frame; calculating updated clock rate information based at least on the extracted clock rate information; generating updated and time-stamped data frames based at least on the updated clock rate information, and The updated and time-stamped data frame is sent on an egress port.

9. The method of claim 8, comprising storing the timestamp information in a timestamp memory.

10. The method according to any one of claims 8 to 9, said extracting clock rate information comprising calculating updated clock rate information based at least on the extracted clock rate information.