BGP on router

If a router run a BGP with neighbors, will it use the BGP Path attributes and Best-Path algoritm to determine the best route to particular network and then put it into routing table ?  Or, does the router only check its BGP routing table only and decide which path to go for a particular network ?

Thx
AXISHKAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JustInCaseCommented:
Route need to be present in both (routing table and BGP table), however, route present in routing table does not always have to be BGP route. For example, if static and directly connected routes are redistributed into BGP, routes will be present in BGP table and will be present in routing table... but routes in routing table will not be BGP routes. The reason why route need to be present in both tables is that BGP is in essence distance vector protocol and distance vector protocols can only "work with" routes that are present in routing table.

General rules for putting in route in routing table are:
- all routes there are not duplicated routes (prefix + subnet mask) will be placed into routing table (if routing protocol consider route valid)
- if there are multiple copies of the same route present - router will compare administrative distance (AD) choose one with the lowest AD
- if there are multiple copies of the same route with the same AD present, router will choose one with the lowest metric
0
AXISHKAuthor Commented:
Can I say that a BGP router can use a route only when it is both in BGP and routing table ? And BGP will select the route based on the BGP Path Attributes and Best-Path Algorithm ?

Thx.
0
JustInCaseCommented:
If question is:
"Can I say that a BGP router can use a BGP route only when it is both in BGP and routing table?"
Yes. BGP is relaying on support from IGP. From Wiki - BGP:
Route selection

The BGP standard specifies a number of decision factors, more than the ones that are used by any other common routing process, for selecting NLRI to go into the Loc-RIB. The first decision point for evaluating NLRI is that its next-hop attribute must be reachable (or resolvable). Another way of saying the next-hop must be reachable is that there must be an active route, already in the main routing table of the router, to the prefix in which the next-hop address is reachable.
Have in mind that BGP is not actually routing protocol, it is application.

And yes.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Cisco

From novice to tech pro — start learning today.