Professional Documents
Culture Documents
Why are loopbacks advertised as /32 host routes in OSPF? Loopbacks are considered host
routes in OSPF, and they are advertised as /32. If the ip ospf network point−to−point command
is configured under loopbacks, OSPF advertises the loopback subnet as the actual subnet
configured on loopbacks
All the OSPF packet types share a common 20-byte OSPF protocol header.
The current version number of OSPF is 2. Version 1 is not compatible with Version 2
The router ID is used to uniquely identify the router throughout the autonomous system. After the
router ID is chosen, it will not change unless the router is restarted, the inter-face that is selected
as a router ID is shut down, or the IP address has been removed or replaced on that interface
The value of Area ID must be the same on both sides to form neighbor relationships. There are
two ways to write this: Area 1 or Area 0.0.0.1. There is no difference between the two
Hello packets are used to form a neighbor relationship between two routers. In environments that
include broadcast/nonbroadcast media, Hello packets are used to elect the designated (DR) and
backup designated (BDR) routers. On broadcast media, the destination address of the Hello
packets is 224.0.0.5. On nonbroadcast media, the destination address is unicast
Hello interval must be the same for the two routers that are trying to form an adjacency. The
Hello interval is 10 seconds on broadcast and point-to-point media, and 30 seconds on all other
media
E, when set, means that external LSA are allowed in this area
MC designates multicast OSPF
N/P is used for not-so-stubby area (NSSA) option
EA is the external attribute
O bit is used for opaque LSAs
By default router's priority value is set to 1. A higher priority increases the chances that the router
will become the DR. A priority of 0 means that this router will not take part in DR election
The DR is elected through the Hello protocol. If there is no DR, this field has a value of 0.0.0.0.
No DRs/BDRs exist on point-to-point or point-to-multipoint segments
The second type of OSPF packet is database description (DBD) packet. The first DBD packet is
used to elect the master and slave relationship and to set the initial sequence number elected by
the master. The router with the highest router ID becomes the master and initiates the database
synchronization. The master sends the sequence number, and the slave acknowledges it.
Interface MTU contains the largest data size, in bytes, that can be sending through the
associated interface. This field must be set to 0 when sending the packet over a virtual
link
The Type 3 OSPF packet is a link-state request packet. It is sent if part of the database is missing
or out-of-date
OSPF packet Type 4 is the link-state update packet, and it implements flooding. Several LSAs are
included in a single packet. Link-state update packets are also sent in response to link-state
request packets
The last type of OSPF packet is the link-state acknowledgment packet, is used to acknowledge
each LSA. Multiple LSAs can be acknowledged in a single link-state acknowledgment packet.
This packet is responsible for the reliable delivery of link-state update packets
Link-state acknowledgment packets are sent as multicasts. If the state of the router is DR or BDR,
the acknowledgment is sent to the OSPF router multicast address of 224.0.0.5. If the state of the
router is not DR or BDR, the acknowledgment is sent to the all DR router multicast address of
224.0.0.6