---
layout: page
title: BGP communities
permalink: /blog/bgp-communities/
keywords: bgp communities,bgp community,dn42,bird communities,bird community
description: ???
lang: en
feed: false
sitemap: false
---

| Community | Latency |
| --- | --- |
| `(64511, 1)` | in (0, 2.7ms] |
| `(64511, 2)` | in (2.7ms, 7.3ms] |
| `(64511, 3)` | in (7.3ms, 20ms] |
| `(64511, 4)` | in (20ms, 55ms] |
| `(64511, 5)` | in (55ms, 148ms] |
| `(64511, 6)` | in (148ms, 403ms] |
| `(64511, 7)` | in (403ms, 1097ms] |
| `(64511, 8)` | in (1097ms, 2981ms] |
| `(64511, 9)` | > 2981ms |

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mfenced>
      <mrow>
        <mn>64511</mn>
        <mo>,</mo>
        <mi>x</mi>
      </mrow>
    </mfenced>
    <mo>:</mo>
    <mo>:</mo>
    <mi>latency</mi>
    <mo>in</mo>
    <mfenced>
      <mrow>
        <mo>[</mo>
        <mi>exp</mi>
        <mo>(</mo>
        <mi>x</mi>
        <mo>-</mo>
        <mn>1</mn>
        <mo>)</mo>
        <mo>,</mo>
        <mi>exp</mi>
        <mo>(</mo>
        <mi>x</mi>
        <mo>)</mo>
        <mo>]</mo>
      </mrow>
    </mfenced>
    <mi>ms</mi>
    <mo>(</mo>
    <mrow>
      <mi>for</mi>
      <mi>x</mi>
      <mo>&lt;</mo>
      <mn>10</mn>
    </mrow>
    <mo>)</mo>
  </mrow>
</math>

(64511, x) :: latency in [exp(x-1), exp(x)] ms (for x < 10)

(a, b] means a < x <= b

| Community | Bandwidth |
| --- | --- |
| `(64511, 21)` | >= 0.1Mbit/s |
| `(64511, 22)` | >= 1Mbit/s |
| `(64511, 23)` | >= 10Mbit/s |
| `(64511, 24)` | >= 100Mbit/s |
| `(64511, 25)` | >= 1000Mbit/s / 1Gbit/s |
| `(64511, 26)` | >= 10Gbit/s |
| `(64511, 27)` | >= 100Gbit/s |
| `(64511, 28)` | >= 1Tbit/s |
| `(64511, 29)` | >= 10Tbit/s |
| `(64511, 30)` | >= 100Tbit/s |

<math>
  <mi>Mbit</mi>
  <mo>/</mo>
  <mi>s</mi>
</math>

bw = min(up,down) for asymmetric connections

| Community | Encryption type | Example |
| --- | --- | --- |
| `(64511, 31)` | not encrypted | GRE |
| `(64511, 32)` | encrypted with unsafe vpn solution | ??? |
| `(64511, 33)` | encrypted with safe vpn solution without Perfect Forward Secrecy (PFS) | OpenVPN PSK |
| `(64511, 34)` | encrypted with safe vpn solution with Perfect Forward Secrecy (PFS) | WireGuard, fastd |

Propagation:
- for latency pick max(received_route.latency, link_latency)
- for encryption and bandwidth pick min between received BGP community and peer link

| Community | Region |
| --- | --- |
| `(64511, 41)` | Europe |
| `(64511, 42)` | North America-East |
| `(64511, 43)` | North America-Central |
| `(64511, 44)` | North America-West |
| `(64511, 45)` | Central America |
| `(64511, 46)` | South America-East |
| `(64511, 47)` | South America-West |
| `(64511, 48)` | Africa-North (above Sahara) |
| `(64511, 49)` | Africa-South (below Sahara) |
| `(64511, 50)` | Asia-South (India, Pakistan, Bangladesh) |
| `(64511, 51)` | Asia-Southeast (Thailand, Singapore, Philippines, Indonesia, Malaysia) |
| `(64511, 52)` | Asia-East (Japan, China, South Korea, Taiwan, Hong Kong) |
| `(64511, 53)` | Pacific & Oceania (Australia, New Zealand, Fiji) |
| `(64511, 54)` | Antarctica |
| `(64511, 55)` | Asia-North (Russia) |
| `(64511, 56)` | Asia-West (Iran, Turkey, United Arab Emirates) |
| `(64511, 57)` | Central Asia (Afghanistan, Uzbekistan, Kazakhstan) |
