当前位置:网站首页>Day 8 notes
Day 8 notes
2022-07-23 14:07:00 【[white head]】
OSPF Routing control
priority

Cost value
COST = Reference bandwidth / Real bandwidth
Change the overhead value by modifying the reference bandwidth

Because once the reference bandwidth is modified , All devices in the whole network have to be modified into the same , therefore , Its essence cannot control the choice of road . Its significance lies in that when the real bandwidth is large , The reference bandwidth can be increased , Avoid poor routing .
The effect of modifying the cost value is achieved by modifying the real transmission rate of the interface

This method can indeed change the size of the cost value for the specified interface , Play the effect of controlling route selection . however , It will affect the real transmission rate of the interface , also , It can only be reduced , therefore , This scheme is not recommended for real route selection control .
Directly modify the cost value of the interface
![]()
Be careful : Because the cost value of the loopback interface is a defined value , therefore , The result will not be changed by the outside world , namely 1,2 Neither method will affect the cost value of the loopback interface . however , The first 3 This method can change the cost value of the loopback interface .
Special attention :OSPF The cost value of reaching the target network segment in , The cumulative value of the cost value of the flow interface in the direction of routing information transmission .
OSPF The appendix E
appendix E It mainly defines a solution in a special case .
appendix E The proposed solution masks a shorter normal entry , And the longer the mask will be his LSID Use direct broadcast address to express .
OSPF The road selection principle
Intra domain --- 1 class ,2 class LSA
Inter domain --- 3 class LSA
Outside the country --- 5 class ,7 class LSA --- type 1
type 2
Intra domain --- If there are multiple passes to reach the same target network segment 1 class ,2 class LSA Learned routing information , The cost value reaching the target network segment will be compared , Choose the one with low cost . If the cost value is the same , Then the load will be balanced .
2, Inter domain --- If there are multiple passes to reach the same target network segment 3 class LSA Learned routing information , The cost value reaching the target network segment will be compared , Choose the one with low cost . If the cost value is the same , Then the load will be balanced .
3, Outside the country
type 1 Always better than type 2.--- The purpose of this design is to facilitate interference and routing in some special cases .
type 2 The road selection principle : If there are multiple passes to reach the same target network segment 5 class /7 class LSA Learned routing information , And the cost value types are all types 2, Then compare the seed metrics first , Give priority to those with small seed metrics ; If the seed measures the same , Then compare the accumulated cost value along the way , Give priority to those with small accumulated cost value along the way . If the accumulated cost along the way is the same , Load balancing .
type 1 The road selection principle : If there are multiple passes to reach the same target network segment 5 class /7 class LSA Learned routing information , And the cost value types are all types 1, Then the total cost will be compared first ( Seed measure + Accumulate the cost value along the way ), Give priority to those with low total cost . If the total cost is the same , Load balancing .
4, Intra domain and inter domain --- If the destination network segment exists, pass 1 Classes and 2 class LSA Learned information in the domain and through 3 class LSA Learned inter domain information , Will be preferred to pass 1 Classes and 2 class LSA Learned , Even if the cost is more valuable .--- Intra domain is better than inter domain .
5, Interregional and extraterritorial --- If the destination network segment exists, pass 3 class LSA Learned inter domain information and through 5 class /7 class LSA Learned foreign information , Will be preferred to pass 3 class LSA Learned , Even if the cost is more valuable .--- Inter domain is better than extradomain .
6, In the Huawei system ,5 Classes and 7 class LSA The routing rules are the same .
OSPF My guard ring
Inter domain anti ring
OSPF Because routing information is also transmitted between regions , therefore , There is a regional level segmentation mechanism . The routing information learned from which region will not be returned to this region .
2, The region division of star topology requires itself to be an anti ring mechanism .
In domain anti ring
OSPF Anti ring mechanism in the domain --- SPF Algorithm --- Shortest path first algorithm
Reissue
effect : In a network , If running multiple routing protocols or different processes of the same routing protocol ; The protocols cannot directly communicate with each other, including the independent forwarding and operation between processes ; Therefore, it is necessary to republish to realize the sharing of routes .
Conditions :
1, There must be ASBR equipment --- Connect two protocols or two processes at the same time ; You can learn the routing information on both sides at the same time , Then complete the route sharing .
2, You have to focus on seed measures --- A The protocol and B The measurement calculation logic between protocols is illogical , Cannot be used directly . So I will A The agreement is published to B When the agreement ,ASBR Will not carry A The protocol measures to B agreement , It's sharing to B When the agreement , from ASBR The device adds a starting metric to the route .
The rules :
take A The protocol is imported into B When the agreement , Need to be in ASBR Of B Configure republication on the protocol .
take A The agreement is published to B When the agreement , Yes, it will ASBR All the people on the pass A Agreement learned and ASBR Announced on A All direct routes of the protocol are shared to B Agreement .
spot
Single point --- Between two protocols or two processes 1 individual ASBR equipment
Bipoint --- Between two protocols or two processes 2 individual ASBR equipment
Multipoint --- There are multiple... Between two protocols or two processes ASBR equipment
towards
A one-way --- Only will A The agreement is published to B In the agreement
two-way --- A/B Routing sharing of protocols
To configure :
A -> B: One dynamic routing protocol is published to another dynamic routing protocol
static state -> B: Import static routes into dynamic routing protocols
Direct connection -> B: Import direct route into dynamic routing protocol
RIP
A -> B: One dynamic routing protocol is published to another dynamic routing protocol
Conclusion :1, Through republishing technology, the routing information of other protocols is imported into RIP in , The default seed measure assigned to it is 0.
How to modify the seed measure :
Modify the overall situation in the process :
Modify for this reissue :[r2-rip-1]import-route ospf 1 cost 3
Note that when the above two commands are executed at the same time , Will be in accordance with paragraph 2 strip , Match more precise commands to execute .
static state -> B: Import static routes into dynamic routing protocols
Conclusion : During republishing, the default route will not be republished to the dynamic route .
Direct connection -> B: Import direct route into dynamic routing protocol
Conclusion :1, except R1 Outside the direct network segment of , All direct connections will be imported
2, if ASBR the A->B Re release and direct connection ->B Re release of , And contain the same routing information twice , Will give priority to learning direct connection ->B Re release information .
边栏推荐
猜你喜欢

