当前位置:网站首页>应用最广泛的动态路由协议:OSPF
应用最广泛的动态路由协议:OSPF
2022-06-12 22:55:00 【InfoQ】
什么是OSPF?
Open Shortest Path First 224.0.0.5224.0.0.6OSPF 术语
- 邻居:运行 OSPF 的连接(相邻)路由器,相邻接口分配给同一区域,邻居是通过 Hello 数据包找到的(除非手动配置)。
- 邻接:路由器与其对应的 DR 和 BDR 之间的逻辑连接,除非形成邻接关系,否则不会交换路由信息。
- LSA: 链路状态通告,数据包包含链路状态和路由信息,在 OSPF 邻居之间共享。
- DR:指定路由器,
- BDR:BDR 是广播网络中 DR 的备份。当 DR 宕机时,BDR 变为 DR 并执行其功能。
- 区域:区域用于建立分层网络。
- ABR:区域边界路由器。
- ASBR:自治系统边界路由器。
- NBMA:非广播多路访问。
- Router-ID:用于识别 OSPF 路由器的 IP 地址。
- 链路状态:两个路由器之间的链路状态。
- 成本:链路状态协议为每个链路分配一个称为成本的值。
OSPF 特点
- 无类路由协议
- 支持VLSM、CIDR、手动路由汇总、等价负载均衡
- 支持增量更新
- 仅使用一个参数作为度量标准:接口成本。
- OSPF 路由的管理距离默认为110。
- 使用多播地址
224.0.0.5和224.0.0.6进行路由更新。
OSPF 报文类型

Hello报文
- 邻居发现
- Keep Alive
DD报文
Database DescriptionLSR报文
Link State RequestLSU报文
Link State UpdateLSAck报文
Link State AcknowledgementLSA类型

Router-LSA

Network-LSA

Network-summary-LSA

ASBR-summary-LSA

AS-external-LSA

NSSA LSA
Opaque LSA
- 9 类 LSA只在发布 LSA 的接口所在的网段发布。
- 10 类 LSA在 OSPF 区域内发布。
- 11 类 LSA在 AS 内发布
路由器类型

IA

BR

ABR

ASBR

路由类型

Intra Area

Inter Area

Type1 External
Type2 External
区域类型

普通区域

STUB区域
Totally STUB区域
NSSA区域
Totally NSSA区域
网络类型

广播类型
- 广播类型是OSPF的默认网络类型
- 要求链路支持第 2 层广播功能
- 需要使用 DR/BDR

NBMA类型
- OSPF帧中继默认网络类型
- 每个邻居都以单播方式相互连接,并且所有 OSPF 数据包都是单播的
- 需要使用 DR/BDR

点到点P2P类型
- 不维护 DR/BDR 关系
- 用于两台路由器之间

点到多点P2MP类型
- 不保持 DR/BDR 关系
- 通过组播地址224.0.0.5发送hello包
- 用于强制来自多个站点的流量通过总部或中心位置

总结
边栏推荐
- OpenCV源代码编译
- 【建议收藏】通俗易懂图解网络知识-第一篇
- Zhengzhou University of light industry -- development and sharing of harmonyos pet health system
- web3 原则和去中心化
- Flutter库推荐Sizer 可帮助您轻松创建响应式 UI
- Qt Quick 3D学习:鼠标拾取物体
- The interface testing tool apipos3.0 is applicable to process testing and reference parameter variables
- C语言:如何给全局变量起一个别名?
- 【Web技术】1348- 聊聊水印实现的几种方式
- C # reading table data in word
猜你喜欢

Database daily question --- day 10: combine two tables
![[recommended collection] easy to understand graphic network knowledge - Part 1](/img/5a/dc9f1fd6cfdc1350f757b70e368fe3.png)
[recommended collection] easy to understand graphic network knowledge - Part 1

Huawei officially entered the "front loading" stage, and the millimeter wave radar track entered the "localization +4d" cycle

Photoshop:PS如何实现放大图片不模糊

C language: how to give an alias to a global variable?

MySQL case when then function use

Colab教程(超级详细版)及Colab Pro/Colab Pro+使用评测

基于51单片机的酒精检测仪

(downloadable) Research Report on the development and utilization of government data (2021), a glimpse of the development of Government Office

Shardingsphere-proxy-5.0.0 deployment table implementation (I)
随机推荐
Afraid to write documents? AI plug-in for automatically generating code documents
Is there any risk in opening a securities account? How to open an account safely?
Research Report on market supply and demand and strategy of tizanidine industry in China
【LeetCode】剑指 Offer II 020. 回文子字符串的个数
C # reading table data in word
3.5 setup and teardown of test classes
(downloadable) Research Report on the development and utilization of government data (2021), a glimpse of the development of Government Office
C语言:如何给全局变量起一个别名?
项目里面的traceID的设计
【LeetCode】69. Square root of X
细数攻防演练中十大关键防守点
JVM Basics - > how GC determines that an object can be recycled
iShot
Design of traceid in the project
【LeetCode】69. x 的平方根
JVM foundation - > What garbage collectors does the JVM have?
Lua loop statement
LeetCode —— 26. Remove duplicates from an ordered array
Hostvars in ansible
Research Report on truffle fungus industry - market status analysis and development prospect forecast