BGP路由协议-HuangYW.ppt
文本预览下载声明
BGP路由协议 东软网络安全事业部 BGP 简介 自治系统(AS) BGP 用于不同的自治系统之间 应用BGP的条件 在下列情况下,采用BGP是合适的: 1、需要与其他自治域通信 2、与其他自治域的连接是多归路的 3、需要对流入/流出本域的流量做控制 目前INTERNET的规模 骨干上的路由器: 路由表的大小超过 30 Mb 超过 70,000 条路由 超过 6,500 AS 号 RIP 静态路由举例 OSPF 静态路由举例 BGP 的术语 BGP 协议的特点 BGP 是一种增强了的距离向量协议: 连接可靠—BGP 运行在 TCP协议之上 (port 179) 仅在条件被触发时通告路由更新 有周期性的机制保证连接的可靠 非常丰富的属性 为超大型网络设计 路由表 内部BGP——IBGP 外部 BGP——EBGP BGP属性(Attributes) BGP metrics称为path attributes 典型的 attributes 包括: Well-known versus optional Mandatory versus discretionary Transitive versus non-transitive Partial BGP Attributes As-path Attribute Next-hop Attribute Multiaccess网络环境中 Next-Hop属性 在NBMA网络环境下的Next-Hop Local Preference Attribute MED Attribute Origin Attribute Community Attribute Communities are a means of tagging routes to ensure consistent filtering or route-selection policy Any BGP router can tag routes in incoming and outgoing routing updates, or when doing redistribution Any BGP router can filter routes in incoming or outgoing updates, or select preferred routes based on communities (the tag) By default, communities are stripped in outgoing BGP updates Weight Attribute (Cisco专有属性) BGP 信息同步 BGP 的实现 BGP定义了以下message类型: Open 包括 hold time 和 BGP router ID Keepalive Update 仅包含一条path的信息 (可以是多个网络) 包含了 path 的attributes 和所能到达的网络 Notification 当有错误发生时 当发送完毕后就关闭BGP连接 BGP Message 类型 路由选路决策过程(10条规则) Consider only (synchronized) routes with no AS loops and a valid next-hop, and then: Prefer highest weight (local to router) Prefer highest local preference (global within AS) Prefer route originated by the local router Prefer shortest AS-path Prefer lowest origin code (IGP EGP incomplete) Prefer lowest MED (from other AS) Prefer EBGP path over IBGP path Prefer the path through the closest IGP neighbor Prefer oldest route for EBGP paths Prefer the path with the lowest neighbor BGP router ID CIDR和地址汇聚 AS 64500 /24 AS 65500 /16 当通过AS时可以进行路由汇聚 AS 65000 AS 65250 /24 D B C A 19 * Neusoft Co., Ltd. 2005年11月 ? 2000, Cisco Systems, Inc. 7-* Auto
显示全部