OSPF Deep Dive: LSA Types, Area Design, Virtual Links, Stub Areas, Route Summarization และ OSPF Tuning

OSPF Deep Dive: LSA Types, Area Design, Virtual Links, Stub Areas, Route Summarization และ OSPF Tuning

OSPF (Open Shortest Path First) เป็น link-state routing protocol ที่ใช้กันแพร่หลายที่สุดในองค์กร LSA Types กำหนดข้อมูลที่แลกเปลี่ยนระหว่าง routers, Area Design แบ่ง network เพื่อลด overhead, Virtual Links เชื่อม areas ที่ไม่ติด Area 0, Stub Areas ลดขนาด routing table, Route Summarization ลด LSA flooding และ OSPF Tuning ปรับแต่ง timers และ parameters

OSPF เป็น IGP ที่ complex ที่สุดแต่ scalable ที่สุด: รองรับ network ขนาดใหญ่ (พัน routers) ด้วยการแบ่ง areas, converge เร็วกว่า EIGRP ใน large-scale networks, เป็น open standard (ไม่ vendor-locked), รองรับ IPv6 (OSPFv3) ปัญหาที่พบบ่อยที่สุด: area design ที่ไม่ดี → LSA flooding มากเกินไป → CPU/memory สูง → slow convergence

OSPF LSA Types

LSA Type Name Generated By Scope
Type 1 Router LSA Every OSPF router Within area — describes router’s links and costs
Type 2 Network LSA DR (Designated Router) on multi-access network Within area — describes routers on broadcast segment
Type 3 Summary LSA ABR (Area Border Router) Between areas — inter-area routes (summarized)
Type 4 ASBR Summary LSA ABR Between areas — reachability to ASBR
Type 5 External LSA ASBR (AS Boundary Router) Entire AS — external routes (redistributed)
Type 7 NSSA External LSA ASBR in NSSA area Within NSSA — converted to Type 5 by ABR at area boundary

OSPF Area Types

Area Type Allows Blocks Default Route
Normal (Backbone Area 0) Type 1, 2, 3, 4, 5 Nothing Not automatic
Normal (Non-backbone) Type 1, 2, 3, 4, 5 Nothing Not automatic
Stub Type 1, 2, 3 Type 4, 5 (no external routes) ABR injects default route (Type 3)
Totally Stubby Type 1, 2 Type 3, 4, 5 (only default route) ABR injects default route only
NSSA Type 1, 2, 3, 7 Type 4, 5 (but allows Type 7 for local external) Not automatic (configurable)
Totally NSSA Type 1, 2, 7 Type 3, 4, 5 (only default + local external) ABR injects default route

Area Design Best Practices

Practice Detail
Area 0 (Backbone) ทุก area ต้องเชื่อมกับ Area 0 (ผ่าน ABR หรือ virtual link)
Area Size 50-200 routers per area (guideline) — ขึ้นกับ hardware และ link stability
Summarization Summarize ที่ ABR เสมอ → ลด LSA flooding ข้าม areas, ลด routing table size
Stub Where Possible Remote sites/branch offices → stub/totally stubby → ลด routing table dramatically
NSSA for Redistribution ถ้าต้อง redistribute ใน non-backbone area → ใช้ NSSA (ไม่ใช่ normal area)
Minimize ABRs Router ที่เป็น ABR ทำงานหนัก (multiple LSDB) → ไม่ควรมี ABR มากเกินไป

Virtual Links

Feature รายละเอียด
Purpose เชื่อม area ที่ไม่ได้ติดกับ Area 0 โดยตรง → สร้าง logical connection ผ่าน transit area
Transit Area Area ที่ virtual link ผ่าน — ต้องเป็น normal area (ไม่ใช่ stub/NSSA)
Between ABR ของ Area 0 ↔ ABR ของ disconnected area
Temporary Virtual links ควรเป็น temporary solution → redesign area topology ถ้าเป็นไปได้
Config area [transit-area] virtual-link [router-id] บนทั้ง 2 ABRs
Troubleshoot show ip ospf virtual-links → verify state is FULL

Route Summarization

Type Where Command
Inter-Area ABR (between areas) area [area-id] range [network] [mask]
External ASBR (redistributed routes) summary-address [network] [mask]
Benefits Smaller routing table, less LSA flooding, faster SPF calculation, hides instability
Discard Route Summary creates null0 discard route to prevent loops Automatic (can disable with not-advertise)
Best Practice Plan IP addressing for summarization → contiguous address blocks per area

OSPF Tuning

Parameter Default Tuned Effect
Hello Interval 10s (broadcast), 30s (NBMA) 1-3s (fast detection) Faster neighbor down detection (Dead = 4x Hello)
Dead Interval 40s (broadcast) 4-12s Must match neighbors — shorter = faster convergence
SPF Delay 5s initial, 10s hold 50ms initial, 200ms hold (sub-second) Faster route recalculation after topology change
LSA Throttle 5s initial, 5s hold 50ms initial, 200ms hold Faster LSA generation and flooding
Reference Bandwidth 100 Mbps 100 Gbps (100000) Differentiate 1G/10G/40G/100G links (default treats all > 100M as cost 1)
BFD Disabled Enabled (50ms × 3) Sub-second failure detection (150ms) — much faster than OSPF timers

ทิ้งท้าย: OSPF = Scalable, But Requires Good Design

OSPF Deep Dive LSA Types: Type 1 (router), Type 2 (network/DR), Type 3 (summary/ABR), Type 5 (external/ASBR), Type 7 (NSSA external) Area Types: normal, stub (no external), totally stubby (default only), NSSA (local external ok), totally NSSA Design: 50-200 routers/area, summarize at ABR, stub for branches, NSSA for redistribution Virtual Links: connect disconnected areas to Area 0 — temporary solution, transit must be normal area Summarization: inter-area (ABR range), external (ASBR summary-address) — plan IP for contiguous blocks Tuning: sub-second SPF/LSA (50ms), BFD (150ms detection), reference bandwidth 100G, fast hellos Key: OSPF scales to thousands of routers with proper area design + summarization + tuning

อ่านเพิ่มเติมเกี่ยวกับ BGP Deep Dive eBGP iBGP Path Attributes Route Reflector และ Network Automation Ansible Python Netmiko ที่ 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