Neighbors
OSPF considers two routers that have an interface located on a common network as neighbors. When OSPF discovers its neighbors, this is the first step of discovering the network and building a routing table. This process begins with the router learning the router identification numbers of its neighbors via multicast Hello packets.
Hello packets are transmitted every 10 seconds for broadcast and point-to-point interfaces and every 30 seconds on NBMA interfaces. Hello packets are sent to a multicast destination address of 224.0.0.5 (AllSPFRouters); this allows all routers running OSPF to receive and process the Hello packets.
A neighbor relationship begins when the routers exchanging Hello packets see their own RID in the other router's Hello packet and they agree upon the following:
- Hello/dead transmission intervals
- Area ID number
- Subnet mask (for multiaccess networks)
- Stub area flag (described earlier)
- Authentication type and password
TIP To build stable OSPF neighbor relationships, ensure that the number of routers per LAN is small. Use the priority command to organize which is the DR, and avoid having the same router as the DR for more than one link through the use of the ip ospf priority command.
In this tutorial:
- OSPF Basics
- What Is a Routing Protocol?
- Basic Routing Protocol Operation
- Link-State Versus Distance Vector Routing Protocols
- Link-State Routing Protocols
- OSPF Characteristics
- Integrated Intermediate System-to-Intermediate System
- Distance Vector Routing Protocols
- Selecting a Routing Protocol
- Operational Considerations
- Protocols Supported
- Routing Hierarchies
- IP Address Management
- IP Encapsulation Support
- Technical Considerations
- Routing Updates
- Scalability
- Business Considerations
- SPF Overview
- OSPF Routing Hierarchy
- Hierarchical Network Design Techniques
- Routing Types Within an OSPF Network
- External Routes
- OSPF Areas
- Characteristics of a Standard OSPF Area
- Stub Areas
- Not-So-Stubby Areas
- OSPF Operational Environment
- Types of OSPF Routers
- OSPF Network Types
- Router Identification
- Neighbors
- Adjacencies