OSPF Advanced: Area Types, LSA Types และ Route Summarization

OSPF Advanced: Area Types, LSA Types และ Route Summarization

OSPF (Open Shortest Path First) เป็น link-state routing protocol ที่ใช้กันมากที่สุดใน enterprise networks OSPF advanced topics ครอบคลุม area types (stub, NSSA, totally stubby), LSA types ทั้ง 7 แบบ และ route summarization ที่ช่วยลดขนาด routing table และเพิ่ม stability

การเข้าใจ OSPF areas และ LSA types เป็น สิ่งจำเป็นสำหรับ network engineers ที่ดูแล large-scale OSPF networks การเลือก area type ผิดทำให้ routing table ใหญ่เกินไป ทำให้ SPF calculation ช้า และ convergence ช้า การ summarize routes ที่ area boundary ช่วยลด LSA flooding และเพิ่ม network stability

OSPF Area Types

Area Type LSA 1-3 LSA 4-5 (External) LSA 7 (NSSA) Default Route
Normal (Backbone/Regular) Yes Yes No Optional
Stub Yes No (blocked) No ABR injects default (LSA 3)
Totally Stubby LSA 1-2 only (LSA 3 blocked except default) No No ABR injects default (LSA 3)
NSSA Yes No (LSA 5 blocked) Yes (local external → LSA 7) Optional
Totally NSSA LSA 1-2 only (LSA 3 blocked except default) No Yes ABR injects default

LSA Types

Type Name Generated By Scope ข้อมูล
1 Router LSA Every router Within area Router’s links + costs ใน area นั้น
2 Network LSA DR (Designated Router) Within area Multi-access network + attached routers
3 Summary LSA ABR Between areas Inter-area routes (prefixes จาก area อื่น)
4 ASBR Summary LSA ABR Between areas Path ไป ASBR (สำหรับ external routes)
5 External LSA ASBR Entire domain External routes (redistributed จาก protocol อื่น)
7 NSSA External LSA ASBR in NSSA Within NSSA External routes ใน NSSA (converted to LSA 5 ที่ ABR)

OSPF Router Types

Type ความหมาย Function
Internal Router Router ที่อยู่ใน area เดียว Maintain LSDB สำหรับ area นั้น
ABR (Area Border Router) Router ที่เชื่อม 2+ areas (รวม area 0) Generate LSA 3/4, summarize routes between areas
ASBR (AS Boundary Router) Router ที่ redistribute routes จาก protocol อื่น Generate LSA 5 (or LSA 7 in NSSA)
Backbone Router Router ที่มี interface ใน area 0 Part of backbone (transit area)
DR (Designated Router) Elected บน multi-access networks Generate LSA 2, reduce adjacencies

Route Summarization

Type ทำที่ Command (Cisco) ผลลัพธ์
Inter-Area ABR area X range A.B.C.D M.M.M.M Summarize LSA 3 ที่ส่งข้าม area
External ASBR summary-address A.B.C.D M.M.M.M Summarize LSA 5/7 (redistributed routes)

External Route Types

Type Metric ใช้เมื่อ
E1 (External Type 1) External cost + internal cost to ASBR ต้องการให้ path ไป ASBR มีผล (multiple ASBRs)
E2 (External Type 2) External cost only (default) External metric สำคัญกว่า internal path
N1 (NSSA Type 1) เหมือน E1 แต่ใน NSSA NSSA + cost-aware
N2 (NSSA Type 2) เหมือน E2 แต่ใน NSSA (default) NSSA + external metric only

OSPF Design Best Practices

Practice รายละเอียด
Area 0 backbone ทุก area ต้องเชื่อมต่อ area 0 (ใช้ virtual-link ถ้าจำเป็น)
Summarize at ABR Summarize routes ที่ ABR เพื่อลด LSA flooding
Stub areas ใช้ stub/totally stubby สำหรับ remote sites (ลด LSDB size)
NSSA สำหรับ redistribution ใช้ NSSA เมื่อ area มี ASBR แต่ไม่ต้องการ external LSAs อื่น
50-100 routers/area จำกัด routers per area (SPF calculation performance)
Passive interfaces passive-interface บน user-facing ports (ไม่ส่ง OSPF hello)
Authentication ใช้ MD5/SHA authentication บนทุก OSPF interface

Troubleshooting

Issue Check Command
Neighbor not forming Hello/Dead timers, area ID, network type, authentication show ip ospf neighbor, show ip ospf interface
Routes missing Area type blocking LSAs, summarization, filter show ip ospf database, show ip route ospf
Suboptimal routing Cost mismatch, reference bandwidth, summarization show ip ospf interface (cost), show ip route
SPF runs too often Flapping links, missing summarization show ip ospf statistics, show ip ospf

ทิ้งท้าย: OSPF Areas + LSAs = Scalable Routing

OSPF Areas ลด LSDB size + SPF calculation LSA 1-2 = intra-area, LSA 3 = inter-area, LSA 5 = external, LSA 7 = NSSA Stub = block external, Totally Stubby = block inter-area + external Summarize ที่ ABR (area range) + ASBR (summary-address) NSSA = allow local redistribution ใน stub-like area

อ่านเพิ่มเติมเกี่ยวกับ BGP Route Filtering และ IS-IS Routing Protocol ที่ siamlancard.com หรือจาก icafeforex.com และ siam2r.com

จัดส่งรวดเร็วส่งด่วนทั่วประเทศ
รับประกันสินค้าเคลมง่าย มีใบรับประกัน
ผ่อนชำระได้บัตรเครดิต 0% สูงสุด 10 เดือน
สะสมแต้ม รับส่วนลดส่วนลดและคะแนนสะสม

© 2026 SiamLancard — จำหน่ายการ์ดแลน อุปกรณ์ Server และเครื่องพิมพ์ใบเสร็จ

SiamLancard
Logo
Free Forex EA Download — XM Signal · EA Forex ฟรี
iCafeForex.com - สอนเทรด Forex | SiamCafe.net
Shopping cart