Timestamps on media independent interfaces

By embedding future timestamps in network devices and releasing packets at the time of transmission, the latency and complexity issues of two-step timestamp technology are solved, hardware requirements and power consumption are reduced, while the security of timestamps is protected and the clock synchronization accuracy of communication networks is improved.

CN119032525APending Publication Date: 2024-11-26MARVELL ISRAEL (M L S L) LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202380034347.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-10-28
Filing Date
2023-02-24
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Existing two-step timestamp technology increases network latency and implementation complexity, and reduces end-to-end clock accuracy in the network. On the other hand, one-step timestamp technology increases hardware requirements and power consumption, and timestamps are easily viewed or modified by malicious third parties, affecting clock synchronization in communication networks.

Method used

Introducing a timestamp circuit system into network devices ensures the accuracy of timestamps by embedding future timestamps in packets and releasing the packets when the current time reaches the transmission time. This is then transmitted through a media-independent communication interface, combined with a time-gating circuit system to prevent packets from being sent prematurely.

Benefits of technology

It improves the synchronization accuracy of clocks in the network, reduces hardware requirements and power consumption, and protects timestamps from malicious modification, thereby enhancing the security of the communication network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119032525A_ABST
    Figure CN119032525A_ABST
Patent Text Reader

Abstract

Timestamp circuitry of a network device modifies a packet by embedding a future timestamp in the packet to generate a time-stamped packet. The future timestamp corresponds to a transmission time that occurs after the timestamp circuitry embeds the future timestamp in the packet. Timing information is added to the packet, and then the packet is transmitted to transmitter circuitry of the network device via a communication link inside the network device that operates according to the media independent communication interface. Time gating circuitry of the transmitter circuitry i) maintains the time-stamped packet not to advance to a network link coupled to the network device before the current time reaches the transmit time, and ii) releases the time-stamped packet for transmission via the network link in response to the current time reaching the transmit time.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is a partial continuation of U.S. patent application No. 17 / 976,658, filed on October 28, 2022, entitled “Dynamic One-Step / Two-StepTimestamping Per Packet in Network Devices”, which claims the benefit of U.S. Provisional Patent Application No. 63 / 313,293, filed on February 24, 2022, entitled “Dynamic 1 / 2Step Timestamping in MCH Based PHY”, and claims the benefit of U.S. Provisional Patent Application No. 63 / 313,756, filed on February 25, 2022, entitled “Encrypted PTP Frames 1StepTimestamping Over USXGMII / USGMII Interfaces”. In addition, this application claims the benefit of U.S. Provisional Patent Application No. 63 / 313,756, filed on February 25, 2022, and claims the benefit of U.S. Provisional Patent Application No. 63 / 313,293, filed on February 24, 2022. The disclosures of all of the above applications are hereby expressly incorporated herein by reference in their entirety. Technical Field

[0003] The present disclosure relates generally to communication networks, and more particularly to time-stamping packets in network devices. Background Art

[0004] Clock synchronization protocols, such as the Precision Time Protocol (PTP), are commonly used in packet-based networks to synchronize clocks maintained at different network devices in a computer network. In such clock synchronization protocols, a first network device maintaining a master clock sends a timing packet to a second network device maintaining a slave clock. The first network device also sends a timestamp indicating when the first network device sent the timing packet to the second network device. The second network device uses the send timestamp corresponding to the timing packet and the estimated network delay to adjust the slave clock so that the slave clock is synchronized with the master clock.

[0005] In a technique generally referred to as "two-step timestamping," a first network device generates a transmit timestamp in conjunction with the transmission of a timing packet, stores the transmit timestamp in a register, but does not include the transmit timestamp in the timing packet itself. Instead, the first network device includes a transmit timestamp corresponding to the transmission time of the timing packet in a subsequent packet. Because the transmit timestamp is transmitted in a subsequent packet, a two-step timestamping system does not require "dynamic" hardware to embed the transmit timestamp in the timing packet itself. However, the latency associated with the timing packet increases because the second communication device cannot determine the transmission time of the timing packet until the subsequent packet is received, which may reduce the end-to-end accuracy of the clock in the network. In addition, two-step timestamping requires that the subsequent packet be matched to the corresponding timing packet at the second network device, which increases the complexity of the implementation and sometimes causes synchronization errors when the match is performed incorrectly. In addition, two-step timestamping requires the transmission of an additional packet, which increases overhead.

[0006] In one technique, generally referred to as "one-step timestamping," the first network device includes a transmit timestamp in the timing packet itself. Some one-step timestamping implementations involve hardware that is capable of embedding a transmit timestamp in a timing packet before the first network device transmits the timing packet, such that the value of the transmit timestamp in the timing packet is very close to the actual time when the timing packet was transmitted. Some one-step timestamping implementations increase hardware requirements, cost, and / or power consumption in the network device because the network device typically needs to perform parsing and timing calculation operations on the packet at line speed in order to dynamically embed the timestamp or other timing information in the timing packet as the timing packet is transmitted from the network device.

[0007] Some communication networks use security techniques to protect the transmitted data from third-party tampering and / or to mask the transmitted data from third-party viewing. For example, the transmitting node can generate authentication data using the content of the packet (e.g., the transmitting node applies a hash function to the content of the packet to generate a hash value), and then includes the authentication data in the packet (or subsequent packets). When the receiving node receives the content of the packet and the authentication data, the receiving node regenerates the authentication data using the content of the received packet, and compares the regenerated authentication data with the received authentication data. If the regenerated authentication data is different from the received authentication data, the receiving node can determine that the content of the received packet is inaccurate.

[0008] Similarly, the sending node can encrypt the content of the packet before sending it. Encryption masks the content so that a third party cannot understand the meaning of the content. When the receiving node receives the packet, the receiving node decrypts the encrypted content of the packet to obtain the original content. If the encrypted content has been modified before reaching the receiving node, the decryption process will result in incomprehensible information, and the receiving node will believe that the content of the received packet is inaccurate.

[0009] If a sending node adds a timestamp to a packet after the sending node applies authentication / encryption to the contents of the packet, the timestamp will not be protected by the authentication / encryption, making the timestamp vulnerable to viewing / modification by a malicious third party. For example, a malicious third party may attempt to use / modify the timestamp in a sent packet to affect the timing of actions in the communication network.

[0010] On the other hand, if the sending node adds a timestamp to the packet before the sending node applies authentication / encryption to the contents of the packet, the timestamp will not accurately reflect the time the packet was sent due to variable delays caused by applying authentication / encryption. Inaccurate timestamps (e.g., due to variations in delay) will reduce the degree of synchronization of clocks in the communication network, which may have an adverse impact on applications that require precise clock synchronization in the communication network. Summary of the invention

[0011] In one embodiment, a network device includes: a packet processor including a timestamp circuit system, the timestamp circuit system is configured to modify a packet to generate a timestamped packet by embedding a future timestamp in the packet to be transmitted by the network device, the future timestamp corresponding to a transmit time at which the timestamped packet is to be transmitted by the network device, the transmit time occurring after the timestamp circuit system embeds the future timestamp in the packet, the packet processor is configured to add timing information indicating the transmit time corresponding to the future timestamp to the timestamped packet; and a transmitter circuit system coupled to the packet processor via a communication link operating according to a media independent communication interface, the transmitter circuit system is configured to receive a packet from the packet processor via the communication link and transmit the packet via one or more network links, the packet including the timestamped packet with the timing information indicating the transmit time corresponding to the future timestamp. The transmitter circuit system includes a time gating circuit system, the time gating circuit system is configured to i) keep the timestamped packet from advancing to one of the network links of the one or more network links until a current time reaches the transmit time, and ii) release the timestamped packet for transmission via the one network link in response to the current time reaching the transmit time.

[0012] In another embodiment, a method for sending packets in a network device includes: receiving a packet to be sent via a port of the network device at a packet processor of the network device; modifying the packet to generate a timestamped packet by embedding a future timestamp in the packet using a timestamp circuit system of the packet processor, the future timestamp corresponding to a sending time when the timestamped packet is to be sent by the port, the sending time occurring after the timestamp circuit system embeds the future timestamp in the packet; adding timing information to the timestamped packet by the packet processor, the timing information indicating the sending time; transmitting the timestamped packet from the packet processor to a transmitter circuit system via a communication link operating according to a media-independent communication interface; determining at the transmitter circuit system when a current time reaches the sending time; at a time-gating circuit system of the transmitter circuit system, keeping the packet from advancing to the port before the current time reaches the sending time; and releasing the packet to the port by the time-gating circuit system in response to determining that the current time has reached the sending time. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a simplified block diagram of an example network device configured to send time-stamped packets in a network according to one embodiment.

[0014] Figure 2 According to one embodiment, Figure 1 A simplified diagram of example timing messages processed by a network device.

[0015] Figure 3A-3C According to various embodiments, Figure 1 A simplified diagram of an example control header of a timing message processed by a network device.

[0016] Figure 4 is a simplified block diagram of another example network device configured to send time-stamped packets in a network according to another embodiment.

[0017] Figure 5 is a diagram of example timestamping circuitry for adding a timestamp to a packet corresponding to a future time at which the packet is to be sent, according to one embodiment.

[0018] Figure 6 is a diagram of example transmitter circuitry configured to selectively release packets to a port for transmission, according to one embodiment.

[0019] Figure 7 is a flow chart of an example method for sending time-stamped packets in a network, according to one embodiment. DETAILED DESCRIPTION

