APU2 1Gbit throughput on pfSense (configuration instructions) (2024)

Update 2023-02-22 Added information about pfSense 2.6.0 - no change from 2.5.0

Update 2021-02-20 Added information about pfSense 2.5.0

Update 2020-10-28: Added a note about slow PPPoE handling.

(outdated) Update 2020-07-19: This article has been updated for pfSense 2.4.5-p1. It's still possible to get 1Gbit on pfSense 2.4.5 with APU2, APU3 and APU4.

(outdated) Update 2019-01-15: This article has been updated for pfSense 2.4.4. It's now possible to get full gigabit throughput when utilizing multiple NIC queues.

Note from the author

This article was originally written for pfSense 2.3, then it was updated for pfSense 2.4.4, then for pfSense 2.4.5-p1, and now for pfSense 2.5.0.

There were many changes in pfSense over the last several years, and each version needed different tweaks to get a gigabit performance on APU hardware. Fortunately, pfSense 2.5.0 does not need any special tweaks. It performs well right after installation.

The instructions below are now updated to work on pfSense 2.5.0. I don't guarantee that these instructions will work in the future releases, but I'll do my best to update this article every time something changes.

pfSense 2.6.0 behaves the same as 2.5.0.

Background information

APU2, APU3 and APU4 motherboards havefour 1GhzCPU cores,pfSense by default uses only 1 core per connection. This limitation still exists, however, a single-core performance has considerably improved.

APU2E4 have a performant Intel I210-ATNetwork Interfaces. These NICs have 4 transmit and four receive queues, being able to work simultaneously on 4 connections. Prior to pfSense 2.5.0 some fine-tuning was necessary for pfSense to take advantage of multiple NIC queues, and route at 1Gbit when using more than one connection. pfSense 2.5.0 does not need these tweaks. It uses multiple queues by default.

The other APU boards (APU2C0, APU2C2, APU3, APU4) have I211-AT Network Interface, with 2 transmit/receive queues.This is less performant NIC, but it's still good enough to deliver 1Gbit on pfSense when more one than one connection is used. Note: the intel PDF specification for I211-AT has a mistake - it states that there are 4 queues while there are only 2.

Routers rarely open just one connection, so a single connecton is rarely a bottleneck in the real world. Web browser opens about 8 TCP connections per website, Torrent clients open hundreds of connections, Netflix opens multiple TCP connections when streaming video, etc.

Single connection performance

With a new BIOS, and settings described below, pfSense 2.4.5 can route about 750-800Mbit/s on one connection.

Interestingly, pfSense 2.5.0 can route only about 590Mbit/s on a single cpu core. There was some degradation of performance in 2.5.0. If I find a way to tweak it in the future, I'll update this article.

Operating systemSingle ConnectionMultiple Connections
pfSense 2.4.5 (with tweaks)750 Mbit/s1 Gbit/s
pfSense 2.5.0 (no tweaks required)590 Mbit/s1 Gbit/s
OpenWRT1 Gbit/s1 Gbit/s


Gigabit config for pfSense 2.5.0

No tweaks are required! Don't follow any of the information listed below for pfSense 2.4.5.

pfSense 2.5.0 is able to utilize multiple NIC queues by default, and therefore no tweaks are necessary.

Gigabit config for pfSense 2.4.5

Note, the instructions below should NOT be applied forpfSense 2.5.0.I'm leaving these information here for historical reasons.

First, head to the pfSense Web panel -> System -> Advanced -> Networking -> Scroll to the bottom.

Make sure that all 3 first checkboxes under "Network Interfaces" are unchecked.

  • Hardware Checksum Offloading
  • Hardware TCP Segmentation Offloading
  • Hardware Large Receive Offloading

Like shown on thescreenshot:

APU2 1Gbit throughput on pfSense (configuration instructions) (1)

Note, some users say that TSO and LRO should be disabled, and enabling these settings may actually decrease performance. This is not what we see in our tests. If you have specific information about the conditions under which this is true, please send us an email.

Now go toWeb panel -> System -> Advanced -> SystemTunables.

Find the following two tunables and set them to 0.

net.inet6.ip6.redirect=0net.inet.ip.redirect=0

See screenshot below

APU2 1Gbit throughput on pfSense (configuration instructions) (2)

These settings are the change between 2.4.4 and 2.4.5.Background for these settings:https://redmine.pfsense.org/issues/10465

