Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - bb-mitch

#16
We're going to prep a box with the latest 16.7 and see if we have different results...

If there are any MLPPP guru's out there I'd be willing to pay for help with this issue.

As succintly as possible (this is pf - will be converting to opn now but want to fix in the process - not rebuild the same problem).

- iperf to WAN = PERFECT
- FTP from box = single link speed down / bonded speed up
- FTP from behind = single link speed down / packet loss & SLOW up

I have suggested configs for a cisco 871 and an RB750.

Thanks,

M
#17
We are in the process of converting a lot of our routing over to opnsense from pfsense...

And I think we may have another candidate. But I'm trying to avoid making my life harder ;-)

We have an MLPPP install which is causing us grief. The safe choice was to set up MLPPP on the hardware which had pfsense, but now we have a rather bizarre issue - maybe changing to opnsense will correct it if the issue results from the config?

The MLPPP setup "works", but the recommendations from the ISP were to have unique per path logins. There are config notes for both an RB750, and a Cisco 871k9 - but not for pfsense or opnsense (yet) - we've used these type of setups before and have not previously noticed this issue - but I can't say for sure it hasn't happened.

The issue seems to be:

  • traffic to the router (iperf) works at full MLPPP bonded speed - no loss or issues
  • traffic using FTP (on the router to a remote server) seems to load balance the upstream, but the downstream only seems to use a single connection
  • traffic from behind the pf sense nat (also FTP) seems to download a little slower, but the upload is horrible (10-50%) of the upload and variable when the FTP is done on the router

The Cisco style config involves OSPF config, etc. the RB750 config seems more akin to what pf / opn expects

Here is the thread - https://forum.pfsense.org/index.php?topic=121781.0

Does anyone think this issue would be addressed by a change?

Can we prove that by hacking the pf config?

Thank you!!

Mitch
#18
16.7 Legacy Series / PPTP / MPD performance issue
October 13, 2016, 12:43:10 AM
First... I know PPTP is not secure - believe me we aren't counting on this for security - only bonding public traffic. 8)

We are close IF this is possible, so bear with me - here are all the details.

Background / goal: We need to create a bonding solution to improve performance and bond multiple similar links (or potentially dissimilar links) into a single higher speed link. MLPPP might be ideal except that the connections are over the Internet / not bridged Ethernet so as far as I understand that's not possible. We settled on using the MPD plugin on a head end box, and configuring it to accept the PPTP traffic, bundle it, and NAT the traffic to the internet.

We tried this before but when it didn't work we thought our understanding of the traffic splitting of minor differences in latency were to blame – the new system has two connections as close to the same performance as we can manage and practically maintain.  If we knew what we had to change we could though.

From my understanding, there are a few options...
PPTP / MPD (which we are trying)
MLPPP which is PPPoE and requires bridged connectivity (which we can't always have)
OpenVPN (which is another idea, but it's user space and probably lower performance than the MPD from what I read?

If you have another suggestion, based on open tool chains we're willing to look. opnsense is something we're comfortable with so we're looking to leverage knowledge already at hand.

The good news is, it works – we can see the multiple connections – the 2 WAN connections on the remote end seem to be used similarly (balancing). The bad news is that the performance isn't great. It doesn't make anything seem better – but worse... And I'm not sure why or where the limit is – in our config or in our understanding. Nothing we can see in terms of bandwidth, cpu, etc. seems to be saturated on ither end.

Network / Client side: The two connections are virtually identical VDSL services with 50Mb/s downstream and 10Mb/s upstream.

Hardware / Client side:
AMD G-T40E Processor (2 cores) / 4GB RAM
OPNsense 16.7.5-i386
FreeBSD 10.3-RELEASE-p9
OpenSSL 1.0.2j 26 Sep 2016

Network / Server side: The server side is connected by Gb and is capable of bursting to the full speed.

Hardware for the MPD Server:
AMD GX-412TC SOC (4 cores) / 4GB RAM
OPNsense 16.7.5-amd64
FreeBSD 10.3-RELEASE-p9
OpenSSL 1.0.2j 26 Sep 2016

Setup:

On the client, we created a PPTP interface and used the two existing WAN's as link interfaces. We put the server gateway IP in both interface gateways and left the "Local IP"s blank. Then we added a lan rule to route a PC out over this connection. When it browses the internet, the public IP of the MPD server is seen as it's IP.

On the server, we:
-   Installed the MPD/PPTP plugin, enabled the PPTP server (VPN->PPTP->Settings) and set
-   No. of PPTP users (16)
-   Server address (Server WAN IP)
-   Remote address range (private IP for tunnel start range)
-   PPTP dns servers
-   We added a couple users – we did not assign those users to specific IP addresses.
-   Then we started the PPTP service.

On the firewall rules we:
-   Allow all GRE traffic to WAN
-   Allow all TCP:1723 traffic to the WAN interface

The results:

Network / Performance: Speedtest.net on both links normally shows 50Mb/s or more down, and 10Mb/s or more up. Each link is about 12-15ms from the MPD server. The server is 1ms to 4ms from the speedtest.net test servers.

CPU idle percentage which is normally 85-90% idle does not change during test. Top does not show any noticeable CPU use during the speed tests.

I ran iostat during tests – the only noticeable change is a snall increase in interrupt time % (1 or 2%!)

The results are horrible though! We see a combined :
Download speed of 12 to 20Mb
Upload of 6-9Mb.


So why is it slow? Shouldn't it be faster?

Using traffic graphs we can see the traffic is split into two streams, and recombined. But it almost feels like we are tunneling over a TCP socket waiting for acks for every packet... is that what's happening?

If so, how do we fix it?

I'm sure we must have missed something?

Thanks in advance!!
#19
Thanks Andreas. Will give it a shot ASAP and follow up with results.
Cheers!

M
#20
Thanks Ad - we will take a look at that... I was looking on the mirrors and only see 16.1 - is there a different release method for the 16.7? I'll look more at it soon! I think the scrub is the issue - will look forward to trying those new settings out when I have a few to do the switch.

Thanks for the help :-) It's great to see some of the enhancements this new project is bringing.

Cheers,

Mitch
#21
pfSense seems to have a similar / related issue: Bug #4723

What I am trying to do is capture UDP packets on the LAN - those packets should be reaching a remote service (albeit fragmented) as they are about 2000 bytes each. This is not my app or design - this is related to network monitoring and a function of network device hardware / firmware and beyond my control. So unfortunately "make the packets smaller" isn't an option ;-)

Ideally I want the packets passed out on the WAN, but I don't think they are arriving at their destination so I started working backwards.

To diagnose the issue - I tried doing a packet capture on the LAN interface. There is an allow rule, allowing the traffic and routing it to a gateway group. The packet capture reports that a packet was received, and reports a size around 1650 bytes, but when I download the packet capture it looks like only the first fragment was captured.

What I see in my capture is a fragmented IP packet (length 1514).

I never see the second fragment so I can't reassemble the packets in the capture.

I assume that IF the traffic isn't being blocked, that the outbound traffic is also likely missing the second fragment. That means of course that the end service never sees the traffic in a way that it can assemble / parse the data.

I've tried turning off scrubbing (System / Settings / Firewall/NAT / Disable Firewall Scrub). I've also tried checking "Clear invalid DF bits instead of dropping the packets" - that didn't help either. The firewall rules show TCP flag options - but no UDP flag options that might change the handling of UDP fragments...

Any ideas appreciated!

Thank you in advance!