[0020] In the embodiments described below, the network device includes a packet processor coupled to one or more physical layer (PHY) processors via one or more media-independent and / or serial communication interfaces. In some embodiments, one or more PHY processors are coupled to one or more network ports. The timestamp circuit system in the packet processor embeds a future timestamp in the packet, which corresponds to the future transmission time when the packet is to be transmitted by the network device. The packet is transmitted from the packet processor to the PHY processor via the media-independent and / or serial communication interface. The time gating circuit system in the PHY processor receives the packet and compares the current time generated by the clock with the transmission time. The time gating circuit system prevents the packet from being transmitted before the current time reaches the future transmission time, and releases the packet for transmission when the current time reaches the future transmission time. Therefore, according to the embodiments described below, the packet is transmitted at a time that closely corresponds to the timestamp in the packet.

[0021] Figure 1 is a block diagram of an example network device 100 configured to send time-stamped packets in a network according to one embodiment. The network device 100 is configured to operate according to a synchronization protocol for timing synchronization. In one embodiment, the network device 100 is configured to operate according to the Institute of Electrical and Electronics Engineers (IEEE) 802.1AS standard. In another embodiment, the network device 100 is configured to operate according to another synchronization protocol, such as the IEEE 1588 standard (commonly referred to as the "Precision Time Protocol" or "PTP"), the Network Time Protocol (NTP), or another suitable synchronization protocol.

[0022] In various embodiments in which the network device 100 operates in accordance with the IEEE 802.1AS standard, the network device 100 is configured to operate as an endpoint device that implements a master clock or a slave clock on the network, or as a relay device that relays a master clock to one or more endpoint devices on the network. Typically, in various embodiments, the network device 100 is configured to generate timing packets and / or update timing information in received timing packets, and send timing packets to one or more other devices on the network to allow one or more other devices to synchronize with the master clock on the network. As used herein, the term "timing packet" refers to a network data packet that includes a timing message that is generated and sent by a network device in the network and is used to perform time-related processes in the network, such as clock synchronization between network devices in the network.

[0023] The network device 100 includes one or more network ports 104 configured to couple to corresponding one or more network links (not shown) to couple the network device 100 to one or more other devices in the network. In one embodiment, the network device 100 also includes one or more physical layer (PHY) processors 108 coupled to the one or more network interfaces 104. Although the network device 100 is Figure 1 1 as having respective PHY processors 108 coupled to a respective set of multiple network ports 104, but in some embodiments, each PHY processor 108 is coupled to a respective single network port 104. In another embodiment, the network device 100 is a single-port device that includes only a single PHY processor 108 coupled to a single port 104. For the sake of brevity, one or more PHY processors 108 are sometimes referred to herein as "PHY processor 108."

[0024] In various embodiments, the PHY processor 108 includes one of a digital-to-analog converter (DAC), an amplifier, a modulator, etc. (not shown), or any suitable combination of two or more items to convert digital signals corresponding to packets into analog signals suitable for transmission via the port 104. The PHY processor 108 also includes one of an analog-to-digital converter (ADC), an amplifier, a demodulator, etc. (not shown), or any suitable combination of two or more items to convert analog signals corresponding to packets received via the port 104 into digital signals for processing by the network device 100.

[0025] In one embodiment, the network device 100 further includes a packet processor 116 coupled to the host processor 120. In one embodiment, the packet processor 116 is implemented using one or more integrated circuits (e.g., one or more application specific integrated circuits (ASICs)). In one embodiment, the host processor 120 is or is implemented by a processing unit, such as a central processing unit (CPU) of the network device 100. In one embodiment, the host processor 120 is configured to implement computer-readable instructions stored in a memory (not shown) of the network device 100. The packet processor 116 is also coupled to one or more PHY processors 108. In one embodiment, the packet processor 116 is configured to receive packets from the one or more PHY processors 108 to perform packet processing operations on the packets received from the one or more PHY processors 108, such as one or more of parsing a header of a packet, decapsulating the packet, making a forwarding decision for the packet, and the like. In one embodiment, for at least some packets received via the port 104, the packet processor 116 transmits the packet to the host processor 120 for further processing. In one embodiment, for at least some other packets received via port 104, packet processor 116 forwards the packets to port 104 for transmission from network device 100. In some embodiments, packet processor 116 is also configured to receive messages from host processor 120, perform media access control (MAC) operations on the messages received from host processor 120, e.g., encapsulate the messages with one or more protocol headers to generate packets, and transmit the packets to the appropriate one or more PHY processors 108 for transmission from network device 100.

[0026] Each PHY processor 108 corresponds to transmitter circuitry and receiver circuitry, ie, transceiver circuitry. In some embodiments, each of at least some of the PHY processors 108 corresponds to transmitter circuitry, and receiver circuitry is omitted.

[0027] In some embodiments and / or scenarios where the network device 100 operates as an endpoint device, the host processor 120 implements a timing controller 124 that is configured to generate timing messages originating from the network device 100. In other embodiments and / or scenarios where the network device 100 operates as an endpoint device, the packet processor 116 includes the timing controller 124. In one embodiment, the timing controller 124 is configured to generate PTP messages, such as, in some embodiments, PTP synchronization (Sync) messages, PTP delay request (Pdelay-Req) messages, 2P peer delay response (Pdelay-Resp) messages, etc. In other embodiments, the timing controller 124 is configured to generate other suitable types of timing messages.

[0028] The packets are processed by a plurality of processing stages of a packet processor prior to transmission via port 104. According to one embodiment, the plurality of processing stages are arranged in series, such as a processing pipeline, and the packets are processed sequentially. In some embodiments, the plurality of processing stages further include one or more parallel branches in which the respective processing stages selectively operate on the packets according to the branch through which the packets pass.

[0029] The plurality of processing stages include a timestamp circuitry 128 configured to modify the packet to embed a timestamp in the packet. The timestamp embedded in the packet by the timestamp circuitry 128 corresponds to a future time at which the packet is to be transmitted via the port 104 (sometimes referred to herein as the “transmit time” of the packet). For example, the future time (or transmit time) corresponds to a time offset added to the current time at which the packet is received at the timestamp circuitry 128. In one embodiment, the time offset corresponds to a maximum delay between the time offset added to the packet by the timestamp circuitry 128 and the packet transmitted via the port 104.

[0030] According to one embodiment, the timestamp circuitry 128 is also configured to generate timing information separate from the timestamp in the packet, the timing information indicating the transmission time. As will be discussed below, the timing information (separate from the timestamp in the packet) is used by the time-gating circuitry 112 of the PHY processor 108. Specifically, the time-gating circuitry 112 uses the timing information to determine when the packet will be released for transmission via the port 104, as described below.

[0031] In one embodiment, timestamp circuitry 128 outputs the timing information separately from the packet, e.g., via a first output of timestamp circuitry 128 that is separate from a second output of timestamp circuitry 128 that outputs the packet including the timestamp. In another embodiment, the timing information is appended or otherwise added to the packet, e.g., in a tag appended or otherwise added to the packet, and the tag is removed from the packet before the packet is sent via port 104 so that the tag is not sent via port 104.

[0032] In some embodiments, the timestamp circuitry 128 does not timestamp every packet processed by the multiple processing stages of the packet processor 116, e.g., the timestamp circuitry 128 selectively timestamps the packets. For example, according to one embodiment, the packet processor 116 determines which packets are to be timestamped and notifies the timestamp circuitry 128 which packets are to be timestamped. In one embodiment, the timestamp circuitry 128 receives timestamp control information (e.g., from another component of the packet processor 116) separate from the packets but corresponding to the packets, the timestamp control information indicating whether the timestamp circuitry 128 is to timestamp the packets. In another embodiment, the timestamp control information (e.g., from another component of the packet processor 116) is attached to the packets, e.g., in a tag added to the packets. In one embodiment where the packets received by the timestamp circuitry 128 include a tag indicating that the packets are to be timestamped, the timestamp circuitry 128 modifies the tag to include a transmit time in the tag, and the transmit time is separate from the timestamp in the packet. In another embodiment where the packet received by the timestamping circuitry 128 includes a tag indicating that the packet is to be timestamped, the timestamping circuitry 128 adds an additional tag to the packet, the additional tag including the send time. In another embodiment where the packet received by the timestamping circuitry 128 includes a tag indicating that the packet is to be timestamped, the timestamping circuitry 128 removes the tag and adds a new tag to the packet, the new tag including the send time.

[0033] In one embodiment, when the timestamp control information indicates that the packet is to be timestamped, the timestamp circuitry 128 includes a timestamp in the packet as described above; on the other hand, when the timestamp control information indicates that the packet does not need to be timestamped, the timestamp circuitry 128 does not include a timestamp in the packet.

[0034] In some embodiments, the timestamp control information indicates whether time-gating circuitry 112 is to hold the packet until a send time. For example, some types of time-stamped packets have less stringent timestamp accuracy requirements and therefore do not need to be held by time-gating circuitry 112. As another example, packets that do not include a timestamp do not need to be held by time-gating circuitry 112.

[0035] In some embodiments, timestamp circuitry 128 determines whether a timestamp should be added to the packet and / or whether time-gating circuitry 112 should hold the packet until a send time based on the packet itself. For example, timestamp circuitry 128 determines whether a timestamp should be added to the packet and / or whether time-gating circuitry 112 should hold the packet until a send time based on the packet type of the packet.

[0036] The plurality of processing stages of packet processor 116 also include encryption and / or authentication circuitry 132 that is configured to i) generate authentication information for the contents of the packet, including a timestamp embedded in the packet by timestamp circuitry 128, and / or ii) encrypt the contents of the packet, including a timestamp embedded in the packet by timestamp circuitry 128. In one embodiment where the plurality of processing stages include encryption circuitry and timing information is appended to the packet, the encryption circuitry is configured to encrypt the contents of the packet without using the timing information appended to the packet. In one embodiment where the plurality of processing stages include authentication circuitry and timing information is appended to the packet, the authentication circuitry is configured to generate authentication information for the packet without using the timing information appended to the packet.

[0037] The network device 100 also includes one or more media access control (MAC) processors 136 (referred to herein as "MAC processors 136" for brevity). In one embodiment, the MAC processor 136 is configured to receive packets from the one or more PHY processors 108, perform MAC operations (e.g., one or more of detecting and removing preambles, parsing of headers, error checking, flow control operations, etc.) on the packets received from the one or more PHY processors 108, and transmit the packets to other components of the packet processor 116 for further processing. In one embodiment, the MAC processor 118 is also configured to receive packets from other components of the packet processor, perform MAC operations (e.g., one or more of adding preambles to packets, formatting packet data according to a media independent interface format, flow control operations, etc.) on the packets, and transmit the packets to the appropriate one or more PHY processors 108 for transmission from the network device 100.

[0038] Each MAC processor 136 is coupled to a corresponding PHY processor 108 via a communication link internal to the network device 100. In some embodiments, each communication link comprises a serial communication link. In some such embodiments, the network device 100 includes a corresponding serializer deserializer (SERDES) 140 for each MAC processor 136, the SERDES being configured to receive packet data in a parallel format from the MAC processor 136 and convert the data in the parallel format into serial data, which is then transmitted to the PHY processor 108 via the serial communication link. Similarly, the SERDES 140 is configured to receive serial packet data from the PHY processor 108 via the serial communication link and convert the serial packet data into packet data in a parallel format, which is then transmitted to the MAC processor 136.

[0039] In one embodiment, the communication link coupling the PHY processor 108 to the corresponding MAC processor 136 includes a media independent interface, such as a universal serial 10 Gigabit Ethernet media independent interface (USXGMII), a universal serial Gigabit Ethernet media independent interface (USGMII), or another suitable media independent interface. In some embodiments where the PHY processor 108 is coupled to the plurality of ports 104, the communication link coupling the PHY processor 108 to the MAC processor 136 carries interleaved data for the plurality of ports 104.

[0040] The packet processor 116 and the MAC processor 136 are implemented on a first integrated circuit (IC) chip 140, and the PHY processor 108 is implemented on a corresponding second IC chip 156. In one embodiment, the host processor 120 is implemented on a third IC chip separate from the first IC chip 152 and the second IC chip 156. For example, the host processor 120 is communicatively coupled to the packet processor 116 via a suitable communication interface, such as a peripheral component interconnect express (PCIe) interface, a serial management interface (SMI), or another suitable interface. In another embodiment, the host processor 120 is an embedded processor included on the first IC chip 152.

[0041] In other embodiments, at least one MAC processor 136 and at least one PHY processor 108 are implemented on a single IC chip. In another embodiment, the packet processor 116, at least one MAC processor 120, and at least one of the PHY processors 108 are implemented on a single IC chip.

[0042] The packet processor 116 includes or is coupled to a clock 176 that generates a clock signal for the packet processor 116. In addition, each PHY processor 108 includes a corresponding clock 180 that generates a corresponding clock signal for the PHY processor 108. The clock 176 and the clock 180 are driven by a common oscillator 182 so that the clock 176 and the clock 180 are synchronized in frequency. In one embodiment, the phases of the clock 176 and the clock 180 are also synchronized. For example, according to one embodiment, the clock 176 includes a pulse generator 183 that generates a pulse synchronized with a corresponding clock edge (e.g., a rising edge or a falling edge) of the clock 176, and the clock 180 uses the pulse to align the phase of the clock 180 with the local clock 176. The pulse generator 183 generates pulses at a suitable frequency (such as 1 Hz or another suitable frequency). In other embodiments, the pulse generator 183 is included in one of the clocks 180, and the clock 176 and the other clocks 180 use the pulse to align the phase with one clock 180.

[0043] In one embodiment, the packet processor 116 and the PHY processor 108 also synchronize the time maintained by the clock 176 and the clock 180. In another embodiment, a single clock is provided to the packet processor 116 and the PHY processor 108.

[0044] Clock 176 is used by timestamp circuitry 128 to generate timestamps and timing information associated with the timestamps, as described above. In one embodiment, clock 180 is used by corresponding time gating circuitry 112 to determine when packets should be released from PHY processor 108 for transmission.

[0045] Brief reference Figure 2 In one embodiment, the example timing message 200 corresponds to a packet to which the timestamp circuitry 128 adds a timestamp. The timing message 200 includes a header 202 and a data portion 204. The data portion 204 includes a timestamp field 208. In some embodiments, the data portion 204 includes one or more fields in addition to the timestamp field 208.

[0046] Reference now Figure 1 and Figure 2 In one embodiment, timestamp circuitry 128 is configured to set timestamp field 208 to a future time at which the packet will be sent via port 104 , as determined by timestamp circuitry 128 based on a current value of host clock 128 .

[0047] Reference now Figure 1 In one embodiment, timestamp circuitry 128 includes control header generation circuitry (not shown) configured to generate a control header for each of at least some of the timing messages and / or packets, the control header including information indicating whether time-gating circuitry 112 is to hold the packet until a send time. For example, control header generation circuitry is configured to generate the control header to include i) a first field having a value indicating whether time-gating circuitry 112 is to hold the packet until a send time, and ii) a second field having a value indicating the send time (at least when the first field indicates that time-gating circuitry 112 is to hold the packet until the send time). In another embodiment, control header generation circuitry is configured to generate the control header to include a field having a value indicating a send time until which time-gating circuitry 112 is to hold the packet, wherein setting the field to a predetermined value indicates that time-gating circuitry 112 should not hold the packet until the send time.

[0048] In other embodiments, the control header generation circuitry is included in the MAC processor 136 .

[0049] Figure 3A is a simplified diagram of an example control header 300 generated by control header generation circuitry according to one embodiment. In one embodiment, control header 300 generally conforms to a known control header format specified for a media independent interface, such as USXGMII or USGMII. However, in one embodiment, control header 300 is modified relative to the known control header format specified for a media independent interface. In the illustrated embodiment, control header 300 includes a packet type field 302, a subport identifier (Id) field 304, an extension field type indicator field 306, an extension field 308, and a cyclic redundancy check (CRC) field 310. In various embodiments, control header 300 omits the packet type field 302, a subport identifier (Id) field 304, an extension field type indicator field 306, an extension field 308, and a cyclic redundancy check (CRC) field 310. Figure 3A One or more of the fields 302-310 shown, and / or including Figure 3A One or more additional fields not shown.

[0050] In one embodiment, the control header generation circuitry is configured to generate a control header 300 for a packet to be sent by the network device 100 and to add the control header 300 to a timing message.

[0051] Figure 3B is a simplified diagram of another example control header 340 included in a packet according to another embodiment. The control header 340 is similar to Figure 3A 3. In one embodiment, control header 340 is an example control header 300 of FIG. 1, and for the sake of brevity, like numbered elements are not described in detail. In one embodiment, control header 340 is control header 300 after control header 300 has been modified.

[0052] In one embodiment, the control header generation circuit system is configured to generate a control header 340 for the packet and insert the control header 340 into a predetermined position within the packet. For example, the control header generation circuit system is configured to replace at least a portion of the preamble at the beginning of the packet with the control header 340.

[0053] The control header generation circuitry is configured to include in the extension field 308 of the control header 340 an indication of a transmit time at which the packet is to be transmitted via the port 104 of the network device 100. The control header generation circuitry is further configured to set the value of the extension field type field 306 to indicate that the extension field 308 includes an indication of a transmit time at which the packet is to be transmitted. In various embodiments, the indication of the transmit time occupies an appropriate number of bits of the extension field 308.

[0054] In another embodiment, the packet processor 116 is configured to modify the control header 300 that has been included in the packet so that the control header has the same Figure 3BThe control header 340 may be formatted similarly to the control header 340 of the packet processor 116. For example, the packet processor 116 is configured to include in the extension field 308 of the control header 340 an indication of a transmit time at which the packet is to be transmitted via the port 104 of the network device 100. The control header generation circuitry (or another component of the packet processor 116) is further configured to set the value of the extension field type field 306 to indicate that the extension field 308 includes an indication of a transmit time at which the packet is to be transmitted. In various embodiments, the indication of the transmit time occupies an appropriate number of bits of the extension field 308.

[0055] Figure 3C is a simplified diagram of another example control header 370 according to another embodiment. The control header 370 is similar to Figure 3A An example control header 300 and Figure 3B , and for the sake of brevity, elements with the same number are not described in detail. In one embodiment, the control header 370 is generated to have Figure 3C In another embodiment, control header 370 is control header 300 after control header 300 has been modified. In another embodiment, control header 370 is control header 340 after control header 340 has been modified.

[0056] refer to Figure 1 In one embodiment, the packet processor 116 is configured to insert a control header 370 into a timing packet corresponding to a timing message received from the host processor 120 before transmitting the timing packet to a PHY processor (e.g., PHY processor 108-2) for transmission of the timing packet via a network port 104 (e.g., network port 104-2). In one embodiment, the control header 370 is inserted into the timing packet at a predetermined position within the timing packet. For example, in one embodiment, the control header 370 replaces the preamble at the beginning of the timing packet. In another embodiment, the packet processor 116 is configured to modify a control header (e.g., control header 300 or control header 340) already present in the packet to generate the control header 370. For example, in one embodiment, the packet processor 116 is configured to modify the control header 300 or control header 340 of the packet before transmitting the packet to the PHY processor 108 for transmission of the timing packet via port 104.

[0057] In one embodiment, the extension field 308 of the control field 370 is generated or modified to include a retain indicator field 374. In one embodiment, the control generation circuitry is configured to generate a control header 370 for the packet having the retain indicator field 374 and to add the control header 370 to the packet. In another embodiment, the packet processor 116 is configured to modify a control header already present in the packet such that the retain indicator field 374 is set to a desired value.

[0058] The hold indicator field 374 includes information indicating whether the PHY processor 108 is to hold the packet until a transmit time also indicated in the control header 370 (e.g., in the transmit time field 344). For example, the control header generation circuitry is configured to generate the hold indicator field 374 to include a value indicating whether the packet processor 108 is to hold the packet until a transmit time also indicated in the control header 370 (e.g., in the transmit time field 344). In one embodiment, the control header generation circuitry (or another component of the packet processor 116) sets the hold indicator field 374 to a first value to indicate that the packet processor 108 is to hold the packet until the transmit time, and sets the hold indicator field 374 to a second value to indicate that the packet processor 108 is not to hold the packet until the transmit time, i.e., the packet processor 108 should send the packet as soon as the packet processor 108 is ready to send the packet.

[0059] In one embodiment, the retention indicator field 374 is included in the timestamp type field 374, which also includes information indicating whether the packet is to be processed using one-step timestamps or two-step timestamps. For example, the timestamp circuitry 128 ( Figure 1 ) is configured to generate a timestamp type field to include a value indicating whether the timing packet is to be processed using one-step timestamps or two-step timestamps.

[0060] According to one embodiment, when the PHY processor 108 receives a packet with the control header 370, the PHY processor 108 is configured to determine whether the PHY processor 108 is to hold the packet until a transmit time indicated in the control header 370 (e.g., in the transmit time field 344) by analyzing at least the hold indicator field 304. When the PHY processor 108 determines that the PHY processor 108 is to hold the packet until the transmit time, the PHY processor 108 is configured to determine the transmit time based on the transmit time information in the control header 370 (e.g., in the transmit time field 344).

[0061] In various other embodiments, one or more of timestamp circuitry 128 , encryption / authentication circuitry 132 , and / or control header generation circuitry are included in MAC processor 136 .

[0062] In one embodiment, for example, the MAC processor 136 is configured to, in response to issuing a packet to be held by the PHY processor 108 until a transmit time to the PHY processor 108 via the SERDES 140 and the communication link, suspend issuing the next packet to the PHY processor 108 for a delay period to prevent a buffer overflow at the PHY processor 108. In one embodiment, the delay period is determined based on a time offset between a timestamp in the packet and a time when the timestamp is added to the packet. In one embodiment, the delay period is determined based on a maximum delay corresponding to a time when the timestamp circuitry 128 adds the timestamp to the packet and a time when the packet is transmitted via the port 104. In one embodiment, the suspend circuitry 190 of the MAC processor 136 is configured to, in response to the MAC processor 136 issuing a packet to be held by the PHY processor 108 until a transmit time to the PHY processor 108 via the SERDES 140 and the communication link, cause the MAC processor 136 to suspend issuing the next packet to the PHY processor 108 for a delay period.

[0063] Figure 4 is a simplified diagram of another example network device 400 sending a timestamped packet in a communication network according to another embodiment. In some embodiments, the network device 400 is an endpoint device that generates and sends packets in a communication network. Illustrative examples of endpoint devices include personal computers, tablet computers, mobile communication devices, sensor devices, industrial equipment in factories, etc. In other embodiments. The network device 400 is a forwarding device that receives packets and forwards the packets via multiple network interfaces (such as ports). Illustrative examples of forwarding devices include switches, routers, bridges, repeaters, access points, etc. In some embodiments, the network device 400 and Figure 1 In other embodiments, the network device 400 is the same as or similar to the network device 100. Figure 1 The network device 100 is a different suitable network device.

[0064] The network device 400 includes a packet processor 424 coupled to the PHY processor 408 via a suitable communication link 412, such as a serial communication link. In some embodiments where the communication link 412 is a serial communication link, the network device 400 includes a SERDES 416 for use by the packet processor 404 to communicate with the PHY processor 408 via the serial communication link 412.

[0065] Each PHY processor 408 corresponds to transmitter circuitry and receiver circuitry, ie, transceiver circuitry. In some embodiments, each of at least some of the PHY processors 408 corresponds to transmitter circuitry, and receiver circuitry is omitted.

[0066] The packet processor 404 includes a memory 424 for storing packets to be sent by the network device 400. For example, the memory 424 can act as a transmit queue that stores packets until a communication link is available to transmit the packets. In various embodiments, the memory 424 includes a random access memory (RAM) or another suitable type of memory device.

[0067] The packet processor 404 also includes a packet generator and / or other packet processing component 428 (sometimes referred to herein as "packet generator 428" for brevity). For example, according to one embodiment, when the network device 400 is an endpoint device, the network device 400 includes a packet generator 428 that generates packets for transmission and stores the packets in the memory 404. As another example, according to one embodiment, when the network device 400 is a forwarding device, the network device 400 includes a forwarding engine (an example of a packet processing component 428) that analyzes at least a header of a packet received by the network device 400 to determine a network interface (e.g., a port) of the network device 400 via which the packet is to be sent. In some embodiments, the packet processing component 428 modifies the packets stored in the memory 424, such as modifying the header of the packet in the memory 424.

[0068] The network device 400 also includes a MAC processor 432 coupled to the communication link 412 via the SERDES 416. The MAC processor 432 is connected to the Figure 1 The MAC processor 136 of the same or similar. In one embodiment, the communication link 412 operates according to a media independent interface (such as USXGMII, USGMII, etc.).

[0069] The packets read from the memory 424 are provided to the PHY processor 408 for transmission via the port 436. Before transmission via the port 436, the packets read from the memory 424 are processed by the plurality of processing stages 440. According to one embodiment, the plurality of processing stages 440 are arranged in series, for example as a processing pipeline, and the packets are processed sequentially. In some embodiments, the plurality of processing stages 440 also include one or more parallel branches (not shown) in which the corresponding processing stages selectively operate on the packets according to the branches through which the packets pass.

[0070] In one embodiment, direct memory access (DMA) circuitry (not shown) reads packets from memory 424 and provides the packets to plurality of processing stages 440 .

[0071] The plurality of processing stages 440 includes a timestamp circuitry 444 configured to modify the packet to embed a timestamp in the packet. The timestamp embedded in the packet by the timestamp circuitry 444 corresponds to a future time at which the packet is to be transmitted via the port 436 (sometimes referred to herein as the “transmit time” of the packet). For example, the future time (or transmit time) corresponds to a time offset added to a current time at which the packet is received at the timestamp circuitry 444, where the time offset corresponds to a maximum delay for a packet processed by the timestamp circuitry 444 and transmitted via the port 436.

[0072] According to one embodiment, the timestamp circuitry 444 is also configured to generate timing information separate from the timestamp in the packet, which timing information indicates the transmission time. As will be discussed below, the timing information (separate from the timestamp in the packet) is used by the time gating circuitry 448 in the PHY processor 408. Specifically, the time gating circuitry 448 uses the timing information to determine when the packet will be released to the port 436, as described below.

[0073] In one embodiment, the timestamp circuit system 444 outputs timing information in a tag attached to the packet (or otherwise included in the packet), for example, in a tag attached to the packet (or otherwise included in the packet), and before the packet is sent via port 436, the tag is removed from the packet so that the tag is not sent via port 436.

[0074] In some embodiments, the timestamp circuitry 444 does not timestamp every packet processed by the plurality of processing stages 440, e.g., the timestamp circuitry 444 selectively timestamps the packets. For example, according to one embodiment, the packet generator 428 determines which packets are to be timestamped and notifies the timestamp circuitry 444 which packets are to be timestamped. In one embodiment, the timestamp circuitry 444 receives timestamp control information (e.g., from the packet generator 428) separate from the packets but corresponding to the packets, the timestamp control information indicating whether the timestamp circuitry 444 is to timestamp the packets. In another embodiment, the timestamp control information (e.g., from the packet generator 428) is added to the packets, e.g., in a tag added to the packets. In one embodiment where the packets received by the timestamp circuitry 444 include a tag indicating that the packets are to be timestamped, the timestamp circuitry 444 modifies the tag to include a transmit time in the tag, and the transmit time is separate from the timestamp in the packet. In another embodiment where the packet received by the timestamp circuitry 444 includes a tag indicating that the packet is to be timestamped, the timestamp circuitry 444 adds an additional tag to the packet, the additional tag including the time of transmission. In another embodiment where the packet received by the timestamp circuitry 444 includes a tag indicating that the packet is to be timestamped, the timestamp circuitry 444 removes the tag and adds a new tag to the packet, the new tag including the time of transmission.

[0075] In one embodiment, when the timestamp control information indicates that the packet is to be timestamped, the timestamp circuit system 444 includes a timestamp in the packet as described above; on the other hand, when the timestamp control information indicates that the packet does not need to be timestamped, the timestamp circuit system 444 does not include a timestamp in the packet.

[0076] In one embodiment, when the timestamp control information indicates that the packet does not need to be timestamped, the timestamp circuitry 444 generates timing information that will be used by the time-gating circuitry 448 (as described above) so that the time-gating circuitry 448 immediately releases the packet to the port 436. For example, according to one embodiment, when the timestamp control information indicates that the packet does not need to be timestamped, the timestamp circuitry 444 generates the timing information to indicate a current time or a past time. In another embodiment, when the timestamp control information indicates that the packet does not need to be timestamped, the timestamp circuitry 444 sets the timing information to a predetermined value that indicates to the time-gating circuitry 448 that the time-gating circuitry 448 should immediately release the packet to the port 436.

[0077] In another embodiment, the timestamp control information is also provided to the time-gating circuitry 448 , and when the timestamp control information indicates that the packet does not need to be timestamped, the time-gating circuitry 448 immediately releases the packet to the port 436 .

[0078] According to one embodiment, time-gating circuitry 448 is configured to i) receive a packet to be transmitted via port 436, ii) receive timing information (indicative of a transmit time of the packet) from time-stamping circuitry 444, iii) hold the packet from advancing to port 436 until a current time reaches the transmit time, and iv) in response to the current time reaching the transmit time, release the packet to port 436. Because time-gating circuitry 448 releases the packet to port 436 when the current time reaches the transmit time (which corresponds to the timestamp in the packet), the timestamp in the packet more accurately reflects the actual transmit time of the packet.

[0079] In some embodiments where timestamping circuitry 444 adds timing information to the packet, for example, in a tag added to the packet, time gating circuitry 448 is configured to remove the added timing information from the packet before releasing the packet to port 436 .

[0080] In one embodiment, when the timing information is set to a predetermined value that indicates to time gating circuitry 448 that time gating circuitry 448 should release the packet to port 436 immediately, time gating circuitry 448 releases the packet to port 436 immediately.

[0081] In another embodiment, when time-gating circuitry 448 receives the timestamp control information (as described above), and when the timestamp control information indicates that the packet does not need to be timestamped, time-gating circuitry 448 immediately releases the packet to port 436 .

[0082] The plurality of processing stages 440 include one or more timestamp post-processing stages 460 between the timestamp circuitry 444 and the SERDES 416. In one embodiment, the one or more timestamp post-processing stages 460 include authentication circuitry configured to generate authentication information for the contents of the packet, including the timestamp embedded in the packet by the timestamp circuitry 444. In one embodiment, the authentication circuitry is configured to embed the authentication information in the packet. In another embodiment, the authentication circuitry is configured to embed the authentication information in a subsequent packet.

[0083] In another embodiment, one or more timestamp post-processing stages 460 additionally or alternatively include encryption circuitry configured to encrypt the contents of the packet, including the timestamp embedded in the packet by timestamp circuitry 444 .

[0084] In other embodiments, the one or more timestamp post-processing stages 460 additionally or alternatively include other suitable circuitry that performs other suitable processing of the packets.

[0085] In some embodiments, the plurality of processing stages 440 includes one or more timestamp pre-processing stages 464 prior to the timestamp circuitry 444. In one embodiment, one of the one or more timestamp pre-processing stages 464 includes a DMA circuit that reads packets from the memory 424 and provides the packets to the plurality of processing stages 440.

[0086] In one embodiment, the timestamp circuitry 444 includes the transmission time in a control header, such as a reference Figure 3A-3C In another implementation, the MAC processor 432 includes the transmission time in the control header, such as reference Figure 3A-3C described.

[0087] In some embodiments where the MAC processor 432 includes the transmit time in the control header, the timing information generated by the timestamp circuitry 444 is provided to the MAC processor 432 via one or more processing stages 460. For example, the processing stage(s) 460 include corresponding circuitry for forwarding the timing information to the next processing stage in the plurality of processing stages 440 so that the timing information is synchronized with future time-stamped packets. In some embodiments, the processing stage(s) 460 include corresponding registers, buffers, etc. for temporarily storing the timing information.

[0088] As another example, timing information is added to future time-stamped packets by time-stamping circuitry 444 (as described above), and the timing information is passed through one or more processing stages 460 that are added to future time-stamped packets. In one embodiment where one or more processing stages 460 include authentication circuitry and the timing information is added to the packet, the authentication circuitry knows that the timing information will not be sent with the packet, and the authentication circuitry is configured to generate authentication information for the packet without using the timing information added to the packet. In one embodiment where one or more processing stages 460 include encryption circuitry and the timing information is added to the packet, the encryption circuitry knows that the timing information will not be sent with the packet, and the encryption circuitry is configured to encrypt the contents of the packet without using the timing information added to the packet.

[0089] In other embodiments, the timing information generated by the timestamp circuitry 444 bypasses the one or more processing stages 460 via a path separate from the one or more processing stages 460. In some such embodiments, the MAC processor 432 includes a memory (e.g., a register, a buffer, etc.) for storing the timing information until future timestamped packets are received by the MAC processor 432; and the MAC processor 432 includes circuitry for logically linking the timing information stored in the memory with the future timestamped packets when the MAC processor 432 receives the future timestamped packets.

[0090] although Figure 4 4. Although one port 436 and one communication link 412 are shown in FIG. 4, in other embodiments, the network device 400 includes multiple ports 104 coupled to one or more MAC processors 432 via one or more communication links 412. In some embodiments where the network device 400 includes multiple ports 436 coupled to one or more MAC processors 432 via one or more communication links 412, the network device 400 includes one or more groups of processing stages 440 (e.g., each group of processing stages includes a timestamp circuit 444) for a corresponding MAC processor in the one or more MAC processors 432.

[0091] In some embodiments, the transmit time output by timestamp circuitry 444 is adjusted relative to the timestamp embedded in the packet. For example, in order to account for a known delay (e.g., a fixed known delay) after time-gating circuitry 448 (e.g., including a fixed known delay through port 436), timestamp circuitry 444 adjusts the transmit time output by timestamp circuitry 444 to be earlier than the timestamp embedded in the packet to account for the known delay, such as through port 436.

[0092] In other embodiments, timestamp circuitry 444 does not adjust the transmit time output by timestamp circuitry 444 relative to a timestamp embedded in the packet.

[0093] In one embodiment, MAC processor 432 or one of processing stages 440 includes a control header (such as described above with reference to FIG. Figure 3A-3C and the time gating circuit system 448 is configured to retrieve the transmission time from the control header in the preamble of the packet.

[0094] In one embodiment, for example, the MAC processor 432 is configured to, in response to issuing a packet to be held by the PHY processor 408 until a transmit time to the PHY processor 408 via the SERDES 416 and the communication link 412, suspend issuing the next packet to the PHY processor 408 for a delay period to prevent a buffer overflow at the PHY processor 408. In one embodiment, the delay period is determined based on a time offset between a timestamp in the packet and a time when the timestamp is added to the packet. In one embodiment, the delay period is determined based on a maximum delay corresponding to a time when the timestamp circuitry 444 adds the timestamp to the packet and a time when the packet is sent via the port 436. In one embodiment, the suspend circuitry 480 of the MAC processor 432 is configured to, in response to the MAC processor 432 issuing a packet to be held by the PHY processor 408 until a transmit time to the PHY processor 408 via the SERDES 416 and the communication link 412, cause the MAC processor 432 to suspend issuing the next packet to the PHY processor 408 for a delay period.

[0095] Figure 5 is a diagram of an example timestamp circuitry 500 for adding a timestamp to a packet corresponding to a future time at which the packet is to be sent, according to one embodiment. According to one embodiment, the timestamp circuitry 500 is included in Figure 1 In the time stamp circuit system 128. According to another embodiment, the time stamp circuit system 500 is included in Figure 4 In other embodiments, the time stamp circuit system 500 is included in addition to Figure 1 The network device 100 and Figure 4 in another suitable network device other than network device 400.

[0096] The timestamp circuit system 500 is coupled to or includes a clock circuit 504 and receives a current time value generated by the clock circuit 504. For example, in one embodiment, the clock circuit system 504 corresponds to Figure 1 The clock is 176.

[0097] The timestamp circuit system 500 also includes an adder circuit 508 configured to add the time offset to the current time from the clock circuit 204 to generate a future time value corresponding to the time when the packet is to be sent (e.g., the send time). The time offset corresponds to the maximum delay that the timestamp circuit system 500 will generate after the timestamp is embedded in the packet via a port of the network device (e.g., Figure 1 Port 104, Figure 4 to send packets via one of the ports 436, etc.

[0098] The timestamp circuitry 500 also includes a packet modification circuit 512 configured to modify the packet to include (or embed) a timestamp corresponding to the transmit time generated by the adder 508 in the packet.

[0099] The timestamp circuit system 500 outputs i) a packet including a timestamp (sometimes referred to herein as a "timestamped packet") and ii) timing information. In one embodiment, the timestamp circuit system 500 outputs the timing information separately from the timestamped packet, for example, via a first output of the timestamp circuit system 500 that is separate from a second output of the timestamp circuit system 500 that outputs the timestamped packet. In another embodiment, the timestamp circuit system 500 includes a circuit system (not shown) configured to add the timing information to the packet, for example, in a tag added to the packet, wherein the tag is removed from the packet before the packet is sent via a port of a network device such that the tag is not sent via the port. In one embodiment, the timestamp circuit system 500 includes a circuit system (not shown) configured to add the timing information to a control header corresponding to the packet, for example, with reference to Figure 3A -C or another suitable control header. In one embodiment, timestamp circuitry 500 includes circuitry (not shown) configured to add a control header to a packet. In another embodiment, timestamp circuitry 500 outputs a control header separately from the packet.

[0100] In some embodiments, the timestamp circuit system 500 does not timestamp every packet received by the timestamp circuit system 500, for example, the timestamp circuit system 500 selectively timestamps the packets. For example, according to one embodiment, the packet processor 116, the packet generator / packet processing component 428 determines which packets are to be timestamped, and notifies the timestamp circuit system 500 which packets are to be timestamped. Therefore, in some embodiments, the timestamp circuit system 500 includes a control circuit system (not shown) that receives timestamp control information corresponding to the packet and indicates whether the packet is to be timestamped, and the control circuit system controls the timestamp circuit system 500 to selectively add a timestamp to the packet based on the timestamp control information. For example, when the timestamp control information indicates that the packet is to be timestamped, the control circuit system controls the timestamp circuit system 500 to include a timestamp in the packet, as described above; on the other hand, when the timestamp control information indicates that the packet does not need to be timestamped, the control circuit system controls the timestamp circuit system 500 not to include a timestamp in the packet.

[0101] In one embodiment, the timestamp circuitry 500 receives timestamp control information separate from but corresponding to the packet. In another embodiment, the timestamp control information is added to the packet, for example, in a tag added to the packet, in a control header added to the packet, etc. In one embodiment where the packet received by the timestamp circuitry 200 includes a tag / control header indicating that the packet is to be timestamped, the timestamp circuitry 500 modifies the tag / control header to include a send time in the tag / control header.

