BGP Route Selection: Huawei Technologies Co., Ltd. All Rights Reserved
BGP Route Selection: Huawei Technologies Co., Ltd. All Rights Reserved
BGP Route Selection: Huawei Technologies Co., Ltd. All Rights Reserved
www.huawei.com
Well-known mandatory
Well-known discretionary
Optional transitive
Optional non-transitive
− BGP process that does not recognize the attribute can ignore th
e Update in which it is included and not advertise the path to its
other peers.
The optional attributes (including transitive and non-transitive) may or
may not be carried in the update message
1 、 Origin 9 、 Originator-ID
2 、 AS_PATH 10 、 Cluster-List
3 、 Next hop 11 、 Destination Pref
4 、 MED 12 、 Advertiser
5 、 Local-Preference 13 、 Rcid_PATH
6 、 Atomic-Aggregate 14 、 MP_Reach_NLRI
7 、 Aggregator 15 、 MP_Unreach_NLRI
8 、 Community 16 、 Extended_Communitie
s
− BGP routes that are learned from redistribution carry the incomplete
origin attribute, because there is no way to determine the original
source of the route.
By default, the value of the origin attribute will not be changed by any of
the routers.
AS500
NLRI 18.0.0.0/8
AS_PATH (500 200)
AS 100
NLRI 18.0.0.0/8
AS_PATH (500 200)
RTA
NLRI 10.0.0.0/8
AS_PATH(387 213)
AS 213 AS 387
RTC
10.0.0.0/8
NLRI 10.0.0.0/8
AS_PATH (213)
RTB
2 Mbps
NLRI 10.0.0.0/8
AS 123 AS_PATH (462 123)
64 kbps
10.0.0.0/8 AS 387
NLRI 10.0.0.0/8
RTA AS_PATH (123 123 123) RTB
RTC AS200
AS100 10.0.0.2
RTA 18.0.0.0/8
EBGP
10.0.0.1
21.0.0.2 IBGP
IBGP
21.0.0.1 20.0.0.0/8
10.0.0.3
19.0.0.0/8 RTD
RTB
RTB
I can reach 18.0.0.0/8 via next hop 10.0.0.2
I can reach 20.0.0.0/8 via next hop 10.0.0.3
ISP1
Internet
Prefix/mask Local-Pref
210.52.83.0 200
210.52.83.0/24
210.52.82.0 100 RT1
210.52.82.0/24
ISP0
RT4 ISP2
RT2
RT5 RT3
Prefix/mask Local-Pref
210.52.83.0 100
210.52.82.0 200
To discriminate among
multiple entry points to
reach the same AS200
neighboring autonomous RT2 RT1
system (the lowest MED
value is preferred).
The MED value is sent to
the peer via EBGP
RT3
Prefix/mask MED
210.52.83.0 100
210.52.82.0 50 AS100
E0 192.10.0.0/16 E0
201.1.1.2/24 160.1.1.2/24
RTC
AS700
− 0x00000000—0x0000FFFF
− 0xFFFF0000—0xFFFFFFFF
Well-known community attribute:
− NO_EXPORT (0xFFFFFF01)
− NO_ADVERTISE (0xFFFFFF02)
− NO_EXPORT_SUBCONFED (0xFFFFFF03)
Private community attribute
− AS(2B):Number(2B)
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 26
Contents
If the next hop of this route is unreachable, then ignore this route
BGP compares the origin attribute of the route and selects the route with the
lowest origin attribute code: IGP is lower than EGP, which is lower than
Incomplete.
Select the route with the lowest MED value. This comparison is done only if
the AS number is the same for all the routes being considered.
Prefer the route with the shortest path to the BGP NEXT_HOP. This is the
route with the lowest IGP metric to the next-hop router.
When all the above are identical, they are equivalent route and can be
used for load balancing
− Note: AS_PATH must be the same
− The last 3 route selection rules can be ignored when load balancing
is implemented.
Selects the route with the shortest cluster-list
Prefer the route with smaller Originator ID. Select the route with smaller
router ID if Originator ID is unavailable.
Prefer the route with smaller peer IP address.