3. 设计目标 (Design Goals)
Stateless autoconfiguration 的设计考虑了以下目标:
-
在将 individual machines 连接到网络之前, 不应要求手动配置它们. 因此, 需要一种机制, 允许 host 为其每个 interfaces 获取或创建 unique addresses. Address autoconfiguration 假定每个 interface 都可以为该 interface 提供唯一 identifier (即 "interface identifier"). 在最简单情况下, interface identifier 由该 interface 的 link-layer address 组成. interface identifier 可以与 prefix 组合形成 address.
-
由连接到单个 link 的一组 machines 组成的小型 sites, 不应要求存在 DHCPv6 server 或 router 作为通信前提. plug-and-play communication 通过使用 link-local addresses 实现. link-local addresses 具有 well-known prefix, 用于标识一组 nodes 所连接的 (单个) shared link. host 通过将 interface identifier 附加到 link-local prefix 来形成 link-local address.
-
具有多个 networks 和 routers 的大型 site 不应要求存在 DHCPv6 server 来进行 address configuration. 为生成 global addresses, hosts 必须确定标识其所连接 subnets 的 prefixes. Routers 会生成 periodic Router Advertisements, 其中包含列出 link 上 active prefixes 集合的 options.
-
Address configuration 应促进 site machines 的 graceful renumbering. 例如, 当 site 切换到新的 network service provider 时, 可能希望重新编号其所有 nodes. Renumbering 通过向 interfaces 租用 addresses 以及向同一 interface 分配多个 addresses 实现. Lease lifetimes 提供 site 逐步淘汰旧 prefixes 的机制. 向一个 interface 分配多个 addresses 提供了过渡期, 在此期间新 address 和正在淘汰的 address 可同时工作.