Firewall Sizing Calculator: Throughput, CPS and Sessions

This firewall sizing calculator checks whether a firewall can carry your traffic. It combines datasheet throughput for plain firewalling, IPS and TLS inspection according to how much of your traffic uses each, adds headroom, and compares connections per second and concurrent sessions with the device limits. Every datasheet value is an input you supply.

Result

The result updates automatically as you change any input.

Formula and worked steps
Formulas used
  • Required throughput = peak x (1 + headroom)
  • Effective throughput = 1 / (plain share / firewall + IPS share / IPS + TLS share / TLS inspection), each datasheet value x real-world factor
  • Concurrent sessions = connections per second x average session duration (Little's law)
  • Utilisation = requirement / capacity for throughput, CPS and sessions; the smallest margin sets the model size
Assumptions
  • Datasheet values are inputs: the tool does not know any product. Use the vendor's figures for the features you will enable, and prefer enterprise-mix or application-mix numbers over best-case UDP figures.
  • The real-world factor lets you derate lab figures; 100% uses them as published. Values of 50% to 70% are common when only best-case numbers exist.
  • Traffic shares are by volume. Decrypted traffic is assumed to be inspected at the TLS-inspection rate, which already includes any IPS work.
References

What is firewall sizing?

Choosing a firewall model starts with a datasheet full of impressive numbers, but they are measured in different conditions and each applies to a different feature. A firewall sized from the largest number on the page will often fall short in production. Sizing means working out what your traffic needs, in throughput, new connections per second and concurrent sessions, then comparing it with the figures for the features you will actually turn on.

Throughput depends on features

Datasheets typically list several throughputs for one device. Firewall throughput measures stateful forwarding with no inspection, often with large UDP packets. IPS throughput measures intrusion prevention on a mixed traffic profile. Threat protection or NGFW throughput adds anti-malware and application control. TLS or SSL inspection throughput measures decrypting, inspecting and re-encrypting. They fall in that order, and the gap is big: a device with 10 Gbps firewall throughput may do 2 Gbps with TLS inspection enabled. Since most web traffic is encrypted, the inspection figure is often the one that matters.

Connections per second and sessions

Throughput is bytes; connection rate is how often new flows start, each needing a table entry, a policy lookup and often a TCP and TLS handshake. Web-heavy traffic has a high rate of short connections, which can exhaust the CPU long before bandwidth is full. Concurrent sessions is the size of the state table. By Little’s law, the average number of sessions in the system equals the arrival rate times the average duration, so 20,000 new connections per second lasting 30 seconds on average hold 600,000 sessions open.

How the firewall sizing calculator works

Mixing features

Each byte of traffic takes processing time that depends on the path it takes. The time to forward a gigabit is 1 divided by the throughput of that path, and the time for a mix is the weighted average. So the effective throughput is the harmonic mix: 1 ÷ (plain share ÷ firewall rate + IPS share ÷ IPS rate + TLS share ÷ TLS rate). Because slow paths dominate, even a modest share of decrypted traffic lowers the average a lot.

Worked example

Take a device with 10 Gbps firewall, 5 Gbps IPS and 2 Gbps TLS inspection throughput, and traffic that is 50% plain, 30% IPS and 20% decrypted. Processing time per gigabit is 0.5 ÷ 10 + 0.3 ÷ 5 + 0.2 ÷ 2 = 0.21, so the effective throughput is 4.76 Gbps. With a peak of 3 Gbps and 20% headroom the requirement is 3.6 Gbps, which is 75.6% of the capacity: it passes, but not by a wide margin. Applying a real-world factor of 60% drops the capacity to 2.86 Gbps and the same requirement fails.

Connections and sessions

For 20,000 new connections per second plus 20% headroom, the requirement is 24,000 per second against a datasheet of 100,000, 24% utilisation. Concurrent sessions are 20,000 × 30 = 600,000, or 720,000 with headroom, 36% of a 2-million session limit. In this example throughput is the tightest constraint, which sets the model size.

Per-feature view

The table at the bottom of the result compares your requirement against each feature path on its own. If the requirement is 3.6 Gbps, the firewall-only and IPS paths pass and the TLS path fails. That tells you where the risk is: if the share of decrypted traffic grows, the device runs out of capacity first on that path.

Why it matters for network engineers

An undersized firewall is a bottleneck for the whole site, and replacing it is costly and disruptive. Oversizing wastes budget on licences and hardware that is never used. Sizing from workload gives a defensible basis for the purchase, and the same arithmetic shows what happens when features are added: turning on TLS inspection for all traffic may require a device twice the size. The connection rate and session count also depend on NAT and port use; see the PAT port calculator, and on handshake cost, covered by the TLS handshake calculator.

Best practices and common mistakes

Take the real peak from monitoring, not from a link speed, and count both directions only if the datasheet does. Ask vendors for throughput with the exact feature set and a realistic traffic profile, and treat lab numbers as a ceiling. Test with a pilot or a proof of concept using real traffic if the purchase is large. Plan the policy size as well: rule counts affect hardware or software lookups, and the ACL rule count calculator shows how port ranges expand.

Common mistakes are comparing firewall-only throughput with a requirement that includes inspection, ignoring connection rate, sizing for average rather than peak, and forgetting growth in encrypted traffic. Another is counting only today’s features: if threat prevention or decryption is on the roadmap, size for it now. Do not forget logging, which can consume CPU and bandwidth on its own. Finally, include high availability: in an active-passive pair each unit must handle the whole load, and in active-active pairs a failure halves the capacity.

High availability and licensing

In an active-passive pair each unit must carry the full load, so the sizing above applies per unit. In an active-active pair, a failure halves the capacity, so size so that one unit can handle the peak, or accept degraded service. Check the licence model too: some vendors limit throughput or features by licence tier, and the datasheet figures may only apply to the highest tier.

Revisiting the sizing

Review the numbers every year or when applications change. Cloud migration, video conferencing and the move to TLS 1.3 and QUIC all alter the traffic mix. Keep your inputs and results with the purchase record so that the next review starts from a known baseline.

FAQs

How do I size a firewall?

Work out the peak throughput, new connections per second and concurrent sessions you need, add headroom, and compare them with the datasheet values for the features you will enable, such as IPS and TLS inspection.

Why is firewall throughput lower with IPS or TLS inspection?

Each feature adds processing per packet or per flow, and decryption is particularly expensive. Datasheets list lower throughput for these modes because the same hardware does more work for every byte.

How do I calculate concurrent sessions?

Multiply the connection rate by the average session duration. For 20,000 new connections per second lasting 30 seconds, about 600,000 sessions are open at once.

Should I trust datasheet throughput numbers?

Treat them as upper limits. They are lab results, often using large packets and a single feature. Use figures for your feature set and traffic mix, and apply a real-world factor if you only have best-case values.

Next, try the PAT port calculator, the ACL rule count and TLS handshake time calculator, or browse all Network Security & Overhead calculators and the full list of network calculators.