跳到主要内容

附录 A. EGP 消息格式(A.5)

A.5 EGP 错误消息​

 0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
! EGP Version # ! Type ! Code ! Unused !
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
! Checksum ! Autonomous System # !
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
! Sequence # ! Reason !
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
! !
! Error Message Header !
! (first three 32-bit words of EGP header) !
! !
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

说明:

EGP 错误消息作为对校验和错误或某个字段取值不正确的 EGP 消息的响应而发送。

EGP Version #(EGP 版本号)

2

Type(类型)

8

Code(代码)

0

Checksum(校验和)

EGP 校验和是 EGP 消息(从 EGP 版本号字段开始)的反码和的 16 位反码。计算校验和时,校验和字段应为零。

Autonomous System #(自治系统号)

这个 16 位数字标识包含本消息源网关的自治系统。

Sequence Number(序列号)

由发送该错误消息的网关分配的序列号。

Reason(原因)

EGP 消息出错的原因。定义了以下原因:

0  -  unspecified
1 - Bad EGP checksum
2 - Bad IP Source address in NR Poll or Response
3 - Undefined EGP Type or Code
4 - Received poll from non-neighbor
5 - Received excess unsolicted NR message
6 - Received excess poll
7 - Erroneous counts in received NR message
8 - No response received to NR poll