Techerest

OSPF Route Summarization บน Cisco: สรุป Route ที่ ABR และ ASBR พร้อม Lab

เมื่อ OSPF Network ถูกแบ่งเป็นหลาย Area จำนวน Routes ที่ถูก Advertise ระหว่าง Area อาจเพิ่มขึ้นตามขนาดของ Network OSPF Route Summarization จึงเป็นเทคนิคที่ใช้รวมหลาย Prefix ให้กลายเป็น Prefix ที่ใหญ่ขึ้น เพื่อลด Routing Information และสร้าง Routing Architecture ที่เป็นระเบียบมากขึ้น

บน Cisco การทำ OSPF Summarization มีสองตำแหน่งสำคัญ ได้แก่ ABR สำหรับ Inter-Area Routes และ ASBR สำหรับ External Routes โดยใช้คำสั่งและหลักการที่แตกต่างกัน

บทความนี้จะอธิบายตั้งแต่ Subnet Aggregation, Summary Prefix, ABR Summarization, ASBR Summarization, area range, summary-address, Discard Route, Longest Prefix Match ไปจนถึงปัญหา Black Hole พร้อม Cisco Lab และ Troubleshooting

ภาค 1: พื้นฐาน Route Summarization

Route Summarization คืออะไร?

Route Summarization หรือ Route Aggregation คือการนำหลาย Network Prefix ที่ต่อเนื่องและสามารถรวมกันได้ มาประกาศเป็น Prefix ที่ใหญ่ขึ้น

ตัวอย่าง:

192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24

        |
        | Summarization
        v

192.168.0.0/22

แทนที่จะ Advertise 4 Routes สามารถ Advertise Summary Route เพียง Route เดียว:

192.168.0.0/22

Prefix นี้ครอบคลุม:

192.168.0.0
        |
        +-- 192.168.0.0/24
        +-- 192.168.1.0/24
        +-- 192.168.2.0/24
        +-- 192.168.3.0/24

ทำไม OSPF ต้อง Summarize Route?

Summarization สามารถช่วยลด Routing Information ที่ต้อง Advertise ข้าม Routing Boundary ที่รองรับการ Summarize

ตัวอย่างก่อน Summarization:

Area 10

192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
       |
       |
      ABR
       |
       v
Area 0 receives
4 inter-area prefixes

หลัง Summarization:

Area 10

192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
       |
       |
      ABR
       |
       v
192.168.0.0/22
       |
       v
Area 0 receives
1 summary prefix

ประโยชน์ที่อาจได้รับ:

  • ลดจำนวน Prefix ที่ Advertise ข้าม Area Boundary
  • ลดขนาด Routing Table ในส่วนที่ถูก Summary
  • ซ่อนรายละเอียด Topology บางส่วนจาก Area อื่น
  • ช่วยสร้าง Hierarchical Addressing
  • ลดผลกระทบจากการเปลี่ยนแปลงของ Specific Prefix บางส่วน
  • ทำให้ Routing Design อ่านและบริหารจัดการง่ายขึ้น
Summarization ไม่ได้ทำให้ Network เร็วขึ้นโดยอัตโนมัติ และไม่ใช่สิ่งที่ควรเปิด เพียงเพราะต้องการลดจำนวน Route โดยไม่ตรวจ Address Plan และ Failure Scenario

OSPF Summarize Route ที่ไหนได้บ้าง?

OSPF ไม่ได้ Summarize Route บน Router ทุกตัวโดยอิสระ แบบ Arbitrary Boundary

ตำแหน่งสำคัญคือ:

ตำแหน่ง Route Cisco Command หลัก
ABR Inter-Area Routes area ... range
ASBR Redistributed External Routes summary-address

จำง่าย ๆ:

Routes from OSPF Area
        |
        v
       ABR
        |
        | area range
        v
Inter-Area Summary


External Routes
        |
        v
       ASBR
        |
        | summary-address
        v
External Summary

