当前位置:网站首页>Network equipment hard core technology insider router Chapter 4 Jia Baoyu sleepwalking in Taixu Fantasy (Part 2)
Network equipment hard core technology insider router Chapter 4 Jia Baoyu sleepwalking in Taixu Fantasy (Part 2)
2022-07-27 15:24:00 【User 8289326】
Last time when it comes to , Twelve Jinchai learned the distance with other neighbors , As shown in the figure below :
that , adopt RIP The shortest path calculated by the routing protocol , After adding the factor of distance between nodes , Is it still the shortest path ?
Let's first look at the simplest problem , Just look at Daiyu 、 Xiangyun 、 Yuanchun and Baochai are four nodes :
In the figure , Xiangyun / Bao Chai / The distance from Yuanchun to Daiyu ( Link overhead ) Respectively 2,7,8. They respectively announced this information to the gold hairpins around them :(LSA notice )
“ Bao Chai , I'm Xiangyun , The link cost from me to Daiyu is 2.”
After Baochai received this message , take 2 Add the link overhead between yourself and Xiangyun 5, obtain 7, And keep this information in your heart : Through Xiangyun ( Next jump ), The cost of arriving at Daiyu is 7.(LSA Database establishment )
Soon , Each gold hairpin has produced its own LSA database :
The gold hairpins each according to their own LSA database , Made the best choice for the path to Daiyu , As shown in the figure :
At this time , Yuan Chun found , The cost of going to Daiyu through Xiangyun is 3, Compared with the cost of directly connecting Daiyu 8 smaller . Based on the principle of minimum total cost , Yuan Chun chose the path to Daiyu through Xiangyun .
meanwhile , Yuan Chun looks around ( Except for Xiangyun ), It will also be updated LSA: Go to Daiyu by yourself , The cost is 3.
After Baochai received this message , Found the fastest way to Daiyu ……
And so on , The nodes of the whole network can iteratively calculate the best route to Daiyu :
It's easy to see , Baoyu can pass the Spring Festival 、 Li Wan 、 Xiangyun arrives at Daiyu , Is the nearest path .
Because the path obtained by the above algorithm is the shortest , therefore , This routing protocol is called OSPF (Open Shortest Path First).
We found that , adopt OSPF The optimal path obtained by the routing protocol , And RIP There are some differences in the optimal path obtained by routing protocols :
RIP The optimal path obtained is 3 jump , and OSPF Need to go through 4 jump . however ,OSPF The total cost of the path is the smallest .
OSPF The algorithm used , It's a mathematician Dijkstra Invented , So it's also called Dijkstra Algorithm .
With Dijkstra Algorithm , Baoyu can be reunited with Daiyu , Read together 《 West Chamber 》 了 .
Baoyu said in Daiyu's ear :“ You are the melancholy body , I'm the one who looks great ……”
Daiyu :“ Bitch is shameless , You want to talk to caimoukun PK Do you ?”
Baoyu wakes up , I turned out to be Li Xiaoyao , Just now all this is a dream , Next to me is my aunt patting me awake ……
Today's question : If a malicious attacker connects the attacking device to the network and sends OSPF LSA, Publishing should lead to other IP Routing of addresses , Interfere with the operation of routers in the network , How to avoid this attack ?
Answers to the questions left over yesterday :
Baoyu can be in both spring greeting and spring cherishing 3 Jump to Daiyu , So which path will you choose ?
because RIP Support load balancing of equivalent paths , The router will follow a certain algorithm , Send packets evenly to the two links .
边栏推荐
- 电子制造行业的数字化转型突破点在哪?精益制造是关键
- 网络设备硬核技术内幕 路由器篇 7 汤普金森漫游网络世界(下)
- EMC design scheme of CAN bus
- Stm32f103c8t6 drives sh1106 1.3 "IIC OLED display under Arduino frame
- 谷歌团队推出新Transformer,优化全景分割方案|CVPR 2022
- ad7606与stm32连接电路介绍
- 分布式锁
- IJCAI 2022 outstanding papers were published, and 298 Chinese mainland authors won the first place in two items
- Is it safe for Guosen Securities to open a mobile account? Is Zhongshan securities reliable
- RS485接口的EMC设计方案
猜你喜欢

谷粒商城配置CorsWebFilter后,报错:Resource sharing error:MultipleAllowOriginValues

谷歌团队推出新Transformer,优化全景分割方案|CVPR 2022

RS485接口的EMC设计方案

TL431-2.5v基准电压芯片几种基本用法
USB interface electromagnetic compatibility (EMC) solution

华为鸿蒙模拟器去除顶部导航栏方法

MySQL 面试40连问,面试官你再问下去我可要翻脸了

华云数据打造完善的信创人才培养体系 助力信创产业高质量发展

Selenium reports an error: session not created: this version of chromedriver only supports chrome version 81

IJCAI 2022 outstanding papers were published, and 298 Chinese mainland authors won the first place in two items
随机推荐
EMC design scheme of RS485 interface
Basic usage of kotlin
TCC
Unity performance optimization ----- occlusion culling of rendering optimization (GPU)
Deveco studio2.1 operation item error
Comparison of advantages and disadvantages between instrument amplifier and operational amplifier
网络设备硬核技术内幕 路由器篇 7 汤普金森漫游网络世界(下)
周鸿祎:数字安全能力落后也会挨打
Introduction of the connecting circuit between ad7606 and stm32
Leetcode-1737-满足三条件之一需改变的最少字符数
Unity's simplest object pool implementation
RS485接口的EMC设计方案
With just two modifications, apple gave styleganv2 3D generation capabilities
STM32 can communication filter setting problem
JUC(JMM、Volatile)
《剑指Offer》 合并两个排序的链表
Sword finger offer merges two sorted linked lists
LeetCode 1143. 最长公共子序列 动态规划/medium
《剑指Offer》数组中的逆序对
网络设备硬核技术内幕 路由器篇 4 贾宝玉梦游太虚幻境(下)