LSA フラッディングの調整




トポロジ

R1 s1/0 ---------------- s1/0 R2

条件
・R1 - R2 にて 30分置きにcpu 使用率が高くがスパイクし、その原因がLSAフラッディングが
 多いためであることがわかっている。
・R1,R2 にてフラッディング量をすくなくしてください。



まず下記設定からスタートです。

R1
interface Serial1/0
ip add 192.168.0.0 255.255.255.0

router ospf 1
net 192.168.0.0 0.0.0.255 area 0

R2
interface Serial1/0
ip add 192.168.0.2 255.255.255.0

router ospf 1
net 192.168.0.0 0.0.0.255 area 0



これは、コマンドだけなので手短に。

R1
interface s1/0
ip ospf flood-reduction

R2
interface s1/0
ip ospf flood-reduction


R1#sh ip ospf
*Aug 25 12:29:20.015: %SYS-5-CONFIG_I: Configured from console by console int
Serial1/0 is up, line protocol is up
  Internet Address 12.12.12.1/24, Area 0
  Process ID 1, Router ID 12.12.12.1, Network Type POINT_TO_POINT, Cost: 64
  Reduce LSA flooding.
  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
    Hello due in 00:00:06
  Supports Link-local Signaling (LLS)
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 20.20.20.20
  Suppress hello for 0 neighbor(s)



また、LSAのページングタイマーを変更するには下記コマンドです。
OSPFにおけるネイバーからのLSAの収集、チェックサム、エージングの間隔を変化させます。

R1
router ospf 1
timers pacing lsa-group 300
もしくは、
timer lsa-group-pacing 300

デフォルトは240とのこと。

R2#sh ip ospf
 Routing Process "ospf 1" with ID 20.20.20.20
 Start time: 00:00:26.844, Time elapsed: 01:38:01.380
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 Supports Link-local Signaling (LLS)
 Supports area transit capability
 Originating router-LSAs with maximum metric
    Condition: always, State: active
 Initial SPF schedule delay 5000 msecs
 Minimum hold time between two consecutive SPFs 10000 msecs
 Maximum wait time between two consecutive SPFs 10000 msecs
 Incremental-SPF disabled
 Minimum LSA interval 5 secs
 Minimum LSA arrival 1000 msecs
 LSA group pacing timer 500 secs
 Interface flood pacing timer 33 msecs
 Retransmission pacing timer 66 msecs
 Number of external LSA 0. Checksum Sum 0x000000
 Number of opaque AS LSA 0. Checksum Sum 0x000000



更新日:2012年8月25日
TOPに戻る