ภาค 2: วิธีคำนวณ Summary Prefix

หา Summary Prefix อย่างไร?

สมมติมี Networks:

10.10.0.0/24
10.10.1.0/24
10.10.2.0/24
10.10.3.0/24

ทั้ง 4 Prefix ต่อเนื่องกัน และสามารถรวมเป็น:

10.10.0.0/22

Subnet Mask ของ /22 คือ:

255.255.252.0

ช่วงที่ครอบคลุม:

10.10.0.0
through
10.10.3.255

ดูในรูป Binary

10.10.0.0   = 00000000
10.10.1.0   = 00000001
10.10.2.0   = 00000010
10.10.3.0   = 00000011
                ^^^^^^
Common prefix remains
through the first 22 bits

หลักสำคัญคือ หา Binary Bits ที่ Prefix ทั้งหมดมีร่วมกัน จากซ้ายไปขวา

อย่า Summary กว้างเกิน Network ที่มีจริง

สมมติมีเพียง:

10.10.0.0/24
10.10.1.0/24

Summary ที่ตรงพอดีคือ:

10.10.0.0/23

แต่หากประกาศ:

10.10.0.0/16

จะครอบคลุม Network จำนวนมาก ที่ Router อาจไม่มีเส้นทางจริง

10.10.0.0/16
   |
   +-- 10.10.0.0/24   exists
   +-- 10.10.1.0/24   exists
   +-- 10.10.2.0/24   ?
   +-- 10.10.3.0/24   ?
   |
   +-- ...
   |
   +-- 10.10.255.0/24 ?
Summary Prefix ที่กว้างเกินไป สามารถดึง Traffic สำหรับ Network ที่ไม่มีอยู่จริง เข้ามายัง Summary Router และอาจนำไปสู่ Traffic Black Hole

ภาค 3: ABR Route Summarization

ABR Summarization คืออะไร?

ABR สามารถ Summarize Inter-Area Prefixes ก่อน Advertise ไปยัง Area อื่น

Area 10

10.10.0.0/24
10.10.1.0/24
10.10.2.0/24
10.10.3.0/24
       |
       |
      ABR
       |
       | Summarize
       v
10.10.0.0/22
       |
       v
     Area 0

ภายใน Area 10 Routers ยังสามารถรู้จัก Specific Prefixes ตาม OSPF Topology ของ Area นั้น

แต่ Area อื่นสามารถได้รับ Summary Prefix แทนรายละเอียดทั้งหมด

Cisco area range ใช้อย่างไร?

Syntax พื้นฐาน:

router ospf PROCESS-ID
 area AREA-ID range NETWORK MASK

ตัวอย่าง:

R2(config)# router ospf 1
R2(config-router)# area 10 range 10.10.0.0 255.255.252.0

หรือ:

area 10 range 10.10.0.0 255.255.252.0

ความหมายคือ เมื่อ ABR Advertise Prefixes ที่เกี่ยวข้อง จาก Area 10 ไปยัง Area อื่น ให้รวม Prefixes ที่อยู่ใน Range นี้ เป็น:

10.10.0.0/22
Area ID ในคำสั่ง area 10 range หมายถึง Area ที่ Prefixes ต้นทางอยู่ ไม่ใช่ Area ปลายทางที่ต้องการส่ง Summary ไป

ABR Summarization เกี่ยวข้องกับ Type 3 LSA อย่างไร?

ใน Multi-Area OSPF ABR ใช้ Type 3 LSA สำหรับ Inter-Area Prefix Information

ก่อน Summary:

Type 3
10.10.0.0/24

Type 3
10.10.1.0/24

Type 3
10.10.2.0/24

Type 3
10.10.3.0/24

หลัง Summary:

Type 3
10.10.0.0/22

จึงสามารถลดจำนวน Inter-Area Prefix Advertisements ที่ Area อื่นต้องเรียนรู้

ภาค 4: ASBR Route Summarization

ASBR Summarization คืออะไร?

