Skip to content

Conversation

@fenilp1
Copy link
Contributor

@fenilp1 fenilp1 commented Dec 19, 2025

Features

  • Wildcard matching (0 bits)
  • Origin AS filtering (32 bits)
  • Full RT constraint (96 bits) with three Extended Community types
  • Support for 2-byte AS, IPv4, and 4-byte AS Route Targets
  • Comprehensive test coverage with performance benchmarks

Implementation

  • NLRI parser in pkg/rtc with RFC 4684 compliant wire format parsing
  • Message producer for BMP Route Monitoring messages
  • BGP integration for MP_REACH_NLRI and MP_UNREACH_NLRI
  • Kafka topics: RTCV4Msg (194), RTCV6Msg (196)

Summary

  • 12 files changed: +869 lines
  • Build: ✅ Success
  • Tests: ✅ All pass

RFC 4684 enables selective VPN route distribution using route target filters, reducing unnecessary BGP updates and improving scalability in large VPN deployments.

@fenilp1
Copy link
Contributor Author

fenilp1 commented Jan 6, 2026

@sbezverk

Implement RFC 4684 Route Target Constraint for optimizing VPN route
distribution between BGP peers.

Features:
- Wildcard matching (0 bits)
- Origin AS filtering (32 bits)
- Full RT constraint (96 bits) with three Extended Community types
- Support for 2-byte AS, IPv4, and 4-byte AS Route Targets
- Comprehensive test coverage with performance benchmarks

Implementation:
- NLRI parser in pkg/rtc with RFC 4684 compliant wire format parsing
- Message producer for BMP Route Monitoring messages
- BGP integration for MP_REACH_NLRI and MP_UNREACH_NLRI
- Kafka topics: RTCV4Msg (194), RTCV6Msg (196)
len() for nil slices is defined as zero, making the nil check unnecessary
@fenilp1 fenilp1 force-pushed the rtc-support-CLEAN branch from 08e0816 to a6986b5 Compare January 6, 2026 14:34
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.

1 participant