附录 D - 认证字段的使用
认证 (Authentication) 字段的使用不在本规范的范围之内. 然而, 目前迫切需要简单的差错检测/认证机制 (例如简单口令) 来防范某些类型的错误. 因此, 本附录提出该字段的一种可能用法.
本附录的纳入仅用于资料性目的.
D.1 ISIS 包中的认证字段
所有 ISIS 包都可以可选地包含认证字段, 如本规范第 3.9 节和第 5 节所述. 如第 5 节所述, 认证字段按 (Code, Length, Value) 三元组进行编码. 本附录建议: Value 字段的内容由一个一字节 (one octet) 的 "认证类型 (Authentication Type)" 字段, 加上一个变长的 "认证信息 (Authentication Information)" 字段组成. "认证类型" 的一个特定取值被分配给以明文方式传输 (即不经加密) 的口令. 认证字段按如下方式编码:
7 认证信息 (Authentication Information) -- 用于认证该 PDU 的信息
x CODE (代码) - 133
x LENGTH (长度) - 值字段的总长度
x VALUE -
No. of Octets
+--------------------------------+
| Authentication Type | 1
+--------------------------------+
| Authentication Information | VARIABLE
+--------------------------------+
认证类型的取值分配如下:
Type = 0 reserved
Type = 1 simple password
Type > 1 reserved
D.2 认证类型 1 - 简单口令
使用这种认证类型时, 一个变长口令以明文方式 (即不经加密) 在认证信息字段中传送.
警告: 使用简单口令并不能针对故意的错误行为提供有效的防护. 特别是, 由于口令是以明文方式传输而不经加密的, 恶意系统很容易截获这些口令, 并发送经过认证的包. 使用简单口令只应被视为针对意外错误 (例如意外的错误配置) 的一种弱保护措施.
口令应按每条链路, 每个区域和每个域分别进行配置. 具体来说, 当使用这种形式的认证时:
-
ISIS Hello 包和 9542 IS Hello 包应包含按链路配置的口令
-
1 级链路状态包 (Level 1 Link State Packets) 应包含按区域配置的口令
-
2 级链路状态包 (Level 2 Link State Packets) 应包含按域配置的口令
-
1 级序列号包 (Level 1 Sequence Number Packets) 应包含按区域配置的口令
-
2 级序列号包 (Level 2 Sequence Number Packets) 应包含按域配置的口令
此外, 这三个口令中的每一个都应配置: (i) "发送口令 (Transmit Password)", 其值为单个口令; 以及 (ii) "接收口令 (Receive Passwords)", 其值为一组口令. 发送口令值总是被发送出去. 然而, 包含在接收口令集合中的任何口令在收到时都将被接受. 这种方法允许在不会临时丢失连通性的情况下平滑地更改口令.
For example, consider the case that an area has the configured area
password "OLDAREAPASSWORD". In this case, the per-area transmit
password value is set to OLDAREAPASSWORD, and the per-area receive
password value is set to {OLDAREAPASSWORD}. Suppose that it is
desired to change the per-area password to "NEWERPASSWORD". The
first step would be to manually configure all of the routers in the
area to set the per-area receive password value to {OLDAREAPASSWORD,
NEWERPASSWORD}. When this step is complete, then all routers in the
area will still be using the old password OLDAREAPASSWORD in their
level 1 LSPs and SNPs. However, they will also accept the alternate
password NEWERPASSWORD. The second step would be to configure the
routers in the area to set the per-area transmit password to
NEWERPASSWORD. When the second step is complete, then all routers
will be using the new value of the per-area password, but will accept
the old value as well. Finally, the third step is to change all
routers in the area to have the per-area receive password set to
{NEWERPASSWORD}.
通过以这种方式配置口令的发送值与接收值, 就有可能维持持续正确的运行. 例如, 在上述示例的第二步进行过程中, 该区域内的部分路由器将使用旧口令 OLDAREAPASSWORD 发送 1 级 LSP 和 SNP, 而另一部分路由器将使用新口令 NEWERPASSWORD 发送 1 级 LSP 和 SNP. 然而, 在转换的第二步期间, 该区域内的所有路由器都会接受使用其中任一口令的 1 级 LSP 和 SNP.