FIB Size Calculator: IPv4 and IPv6 Routes, TCAM and Growth

This FIB size calculator checks whether a router or switch can hold your routes. Enter IPv4 and IPv6 route counts, using the dated full-table preset or your own numbers, and it works out forwarding memory, TCAM slots (IPv6 routes cost more), growth over the years you plan for, headroom, and how many years until the table no longer fits.

Result

The result updates automatically as you change any input.

Formula and worked steps
Formulas used
  • Routes after t years = routes x (1 + growth)^t, separately for IPv4 and IPv6
  • TCAM slots = IPv4 routes x slots per IPv4 route + IPv6 routes x slots per IPv6 route (IPv6 usually costs 2 or more)
  • Usable TCAM = TCAM size x (1 - headroom)
  • FIB memory = routes x bytes per route
  • Years until full = the t at which slots needed first exceed usable TCAM
Assumptions
  • The global-table preset is dated: IPv4 1,077,726 routes (CIDR Report, 5 September 2026) and IPv6 258,900 routes (IPv6 CIDR Report, 18 October 2026), with growth of about 5% and 9% during 2025 (APNIC, January 2026). Tables differ by vantage point by tens of thousands of routes; check cidr-report.org for current values.
  • Memory per route is an assumption, not a measurement. Real usage depends on the platform, the data structure and what else the line card stores; read it from your device.
  • TCAM slot cost for IPv6 and the usable size of the route partition depend on the platform and its TCAM profile. Enter the values from the datasheet or scale guide.
References

What is a FIB and why does its size matter?

A router keeps two related tables. The routing information base (RIB) holds every route learned from every protocol, along with attributes. The forwarding information base (FIB) holds only the best route for each prefix, in a form the hardware can search at line rate. The FIB is the one that has hard limits: it lives in TCAM or in dedicated memory on each line card, and when it is full the router either stops installing routes, forwards some traffic in software, or drops it.

TCAM and slots

Ternary content-addressable memory searches all entries at once, which is what makes longest-prefix match fast at hundreds of gigabits. It is also expensive and power-hungry, so line cards have a fixed amount. Each IPv4 route usually takes one slot. An IPv6 route is four times as wide, and on many platforms it takes two slots (for prefixes up to /64) or four. TCAM is often divided between features such as ACLs, multicast and routes, so the space for routes may be smaller than the total on the datasheet.

How big is the internet table?

Network operators watch the global BGP table because it sets the minimum FIB size for a router in the default-free zone. APNIC’s CIDR Report showed about 1,077,726 IPv4 prefixes on 5 September 2026, and its IPv6 report about 258,900 on 18 October 2026. In 2025 the IPv4 table grew by about 5% and the IPv6 table by about 9%. IPv4 growth has been steady for years, while IPv6 growth has slowed from the high percentages of earlier years. These figures are what the preset uses, and they are editable because every vantage point sees a slightly different table.

How the FIB size calculator works

Formulas

Future route counts compound at the growth rate you set for each protocol: routes after t years equal today’s routes times (1 + growth) to the power t. TCAM slots are IPv4 routes times their slot cost plus IPv6 routes times theirs. Usable TCAM is the datasheet figure less your headroom. The tool also estimates FIB memory from bytes per route, and searches for the point at which the slots needed first exceed what is usable.

Worked example: a 3-million-slot TCAM

With today’s global table, 1,077,726 IPv4 routes use 1,077,726 slots and 258,900 IPv6 routes at two slots each use 517,800, a total of 1,595,526. A 3,000,000-slot route TCAM with 20% headroom has 2,400,000 usable slots, so the table uses 66.5% of it. Three years of growth takes IPv4 to about 1,247,600 routes and IPv6 to about 335,300, which is 1,918,200 slots and 79.9% of the usable space. The design still fits, and at those growth rates it fills in about 6.6 years. A smaller 2,000,000-slot TCAM would have only 1,600,000 usable slots, so it would be 99.7% full on day one and would run out within weeks of the headroom limit.

The cost of IPv6

IPv6 is only about a fifth of the routes but a third of the slots at two slots each. If your platform uses four slots for IPv6, the same table needs 2,113,326 slots. This is why IPv6 growth, though slower in route count, can drive TCAM exhaustion sooner than IPv4. The calculator shows what share of the slots IPv6 uses, so you can see which protocol dominates the problem.

Memory and the RIB

FIB memory per route is an assumption that you can replace from your platform. The RIB is much larger than the FIB because BGP stores attributes and often several paths per prefix from each peer. A router with ten full-table peers may hold ten million paths in the RIB, even if the FIB has one million entries, so RIB memory is a separate planning item, and it is the reason full-table peering needs a well-provisioned control plane.

Why it matters for network engineers

Many platform replacements are triggered by table growth, and the decision is expensive. A calculation that includes growth tells you the useful life of a purchase and the cost of choosing a smaller model. It also shows which designs avoid the problem: a router that takes only a default route, or default plus partial routes, needs no more than a few thousand slots. Edge and campus switches that run BGP or OSPF with large tables should be checked in the same way. Summarisation helps reduce internal routes; the route summarization calculator finds the savings.

Best practices and common mistakes

Use the datasheet’s route scale for the profile you will deploy, and check the TCAM carve template: a switch tuned for ACLs or MAC addresses may hold far fewer routes than the headline figure. Plan for the table at the end of the platform’s life, not at purchase time, and keep 15% to 20% headroom for bursts, such as route leaks. Filter unwanted routes: most operators drop IPv4 prefixes longer than /24 and IPv6 longer than /48 on peering sessions.

Common mistakes are forgetting IPv6, assuming one slot for every route, and counting only the global table when the router also carries a large internal table. Another is using the RIB count for FIB planning, or the reverse. Do not assume that a full table is necessary: many edge routers need only a default route plus customer routes. Convergence matters too: a bigger table takes longer to reprogram after a failure, which you can estimate with the BGP convergence time calculator. Hardware tables for access lists have similar limits, covered by the ACL rule count calculator.

Keeping the numbers current

Update the preset when you plan: the figures in this tool are dated, and the global table changes every day. The CIDR Report and the annual BGP review from APNIC give the current count and recent growth. If you plan for five or more years, run the calculation with a high and a low growth case, since long-range forecasts of the routing table have been wrong in both directions.

FAQs

How big is the global IPv4 routing table?

About 1.08 million prefixes in September 2026 according to the CIDR Report (5 September 2026: 1,077,726), up about 5% over 2025. Different vantage points see slightly different totals.

How many TCAM slots does an IPv6 route use?

It depends on the platform. Many use two slots per IPv6 route (up to /64) and some use four. The calculator has an editable slot cost.

What is the difference between RIB and FIB?

The RIB holds all learned routes with their attributes and is stored in control-plane memory. The FIB holds only the best route per prefix and is programmed into the forwarding hardware.

Do I need a full routing table on my router?

Not always. Many edge and branch routers work with a default route or a partial table. A full table is needed mainly in the default-free zone or when you need the best exit per destination.

Next, try the BGP convergence time, the route summarization calculator and ACL rule count, or browse all Routing & Switching calculators and the full list of network calculators.