ASBR ทำหน้าที่นำ External Routes เข้าสู่ OSPF Domain ผ่าน Redistribution

ตัวอย่าง:

Static Routes

172.16.0.0/24
172.16.1.0/24
172.16.2.0/24
172.16.3.0/24
      |
      v
     ASBR
      |
      | Redistribution
      v
   OSPF Domain

หากต้องการ Advertise เป็น Summary:

172.16.0.0/22

สามารถทำ External Route Summarization ที่ ASBR ได้

Cisco summary-address ใช้อย่างไร?

ตัวอย่าง:

R1(config)# router ospf 1
R1(config-router)# summary-address 172.16.0.0 255.255.252.0

คำสั่งนี้เกี่ยวข้องกับ External Routes ที่ ASBR นำเข้าสู่ OSPF ผ่าน Redistribution

ตัวอย่าง Configuration:

ip route 172.16.0.0 255.255.255.0 null0
ip route 172.16.1.0 255.255.255.0 null0
ip route 172.16.2.0 255.255.255.0 null0
ip route 172.16.3.0 255.255.255.0 null0

router ospf 1
 redistribute static subnets
 summary-address 172.16.0.0 255.255.252.0

OSPF สามารถ Advertise External Summary แทน Specific External Prefixes ตามเงื่อนไขที่เกี่ยวข้อง

Static Routes ไป Null0 ในตัวอย่างใช้เพื่อสร้าง Routing Lab เท่านั้น Traffic ที่ส่งไป Prefix เหล่านี้ จะถูกทิ้งหากไม่มี More-Specific Route ที่ชี้ไปยัง Destination จริง

area range กับ summary-address ต่างกันอย่างไร?

หัวข้อ area range summary-address
ใช้ที่ ABR ASBR
Route ประเภทหลัก Inter-Area OSPF Routes External Redistributed Routes
LSA ที่เกี่ยวข้อง Type 3 Type 5 หรือ External Information ตาม Area Context
ตัวอย่าง area 10 range 10.10.0.0 255.255.252.0 summary-address 172.16.0.0 255.255.252.0

จำง่าย ๆ:

ABR
 |
 +-- area range
 |
 +-- Inter-Area Summary


ASBR
 |
 +-- summary-address
 |
 +-- External Summary

ภาค 5: Summary Route และ Packet Forwarding

Discard Route คืออะไร?

เมื่อ Router สร้าง Summary อาจมีการสร้าง Discard Route ที่สัมพันธ์กับ Summary Prefix เพื่อป้องกัน Routing Loop สำหรับ Destination ที่อยู่ภายใน Summary แต่ไม่มี More-Specific Route จริง

แนวคิด:

Summary:
10.10.0.0/22
       |
       +-- 10.10.0.0/24 exists
       +-- 10.10.1.0/24 exists
       +-- 10.10.2.0/24 exists
       +-- 10.10.3.0/24 missing

หาก Packet มาถึง:

Destination:
10.10.3.50

แต่ Router ไม่มี More-Specific Route สำหรับ 10.10.3.0/24 Traffic ไม่ควรถูกส่งวน กลับออกไปตาม Default Route จนสร้าง Routing Loop

Cisco OSPF สามารถติดตั้ง Discard Route สำหรับ Summary ตาม Platform และ Configuration ที่เกี่ยวข้อง

อาจพบลักษณะ:

O 10.10.0.0/22 is a summary, Null0
รูปแบบ Output และ Route Code อาจแตกต่างกันตาม Cisco IOS/IOS XE Release และ Platform ควรตรวจ Routing Table ของอุปกรณ์จริงเสมอ

Longest Prefix Match กับ Summary Route

Summary Route ไม่ได้แทนที่ More-Specific Route ใน Packet Forwarding หาก More-Specific Route ยังมีอยู่

สมมติมี:

10.10.0.0/22  -> Null0

10.10.1.0/24  -> Gi0/1
10.10.2.0/24  -> Gi0/2

Packet ไป:

