ZXR105900ESeriesCongurationGuide(IPv4Routing)
OSPFAlgorithm
OSPFusescostasthemetric.Thecostisdistributedtoeachportofaswitch.Aport
calculatesthecostbasedon100Mbenchmarkbydefault.Thepathcosttoaparticular
destinationisthetotalcostofalllinksbetweentheswitchandthedestination.
TogeneratearoutingtablebyusingLSAdatabase,aswitchrunstheDijkstraSPF
algorithmtoconstructtheshortestpathtree.switchistherootofthepathtree.The
Dijkstraalgorithmcalculatestheapathwiththelowestcosttoanynodeonthenetwork.
switchsavestheroutesofthepathsintheroutingtable.
ComparedtoRIP ,OSPFdoesnotsimplybroadcastallitsroutinginformationregularly.
AnOSPFswitchuseshellopacketstokeeptheneighborhood.Whenaswitchdoesnot
receiveanyhellopacketsfromaneighborwithinaperiodoftime(dead-interval),thenit
willconsiderthattheneighborisnotalreadyalive.
OSPFroutesareincrementallyupdated.switchsendstheupdateinformationonlywhen
topologychanges.WhentheageofanLSAreaches1800seconds(LSAupdatinginterval,
LSRefreshTime),switchsendsanLSAupdatingpacket.
OSPFNetworkTypes
OSPFnetworktypedeterminestheformingofadjacencyrelationshipandthesettingof
interfacetimer.TherearevenetworktypesinOSPF ,andtheyareasfollows:
lBroadcastnetwork
lNon-BroadcastMultipleAccess(NBMA)network
lPoint-to-Pointnetwork
lPoint-to-Multipointnetwork
lVirtualLinksnetwork
HELLOPacketandTimer
OSPFroutersexchangeHELLOpacketsinacertaininterval,whichistokeepalivestate
amongneighbors.ByusingHELLOpacket,routercandetectOSPFneighborandselect
theDesignatedRouter(DR)andtheBackupDesignatedRouter(BDR).Inbroadcast,
point-to-multipointandpoint-to-pointnetworktypes,HELLOpacketscanbesentin
multicastmode.InNBMAnetwork,point-to-multipointnetworkandvirtuallinks,HELLO
packetsaresentinunicastmode.
OSPFusesthreekindsoftimersrelatingtoHELLOpackets:
1.Sendinginterval(HELLOinterval)
HELLOintervalisanattributeofinterface,whichdenestheintervalthataroutersends
HELLOpacketsbyarouterfromeachinterface.ThedefaultHELLOpacketsending
intervaldependsonthenetworktype.
Inbroadcastandpoint-to-pointnetworks,thedefaultHELLOpacketsendinginterval
is10seconds.InNBMAandpoint-to-multipointnetworks,thedefaultHELLOpacket
sendingintervalis30seconds.TheadjacentroutersmusthavethesameHellointerval
soastobecomeneighbors.
3-2
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential