UAE-IX GlobePEER Route Server Action BGP Communities
Updated
by DE-CIX PS Team
Action BGP Communities control various functions of the route server.
Usage of BGP Large Communities is encouraged.
<PEER ASN> value is a four byte AS number (4B ASN) you have to use BGP Large Communities.BGP Extended Communities are not supported.
Control of Route Redistribution
You can control which BGP announcements you send to the route servers are redistributed to other peers. This can be done based on the following criteria:
- ASN
- switch
<SWITCH> please refer to the rightmost field of the BGP Large Community overview table at {{IXP_SHORT}} {{IXP_PPN}} Route Server Informational BGP Communities.In case two or more BGP (Large) Communities are contradicting the community with the lowest evaluation order number wins.
Evaluation Order | Group | Action | BGP Community (RFC 1997) | BGP Large Community (RFC 8092) |
1 | Well-known |
| / | |
| / | |||
2 | ASN based | Do not redistribute to |
4 Byte |
|
3 | Redistribute to |
|
| |
4 | General | Do not redistribute to all |
|
|
5 | Redistribute to all (default) |
|
|
1 Please contact Customer Service if your equipment does not support BGP Large Communities.
2 Only useful in combination with one or more “do not announce” BGP communities with lower evaluation order (e.g. {{RS_ASN}}:1:<PEER ASN> can provide a selective override for {{RS_ASN}}:922:<METRO>).
The route servers remove the aforementioned BGP Communities and BGP Large Communities from a BGP announcement before redistributing it.
The well-known BGP Communities NO_EXPORT (65535:65281) and NO_ADVERTISE (65535:65282) are also honored meaning that a BGP announcement marked by one of these communities is not redistributed to any peer. If you want the route server to add a NO_EXPORT or NO_ADVERTISE community for a given BGP announcement before redistributing, you have to add the community ({{RS_ASN}}:65281) or ({{RS_ASN}}:65282) respectively. This is also possible on a per-peer basis using BGP Large Communities.
Action | BGP Community (RFC 1997) | BGP Large Community (RFC 8092) |
add NO_EXPORT |
| / |
add NO_ADVERTISE |
| / |
add NO_EXPORT selective | / |
|
add NO_ADVERTISE selective | / |
|
More than one of the aforementioned BGP Communities and BGP Large Communities can be added to a single BGP announcement. {{IXP_SHORT}} recommends not to add more than 128 of these communities as it makes handling complex and error-prone. If you need to do this, please contact Customer Service.
All BGP Communities and BGP Large Communities that are not listed above are not touched by the route servers and transparently redistributed. For backwards compatibility, routes with no BGP Action Community at all are distributed to all peers as well. You can check this in the {{IXP_SHORT}} Looking Glass. If you type your ASN into the global search field, you will find all matching routes from all {{IXP_SHORT}} route servers on all {{IXP_SHORT}} Internet Exchanges. By clicking on a route, you get the route information dialogue with details (BGP Communities etc.). You can apply further filters, e.g. filter for a specific route server or IX.
If you type your ASN into the global search field, you will find all matching routes from all {{IXP_SHORT}} route servers on all {{IXP_SHORT}} Internet Exchanges. By clicking on a route, you get the route information dialogue with details (BGP Communities etc.). You can apply further filters, e.g. filter for a specific route server or IX.
For more details how to use the {{IXP_SHORT}} {{IXP_PPN}} Looking Glass, see {{IXP_SHORT}} {{IXP_PPN}} Looking Glass Guide.
Usage Examples
BGP announcements marked with the following communities are only redistributed to AS64501 and AS64502 (both 2 Byte ASNs)
- With BGP Large Communities (preferred):
{{RS_ASN}}:0:0(Do not redistribute to all){{RS_ASN}}:1:64501(Redistribute to 64501){{RS_ASN}}:1:64502(Redistribute to 64502)
- With conventional BGP Communities (if your router does not support BGP Large Communities):
0:{{RS_ASN_SUB}}(Do not redistribute to all){{RS_ASN_SUB}}:64501(Redistribute to 64501){{RS_ASN_SUB}}:64502(Redistribute to 64502)
BGP announcements marked with the following communities areredistributed to all peers/ASNs except AS64501 and AS64502
{{RS_ASN}}:0:64501(Do not redistribute to 64501){{RS_ASN}}:0:64502(Do not redistribute to 64502){{RS_ASN}}:1:0(Do redistribute to all)
Blackholing (RTBH)
If the route server receives a BGP announcement marked as a blackhole, the NO_EXPORT community (65535:65281) and the BLACKHOLE Community (65535:666) RFC 7999 are added if these communities are not already present. This makes sure each BGP announcement marked as a blackhole can be easily filtered and does not spread widely in the Internet routing system.
For more information, see DE-CIX/DaaS GlobePEER Blackholing Guide.
AS Path Prepending
You can use BGP communities to prepend your own ASN up to three times. This can be done to all other peers or selective to only certain peers. If you add multiple of the following communities, only the highest prepend amount will be applied.
BGP Community (RFC 1997) | BGP Large Community (RFC 8092) | |
Prepend once |
|
|
Prepend twice |
|
|
Prepend three times |
|
|
Prepend once selective |
|
|
Prepend twice selective |
|
|
Prepend three times selective |
|
|
Graceful BGP Session Shutdown
The {{IXP_SHORT}} route servers support Graceful BGP Session Shutdown (RFC 8326). With this well-known BGP Community, you can instruct the route servers to calculate and redistribute an alternate path (if available) for your advertised routes before you commence your maintenance. This makes sure that routers of other customers have fully converged before you interrupt L2 connectivity and thereby so-called micro blackholing is prevented.
Details:
- Setting BGP Community
GRACEFUL_SHUTDOWN(65535:0) on all you advertised routes. The route server will set BGP local preference to 0 for these routes. - The route server will calculate alternative paths for your advertised routes (if available) and redistribute these to other peers. Routes with no alternative path will get redistributed with BGP Community
GRACEFUL_SHUTDOWN. - You should also apply
GRACEFUL_SHUTDOWNon the inbound policy of your eBGP session. - After BGP convergence, you can safely shut down the BGP session. At this point, routers of other customers have learned alternative paths for your routes (if available) from the route server and forward traffic on the new path.