ospf type-4 lsa 研究


RFC 2328 中这样描述type-4类lsa的生成的:

 

否则,如果该条路径与区域 A 自身有关联的话,不为该路径生成 Summary-LSA[脚注 17]。

 

否则,如果该条路径的下一跳地址与区域 A 有关联,不为该路径生成 Summary-LSA[脚注 18]。这在逻辑上与 DV 算法的水平分割相同。


否则,如果路由表中的距离值等于或超过 LSInfinity,不为该路径生成 Summary-LSA。


否则,如果目标类型为 ASBR,当且仅当路由表项描述了到达 ASBR 的最佳路径时(见第 16.4 节第3步),生成类型 4 的 Summary-LSA。该 LSA 的 LS 标识等于 ASBR 的路由器标识,输出值等于路由表项中的距离值。注意,如果区域 A 为存根区域的话,不生成该 LSA。



用华为的ENSP,配置区域0, 1, 2为普通区域.

对于四类lsa的研究如下
1. 在R3上引入6.0.0.1/32的静态路由,在 R5上的lsdb如下

 

[Huawei-ospf-1-area-0.0.0.2]display  ospf lsdb

 

    OSPF Process 1 with Router ID 5.1.1.1

             Link State Database

 

                     Area: 0.0.0.0

Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric

Router    5.1.1.1         5.1.1.1            271  36    8000002F       1

Router    155.1.1.1       155.1.1.1         1527  48    80000035       1

Router    161.1.1.1       161.1.1.1         1379  36    80000027       1

Network   100.5.5.155     155.1.1.1         1527  32    80000007       0

Network   100.161.155.61  161.1.1.1          350  32    80000024       0

Sum-Net   100.5.6.0       5.1.1.1           1532  28    80000026       1

Sum-Net   100.5.6.0       161.1.1.1          126  28    80000004       2

Sum-Net   100.161.6.0     5.1.1.1           1532  28    80000020       2

Sum-Net   100.161.6.0     161.1.1.1          127  28    80000026       1

Sum-Net   100.161.5.61    161.1.1.1          884  28    80000002       0

Sum-Net   100.161.5.61    5.1.1.1            251  28    80000001       1

Sum-Net   100.161.5.5     5.1.1.1            254  28    80000001       0

Sum-Net   100.161.5.5     161.1.1.1          253  28    80000001       1

Sum-Asbr  6.1.1.1         5.1.1.1            140  28    80000001       1

Sum-Asbr  6.1.1.1         161.1.1.1          141  28    80000001       1

 

                     Area: 0.0.0.1

Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric

Router    6.1.1.1         6.1.1.1            141  60    80000029       1

Router    5.1.1.1         5.1.1.1            271  48    80000025       1

Router    161.1.1.1       161.1.1.1          126  36    80000025       1

Network   100.161.6.6     6.1.1.1            119  32    80000005       0

Sum-Net   100.5.5.0       161.1.1.1          127  28    80000022       2

Sum-Net   100.5.5.0       5.1.1.1           1532  28    80000020       1

Sum-Net   100.161.155.0   161.1.1.1          127  28    80000020       1

Sum-Net   100.161.155.0   5.1.1.1           1531  28    80000006       2

Sum-Net   100.161.5.61    161.1.1.1          884  28    80000002       0

Sum-Net   100.161.5.61    5.1.1.1            251  28    80000003       1

Sum-Net   100.161.5.5     5.1.1.1            254  28    80000001       0

Sum-Net   100.161.5.5     161.1.1.1          254  28    80000002       1

 

                     Area: 0.0.0.2

Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric

Router    5.1.1.1         5.1.1.1            253  48    80000002       0

Router    161.1.1.1       161.1.1.1          254  48    80000003       0

Sum-Net   100.5.6.0       5.1.1.1            255  28    80000001       1

Sum-Net   100.5.6.0       161.1.1.1          884  28    80000002       2

Sum-Net   100.5.5.0       5.1.1.1            255  28    80000001       1

Sum-Net   100.5.5.0       161.1.1.1          884  28    80000002       2

Sum-Net   100.161.155.0   5.1.1.1            255  28    80000001       2

Sum-Net   100.161.155.0   161.1.1.1          884  28    80000002       1

Sum-Net   100.161.6.0     5.1.1.1            255  28    80000001       2

Sum-Net   100.161.6.0     161.1.1.1          884  28    80000002       1

Sum-Asbr  6.1.1.1         5.1.1.1            141  28    80000001       1

Sum-Asbr  6.1.1.1         161.1.1.1          141  28    80000001       1

 

 

   AS External Database

Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric

External    6.0.0.1         6.1.1.1            142  36    80000001       1

 

[Huawei-ospf-1-area-0.0.0.2]display ospf lsdb asbr


     OSPF Process 1 with Router ID 5.1.1.1

                Area: 0.0.0.0

        Link State Database



  Type      : Sum-Asbr

  Ls id     : 6.1.1.1

  Adv rtr   : 5.1.1.1 

  Ls age    : 353

  Len       : 28

  Options   :  E 

  seq#      : 80000001

  chksum    : 0xb594

  Tos 0  metric: 1


  Type      : Sum-Asbr

  Ls id     : 6.1.1.1

  Adv rtr   : 161.1.1.1 

  Ls age    : 354

  Len       : 28

  Options   :  E 

  seq#      : 80000001

  chksum    : 0x3479

  Tos 0  metric: 1

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值