Discussion:
[j-nsp] help with routing bypassing bgp path selection
tim tiriche
2018-10-01 05:48:06 UTC
Permalink
hello,

i have 5 PE routers running with full iBGP/RSVP-TE MPLS Mesh.

There is a CE connected to PE5 and PE4.

Based on BGP Path selection all of the PE {1,2,3,4} are preferring route to
PE5 due to BGP Path selection based on AS PATH tiebreaker.

However, i would like PE1 to prefer PE4 and the rest to PE5. What is the
best way to go about doing this?

-Tim
_______________________________________________
juniper-nsp mailing list juniper-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp
Saku Ytti
2018-10-01 08:32:12 UTC
Permalink
Hey,

I'd go with BGP policy. On PE1 ingress increase local-pref for PE4?

You could also have iBGP-IN policy like this:

from community increase-local-pref-in-local-pe
then local-preference add 100

and per PE community:
set increase-local-pref-in-local-pe members large:MYAS:42:MYLOOP

And then in PE4 include community large:MYAS:42:PE1
Post by tim tiriche
hello,
i have 5 PE routers running with full iBGP/RSVP-TE MPLS Mesh.
There is a CE connected to PE5 and PE4.
Based on BGP Path selection all of the PE {1,2,3,4} are preferring route to
PE5 due to BGP Path selection based on AS PATH tiebreaker.
However, i would like PE1 to prefer PE4 and the rest to PE5. What is the
best way to go about doing this?
-Tim
_______________________________________________
https://puck.nether.net/mailman/listinfo/juniper-nsp
--
++ytti
_______________________________________________
juniper-nsp mailing list juniper-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp
James Bensley
2018-10-01 08:44:11 UTC
Permalink
Post by tim tiriche
hello,
i have 5 PE routers running with full iBGP/RSVP-TE MPLS Mesh.
There is a CE connected to PE5 and PE4.
Based on BGP Path selection all of the PE {1,2,3,4} are preferring route to
PE5 due to BGP Path selection based on AS PATH tiebreaker.
However, i would like PE1 to prefer PE4 and the rest to PE5. What is the
best way to go about doing this?
Hi Tim,

I'd say that the preferred way to control routing protocol behavior
dynamically (e.g. per site or CPE) is to use BGP communities. So in
this case you could set up some communities and have the CE advertise
it's routes with a specific community attached.

E.g. To have a per-PE preference policy you can have the CPE advertise
it's prefixes with a specific community "X". Either PE4 could match
that community and increase it's local-pref for the route before
sending it on to it's iBGP neighbors (this would affect all iBGP
neighbours making them all prefer the prefix via PE4) or have PE1
match the community on ingress (this would only affect PE1). The
problem with the later is that if PE4 doesn't have the best path he
won't advertise it without some BGP add-path / best-external knobs
being twiddled.

You can use an iBGP outbound policy on PE4 e.g. PE4 matches community
X which sets a higher local pref only on advertisements to PE1 but
per-PE outbound policies don't scale well.

Communities work great for manipulating eBGP policy but with iBGP
policy manipulation it quickly becomes messy so you need to plan with
care.

Cheers,
James.
_______________________________________________
juniper-nsp mailing list juniper-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

Loading...