BGP路由协议-CISCO设备.ppt
《BGP路由协议-CISCO设备.ppt》由会员分享,可在线阅读,更多相关《BGP路由协议-CISCO设备.ppt(33页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、BGPBGP路由路由协议BGP Autonomous Systems An AS is a collection of networks under a single technical administration.(自治系统经典定义:在单一技术下管理下,采用同一种内部网关协议和统一度量值在AS内转发数据包,并采用一种外部协议将数据包转发到其他AS的一组路由器.)IGPs operate within an AS.BGP is used between Autonomous Systems.Exchange of loop-free routing information is guaran
2、teed.(BGP的主要目标是提供一种能够保证自治系统间无环路的路由选择信息交换的域间路由系统.)BGP Characteristics(特征)nBGP is a distance-vector protocol with the following enhancements:uReliable updates:BGP runs on top of TCP(port 179;可靠通信.)uIncremental,triggered updates only(增量更新,触发更新)uPeriodic keepalive messages to verify TCP connectivity(周期性
3、通过keepalive包发送消息.)uRich metrics(called path vectors or attributes,丰富的计量值,一一比较,BGP中称为属性;类似于IGP中的开销值.)uDesigned to scale to huge internetworks(e.g.,the Internet;专门为大型互联网络而设计.)u支持VLSM可变长子网掩码。BGP Databases(数据表)uNeighbor table vList of BGP neighbors(BGP对等体,邻居,交换路径信息,与RIP类似.)v可以直连可以不直连.v邻居关系建立在TCP连接之上.uBG
4、P forwarding table/databasevList of all networks learned from each neighborvCan contain multiple pathways to destination networks vDatabase contains BGP attributes for each pathwayuIP routing tablevList of best paths to destination networks(列出了到目标网络的最佳路径)BGP表运行BGP的路由器保存着一个独立于IP路由表的BGP表.SHOW IP BGPSt
5、atus codes:s suppressed,d damped,h history,*valid,best,i-internalOrigin codes:i-IGP,e-EGP,?-incomplete Network Next Hop Metric LocPrf Weight Path*10.0.0.0 10.1.1.100 0 0 65200 iBGP Message TypesBGP defines the following message types:Open:(版本号4,AS号,保持时间,路由器ID)Includes holdtime and BGP router IDKeepa
6、live:(类似HELLO包)Update:(撤消路由,路径属性,网络层可达信息)Information for one path only(could be to multiple networks)Includes path attributes and networksNotification:(通告消息,检测到出错条件时,发送通知消息)When error is detectedBGP connection is closed after sentBGP StatesWhen establishing a BGP session,BGP goesthrough the followin
7、g steps:Idle(闲置状态):Router is searching routing table to see if a route exists to reach the neighbor.Connect(连接状态):Router found route and has completed three-way TCP handshake.Open sent(发送消息):Open message sent with the parameters(参数)for the BGP session.Open confirm(确认消息):Router received agreement on
8、the parameters for establishing session.Established(建立邻居,开始路由):Peering is established;routing begins.Peers=Neighbors A BGP peer,also known as a BGP neighbor,is a specific term that is used for BGP speakers that have established a neighbor relationship.Any two routers that have formed a TCP connectio
9、n to exchange BGP routing information are called peers or neighbors.Internal BGPIGBP refers to the presence of BGP neighbors within the same AS.The neighbors do not have to be directly connected.External BGP When BGP neighbors belong to different autonomous systems they are called EBGP.EBGP neighbor
10、s,by default,need to be directly connected.BGP PeeringRouterA#show ip bgp summaryBGP table version is 23,main routing table version 2310 network entries and 11 paths using 1242 bytes of memory4 BGP path attribute entries using 380 bytes of memoryBGP activity 23/13 prefixes,38/27 paths0 prefixes revi
11、sed.Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd10.1.1.100 4 65200 211 211 13 0 0 00:01:53 5192.168.1.18 4 65101 214 226 23 0 0 00:00:13 1192.168.1.34 4 65101 214 226 23 0 0 00:00:09 1192.168.1.50 4 65101 214 225 23 0 0 00:00:06 3BGP Commandsrouter bgp autonomous-system(64512-6
12、5535)Router(config)#This command,with no subcommands,does not activate BGP.(还需要其他子命令配合.)Only one instance of BGP can be configured on the router at a single time.(仅一个BGP进程,边界是链路.)The autonomous system number identifies the autonomous system to which the router belongs.The autonomous system number in
13、 this command is compared to the autonomous system numbers listed in neighbor statements to determine if the neighbor is an internal or external neighbor.(确定邻居关系)BGP neighbor Commandneighbor ip-address|peer-group-name remote-as autonomous-systemRouter(config-router)#The neighbor command activates a
14、BGP session with this neighbor.(只有指定邻居双方,才能建立会话.)The term remote-as shows what AS this neighbor is in.This AS number is used to determine if the neighbor is internal or external.(邻居AS号一样,为IBGP;不一样为EBGP.)This command is used for both external and internal neighbors.The IP address specified is the des
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- BGP 路由 协议 CISCO 设备
限制150内