Operational BGP Communities can be used to control various functions of the route server. With this communities, you can:
- control the redistribution of advertised prefixes
- prepend your own AS up to three times
- trigger the calculation of a new alternate path (if available) for your advertised prefixes before you start commencing a maintenance
Please note that if the $PEERAS is a four byte AS number you have to use the BGP Extended or Large Communities.
Control of prefix redistribution
You can control which BGP announcements you send to the route servers are redistributed to other peers. In fact, you can also control which peer / AS receives which BGP announcements you send to the route servers. For this, BGP Communities, BGP Extended Communities and BGP Large Communities can be used.
The following BGP Communities are supported:
|Action||BGP Standard Community (RFC 1997) ||BGP Extended Community (RFC 4360)||BGP Large Community (RFC 8092)|
|Do not redistribute||0:6695||rt:0:6695||6695:0:0|
|Do not Redistribute to $PEERAS||0:$PEER-AS||rt:0:$PEER-AS||6695:0:PEERAS|
|Redistribute to $PEERAS|
(in combination with 0:6695)
|Redistribute to all (default)||6695:6695||rt:6695:6695||6695:1:0|
The route servers remove the aforementioned BGP Communities and BGP Extended Communities from a BGP announcement before re-distributing 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 re-distributed to any peer. If you want the route server system to add a NO-EXPORT or NO-ADVERTISE community for a given BGP announcement before re-distributing, you have to add the community (6695:65281) or (6695:65282) respectively. This is also possible on a per-peer basis using BGP Large Communities: (6695:901:$PEERAS) for selective NO-EXPORT and (6695:902:$PEERAS) for selective NO-ADVERTISE.
More than one of the aforementioned BGP Communities and BGP Extended Communities can be added to a single BGP announcement. DE-CIX recommends not to add more than 50 of these communities as it makes handling complex and error-prone. If you need to do this, please contact Customer Service. The following table lists the evaluation order of the different BGP Communities and BGP Extended Communities which helps to build complex filter rules. In case two or more BGP (extended) Communities are contradicting the community with the lowest evaluation order wins.
All BGP Communities and BGP Extended Communities that are not listed above are not touched by the route servers and transparently re-distributed. For backwards compatibility, routes with no community at all are distributed to all peers as well.
You can obtain a list of BGP announcements received from a peer by entering the peer's IP address in "neighbor info" tab of the DE-CIX looking glass.
The following section contains examples showing how the different BGP Communities and BGP Extended Communities can be used.
BGP announcements marked with the following communities are only re-distributed to AS64501 and AS64502:
BGP announcements marked with the following communities are re-distributed to all peers / ASNs except AS64501 and AS64502:
BGP announcements tagged with the following communities are only re-distributed to AS65550 (4 Byte ASN) and AS64501 (2 Byte ASN):
- (rt:6695:65550) or (ro:6695:21345)
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.
BGP Standard Communities:
Prepend your ASN to all peers once: 65001:0
Prepend your ASN to all peers twice: 65002:0
Prepend your ASN to all peers three times: 65003:0
Prepend your ASN to $PEERAS once: 65001:$PEERAS
Prepend your ASN to $PEERAS twice: 65002:$PEERAS
Prepend your ASN to $PEERAS three times: 65003:$PEERAS
BGP Extended Communities:
Prepend your ASN to $PEERAS once: rt:65001:$PEERAS
Prepend your ASN to $PEERAS twice: rt:65002:$PEERAS
Prepend your ASN to $PEERAS three times: rt:65003:$PEERAS
BGP Large Communities:
Prepend your ASN to all peers once: 6695:101:0
Prepend your ASN to all peers twice: 6695:102:0
Prepend your ASN to all peers three times: 6695:103:0
Prepend your ASN to $PEERAS once: 6695:101:$PEERAS
Prepend your ASN to $PEERAS twice: 6695:102:$PEERAS
Prepend your ASN to $PEERAS three times: 6695:103:$PEERAS
Graceful BGP Session Shutdown