Home / Insights / Telecom
Carrier Infrastructure

Carrier-Grade BGP Routing & CGNAT on MikroTik CCR

A complete architectural breakdown of wire-speed BGP multihoming, deterministic CGNAT translation, and FreeRADIUS subscriber management for regional broadband networks. Real subscriber capacity depends on the CCR model, traffic mix and enabled features, so size it from MikroTik’s published test results and your own load tests.

Published 6 October 2026 · 3 min read · By Lalit Bhardwaj

MikroTik BGP and CGNAT Architecture
ISP & Telecom Engineering
Key takeaways
  • Filter BGP prefixes in both directions and validate route origins with RPKI.
  • Use deterministic CGNAT so subscriber traceability does not require per-session logs.
  • Split subscriber termination across BNG nodes to limit failure impact.
  • Keep the management plane reachable only from the NOC.

Scaling Subscriber Cores Without Carrier-Grade Price Tags

The Growing Pressures on Regional ISPs

Regional Internet Service Providers (ISPs), campus broadband operators, and fiber infrastructure providers face mounting bandwidth demands alongside severe IPv4 address exhaustion. Proprietary carrier routing platforms often impose exorbitant recurring software subscription licenses per gigabit of throughput. By architecting ISP cores around MikroTik Cloud Core Routers (CCR2216-1G-12XS-2XQ and CCR2116-12G-4S+), operators achieve 100G line-rate forwarding and multi-million packet-per-second performance at predictable hardware costs.

Phase 1: Multi-Homed BGP Edge Design

A reliable ISP edge requires independent upstream transit redundancy:

  • Full Internet Routing Tables: CCR2216 equipped with 16GB RAM comfortably hosts 4+ full IPv4/IPv6 internet routing tables across upstream Tier-1 providers.
  • RPKI Validation: Enforce Resource Public Key Infrastructure (RPKI) cache validation to protect the network from BGP prefix hijacking and route leaks.
  • BGP Flowspec & Communities: Implement automated upstream DDoS blackholing communities to mitigate volumetric attacks at the transit provider edge before line saturation occurs.

Phase 2: Deterministic Carrier-Grade NAT (CGNAT)

With public IPv4 exhaustion, most operators that cannot obtain enough public IPv4 addresses use CGNAT for subscriber connectivity, alongside an IPv6 rollout rather than instead of one:

  1. Port Block Allocation (PBA): Assign deterministic port blocks (e.g., 1024 or 2048 ports per subscriber IP) rather than dynamic single-port tracking. This eliminates CPU-intensive connection tracking overhead and satisfies lawful interception / audit compliance requirements without multi-terabyte log bloat.
  2. Hardware Offloading (L3HW): Configure RouterOS v7 hardware L3 routing offload to switch FastPath traffic directly on the Marvell Prestera switch ASIC, bypassing the CPU for subscriber-to-transit forwarding.

Phase 3: BNG / BRAS & FreeRADIUS AAA Integration

Centralize subscriber lifecycle management by separating authentication from traffic routing. MikroTik Broadband Network Gateways (BNG) terminate PPPoE and IPoE subscriber VLANs, authenticating via FreeRADIUS against MariaDB backends for sub-second session establishment and dynamic bandwidth rate-limiting (CoS/QoS queues).

Phase 4: IPv6 Dual Stack

CGNAT buys time; IPv6 removes the pressure. Start by running dual stack on the core and border, obtain or confirm your IPv6 allocation, and plan prefix delegation (DHCPv6-PD) for subscribers — commonly a /56 or /60 per customer. Pilot with a group of subscribers whose CPE supports IPv6, then expand as CPE is replaced. As more traffic moves to IPv6, CGNAT load and logging volumes fall.

Operations: Logging and Lawful Requests

With deterministic CGNAT, each subscriber receives a fixed public IP and port block, so mapping a public address and port back to a subscriber requires only the allocation table and RADIUS session records — not a log line for every connection. Keep RADIUS accounting, DHCP leases and the NAT allocation history for the period your licence conditions and CERT-In require, and document a search procedure so requests can be answered quickly and accurately.

Common Mistakes

  • Accepting full routes from a transit provider without inbound prefix filters.
  • Running all subscribers on one router, so a single failure becomes a city-wide outage.
  • Leaving default services (Winbox, API, Telnet) reachable from the internet.
  • Sizing routers by interface speed rather than packet rate and NAT session count.
  • Keeping configurations only on the devices, without version-controlled exports.

Primary references

Official standards, regulator and vendor documentation for the topics this article discusses. Check the current version before relying on a specific requirement.