The lab
Two devices, R1 and R2. The capture is on the GigabitEthernet0/0 link between R1 and R2.
R1 and R2 share one Ethernet link: R1 is 192.168.10.1 and R2 is 192.168.10.2. R1 already runs OSPF in area 0 with router ID 1.1.1.1 and sends a Hello every 10 seconds, but nobody answers.
Then OSPF is started on R2 with router ID 2.2.2.2. The two routers find each other through Hellos, swap descriptions of their link-state databases, send each other the LSAs they lack, and elect a designated router for the link.
The exchange
Reading the frames
Frame 4: R2's first Hello
OSPF has just started on R2. It announces itself to every OSPF router on the link. Values from one run of this lab.
| Field | Value | What it means |
|---|---|---|
| Destination address | 224.0.0.5 | AllSPFRouters, the multicast group every OSPF router listens to. |
| Source router ID | 2.2.2.2 | R2's router ID. Neighbors are known by router ID, not by IP address. |
| Hello interval | 10 | Seconds between Hellos. Both routers must use the same value to become neighbors. |
| Router dead interval | 40 | If no Hello arrives for 40 seconds, the neighbor is declared down. This must match too. |
Frame 5: R1 answers
R1 has heard R2, and says so straight away. Values from one run of this lab.
| Field | Value | What it means |
|---|---|---|
| Destination address | 192.168.10.2 | This Hello goes to R2's own address instead of the multicast group. |
| Active neighbor | 2.2.2.2 | R2's router ID. When R2 sees itself listed, it knows R1 hears it: the two routers are in two-way state. |
Frame 6: the first Database Description
R2 starts the database exchange. Values from one run of this lab.
| Field | Value | What it means |
|---|---|---|
| Message type | DB Description (2) | A Database Description packet lists the LSAs a router holds, by header only. |
| Flags | 0x07, (I) Init, (M) More, (MS) Master | Init marks the first packet, More says more will follow, and Master claims the master role. The router with the higher router ID becomes master. |
| DD sequence number | 4108 | The master picks the starting number and adds one with each packet; the other router echoes it back. |
Frame 21: a Hello after the exchange
The routers are fully adjacent, and the link has a designated router. Values from one run of this lab.
| Field | Value | What it means |
|---|---|---|
| Designated router | 192.168.10.2 | R2 is the DR. Both routers have priority 1, so the higher router ID, 2.2.2.2, wins. |
| Backup designated router | 192.168.10.1 | R1 is the backup, ready to take over if R2 goes away. |
| Router priority | 1 | The default priority. A higher value would win the election before router ID counts. |
What to take away
Neighbors start in Hellos: each router lists the router IDs it hears, and only after a router sees itself listed does the database exchange begin. With equal priorities, the higher router ID becomes the designated router.
Run it yourself
Open the same lab, run the commands and read the capture on the GigabitEthernet0/0 link between R1 and R2 yourself.
Open this lab Free. Sign in to start.