[0102] In one embodiment, when the timestamp control information indicates that the packet does not need to be timestamped, the control circuitry (not shown) of the timestamp circuitry 500 sets the timing information to a value such that the time-gating circuitry 112 / 448 immediately releases the packet to the port 104 / 436. For example, according to one embodiment, when the timestamp control information indicates that the packet does not need to be timestamped, the control circuitry (not shown) of the timestamp circuitry 500 sets the timing information to indicate a current time or a past time. In another embodiment, when the timestamp control information indicates that the packet does not need to be timestamped, the control circuitry (not shown) of the timestamp circuitry 500 sets the timing information to a predetermined value that indicates to the time-gating circuitry 112 / 448 that the time-gating circuitry 112 / 448 should immediately release the packet to the port 104 / 436.

[0103] In some embodiments, the transmit time output by timestamp circuitry 500 is adjusted relative to the timestamp embedded in the packet. For example, to account for a known delay (e.g., a fixed known delay) after time-gating circuitry 112 / 448 (e.g., including a fixed known delay through port 104 / 436), timestamp circuitry 500 adjusts the transmit time output by timestamp circuitry 500 to be earlier than the timestamp embedded in the packet to account for the known delay, e.g., through port 104 / 436.

[0104] In other embodiments, timestamp circuitry 500 does not adjust the transmit time output by timestamp circuitry 500 relative to a timestamp embedded in the packet.

[0105] Figure 6 is a diagram of an example PHY processor circuit system 600 configured to selectively release packets to a port for transmission according to one embodiment. According to one embodiment, the PHY processor circuit system 600 is included in Figure 1 According to another embodiment, the PHY processor circuit system 600 is included in the PHY processor 108. Figure 4 In other embodiments, the PHY processor circuit system 600 is included in addition to Figure 1 The PHY processor 108 and Figure 4 In another PHY processor other than PHY processor 408.

[0106] PHY processor circuitry 600 includes control header extractor circuitry 604 configured to extract a packet from a communication link (e.g., Figure 1 The communication link between the PHY processor 108 and the MAC processor 136, Figure 4 communication link 412, etc.) from a MAC processor (e.g., Figure 1 MAC processor 136, Figure 4 The control header extractor circuit system 604 is configured to extract the transmission time information from the control header.

[0107] PHY processor circuitry 600 also includes time gating circuitry 608 and clock circuitry 612. In one embodiment, clock circuitry 612 corresponds to Figure 1 In another embodiment, the PHY processor circuitry 600 omits the clock circuitry 612 and receives the clock signal from a clock circuitry external to the PHY processor circuitry 600.

[0108] Time gating circuitry 608 receives a current time value generated by clock circuitry 612 (or by clock circuitry external to PHY processor circuitry 600). Time gating circuitry 608 also receives packets from control header extraction circuitry 604 and sends time information.

[0109] The time gating circuit system 604 includes a comparator circuit 616 that receives the transmit timing information (transmit time) and the current time and compares the current time with the transmit time. The comparator circuit 616 is configured to generate a control signal indicating whether the current time has reached the transmit time and / or whether the time gating circuit system 600 is to release the packet to the port 104 / 436.

[0110] In one embodiment where the timestamping circuitry 128 / 200 is configured to set the timing information (send time) to a predetermined value to indicate when a packet is not timestamped, the comparator circuitry 304 is configured to generate a control signal to instruct the time gating circuitry 300 to release the packet to the network interface 112 when the timing information (send time) is set to the predetermined value. In one embodiment where the timestamping circuitry 124 / 444 sets the timing information (send time) of an untimestamped packet to a current / past time, the comparator circuitry 616 will determine that the current time has reached the send time and will therefore generate a control signal to instruct the time gating circuitry 608 to release the packet to the port 104 / 436.

[0111] The time-gating circuit system 608 also includes a gate circuit 620. The gate circuit 620 is configured to selectively release the packet to the port 104 / 436 based on whether the current time has reached the send time of the packet. For example, in one embodiment, the gate circuit 620 is configured to selectively release the packet to the port 104 / 436 based on the control signal generated by the comparator circuit 616. In one embodiment, the gate circuit 620 is configured to i) hold the packet from advancing to the port 104 / 436 until the current time reaches the send time, and ii) release the packet to the port 104 / 436 in response to the current time reaching the send time.

[0112] In one embodiment, gate circuit 620 includes a memory device (not shown) for storing at least a portion of a packet received from a MAC processor. For example, the memory device (not shown) stores a portion of a packet while the packet is held from being advanced to port 104 / 436. As another example, the memory device (not shown) stores a portion, and gate circuit 620 reads the portion of the packet from the memory device in response to determining that the packet is to be released to port 104 / 436. In one embodiment, the memory device of gate circuit 62 includes a buffer, a register, etc.

[0113] In another embodiment, the time-gating circuit system 608 also includes a pause signal generator circuit (not shown) configured to selectively generate a pause signal for the MAC processor. In one embodiment, the pause signal prompts the MAC processor to stop providing packet data to the PHY processor 600. The pause signal generator circuit is configured to selectively generate a pause signal based on whether the current time has reached the transmission time of the packet. For example, in one embodiment, the pause signal generator circuit is configured to selectively generate a pause signal based on a control signal generated by the comparator circuit 616.

[0114] In one embodiment, gate circuit 620 is configured to generate an additional control signal indicating that gate circuit 620 is not ready to receive additional packets when packets are released to port 104 / 436 because, for example, gate circuit 620 has not yet completed reading data stored in a memory device of gate circuit 620. A pause signal generator circuit (not shown) is configured to selectively generate a pause signal further based on the additional control signal generated by gate circuit 620.

[0115] According to one embodiment, in operation, time-gating circuitry 608: i) receives a packet to be transmitted via port 104 / 436, ii) receives timing information (which indicates a transmit time of the packet) from control header extraction circuitry 604, iii) holds the packet from being advanced to port 104 / 436 until a current time reaches the transmit time, and iv) releases the packet to port 104 / 436 in response to the current time reaching the transmit time. Because time-gating circuitry 608 releases the packet to port 104 / 436 when the current time reaches the transmit time (which corresponds to a timestamp in the packet), the timestamp in the packet more accurately reflects the actual transmit time of the packet.

[0116] In another embodiment, the time-gating circuit system 608 also receives timestamp control information (as described above), and when the timestamp control information indicates that the packet does not need to be timestamped, the control circuit system (not shown) of the time-gating circuit system 608 generates a control signal that causes the gating circuit 620 to immediately release the packet to the port 104 / 436.

[0117] In some embodiments, time gating circuitry 608 adjusts the transmit time received from control header extraction circuitry 604 relative to a timestamp embedded in the packet. For example, to account for a known delay (e.g., a fixed known delay) behind time gating circuitry 608 (e.g., including a fixed known delay through port 104 / 436), time gating circuitry 608 adjusts the transmit time received from control header extraction circuitry 604 to be earlier than the timestamp embedded in the packet to account for the known delay, e.g., through port 104 / 436.

[0118] In other embodiments, time gating circuitry 608 does not adjust the transmit time received from control header extraction circuitry 604 .

[0119] Figure 7 is a flow chart of an example method 700 for sending a timestamped packet according to one embodiment. In some embodiments, the method 700 comprises Figure 1 The network device 100 or Figure 4 The network device 400 is implemented, and for ease of explanation, reference is made to Figure 1 and Figure 4 Describe method 700. In other embodiments, method 700 includes steps other than Figure 1 and Figure 4 Similarly, in some embodiments, a portion of method 700 is implemented by another suitable network device of network devices 100 and 400. Figure 5 The time stamp circuit system 500 is implemented, and for ease of explanation, reference is made to Figure 5 Describe method 700. In other embodiments, method 700 uses Figure 5 The time stamp circuit system 500 is implemented by other suitable time stamp circuit systems. Similarly, in some embodiments, a portion of the method 700 is implemented by Figure 6 The PHY processing circuit system 600 is implemented, and for ease of explanation, reference is made to Figure 6 Describe method 700. In other embodiments, method 700 uses Figure 6 The PHY processing circuitry 600 may be implemented with various other suitable PHY processing circuits.

[0120] At block 704, the timestamp circuitry of a packet processor of a network device receives a packet to be sent via a port of the network device. For example, according to one embodiment, the timestamp circuitry 128 ( Figure 1 ) receives a packet to be sent via port 104. As another example, according to one embodiment, timestamp circuitry 444 ( Figure 4 ) receives a packet to be sent via port 436. As another example, according to another embodiment, the timestamp circuit system 500 ( Figure 5 ) receives packets to be sent via a port.

[0121] At block 708, the timestamp circuitry modifies the packet by embedding a timestamp in the packet. The timestamp voltage domain packet is to be transmitted by the port at a transmission time, where the transmission time occurs after the timestamp circuitry embeds the timestamp in the packet. For example, according to one embodiment, the timestamp circuitry 128 ( Figure 1 ) adds a timestamp to the packet. As another example, according to one embodiment, the timestamp circuitry 444 ( Figure 4 ) adds a timestamp to the packet. As another example, according to another embodiment, the timestamp circuit system 500 ( Figure 5 ) adds a timestamp to the group.

[0122] In some embodiments, the network device generates timing information separate from the timestamp in the packet, the timing information indicating the transmission time corresponding to the timestamp in the packet. For example, according to one embodiment, the timestamp circuitry 128 ( Figure 1) generates timing information. As another example, according to one embodiment, the timestamp circuit system 444 ( Figure 4 ) generates timing information. As another example, according to another embodiment, the timestamp circuit system 500 ( Figure 5 )Generate timing information.

