Got it

OSPF peers with same router ID

Created: Nov 2, 2020 17:14:34Latest reply: Oct 30, 2021 13:05:54 486 5 0 0 0
  Rewarded HiCoins: 0 (problem resolved)
Hi guys,

What is the problem that appear when two OSPF peers have the same Router ID under the same area?

Featured Answers

Best answer

Recommended answer

DDSN
Admin Created Nov 3, 2020 02:12:02

Hi Herediano, 

Route flapping occurs if Route-ID is the same in the same area.

Route-ID

R1 and R2, R2 and R3 can all establish neighbors normally, and there will be problems when synchronizing the database. In R2's LSDB, there is only one copy of LSA (LSA1 and LSA2) with adv of 1.1.1.1, and routing calculation problems will occur.

Assume that R1 advertises the route 10.10.10.0/24. R1 sends the LSA (adv=1.1.1.1type=1, LS ID=1.1.1.1, seq=80000001) to R2. After receiving the LSA, R2 sends it to its neighbor R3. After receiving the LSA, R3 finds that the advertiser is 1.1.1.1, but does not have the network segment, then, R3 sends an LSA1 (age=1s, seq=80000002) to R2. After receiving the LSA1, R2 compares it with the LSA with the adv=1.1.1.1, selects the LSA1 with a larger sequence number, and forwards the LSA1 to R1. After receiving the LSA1, R1 finds that it has the network segment, a new LSA1 (seq=80000003) is sent. Such a repetitive situation may occur, causing route flapping.

Assume that R1 imports a route to 10.10.10.0/24. R1 sends the LSA (adv=1.1.1.1, type=5, LS ID=1.1.1.1, seq=80000001) to R2. After receiving the LSA, R2 sends it to R3. After receiving the LSA, R3 finds that the advertiser is 1.1.1.1, but does not have the network segment, then, R3 sends an LSA5 (age=3600s, seq=80000001) to R2. After receiving the LSA5, R2 compares it with the LSA5 received previously. Because the seq and checksum are the same as those before, R2 preferentially selects the LSA5 with age=3600s, then, R1 forwards the LSA5 to R1. After receiving the LSA5, R1 finds that it has the network segment and sends a new LSA5 (seq=80000002). Such a repetitive situation may occur, causing route flapping.

I hope it helps!

View more
  • x
  • convention:

Herediano
Herediano Created Nov 3, 2020 15:56:00 (0) (0)
Great explanation @DDSN, than you!  
All Answers

The ospf by default chooses the highest IP address of an interface , in case loopback interface avaliable , it will prefer the loopback over the physical one.

When two routers use the same router ID in an OSPF domain, routing possibly does not work correctly.

Routers can detected the router ID duplication.


View more
  • x
  • convention:

Herediano
Herediano Created Nov 2, 2020 17:28:42 (0) (0)
Thanks @aymhuawei_1990, can you elaborate more your answer with an example of the issue that could occur?  
DDSN
DDSN Admin Created Nov 3, 2020 02:12:02

Hi Herediano, 

Route flapping occurs if Route-ID is the same in the same area.

Route-ID

R1 and R2, R2 and R3 can all establish neighbors normally, and there will be problems when synchronizing the database. In R2's LSDB, there is only one copy of LSA (LSA1 and LSA2) with adv of 1.1.1.1, and routing calculation problems will occur.

Assume that R1 advertises the route 10.10.10.0/24. R1 sends the LSA (adv=1.1.1.1type=1, LS ID=1.1.1.1, seq=80000001) to R2. After receiving the LSA, R2 sends it to its neighbor R3. After receiving the LSA, R3 finds that the advertiser is 1.1.1.1, but does not have the network segment, then, R3 sends an LSA1 (age=1s, seq=80000002) to R2. After receiving the LSA1, R2 compares it with the LSA with the adv=1.1.1.1, selects the LSA1 with a larger sequence number, and forwards the LSA1 to R1. After receiving the LSA1, R1 finds that it has the network segment, a new LSA1 (seq=80000003) is sent. Such a repetitive situation may occur, causing route flapping.

Assume that R1 imports a route to 10.10.10.0/24. R1 sends the LSA (adv=1.1.1.1, type=5, LS ID=1.1.1.1, seq=80000001) to R2. After receiving the LSA, R2 sends it to R3. After receiving the LSA, R3 finds that the advertiser is 1.1.1.1, but does not have the network segment, then, R3 sends an LSA5 (age=3600s, seq=80000001) to R2. After receiving the LSA5, R2 compares it with the LSA5 received previously. Because the seq and checksum are the same as those before, R2 preferentially selects the LSA5 with age=3600s, then, R1 forwards the LSA5 to R1. After receiving the LSA5, R1 finds that it has the network segment and sends a new LSA5 (seq=80000002). Such a repetitive situation may occur, causing route flapping.

I hope it helps!

View more
  • x
  • convention:

Herediano
Herediano Created Nov 3, 2020 15:56:00 (0) (0)
Great explanation @DDSN, than you!  
Good answers
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.