เมื่อ OSPF Routers สร้าง Neighbor และ Full Adjacency สำเร็จแล้ว ขั้นตอนสำคัญต่อไปคือการแลกเปลี่ยน Link-State Advertisement หรือ LSA เพื่อนำข้อมูลมาสร้าง Link-State Database หรือ LSDB ก่อนใช้ SPF Algorithm คำนวณเส้นทาง
การเข้าใจ LSA และ LSDB เป็นหัวใจของ OSPF เพราะช่วยตอบคำถามว่า Router รู้จัก Network อื่นได้อย่างไร, ข้อมูล Topology มาจากไหน, Area มีผลต่อ Routing Information อย่างไร และเหตุใด Neighbor เป็น FULL แล้ว จึงอาจยังไม่มี Route ที่ต้องการ
บทความนี้จะอธิบายตั้งแต่ LSA, LSDB, LSA Flooding, Type 1, Type 2, Type 3, Type 4, Type 5, Type 7, SPF และ OSPF Route Types พร้อม Cisco Lab และ Troubleshooting
สารบัญ
- LSA คืออะไร?
- LSDB คืออะไร?
- LSDB กับ Routing Table ต่างกันอย่างไร?
- LSA Flooding คืออะไร?
- Sequence Number และ LSA Age
- OSPF LSA Types
- Type 1 Router LSA
- Type 2 Network LSA
- Type 3 Summary LSA
- Type 4 ASBR Summary LSA
- Type 5 AS External LSA
- Type 7 NSSA External LSA
- LSA Flooding Scope
- LSDB ไปสู่ SPF ได้อย่างไร?
- OSPF Route Types
- Internal Router, ABR และ ASBR
- Cisco OSPF Lab
- อ่าน show ip ospf database
- Troubleshooting
- Command Cheat Sheet
- FAQ
ภาค 1: ทำความเข้าใจ LSA และ LSDB
LSA คืออะไร?
LSA — Link-State Advertisement คือโครงสร้างข้อมูลที่ OSPF ใช้บรรยายข้อมูล Link-State และ Routing Information ประเภทต่าง ๆ
แนวคิดพื้นฐาน:
Router / Network
|
v
Create or learn
Link-State Information
|
v
LSA
|
v
OSPF Flooding
|
v
Other Routers
|
v
LSDB
LSA ไม่ใช่ IP Route ที่ถูกติดตั้งใน Routing Table โดยตรง
Router ต้องประมวลผล Link-State Information ตาม OSPF Algorithm ก่อนจึงจะได้ Routing Information ที่เหมาะสมสำหรับ Routing Table
LSDB คืออะไร?
LSDB — Link-State Database คือฐานข้อมูลที่เก็บ Link-State Advertisements ซึ่ง OSPF Router ใช้สร้างมุมมองของ Topology ใน Scope ที่เกี่ยวข้อง
LSA from R1
\
\
LSA from R2 ----> LSDB
/
/
LSA from R3
|
v
Topology Information
บน Cisco ตรวจสอบด้วย:
Router# show ip ospf database
หาก Router อยู่ในหลาย Area จะมี Link-State Information ที่สัมพันธ์กับ Area และ LSA Scope ของแต่ละประเภท
LSDB กับ Routing Table ต่างกันอย่างไร?
จุดนี้สำคัญมาก เพราะ LSDB และ Routing Table ทำหน้าที่ต่างกัน
| ข้อมูล | หน้าที่ |
|---|---|
| LSA | อธิบาย Link-State หรือ Routing Information ตามประเภท LSA |
| LSDB | ฐานข้อมูล Link-State ที่ OSPF ใช้ในการประมวลผล Topology |
| SPF Result | ผลจากการคำนวณเส้นทางตาม OSPF Algorithm |
| Routing Table | เก็บ Routes ที่ผ่าน Route Selection และถูกติดตั้งเพื่อใช้ Routing |
| Forwarding Table | ข้อมูลที่อุปกรณ์ใช้ Forward Packet จริงตาม Architecture ของ Platform |
มองเป็น Pipeline:
LSA
|
v
LSDB
|
v
SPF
|
v
OSPF Route Calculation
|
v
Routing Table
|
v
Forwarding Information
|
v
Packet Forwarding
LSA Flooding คืออะไร?
OSPF ใช้กลไก Reliable Flooding เพื่อกระจาย Link-State Information ไปยัง Routers ที่เกี่ยวข้อง ตาม Flooding Scope ของ LSA แต่ละประเภท
R2
/ \
/ \
R1 R4
\ /
\ /
R3
หากเกิดการเปลี่ยนแปลง ที่ R1 และจำเป็นต้อง สร้างหรือ Update LSA ข้อมูลดังกล่าวสามารถถูก Flood ไปยัง OSPF Routers ที่เกี่ยวข้องตาม OSPF Rules
Topology Change
|
v
New / Updated LSA
|
v
LSA Flooding
|
v
LSDB Updated
|
v
SPF / Route Recalculation
as required
การ Flood ไม่ได้หมายความว่า Router ส่ง Routing Table ทั้งตาราง ให้ทุก Router ทุกครั้ง
LSA Sequence Number และ Age
OSPF ต้องสามารถแยก LSA รุ่นใหม่ ออกจากข้อมูลรุ่นเก่าได้
จึงมีข้อมูลสำคัญ เช่น:
- LS Sequence Number
- LS Age
- Checksum
- Advertising Router
- Link State ID
ตรวจรายละเอียด:
Router# show ip ospf database router
อาจเห็นข้อมูลลักษณะ:
Link State ID
Advertising Router
LS Seq Number
Checksum
LS Age
Sequence Number ช่วยในการพิจารณา ความใหม่ของ LSA ตาม OSPF Rules
LS Age ใช้ติดตามอายุ ของ Link-State Advertisement และมีบทบาทใน LSA Lifecycle
ภาค 2: OSPF LSA Types
OSPF LSA มี Type อะไรบ้าง?
สำหรับ OSPFv2 LSA Types ที่ควรรู้ ในการเรียน Routing ระดับพื้นฐาน ถึงระดับกลาง ได้แก่:
| Type | ชื่อ | สร้างโดย | บทบาทหลัก |
|---|---|---|---|
| 1 | Router LSA | OSPF Router | อธิบาย Links ของ Router ภายใน Area |
| 2 | Network LSA | DR | อธิบาย Multiaccess Network และ Routers ที่เชื่อมอยู่ |
| 3 | Summary LSA | ABR | Advertise Inter-Area Prefix Information |
| 4 | ASBR Summary LSA | ABR | ให้ข้อมูลการเข้าถึง ASBR ในบริบทที่เกี่ยวข้อง |
| 5 | AS External LSA | ASBR | Advertise External Routes เข้าสู่ OSPF Domain |
| 7 | NSSA External LSA | ASBR ใน NSSA | Advertise External Information ภายใน NSSA |
Type 1 — Router LSA
OSPF Router ทุกตัว สร้าง Type 1 Router LSA สำหรับ Area ที่ Router นั้นเข้าร่วม
Router LSA ใช้อธิบาย Links และสถานะที่เกี่ยวข้อง ของ Router ภายใน Area
Area 0
R1 -------- R2 -------- R3
R1 creates Type 1
R2 creates Type 1
R3 creates Type 1
Type 1 LSA มี Area Flooding Scope จึงไม่ถูก Flood ข้าม Area Boundary ในรูปเดิม
ตรวจ:
Router# show ip ospf database router
Type 2 — Network LSA
บน Multiaccess Network ที่มี DR Designated Router เป็นผู้สร้าง Type 2 Network LSA เมื่อมีเงื่อนไขที่เกี่ยวข้อง
R1
|
|
R2 -----SW----- R3
|
|
R4
Broadcast Ethernet Segment
สมมติ R1 เป็น DR:
R1
|
+--> Type 2 Network LSA
|
+-- R1
+-- R2
+-- R3
+-- R4
Type 2 ช่วยอธิบาย Multiaccess Network และ Routers ที่เชื่อมต่อ กับ Network นั้น ใน OSPF Topology
ตรวจ:
Router# show ip ospf database network
Type 3 — Summary LSA
เมื่อ OSPF ถูกแบ่ง ออกเป็นหลาย Area ABR — Area Border Router มีบทบาทในการ Advertise Inter-Area Prefix Information ด้วย Type 3 LSA
Area 1
192.168.10.0/24
|
|
ABR
|
|
Area 0
แนวคิด:
Prefix in Area 1
|
v
ABR
|
v
Type 3 Summary LSA
|
v
Other Area
คำว่า Summary LSA ไม่ได้หมายความว่า ต้องมี Route Summarization เกิดขึ้นทุกครั้ง
Type 3 สามารถ Advertise Inter-Area Prefix โดยไม่จำเป็นต้องรวม หลาย Prefix เป็น Prefix เดียว
Type 4 — ASBR Summary LSA
Type 4 LSA มีบทบาทในการให้ข้อมูล เกี่ยวกับการเข้าถึง ASBR — Autonomous System Boundary Router จาก Area อื่น ในสถานการณ์ที่เกี่ยวข้อง
External Network
|
v
ASBR
|
Area 1
|
v
ABR
|
v
Area 0
ABR สามารถสร้าง Type 4 เพื่อช่วยให้ Routers ใน Area อื่นทราบ วิธีเข้าถึง ASBR ที่เป็นต้นทางของ External Routing Information
Type 5 — AS External LSA
Type 5 AS External LSA ใช้ Advertise Routes ที่ถูกนำเข้าจากภายนอก OSPF Routing Domain ผ่าน ASBR
ตัวอย่าง:
Static / Other Routing Domain
|
v
ASBR
|
v
OSPF Domain
ตัวอย่าง Configuration Concept:
router ospf 1
redistribute static subnets
ตรวจ:
Router# show ip ospf database external
Type 7 — NSSA External LSA
Type 7 LSA เกี่ยวข้องกับ NSSA — Not-So-Stubby Area
NSSA อนุญาตให้ ASBR ภายใน NSSA นำ External Routing Information เข้าสู่ Area ในรูป Type 7
External Network
|
v
ASBR
|
v
+----------------+
| NSSA |
| Type 7 |
+-------+--------+
|
ABR
|
v
Area 0
ที่ ABR Type 7 สามารถถูกแปลง เป็น Type 5 ตาม OSPF NSSA Behavior และเงื่อนไขที่เกี่ยวข้อง
NSSA เป็นหัวข้อ OSPF ขั้นสูง จึงควรเข้าใจ Standard Area, Stub Area และ External Route ก่อนลงรายละเอียด
ภาค 3: LSA Flooding Scope
LSA ทุก Type ถูก Flood ไปทั่ว OSPF Domain หรือไม่?
ไม่ LSA แต่ละประเภท มี Flooding Scope แตกต่างกัน
| LSA | Scope โดยแนวคิด |
|---|---|
| Type 1 Router | ภายใน Area |
| Type 2 Network | ภายใน Area |
| Type 3 Summary | ใช้ส่ง Inter-Area Prefix Information ผ่าน ABR |
| Type 4 ASBR Summary | ใช้ใน Inter-Area Context เพื่อให้ข้อมูลการเข้าถึง ASBR |
| Type 5 External | กระจายใน OSPF Domain ที่อนุญาต Type 5 ตาม Area Type |
| Type 7 NSSA External | ภายใน NSSA ก่อน Translation ที่เกี่ยวข้อง |
แนวคิดสำคัญ:
Area 1 LSDB
|
| ABR
v
Area 0 LSDB
|
| ABR
v
Area 2 LSDB
Multi-Area OSPF ไม่ได้ทำให้ Router ทุกตัว มี LSDB เดียวกันทั้ง OSPF Domain
Routers ภายใน Area เดียวกัน ควรมี Link-State Database ที่สอดคล้องกันสำหรับ Area นั้น เมื่อ OSPF Converged แต่ Area อื่นมี LSDB และ Link-State Scope ของตัวเอง
จาก LSDB ไปสู่ SPF ได้อย่างไร?
เมื่อ Router มี LSDB ที่จำเป็นแล้ว OSPF สามารถใช้ Shortest Path First — SPF คำนวณ Shortest-Path Tree
R2
/ \
10 / \ 10
/ \
R1 R4
\ /
30 \ / 10
\ /
R3
จากมุมมองของ R1 OSPF ใช้ Cost ของ Links ใน Topology เพื่อคำนวณ Path
LSDB
|
v
Topology Graph
|
v
SPF Algorithm
|
v
Shortest-Path Tree
|
v
OSPF Routes
|
v
Routing Table
ดังนั้นความสัมพันธ์คือ:
LSA != Route
LSDB != Routing Table
SPF
connects topology information
to route calculation
ภาค 4: OSPF Route Types
OSPF Route Codes ใน Cisco Routing Table
ตรวจด้วย:
Router# show ip route ospf
อาจพบ Codes เช่น:
| Code | ความหมาย |
|---|---|
O |
OSPF Intra-Area Route |
O IA |
OSPF Inter-Area Route |
O E1 |
OSPF External Type 1 Route |
O E2 |
OSPF External Type 2 Route |
O N1 |
NSSA External Type 1 |
O N2 |
NSSA External Type 2 |
ตัวอย่าง:
O 192.168.10.0/24 [110/20] via 10.0.12.2
O IA 192.168.20.0/24 [110/30] via 10.0.12.2
O E2 172.16.50.0/24 [110/20] via 10.0.12.2
ตัวเลขเป็นเพียงตัวอย่าง ค่า Cost จริงขึ้นอยู่กับ Topology และ Configuration
E1 กับ E2 ต่างกันอย่างไร?
OSPF External Routes สามารถมี Metric Type ที่แตกต่างกัน
โดยแนวคิด:
| Type | แนวคิด Metric |
|---|---|
| E1 | พิจารณา External Cost ร่วมกับ Internal OSPF Cost ไปยัง ASBR |
| E2 | ใช้ External Metric เป็นหลัก โดยมีกฎเพิ่มเติมสำหรับการเลือกเมื่อจำเป็น |
E2 เป็น External Metric Type ที่พบได้บ่อยจาก OSPF Redistribution Default บน Cisco ในหลาย Configuration แต่ควรตรวจ Platform และ Configuration จริง
Internal Router, ABR และ ASBR ต่างกันอย่างไร?
| Role | หน้าที่โดยย่อ |
|---|---|
| Internal Router | OSPF Interfaces อยู่ภายใน Area เดียว |
| Backbone Router | มี OSPF Interface อย่างน้อยหนึ่ง Interface อยู่ใน Area 0 |
| ABR | เชื่อม OSPF Areas ตาม OSPF Architecture และมีบทบาทด้าน Inter-Area Routing |
| ASBR | นำ Routing Information จากภายนอก OSPF Domain เข้าสู่ OSPF ผ่าน Redistribution |
Topology ตัวอย่าง:
External
|
|
ASBR
|
Area 1
|
ABR
|
Area 0
|
ABR
|
Area 2
ภาค 5: Cisco Multi-Area OSPF Lab
Lab: ดู LSA และ LSDB บน Cisco
Topology:
LAN-A
192.168.10.0/24
|
|
R1
1.1.1.1
|
Area 1
|
|
R2
2.2.2.2
ABR
|
Area 0
|
|
R3
3.3.3.3
|
|
LAN-C
192.168.30.0/24
Address Plan
| Link | Network | Area |
|---|---|---|
| R1 LAN | 192.168.10.0/24 | Area 1 |
| R1-R2 | 10.0.12.0/30 | Area 1 |
| R2-R3 | 10.0.23.0/30 | Area 0 |
| R3 LAN | 192.168.30.0/24 | Area 0 |
R1 Configuration
R1(config)# router ospf 1
R1(config-router)# router-id 1.1.1.1
R1(config-router)# network 192.168.10.0 0.0.0.255 area 1
R1(config-router)# network 10.0.12.0 0.0.0.3 area 1
R2 Configuration — ABR
R2(config)# router ospf 1
R2(config-router)# router-id 2.2.2.2
R2(config-router)# network 10.0.12.0 0.0.0.3 area 1
R2(config-router)# network 10.0.23.0 0.0.0.3 area 0
R3 Configuration
R3(config)# router ospf 1
R3(config-router)# router-id 3.3.3.3
R3(config-router)# network 10.0.23.0 0.0.0.3 area 0
R3(config-router)# network 192.168.30.0 0.0.0.255 area 0
Step 1 — ตรวจ Neighbor
R2# show ip ospf neighbor
R2 ควรมี Neighbor ที่เกี่ยวข้องกับ R1 และ R3 เมื่อ Configuration ถูกต้อง
Step 2 — ตรวจ LSDB
R2# show ip ospf database
R2 เป็น ABR และมี OSPF Interface ใน Area 1 และ Area 0 จึงเป็นจุดที่เหมาะสำหรับ สังเกต LSDB ของหลาย Area
Step 3 — ดู Router LSA
R2# show ip ospf database router
Step 4 — ดู Summary LSA
R2# show ip ospf database summary
Step 5 — ตรวจ Routing Table ของ R1
R1# show ip route ospf
Network ที่มาจาก Area 0 ผ่าน ABR สามารถปรากฏเป็น Inter-Area Route บน R1
เช่น:
O IA 192.168.30.0/24 [110/xx] via 10.0.12.2
ค่า Metric จริง ขึ้นอยู่กับ Interface Cost ของ Lab
อ่าน show ip ospf database อย่างไร?
คำสั่ง:
Router# show ip ospf database
Output สามารถแบ่งเป็น Sections เช่น:
Router Link States
|
+-- Type 1
Net Link States
|
+-- Type 2
Summary Net Link States
|
+-- Type 3
Summary ASB Link States
|
+-- Type 4
Type-5 AS External Link States
|
+-- Type 5
Sections ที่ปรากฏจริง ขึ้นอยู่กับ Topology, Area Type และ Routing Information ที่มีอยู่
ดู LSA เฉพาะ Router
show ip ospf database router
ดู Network LSA
show ip ospf database network
ดู Summary LSA
show ip ospf database summary
ดู External LSA
show ip ospf database external
ภาค 6: OSPF LSDB Troubleshooting
Neighbor FULL แต่ Route ไม่ขึ้น ต้องตรวจอะไร?
นี่เป็นกรณีที่แสดงให้เห็นชัดว่า Neighbor State กับ Routing Table เป็นคนละขั้นตอน
ใช้ Workflow:
Neighbor FULL?
|
v
Check LSDB
|
v
Is expected LSA present?
|
+--+--+
| |
No Yes
| |
v v
Check Check route
origin calculation /
and selection
flooding
| |
+--+--+
|
v
Check Routing Table
|
v
Check Forwarding
|
v
End-to-End Test
1. ตรวจ Neighbor ก่อน
show ip ospf neighbor
หาก Neighbor ยังไม่ Full ในกรณีที่ควร Full ให้แก้ Adjacency ก่อน
2. ตรวจ OSPF Interfaces
show ip ospf interface brief
3. ตรวจ LSDB
show ip ospf database
4. ตรวจว่า Prefix ถูก Advertise หรือไม่
show ip protocols
show running-config | section router ospf
5. ตรวจ Routing Table
show ip route
show ip route ospf
6. Lookup Destination โดยตรง
show ip route 192.168.30.10
วิธีนี้ช่วยตรวจว่า Router จะใช้ Route ใด สำหรับ Destination จริง
7. ตรวจ Route Source อื่น
Route สำหรับ Prefix เดียวกัน อาจมาจาก:
- Connected
- Static
- OSPF
- EIGRP
- BGP
- Protocol อื่น
Route Selection ต้องพิจารณา Longest Prefix Match และ Routing Source Selection ตามขั้นตอนที่เกี่ยวข้อง
8. ตรวจ Return Path
Source
|
| Forward Route
v
Destination
|
| Return Route
v
Source
แม้ OSPF Route ฝั่ง Forward ถูกต้อง Communication ยังอาจล้มเหลว หาก Return Path ไม่ถูกต้อง
ข้อผิดพลาดที่พบบ่อยในการเข้าใจ LSA
| ความเข้าใจที่คลาดเคลื่อน | แนวคิดที่ถูกต้อง |
|---|---|
| LSA คือ Route | LSA คือ Link-State Advertisement ที่ใช้ใน OSPF Control Plane |
| LSDB คือ Routing Table | LSDB เก็บ Link-State Information ส่วน Routing Table เก็บ Routes ที่ถูกเลือก |
| Neighbor Full แล้วต้องมี Route ทุก Network | ยังต้องตรวจ LSA, Advertisement, SPF และ Route Selection |
| Type 3 หมายถึง Summarization เสมอ | Type 3 ใช้ Advertise Inter-Area Prefix และไม่จำเป็นต้องมี Prefix Aggregation |
| ทุก Area มี LSDB เหมือนกันทั้งหมด | LSDB มี Area Scope และ Multi-Area OSPF แยก Topology Information ตาม Area |
| Type 2 มีทุก OSPF Link | Type 2 เกี่ยวข้องกับ Multiaccess Network ที่มี DR ไม่ใช่ทุก Network Type |
LSA และ Routing Security
LSA เป็นข้อมูล Control Plane ที่มีผลต่อการคำนวณ Route ดังนั้นการควบคุมว่า Router ใดสามารถเข้าร่วม OSPF Domain ได้ มีความสำคัญ
แนวทางพื้นฐาน:
- เปิด OSPF เฉพาะ Interface ที่จำเป็น
- ใช้ Passive Interface บน User LAN เมื่อเหมาะสม
- ใช้ OSPF Authentication ตาม Design และ Platform
- ควบคุม Route Redistribution
- Monitor Neighbor Changes
- Monitor LSDB และ Routing Table
- จำกัดสิทธิ์ Management Plane
- สำรอง Configuration ก่อนเปลี่ยน Routing Policy
Cisco OSPF LSA/LSDB Command Cheat Sheet
| Command | ใช้ตรวจอะไร? |
|---|---|
show ip ospf database |
ดู OSPF Link-State Database |
show ip ospf database router |
ดู Router LSAs |
show ip ospf database network |
ดู Network LSAs |
show ip ospf database summary |
ดู Summary Network LSAs |
show ip ospf database asbr-summary |
ดู ASBR Summary Information บน Platform/Syntax ที่รองรับ |
show ip ospf database external |
ดู External LSAs |
show ip ospf neighbor |
ตรวจ OSPF Neighbor State |
show ip ospf interface brief |
ตรวจ OSPF Interfaces และ Areas |
show ip route ospf |
ดู Routes ที่เรียนรู้ผ่าน OSPF |
show ip protocols |
ตรวจ Routing Protocol Information |
show ip route <destination> |
ตรวจ Route ที่ใช้สำหรับ Destination |
show logging |
ตรวจ System และ Routing Events |
show ip ospf database
อาจแตกต่างกันตาม Cisco Platform,
IOS/IOS XE Release
และ Feature Set
ควรใช้ ?
และตรวจ Documentation
ของอุปกรณ์จริงประกอบ
คำถามที่พบบ่อย — FAQ
LSA คืออะไร?
LSA หรือ Link-State Advertisement คือข้อมูลที่ OSPF ใช้ อธิบาย Link-State และ Routing Information ประเภทต่าง ๆ ภายใน OSPF Control Plane
LSDB คืออะไร?
LSDB หรือ Link-State Database คือฐานข้อมูลที่รวบรวม Link-State Advertisements เพื่อให้ OSPF ใช้สร้าง Topology View และคำนวณเส้นทาง
LSA กับ Route เหมือนกันหรือไม่?
ไม่เหมือนกัน LSA เป็นข้อมูล Control Plane ส่วน Route เป็นผลลัพธ์ ที่ผ่าน Routing Calculation และ Route Selection ก่อนเข้าสู่ Routing Table
Type 1 LSA ใครเป็นคนสร้าง?
OSPF Router ทุกตัว สร้าง Router LSA สำหรับ Area ที่ Router เข้าร่วม
Type 2 LSA ใครสร้าง?
Designated Router หรือ DR เป็นผู้สร้าง Network LSA บน Multiaccess Network ที่เกี่ยวข้อง
Point-to-Point Link มี Type 2 LSA หรือไม่?
ไม่มี Network LSA จาก DR ในลักษณะเดียวกับ Broadcast Segment เพราะ Point-to-Point OSPF ไม่มี DR/BDR Election
Type 3 LSA คือ Route Summarization หรือไม่?
ไม่จำเป็น Type 3 ใช้ Advertise Inter-Area Prefix Information และสามารถเกิดขึ้นได้ โดยไม่มีการรวมหลาย Prefix เป็น Summary Prefix
Type 5 ใช้ทำอะไร?
Type 5 AS External LSA ใช้ Advertise External Routes ที่ถูกนำเข้าสู่ OSPF Domain ผ่าน ASBR ใน Area Types ที่รองรับ
Type 7 ใช้ที่ไหน?
Type 7 ใช้สำหรับ External Routing Information ภายใน NSSA และสามารถถูก Translate เป็น Type 5 ที่ ABR ตาม OSPF NSSA Rules
Neighbor เป็น Full แต่ไม่มี Route เป็นไปได้หรือไม่?
เป็นไปได้ Full แสดงสถานะ Adjacency แต่ยังต้องตรวจ Prefix Advertisement, LSDB, SPF, Route Selection และ Routing Table
ทุก Router ใน OSPF มี LSDB เหมือนกันหรือไม่?
ควรพิจารณาเป็นราย Area Routers ที่อยู่ใน Area เดียวกัน จะรักษา Link-State Information ที่สอดคล้องกันสำหรับ Area นั้น เมื่อ Converged แต่ Multi-Area OSPF ไม่ได้มี LSDB เดียวกันทั้งหมด ทั้ง Routing Domain
สรุป
OSPF ใช้ LSA เป็นองค์ประกอบสำคัญ ในการแลกเปลี่ยน Link-State Information ระหว่าง Routers
OSPF Neighbor
|
v
LSA Exchange / Flooding
|
v
LSDB
|
v
Topology View
|
v
SPF Calculation
|
v
OSPF Routes
|
v
Routing Table
|
v
Packet Forwarding
LSA Types ที่ควรจำใน OSPFv2:
Type 1
Router LSA
|
+-- Created by OSPF Router
Type 2
Network LSA
|
+-- Created by DR
Type 3
Summary LSA
|
+-- Inter-Area Prefix Information
Type 4
ASBR Summary LSA
|
+-- Reachability toward ASBR
Type 5
AS External LSA
|
+-- External Routes
Type 7
NSSA External LSA
|
+-- External Information in NSSA
สิ่งสำคัญคือ LSA ไม่ใช่ Route และ LSDB ไม่ใช่ Routing Table แต่ข้อมูลใน LSDB เป็นพื้นฐานที่ OSPF ใช้คำนวณเส้นทาง ผ่าน SPF Algorithm
เมื่อเข้าใจ LSA และ LSDB แล้ว หัวข้อถัดไปควรเข้าสู่ Multi-Area OSPF: Area 0, ABR, ASBR, Stub Area, Totally Stubby Area และ NSSA เพื่อเรียนรู้ว่า OSPF ควบคุมขอบเขตของ Topology และ Routing Information ระหว่าง Areas อย่างไร
Share your thoughts here
Join the conversation and share your perspective on this article.