OSPF在NBMA下的五种网络类型.docx
- 文档编号:4401366
- 上传时间:2022-12-01
- 格式:DOCX
- 页数:10
- 大小:64.11KB
OSPF在NBMA下的五种网络类型.docx
《OSPF在NBMA下的五种网络类型.docx》由会员分享,可在线阅读,更多相关《OSPF在NBMA下的五种网络类型.docx(10页珍藏版)》请在冰豆网上搜索。
OSPF在NBMA下的五种网络类型
OSPF在NBMA下的五种网络类型
网络类型就这么几种,有点对点,点对多点,广播多点等等。
最典型的多路访问链路就是常见的以太网,多个访问节点都可以访问同一个网段。
在以太网上是可以发广播的。
所以叫BMA。
所谓NBMA就是一个非广播多路访问链路,上面又不能发广播。
而帧中继就是典型的(也许是唯一现存的)NBMA了。
因为它是多路访问链路,但是又由于有带宽的限制不能发广播包。
ospf把NBMA分为5类
分别是RFC的:
point-to-multipoint
non-broadcast
CISCO的:
point-to-multipointnonbroadcast
broadcast
point-to-point
NBMA会阻隔广播和组播,在帧中继中,缺省类型就是nbma,所谓的bma是以太网中的
接口下打上enfram,该接口默认是非广播模式。
帧中继中的广播多路访问模式,是指在接口上打上iposnetb后欺骗ospf将hello包以广播形式发送出去,但帧中继中的无法传播广播的,ospf则是通过DLCI中的broadcast来为每个具有DLCI的目的IP发送单播hello包.
注意回复hello包者也是单播形式
即,单播方式的hello包,形式上是借助端口下配置OSPF的broadcast方式广播出去,但在帧中继网络中,最终还是借助帧中继的broadcast方式来封装广播包为帧中继的单播包并转发。
frame-relaymapipa.b.c.d110broadcast
实验基本配置:
1. 首先将R1配置成为帧中继交换机:
frame-relayswitching
!
interfaceSerial1/0
noipaddress
encapsulationframe-relay
clockrate64000
frame-relaylmi-typeansi
frame-relayintf-typedce
frame-relayroute101interfaceSerial1/1102
!
interfaceSerial1/1
noipaddress
encapsulationframe-relay
clockrate64000
frame-relaylmi-typeansi
frame-relayintf-typedce
frame-relayroute102interfaceSerial1/0101
2. R2和R3的基本配置:
R2:
interfaceLoopback0
ipaddress2.2.2.2255.255.255.0
!
interfaceSerial1/0
ipaddress12.1.1.2255.255.255.0
encapsulationframe-relay
serialrestart-delay0
frame-relaymapip12.1.1.3101broadcast
noframe-relayinverse-arp
!
routerospf10
router-id2.2.2.2
log-adjacency-changes
network2.2.2.00.0.0.255area0
network12.1.1.00.0.0.255area0
R3:
interfaceLoopback0
ipaddress3.3.3.3255.255.255.0
!
interfaceSerial1/1
ipaddress12.1.1.3255.255.255.0
encapsulationframe-relay
serialrestart-delay0
frame-relaymapip12.1.1.2102broadcast
noframe-relayinverse-arp
!
routerospf10
router-id3.3.3.3
log-adjacency-changes
network3.3.3.00.0.0.255area0
network12.1.1.00.0.0.255area0
Type1----Non_Broadcast(默认)
我们在R2上showipospfneighbor,发现没有邻居。
说明在这种情况下邻居需要手动配置!
配置如下:
R2:
R2(config)#routerospf10
R2(config-router)#neighbor12.1.1.3
R3:
R3(config)#routerospf10
R3(config-router)#neighbor12.1.1.2
此时在R2上查看邻居:
R2#shoipospfnei
NeighborIDPriStateDeadTimeAddressInterface
3.3.3.31FULL/DR00:
01:
4612.1.1.3Serial1/0
发现邻居已经形成并且有DR与BDR的选举!
在R2上查看接口
R2#showipospfinterface
Serial1/0isup,lineprotocolisup
InternetAddress12.1.1.2/24,Area0
ProcessID10,RouterID2.2.2.2,NetworkTypeNON_BROADCAST,Cost:
64
TransmitDelayis1sec,StateBDR,Priority1
DesignatedRouter(ID)3.3.3.3,Interfaceaddress12.1.1.3
BackupDesignatedrouter(ID)2.2.2.2,Interfaceaddress12.1.1.2
FlushtimerforoldDRLSAduein00:
01:
40
Timerintervalsconfigured,Hello30,Dead120,Wait120,Retransmit5
在这种网络类型中,hello的间隔是30s。
打开debug信息,我们可以看到在这种网络类型中,OSPF的数据包是单播传送的。
R2#
*Aug1414:
52:
52.819:
OSPF:
Sendhelloto12.1.1.3area0onSerial1/0from12.1.1.2
R2#
*Aug1414:
52:
57.087:
OSPF:
Rcvhellofrom3.3.3.3area0fromSerial1/012.1.1.3
*Aug1414:
52:
57.091:
OSPF:
Endofhelloprocessing
Type2----Broadcast
首先去掉刚才手动配置的邻居关系:
R2(config)#routerospf10
R2(config-router)#noneighbor12.1.1.3
R3(config)#routerospf10
R3(config-router)#noneighbor12.1.1.2
将R2和R3接口的网络类型改成broadcast
R2(config-router)#ints1/0
R2(config-if)#ipospfnetworkbroadcast
R3(config-router)#ints1/1
R3(config-if)#ipospfnetworkbroadcast
一会我们就看到了如下信息
R3#
*Aug1414:
59:
52.823:
%OSPF-5-ADJCHG:
Process10,Nbr2.2.2.2onSerial1/1fromLOADINGtoFULL,LoadingDone
这说明了在这种网络类型下是不需要手动配置邻居关系的!
R2#showipospfnei
NeighborIDPriStateDeadTimeAddressInterface
3.3.3.31FULL/DR00:
00:
3912.1.1.3Serial1/0
有DR与BDR的选举。
R2#shoipospfint
Serial1/0isup,lineprotocolisup
InternetAddress12.1.1.2/24,Area0
ProcessID10,RouterID2.2.2.2,NetworkTypeBROADCAST,Cost:
64
TransmitDelayis1sec,StateBDR,Priority1
DesignatedRouter(ID)3.3.3.3,Interfaceaddress12.1.1.3
BackupDesignatedrouter(ID)2.2.2.2,Interfaceaddress12.1.1.2
Timerintervalsconfigured,Hello10,Dead40,Wait40,Retransmit5
Hello时间间隔为10s。
R2#
*Aug1415:
02:
20.443:
OSPF:
Sendhelloto224.0.0.5area0onSerial1/0from12.1.1.2
*Aug1415:
02:
20.959:
OSPF:
Rcvhellofrom3.3.3.3area0fromSerial1/012.1.1.3
*Aug1415:
02:
20.963:
OSPF:
Endofhelloprocessing
使用224.0.0.5这个组播地址传送数据包。
Type3----Point-to-Point
将R2,R3接口的网络类型改成Point-to-Point
R2(config-if)#ipospfnetpoint-to-point
R3(config-if)#ipospfnetpoint-to-point
很快我们就可以看到如下信息
R3(config-if)#
*Aug1415:
06:
07.559:
%OSPF-5-ADJCHG:
Process10,Nbr2.2.2.2onSerial1/1fromLOADINGtoFULL,LoadingDone
说明这种网络类型也不需要手动指定邻居
R2#shoipospfnei
NeighborIDPriStateDeadTimeAddressInterface
3.3.3.30FULL/-00:
00:
3712.1.1.3Serial1/0
没有DR/BDR的选举
R2#shipospfint
Serial1/0isup,lineprotocolisup
InternetAddress12.1.1.2/24,Area0
ProcessID10,RouterID2.2.2.2,NetworkTypePOINT_TO_POINT,Cost:
64
TransmitDelayis1sec,StatePOINT_TO_POINT,
Timerintervalsconfigured,Hello10,Dead40,Wait40,Retransmit5
Hello时间间隔为10s
R2#
*Aug1415:
08:
25.311:
OSPF:
Sendhelloto224.0.0.5area0onSerial1/0from12.1.1.2
R2#
*Aug1415:
08:
30.259:
OSPF:
Rcvhellofrom3.3.3.3area0fromSerial1/012.1.1.3
*Aug1415:
08:
30.263:
OSPF:
Endofhelloprocessing
同样也是使用224.0.0.5这个组播地址传送数据。
Type4----Point-to-Multipoint
将接口改为Point-to-Multipoint
R2(config-if)#ipospfnetworkpoint-to-multipoint
R3(config-if)#ipospfnetworkpoint-to-multipoint
*Aug1415:
10:
51.739:
%OSPF-5-ADJCHG:
Process10,Nbr2.2.2.2onSerial1/1fromLOADINGtoFULL,LoadingDone
同样也不需要手动指定邻居
R2#shoipospfnei
NeighborIDPriStateDeadTimeAddressInterface
3.3.3.30FULL/-00:
01:
4812.1.1.3Serial1/0
没有DR和BDR的选举
R2#shoipospfint
Serial1/0isup,lineprotocolisup
InternetAddress12.1.1.2/24,Area0
ProcessID10,RouterID2.2.2.2,NetworkTypePOINT_TO_MULTIPOINT,Cost:
64
TransmitDelayis1sec,StatePOINT_TO_MULTIPOINT,
Timerintervalsconfigured,Hello30,Dead120,Wait120,Retransmit5
Hello时间间隔为30s
R2#
*Aug1415:
12:
49.759:
OSPF:
Sendhelloto224.0.0.5area0onSerial1/0from12.1.1.2
R2#
*Aug1415:
12:
57.443:
OSPF:
Rcvhellofrom3.3.3.3area0fromSerial1/012.1.1.3
*Aug1415:
12:
57.447:
OSPF:
Endofhelloprocessing
以224.0.0.5这个组播地址发送数据
Type5----Point-to-Multipoint(Non_Broadcast)
改变接口类型为Point-to-Multipoint(Non_Broadcast)
R2(config-if)#ipospfnetworkpoint-to-multipointnon-broadcast
R3(config-if)#ipospfnetworkpoint-to-multipointnon-broadcast
这个时候邻居没有被自动发现。
我们在R2上手动指定邻居
R2(config-if)#routerospf10
R2(config-router)#neighbor12.1.1.3
R2(config-router)#
*Aug1415:
18:
38.955:
%OSPF-5-ADJCHG:
Process10,Nbr3.3.3.3onSerial1/0fromLOADINGtoFULL,LoadingDone
邻居只要在一边指定即可。
说明在这种网络类型下邻居需要手动指定。
R2#shoipospfnei
NeighborIDPriStateDeadTimeAddressInterface
3.3.3.30FULL/-00:
01:
5712.1.1.3Serial1/0
同样没有DR和BDR的选取
R2#shoipospfint
Serial1/0isup,lineprotocolisup
InternetAddress12.1.1.2/24,Area0
ProcessID10,RouterID2.2.2.2,NetworkTypePOINT_TO_MULTIPOINT,Cost:
64
TransmitDelayis1sec,StatePOINT_TO_MULTIPOINT,
Timerintervalsconfigured,Hello30,Dead120,Wait120,Retransmit5
Hello时间间隔为30s
R2#
*Aug1415:
21:
03.099:
OSPF:
Sendhelloto12.1.1.3area0onSerial1/0from12.1.1.2
*Aug1415:
21:
03.295:
OSPF:
Rcvhellofrom3.3.3.3area0fromSerial1/012.1.1.3
*Aug1415:
21:
03.299:
OSPF:
Endofhelloprocessing
使用单播传送OSPF数据。
总结:
在NBMA网络下5种网络类型具体情况如下表所示:
说明:
1、non-broadcast、point-to-multipointnon-broadcast两个类型中的OSPF需要配置neighboor,即手工指定邻居,即不能自动发现邻居。
2、non-broadcast、point-to-multipointnon-broadcast两个类型中的OSPF为单播传输数据,其他为组播224.0.0.5方式传播。
3、point-to-x的网络类型,均没有DR的选举一说。
4、配置命令frame-relaymapipa.b.c.d102broadcast
这种配置下broadcast参数作用:
帧中继可以处理广播流,使用广播分组将DLCI102发送给邻居a.b.c.d,
要强调的是,这里的frame-relaymapip配置,是帧中继映射的配置,而非OSPF类型的配置
5、要强调的是,如果采用全网状互联方式,broacast工作正常,但如果全网状某些链路出现故障成为部分网状互联即星型结构,而中心的路由器没有成为DR,则会出现部分网络之间无法互相学习到路由条目,导致无法正常访问。
ThebroadcastmodeloverFrameRelayworksproperlyiftheFrameRelaycloudisfullymeshed.
“ProblemswithRunningOSPFinNBMAandBroadcastModeoverFrameRelay”
6、部分网状连接的帧中继网络:
OSPF如果需要发送Hello包建立邻居关系,则必须发送到中心路由器,因为OSPF的Hello包的TTL只有1
NBMA网络拓扑:
1、全网状连接方式
2、部分网状连接方式
实质:
帧中继自身不转发广播包、组播包,故Cisco采用以下方式进行了改进,使之成为支持广播的网络:
1、帧中继的改进:
广播网络,在对端口下的帧中继配置:
frame-relaymapipa.b.c.d102broadcast
这种配置下broadcast参数作用:
帧中继可以处理广播流,使用广播分组将DLCI102发送给邻居a.b.c.d
子接口Point-to-Point类型网络中似乎可以不用broadcast参数(PacketTracer已核实,待IOU核实)
2、OSPF的改进:
(a)针对参与到帧中继网络中的路由器端口,指定其端口类型:
interfaceserial1/0
ipospfnetworknon-broadcast/point-to-mulitpointnon-broadcast或者
ipospfnetworkbroadcast/point-to-point/point-to-mulitpoint
(b)针对非广播non-broadcast的网络类型在路由器中,则手工指定OSPF邻居:
routerospf10
neighbora.b.c.d
1、PacketTracer具备接口的改造:
对接口类型可以设置为point-to-point、mulitpoint
interfaceserial1/0point-to-point/mulitpoint
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- OSPF NBMA 网络 类型