10.10.1.100

Router เลือก:

10.10.1.0/24

ไม่ใช่:

10.10.0.0/22

เพราะ Routing Lookup ใช้หลัก Longest Prefix Match

/24
 |
 | More specific
 v
Selected

/22
 |
 | Less specific
 v
Used only when no
more-specific match exists

Summary Route ทำให้เกิด Black Hole ได้อย่างไร?

ปัญหาสำคัญของ Summarization คือ Summary Prefix อาจครอบคลุม Address Space ที่ไม่มี Destination จริง

ตัวอย่าง:

Actual Networks:

10.10.0.0/24
10.10.1.0/24

Configured Summary:

10.10.0.0/22

Summary /22 ครอบคลุม:

10.10.0.0/24  exists
10.10.1.0/24  exists
10.10.2.0/24  missing
10.10.3.0/24  missing

Router ภายนอกเห็น:

10.10.0.0/22
      |
      v
     ABR

ดังนั้น Traffic ไป 10.10.3.100 ก็ถูกส่งมาที่ ABR แม้ไม่มี Network นั้นจริง

หากไม่มี More-Specific Route Traffic อาจถูกส่งไป Discard Route และถูกทิ้ง

นี่ไม่ใช่ Bug ของ OSPF แต่เป็นผลตาม Routing Design เพราะ Router ต้นทางได้รับข้อมูลว่า Summary Router สามารถเข้าถึง Address Space ทั้ง Summary Prefix

ภาค 6: IP Address Planning สำหรับ OSPF

Address Plan ที่ดีช่วย Summarization อย่างไร?

Route Summarization จะมีประสิทธิภาพมากขึ้น เมื่อ IP Address ถูกจัดสรร ตามโครงสร้าง Network ตั้งแต่ต้น

ตัวอย่างที่ดี:

Area 10
10.10.0.0/16

Area 20
10.20.0.0/16

Area 30
10.30.0.0/16

ภายใน Area 10:

10.10.1.0/24  Users
10.10.2.0/24  Servers
10.10.3.0/24  Voice
10.10.4.0/24  Wi-Fi

ABR สามารถมีโอกาส Advertise:

10.10.0.0/16

หาก Address Plan และ Routing Ownership สอดคล้องกับ Summary นี้จริง

ตัวอย่าง Address Plan ที่ Summarize ยาก

Area 10
10.1.10.0/24
172.16.50.0/24
192.168.8.0/24

Area 20
10.1.11.0/24
172.16.51.0/24
192.168.9.0/24

แม้ Routing จะทำงานได้ แต่ Address Space ไม่ได้ถูกจัดกลุ่ม ตาม Area Boundary ทำให้ Summarization ทำได้ยากกว่า

แนวคิดสำคัญ: วาง IP Address Plan ให้สอดคล้องกับ Routing Hierarchy ก่อนต้องการ Summarization จะดีกว่าพยายามสร้าง Summary ภายหลังจาก Address ถูกแจก กระจัดกระจายไปแล้ว

ภาค 7: Cisco Lab — ABR Summarization

Lab 1: Summarize Routes จาก Area 10

Topology:

LANs in Area 10

10.10.0.0/24
10.10.1.0/24
10.10.2.0/24
10.10.3.0/24
       |
       |
      R1
       |
     Area 10
       |
       |
      R2
      ABR
       |
     Area 0
       |
       |
      R3

R1 Configuration

R1(config)# router ospf 1
R1(config-router)# router-id 1.1.1.1
R1(config-router)# network 10.10.0.0 0.0.3.255 area 10
R1(config-router)# network 10.0.12.0 0.0.0.3 area 10

R2 — 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 10
R2(config-router)# network 10.0.23.0 0.0.0.3 area 0

R3

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

ก่อนทำ Summarization

ตรวจ R3:

R3# show ip route ospf

อาจเห็น:

O IA 10.10.0.0/24
O IA 10.10.1.0/24
O IA 10.10.2.0/24
O IA 10.10.3.0/24

สร้าง Summary ที่ R2

R2(config)# router ospf 1
R2(config-router)# area 10 range 10.10.0.0 255.255.252.0

ตรวจ R3 อีกครั้ง

R3# show ip route ospf

เป้าหมายคือเห็น Summary:

O IA 10.10.0.0/22 via ...

จากนั้นตรวจ LSDB:

R3# show ip ospf database summary

ภาค 8: Cisco Lab — ASBR Summarization

Lab 2: Summarize External Routes

Topology:

External Static Networks

172.16.0.0/24
172.16.1.0/24
172.16.2.0/24
172.16.3.0/24
       |
       v
      R1
     ASBR
       |
       v
    Area 0
       |
       v
      R2

สร้าง Static Routes สำหรับ Lab

R1(config)# ip route 172.16.0.0 255.255.255.0 null0
R1(config)# ip route 172.16.1.0 255.255.255.0 null0
R1(config)# ip route 172.16.2.0 255.255.255.0 null0
R1(config)# ip route 172.16.3.0 255.255.255.0 null0

Redistribute Static

R1(config)# router ospf 1
R1(config-router)# redistribute static subnets

ตรวจ R2 ก่อน Summary

R2# show ip route ospf

อาจพบ External Routes:

O E2 172.16.0.0/24
O E2 172.16.1.0/24
O E2 172.16.2.0/24
O E2 172.16.3.0/24

สร้าง External Summary

R1(config)# router ospf 1
R1(config-router)# summary-address 172.16.0.0 255.255.252.0

ตรวจ R2

R2# show ip route ospf

เป้าหมาย:

O E2 172.16.0.0/22 via ...

ตรวจ LSDB:

R2# show ip ospf database external

ภาค 9: Verification และ Troubleshooting

ตรวจ OSPF Summarization อย่างไร?

หลัง Configuration ควรตรวจอย่างน้อย:

show ip ospf
show ip ospf neighbor
show ip ospf database
show ip route ospf
show ip route

สำหรับ Inter-Area Summary:

show ip ospf database summary

สำหรับ External Summary:

show ip ospf database external

และตรวจ Configuration:

show running-config | section router ospf

OSPF Summarization Troubleshooting

ใช้ Workflow:

Expected Specific Routes exist?
             |
             v
Correct Summary Boundary?
             |
             v
ABR or ASBR?
             |
             v
Correct Command?
             |
             v
Summary LSA generated?
             |
             v
Remote LSDB
             |
             v
Remote Routing Table
             |
             v
Longest Prefix Match
             |
             v
Forward Path
             |
             v
Return Path

ปัญหา 1 — Summary Route ไม่ปรากฏ

ตรวจ:

show ip route
show ip route ospf
show ip ospf database
show running-config | section router ospf

ตรวจว่า:

  • Router เป็น ABR หรือ ASBR ตาม Requirement จริงหรือไม่
  • Specific Prefix อยู่ใน Summary Range หรือไม่
  • Route ต้นทางมีอยู่จริงหรือไม่
  • Mask ของ Summary ถูกต้องหรือไม่
  • ใช้คำสั่งถูกประเภทหรือไม่

ปัญหา 2 — ใช้ area range ผิด Area

สมมติ Prefix 10.10.0.0/22 อยู่ใน Area 10

ต้องอ้างอิง:

area 10 range 10.10.0.0 255.255.252.0

ไม่ใช่เลือก Area 0 เพียงเพราะต้องการ Advertise Summary เข้า Area 0

ปัญหา 3 — Summary กว้างเกินไป

ตรวจด้วย:

show ip route SUMMARY-PREFIX

จากนั้นแจกแจงว่า Summary ครอบคลุม Specific Networks ใดบ้าง

Summary
10.10.0.0/20

Does it include networks
that do not really exist?

ปัญหา 4 — Ping บาง Subnet ได้ บาง Subnet ไม่ได้

