Project

General

Profile

Actions

Bug #9024

closed
DT

Ping packet loss under load when using limiters

Bug #9024: Ping packet loss under load when using limiters

Added by Dave taht almost 8 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Traffic Shaper (Limiters)
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4
Affected Architecture:

Description

I think https://forum.netgate.com/topic/112527/playing-with-fq_codel-in-2-4/595 we have confirmed an issue still exists with this.

It's a very long thread.

bug looks similar but not identical to https://redmine.pfsense.org/issues/4326

Updated by Anonymous almost 8 years ago Actions #1

I saw this when only TCP/UDP was being put into the limiter. As soon as I changed it to "all traffic" the loss went away.

DT Updated by Dave taht almost 8 years ago Actions #2

ok, so we just have a configuration guideline then: "Always put all traffic through the limiter". Do you have a conf that works for https://forum.netgate.com/topic/112527/playing-with-fq_codel-in-2-4/570 ?

JC Updated by Josh Chilcott almost 8 years ago Actions #3

The conf attached to the example https://forum.netgate.com/topic/112527/playing-with-fq_codel-in-2-4/570 shows that the match rules include all protocols for IPv4. The issue presents itself when match out limiter rules are used on interfaces creating NAT states (ex: WAN). Loading the out limiter to capacity, using a match rule on WAN and testing for roughly 60 seconds which includes ramp up and ramp down, showed an 82% loss of successful pings to hosts on the WAN side. During heavy saturation of the limiter almost all ping is lost. Disabling outgoing NAT remedies the situation. Creating in/out limiters on just the LAN side remedies the situation - this appears to be the most performant workaround for single WAN single LAN setup where you have traffic originating on the WAN and LAN side.

SB Updated by Steven Brown almost 8 years ago Actions #4

I can confirm this bug. My testing seemed to show that the behaviour was the same no matter which scheduler I assigned to the limiter when the limiter was applied using floating rules. Using a LAN interface firewall rule no longer dropped the pings when fq_codel was assigned.

I had the rules assigned for "all traffic" so this did not fix the issue for me.

JC Updated by Josh Chilcott almost 8 years ago Actions #5

Using limiters on an interface, with outgoing NAT enabled, causes all ICMP echo reply packets to drop, coming back into WAN, when the limiter is loaded with flows. I can reproduce this issue with the following configuration:

  • limiters created (any scheduler). One limiter for out and one limiter for in.
  • create a single child queue for the out limiter and one for the in limiter.
  • floating match IPv4 any rule on WAN Out, using the out limiter child queue for in and in limiter child queue for out.
  • floating match IPV4 any rule on WAN In, using the in limiter child queue for in and out limiter child queue for out.
  • load the limiter with traffic. (Most recently I've been using a netperf netserver v2.6.0 on the WAN side and a Flent client on the LAN side running RRUL test)
  • start a constant ping from the client to the server during the RRUL test.

Both the flent.gz output and the constant ping will show a high rate of ICMP packets getting dropped. If a separate floating match rule is created for ICMP, then packets will not be dropped. Pushing less pps through pfSense seems to net fewer dropped echo replies.

DT Updated by Dave taht almost 8 years ago Actions #6

I would try to update this bug to make it more specific to limiters but I don't seem to hav privs

PH Updated by Patrik Hildingsson over 7 years ago Actions #7

I just wanted to chime in that I have the very same exact behaviour on my setup.
Is there any progress on the issue?

JP Updated by Jim Pingle about 7 years ago Actions #8

  • Category set to Traffic Shaper (ALTQ)

JP Updated by Jim Pingle about 7 years ago Actions #9

  • Category changed from Traffic Shaper (ALTQ) to Traffic Shaper (Limiters)

JB Updated by Joshua Babb almost 6 years ago Actions #10

I as well can replicate this issue, I have outbound NAT setup and tried to setup a traffic limiter + fq_codel and see major packet loss on heavy load for download and outbound traffic has atleast 50% packeloss.

JB Updated by Joshua Babb almost 6 years ago Actions #11

Well I turned off the Open VPN client and it worked. The traffic shaper is working normally. For some reason Open VPN is causing an issue.

TP Updated by Thomas Pilgaard almost 6 years ago Actions #12

Problem also seems to be related to download limiter only, as traceroute is displayed correctly if fq-codel is applied on upstream limiter only on WAN. Tested on 2.5.0.a.20200919.0050.

→L Updated by → luckman212 over 4 years ago Actions #13

I believe I'm hitting this bug now on 22.05 snaps. Is there any workaround or status update on this one? Tried following the simple setup instructions from https://docs.netgate.com/pfsense/en/latest/recipes/codel-limiters.html but all that happens is when running the bufferbloat test, packet loss spikes to 10-20% and my WAN1 gets marked as "Offline" (1Gbit FIOS connection)

more discussion: https://forum.netgate.com/topic/171158/qos-traffic-shaping-limiters-fq_codel-on-22-0x

MM Updated by Marcos M over 4 years ago Actions #14

MM Updated by Marcos M over 4 years ago Actions #15

This seems to be resolved with 22.05. Testing with iperf3 client behind the firewall, and an iperf3 server a couple of hops from WAN. Running iperf3 -t 10 -c 198.51.100.7 (and reversed) introduced latency, but no packets were dropped (different pipe queue lengths/bw tested):

--- 198.51.100.7 ping statistics ---
305 packets transmitted, 305 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.359/31.768/110.134/39.079 ms

MM Updated by Marcos M over 4 years ago Actions #16

  • Subject changed from nat + a limiter + fq_codel dropping near all ping traffic under load to Ping packet loss under load when using limiters
  • Status changed from New to Feedback

JP Updated by Jim Pingle over 3 years ago Actions #17

  • Status changed from Feedback to Closed
  • Start date deleted (10/07/2018)
Actions

Also available in: Atom