SG-2440 Upload Speed Limited After a Few Minuites
-
Ok, so looks to be linked without flow control though igb should be enabled for it if the other side supports it.
Are you able to see how the device connected directly links to the modem?Check Firewall > Traffic Shaper, 'By Queue' and 'Limiters' tabs. Both should be empty if there is no traffic shaping in play.
Steve
-
The modem interface is pretty limited, unfortunately. It does say the link is 1000Mbps though.
Under Queue and Limiters I have nothing listed. Is it possible that one is active but not listed somehow?
-
No, if nothing is shown there then there is shaping in pfSense.
The flow control status on the link from the modem to a laptop (or however you tested) is what I'd check.
Other than that you might spoofing the MAC address in case they are shaping you upstream for some reason.
Steve
-
I did some more testing...
-
Changed WAN MAC address on pfSense with no effect on upload issue.
-
Connected laptop again to check and it's still getting 20Mbps upload. I don't see any connection issues on the laptop either. It's connected to the modem at 1Gbps full-duplex. I don't see any indication that flow control is enabled.
-
I disabled pfBlockerNG just to make sure that wasn't the problem. It wasn't... still no effect on the upload issue.
Any other ideas to try out or things to investigate?
-
-
Hmm, nothing immediately springs to mind. I suppose Comcast can tell you nothing useful?
You could try applying some shaping so the upload never goes above, say, 18Mbps. See if that then stops it getting clamped.
Steve
-
I don't think I can go to Comcast unless I can prove it isn't my pfSense box since the laptop plugged in works.
I just added a limiter at 5Mbps to verify it worked and then I did one at 15Mbps and it was still limited at 9.5Mbps.
Hopefully, I can think of something else to try. This seems really strange... It's almost as if it's limited at 10Mbps somehow.
-
@steve1515 I suspect a bad cable, though you've already swapped cables once. The NICs might say 1000Mbps, but actually operate at only 10Mbps.
-
Yeah, certainly worth trying a different cable. I would also try assigning WAN to a different port.
-
@steve1515
The cable you used to connect the PC to the cable modem; try using that specific one on the WAN of SG2440. -
I did some more testing today. Here's what I tried.
-
I tried connecting the pfSense WAN with the cable that worked with the laptop. I even tried it plugged into a different port in my modem. (The modem has a 4-port switch built in.) No change. I was still getting 9.5Mbps.
-
I tried plugging in the cable that I was using with pfSense into the laptop... Basically plugged into the same port on the modem and same cable... Only change was I used the laptop instead of pfSense. This worked well and I had the full 20Mbps upload for repeated tests I did for at least 10 minutes. I think this eliminates any cabling problems.
-
I next tried using another port (OPT2) as the WAN port. (All I did was swap the two in Interfaces --> Assignments and reboot after switching the cable over to OPT2.) This has been giving me consistent 20Mpbs upload for over 20 minutes. This kind of seems like a bad NIC in the pfSense, but only when uploading...
I'll keep monitoring the speed just to see what happens. Part of me thinks it will break again right as I click to submit this post.
Has anyone ever had a bad NIC like this or know what could cause it to happen? Are there any software tools that could confirm a bad NIC?
-
-
Spoke to soon...
It's back at 9Mbps upload.
I guess it's not the NIC.
-
I'm scratching my head here. Maybe try a different laptop, or a different NIC (e.g., USB-based) on the same laptop? I have (rarely) seen NICs that don't work well with each other, but work OK with other NICs.
-
Yes, it's hard to know what would cause that sort of dynamic throughput. The only time I can recall seeing anything like that is with providers that specify an allowed throughput and police it rather than set it. Then they clamp you down to some much lower level if you go over it.
Try putting a switch between the modem and 2440 just to rule out some link negotiation issue if you can.
Steve
-
Some more testing results...
Note: I've put the WAN cable back into the WAN port instead of the OPT2 port.
-
I've now tried with a different laptop (this one has Realtek NIC vs the other laptop that had an Intel NIC... after about 2hrs, the laptop still shows 20Mbps upload every time. Same results as before.
-
I've put a switch in between the modem and the pfSense WAN. This seemed ok for about 1hr, but then it went back to 9Mbps upload.
-
Now that there's a switch in between the devices, I thought I'd try rebooting the pfSense and see what happens. My thoughts were that before when rebooting either device (modem or pfSense), the link gets dropped and either device could be doing some reset in software, etc. This time, with the switch, the link would stay up on the non-rebooted device. So, after a reboot of the pfSense, I'm back up to 20Mbps. (It's only been about 30 minutes of course, so this might not last.)
-
I've also been doing some iperf tests from the command line of my pfsense box. I'm noticing that when I'm getting full bandwidth, the 'Retr' (Retransmitted TCP packets) column indicates zero 99% of the time. When I'm being limited to 9Mbps, I get many more occasional re-transmits in the iperf test. These are usually like 1-5, so it's not much, but it seems to come up in almost all tests when my upload is limited. When the upload is back up at 20Mbps, I'm constantly able to get all zeros except for the occasional test. I'm not sure if that's an indicator of anything though???
So, I'm very much scratching my head on this one also...
Anyone have any other ideas? -
-
Quick addition to the above post...
Item #3... As expected, it eventually went back to 9Mbps. This time I rebooted the modem. An interesting result was found! Because the pfSense never lost the link (because of the switch), it never triggered any kind of reset. As soon as the modem came back up, I was still limited to 9Mbps.
This kind of leads me to believe there is something going on with pfSense where it is limiting upload for some reason somewhere. But where???
-
@stephenw10 is there any benefit to having @steve1515 post hist config? Anything enabled should be in there, no?
Filter rules with rate limiting?
Some other package rate limiting? -
Have you tried just taking a backup of your config and then resetting the pfsense router and run a very vanilla install to see if your upload speed changes?
-
@steve1515 said in SG-2440 Upload Speed Limited After a Few Minuites:
I've also been doing some iperf tests from the command line of my pfsense box. I'm noticing that when I'm getting full bandwidth, the 'Retr' (Retransmitted TCP packets) column indicates zero 99% of the time. When I'm being limited to 9Mbps, I get many more occasional re-transmits in the iperf test. These are usually like 1-5, so it's not much, but it seems to come up in almost all tests when my upload is limited. When the upload is back up at 20Mbps, I'm constantly able to get all zeros except for the occasional test. I'm not sure if that's an indicator of anything though??? ... I've put a switch in between the modem and the pfSense WAN. This seemed ok for about 1hr, but then it went back to 9Mbps upload.
This really sounds like physical ethernet errors are occurring. Has the 2440 been used in conditions where it might have been exposed to high humidity, noxious gases, excess vibration, overheating, overvoltage, ESD, etc? Have you tried swapping out the power supply? Have you tried testing speed between two ports on the 2440 configured as LANs?
-
@mer and @gabacho4 Checking out the config is a good point. I'll look through it and see if I notice anything related to speed limiting. I haven't yet tried reloading the config. I was actually thinking of re-building from scratch once the next release comes out in January.
@bPsdTZpW The box is about 4 years old and connected to a UPS with line conditioning. I do have temp/humidity monitoring and in the last year, the max temp was 86 degF and max humidity was 51%.
I think it's a good thought about the power supply, but why would it never have an issue with 200Mbps downloading? The download speed is never limited.
I haven't swapped the LAN port because I've also been doing iperf tests from the firewall itself and that traffic doesn't touch the LAN port. The iperf tests have followed the issue as seen from the LAN devices though, so I feel its something else.
Note: I probably won't have much time the next couple of days to do any more testing, but will try as I can. I'm interested to know what the source of this issue is... that is if we can figure it out.
-
I think it's a good thought about the power supply, but why would it never have an issue with 200Mbps downloading? The download speed is never limited.
Yeah, it doesn't make much sense, but sometimes hardware problems don't. I can point to several instances over my time as a device-driver developer for new hardware....
I haven't swapped the LAN port because I've also been doing iperf tests from the firewall itself and that traffic doesn't touch the LAN port. The iperf tests have followed the issue as seen from the LAN devices though, so I feel its something else.
Yeah, I missed that part, so I agree that the LAN ports don't seem to be involved.