[0123] At block 712, the packet processor adds timing information to the packet. For example, according to one embodiment, the timestamp circuitry 128 ( Figure 1 ) adds timing information to the packet. As another example, according to one embodiment, the timestamp circuit system 444 ( Figure 4 ) adds timing information to the packet. As another example, according to another embodiment, the timestamp circuit system 500 ( Figure 5 ) adds the timing information to the packet. As another example, according to another embodiment, the MAC processor 136 adds the timing information to the packet. As another example, according to another embodiment, the MAC processor 432 adds the timing information to the packet.

[0124] In one embodiment, the timing information is included in a control header added to the packet.

[0125] At block 716, the packet processor transmits the packet to the transmitter circuitry of the network device via a communication link between the packet processor and the transmitter circuitry. In one embodiment, the communication link is a serial communication link. In one embodiment, the communication link operates according to a media independent interface (such as USXGMII, USGMII, etc.). In one implementation, the packet transmitted at block 716 includes the timing information added to the packet at block 712.

[0126] For example, in one embodiment, MAC processor 136 transmits packets to PHY processor 108 using SERDES 140. As another example, MAC processor 432 transmits packets to PHY processor 408 using SERDES 416 in another embodiment.

[0127] At block 720, the transmitter circuitry determines when the current time reaches the transmit time. In one embodiment, the current time is generated by a clock circuit of the transmitter circuitry or coupled to the transmitter circuitry. For example, according to one embodiment, the time gating circuitry 112 ( Figure 1 ) receives timing information indicating a transmit time and determines when the current time (measured by clock 180) reaches the transmit time. As another example, according to one embodiment, time gating circuitry 448 ( Figure 4) receives timing information indicating a transmission time, and determines when the current time reaches the transmission time. As another example, according to another embodiment, the time gating circuit system 608 ( Figure 6 ) receives timing information indicating a transmit time and determines when the current time (measured by clock 612) reaches the transmit time. For example, according to another embodiment, comparator circuit 616 ( Figure 6 ) receives i) the current time and ii) timing information indicating a transmit time, and comparator circuit 616 determines when the current time reaches the transmit time.

[0128] In one embodiment, method 700 also includes the transmitter circuitry extracting timing information from packets received via the communication link. For example, in one embodiment, control header extractor 604 ( Figure 6 ) extracts timing information from packets received via a communication link.

[0129] At block 724, the time gating circuitry of the transmitter circuitry blocks the packet from advancing to the port until the current time reaches the transmit time. For example, according to one embodiment, the time gating circuitry 112 ( Figure 1 ) prevents packets from advancing to port 104 until the current time reaches the send time. As another example, according to one embodiment, time gating circuitry 448 ( Figure 4 ) prevents packets from advancing to port 436 until the current time reaches the send time. As another example, according to another embodiment, gating circuit system 620 ( Figure 6 ) prevents packets from advancing to port 104 / 436 until the current time reaches the send time.

[0130] At block 728, the transmitter circuitry removes the timing information added to the packet at block 712. For example, in one embodiment, PHY processor 108 removes the timing information. As another example, in another embodiment, time gating circuitry 112 removes the timing information. As another example, in another embodiment, PHY processor 408 removes the timing information. As another example, in another embodiment, time gating circuitry 448 removes the timing information. In some embodiments where the timing information is included in a control header that was added to the packet in conjunction with block 712, the timing information is removed at block 728 when the transmitter circuitry removes the control header from the packet.

[0131] In some embodiments, the timing information is removed at block 728 before or while the packet is retained at block 724. In other embodiments, the timing information is removed at block 728 after the packet is retained at block 724, for example, the timing information is removed at block 726 in conjunction with releasing the packet to a port.

[0132] At block 732, the time gating circuitry of the transmitter circuitry, in response to determining that the current time has reached the transmit time, releases the packet with the timing information removed at block 728 omitted to the port, so that the packet is transmitted via the port without the timing information. In some embodiments where the timing information is included in a control header added to the packet in conjunction with block 712, at block 732, the packet with the control header removed in conjunction with performing block 728 omitted is released to the port, so that the packet is transmitted via the port without the control header. For example, according to one embodiment, the time gating circuitry 112 ( Figure 1 ) releases the packet to port 104 in response to determining that the current time reaches the sending time. As another example, according to one embodiment, the time gating circuit system 448 ( Figure 4 ) releases the packet to port 436 in response to determining that the current time reaches the sending time. As another example, according to another embodiment, the gating circuit system 620 ( Figure 6 ) releases the packet to port 104 / 436 in response to determining that the current time has reached the send time.

[0133] In one embodiment, method 700 further includes processing the packet through one or more circuitry stages after modifying the packet to embed the timestamp in the packet at block 708. In one embodiment, processing the packet through one or more circuitry stages after modifying the packet to embed the timestamp includes generating authentication information using content of the packet (including the timestamp embedded in the packet). In one embodiment, processing the packet through one or more circuitry stages after modifying the packet to embed the timestamp also includes embedding the authentication information in the packet.

[0134] In another embodiment, processing the packet through one or more stages of circuitry after modifying the packet includes encrypting contents of the packet (including a timestamp embedded in the packet).

[0135] Embodiment 1: A network device, comprising:

[0136] a packet processor including a timestamp circuit system configured to modify a packet to be transmitted by the network device to generate a timestamped packet by embedding a future timestamp in the packet, the future timestamp corresponding to a transmit time at which the timestamped packet is to be transmitted by the network device, the transmit time occurring after the timestamp circuit system embeds the future timestamp in the packet, the packet processor configured to add timing information indicative of the transmit time corresponding to the future timestamp to the timestamped packet; and

[0137] a transmitter circuitry coupled to the packet processor via a communication link operating in accordance with a media independent communication interface, the transmitter circuitry configured to receive packets from the packet processor via the communication link and to transmit the packets via the one or more network links, the packets including the timestamped packets having the timing information indicating the transmit time corresponding to the future timestamp, the transmitter circuitry comprising:

[0138] A time-gating circuit system is configured to i) hold the time-stamped packet from advancing to one of the network links among the one or more network links until a current time reaches the send time, and ii) release the time-stamped packet for transmission via the one network link in response to the current time reaching the send time.

[0139] Embodiment 2. A network device according to embodiment 1, wherein the packet processor is configured to add the timing information to the timestamped packet so that the timing information can be transmitted within the packet to the transmitter circuit system via the communication link operating according to the media-independent interface.

[0140] Embodiment 3. A network device according to any one of embodiments 1 or 2, wherein the communication link is a serial communication link.

[0141] Embodiment 4. The network device according to embodiment 3 further includes:

[0142] A serializer deserializer SERDES coupled to the packet processor;

[0143] Wherein the packet processor is configured to transmit packets to the transmitting circuitry via the serial communication link using the SERDES.

[0144] Embodiment 5. The network device of any one of embodiments 1 to 4, wherein the packet processor is further configured to: in response to determining that the network device is to maintain transmission of the timestamped packet until the sending time:

[0145] determining a delay for providing a subsequent packet to the transmitter circuitry via the communication link; and

[0146] After the delay, the subsequent packet is provided to the transmitter circuitry via the communication link.

[0147] Embodiment 6. The network device according to any one of embodiments 1 to 5, wherein:

[0148] The packet processor is further configured to: i) add a control header to the packet or the timestamped packet, and ii) add the timing information indicating the transmission time to the control header; and

[0149] The transmitter circuitry is configured to: i) extract the timing information from the time-stamped packet, and ii) use the timing information to determine the transmit time.

[0150] Embodiment 7. The network device of embodiment 6, wherein the transmitter circuit system is further configured to:

[0151] The control header is removed from the time-stamped packet such that the time-stamped packet is sent via the port without the control header.

[0152] Embodiment 8. The network device according to embodiment 6, wherein the packet processor is further configured to:

[0153] The control header is added to the preamble of the time-stamped packet.

[0154] Embodiment 9. The network device according to any one of embodiments 1 to 8, wherein the packet processor further comprises:

[0155] Encryption circuitry is configured to encrypt contents of the time-stamped packet including the future time stamp.

[0156] Embodiment 10. The network device according to any one of embodiments 1 to 8, wherein the packet processor further comprises:

[0157] Authentication circuitry is configured to generate authentication information using contents of the timestamped packet, including the future timestamp.

[0158] Embodiment 11. The network device according to any one of embodiments 1 to 10, wherein the network device further comprises:

[0159] first clock circuitry configured to generate a first clock signal; and

[0160] a second clock circuit system configured to generate a second clock signal;

[0161] wherein the timestamp circuitry is configured to determine the future timestamp using the first clock signal; and

[0162] The time gating circuitry is configured to use the second clock signal to determine when the current time reaches the sending time.

[0163] Embodiment 12. A method for sending a packet in a network device, the method comprising:

[0164] receiving, at a packet processor of a network device, a packet to be sent via a port of the network device;

[0165] modifying, with timestamp circuitry of the packet processor, the packet to generate a timestamped packet by embedding in the packet a future timestamp corresponding to a transmit time of the timestamped packet to be transmitted by the port, the transmit time occurring after the timestamp circuitry embeds the future timestamp in the packet;

[0166] adding, by the packet processor, timing information to the timestamped packet, the timing information indicating the sending time;

[0167] transmitting the time-stamped packets from the packet processor to transmitter circuitry via a communications link operating in accordance with a media independent communications interface;

[0168] determining, at the transmitter circuitry, when a current time reaches the transmit time;

[0169] at time gating circuitry of the transmitter circuitry, holding the packet from advancing to the port until the current time reaches the transmit time; and

[0170] In response to determining that the current time has reached the transmit time, the packet is released to the port by the time gating circuitry.