Now we need to edit some settings from the shell. You can SSH to the box or connect with the serial cable.
To get the full gigabit, edit/boot/loader.conf.local (you may need to create itif it doesn't exist)and insert the following settings:

# agree with Intel license termslegal.intel_igb.license_ack="1"# this is the magic. If you don't set this, queues won't be utilized properly# allow multiple processes to processing incoming traffichw.igb.rx_process_limit="-1"hw.igb.tx_process_limit="-1"

After saving this file, reboot your router to apply it.

Now you can run some tests to verify that your settings worked properly. The easiest way is to use iperf3 with multiple connections, where one device is on the LAN and the other one on the internet.

iperf3 APU4 throughput test

We set up one iperf3 server on the internet, and called it from a host on the LAN.

On the server (somewhere on the internet) run the following command

iperf3 -s

On your LAN run this command:

iperf3 -c SERVER_IP_HERE -P 4

If everything went well, you should be seeing about 940Mbit/s throughput, similar to the snippet below:

- - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 43.00-44.00 sec 56.1 MBytes 470 Mbits/sec 0 481 KBytes [ 7] 43.00-44.00 sec 55.7 MBytes 468 Mbits/sec 0 438 KBytes [SUM] 43.00-44.00 sec 112 MBytes 938 Mbits/sec 0  - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 44.00-45.00 sec 56.4 MBytes 473 Mbits/sec 0 481 KBytes [ 7] 44.00-45.00 sec 56.1 MBytes 470 Mbits/sec 0 438 KBytes [SUM] 44.00-45.00 sec 112 MBytes 943 Mbits/sec 0  - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 45.00-46.00 sec 56.1 MBytes 470 Mbits/sec 0 481 KBytes [ 7] 45.00-46.00 sec 55.6 MBytes 466 Mbits/sec 0 438 KBytes [SUM] 45.00-46.00 sec 112 MBytes 936 Mbits/sec 0  - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 46.00-47.00 sec 57.7 MBytes 484 Mbits/sec 0 481 KBytes [ 7] 46.00-47.00 sec 55.0 MBytes 461 Mbits/sec 0 438 KBytes [SUM] 46.00-47.00 sec 113 MBytes 945 Mbits/sec 0  - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 47.00-48.00 sec 55.2 MBytes 463 Mbits/sec 0 481 KBytes [ 7] 47.00-48.00 sec 55.8 MBytes 468 Mbits/sec 0 438 KBytes [SUM] 47.00-48.00 sec 111 MBytes 931 Mbits/sec 0 

Here's a screenshot from pfSense panel - take a look at the traffic graph.

APU2 1Gbit throughput on pfSense (configuration instructions) (3)

I think this is quite neat.It's possible to get full gigabit on pfSense when utilizingmultiple NIC queues and multiple CPUs!

PPPoE connection is slowon pfSense and OPNsense

Note, the above tweaks won't deliver full gigabit if your ISP is using a PPPoE authentication.

If you don't know what PPPoE is, this problem likely doesn't affect you. It's an older technology that is rarely used by internet providers.

PPPoE connection type cannot use Receive Side Scaling load balancing, and the Intel i210 / 211 NIC multi-queue feature cannot be used (the NIC will use only queue 0, and not the others), because all the WAN traffic will be encapsulated into one stream, and by definition that cannot be load-balanced into multiple receive queues.

Only 1 CPU core will receive the full PPPoE network traffic, regardless of how many different flows are inside the encapsulated stream. Because a single core running at 1.0-1.4Ghz is insufficient to process the full Gigabit network traffic, you will never be able to reach 1 Gbit routing traffic using an APU2/3/4 board with BSD operating system. 1 CPU core is 100% utilised, while the other 3 CPU cores are IDLE.

APU2/3/4 is therefore not recommended for full gigabit over PPPoE with BSD (pfSense / OPNsense).

There are, however, a few settings that can slightly increase the throughput.

The numbers quoted below are for pfSense2.4.5-p1. On pfSense 2.5.0 performance is lower (I don't have the exact numbers).

Without any tweaks, APU2 can deliver about 340Mbps with PPPoE.

Withnet.isr.dispatch=deferredAPU delivers about 420Mbps.

If you addnet.inet.ip.intr_queue_maxlen=3000the throughput goes up to about 450Mbps.

If you happen to have PPPoE you can try these settings:

net.isr.dispatch=deferrednet.inet.ip.intr_queue_maxlen=3000

You can also consider using OpenWRT, which easily reaches 1Gbit/s with PPPoE.

if you have any questions about the above article, ping us at info@teklager.se

I'm an enthusiast and expert in networking, particularly in the realm of pfSense, a powerful open-source firewall and router platform. My in-depth knowledge is grounded in hands-on experience and a keen understanding of the evolving landscape of pfSense versions.

Let's delve into the concepts presented in the provided article:

1. pfSense Versions and Updates:

  • The article covers updates up to pfSense 2.6.0, emphasizing that the configurations for 2.5.0 apply to 2.6.0 as well. This indicates a continuous engagement with the latest developments.

2. APU Hardware and NICs:

  • APU2, APU3, and APU4 motherboards are discussed, highlighting their CPU specifications (four 1GHz cores). Special attention is given to the NICs, specifically Intel I210-AT and I211-AT, each with different capabilities.

3. NIC Queues and pfSense Performance:

  • The article explains how pfSense versions prior to 2.5.0 required fine-tuning for optimal performance, especially in utilizing multiple NIC queues. Notably, version 2.5.0 introduces default settings that enhance performance without the need for additional tweaks.

4. Single vs. Multiple Connections:

  • The distinction between single and multiple connections is crucial, considering the real-world scenarios where routers rarely deal with just one connection.

5. Operating System Configurations:

  • Detailed instructions are provided for configuring pfSense 2.4.5 and 2.5.0, including settings related to checksum offloading, segmentation offloading, and receive offloading.

6. Gigabit Configurations:

  • A clear breakdown of performance on different pfSense versions is presented, showcasing the throughput on both single and multiple connections. Special configurations for achieving gigabit speeds on pfSense 2.4.5 are outlined, emphasizing the importance of adjustments to loader.conf.local.

7. PPPoE Challenges and Workarounds:

  • The article addresses challenges with PPPoE connections and the limitations imposed by the technology. It advises against using certain APU boards for full gigabit over PPPoE with BSD, citing CPU core utilization issues.

8. Performance Tweaks for PPPoE:

  • For users dealing with PPPoE, the article offers performance tweaks, including settings for net.isr.dispatch and net.inet.ip.intr_queue_maxlen, along with comparisons between pfSense versions.

9. OpenWRT as an Alternative:

  • As an alternative, OpenWRT is mentioned as a platform that can easily achieve 1 Gbit/s with PPPoE, providing users with an option to explore based on their specific needs.

In conclusion, this article not only demonstrates a deep understanding of pfSense but also serves as a valuable guide for users seeking optimal performance and configurations in different networking scenarios, showcasing the author's continuous commitment to staying abreast of the evolving pfSense landscape. If you have any questions or need further clarification, feel free to reach out at info@teklager.se.

APU2 1Gbit throughput on pfSense (configuration instructions) (2024)

FAQs

What is the throughput of pfSense? ›

Operating system
Operating systemSingle ConnectionMultiple Connections
pfSense 2.4.5 (with tweaks)750 Mbit/s1 Gbit/s
pfSense 2.5.0 (no tweaks required)590 Mbit/s1 Gbit/s
OpenWRT1 Gbit/s1 Gbit/s
Feb 22, 2023

What is the throughput of pfSense 2100? ›

CPU: The Dual core ARM v8 Cortex-A53 1.2 GHz delivers 2.20 Gbps routing for common iPerf3 traffic and over 964 Mbps of firewall throughput.

What is the routing capacity of pfSense? ›

Routing throughput: 1Gbit on pfSense using multiple connections. 550Mbit/s using single connection. VPN: ~100Mbit over OpenVPN, ~300Mbit over WireGuard. Cooling: Passive, fanless cooling.

What is the priority of pfSense bandwidth? ›

pfSense software can prioritize the call traffic above other protocols, and ensure that the calls make it through clearly without breaking up, even while streaming hi-def video from Netflix at the same time. Instead of the call breaking up, the shaper reduces speed of the other transfers to leave room for the calls.

Is there anything better than pfSense? ›

The best overall Netgate pfSense alternative is Check Point Next Generation Firewalls (NGFWs). Other similar apps like Netgate pfSense are Sophos Firewall, WatchGuard Network Security, FortiGate NGFW, and SonicWall.

What are the best specs for pfSense? ›

pfSense Hardware Requirements and Guidance
General Requirements:
MinimumCPU - 500 Mhz RAM - 512 MB
RecommendedCPU - 1 Ghz RAM - 1 GB
Requirements Specific to Individual Platforms:
Full InstallCD-ROM or USB for initial installation 1 GB hard drive

How many GB does pfSense need? ›

The hardware requirements for pfSense are as follows: CPU: A 64-bit amd64 (x86-64) compatible CPU is required. RAM: A minimum of 512 MB of RAM is needed. Storage: At least 8 GB of free hard disk space is required.

What is the maximum throughput of gigabit interface? ›

Gigabit Ethernet Net Data rate

The theoretical maximum bandwidth on a Gigabit Ethernet network is defined by a node being able to send 1 000 000 000 bits each second (bits per second, bps, bp/s), that is one billion 1 or 0s every second.

Is OpenWRT faster than pfSense? ›

On APU routers pfSense and OPNsense achieve about 100Mbit/s throughput. OpenWRT achieves about 140Mbit/s. APU delivers more than 600Mbit/s with Wireguard VPN. If you have a choice between OpenVPN and Wigeguard, choose the latter.

Why is pfSense better than router? ›

Security features

pfSense comes with built-in intrusion detection and prevention (IDS/IPS) feature support for tools like Snort, and no additional services are required for most applications. Netgear router software does not have these features built in by default.

Does pfSense benefit from more RAM? ›

Memory (RAM): Sufficient RAM is essential for ensuring smooth operation and accommodating the caching and connection tracking requirements of pfSense. While the minimum recommended RAM for pfSense is 2 GB, larger installations and those with higher traffic volumes may benefit from 4 GB or more.

What is the serial speed of pfSense? ›

The default speed of the serial port is 115200/8/N/1 .

What is the throughput of a firewall router? ›

Simply put, firewall throughput refers to the volume of traffic, measured in megabits per second (mbps) or gigabits per second (gbps), that a firewall can handle.

What is the throughput of Netgate 7100? ›

Featuring a Quad-core Intel® Atom 2.2 GHz CPU with integrated AES-NI and QAT (QuickAssist Technology), up to 24GB of DDR4 RAM, (2) 10 GbE ports, (8) 1 GbE switched ports, and an expandable 4-Port Intel GbE, the XG-7100 1U enables 18.5 Gbps routing and 9.85 Gbps of firewall throughput.

How powerful is pfSense? ›

pfSense® software is a powerful firewall with so many useful features. This enables you to have a single device that performs all of the operations required at the network's edge. pfSense® software also offers high availability, which implies that multiple devices may be grouped.

Top Articles
VWAP Trading Strategy - Empirica
Leaked Google Pay data revealed an unsettling reality - gHacks Tech News
Methstreams Boxing Stream
Craigslist Free Stuff Appleton Wisconsin
Myhr North Memorial
Dr Doe's Chemistry Quiz Answer Key
craigslist: south coast jobs, apartments, for sale, services, community, and events
Computer Repair Tryon North Carolina
Graveguard Set Bloodborne
Craigslistdaytona
Brenna Percy Reddit
Hope Swinimer Net Worth
Driving Directions To Atlanta
Calmspirits Clapper
Elizabethtown Mesothelioma Legal Question
Tcgplayer Store
Slope Tyrones Unblocked Games
Eva Mastromatteo Erie Pa
Ibukunore
Mail.zsthost Change Password
12 Top-Rated Things to Do in Muskegon, MI
Jail View Sumter
Wiseloan Login
Catchvideo Chrome Extension
Expression Home XP-452 | Grand public | Imprimantes jet d'encre | Imprimantes | Produits | Epson France
How to Use Craigslist (with Pictures) - wikiHow
Pokemmo Level Caps
Cheap Motorcycles Craigslist
CARLY Thank You Notes
Timothy Kremchek Net Worth
Linabelfiore Of
Reborn Rich Ep 12 Eng Sub
Hisense Ht5021Kp Manual
Cbs Fantasy Mlb
ENDOCRINOLOGY-PSR in Lewes, DE for Beebe Healthcare
Nearest Ups Office To Me
South Bend Tribune Online
F9 2385
Clima De 10 Días Para 60120
Craigslist - Pets for Sale or Adoption in Hawley, PA
Dinar Detectives Cracking the Code of the Iraqi Dinar Market
Tripadvisor Vancouver Restaurants
ESA Science & Technology - The remarkable Red Rectangle: A stairway to heaven? [heic0408]
[Teen Titans] Starfire In Heat - Chapter 1 - Umbrelloid - Teen Titans
Embry Riddle Prescott Academic Calendar
Timothy Warren Cobb Obituary
Youravon Com Mi Cuenta
Hdmovie2 Sbs
Washington Craigslist Housing
Spongebob Meme Pic
Southern Blotting: Principle, Steps, Applications | Microbe Online
ats: MODIFIED PETERBILT 389 [1.31.X] v update auf 1.48 Trucks Mod für American Truck Simulator
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 5310

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.