OSPF uses several different message types to establish and maintain its neighbor relationships, and to maintain correct routing information. When preparing for the exam, be sure you understand each OSPF packet type, and the OSPF neighbor establishment procedure.
OSPF Packets
OSPF uses five packet types. It does not use UDP or TCP for transmitting its packets. Instead, it runs directly over IP (IP protocol 89) using an OSPF header. One field in this header identifies the type of packet being carried. The five OSPF packet types are:
Hello—Identifies neighbors and serves as a keepalive.
Link State Request (LSR)—A request for an Link State Update (LSU). Contains the type of LSU requested and the ID of the router requesting it.
Database Description (DBD)—A summary of the LSDB, including the RID and sequence number of each LSA in the LSDB.
Link State Update (LSU)—Contains a full LSA entry. An LSA includes topology information; for example, the RID of this router and the RID and cost to each neighbor. One LSU can contain multiple LSAs.
Link State Acknowledgment (LSAck)—Acknowledges all other OSPF packets (except hellos).
OSPF traffic is multicast to either of two addresses: 224.0.0.5 for all OSPF routers or 224.0.0.6 for all OSPF DRs.
OSPF Neighbor Relationships
OSPF routers send out periodic multicast packets to introduce themselves to other routers on a link. They become neighbors when they see their own router ID included in the Neighbor field of the hello from another router. Seeing this tells each router that they have bidirectional communication. In addition, two routers must be on a common subnet for a neighbor relationship to be formed. (Virtual links are sometimes an exception to this rule.)
Certain parameters within the OSPF hellos must also match in order for two routers to become neighbors. They include:
Hello/dead timers
Area ID
Authentication type and password
Stub area flag
OSPF routers can be neighbors without being adjacent. Only adjacent neighbors exchange routing updates and synchronize their databases. On a point-to-point link, an adjacency is established between the two routers when they can communicate. On a multiaccess link, each router establishes an adjacency only with the DR and the backup DR (BDR).
Hellos also serve as keepalives. A neighbor is considered lost if no Hello is received within four Hello periods (called the dead time). The default hello/dead timers are as follows:
10 seconds/40 seconds for LAN and point-to-point interfaces
30 seconds/120 seconds for nonbroadcast multiaccess (NBMA)
No comments:
Post a Comment