APP常用跨端技术栈深入分析

rtx3080ti和3090差距 rtx3080ti和3090哪个性价比高

图像处理1:RGB888_YCbCr444

数据链路层协议,PPP会话

OSPF综合实验

配置firecracker流程即踩坑记录

How can Creo 9.0 quickly modify CAD coordinate system?

锐龙R7 PRO 5875U性能怎么样?相当于什么水平级别

七月到底有多热?通过爬虫爬取当月温度信息,并使用matplotlib绘制温度折线图

Unity makes simple intercepting close range artillery - how to predict the strike target
随机推荐
SDF refraction and reflection effect recording
Life essays: annoying projects in 2022
BERT 文章翻译
[understanding of opportunity-50]: Guiguzi - the twelfth Rune chapter - the art of being a good leader: keep your position, observe the four directions, cave in danger, talk widely, empty advice, set
How can Creo 9.0 quickly modify CAD coordinate system?
使用Stream流来进行分类展示。
OSPF详解(LSA)(2)
How hot is July? Crawl through the crawler to get the temperature information of the current month, and use Matplotlib to draw the temperature line chart
赛扬n5095处理器怎么样 英特尔n5095核显相当于什么水平
图像处理6:顶层文件
配置firecracker流程即踩坑记录
C#:in、out、ref关键字
Image processing 2: mean filtering
In depth analysis of common cross end technology stacks of app
iQOO 10 Pro和vivo X80 Pro区别 哪个好详细参数配置对比
图像处理:生成3×3的窗口
天玑820相当于骁龙多少处理器 天玑1100相当于骁龙多少 天玑820怎么样
script之type=module
英特尔赛扬7305性能怎么样?相当于什么水平级别
天玑1100相当于骁龙多少处理器 天玑1100相当于骁龙多少 天玑1100怎么样