Timestamping packets in a network
RE049806 ยท 2024-01-16
Assignee
Inventors
- Thomas J. Edsall (Los Gatos, CA)
- Wei-Jen Huang (Burlingame, CA)
- Chih-Tsung Huang (Burlingame, CA)
- Yichou Lin (San Jose, CA, US)
Cpc classification
H04L43/106
ELECTRICITY
International classification
G06F15/16
PHYSICS
H04J3/24
ELECTRICITY
H04L12/28
ELECTRICITY
H04L43/106
ELECTRICITY
Abstract
Techniques are presented herein to facilitate latency measurements in a networking environment. A first network device receives a packet for transport within a network domain that comprises a plurality of network devices. The plurality of network devices have a common time reference, that is, they are time synchronized. The first network device generates timestamp information indicating time of arrival of the packet at the first network device. The first network device inserts into the packet a tag that comprises at least a first subfield and a second subfield. The first subfield comprising a type indicator to signify to other network devices in the network domain that the tag includes timestamp information, and the second subfield includes the timestamp information. The first network device sends the packet from to into the network domain to another network device. Other network devices which receive that packet can make latency measurements.
Claims
1. A method comprising: receiving a .Iadd.network traffic .Iaddend.packet at a first network device for transport within a network domain that comprises a plurality of network devices, .Iadd.the network traffic packet comprising a header with a Layer 2 portion and a Layer 3 portion, .Iaddend.wherein the plurality of network devices have a common time reference .Iadd.and the network traffic packet does not include time information sourced from the common time reference.Iaddend., and wherein the first network device is at an ingress edge of the network domain for the .Iadd.network traffic .Iaddend.packet, wherein the .Iadd.network traffic .Iaddend.packet is received at the .Iadd.first .Iaddend.network device from outside of the network domain; generating, by the first network device, timestamp information indicating time of arrival of the .Iadd.network traffic .Iaddend.packet within the network domain; inserting into the .Iadd.Layer 2 portion of the header of the network traffic .Iaddend.packet a .Iadd.first .Iaddend.tag that .Iadd.is distinct from contents of the network traffic packet, wherein the first tag .Iaddend.comprises at least a first .Iadd.type .Iaddend.subfield and .[.a.]. .Iadd.multiple .Iaddend.second .[.subfield.]. .Iadd.subfields.Iaddend., .Iadd.wherein .Iaddend.the first .Iadd.type .Iaddend.subfield comprising .[.a type.]. .Iadd.an .Iaddend.indicator to signify to other network devices in the network domain that the .Iadd.first .Iaddend.tag includes timestamp information data, and .Iadd.wherein at least one of .Iaddend.the .Iadd.multiple .Iaddend.second .[.subfield.]. .Iadd.subfields .Iaddend.includes .[.the.]. timestamp information .Iadd.indicating time of arrival of the network traffic packet with an associated precision.Iaddend., wherein the timestamp information is configured to be used by each device in the network domain that receives the .Iadd.network traffic .Iaddend.packet as an indication of when the .Iadd.network traffic .Iaddend.packet entered the network domain; and sending the .Iadd.network traffic .Iaddend.packet from the first network device to another network device in the network domain.
2. The method of claim 1, further comprising: receiving at a second network device the .Iadd.network traffic .Iaddend.packet sent from the first network device; determining a time of arrival of the .Iadd.network traffic .Iaddend.packet at the second network device; and measuring latency of the .Iadd.network traffic .Iaddend.packet within the network domain based on the time of arrival of the .Iadd.network traffic .Iaddend.packet and the timestamp information contained in the .Iadd.first .Iaddend.tag of the .Iadd.network traffic .Iaddend.packet.
3. The method of claim 1, further comprising: at each of the other network devices in the network domain: receiving the .Iadd.network traffic .Iaddend.packet sent by the first network device; determining time of arrival of the .Iadd.network traffic .Iaddend.packet; and measuring latency of the .Iadd.network traffic .Iaddend.packet within the network domain based on the time of arrival of the .Iadd.network traffic .Iaddend.packet and the timestamp information contained in the .Iadd.first .Iaddend.tag of the .Iadd.network traffic .Iaddend.packet.
4. The method of claim 1, wherein the first .Iadd.type .Iaddend.subfield of the .Iadd.first .Iaddend.tag is an Ethertype subfield.
5. The method of claim 1, further comprising inserting in the .Iadd.first .Iaddend.tag a validity bit that indicates whether or not the timestamp information is valid.
6. The method of claim 1, wherein inserting into the .Iadd.network traffic .Iaddend.packet comprises inserting a predetermined bit pattern in the second subfield to indicate that the timestamp information of the second subfield is not valid.
7. The method of claim 1, further comprising: receiving at a second network device the .Iadd.network traffic .Iaddend.packet sent from the first network device; and inserting .[.an additional.]. .Iadd.a second .Iaddend.tag into the .Iadd.network traffic .Iaddend.packet, the .[.additional.]. .Iadd.second .Iaddend.tag including timestamp information representing time of arrival of the .Iadd.network traffic .Iaddend.packet at the second network device.Iadd., wherein the second tag is distinct from contents of the network traffic packet and distinct from the first tag.Iaddend..
8. A method comprising: receiving a .Iadd.network traffic .Iaddend.packet at an egress port of a first network device, the .Iadd.network traffic .Iaddend.packet .Iadd.not including time information sourced from a common time reference and .Iaddend.having been transported within a network domain that comprises a plurality of network devices, .Iadd.the network traffic packet comprising a header with a Layer 2 portion and a Layer 3 portion, .Iaddend.wherein the plurality of network devices have a common time reference, and wherein the first network device is at an egress edge of the network domain for the .Iadd.network traffic .Iaddend.packet; determining a time of arrival of the .Iadd.network traffic .Iaddend.packet at the first network device; extracting, by the first network device, .Iadd.from the Layer 2 portion of the header of the network traffic packet a tag that is distinct from contents of the network traffic packet, the tag including a type subfield and multiple timestamp subfields, wherein the type subfield comprises an indicator to signify to other network devices in the network domain that the tag includes timestamp information, wherein at least one of the multiple timestamp subfields including .Iaddend.timestamp information indicating time of arrival of the .Iadd.network traffic .Iaddend.packet within the network domain .Iadd.with an associated precision.Iaddend., wherein the .Iadd.network traffic .Iaddend.packet was received within the network domain at a second network device, wherein the second network device is arranged at an ingress edge of the network domain for the .Iadd.network traffic .Iaddend.packet; and determining .[.the.]. .Iadd.a .Iaddend.latency of the .Iadd.network traffic .Iaddend.packet within the network domain by calculating an elapsed time between the timestamp information and the arrival of the .Iadd.network traffic .Iaddend.packet at the egress port of the first network device.
9. The method of claim 8, wherein extracting the timestamp information comprises extracting at least a first subfield and .[.a.]. .Iadd.multiple .Iaddend.second .[.subfield.]. .Iadd.subfields.Iaddend., the first subfield .Iadd.being the type subfield .Iaddend.comprising .[.a type.]. .Iadd.the .Iaddend.indicator signifying that the .Iadd.multiple .Iaddend.second .[.subfield includes.]. .Iadd.subfields include .Iaddend.the timestamp information.
10. The method of claim 9, wherein extracting the first subfield comprises extracting an Ethertype subfield.
11. The method of claim 9, wherein extracting the timestamp information comprises extracting a predetermined bit pattern in the second subfield to indicate that the timestamp information of the second subfield is not valid.
12. The method of claim 8, wherein extracting the timestamp information comprises extracting timestamp information for each of the plurality of network devices that the .Iadd.network traffic .Iaddend.packet traversed travelling from the second network device to the first network device.
13. The method of claim 8, wherein extracting the timestamp information comprises extracting a validity bit that indicates whether or not the timestamp information is valid.
.[.14. The method of claim 8, wherein extracting the timestamp information comprises extracting the timestamp information from an Open Systems Interconnection model Layer 2 portion of the packet..].
15. An apparatus comprising: a plurality of ports each configured to receive and send .Iadd.network traffic .Iaddend.packets in a network domain, .Iadd.the network traffic packets comprising a header with a Layer 2 portion and a Layer 3 portion, .Iaddend.wherein at least one of the plurality of ports is an egress port at an egress edge of the network domain.Iadd., and wherein the network traffic packets do not include time information sourced from a common time reference.Iaddend.; a timestamp logic unit configured to extract.Iadd., from the Layer 2 portion of the header of the network traffic packet a tag that is distinct from contents of the network traffic packet, the tag including a type subfield and multiple timestamp subfields, wherein the type subfield comprises an indicator to signify to other network devices in the network domain that the tag includes timestamp information, wherein at least one of the multiple timestamp subfields including .Iaddend.timestamp information indicating time of arrival of .[.the.]. .Iadd.a network traffic .Iaddend.packet at the network domain .Iadd.with an associated precision.Iaddend., wherein the timestamp information is generated at a network device arranged at an ingress edge of the network domain for the .Iadd.network traffic .Iaddend.packet; and a latency measurement unit configured to determine a time of arrival of the .Iadd.network traffic .Iaddend.packet at the egress port and determine an elapsed time between the arrival of the .Iadd.network traffic .Iaddend.packet at the network domain and the arrival of the .Iadd.network traffic .Iaddend.packet at the egress port.
16. The apparatus of claim 15, wherein the timestamp logic unit is configured to extract at least a first subfield and .[.a.]. .Iadd.multiple .Iaddend.second .[.subfield.]. .Iadd.subfields.Iaddend., the first subfield .Iadd.being the type subfield .Iaddend.comprising .[.a type.]. .Iadd.the .Iaddend.indicator signifying that the .Iadd.multiple .Iaddend.second .[.subfield includes.]. .Iadd.subfields include .Iaddend.the timestamp information.
17. The apparatus of claim 16, wherein the timestamp logic unit is configured to extract the first subfield as an Ethertype subfield.
18. The apparatus of claim 16, wherein the timestamp logic unit is configured to extract the timestamp information by extracting a predetermined bit pattern in the second subfield to indicate that the timestamp information of the second subfield is not valid.
19. The apparatus of claim 15, wherein the latency measurement unit is configured to determine the elapsed time from the time of arrival of the .Iadd.network traffic .Iaddend.packet at the egress port and the timestamp information.
.[.20. The apparatus of claim 15, wherein the timestamp logic unit is configured to timestamp information from an Open Systems Interconnection model Layer 2 portion of the packet..].
21. The apparatus of claim 15, wherein the timestamp logic unit is configured to extract the timestamp information by extracting a validity bit that indicates whether or not the timestamp information is valid.
.[.22. The apparatus of claim 15, wherein the timestamp logic unit is configured to extract the timestamp information by extracting the timestamp information from an Open Systems Interconnection model Layer 2 portion of the packet..].
23. The method of claim 1, wherein generating the timestamp information indicating time of arrival of the .Iadd.network traffic .Iaddend.packet within the network domain comprises determining a time of arrival at the first network device.
.[.24. The method of claim 1, wherein inserting into the packet the tag comprises inserting the tag in an Open Systems Interconnection model Layer 2 portion of the packet..].
.Iadd.25. A method, comprising: capturing, at a first network device that is configured to forward network traffic packets, a network traffic packet for transport within a network domain that comprises a plurality of network devices, the network traffic packet comprising a header with a Layer 2 portion and a Layer 3 portion, wherein the first network device is at an ingress edge of the network domain for the network traffic packet, and wherein the network traffic packet does not include time information sourced from a common time reference and is transported to the first network device from outside of the network domain; generating, by the first network device, timestamp information indicating time of capture of the network traffic packet at the first network device; including in the Layer 2 portion of the header of the network traffic packet a tag that is distinct from contents of the network traffic packet, wherein the tag comprises at least a first subfield and multiple second subfields, wherein the first subfield comprising a type subfield comprises an indicator to signify to other network devices in the network domain that the tag includes timestamp information, and wherein at least one of the multiple second subfields comprises a timestamp value that indicates time of capture of the network traffic packet at the first network device with an associated precision; and sending the network traffic packet from the first network device to a second network device. .Iaddend.
.Iadd.26. The method of claim 25, wherein the tag further includes a subfield indicating a validity of the network traffic packet. .Iaddend.
.Iadd.27. The method of claim 25, wherein the network traffic packet containing the tag is formatted such that the network traffic packet can be processed by a second network device that is not configured to understand the tag. .Iaddend.
.Iadd.28. The method of claim 25, further comprising: capturing the network traffic packet at the second network device; determining time of capture of the network traffic packet at the second network device; and measuring latency of the network traffic packet within the network domain based on the time of capture of the network traffic packet at the second network device and the timestamp information included in the tag of the network traffic packet. .Iaddend.
.Iadd.29. The method of claim 25, wherein the tag further includes a precision subfield indicating precision of the timestamp value in an associated second subfield. .Iaddend.
.Iadd.30. An apparatus comprising: an ingress port configured to receive a network traffic packet, the network traffic packet comprising a header with a Layer 2 portion and a Layer 3 portion, wherein the network traffic packet does not include time information sourced from a common time reference; and a timestamp logic unit configured to generate timestamp information based on time of arrival of the network traffic packet at the ingress port and insert into the Layer 2 portion of the header of the network traffic packet, a tag that is distinct from contents of the network traffic packet, wherein the tag comprises subfields including a type subfield and multiple timestamp subfields, wherein the type subfield comprises an indicator to signify to other network devices that the tag includes timestamp information, and wherein at least one of the multiple timestamp subfields having an associated precision subfield to indicate a precision for a timestamp value for time of arrival of the network traffic packet in an associated timestamp subfield. .Iaddend.
.Iadd.31. The apparatus of claim 30, wherein the network traffic packet further comprises a validity check subfield. .Iaddend.
.Iadd.32. The apparatus of claim 30, further comprising: a latency measurement unit configured to determine latency of the network traffic packet traversing a network domain from a first ingress port of the network domain to a second port based on at least one of the subfields containing timestamp information. .Iaddend.
.Iadd.33. The apparatus of claim 30, wherein the type subfield comprises an Ethertype subfield. .Iaddend.
.Iadd.34. An apparatus comprising: a plurality of ports, each port configured to receive and send network traffic packets in a network domain, the network traffic packets comprising a header with a Layer 2 portion and a Layer 3 portion, wherein at least one of the plurality of ports is an ingress port at an edge of the network domain, wherein the network traffic packets do not include time information sourced from a common time reference; a timestamp logic unit configured to insert into the Layer 2 portion of a received network traffic packet a first timestamp information indicating time of arrival of the received network traffic packet at the network domain from outside the network domain, wherein the first timestamp information is generated with reference to the ingress port at the edge of the network domain to enable latency measurements based on the first timestamp information, and the first timestamp information is distinct from contents of the received network traffic packet, the first timestamp information having an associated precision; and wherein the Layer 2 portion of the received network traffic packet further includes a type subfield that comprises an indicator to signify to other network devices received network traffic packet includes timestamp information. .Iaddend.
.Iadd.35. The apparatus of claim 34, wherein the type subfield is an Ethertype subfield. .Iaddend.
.Iadd.36. A system comprising the apparatus of claim 34, and further comprising another apparatus that receives the network traffic packet that includes the first timestamp information. .Iaddend.
.Iadd.37. The method of claim 1, wherein inserting comprises inserting a plurality of additional tags into the network traffic packet, each additional tag including different timestamp information, wherein each additional tag is distinct from the first tag and distinct from other additional tags. .Iaddend.
.Iadd.38. The method of claim 8, wherein the network traffic packet includes multiple tags, each tag of the multiple tags including timestamp information indicating time of arrival of the network traffic packet at a different network device, and wherein each tag of the multiple tags is distinct from other tags. .Iaddend.
.Iadd.39. The method of claim 38, wherein one or more tags of the multiple tags have been overwritten by a network device when the network traffic packet has a maximum number of tags. .Iaddend.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
DESCRIPTION OF EXAMPLE EMBODIMENTS
Overview
(6) Techniques are presented herein to facilitate latency measurements in a networking environment. A first network device receives a packet for transport within a network domain that comprises a plurality of network devices. The plurality of network devices have a common time reference, that is, they are time synchronized. The first network device generates timestamp information indicating time of arrival of the packet at the first network device. The first network device inserts into the packet a tag that comprises at least a first subfield and a second subfield. The first subfield comprises a type indicator to signify to other network devices in the network domain that the tag includes timestamp information, and the second subfield includes the timestamp information. The first network device sends the packet into the network domain to another network device. Other network devices in the network domain which receive that packet can then make latency measurements, insert another tag, overwrite the tag, and perform various other operations described herein.
Example Embodiments
(7) Reference is first made to
(8) A packet 40 enters the network domain 10 at some edge node, e.g., network device 20(1) in the example of
(9) A timestamp tag (TTAG) is inserted into a packet 40 by the edge network device 20(1) of the network domain 10. The TTAG includes timestamp information indicating time of arrival at network device 20(1). All of the network devices in the network domain 10 that receive the packet 40 (with the inserted TTAG) can perform measurements based on the timestamp information contained in TTAG inserted into packet 40, and perform other operations, including adding another TTAG, overwriting an existing TTAG, adding another timestamp value into an existing TTAG, etc., as will described in more detail hereinafter. As indicated in
(10) The network devices 20(1)-20(N) shown in
(11)
(12) Turning now to
(13) The timestamp logic unit 23 generates a timestamp upon arrival of the packet at an ingress port 21 of the network device. The timestamp is with respect to the common time reference 30 used by all network devices in the network domain. The timestamp logic unit 23 may insert the TTAG into a packet 40 immediately upon arrival at the ingress port, and then forward the packet to be processed by the packet processing logic 26, insert the TTAG in parallel with the processing of the packet by the packet processing logic 26, or after processing of the packet by the packet processing logic 26. Examples of various formats of a TTAG are presented hereinafter in connection with
(14) The timestamp logic unit 23 may also be configured to insert additional information into a TTAG, including one or more bits to indicate a validity of the timestamp value, one or more bits to indicate a timing precision of the timestamp value. In general, precision is system or network domain wide and is pre-negotiated among the network devices with respect to the common time reference 30. When a new timestamp value is to be inserted into a packet, a network device uses either ingress port timestamp from the common time reference 30 (synchronized clock) or an invalid value of zero. Invalid values are preserved across the network domain, as described further hereinafter.
(15) Since any device can serve as an edge node in a network domain, each network device includes latency measurement 24 which is configured to perform a latency computation (current time minus the timestamp value contained in a TTAG of a received packet). For example, the latency measurement unit 24 in network device 20(2) may compute the latency associated with packet 40 using the timestamp value contained in the TTAG inserted by edge network device 20(1).
(16) The CPU 28 may perform higher level latency analysis and reporting operations based on software instructions contained in memory 29. The memory 29 may also serve for additional storage of latency measurements. The CPU 28 may send latency measurements to a local or remotely located computing device that is used by a network administrator to monitor performance of network domain 20. Moreover, the CPU 28 in any given network device may receive commands or instructions from a network management station (
(17) Memory 29 may comprise read only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. The CPU is, for example, a microprocessor or microcontroller. Thus, in general, the memory 29 may comprise one or more tangible (non-transitory) computer readable storage media (e.g., a memory device) encoded with software comprising computer executable instructions and when the software is executed (by the CPU 28) it is operable to perform the operations described herein.
(18) The timestamp logic unit 23 and latency measurement unit 24 may be embodied by digital logic gates configured to perform the operations described herein, or in another form, by software stored in memory 29 and executed by CPU 28 to perform the operations described herein. In another example, the timestamp logic unit 23 and latency measurement unit 24 may be integrated or embedded with the packet processing logic 26, which itself may be embodied by one or more application specific integrated circuits (ASICs).
(19) As shown in
(20) Reference is now made to
(21)
(22) There is another way to signify an invalid timestamp value in a packet without using the explicit validity bit 130. A Timestamp subfield value of zero represents an invalid timestamp. Thus, when the value contained in Timestamp subfield 130 is all zeros, a network device construes this as indicating that the timestamp contained in the TTAG is invalid. The subfield can be compatible with timestamp always valid in the network when invalid capability is disabled in the network domain. Thus, a predetermined bit pattern (e.g., all zeros) in the Timestamp subfield 130 indicates that the timestamp information of the Timestamp subfield is not valid.
(23)
(24)
(25)
(26) Turning to
(27) In some implementations of the techniques described herein, the number of TTAGs that can be inserted into a packet is limited in number to, for example, six (6) or some number between one (1) and ten (10). In other implementations, the number of TTAGs that can be inserted into a packet is unlimited, in which any device that receives the packet within the network for passing the packet to a destination from a source can insert a TTAG into the packet. In some implementations, when the maximum number of TTAGs that can be inserted into a packet is reached, downstream network devices cannot insert TTAGs into the packet. In yet other implementations, when the maximum number of TTAGs that can be inserted into a packet is reached, downstream network devices are allowed to over-write TTAGs on a first-in, first-out basis.
(28) There are numerous possibilities for locating the TTAG information in the packet. The TTAG can be inserted within a Layer 2 portion of the packet. This is in contrast to conventional approaches that perform application-specific packet time measurements at Layer 3. For example, one conventional packet time measurement approach collects runtime measurement of packets based on an application-specific determination of packet arrivals at Layer 3, as opposed to incorporating timestamp tag information directly into all packets at Layer 2 as accomplished using the techniques presented herein.
(29) In some implementations, such as for Internet Protocol Version 4 (IPv4) or IPv6 packets, the TTAG can be provided immediately after the virtual local area network (VLAN) subfield and immediately before the IPv4 or IPv6 field in the packet header portion of the packet, in which the TTAG is meshed in the protocol stack within the header portion of the packet. Other locations for insertions of the TTAG within a packet may be envisioned while remaining within the spirit and scope of the techniques presented herein.
(30) Turning now to
(31) At 240, the first network device sends the packet to another network device in the network domain, using the normal packet processing functions for the packet. At 250, another network device in the network domain receives the packet, and can perform any one or more of: (i) measuring latency with respect to first network device based on timestamp information in tag, (ii) overwriting tag with new tag, (iii) adding an additional tag to the packet, and (iv) adding an additional timestamp to an existing tag, or (v) doing nothing and processing the packet in the normal course without performing any of operations (i)-)(iv).
(32) At 250, the network device sends the packet on in the network in the ordinary course of packet processing. Operations 240 and 250 are repeated at subsequent network devices in the network domain as the packet travels through the network domain.
(33) As explained above in connection with
(34) Thus, particular implementations of the subject matter have been described. Other implementations are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In certain implementations, multitasking and parallel processing may be advantageous.
(35) The above description is intended by way of example only.