Add SNTP/NTP Time Synchronization
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
该 issue 未指定文件、测试或入口点;首先定位 FeOS 的启动、调度、网络和 DHCPv6 组件。完成标准是:启动和 24 小时同步能够正常工作,DHCPv6 Option 56 优先于 pool.ntp.org,能够处理重试和网络故障,并记录源和错误。
由索引模型根据 Issue 内容生成。
描述
Description
FeOS currently lacks automatic time synchronization. The system should regularly synchronize its time via SNTP/NTP to ensure accurate timekeeping across all operations.
Requirements
Time Synchronization Schedule
- Perform initial time synchronization at system startup
- Repeat synchronization every 24 hours thereafter
NTP Server Selection Strategy
The system should implement a priority-based approach for selecting NTP servers:
-
Primary: Query NTP server information via DHCPv6 (Option 56)
- If the DHCP server provides NTP server information, use these servers
-
Fallback: Use public NTP pool servers
- Default to
pool.ntp.orgif no DHCPv6 NTP information is available
- Default to
Technical Details
- Protocol: SNTP (Simple Network Time Protocol) or NTP
- DHCPv6 Option: Option 56 (OPTION_NTP_SERVER) as defined in RFC 5908
- Default NTP pool:
pool.ntp.org
Acceptance Criteria
- System performs time synchronization on boot
- System synchronizes time every 24 hours via a scheduled service/timer
- System queries DHCPv6 for NTP server information (Option 56)
- System uses DHCPv6-provided NTP servers when available
- System falls back to public NTP pool when no DHCPv6 NTP information is provided
- Time synchronization errors are logged appropriately
Implementation Considerations
- Ensure proper error handling when NTP servers are unreachable. Retry every few minutes in case of failure (e.g. network down).
- Log which NTP server source is being used (DHCPv6 vs. fallback and server address)
- Handle network availability at boot time gracefully
Related
- RFC 5908: Network Time Protocol (NTP) Server Option for DHCPv6
- 主要语言
- Rust
- 星标
- 24
- 派生
- 9
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ironcore-dev/FeOS 的其他 Issue
-
area/operatingsystem
难度 3/5 1-2 天 新手友好度 45/100
ironcore-dev/FeOS#103 ·
-
area/operatingsystem
难度 5/5 一周以上 新手友好度 25/100
ironcore-dev/FeOS#106 ·
-
area/operatingsystem
难度 5/5 一周以上 新手友好度 25/100
ironcore-dev/FeOS#107 ·
-
Improve Host Management可能重新可做 @friegger 于 285 天前认领,目前没有进行中的 PR。 未关闭area/operatingsystem
ironcore-dev/FeOS#108 · 已指派 1 人 ·
-
area/operatingsystem
难度 5/5 一周以上 新手友好度 25/100
ironcore-dev/FeOS#109 ·
查看 ironcore-dev/FeOS 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
farion1231/cc-switch#8829 ·
维护者通常 1 天内回复
-
bug ci good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
longbridge/gpui-kit#3677 ·
维护者通常 1 天内回复
-
E-pr-welcome
难度 2/5 1-3 小时 新手友好度 77/100
seanmonstar/reqwest#3121 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
ilya-zlobintsev/LACT#1235 ·
维护者通常 1 天内回复