29 Commits

Author SHA1 Message Date
Yifan Gao b2b8edc0dd fix: stop operator attribution at the nearest known ASN
Shared upstream attribution could assign CERNET prefixes to China Telecom
or Unicom even when CERNET originated the route. Stop at the closest
configured operator in each prefix/origin's common AS-path suffix, while
preserving downstream coverage and multi-origin observations.

Correct overlapping CNGI/legacy ASN name matches, include operator
boundaries in the cache key, and wire the policy into list generation.
Accumulate common suffixes instead of retaining every observed path.

Add synthetic MRT and dual-stack regressions, fixed ASN matching checks,
and document the resulting list semantics.

Validation: 26 Rust tests and Ruby operator checks pass. Frozen-input full
generation preserves china and the seven-operator address union. All 41
sample classifications agree with the RIB paths; a fresh-cache rerun
after the internal simplification produces 28 byte-identical artifacts.

Refs #64
2026-09-14 23:26:01 +08:00
Yifan Gao bcdccb7110 ci: cache RIR delegated statistics 2026-08-24 17:19:45 +08:00
Yifan Gao c1f4dc2096 refactor: integrate BGP classifier into main repository 2026-08-24 15:18:30 +08:00
Yifan Gao 7d30ccb945 fix(china): include unannounced registered space for #45 2026-08-24 14:57:46 +08:00
Yifan Gao 993ebfb8bc fix(upload): publish trusted transit artifact 2026-08-09 13:13:58 +00:00
Yifan Gao 6c24286af0 fix(china): require trusted domestic transit for #63 2026-08-08 14:43:24 +00:00
Yifan Gao 65ea4cb8fc Deduplicate bgptools auto-exclude flow 2026-04-01 08:37:13 +08:00
Yifan Gao 5d5cb5a283 Upload hidden txt artifacts 2026-04-01 08:12:13 +08:00
Yifan Gao 8bcb030279 Fold auto-exclude export into stat 2026-04-01 07:53:10 +08:00
Yifan Gao 7cfd91f08c Integrate bgptools foreign-upstream filtering 2026-04-01 07:31:58 +08:00
Yifan Gao 1273b8ade1 fix(china): use origin-only attribution for #59 2026-03-27 17:24:02 +08:00
Yifan Gao e0299ff662 Refactor line matching logic in justfile for improved readability 2025-12-28 01:27:25 +08:00
Yifan Gao 7ce02ce694 Refactor CDN cache refresh script in justfile from Bash to Ruby for improved error handling and clarity 2025-12-28 01:24:12 +08:00
Yifan Gao 7c5d37d600 Refactor guard checks in justfile to improve clarity and functionality 2025-12-28 00:24:31 +08:00
Yifan Gao 1cf20f483e Use bash shebangs for just scripts 2025-12-27 21:01:49 +08:00
Yifan Gao cf7e3e619b Refine ASN parsing and guard checks 2025-12-27 20:53:11 +08:00
Yifan Gao bd03627fdd Convert gen operator to Ruby for rib processing 2025-12-27 18:33:15 +08:00
Yifan Gao c17f459e19 Switch operator config to YAML and Ruby scripts 2025-12-27 18:08:07 +08:00
Yifan Gao 4a7ae67ea2 make justfile all recipe dynamic 2025-12-23 04:22:51 +08:00
Yifan Gao 4c9d283a60 replace doc annotations with comments 2025-12-23 04:18:36 +08:00
Yifan Gao 6b598a7e67 simplify gen recipe 2025-12-23 04:16:05 +08:00
Yifan Gao ba0ec56159 Enhance justfile and README to support combined IPv4+IPv6 generation for operators. 2025-12-21 07:09:26 +08:00
Yifan Gao d21a799648 build: Replace axel with aria2c for file downloads and cleanup CI config. 2025-12-15 05:27:54 +08:00
Yifan Gao e2312ce7a6 Update bgptools version to 0.3.0, treat ASNs in ASPATH longest common suffix as origin AS. #14 2025-12-08 22:44:57 +08:00
Yifan Gao f6ff6e772e Update justfile to adapt bgptools v0.2.4, supporting multiple RIBs for more comprehensive result.(#55) 2025-12-08 21:01:47 +08:00
Yifan Gao 80932ff1e4 Update bgptools installation command in justfile to use --force flag 2025-12-07 20:32:33 +08:00
Yifan Gao 1b144129a8 Update bgptools version to 0.2.3 and add --ignore-private-asn flag for IPv4 and IPv6 prefix generation(#55) 2025-12-07 20:27:47 +08:00
Yifan Gao a3d55cd5e6 Refactor stat script in justfile to Python for improved readability and maintainability 2025-11-25 13:01:01 +08:00
Yifan Gao 4e24cefa5e Refactor project with justfile 2025-11-25 12:03:49 +08:00