IP网络技术基础-路由协议详解

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Static Route
• Uses a route that a network administrator enters into the router manually
Dynamic Route
• Uses a route that a network routing protocol adjusts automatically for topology or traffic changes
路由表: 10.10.10.0/24 via 10.10.9.1
4
What Is Routing?
To route, a router needs to do the following: • Know the destination address • Identify the sources it can learn from • Discover possible routes • Select the best route • Maintain and verify routing information
5
What Is Routing? (Cont.)
• Routers must learn destinations that are not directly connected.
6
路由
Static Default Dynamic (1) 信息的传播 (2) 路由的计算
7
Identifying Static and Dynamic Routes
按作用原理分:
距离矢量: distance vector 链路状态: link - state
12
Autonomous Systems: Interior or Exterior Routing Protocols
• An autonomous system is a collection of networks under a common administrative domain. • IGPs operate within an autonomous system.
10
Default Routes
• This route allows the stub network to reach all known networks beyond router A.
11
路由协议种类
按应用范围分: IGP :Interior gateway protocol EGP:exterior gateway protocol
BGP
B
C
AS 64520
A
BGP AS 65250
F
AS 65500
BGP
D
E
• BGP is used between autonomous systems • Guarantees exchange of loop-free routing information
29
BGP Characteristics
IP Header
Protocol Number
Packet Payload
TCP Header
Port No.
Segment Payload
C R C
BGP is an advanced distance vector routing protocol
• Relies on TCP for reliable session management
32
Peers = Neighbors
Neighbors
AS 65500
B C
Neighbors A
AS 65000
• Any two routers that have formed a TCP connection in order to exchange BGP routing information are called peers or neighbors
• Designed to scale to huge internetworks (for example, the Internet)
30
BGP in IP Packets
6—TCP 17— UDP Frame Header
Frame Payload
179—BGP 23— Telnet 25— SMTP
15
相关内容
路由更新: 定期更新 路由计算: 路由收敛: 缺点: 收敛慢、路由回环、路由表全部更新 hop 或复合
优化措施:毒性翻转、 水平分割、触发更新
增强型距离矢量协议
16
典型协议
RIP IGRP EIGRP
17
链路状态路由协议
当路由器初始化或当网络结 构发生变化时,路由器会产 生链路状态广播数据包 LSA ( Link-State Advertisement)
Link-State Routing Protocol Algorithms
23
Benefits of Link-State Routing
•源自文库Fast convergence: changes are reported immediately by the source affected. • Robustness against routing loops: – Routers know the topology. – Link-state packets are sequenced and acknowledged. • By careful (hierarchical) network design, you can utilize resources optimally.
use a distributed route calculation
链路状态路由协议: information distributed unchanged ;
each router perform a local best-path calculation
26
BGP协议
Border Gateway Protocol 广泛应用于目前Internet上 路径矢量 IBGP ,EBGP 路由对等体 策略
27
Autonomous Systems
IGPs: RIP, IGRP, OSPF, EIGRP EGPs: BGP
Autonomous System 65000 Autonomous System 65500 • An autonomous system (AS) is a collection of networks under a single technical administration
• Uses TCP port number 179
31
Tables
IGP Routing Protocol
BGP Routing Protocol
IP
BGP
• BGP has its own table, in addition to the IP routing table
• Information can be exchanged between the two tables
After initial flood, pass small event-triggered link-state updates to all other routers
21
Link-State Network Hierarchy Example
• Minimizes routing table entries • Localizes impact of a topology change within 22 an area
所有路由器会通过一种被称 为刷新( Flooding )的方法 来交换链路状态数据。
路由协议收敛以后,所有的 路由器会根据其各自的链路 状态信息数据库计算出各自 的路由表。
18
相关内容
SPF算法 层次结构 Metric
19
典型协议
OSPF IS-IS
20
Link-State Routing Protocols
8
Static Routes
• Configure unidirectional static routes to and from a stub network to allow communications to occur.
9
Static Route Example
• This is a unidirectional route. You must have a route configured in the opposite direction.
• Neighbors should be directly connected
35
Policy-Based Routing
• BGP allows administrators to define policies, or rules, for how data will flow through the autonomous systems
34
External BGP
IBGP Neighbors
AS 65500
B C
EBGP Neighbors
A
AS 65000
• When BGP neighbors belong to different autonomous systems it is called external BGP (EBGP)
• EGPs connect different autonomous systems.
13
Administrative Distance: Ranking Routes
14
距离矢量路由协议
初始化时,所有路由器 在本机形成与本地直接连 接的链路记录 路由器向所有相连的路由 器广播路由表内已有的记 录 路由器向外广播接收到的 路由信息,再在邻路由器 形成记录
路由协议基础
内容
路由协议基本介绍
静态路由协议及 动态路由协议 路由协议分类 常用路由协议
2
概念
Internet
: inter + network
路由器( router ):
路由协议 :
route + er
routing protocol
3
概念
地址 AS
: 10.10.10.10 /24 : Autonomous system
36
BGP Attributes
BGP attributes include:
• AS-path
• Next-hop • Local preference • Multi-exit discriminator (MED) • Origin
24
Drawbacks to Link-State Routing Protocols
• Initial discovery may cause flooding. • Memory- and processor-intensive.
25
距离矢量VS链路状态
距离矢量路由协议: share information locally
BGP is a distance vector protocol with enhancements:
• Reliable updates—BGP runs on top of TCP (port 179) • Incremental, triggered updates only • Periodic keepalives to verify TCP connectivity • Rich metrics (called path vectors or attributes)
• IGPs operate within an autonomous system • EGPs connect different autonomous systems
28
BGP Is Used Between Autonomous Systems
• Routing Table Prefixes AS 020501 104,027B 65000
33
Internal BGP
IBGP Neighbors
AS 65500
B C
Neighbors
A
AS 65000
• When BGP neighbors belong to the same AS it is called internal BGP (IBGP) • Neighbors do not have to be directly connected
相关文档
最新文档