howto/Bird-communities.md
... ...
@@ -42,7 +42,7 @@ Propagation:
42 42
```
43 43
For example, if your peer is 12ms away and the link speed between you is 250Mbit/s and you are peering using OpenVPN P2P, then the community string would be (3, 24, 33).
44 44
45
-Two utilites which measure round trip time and calculate community values automatically are provided, written in [ruby](https://github.com/Mic92/bird-dn42/blob/master/bgp-community.rb) and [C](https://github.com/nixnodes/bird/blob/master/misc/dn42-comgen.c).
45
+Two utilities which measure round trip time and calculate community values automatically are provided, written in [ruby](https://github.com/Mic92/bird-dn42/blob/master/bgp-community.rb) and [C](https://github.com/nixnodes/bird/blob/master/misc/dn42-comgen.c).
46 46
47 47
```
48 48
$ ruby bgp-community.rb --help
... ...
@@ -62,8 +62,9 @@ $ ruby bgp-community.rb -6 dn42-2.higgsboson.tk 1000 pfs
62 62
There are two type of route origin: `region` and `country`
63 63
64 64
#### Region
65
-The range `41~70` are assgined to the region property.
66
-According to [this mail](https://lists.nox.tf/pipermail/dn42/2015-December/001259.html) these are the communities for route origin(region):
65
+The range `41-70` is assigned to the region property.
66
+The communities for route origin region were first defined in [December 2015](https://lists.nox.tf/pipermail/dn42/2015-December/001259.html) and further extended in [May 2022](https://groups.io/g/dn42/topic/91226190):
67
+
67 68
```
68 69
(64511, 41) :: Europe
69 70
(64511, 42) :: North America-E
... ...
@@ -85,8 +86,8 @@ According to [this mail](https://lists.nox.tf/pipermail/dn42/2015-December/00125
85 86
```
86 87
87 88
#### Country
88
-The range `1000~1999` are assigned to the country property, we uses the country code from [ISO-3166-1 Numeric](https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv)
89
-The `1000 + country code` are the communities for route origin(country).
89
+The range `1000-1999` is assigned to the country property. Here we use [ISO-3166-1 numeric](https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv) country codes, adding `1000` to each value to get the country origin community:
90
+
90 91
```
91 92
(64511, 1124) :: Canada
92 93
(64511, 1156) :: China
... ...
@@ -114,7 +115,7 @@ just above `update_flags` in `dn42_export_filter` function
114 115
- Otherwise, if you export routes across multiple regions within your network, you may be sending incorrect origin information to other peers.
115 116
116 117
117
-## Example configurations
118
+## Example configurations
118 119
```
119 120
# /etc/bird/peers4/tombii.conf
120 121
protocol bgp tombii from dnpeers {
... ...
@@ -203,7 +204,7 @@ include "bird/local4.conf";
203 204
#################
204 205
205 206
include "/etc/bird/filter4.conf";
206
-include "/etc/bird/community_filters.conf";
207
+include "/etc/bird/community_filters.conf";
207 208
```
208 209
209 210