288e5b8dfc9e72f9b4200834074ba69e306b414e
howto/Bird-communities.md
... | ... | @@ -1,12 +1,12 @@ |
1 | -Bird is a commonly used BGP daemon. This page provides configuration and help for using BGP communities with Bird for dn42. |
|
1 | +Bird is a commonly used BGP daemon. This page provides configuration and help for using BGP communities with Bird for dn42. |
|
2 | 2 | |
3 | 3 | Communities can be used to prioritize traffic based on different flags, in DN42 we are using communities to prioritize based on latency, bandwidth and encryption. Please note that everyone should be using community 64511. |
4 | 4 | |
5 | -The community is applied to the route when it is imported and exported, therefore you need to change your bird configuration, in /etc/bird/peers4 if you followed the [Bird](/howto/Bird) guide. |
|
5 | +The community is applied to the route when it is imported and exported, therefore you need to change your bird configuration, in /etc/bird/peers4 if you followed the Bird guide. |
|
6 | 6 | |
7 | -The calculations for finding the best route can be stored in a separate file, for example /etc/bird/community_filters.conf. |
|
7 | +The filter helpers can be stored in a separate file, for example /etc/bird/community_filters.conf. |
|
8 | 8 | |
9 | -Below, you will see an example config for peers4 as well as the and the suggested improvement by tombii (prefers low latency) to original filter implementation by welterde (prefers high BW over low latency). |
|
9 | +Below, you will see an example config for peers4 based on the original filter implementation by Jplitza. |
|
10 | 10 | |
11 | 11 | To properly assign the right community to your peer, please reference the table below. If you are running your own network and peering internally, please also apply the communities inside your network. |
12 | 12 | |
... | ... | @@ -104,7 +104,6 @@ latency = update_latency(link_latency); |
104 | 104 | bandwidth = update_bandwidth(link_bandwidth) - 20; |
105 | 105 | crypto = update_crypto(link_crypto) - 30; |
106 | 106 | if bandwidth > 4 then bandwidth = 4; |
107 | -bgp_local_pref = 100*bandwidth + 100*(10-latency)-100*bgp_path.len+50*crypto; |
|
108 | 107 | return true; |
109 | 108 | } |
110 | 109 | ``` |