Академический Документы
Профессиональный Документы
Культура Документы
- DV routing protocols employ a distributed computation approach, in which every router will
perform route computation based on the information provided by other routers individually;
LS routing protocols employ a replicated distributed database approach, in which every router
contributes information into a database that will be distributed and shared among all routers.
- With DV routing protocols, routers rely on routing information and decisions made by
neighboring routers. Routers do not have the full picture of the network topology.
With LS routing protocols, routers have the full picture of the network topology, and can
independently make routing decisions based on the accurate picture of the network topology.
- OSPF is a LS routing protocol intentionally designed and developed for TCP/IP. Other LS
routing protocols that have been developed for all other major protocol suites include
Intermediate System-to-Intermediate System (IS-IS) for OSI, NetWare Link Services Protocol
(NLSP) for Novell NetWare, Advanced Peer-to-Peer Networking (APPN) for IBM SNA, and
Private Network-to-Network Interface (PNNI) for ATM.
- A TCP/IP routing protocol can run directly over the data-link layer, over the IP network layer,
or over the IP transport layer protocols – TCP or UDP. Running directly over the data-link layer
requires a routing protocol to implement its own fragmentation mechanism as most data-link
layers do not provide fragmentation and reassembly services; Besides that, code points must also
be registered and assigned for the various data-link layers that the protocol runs over.
- Running over the IP network layer allows a routing protocol to utilize the fragmentation and
reassembly services which were built into the IP network layer without reinventing the wheel;
while the benefits of using UDP include a checksum mechanism for verifying packet integrity,
a greater multiplexing capability with the 16-bit Destination Port field than the 8-bit IP Protocol
field, and easier deployment on many operating systems, as sending and receiving packets
directly over the IP network layer may require superuser privileges, whereas UDP interface is
usually available to all users and applications.
- The reason that OSPF does not run over the IP transport layer protocols are that it does not
require the reliability of TCP, as it has its own reliability built into the flooding mechanism with
the use of checksum; and the small benefits of UDP (UDP also has a checksum field) were out-
weighted by the extra 8 bytes of UDP header overhead that would appear in every OSPF packet.
- LS routing protocols only generate and send routing updates upon a network topology change.
When a link changes its state, the router that detected the change would generate and send a
link-state advertisement (LSA) about the link to all neighboring routers with a multicast packet.
Each router would receive a copy of the LSA, updates its link-state database (LSDB),
and propagates the LSA to neighboring routers. Finally, the LSA reliable flooding feature
ensures that all routers update and synchronize their LSDBs to have the same LSDB to reflect the
new network topology before performing route computation and updating their routing tables.
- The LSDB is used to calculate the best paths to all networks in an internetwork. LS routers apply
Dijkstra’s SPF algorithm upon the LSDB to build the SPF tree. The best paths are then selected
from the SPF tree and are inserted into the routing table.
Link-State Routing
SPF Tree
Database Table
SPF
Calculation
- LS routers collect routing information from all other routers within a defined area of the network.
Each router independently calculates its best paths to all networks with the SPF algorithm.
Therefore, incorrect information received from a router is very unlikely to cause problems,
as each router would maintain its own view of the network.
- An OSPF router must maintain the following information for making correct routing decisions:
i) Its neighboring routers. If a router loses contact with a neighbor router for a duration,
it removes all paths through that router and recalculates the paths throughout the network.
The neighbor adjacency information is stored in the neighbor table or adjacency database.
ii) All other routers within an area of the network and their attached networks.
A router recognizes other routers and networks within the same area through LSAs,
which are flooded through the network. LSAs are stored in the topology table or LSDB.
iii) The best paths to all destination networks. Instead of advertising distances to known
destinations, link-state algorithm advertises and distributes the states of its local network
links to all routers. As a result, all routers will obtain the same link-state database that
describes the network topology. Each router independently calculates the best paths to all
destination networks in the network with SPF algorithm. The best paths are then inserted
into the routing table.
- The main drawback of LS routing protocols is the memory consumption for maintaining the
link-state databases or topology tables. However, as OSPF routers can maintain full information
about all the routers and links within an area, each router can independently calculate and select
loop-free and efficient paths to all destination networks in the area. This overcomes the routing
by rumor problem as in DV routing protocols.
- OSPF packets are encapsulated directly into an IP payload without the use of TCP or UDP.
OSPF packets are consisting of multiple encapsulations. The IP header encapsulates 1 of the 5
OSPF packet types – Hello, DBD, LSR, LSU, and LSAck. All types of OSPF packets begin with
an OSPF packet header, which is same for all packet types. The OSPF packet data following the
header varies according to the packet type. Each type of OSPF packet has a number of fields,
followed by more data.
- Most OSPF packets travel only a single hop between neighboring routers; the TTL field in the IP
header is often set to 1 to ensure misconfigured routers not mistakenly forwarding OSPF packets.
The exception for setting the TTL to 1 exists in certain OSPF hierarchical routing configurations.
- The Destination IP address field in the IP header is the IP address of a neighbor or either one of
the OSPF multicast IP addresses – AllSPFRouters (224.0.0.5) and AllDRouters (224.0.0.6).
All OSPF routers must be prepared to receive IP packets destined to 224.0.0.5; while both the
DR and BDR must be prepared to receive IP packets destined to 224.0.0.6.
Note: The corresponding Ethernet MAC addresses for the AllSPFRouters and AllDRouters
multicast IP addresses are 0100.5e00.0005 and 0100.5e00.0006 respectively.
- OSPF Hello packets contain a list of known neighbors, while other types of OSPF packets
contain a series of LSAs. These LSAs would also have their own specific types, headers, and
data fields. Examples of LSAs are Router-LSAs, Network-LSAs, and Network-Summary-LSAs.
- OSPF Hello packets are sent to the AllSPFRouters IP multicast address (224.0.0.5) every 10
seconds for broadcast and point-to-point networks, and every 30 seconds for NBMA networks.
The ip ospf hello-interval {sec} interface subcommand changes the interval of sending Hello
packets out a particular router interface.
- The OSPF Hello mechanism ensures neighboring routers can send and receive packets among
them (bidirectional link) in order to prevent routing problems that caused by unidirectional links.
- OSPF requires a reliable transmission mechanism. Since TCP is not used, it uses its own
acknowledgment packets (OSPF packet Type 5) for acknowledging the receipt of OSPF packets.
85 Copyright © 2009 Yap Chin Hoong
yapchinhoong@hotmail.com
32 bits
Router ID (32)
Area ID (32)
Router Priority
Hello Interval (16) Options (8)
(8)
- An OSPF router must established a neighbor relationship or adjacency with another neighboring
router before exchanging routing information with the neighboring router.
- The OSPF Hello packets are being used to discover neighbors, and establish and maintain
neighbor relationship between neighbors.
- The interfaces of neighboring routers must reside on the same network and have the same
Hello and dead intervals, network masks, area ID, stub area flags in the Options field,
and authentication password (if any) in order to form a neighbor relationship or adjacency.
87 Copyright © 2009 Yap Chin Hoong
yapchinhoong@hotmail.com
RT1 192.168.1.1/24 192.168.1.2/24 RT2
Fa1/0 Fa0/0 Fa0/0 Fa1/0
172.16.1.1/24 Lo0 – 10.10.10.1 10.10.10.2 – Lo0 172.16.2.1/24
DOWN DOWN
I am 10.10.10.1. I see no one.
HELLO – 224.0.0.5 (Multicast)
INIT
I am 10.10.10.2. I see 10.10.10.1.
HELLO – 224.0.0.5 (Multicast)
2-WAY
I am 10.10.10.1. I see 10.10.10.2.
HELLO – 192.168.1.2 (Unicast)
2-WAY
DR/BDR Election
I am 10.10.10.1. I see 10.10.10.2.
DR = 192.168.1.2. BDR = 192.168.1.1
HELLO – 224.0.0.5 (Multicast)
I am 10.10.10.2. I see 10.10.10.1.
DR = 192.168.1.2. BDR = 192.168.1.1
HELLO – 224.0.0.5 (Multicast)
- This section discusses how 2 neighboring OSPF routers on LAN establish adjacency, exchange
link-state database information, and eventually route packets between the networks behind them.
- At the beginning, the OSPF neighbor state on both routers is DOWN as they haven’t received
any Hello packet each other. The OSPF process is enabled on RT1 at a particular time and
triggered RT1 to send multicast Hello packets through all its interfaces participating in OSPF.
- RT2 which was running OSPF and resides on the same subnet and area as RT1 received the Hello
packet from RT1 and entered into the INIT state. RT2 added RT1 into its OSPF neighbor list.
- Subsequently, RT2 sent a multicast Hello packet which lists RT1 in the OSPF neighbor list.
When RT1 received the Hello packet from RT2, it noticed that another router has received its
Hello packet as it is being listed in the neighbor list of RT2’s Hello packet. RT1 entered into the
2-WAY state and added RT2’s Router ID into its neighbor table. At the same time,
RT1 immediately sent a unicast Hello packet that lists RT2 in the neighbor list to RT2 in order to
speed up RT2 to enter the 2-WAY state as soon as possible. Both routers have established
bidirectional communication as they seen each other in their own neighbor lists.
- The DR/BDR election occurs during the 2-WAY state for OSPF neighboring routers reside on
broadcast network, eg: Ethernet. The DR/BDR election must occur before the routers can begin
to exchange link-state information.
- Note: When an OSPF router joins a broadcast network which has a DR and BDR elected, it will
only establish adjacency and enter into the FULL state with the DR and BDR. The neighbor state
with other non-DR/BDR neighboring routers (DROTHERs) would stays in the 2-WAY state.
- Note: When an OSPF router has a higher Router ID or priority than the existing DR or BDR,
it does not preempt the existing DR or BDR. This prevents the DR/BDR election process from
occurring whenever a new OSPF router joins a broadcast network.
EXSTART EXSTART
I am the Master and will start the exchange.
(Seq = 2222, Init, More, Master)
DBD – 192.168.1.2 (Unicast)
No, I am the Master as I have higher Router ID.
(Seq = 1111, Init, More, Master)
DBD – 192.168.1.1 (Unicast)
EXCHANGE EXCHANGE
- After the DR and BDR have been elected, both routers entered into the EXSTART state,
in which the Master and Slave will be elected. Both routers will first claim to be the Master by
sending empty DBD packets with a sequence number the Init and Master/Slave (MS) bits set.
RT2 which has the higher Router ID would become the Master and controls the database
synchronization process, eg: deciding the initial DD sequence number used for DBD exchange.
The EXSTART state ends once the Master/Slave relationship is determined.
- During the EXCHANGE state, both routers exchange link-state information with multiple DBD
packets for them to determine whether they have the same LSAs in their link-state databases.
A DBD packet would include one or more LSA headers in the link-state database of the sender.
An OSPF router would send only LSA headers instead of the entire LSDB to a neighbor
during the EXCHANGE state. The LSA Type, Link-State ID, and Advertising Router fields in an
LSA header are enough to uniquely identify a particular LSA. Sequence numbers are being used
to determine the newness of link-state information.
- The transmission and reception of DBD packets resembles the operation of the TFTP protocol,
in which only one DBD packet can be outstanding at a time. The Master will send the next DBD
packet only when the previous DBD packet is acknowledged through a DBD packet with the
same sequence number from the Slave. If the Master does not receive an acknowledgment for an
outstanding DBD packet within the RxmtInterval, it would retransmit the previous DBD packet.
- The Slave would send a DBD packet with the same sequence number to acknowledge the receipt
of a DBD packet from the Master. Therefore, the last DBD packet is always sent by the Slave.
LOADING LOADING
I would like to have the complete entry for
LSID 10.10.10.2, Type Router-LSA.
LSR – 192.168.1.2 (Unicast)
I would like to have the complete entry for
LSID 10.10.10.1, Type Router-LSA.
LSR – 192.168.1.1 (Unicast)
Here is the complete entry for
LSID 10.10.10.1, Type Router-LSA.
LSU – 192.168.1.2 (Unicast)
Here is the complete entry for
LSID 10.10.10.2, Type Router-LSA.
LSU – 192.168.1.1 (Unicast)
Thanks for the information.
LSAck – 192.168.1.2 (Unicast)
Thanks for the information.
LSAck – 192.168.1.1 (Unicast)
FULL FULL
- During the LOADING state, an OSPF router would use LSR packets to request more specific,
recent, and complete LSAs from a neighbor router in which the link-state information received
during the EXCHANGE state is not in its LSDB or is more recent than the entry in its LSDB.
Upon receiving an LSR packet, an OSPF router would reply with an LSU packet which contains
the specific and complete LSAs. An LSAck packet is used to acknowledge the LSU sent from a
neighbor router. Each LSA must be acknowledged separately to ensure reliable flooding.
An LSA is being acknowledged by including its header in the LSAck packet, and multiple LSAs
can be acknowledged in a single LSAck packet. To ensure reliability, a router will periodically
retransmit an LSA sent to a neighbor until the neighbor acknowledges the receipt of the LSA.
- OSPF routers generally delay the acknowledgement of LSAs to fit more LSA acknowledgements
into a single LSAck packet in order to conserve bandwidth and router processing resources.
- Note: Not all LSAs require explicit acknowledgment. When routing update cross, in which 2
neighboring routers send each other the same instance of LSA at about the same time,
the received LSA will be treated as an implicit acknowledgment and no corresponding LSAck
packet is required.
- Once the database synchronization process ends, both routers conclude that they have identical
LSDB and are in fully adjacency state (FULL) with each other. Routers must be in the FULL
state before they can forward packets to each other. Once adjacent routers are in the FULL state,
they do not repeat the database synchronization process unless the FULL state changes.
Note: At the beginning of the LSDB exchange process, both routers were in merely adjacent.
- The length of the LS Sequence Number field in an LSA header or an LSA is 32 bits. Beginning
with the leftmost bit set, the first number is 0x80000001 and the last number is 0x7FFFFFFF.
The sequence number is used to detect old or redundant LSA records. The larger the number,
the more recent the LSA. An OSPF router would generate a new LSA upon a link-state change.
One can notice which parts of the network are changing the most by looking at the LSDB –
the parts that are described by LSAs whose have large LS sequence numbers and small LS ages.
- An OSPF router refreshes its self-originated LSAs that it is responsible for every 30 minutes
(the LSRefreshTime interval) to ensure all routers have an accurate link-state database,
just in case an LSA has been lost from or corrupted in one of the databases of other routers.
Every time a LSA record is flooded or refreshed, its sequence number is incremented by 1,
and its aging timer is reset. An LSA will never remain in the database for more than 1 hour
(MaxAge) without being refreshed; it is considered invalid (eg: the originating router has failed)
and will be removed from the LSDB. This LSA validation method conserves more bandwidth
than DV routing protocols, which send entire routing tables at short periodical intervals.
- Since an invalid LSA may take as long as 1 hour for it to be removed from LSDBs and the LSA
would certainly contain out-of-date (stale) information, OSPF requires the routers at both ends of
a point-to-point link advertise the link before considering it during the route computation process.
- It is theoretically possible for an LSA to exist in the database for very long periods of time,
refreshed every 30 minutes, until a point where the sequence number rolls over to the beginning.
When this occurs, the existing LSA must first be deleted by prematurely aged out (MaxAge is set
to 1 hour) to allow other routers to accept the new LSA with sequence number of 0x80000001.
Note: A router is only allowed to update its self-originated LSAs at most once every 5 seconds.
In the absence of errors, the 32-bit sequence number will require 680 years to roll over!
- The OSPF premature aging process allows the deletion of an LSA from a routing domain by
setting its LS Age to MaxAge and floods its without waiting for its aging timer to reach MaxAge,
as sometimes a router may want to delete an LSA instead of updating its contents. In order to
avoid possible thrashing in which a router originates an LSA while another router deletes it,
a router is allowed to prematurely age (delete) only its self-originated LSAs.
- The LS Age field of an LSA is also examined for other OSPF functions as below:
Constant Value Description
MinLSArrival 1 second Minimum rate at which a router will accept an LSA update.
MinLSInterval 5 seconds Minimum rate (rate limit) at which a router can update an LSA.
CheckAge 5 minutes The rate at which a router verifies the checksum of an LSA
contained in its LSDB.
MaxAgeDiff 15 minutes 2 LSA instances are considered separate when they differ by
more than 15 minutes. The LSA with the smaller LS Age is
considered more recent and accepted.
LSRefreshTime 30 minutes The rate at which a router must refresh its self-originated LSAs.
MaxAge 1 hour The maximum age that an LSA is considered valid and being
retained in the LSDB.
92 Copyright © 2009 Yap Chin Hoong
yapchinhoong@hotmail.com
- An OSPF router can easily identify its self-originated LSAs as the Advertising Router field in
those LSAs is set to its own Router ID. An OSPF router is allowed to update and delete only its
self-originated LSAs that it is responsible for. Knowing which router has originated a particular
LSA allows a calculating router to decide whether the LSA should be used in route computation,
and how it should be used.
. .
Receive Is the LSA Yes Yes
Is the SeqNum Ignore the LSA
an LSA in LSDB? same?
No
No
.
Yes
Add to LSDB Is the SeqNum
higher?
Run SPF to
calculate best paths. End
Update the routing table.
- The show ip ospf database EXEC command displays the link-state database on a router.
RT1#sh ip ospf database
Link ID Indicates the Router ID of the source or originating router of a Router LSA,
which is announced by every OSPF router for the status of its own interfaces.
ADV Router Indicates the Router ID of the source or originating OSPF router of an LSA.
Age Indicates the length of time in seconds since the LSA was last updated.
The maximum age is 3600 seconds (1 hour).
Seq# Indicates the sequence number of an LSA.
Checksum Indicates the checksum of an LSA to ensure reliable receipt of the LSA.
Link count Used only in Router LSAs to indicate the total number of directly connected
links, which include all point-to-point, transit, and stub links. Point-to-point
serial links are count as 2; all other links, including Ethernet, are count as 1.
- By default, an OSPF interface cost is calculated based on its configured bandwidth. The higher
the bandwidth, the lower the cost. An OSPF cost can also be manually defined for each interface,
but this will override the default cost value calculated based on the configured bandwidth.
Note: OSPF metrics can be asymmetric – different metrics could be assigned to both sides of a link.
RT2 RT5
RT3
RT2 RT5
RT3
- Figure 7-8 shows an example of Dijkstra’s SPF calculation and below are the steps in the route
computation process. Assume that all links are Fast Ethernet with an OSPF cost of 1.
i) RT6 advertises its LSAs to RT4 and RT5. RT5 advertises RT6 and its own LSAs to RT4.
RT4 advertises RT5, RT6, and its own LSAs to its neighbors – RT1, RT2, and RT3.
RT2 and RT3 advertise all LSAs from RT4, RT5, RT6 and their own LSAs to RT1.
ii) The LSA advertisement or flooding process follows the split-horizon rule, in which a
router is not allowed to advertise an LSA back to the originating router of the LSA.
Ex: RT5 is not allowed to advertise RT6’s LSAs back to RT6.
iii) RT1 has 3 neighboring routers – RT2, RT3, and RT4, in which its will receives the LSAs
of all other routers in the network. RT1 can eventually figure out the links between all
routers and the network topology as shown in Figure 7-8a based on the received LSAs.
iv) RT1 calculates the best path to each destination by summing the costs to each destination.
v) Figure 7-8b shows the best paths (SPF tree) to each destination from the perspective of RT1.
The best paths or routes will be offered to the forwarding database – the routing table.
- The SPF route calculation is considered the simplest part of OSPF. However, it can become
complicated in the presence of broadcast and NBMA segments, OSPF hierarchical routing,
and when some OSPF extensions are being used.
- A point-to-point network often being used to connect 2 routers via a serial leased-line with
HDLC or PPP as the data link layer encapsulation. Both routers dynamically discover each other
via Hello packets destined to the 224.0.0.5 multicast IP address, exchange database information,
and establish full adjacency between them. No DR and BDR election is performed; as there are
only 2 routers reside in a point-to-point network, in which there is no requirement for DR/BDR.
- Usually the source IP address of an OSPF packet is set to the IP address of the outgoing interface.
OSPF supports the use of IP unnumbered interfaces, in which the source IP address is set to the
IP address of another interface.
- A number of n routers reside on a broadcast multi-access segment could have been modeled as
n n 1
point-to-point connections (one for each pair of routers) and followed by performing the
2
point-to-point LSA flooding process over each connection. Although this approach is simple,
it would consume unnecessary bandwidth resources over the network. Instead, the network is
modeled as a star network with n point-to-point connections. A special router called the
Designated Router (DR) is elected on the network, in which all other routers on the network
only required to flood or receive LSAs to/from the DR in order to conserve bandwidth resources.
The DR manages the LSA flooding process on a broadcast multi-access segment.
- The main benefit of having DR and BDR for broadcast multi-access segment (eg: Ethernet) is
reducing routing update traffic. The DR and BDR act as the central point of contact for
link-state database exchange between routers on a broadcast multi-access segment, in which each
router establishes full adjacency and sends its link-state information to the DR and BDR only
(using the AllDRouters IP multicast address), instead of all routers on the segment. The DR will
then flood the link-state information received from a router to all other routers on the segment.
If the BDR does not see the LSU from the DR within the LSA retransmission interval
(typically 5 seconds), it will step in and flood the LSA back into the broadcast segment (using the
AllSPFRouters IP multicast address) in order to keep the reliable database synchronization
running smoothly over the broadcast segment, even before noticing the failure of the DR.
DROTHER DR
RT3 Fa0/0 Fa0/0 RT4
4 192.168.1.3/24 192.168.1.4/24
DROTHER sends LSAck
DR sends LSU to all routers
via 224.0.0.6 Lo0 via 224.0.0.5
3 Lo0
10.10.10.3/32 10.10.10.4/32
- The DR performs the LSA flooding and LSDB synchronization tasks; whereas the BDR does not
perform any DR functions when the DR is operating, it just receives all the information.
The BDR acts as the hot standby and performs the mentioned tasks in case the DR fails.
If the DR fails, the BDR automatically becomes the DR, and another new BDR will be elected.
- The formula for calculating the number of adjacencies on a LAN with the use of DR and BDR is
2(n – 1) – 1, where n is the number of routers on the LAN. Ex: There are 5 OSPF adjacencies
between 4 routers on a LAN, 2 between DR and DROTHERs, 2 between BDR and DROTHERs,
and 1 between DR and BDR.
- The DR and BDR represents all routers on a broadcast network and will pass their LSDBs to a
new router that joins the network; as it is inefficient to allow all routers on the network to pass
the same information to the new router. Note: There are chances where a new router that joins a
broadcast network may first form an adjacency with the BDR instead of the DR. The BDR would
exchange link-state information with the new router but it won’t flood any LSU sent by the new
router to all other routers on the network. The flooding of LSUs from the new router will be
performed by the DR when the new router form an adjacency and exchange LSDBs with the DR.
- The DR election occurs when 2 neighboring OSPF routers have entered into the 2-WAY state.
If the Hello packets indicate a DR of 0.0.0.0, it means that the DR has not been elected yet;
the routers would wait for a period known as the OSPF wait time before attempt to elect the DR.
The purpose is to allocate enough time for all routers reside on a broadcast segment to complete
their initialization process upon a power failure before participate in the DR election. Otherwise,
the 1st router that became active would always be elected as the DR. The OSPF Wait timer is set
to the same value as the OSPF Dead timer.
- If the received Hello packets already specified a Router ID for the DR, it means that the DR has
already been elected and a new router that joins the broadcast network does not have to wait to
elect a DR and will accept the DR specified in the received Hello packet as the current DR.
- During the DR election process, the routers with the highest and second-highest OSPF priority
interface are elected as the DR and BDR respectively. The default OSPF interface priority is 1.
In case of a tie in the OSPF interface priority, the routers with the highest and second-highest
Router ID are elected as the DR and BDR respectively. A router with an OSPF interface priority
of 0 is not intended to be elected as a DR or BDR. This technique is often used to prevent certain
routers to consume additional resources for becoming the DR or BDR. A router that is neither a
DR nor BDR is designated as a DROTHER. The ip ospf priority {priority} interface
subcommand changes the OSPF priority for a particular interface.
- When a router with a higher priority or Router ID joins a broadcast network, it does not preempt
the existing DR and BDR. The DR or BDR changes only when one of them is out of service.
If the DR is out of service, the BDR becomes the DR, and a new BDR will be elected;
if the BDR is out of service, a new BDR will be elected. The newly elected BDR would perform
the time-consuming database synchronization process with all DROTHERs on the network.
- Different sets of DR and BDR will be elected for each multi-access broadcast network. A router
can be a DR on a network segment and a DROTHER on another network segment.
- The non-broadcast nature of NBMA creates reachability issues for the operation of OSPF.
NBMA networks support more than 2 routers on a network, but have no broadcast capability.
In order to implement broadcasting or multicasting, a router replicates the packets to be
broadcast or multicast and sends them individually on every PVC to all destinations; however,
this process is CPU and bandwidth intensive. If an NBMA network topology is not fully meshed,
a broadcast or multicast sent by a router would not reach all other routers.
- The hub-and-spoke or star topology is the most common NBMA topology in which remotes sites
connect to a central site that provides an application service. The hub-and-spoke partial mesh
physical topology does not provide the multi-access capability in which OSPF relies on.
The election of DR and BDR is an issue in NBMA networks as the DR and BDR require full
physical connectivity with all routers in the NBMA networks.
- By default, OSPF unable to automatically establish adjacencies with neighboring routers over
NBMA interfaces. Several OSPF configuration options are available for NBMA networks
depending upon the type of network topology.
- RFC 2328 – OSPFv2 defines the following official OSPF operation modes for NBMA networks:
Non-broadcast Simulates the OSPF operation on broadcast networks. OSPF neighbors
must be configured manually and will elect a DR and BDR.
Typically used for full-mesh topologies.
Point-to-multipoint Treats an NBMA network as a collection of point-to-point links.
The routers automatically identify their neighboring routers but do not
elect a DR and BDR. Typically used for partial-mesh topologies.
Note: The choice between the above operation modes determine how the Hello and LSA
flooding mechanisms work over an NBMA network. The main advantage of point-to-
multipoint mode is requires less manual configuration; while the main advantage of
non-broadcast mode is less overhead traffic compared to point-to-multipoint mode.
Note: Cisco offers 3 more OSPF operations modes for NBMA networks – non-broadcast
point-to-multipoint, broadcast, and point-to-point.
- Not all link layer technologies are able to be mapped directly to the point-to-point leased lines,
broadcast networks, and NBMA networks as discussed earlier. Ex: The OSPF Demand Circuit
Extension which suppress the Hello and LSA refresh functions has been developed to support
OSPF over demand circuits (eg: dial-up telephone lines). With the OSPF Demand Circuit option
configured on an interface, OSPF establish an adjacency and perform database synchronization,
the adjacency remains active even after Layer 2 of the demand circuit goes down.