OSPF抓包分析.docx
《OSPF抓包分析.docx》由会员分享,可在线阅读,更多相关《OSPF抓包分析.docx(19页珍藏版)》请在冰豆网上搜索。
OSPF抓包分析
OSPF在建立邻居的时候需要比对的信息有:
Router-ID必须不同
Area-ID、Authentication、Networkmask、Hellointerval、RouterDeadInterval必须相同
卷一中指出还会比对optionvalue字段
其实如果区域类型不匹配,OSPF邻居关系也无法建立。
但是在Hello报文中,我们并没有直观的看到区域类型的相关信息。
关于区域类型的信息究竟隐藏在Hello包的什么位置呢?
hello包中并没有直观体现区域类型,而是从externalroutingcapablilty 和NSSA supported的角度间接体现了区域类型。
从邻居关系建立的角度来讲,区域只有三种:
常规区域、stubarea、NSSAarea。
至于另外两种完全区域从配置上看也很明了,仅仅是只在ABR上配置stub或者NSSA的时候加后缀参数no-summary来阻止3型lsa进入该区域而已。
接口的区域类型对于stub、totallystub;nssa、totallynssa本来也就是不一致的。
所以并不影响邻居关系的建立。
Hello报文的信息如下(摘自卷一):
RouterIDoftheoriginatingrouter.(必须不匹配)
AreaIDoftheoriginatingrouterinterface.(必须匹配)
Addressmaskoftheoriginatinginterface.(必须匹配)
Authenticationtypeandauthenticationinformationfortheoriginatinginterface.(必须匹配)
HelloIntervaloftheoriginatinginterface.(必须匹配)
RouterDeadIntervaloftheoriginatinginterface.(必须匹配)
RouterPriority.
DRandBDR.
Fiveflagbitssignifyingoptionalcapabilities.(必须匹配?
)
RouterIDsoftheoriginatingrouter'sneighbors.ThislistcontainsonlyroutersfromwhichHelloswereheardontheoriginatinginterfacewithinthelastRouterDeadInterval
Whenarouterreceives aHellofromaneighbor,itwillverifythattheAreaID,Authentication,NetworkMask,HelloInterval,RouterDeadInterval,and Optionsvalues matchthevaluesconfiguredonthereceivinginterface.Iftheydonot,thepacketisdroppedandnoadjacencyisestablished.(摘自卷一)