Methods and systems for providing a distributed clock as a service
Abstract
Tenants in data centers may want access to high precision clocks without having to run their own PTP stacks or reference clocks. Furthermore, different tenants may want their workloads synchronized to their own secured clock domain. PTP, the currently dominant synchronization protocol, allows for only 256 clock domains (CDs). Virtual CDs (vCDs) virtualize the concept of clock domains by maintaining a hardware clock within a host computer, receiving a network clock domain packet that includes a clock domain identifier and an origin timestamp produced by a reference clock, using the network clock domain packet to synchronize the hardware clock to the reference clock, and using the hardware clock to provide a hardware timestamp value to a virtual machine (VM) running on the host computer or to a process running on the host computer, wherein the hardware clock is secured from manipulation by the VM or by the process.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A system comprising: a plurality of hardware clocks; a memory; and a processor coupled to the hardware clocks and the memory, wherein the memory, the processor, and the hardware clocks are configured to provide a plurality of hardware timestamp values to a plurality of processes running in a plurality of virtual clock domains (vCDs) associated with a plurality of clock domains (CDs) by: storing a map that 1) associates the vCDs with the hardware clocks, and 2) associates the hardware clocks with the CDs; synchronizing one of the hardware clocks to a reference clock in response to receiving a network clock domain packet that includes a clock domain identifier of one of the CDs and an origin timestamp produced by the reference clock; and providing a hardware timestamp value from the one of the hardware clocks to a process running in one of the vCDs, wherein the map associates the one of the hardware clocks with the one of the CDs and the one of the vCDs.
- Claim 2Depends on #1
The system of claim 1, the processor is configured to provide a local hardware clock quality metric to the process.
- Claim 3Depends on #1
The system of claim 1 further including: a network interface card (NIC) configured for installation in a host computer, wherein the NIC includes the hardware clocks, the memory, and the processor.
- Claim 4Depends on #3
The system of claim 3 wherein the hardware clock is secured from manipulation by any process or by any virtual machine (VM) running on the host computer.
- Claim 5Depends on #3
The system of claim 3 wherein the hardware clock is secured from manipulation by the host computer.
- Claim 6Depends on #1
The system of claim 1 wherein the process is a virtual machine (VM) that uses a vCD identifier of the one of the vCDs to obtain the hardware timestamp value.
- Claim 7Depends on #6
The system of claim 6 wherein: the VM is associated with the vCD identifier to identify the vCD of the VM.
- Claim 8Depends on #1
The system of claim 1 further comprising: the processor, the memory, and the plurality of hardware clocks are configured to synchronize the plurality of hardware clocks to a plurality of reference clocks.
- Claim 9Depends on #1
The system of claim 1 wherein the processor, memory, and hardware clocks are further configured to migrate a VM running in the one of the vCDs from a first host computer to a second host computer, wherein migrating the VM to the second host computer includes: mapping the one of the vCDs and the one of the CDs to a second hardware clock at the second host computer; and synchronizing the second hardware clock to the reference clock in response to receiving a second network clock domain packet.
- Claim 10Depends on #1
The system of claim 1 wherein a second NIC installed in a second host computer includes a second hardware clock, the one of the hardware clocks and the second hardware clock are synchronized within the one of the CDs, and the second NIC associates a vCD identifier with a second clock domain identifier that is different from the clock domain identifier.
- Claim 11Depends on #1
The system of claim 1 wherein: the network clock domain packet is received on a first virtual local area network (VLAN) having a first VLAN identifier; a second network clock domain packet that includes the clock domain identifier is received on a second VLAN having a second VLAN identifier; the clock domain identifier in combination with the VLAN identifier identifies a clock domain; and the clock domain identifier in combination with the second VLAN identifier identifies a second clock domain that is different from the clock domain.
- Claim 12Depends on #1
The system of claim 1 wherein the vCDs outnumber the CDs.
- Claim 13Independent Claim
A method comprising: storing a map that 1) associates a plurality of vCDs with a plurality of hardware clocks and 2) associates the hardware clocks with a plurality of clock domains (CDs); synchronizing one of the hardware clocks to a reference clock in response to receiving a network clock domain packet that includes a clock domain identifier of one of the CDs and an origin timestamp produced by the reference clock; and mapping from a vCD identifier to the one of the hardware clocks to provide a hardware timestamp value produced by the one of the hardware clocks to a process that is in the one of the vCDs, wherein the map associates the one of the hardware clocks with the one of the CDs and the one of the vCDs.
- Claim 14Depends on #13
The method of claim 13, further including instantiating an additional one of the CDs in response to receiving virtual clock domain instantiation data.
- Claim 15Depends on #13
The method of claim 13 wherein the process is a VM running on a host computer and wherein VMs running on the host computer are prevented from manipulating the one of the hardware clocks.
- Claim 16Depends on #15
The method of claim 15 wherein the network clock domain packet is received on a virtual local area network (VLAN) that is configured to exclude network traffic to or from any one of the VMs.
- Claim 17Independent Claim
A system comprising: a network interface card (NIC) that includes a plurality of hardware clocks, a memory, and a processor, wherein the memory, the processor, and the hardware clocks are configured to provide a plurality of hardware timestamp values to a plurality of processes running in a plurality of virtual clock domains (vCDs) associated with a plurality of clock domains (CDs) by: storing a map that 1) associates the vCDs with the hardware clocks and 2) associates the hardware clocks with the CDs; synchronizing one of the hardware clocks to a reference clock in response to receiving a network clock domain packet that includes a clock domain identifier of one of the CDs and an origin timestamp produced by the reference clock; and providing a hardware timestamp value from the one of the hardware clocks to a process running in one of the vCDs, wherein the map associates the one of the hardware clocks with the one of the CDs and the one of the vCDs.
- Claim 18Depends on #17
The system of claim 17, wherein the NIC is configured to: receive virtual clock domain instantiation data for an additional virtual clock domain; and provide an additional hardware timestamp value based on the additional virtual clock domain.
- Claim 19Depends on #17
The system of claim 17, wherein the NIC is configured to: produce virtual clock domain instantiation data based on the map; and transmit the virtual clock domain instantiation data to an additional peripheral component card.
- Claim 20Depends on #17
The system of claim 17, wherein the NIC is configured to be installed in a host computer running a virtual machine (VM) and to provide a local hardware clock quality metric to the VM.
Technical Overview & Description
TECHNICAL FIELD The embodiments relate to precision time protocol, computer networks, local area networks, network appliances such as routers, switches, network interface cards (NICs), smart NICs, distributed service cards (DSCs), and providing synchronized clocks within virtualized clock domains as a service. BACKGROUND The precision time protocol (PTP) has been standardized by the Institute of Electrical and Electronics Engineers (IEEE) in standards including IEEE-1588-2002, IEEE 1588-2008, and IEEE 1588-2019. PTP is used to synchronize clocks throughout a computer network. Such synchronization is used in many applications such as synchronizing output signals, timestamping or synchronizing measurements at disparate locations, coordinating events, etc. Using PTP a number of ordinary clocks can be synchronized to a reference clock. The synchronization can be sub microsecond. The PTP standard also provides for clock domains (CDs). PTP message headers include a 1-byte clock domain identifier field and, as such, there may be up to 256 reference clocks for 256 CDs each having numerous clocks synchronized within their respective clock domains. BRIEF SUMMARY OF SOME EXAMPLES The following presents a summary of one or more aspects of the present disclosure, in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated features of the disclosure and is intended neither to identify key or critical elements of all aspects of the disclosure nor to delineate the scope of any or all aspects of the disclosure. Its sole purpose is to present some concepts of one or more aspects of the disclosure as a prelude to the more detailed description that is presented later. One aspect of the subject matter described in this disclosure can be implemented in a method. The method can include maintaining a hardware clock within a host computer, receiving a network clock domain packet that includes a clock domain identifier and an origi
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (12)
Non-Patent Literature (10)
- IEEE,
- “
- IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems
- ”
- , IEEE Std 1588
- ™
- _2019; Nov. 7, 2019, 500 pgs.
- Wikipedia,
- “
- Network address translation