กรณีนี้ควรตรวจว่า Summary Route ครอบคลุม Network ที่ไม่มี More-Specific Route หรือไม่

ตรวจ:

show ip route DESTINATION
traceroute DESTINATION
show ip ospf database
show ip route

ปัญหา 5 — Summary ถูกต้องแต่ Communication ไม่ได้

อย่าหยุดตรวจเพียง OSPF เพราะปัญหาอาจอยู่ที่:

  • Return Route
  • ACL
  • Firewall
  • Endpoint Default Gateway
  • NAT
  • VLAN
  • Interface State
  • Application Port

เปลี่ยน Summary Route ใน Production ต้องระวังอะไร?

การเปลี่ยน Summary สามารถเปลี่ยน Reachability ของหลาย Prefix พร้อมกัน จึงควรวาง Change Plan ก่อนแก้ Configuration

Change Checklist
  • บันทึก Specific Routes ก่อนเปลี่ยน
  • คำนวณ Summary Prefix และ Mask ซ้ำ
  • ตรวจว่า Summary ครอบคลุม Network ใดบ้าง
  • ตรวจว่า Address Space ใดไม่มีใช้งาน
  • ตรวจ Redundant ABRs/ASBRs
  • ตรวจ Forward และ Return Path
  • เตรียม Rollback Command
  • ตรวจ LSDB หลังเปลี่ยน
  • ตรวจ Routing Table จากหลายจุด
  • ทดสอบ Critical Destinations
อย่าใช้ clear ip ospf process เป็นขั้นตอนแรกในการ Troubleshoot Production Network เพราะสามารถทำให้ OSPF Adjacencies ถูกสร้างใหม่และกระทบ Routing ได้ ควรตรวจ State และข้อมูล ด้วยคำสั่ง show ก่อน

Cisco OSPF Summarization Command Cheat Sheet

Command หน้าที่
area 10 range 10.10.0.0 255.255.252.0 สร้าง Inter-Area Summary ที่ ABR
summary-address 172.16.0.0 255.255.252.0 Summarize External Routes ที่ ASBR
show ip route ตรวจ Routing Table ทั้งหมด
show ip route ospf ตรวจ OSPF Routes
show ip ospf database ตรวจ LSDB
show ip ospf database summary ตรวจ Inter-Area Summary Information
show ip ospf database external ตรวจ External LSA
show ip ospf border-routers ตรวจ ABR/ASBR Information
show ip route <destination> ตรวจ Route Lookup สำหรับ Destination
traceroute <destination> ตรวจ Forwarding Path โดยประมาณ
Syntax และ Output อาจแตกต่างตาม Cisco Platform, IOS/IOS XE Release และ Feature Set ควรตรวจด้วย Context Help ? และ Documentation ของอุปกรณ์ที่ใช้งานจริง

คำถามที่พบบ่อย — FAQ

OSPF Route Summarization คืออะไร?

คือการรวมหลาย Prefix ให้เป็น Prefix ที่ใหญ่ขึ้น ก่อน Advertise ผ่าน Routing Boundary ที่รองรับ เพื่อลด Routing Information และสร้าง Hierarchical Routing

OSPF Summarize Route ได้ทุก Router หรือไม่?

โดยหลักของ OSPF Summarization เกิดที่ Routing Boundaries ที่เหมาะสม เช่น ABR สำหรับ Inter-Area Routes และ ASBR สำหรับ External Routes

area range ใช้ที่ไหน?

ใช้ที่ ABR เพื่อ Summarize Inter-Area Prefixes จาก Area ที่ระบุ

summary-address ใช้ที่ไหน?

ใช้ที่ ASBR เพื่อ Summarize External Routes ที่ถูกนำเข้าสู่ OSPF ผ่าน Redistribution

area range กับ summary-address เหมือนกันหรือไม่?

ไม่เหมือนกัน area range เกี่ยวข้องกับ Inter-Area Summarization ส่วน summary-address เกี่ยวข้องกับ External Route Summarization

