router-ID 1.手工指定(点分十进制)
          2.最大的回环口
   3.最大的物理接口IP
有了 router ID 才能开启ospf进程

1.接口优先级(高)  优先级为0不参与DR/BDR选举
2.router-ID  (高)
3.DR/BDR没有强制抢夺权
4.只有一个DR.一个BDR
DRother <---full--->DR/BDR
DRother <---two way---> DRother
two way 只交换HELLO包 
选举是为了减少lsa
DR 收集并转发lsa   DR转发lsa用224.0.0.6
BDR收集                     用224.0.0.5
OSPF Packet Types
1.HEllO
2.Database description
3.link-state request
4.link-State Update
5.link-state acknowledgment
建邻居过程
1.down state
2.init state
3.two-way state   交换hello包
4.exstart state   决定谁先发DBD
5.exchange state  这是我的DBD 发的是版本号
6.loading state   我要哪条路由,你发给我。只到只步
7.full state      完成任务
ospf建邻居条件
1.hello和dead 时间间格要一样
2.area ID 要一样
3.认证密码要一样
4.特殊区域要一样
5.MTU要一样  (ip mtu 1492 )  交换机 (sys mtu)要重启  或 接口下 ip ospf mtu-ignore
6.多路访问掩码要一样

cost=10^8/带宽BPS 当过G修改所以路由器的参考带宽
ABR 与区域0相联的路由器
ASBR与外部自治系统相联的路由器
画分区域的好处:
1.减小lsa的flood
2.减少拓朴动荡
3.减少不必要的路由条目.