BGP的NOTIFICATION报文格式
网络协议报文格式大全http://bbs.hh010.com/thread-531884-1-1.html
(出处: 鸿鹄论坛)
BGP的NOTIFICATION报文格式如果BGP报文头中的TYPE为3,则该报文为NOTIFICATION报文。报文头后面所接的报文内容如下(RFC 4271),NOTIFICATION报文用于处理BGP进程中的各种错误。图1 NOTIFICATION报文格式
http://www.023wg.com/message/message/image/bgp-format-NOTIFICATION.png
各字段解释如下:
[*]Error code:占1个字节(无符号位),定义错误的类型,非特定的错误类型用零表示。
[*]Error subcode:占1个字节(无符号位),指定错误细节编号,非特定的错误细节编号用零表示。
[*]Data:指定错误数据内容。
错误码错误子码
1:消息头错误1:连接未同步
2:错误的消息长度
3:错误的消息类型
2:Open消息错误1:不支持的版本号
2:错误的对等AS
3:错误的BGP标识符
4:不支持的可选参数
5:认证失败
6:不可接受的保持时间
7:不支持的能力
3:Update消息错误1:畸形属性列表
2:不可识别的公认属性
3:缺少公认属性
4:属性标志错误
5:属性长度错误
6:无效Origin属性
7:AS路由环路
8:无效Next_Hop属性
9:可选属性错误
10:无效网络字段
11:畸形AS_Path
4:Hold Timer溢出0:没有特别的错误子码定义。
5:有限状态机错误0:没有特别的错误子码定义。
6:终止1:前缀超过最大值。
2:管理关闭
3:删除邻居
4:管理重置
5:连接失败
6:其他配置改变
7:连接冲突
8:资源短缺
9:BFD断开连接
Error CodeError Subcode
1: Message header error1: connection not synchronized
2: error message length
3: error message type
2: Open message error1: unsupported version number
2: error peer AS
3: error BGP identifier
4: unsupported optional parameter
5: authentication failed
6: unacceptable Holdtime
7: unsupported capability
3: Update message error1: malformed attribute list
2: unrecognized well-known attribute
3: well-known attribute is missing
4: attribute flags error
5: attribute length error
6: invalid origin attribute
7: AS routing loop
8: invalid Next-Hop attribute
9: error optional attribute
10: invalid network field
11: abnormal AS-Path
4: Hold timer expired0: no special definition of the error subcode
5: Finite state machine error0: no special definition of the error subcode
6: Cease1: maximum number of prefixes reached
2: administrative shutdown
3: peer de-configured
4: administrative reset
5: connection rejected
6: other configuration change
7: connection collision resolution
8: out of resources
9: BFD session Down
报文实例http://www.023wg.com/message/message/image/BGP-header_NOTIFICATION.png
参考标准
标准描述
RFC 827Exterior Gateway Protocol (EGP)
RFC 2918Route Refresh Capability for BGP-4
RFC 4271A Border Gateway Protocol 4 (BGP-4)
感謝版主! dddddddddddddd
页:
[1]