常见问题解答
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
常规
什么是 Google 公共 NTP?
Google 公共 NTP 是一项免费的全球时间服务,可用于与 Google 的原子钟同步。它实现了闰秒平滑处理,可顺畅处理闰秒,避免中断。
为什么 Google 要开发 NTP 服务?
时间同步对我们而言至关重要,而 NTP 是目前为止应用最广泛的时间同步协议。一般来说,NTP 的效果非常好。不过,我们知道许多 NTP 服务器无法正确播报闰秒,而且即使通过 NTP 播报了闰秒,许多系统也无法正确处理闰秒。
自 2008 年以来,我们通过“涂抹”闰秒在内部解决了这个问题,即在闰秒前后数小时内逐渐调整时间。这种方法效果非常好。在推出 Google Compute Engine 时,我们开始通过 NTP 向客户的虚拟机提供模糊时间。Google 公共 NTP 可让全球联网设备使用此服务。
Google 员工是否在使用 Google 公共 NTP?
可以。我们使用 Google 公共 NTP 来设置笔记本电脑、工作站、路由器和许多其他设备上的时钟。Google Fiber 客户也会使用此应用。
Google 公共 NTP 是否存在任何跨产品依赖项?
不是。Google 公共 NTP 是一项独立的服务。
我需要有 Google 账号才能使用 Google 公共 NTP 吗?
否。
使用和支持
如何使用 Google Public NTP?
将设备配置为使用 NTP 服务器 time.google.com
或四个服务器 time1.google.com
、time2.google.com
、time3.google.com
和 time4.google.com
。如果您无法配置多个服务器,time.google.com
会自动选择附近合适的 Google 服务器。
我们提供了适用于许多主流操作系统的详细说明。
我现在使用的是其他 NTP 服务。我还可以使用 Google 公共 NTP 吗?
建议您不要混用涂抹型和非涂抹型 NTP 服务器。在闰秒期间,结果可能无法预测。
Google 公共 NTP 是否适用于所有类型的联网设备?
可以。任何支持 NTP 或 SNTP 版本 3 或 4 的设备都可以使用 Google 公共 NTP。如果您发现 Google 公共 NTP 无法正常运行的任何情况,请告知我们。
Google 公共 NTP 在哪些国家/地区可用?
全球互联网用户都可以使用 Gemini,但您的体验可能会因具体位置而异。
Google 公共 NTP 是否适用于所有 ISP?
Google 公共 NTP 应该适用于大多数 ISP,前提是您有权更改 NTP 设置。
我是否需要使用所有四个 Google 公共 NTP 服务器名称?
不可以。您可以使用 time.google.com
自动定向到附近的服务器。
指定服务器名称的顺序是否重要?
没关系,顺序无关紧要。
相应服务的 SLA 是什么?
目前,我们不为此服务提供服务等级协议 (SLA)。
《服务条款》是什么?
Google 公共 NTP 受 Google API 服务条款约束。
我正在运行 ISP 或企业网络。我可以将所有用户重定向到 Google 公共 NTP 吗?
可以。我们可以接受来自任意数量 NTP 客户端的流量。但目前,Google 公共 NTP 是一项没有 SLA 的服务。
我可以在商业项目或产品中使用 Google 公共 NTP 吗?
可以,但需遵守我们的服务条款。Google 公共 NTP 是一项没有 SLA 的服务;我们不对可用性或准确性做出任何承诺。
我为组织运行 NTP 服务器。我可以将其与 Google 公共 NTP 同步吗?
是。
我可以在 Google Compute Engine 实例中使用 Google 公共 NTP 吗?
可以,但使用metadata.google.internal
(详细说明)可获得更好的结果。
该虚拟服务器的时间服务与 Google 公共 NTP 的时间服务相同。
我可以在其他云服务提供商处运行的虚拟机中使用 Google 公共 NTP 吗?
是。
如何从 Google 公共 NTP 团队获得支持?
建议您加入我们的 Google 群组,以便及时了解团队的最新动态,并提出您遇到的任何问题。如果您遇到问题并想报告,请参阅报告问题了解相关程序。
技术
是否有关于跳跃涂抹的更多详细信息?
有,您可以点击此处了解详情。
Google 公共 NTP 如何使用“闰秒指示器 (LI)”字段?
Google 公共 NTP 始终将 LI 字段设置为 0,因为闰秒是在服务器端使用弥补功能应用的。
您的服务器目前位于何处?
Google 公共 NTP 服务器位于北美洲、欧洲和亚洲的多个数据中心。
Google 公共 NTP 是否支持 IPv6?
是。
Google 公共 NTP 是否支持 Autokey 或 NTS?
否。
如果您对安全的时间分发感兴趣,不妨了解一下 Chrome 团队的实验性项目 Roughtime。Roughtime 还不是高精度时间服务,但它是一项提供可信时间的实验。
Google 公共 NTP 是否支持 SNTP 客户端?
是。
Google 公共 NTP 是否支持 Windows 时间客户端?
是。
Google 公共 NTP 是否支持模式 6 或模式 7 控制消息?
不会,它不会响应控制消息,例如由 ntpq
或 ntpdc
发送的消息。
Google 公共 NTP 是否会被滥用于 NTP 放大攻击?
否。
NTP 放大攻击使用 NTP 控制消息。Google Public NTP 仅响应客户端时间查询,并发送大小与请求类似的回复。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eGoogle Public NTP is a free, global time service that synchronizes devices to Google's atomic clocks using leap smear for smooth leap second handling.\u003c/p\u003e\n"],["\u003cp\u003eIt is available worldwide to any device supporting NTP or SNTP versions 3 or 4, accessible by configuring devices to use \u003ccode\u003etime.google.com\u003c/code\u003e or the four individual server addresses.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Public NTP is an independent service covered by Google API Terms of Service, and while suitable for commercial use, it is offered without an SLA.\u003c/p\u003e\n"],["\u003cp\u003eGoogle smears the leap second over a longer period, so mixing Google Public NTP with other non-smeared NTP services is not recommended.\u003c/p\u003e\n"],["\u003cp\u003eSupport and updates are available through the Google Groups dedicated to Google Public NTP, and detailed technical information, including leap smear details, can be found on the associated webpages.\u003c/p\u003e\n"]]],["Google Public NTP is a free, global time service using Google's atomic clocks, designed to smoothly handle leap seconds through a \"leap smear\" method. Users can synchronize devices by configuring them to `time.google.com` or `time[1-4].google.com`. It is an independent service that supports NTP/SNTP v3/4 clients, IPv6, and is accessible worldwide. The service doesn't support Autokey, NTS, or control messages, and is safe from NTP amplification attacks. There is no SLA, but traffic from all users is accepted.\n"],null,["# Frequently Asked Questions\n\nGeneral\n-------\n\n### What is Google Public NTP?\n\nGoogle Public NTP is a free, global time service that you can use to synchronize\nto Google's atomic clocks. It implements the [leap smear](/time/smear) to\nsmoothly handle leap seconds without disruptions.\n\n### Why is Google working on an NTP service?\n\nTimekeeping is important to us, and NTP is by far the most widely used time\nsynchronization protocol. In general, NTP works very well. However, we know that\n[many NTP servers do not correctly announce leap seconds](https://scholar.google.com/scholar?q=10.1007%2F978-3-319-30505-9_29),\nand that even when they are announced through NTP,\n[many systems do not correctly handle the leap](https://www.wired.com/2012/07/leap-second-glitch-explained/).\n\nSince 2008, we've addressed this problem internally by \"smearing\" the leap\nsecond, stretching out the change across the hours around the leap. This has\nworked very well. When we launched Google Compute Engine, we started providing\nsmeared time via NTP to customers' virtual machines. Google Public NTP makes\nthis available globally to Internet-connected devices.\n\n### Are Googlers using Google Public NTP?\n\nYes. We use Google Public NTP to set the clocks on our laptops, workstations,\nrouters, and many other devices. It's also used by Google Fiber customers.\n\n### Are there any cross-product dependencies with Google Public NTP?\n\nNo. Google Public NTP is an independent service.\n\n### Do I need a Google Account to use Google Public NTP?\n\nNo.\n\nUse and support\n---------------\n\n### How do I use Google Public NTP?\n\nConfigure your devices to use either the NTP server `time.google.com` or the\nfour servers `time1.google.com`, `time2.google.com`, `time3.google.com`, and\n`time4.google.com`. If you cannot configure multiple servers, `time.google.com`\nwill automatically select an appropriate Google server nearby.\n\nWe have [detailed instructions](/time/guides) for many popular operating\nsystems.\n\n### I am using another NTP service now. Can I also use Google Public NTP?\n\nWe recommend that you do not mix smeared and non-smeared NTP servers. The\nresults during a leap second may be unpredictable.\n\n### Is Google Public NTP suitable for all types of Internet-enabled devices?\n\nYes. Google Public NTP can be used on any device that supports NTP or SNTP\nversions 3 or 4. If you find any situation where Google Public NTP does not work\nwell, [let us know](/time/support#issues).\n\n### In which countries is Google Public NTP available?\n\nIt is available to Internet users around the world, though your experience may\nvary greatly based on your specific location.\n\n### Does Google Public NTP work with all ISPs?\n\nGoogle Public NTP should work with most ISPs, assuming you have access to change\nyour NTP settings.\n\n### Do I need to use all four Google Public NTP server names?\n\nNo. You can use `time.google.com` to be directed automatically to a nearby\nserver.\n\n### Does it matter in what order I specify the server names?\n\nNo, the order does not matter.\n\n### What is the SLA for the service?\n\nWe are not providing an SLA for this service at this time.\n\n### What are the Terms of Service?\n\nGoogle Public NTP is covered by the\n[Google API Terms of Service](https://developers.google.com/terms/).\n\n### I'm running an ISP or enterprise network. Can I redirect all my users to Google Public NTP?\n\nYes. We can accept traffic from any number of NTP clients. But at this time,\nGoogle Public NTP is a service without an SLA.\n\n### Can I use Google Public NTP for my commercial project or products?\n\nYes, subject to our [terms of service](#tos). Google Public NTP is a service\nwithout an SLA; we do not provide any commitments about availability or\naccuracy.\n\n### I run an NTP server for my organization. Can I synchronize it to Google Public NTP?\n\nYes.\n\n### Can I use Google Public NTP from Google Compute Engine instances?\n\nYes, but you will get better results by using `metadata.google.internal`\n([detailed instructions](https://cloud.google.com/compute/docs/instances/managing-instances#configure_ntp_for_your_instances)).\nTime service from that virtual server is smeared identically to Google Public\nNTP.\n\n### Can I use Google Public NTP from virtual machines running at other cloud providers?\n\nYes.\n\n### How can I get support from the Google Public NTP team?\n\nWe recommend that you join our [Google Groups](/time/support#groups) to get\nupdates from the team and ask any questions you have. If you are encountering a\nproblem and would like to report it, see\n[Reporting issues](/time/support#issues) for procedures.\n\nTechnical\n---------\n\n### Are there more details about the leap smear?\n\nYes, we have [more information here](/time/smear).\n\n### How does Google Public NTP use the Leap Indicator (LI) field?\n\nGoogle Public NTP always sets the LI field to 0, because the leap second is\napplied on the server side using the smear.\n\n### Where are your servers currently located?\n\nGoogle Public NTP servers are available in several of our data centers in North\nAmerica, Europe, and Asia.\n\n### Does Google Public NTP support IPv6?\n\nYes.\n\n### Does Google Public NTP support Autokey or NTS?\n\nNo.\n\nIf you are interested in secure time distribution, you may also want to look at\n[Roughtime](https://roughtime.googlesource.com/roughtime), an experimental\nproject from the Chrome team. Roughtime is not yet a high-precision time\nservice, but it is an experiment in providing trusted time.\n\n### Does Google Public NTP support SNTP clients?\n\nYes.\n\n### Does Google Public NTP support Windows Time clients?\n\nYes.\n\n### Does Google Public NTP support mode 6 or mode 7 control messages?\n\nNo, it will not respond to control messages, such as those sent by `ntpq` or\n`ntpdc`.\n\n### Could Google Public NTP be abused for NTP amplification attacks?\n\nNo.\n[NTP amplification attacks](https://blog.cloudflare.com/understanding-and-mitigating-ntp-based-ddos-attacks/)\nuse NTP control messages. Google Public NTP responds only to client time\nqueries, and sends replies that are similar in size to the request."]]