| 主機參考:VPS測評參考推薦/專注分享VPS服務器優(yōu)惠信息!若您是商家可以在本站進行投稿,查看詳情!此外我們還提供軟文收錄、PayPal代付、廣告贊助等服務,查看詳情! |
| 我們發(fā)布的部分優(yōu)惠活動文章可能存在時效性,購買時建議在本站搜索商家名稱可查看相關文章充分了解該商家!若非中文頁面可使用Edge瀏覽器同步翻譯!PayPal代付/收錄合作 |
一、OSPF報文
OSPF 協(xié)議報文直接封裝為 IP 報文,協(xié)議號為 89。
OSPF 有五種類型的協(xié)議報文:
(1) Hello 報文:周期性發(fā)送,用來發(fā)現(xiàn)和維持 OSPF 鄰居關系,以及進行 DR(DesignatedRouter,指定路由器)/BDR(Backup Designated Router,備份指定路由器)的選舉。
(2) DD(Database Description,數(shù)據(jù)庫描述)報文:描述了本地 LSDB(Link State DataBase,鏈路狀態(tài)數(shù)據(jù)庫)中每一條 LSA(Link State Advertisement,鏈路狀態(tài)通告)的摘要信息,用于兩臺路由器進行數(shù)據(jù)庫同步。
(3) LSR(Link State Request,鏈路狀態(tài)請求)報文:向?qū)Ψ秸埱笏璧?LSA。兩臺路由器互相交換 DD 報文之后,得知對端的路由器有哪些 LSA 是本地的 LSDB 所缺少的,這時需要發(fā)送LSR 報文向?qū)Ψ秸埱笏璧?LSA。
(4) LSU(Link State Update,鏈路狀態(tài)更新)報文:向?qū)Ψ桨l(fā)送其所需要的 LSA。
(5) LSAck(Link State Acknowledgment,鏈路狀態(tài)確認)報文:用來對收到的 LSA 進行確認。
二、LSA類型
OSPF 中對鏈路狀態(tài)信息的描述都是封裝在 LSA 中發(fā)布出去,常用的 LSA 有以下幾種類型:
(1) Router LSA(Type-1):由每個路由器產(chǎn)生,描述路由器的鏈路狀態(tài)和開銷,在其始發(fā)的區(qū)域內(nèi)傳播。
(2) Network LSA(Type-2):由 DR 產(chǎn)生,描述本網(wǎng)段所有路由器的鏈路狀態(tài),在其始發(fā)的區(qū)域內(nèi)傳播。
(3) Network Summary LSA(Type-3):由 ABR(Area Border Router,區(qū)域邊界路由器)產(chǎn)生,描述區(qū)域內(nèi)某個網(wǎng)段的路由,并通告給其他區(qū)域。
(4) ASBR Summary LSA(Type-4):由 ABR 產(chǎn)生,描述到 ASBR(Autonomous System Boundary Router,自治系統(tǒng)邊界路由器)的路由,通告給相關區(qū)域。
(5) AS External LSA(Type-5):由 ASBR 產(chǎn)生,描述到 AS(Autonomous System,自治系統(tǒng))外部的路由,通告到所有的區(qū)域(除了 Stub 區(qū)域和 NSSA 區(qū)域)。
(6) NSSA External LSA(Type-7):由 NSSA(Not-So-Stubby Area)區(qū)域內(nèi)的 ASBR 產(chǎn)生,描述到 AS 外部的路由,僅在 NSSA 區(qū)域內(nèi)傳播。
(7) Opaque LSA:用于 OSPF 的擴展通用機制,目前有 Type-9、Type-10 和 Type-11 三種。其中,Type-9 LSA 僅在本地鏈路范圍進行泛洪,用于支持 GR(Graceful Restart,平滑重啟)的 Grace LSA 就是 Type-9 的一種類型;Type-10 LSA 僅在區(qū)域范圍進行泛洪,用于支持MPLS TE 的 LSA 就是 Type-10 的一種類型;Type-11 LSA 可以在一個自治系統(tǒng)范圍進行泛洪。
三、OSPF區(qū)域
1. 區(qū)域的邊界是路由器,而不是鏈路。一個路由器可以屬于不同的區(qū)域,但是一個網(wǎng)段(鏈路)只能屬于一個區(qū)域,或者說每個運行 OSPF 的接口必須指明屬于哪一個區(qū)域。劃分區(qū)域后,可以在區(qū)域邊界路由器上進行路由聚合,以減少通告到其他區(qū)域的 LSA 數(shù)量,還可以將網(wǎng)絡拓撲變化帶來的影響最小化。
2. 骨干區(qū)域與虛連接
(1) 骨干區(qū)域(Backbone Area)OSPF 劃分區(qū)域之后,并非所有的區(qū)域都是平等的關系。其中有一個區(qū)域是與眾不同的,它的區(qū)域號是 0,通常被稱為骨干區(qū)域。骨干區(qū)域負責區(qū)域之間的路由,非骨干區(qū)域之間的路由信息必須通過骨干區(qū)域來轉(zhuǎn)發(fā)。對此,OSPF 有兩個規(guī)定:
所有非骨干區(qū)域必須與骨干區(qū)域保持連通; 骨干區(qū)域自身也必須保持連通。
在實際應用中,可能會因為各方面條件的限制,無法滿足上面的要求。這時可以通過配置 OSPF 虛連接予以解決。
(2) 虛連接(Virtual Link)虛連接是指在兩臺 ABR 之間通過一個非骨干區(qū)域而建立的一條邏輯上的連接通道。它的兩端必須是 ABR,而且必須在兩端同時配置方可生效。為虛連接兩端提供一條非骨干區(qū)域內(nèi)部路由的區(qū)域稱為傳輸區(qū)(Transit Area)。
3. Stub區(qū)域和Totally Stub區(qū)域Stub 區(qū)域是一些特定的區(qū)域,該區(qū)域的 ABR 會將區(qū)域間的路由信息傳遞到本區(qū)域,但不會引入自治系統(tǒng)外部路由,區(qū)域中路由器的路由表規(guī)模以及 LSA 數(shù)量都會大大減少。為保證到自治系統(tǒng)外的路由依舊可達,該區(qū)域的 ABR 將生成一條缺省路由 Type-3 LSA,發(fā)布給本區(qū)域中的其他非 ABR路由器。
為了進一步減少 Stub 區(qū)域中路由器的路由表規(guī)模以及 LSA 數(shù)量,可以將區(qū)域配置為 Totally Stub(完全 Stub)區(qū)域,該區(qū)域的 ABR 不會將區(qū)域間的路由信息和自治系統(tǒng)外部路由信息傳遞到本區(qū)域。為保證到本自治系統(tǒng)的其他區(qū)域和自治系統(tǒng)外的路由依舊可達,該區(qū)域的 ABR 將生成一條缺省路由 Type-3 LSA,發(fā)布給本區(qū)域中的其他非 ABR 路由器。
4. NSSA區(qū)域和Totally NSSA區(qū)域
NSSA(Not-So-Stubby Area)區(qū)域是 Stub 區(qū)域的變形,與 Stub 區(qū)域的區(qū)別在于 NSSA 區(qū)域允許引入自治系統(tǒng)外部路由,由 ASBR 發(fā)布 Type-7 LSA 通告給本區(qū)域。當 Type-7 LSA 到達 NSSA 的ABR 時,由 ABR 將 Type-7 LSA 轉(zhuǎn)換成 Type-5 LSA,傳播到其他區(qū)域。
可以將區(qū)域配置為 Totally NSSA(完全 NSSA)區(qū)域,該區(qū)域的 ABR 不會將區(qū)域間的路由信息傳遞到本區(qū)域。為保證到本自治系統(tǒng)的其他區(qū)域的路由依舊可達,該區(qū)域的 ABR 將生成一條缺省路由 Type-3 LSA,發(fā)布給本區(qū)域中的其他非 ABR 路由器。
1、 OSPF message
OSPF protocol message is directly encapsulated as IP message with protocol number of 89.
OSPF has five types of protocol messages:
(1) Hello message: sent periodically, used to discover and maintain OSPF neighbor relationship, as well as conduct DR (designated router) / BDR (backup designated router) election.
(2) DD (database description) message: describes the summary information of each LSA (link state advertisement) in the local LSDB (link state database), which is used for database synchronization between two routers.
(3) LSR (link state request) message: request the LSA required from the other party. After the two routers exchange DD messages with each other, they know which LSAS of the opposite router are missing from the local LSDB. At this time, they need to send LSR messages to request LSAS required by the other.
(4) LSU (link state update) message: send the required LSA to the other party.
(5) Lsack (link state acknowledgement) message: used to acknowledge the received LSA.
2、 LSA type
Link state information in OSPF is encapsulated and published in LSA. There are several types of LSA in common use:
(1) Router LSA (type-1): generated by each router, which describes the link state and cost of the router and propagates in the region it originates.
(2) Network LSA (type-2): generated by Dr, describes the link status of all routers in this network segment, and propagates in the region where they originate.
(3) Network Summary LSA (type-3): generated by ABR (area border router), which describes the route of a network segment in the area and informs other areas.
(4) ASBR summary LSA (type-4): generated by ABR, describes the route to ASBR (autonomous system boundary router), and notifies the relevant area.
(5) As external LSA (type-5): generated by ASBR, describes the route outside as (autonomous system), and notifies all areas (except stub area and NSSA area).
(6) NSSA external LSA (type-7): generated by ASBR in the NSSA (not so stubby area), describes the route to the outside of as, and propagates only in the NSSA area.
(7) Opaque LSA: a general extension mechanism for OSPF. Currently, there are three types: type-9, type-10 and type-11. Among them, the type-9 LSA only floods in the local link range, and the grace LSA used to support gr (graceful restart) is a type of type-9; the type-10 LSA only floods in the area range, and the LSA used to support MPLS TE is a type of type-10; the type-11 LSA can flood in an autonomous system range.
3、 OSPF area
1. The boundary of the area is router, not link. A router can belong to different areas, but a network segment (link) can only belong to one area, or each interface running OSPF must indicate which area it belongs to. After partition, route aggregation can be carried out on the area boundary router to reduce the number of LSAS advertised to other areas, and minimize the impact of network topology changes.
2. Backbone area and virtual connection
(1) After OSPF divides the backbone area, not all areas are equal. One of the areas is unique. Its area number is 0, which is usually called backbone area. Backbone regions are responsible for routing between regions, and routing information between non backbone regions must be forwarded through backbone regions. In this regard, OSPF has two provisions:
All non backbone regions must be connected with backbone regions, and backbone regions themselves must also be connected.
In practical application, the above requirements may not be met due to the limitations of various conditions. This can be solved by configuring OSPF virtual connection.
(2) Virtual link virtual connection refers to a logical connection channel established between two ABRs through a non backbone area. It must be ABR at both ends, and must be configured at both ends to take effect. The area that provides a non backbone internal route for both ends of the virtual connection is called the transfer area.
3. Stub area and total stub area are some specific areas. ABR of this area will transfer routing information between areas to this area, but it will not introduce external routing of autonomous system. The routing table size and LSA number of routers in this area will be greatly reduced. In order to ensure that the route outside the autonomous system is still reachable, ABR in this region will generate a default route type-3 LSA, which will be published to other non ABR routers in this region.
In order to further reduce the routing table size and LSA number of routers in the stub region, the region can be configured as a totally stub region, and the ABR of this region will not transfer the routing information between regions and the routing information outside the autonomous system to this region. To ensure that the routes to other regions of the autonomous system and outside the autonomous system are still reachable, ABR in this region will generate a default route type-3 LSA, which will be published to other non ABR routers in this region.
4. NSSA area and total NSSA area
NSSA (not so stubby area) area is a deformation of stubb area. The difference between NSSA area and stubb area is that it allows the introduction of external routes of autonomous system, and ASBR issues type-7 LSA to this area. When the type-7 LSA reaches the ABR of NSSA, the ABR converts the type-7 LSA to the type-5 LSA and propagates it to other areas.
The region can be configured as a total NSSA region, and the ABR of the region will not transfer routing information between regions to the region. To ensure that the route to other areas of the autonomous system is still reachable, ABR in this area will generate a default route type-3 LSA, which will be published to other non ABR routers in this area.
--------------------------------------------------------------
主機參考,收集國內(nèi)外VPS,VPS測評,主機測評,云服務器,虛擬主機,獨立服務器,國內(nèi)外服務器,高性價比建站主機相關優(yōu)惠信息@m.k2270.com
詳細介紹和測評國外VPS主機,云服務器,國外服務器,國外主機的相關優(yōu)惠信息,商家背景,網(wǎng)絡帶寬等等,也是目前國內(nèi)最好的主機云服務器VPS參考測評資訊優(yōu)惠信息分享平臺
這幾篇文章你可能也喜歡:
- lightlayer,國外獨立服務器特價5折優(yōu)惠低至$75/月,美國洛杉磯機房,50Mbps優(yōu)化/100Mbps直連/300Mbps國際帶寬可選
- lightlayer,免備案特價VPS云服務器$24.99/年,原生IP/最高200Mbps帶寬,中國(香港/臺灣)/新加坡/美國機房可選
- CloudCone,新機房上線/新西蘭奧克蘭獨立服務器上線$80.81/月起,支持虛擬化/安全策略等,默認1Gbps帶寬/10TB月流量
- ReliableSite,國外便宜獨立服務器/物理服務器特價低至$9/月,美國洛杉磯/紐約,1Gbps帶寬/5TB月流量
- ReliableSite,美國便宜高防服務器特價優(yōu)惠低至$75/月,免費20G DDOS防御,美國洛杉磯/紐約/邁阿密,AMD Ryzen 5800X/64G內(nèi)存/1Gbps帶寬/不限流量
本文由主機參考刊發(fā),轉(zhuǎn)載請注明:動態(tài)路由OSPF基礎,區(qū)域劃分,LSA類型,一分鐘了解下 http://m.k2270.com/12578.html
主機參考

















評論前必須登錄!
注冊