[0171] Embodiment 13. A method for sending packets according to embodiment 12, wherein adding the timing information to the timestamped packet comprises: adding the timing information to the timestamped packet so that the timing information can be transmitted to the transmitter circuit system within the packet via the communication link operating according to the media-independent interface.

[0172] Embodiment 14. The method for sending a packet according to any one of Embodiments 12 or 13, wherein transmitting the time-stamped packet from the packet processor to the transmitter circuitry comprises:

[0173] The time-stamped packets are transmitted from the packet processor to the transmitter circuitry via a serial communication link.

[0174] Embodiment 15. The method for sending a packet according to embodiment 14, wherein transmitting the time-stamped packet from the packet processor to the transmitter circuitry comprises:

[0175] The time-stamped packets are transmitted from the packet processor to the transmitter circuitry using a serializer deserializer (SERDES) coupled to the packet processor.

[0176] Embodiment 16. The method for sending a packet according to any one of embodiments 12 to 15, further comprising, in response to determining that the network device will maintain transmission of the timestamped packet until the sending time:

[0177] determining a delay for providing a subsequent packet to the transmitter circuitry via the communication link; and

[0178] After the delay, the subsequent packet is provided to the transmitter circuitry via the communication link.

[0179] Embodiment 17. The method for sending a packet according to any one of embodiments 12 to 16, further comprising:

[0180] adding, by the packet processor, a control header to the packet or the timestamped packet;

[0181] adding, by the packet processor, the timing information indicating the transmission time to the control header;

[0182] extracting, by the transmitter circuitry, the timing information from the time-stamped packets; and

[0183] The timing information is used by the transmitter circuitry to determine the transmit time.

[0184] Embodiment 18. The method for sending a packet according to embodiment 17 further comprising:

[0185] The control header is removed, by transmitter circuitry, from the time-stamped packet such that the time-stamped packet is sent via the port without the control header.

[0186] Embodiment 19. The method for sending a packet according to embodiment 17, wherein adding the control header to the packet or the timestamped packet comprises:

[0187] The control header is added to the preamble of the time-stamped packet.

[0188] Embodiment 20. The method for sending a packet according to any one of embodiments 12 to 19, further comprising:

[0189] Contents of the timestamped packet including the future timestamp are encrypted by encryption circuitry of the packet processor.

[0190] Embodiment 21. The method for sending a packet according to any one of embodiments 12 to 19, further comprising:

[0191] Authentication information is generated by authentication circuitry of the packet processor using the contents of the timestamped packet including the future timestamp.

[0192] Embodiment 22. The method for sending a packet according to any one of embodiments 12 to 16, further comprising:

[0193] determining, by the timestamp circuitry of the packet processor, the future timestamp using a first clock signal generated by the first clock circuitry; and

[0194] A second clock signal generated by second clock circuitry is used by the time gating circuitry of the transmitter circuitry to determine when the current time reaches the transmit time.

[0195] At least some of the various blocks, operations, and techniques described above are suitably implemented using dedicated hardware, such as one or more of discrete components, integrated circuits, ASICs, programmable logic devices (PLDs), processors executing firmware instructions, processors executing software instructions, or any combination thereof. When implemented using a processor executing software or firmware instructions, the software or firmware instructions may be stored in any suitable computer-readable memory, such as a random access memory (RAM), a read-only memory (ROM), a solid-state memory, etc. The software or firmware instructions may include machine-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the various actions described herein.

[0196] Although the present invention has been described with reference to specific examples, these examples are only intended to illustrate and not to limit the present invention, and changes, additions and / or deletions may be made to the disclosed embodiments without departing from the scope of the present invention.

Claims

1. A network device, comprising: a packet processor including a timestamp circuitry configured to modify a packet to be transmitted by the network device to generate a timestamped packet by embedding a future timestamp in the packet, the future timestamp corresponding to a transmit time of the timestamped packet to be transmitted by the network device, the transmit time occurring after the timestamp circuitry embeds the future timestamp in the packet, the packet processor configured to add timing information indicative of the transmit time corresponding to the future timestamp to the timestamped packet; as well as a transmitter circuitry coupled to the packet processor via a communication link operating in accordance with a media independent communication interface, the transmitter circuitry configured to receive packets from the packet processor via the communication link and to transmit the packets via the one or more network links, the packets including the timestamped packets having the timing information indicating the transmit time corresponding to the future timestamp, the transmitter circuitry comprising: A time-gating circuit system is configured to i) hold the time-stamped packet from advancing to one of the network links among the one or more network links until a current time reaches the send time, and ii) release the time-stamped packet for transmission via the one network link in response to the current time reaching the send time.

2. The network device of claim 1 , wherein the packet processor is configured to add the timing information to the timestamped packet so that the timing information can be transmitted within the packet to the transmitter circuit system via the communication link operating according to the media independent interface.

3. The network device of claim 1, wherein the communication link is a serial communication link.

4. The network device according to claim 3, further comprising: A serializer deserializer SERDES coupled to the packet processor; Wherein the packet processor is configured to transmit packets to the transmitting circuitry via the serial communication link using the SERDES.

5. The network device of claim 1 , wherein the packet processor is further configured to, in response to determining that the network device is to hold transmission of the timestamped packet until the send time: determining a delay for providing a subsequent packet to the transmitter circuitry via the communication link; and After the delay, the subsequent packet is provided to the transmitter circuitry via the communication link.

6. The network device according to claim 1, wherein: The packet processor is further configured to: i) add a control header to the packet or the timestamped packet, and ii) add the timing information indicating the transmission time to the control header; and The transmitter circuitry is configured to: i) extract the timing information from the time-stamped packet, and ii) use the timing information to determine the transmit time.

7. The network device of claim 6, wherein the transmitter circuit system is further configured to: The control header is removed from the time-stamped packet such that the time-stamped packet is sent via the port without the control header.

8. The network device according to claim 6, wherein the packet processor is further configured to: The control header is added to the preamble of the time-stamped packet.

9. The network device according to claim 1, wherein the packet processor further comprises: Encryption circuitry is configured to encrypt contents of the time-stamped packet including the future time stamp.

10. The network device of claim 1, wherein the packet processor further comprises: Authentication circuitry is configured to generate authentication information using contents of the timestamped packet including the future timestamp.

11. The network device according to claim 1, wherein the network device further comprises: a first clock circuit system configured to generate a first clock signal; as well as a second clock circuit system configured to generate a second clock signal; wherein the timestamp circuitry is configured to determine the future timestamp using the first clock signal; and The time gating circuitry is configured to use the second clock signal to determine when the current time reaches the sending time.

12. A method for sending a packet in a network device, the method comprising: receiving, at a packet processor of a network device, a packet to be sent via a port of the network device; modifying, with timestamp circuitry of the packet processor, the packet to generate a timestamped packet by embedding in the packet a future timestamp corresponding to a transmit time of the timestamped packet to be transmitted by the port, the transmit time occurring after the timestamp circuitry embeds the future timestamp in the packet; adding, by the packet processor, timing information to the timestamped packet, the timing information indicating the sending time; transmitting the time-stamped packets from the packet processor to transmitter circuitry via a communications link operating in accordance with a media independent communications interface; determining, at the transmitter circuitry, when a current time reaches the transmit time; at time gating circuitry of the transmitter circuitry, holding the packet from advancing to the port until the current time reaches the transmit time; as well as In response to determining that the current time has reached the transmit time, the packet is released to the port by the time gating circuitry.

13. The method for transmitting a packet according to claim 12, wherein adding the timing information to the time-stamped packet comprises: The timing information is added to the time-stamped packet so that the timing information can be transmitted within the packet to the transmitter circuitry via the communication link operating according to the media independent interface.

14. The method for sending a packet according to claim 12, wherein transmitting the time-stamped packet from the packet processor to the transmitter circuitry comprises: The time-stamped packets are transmitted from the packet processor to the transmitter circuitry via a serial communications link.

15. The method for sending a packet according to claim 14, wherein transmitting the time-stamped packet from the packet processor to the transmitter circuitry comprises: The time stamped packet is transmitted from the packet processor to the transmitter circuitry using a serializer deserializer (SERDES) coupled to the packet processor.

16. The method for sending a packet according to claim 12, further comprising, in response to determining that the network device is to maintain transmission of the timestamped packet until the sending time: determining a delay for providing a subsequent packet to the transmitter circuitry via the communication link; and After the delay, the subsequent packet is provided to the transmitter circuitry via the communication link.

17. The method for sending a packet according to claim 12, further comprising: adding, by the packet processor, a control header to the packet or the timestamped packet; adding, by the packet processor, the timing information indicating the transmission time to the control header; extracting, by the transmitter circuitry, the timing information from the time-stamped packet; as well as The timing information is used by the transmitter circuitry to determine the transmit time.

18. The method for sending a packet according to claim 17, further comprising: The control header is removed from the time-stamped packet by transmitter circuitry such that the time-stamped packet is sent via the port without the control header.

19. The method for sending a packet according to claim 17, wherein adding the control header to the packet or the timestamped packet comprises: The control header is added to the preamble of the time-stamped packet.

20. The method for sending a packet according to claim 12, further comprising: Contents of the timestamped packet including the future timestamp are encrypted by encryption circuitry of the packet processor.

21. The method for sending a packet according to claim 12, further comprising: Authentication information is generated by authentication circuitry of the packet processor using the contents of the timestamped packet including the future timestamp.

22. The method for sending a packet according to claim 12, further comprising: determining, by the timestamp circuitry of the packet processor, the future timestamp using a first clock signal generated by a first clock circuitry; as well as A second clock signal generated by second clock circuitry is used by the time gating circuitry of the transmitter circuitry to determine when the current time reaches the transmit time.

Citation Information

Patent Citations

  • Dynamic one-step / two-step timestamping per packet in network devices

    US20230269161A1