Skip to content

feat: add Circuit-ID hash collision monitoring (#90)#104

Merged
mgazza merged 3 commits intomainfrom
feat/circuit-id-monitoring
Feb 12, 2026
Merged

feat: add Circuit-ID hash collision monitoring (#90)#104
mgazza merged 3 commits intomainfrom
feat/circuit-id-monitoring

Conversation

@mgazza
Copy link
Contributor

@mgazza mgazza commented Feb 12, 2026

Summary

  • Add collision detection when slow path encounters hash mismatch
  • Export Prometheus metrics for collision monitoring
  • Document collision characteristics

Closes #90

mgazza and others added 3 commits February 12, 2026 06:14
Add CheckCircuitIDCollision method that detects when a circuit-ID hash
maps to a different MAC than the one being inserted. Document FNV-1a
collision characteristics (birthday paradox probabilities at scale).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add bng_circuit_id_hash_collisions_total counter and
bng_circuit_id_collision_rate gauge. The rate is computed from
the DHCP server's insertion/collision counters during periodic
metric collection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Check for hash collisions before inserting circuit-ID mappings in
handleRequest. Track insertion/collision counts atomically and invoke
an optional callback so the metrics layer can record each collision.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mgazza mgazza merged commit daa54dd into main Feb 12, 2026
2 checks passed
@mgazza mgazza deleted the feat/circuit-id-monitoring branch February 12, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Monitoring: Add Circuit-ID hash collision detection and alerting

1 participant