ทำไม Summary Route อาจชี้ไป Null0?

Discard Route สามารถช่วย ป้องกัน Traffic สำหรับ Destination ที่อยู่ใน Summary แต่ไม่มี More-Specific Route ไม่ให้ถูกส่งวนกลับ ผ่าน Less-Specific Route เช่น Default Route

Null0 จะทิ้ง Traffic ที่มี More-Specific Route ด้วยหรือไม่?

ไม่ หากมี More-Specific Route ที่ตรงกับ Destination Routing Lookup จะเลือก More-Specific Route ตาม Longest Prefix Match ก่อน Summary Route

Summary Route ทำให้เกิด Black Hole ได้หรือไม่?

ได้ หาก Summary ครอบคลุม Address Space ที่ไม่มี Reachable Destination จริง Traffic สำหรับ Address เหล่านั้น อาจถูกส่งมายัง Summary Router แล้วถูกทิ้ง

Summary Prefix ควรครอบคลุม Network ที่ยังไม่ได้ใช้หรือไม่?

ขึ้นอยู่กับ Addressing และ Routing Design แต่ต้องเข้าใจว่า การ Advertise Summary เป็นการประกาศ Reachability ของ Address Space ที่ Summary ครอบคลุม จึงต้องวิเคราะห์ผลต่อ Traffic ที่ส่งมายัง Prefix ที่ยังไม่มี More-Specific Route

Summarization ลด SPF Calculation หรือไม่?

ผลขึ้นอยู่กับตำแหน่งของ Topology Change และ Area Boundary Summarization สามารถลด Routing Information ที่ Area อื่นเห็น แต่ไม่ควรตีความว่า จะลด SPF Processing ทุกประเภททั่ว OSPF Domain โดยอัตโนมัติ

ควรออกแบบ IP Address ก่อนหรือ OSPF Area ก่อน?

ควรออกแบบร่วมกัน เพราะ Address Allocation ที่สอดคล้องกับ Area และ Site Boundary ทำให้สามารถสร้าง Summary ที่สะอาดและคาดการณ์ได้ง่ายกว่า

สรุป

OSPF Route Summarization เป็นส่วนสำคัญของ Hierarchical Routing Design โดยเฉพาะเมื่อ Network เริ่มใช้ Multi-Area OSPF

Specific Routes

10.10.0.0/24
10.10.1.0/24
10.10.2.0/24
10.10.3.0/24

       |
       v

     ABR
       |
       | area range
       v

10.10.0.0/22

       |
       v

Other OSPF Areas

จำหลักสำคัญ:

ABR
 |
 +-- Inter-Area Routes
 |
 +-- area range


ASBR
 |
 +-- External Routes
 |
 +-- summary-address

แต่ Summary Route ต้องทำงานร่วมกับ หลัก Longest Prefix Match และต้องระวัง Summary ที่ครอบคลุม Network ซึ่งไม่มีอยู่จริง

Good Address Plan
        |
        v
Contiguous Prefixes
        |
        v
Clean Summarization
        |
        v
Smaller Routing Information
        |
        v
Simpler Routing Architecture

ดังนั้น Route Summarization ควรเริ่มตั้งแต่ขั้นตอน IP Address Planning ไม่ใช่รอจน Network มี Prefix กระจัดกระจาย แล้วจึงพยายามรวมภายหลัง

หลังจากเข้าใจ OSPF Summarization แล้ว บทความลำดับต่อไปควรเข้าสู่ OSPF Advanced Troubleshooting: แก้ปัญหา Neighbor, LSDB, LSA, SPF, Route Selection และ Inter-Area Routing แบบเป็นขั้นตอน เพื่อรวมความรู้ OSPF ทั้งหมดเข้าสู่กระบวนการ แก้ปัญหา Network จริง

Share this
Facebook Share X
TECHEREST COMMUNITY

Share your thoughts here

Join the conversation and share your perspective on this article.

Comments will load when you reach this section.