All Pages > Services > Route Collector
Global Route Collector
The Global Route Collector (GRC) provides a real time view of routing and peering across DN42 and can be used to generate maps, stats or just query how routes are being propagated across the network.
Technically the GRC is a bird instance that anyone can peer with, it imports all routes whilst exporting none and provides a number of interfaces for querying the route data.
Data from the GRC is used to generate some of the DN42 Maps (see the Internal Services page).
Peering with the collector
The collector uses the dynamic peering capability in Bird2 to allow anyone to peer with it without any new server side configuration being required. The collector relies on users peering with it across the network so the more peers the better and the more comprehensive the collector data will be.
Details | |
---|---|
ASN | AS4242422602 |
Hostname | collector.dn42 |
IPv4 Address | 172.20.129.4 |
IPv6 Address | fd42:4242:2601:ac12::1 |
BGP Configuration
- Unlike normal DN42 peerings, you must enable multihop to peer with the collector
- The collector supports Multiprotocol BGP, so you don't need to configure separate IPv4 and IPv6 sessions
- Please enable the Add Paths BGP extension to export all available routes
Example bird2 config:
ROUTE_COLLECTOR
{
as ***YOUR_ASN***;
fd42:4242:2601:ac12::1 as 4242422602;
;
ipv4 {
paths tx;
none;
filter {
if ( ) && source ~ [ RTS_STATIC, RTS_BGP ] )
then {
;
}
;
};
};
ipv6 {
paths tx;
none;
filter {
if ( ) && source ~ [ RTS_STATIC, RTS_BGP ] )
then {
;
}
;
};
};
}
bgp
Example OpenBGPD config snippet (assumes config similar to the OpenBGPD setup guide; note the GRC neighbor should be defined separately (outside the dn42peers
group)):
:4242:2601:ac12::1 {
<YOUR-ROUTER-DN42-IPv6>
dn42grc
4242422602
255
IPv4 unicast
IPv6 unicast
add-path send all
}
to {group dn42peers fd42:4242:2601:ac12::1} prefix-set dn42etc
fd42
Example VyOS 1.4 "Sagitta" config
# The route collector should never export routes, so let's make a route-map to reject them if it does.
set policy route-map Deny-All rule 1 action deny
set protocols bgp neighbor fd42:4242:2601:ac12::1 address-family ipv4-unicast route-map import 'Deny-All'
set protocols bgp neighbor fd42:4242:2601:ac12::1 address-family ipv6-unicast route-map import 'Deny-All'
set protocols bgp neighbor fd42:4242:2601:ac12::1 description 'https://lg.collector.dn42'
set protocols bgp neighbor fd42:4242:2601:ac12::1 ebgp-multihop '10'
set protocols bgp neighbor fd42:4242:2601:ac12::1 remote-as '4242422602'
Querying the collector
Looking Glass
The collector runs a looking glass based on bird-lg-go.
MRT Dumps
MRT Dumps are produced by the collector every 10 minutes. Bird produces MRT dumps corresponding to tables, so two separate dumps are created, one for IPv4 (master4) and one for IPv6 (master6). The 10 minutes dumps are available for one week before being reduced down to one a day.
The latest dumps can always be found at the following URLs:
Prometheus Metrics
The collector runs bird_exporter and prometheus style metrics are available at the following URL:
SSH Interface
The collector bird instance can be queried directly using a birdc shell.
- ssh shell@collector.dn42
for