06-17-2004 08:07 AM - edited 03-02-2019 04:27 PM
in the book of <<internet routing architecture>>, page 159, stated "With Cisco IOS, the RID is the loopback address if one is configured; otherwise, it's the highest IP address on the router".
but in the RFC 1771:
"- otherwise, select the route that was advertised by the BGP speaker whose BGP Identifier has the lowest value."
in the RFC draft "http://www.ietf.org/internet-drafts/draft-ietf-idr-bgp4-24.txt"
"g) Prefer the route received from the lowest peer address."
seem to me, cisco implemetation was a bit different from RFC or just a misprint of halabi's book?
06-17-2004 08:24 AM
Hello,
I don´t see a contradiction here, Halabi talks about the way a BGP router choses its router ID, while the RFC talks about the tie breaker rule within an AS. Where do you see the contradiction ?
Regards,
Georg
06-17-2004 01:47 PM
the tie breakers of the route selection process is for all ajacency-RIB-in tables in a BGP router.
if loopback address is not configured, then the RID should be the smallest numerical peer address. but cisco uses the highest numerical address in the router as last resort.
Juniper uses the samllest numerical ip address of a peer router.
seem to me, juniper sticks to the RFC on this part.
06-17-2004 02:27 PM
There's nothing that I can see in the BGP specification that deals with what a router's RID should be. Since the concept of an RID isn't BGP-specific, it wouldn't make sense for the BGP specification to address it -- how an RID is chosen by any given router is orthogonal to how the BGP decision process uses that RID.
Incidentially, Juniper's documentation says that "the first hardware interface" is used as the RID if a specific RID isn't configured and there's no loopback IP address configured: http://www.juniper.net/techpubs/software/junos/junos63/swconfig63-routing/html/routing-generic-config3.html.
06-20-2004 10:35 AM
i don't think i was talking about the RID issue here. maybe i should use the phrase "BGP identifier" instead of RID.
i was wondering why cisco implemetation choose the highest ip address as its RID (juniper uses lowest) if no loopback configured (no RID configured).
06-20-2004 12:44 PM
But there's nothing in the BGP RFC or current draft that addresses what a given router's BGP ID should be. Although a lower BGP ID wins in the route selection algorithm, the RFC/draft doesn't require that the router use its lowest IP address as its BGP ID -- it doesn't even make a recommendation in this regard.
Juniper's documentation says that the first interface detected (not necessarily the one with the lowest address) is used for the BGP ID as well as the RID: http://www.juniper.net/techpubs/software/junos/junos63/swconfig63-routing/html/bgp-config6.html
06-21-2004 08:36 AM
i was aware of the none-specific nature of rid issue. what i was trying to learn the differences between two implememtations and how those differences would impact the process of bgp route selections.
if my memory serves me correct, cisco ospf implemetation also choose the highest ip address as its rid; like cisco bgp implemetation, if no rid nor loopback configured.
thanks. the discussion real helps me understand more on the implemetations of bgp.
the rid configuration in juniper is optional and it could be done on the cisco routers too:
router bgp xxxxxx
bgp router-id a.b.c.d
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide