分享

(5)揭秘ospf hello包中区域类型信息的潜藏位置

 qweertt4747 2017-02-26

 

   OSPF在建立邻居的时候需要比对的信息有:

   Router-ID 必须不同

   Area-ID 、Authentication、Network mask、Hellointerval、RouterDeadInterval 必须相同

   卷一中指出还会比对option value 字段

 

  其实如果区域类型不匹配,OSPF邻居关系也无法建立。但是在Hello报文中,我们并没有直观的看到区域类型的相关信息。关于区域类型的信息究竟隐藏在Hello 包的什么位置呢?

 

  hello包中并没有直观体现区域类型,而是从external routing capablilty  和 NSSA  supported 的角度间接体现了区域类型。

 

   揭秘ospf <wbr>hello包中区域类型信息的潜藏位置

  从邻居关系建立的角度来讲,区域只有三种:常规区域、stub area、NSSA area 。至于另外两种完全区域从配置上看也很明了,仅仅是只在ABR上配置stub 或者 NSSA的时候加后缀参数no-summary 来阻止3型lsa进入该区域而已。接口的区域类型对于stub 、totally stub;nssa、 totally nssa本来也就是不一致的。所以并不影响邻居关系的建立。

 

   Hello报文的信息如下(摘自卷一):

Router ID of the originating router.(必须不匹配)

Area ID of the originating router interface.(必须匹配)

Address mask of the originating interface.(必须匹配)

Authentication type and authentication information for the originating interface.(必须匹配)

HelloInterval of the originating interface.(必须匹配)

RouterDeadInterval of the originating interface.(必须匹配)

Router Priority.

DR and BDR.

Five flag bits signifying optional capabilities.(必须匹配?)

Router IDs of the originating router's neighbors. This list contains only routers from which Hellos were heard on the originating interface within the last RouterDeadInterval

 

   When a router receives a Hello from a neighbor, it will verify that the Area ID, Authentication, Network Mask, HelloInterval, RouterDeadInterval, and Options values match the values configured on the receiving interface. If they do not, the packet is dropped and no adjacency is established. (摘自 卷一)

 

 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多