20191105

ospf

OSPF(open shortest path first):每30分鐘會傳遞訊息其他人
OSPFv2:IPv4
OSPFv3:IPv6

動態路由
IGP:interior gateway potorol (RIP、OSPF、EIGP、ISB)
支持VLSM(超網化)和CIDR(子網路切割)
Link State
---------
|IP|OSPF|  IP potorol=89 → OSPF
---------  potorol=88 → EIGRP
DV:distance vector(倆倆交換資訊,得到路由資訊) (只知道旁邊鄰居的node)
LS:link state ↓
LSA link state advertisement floud 到是個網路,所以網路中每個mode都有相同的LSDB,透過此LSDR建構shortest path tree(SPT)以得到從自己到不同node的最短路徑
A-----B-----C-----D
◎----◎----◎----◎
   ←     ←
  metoric=1
OSPF有三張表:
鄰居表
LSDB表
路由表
DR:指定
BDR:被指定
DR other
*當DR掛掉,BDR自動補上DR位置

         224.0.0.6
DR other      →    DR
    224.0.0.5
DR      →     DR other
priority
router id ↓
手動設定
loopback
up實體介面ip

Last updated