设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 1253|回复: 2
收起左侧

[分享] BGP的NOTIFICATION报文格式

[复制链接]
 成长值: 59560
发表于 2017-11-24 10:33:58 | 显示全部楼层 |阅读模式
网络协议报文格式大全
http://bbs.hh010.com/thread-531884-1-1.html
(出处: 鸿鹄论坛)


BGP的NOTIFICATION报文格式
如果BGP报文头中的TYPE为3,则该报文为NOTIFICATION报文。报文头后面所接的报文内容如下(RFC 4271),NOTIFICATION报文用于处理BGP进程中的各种错误。
图1 NOTIFICATION报文格式

                               
登录/注册后可看大图

各字段解释如下:
  • 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 Code
Error Subcode
1: Message header error
1: connection not synchronized
2: error message length
3: error message type
2: Open message error
1: 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 error
1: 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 expired
0: no special definition of the error subcode
5: Finite state machine error
0: no special definition of the error subcode
6: Cease
1: 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

报文实例

                               
登录/注册后可看大图

参考标准
标准描述
RFC 827Exterior Gateway Protocol (EGP)
RFC 2918Route Refresh Capability for BGP-4
RFC 4271A Border Gateway Protocol 4 (BGP-4)





发表于 2020-2-2 21:20:37 | 显示全部楼层
dddddddddddddd
板凳 2020-2-2 21:20:37 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-5-22 21:57 , Processed in 0.055853 second(s), 9 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表