当前位置:网站首页>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 .

原网站

版权声明
本文为[[white head]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207230748234169.html