CHA.LA Collector
- 3 regional Collectors
- RIB and Update MRT
- Periodic external route snapshot supplementation
A dedicated ClickHouse node stores routing data, continuously ingests BGP Updates, and uses daily RIB reconciliation to maintain current state, withdrawal history, topology and risk evidence.
CHA.LA servers collect, normalize and load data into ClickHouse on a schedule. The website and public API read only the CHA.LA data layer.
This node runs only ClickHouse, BGP ingestion and temporary MRT parsing tasks. It does not host the website, PostgreSQL or honeypots.
At the threshold, pause collection expansion and prioritize removal of expired events and temporary files.
Select about 8 representative peers per collector to establish a stable observation baseline.
Recover missed Updates and verify that current routes agree with the collector.
Keep raw events for a limited period and retain structured states and intervals long term, so ASN pages can show withdrawn routes accurately in grey.
Opens a new route interval, or updates the current AS path, origin, and last active time.
Closes the current interval, writes withdrawn_at and close_reason, and the page is kept as gray historical record.
Opens a new valid interval; the old withdrawn interval is retained long-term, forming a complete change trajectory.
At least one observation point still sees this prefix, and the page displays normally.
All valid observation points have withdrawn, confirmed by RIB calibration, and the page is displayed in gray.
Some collectors still see it, some have withdrawn; cannot be directly determined as global withdrawal.
Collector or RIB has not yet updated; only indicates latency, not mislabeled as withdrawn.
Store detailed events separately from long-term history to prevent repeated Announcements from continually expanding the database.
| Table | Contents | Retention period | Application use |
|---|---|---|---|
bgp_routes_current | Latest route status (including withdrawals) | Long-term | Latest status for each Prefix, Collector, and Peer; withdrawals are not deleted immediately |
bgp_route_events | Raw change events | 14 days | Details of announcements, withdrawals, origin and path changes |
bgp_route_intervals | Route change intervals | Long-term | When announced, when withdrawn, why closed, and origin changes |
bgp_prefix_hourly | Hourly aggregation | Long-term | Visibility, origin, path length, and change count |
bgp_import_runs | Import task records | 90 days | Source files, processing progress, latency, verification results, and errors |
bgp_asn_edges | ASN adjacency derived table | Long-term | Aggregates upstreams, downstreams, peers, strength, and visible peer count from AS paths |
Cleanup affects only files that can be downloaded again and repetitive details. It does not remove the prefix routing history used by the website.
Standardization is completed upon import, ensuring current routes, history, topology, and risk models all use the same field definitions.
collectorpeerobserved_atevent_typeprefixip_versionorigin_asnas_pathpath_lengthcommunitiesfirst_seenlast_seenwithdrawn_atis_activevisibility_countactive_observation_countclose_reasonraw_sourceFirst complete user-facing query capabilities, then gradually add anomaly detection and risk model inputs.