Downloading limited to 6 mbps & causing connection issues

General questions.
Post Reply
User avatar
Rabbak
Posts: 33
Joined: March 30th, 2014, 3:09 am

Downloading limited to 6 mbps & causing connection issues

Post by Rabbak » September 15th, 2018, 1:33 pm

Whenever I download something the speed gets limited to 6.0 mbps and any other active connection gets dropped, also any new connection while still downloading does not go through, I tried reinstalling IPFire but did not help, tried QoS too.
This happens on LAN and WLAN.

Hardware I'm using is APU1 from PC Engines

BeBiMa
Posts: 2603
Joined: July 30th, 2011, 12:55 pm
Location: Mannheim

Re: Downloading limited to 6 mbps & causing connection issues

Post by BeBiMa » September 15th, 2018, 6:00 pm

Do you have these problems with internal transfers ( green/blue client1 <---> green/blue client2 ), too?
How is your WAN ( internet access ) configured?
Are there any errors in /var/log/messages?
How is the config of your ipfire ( FW, proxy, addons )?
Image
Unitymedia Cable Internet ( 32MBit )

User avatar
Rabbak
Posts: 33
Joined: March 30th, 2014, 3:09 am

Re: Downloading limited to 6 mbps & causing connection issues

Post by Rabbak » September 15th, 2018, 7:29 pm

I haven't tested internal transfers, how do I do that?
My WAN configuration gets IP through DHCP from a pfsense router, which is connected to my DSL modem, connecting directly to pfsense or the modem does not cause this issue.
No errors in /var/log/messages
I only have 4 firewall rules that Force clients to use IPFire's DNS proxy
Squid proxy disabled
only addon installed is hostapd

User avatar
Arne.F
Core Developer
Core Developer
Posts: 7874
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: Downloading limited to 6 mbps & causing connection issues

Post by Arne.F » Yesterday, 8:51 am

Post the output of
ifconfig -a
and
ethtool red0

(xxx out the mac and ip addresses for privacy reasons)
to check if there is a link problem.
Arne

Support the project on the IPFire whishlist!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

User avatar
Rabbak
Posts: 33
Joined: March 30th, 2014, 3:09 am

Re: Downloading limited to 6 mbps & causing connection issues

Post by Rabbak » Yesterday, 9:08 am

Code: Select all

blue0     Link encap:Ethernet  HWaddr xxx
          inet addr:192.168.4.1  Bcast:192.168.4.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7976687 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10196716 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:727135038 (693.4 Mb)  TX bytes:9598702209 (9154.0 Mb)

eth2      Link encap:Ethernet  HWaddr xxx
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

green0    Link encap:Ethernet  HWaddr xxx
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1135 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1253 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:224916 (219.6 Kb)  TX bytes:924546 (902.8 Kb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1006 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1006 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:302424 (295.3 Kb)  TX bytes:302424 (295.3 Kb)

red0      Link encap:Ethernet  HWaddr xxx
          inet addr:192.168.2.11  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:10167198 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7946876 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9404982555 (8969.2 Mb)  TX bytes:726786702 (693.1 Mb)

Code: Select all

Settings for red0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

User avatar
Deepcuts
Posts: 389
Joined: March 1st, 2016, 3:18 pm
Location: Romania

Re: Downloading limited to 6 mbps & causing connection issues

Post by Deepcuts » Yesterday, 10:39 am

To test local network performance, from IPFire go to pakfire and install iperf3.
Install iperf 3 on a client behind IPFire. For windows, get this: https://iperf.fr/iperf-download.php#windows

SSH to IPFire and run: iperf3 -s
From a client behind IPFire run: iperf3.exe -c IPFireInternalIP
Where IPFireInternalIP is of course the local IP of IPFire machine.

Should get something like:
iperf3.png
Last edited by Deepcuts on September 19th, 2018, 12:23 pm, edited 1 time in total.
Image
Image

User avatar
Rabbak
Posts: 33
Joined: March 30th, 2014, 3:09 am

Re: Downloading limited to 6 mbps & causing connection issues

Post by Rabbak » Yesterday, 10:59 am

Running iperf through WLAN (blue):
Capture.JPG
Running iperf through LAN (green):
Capture2.JPG

User avatar
Deepcuts
Posts: 389
Joined: March 1st, 2016, 3:18 pm
Location: Romania

Re: Downloading limited to 6 mbps & causing connection issues

Post by Deepcuts » Yesterday, 12:32 pm

Local seems OK for 100 Mbps.
Have you tried connecting IPFire directly to the DSL modem, bypassing PFSense?
Also, what is the reason for an extra IPFire router behind PFSense? Just curios.
If there is not specific reason for two routers, I would just ditch one of them. (hint: ditch PFSense)

Also, can you run iperf3 between PFSense and IPFire? Same way as you did before.
Might require opening port 5201, depending on your firewall configuration on PFSense.

Also, when you notice the slowdown, run top via SSH on IPFire and see if you get high CPU usage.
Image
Image

User avatar
Rabbak
Posts: 33
Joined: March 30th, 2014, 3:09 am

Re: Downloading limited to 6 mbps & causing connection issues

Post by Rabbak » Yesterday, 12:59 pm

I just tried connecting IPFire directly to modem and the issue stops

here's iperf between IPFIRE and pfSense:

Code: Select all

------------------------------------------------------------
Client connecting to 192.168.2.1, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.2.11 port 36190 connected with 192.168.2.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   314 MBytes   263 Mbits/sec
too slow for 1gbit

It's strange since not all downloads cause this, only certain URL's

I'm using pfSense because of DNS over TLS and blocklists through pfblockerng which IPFire does not provide.

User avatar
Deepcuts
Posts: 389
Joined: March 1st, 2016, 3:18 pm
Location: Romania

Re: Downloading limited to 6 mbps & causing connection issues

Post by Deepcuts » Yesterday, 3:41 pm

Have you tried with another ethernet cable between PFSense and IPFire?
A bit slow for gigabit, but maybe a limitation of IPFire's CPU. Never used one so I do not know.
As for blocklists check out https://forum.ipfire.org/viewtopic.php? ... st#p112777

This is the first time your are saying that ONLY some URLs have problems with slow speeds.
Would have been nice to specify this in the 1st topic.
The way you wrote, I understood that ALL connections are slow @6 Mbps
Image
Image

User avatar
Rabbak
Posts: 33
Joined: March 30th, 2014, 3:09 am

Re: Downloading limited to 6 mbps & causing connection issues

Post by Rabbak » Yesterday, 7:34 pm

I tried different cables, all same issue and same iperf results

sorry should have mentioned that only certain downloads caused this.

I also tried changing large receive offload and TCP segmentation offload settings but did not fix it.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests