Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    VLAN to VLAN slower than expected

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    14 Posts 5 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AndyRHA
      AndyRH @mouseskowitz
      last edited by

      @mouseskowitz The description suggests you should get about 1Gb. Are there any packages running that might slow it down? What is the CPU usage when you are testing?

      o||||o
      7100-1u

      1 Reply Last reply Reply Quote 0
      • J
        Jarhead @mouseskowitz
        last edited by

        @mouseskowitz said in VLAN to VLAN slower than expected:

        @Jarhead yes I'm testing over 1g links, and I would expect to get 1g. However, I'm only getting half that.

        Gotcha, this line:

        Links on Switch C and pfSense say they are connected at 10 Gbe, but the traffic flow doesn't seem to back that up. Is there any possibility that the initial 1 Gbe bandwidth is being respected across all the connections? Or is something else possibly the issue?

        Made it seem like you expected 10g because obviously the 1g would be respected across all links.

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @mouseskowitz
          last edited by johnpoz

          @mouseskowitz So we fully understand your setup... Could you draw out your connections?

          When you say 2ge aggregate - you mean you have 2x1ge lacp connection?

          drawing.jpg

          So both vlans hairpin over the 10ge link to pfsense, or is there an additional lagg between switch C and pfsense that carries vlan B while the 10ge carries vlan A?

          When you say aggregate, I take it your talking 2x1ge connection using lacp? But I am not really clear how many you have, and specific where. Your not meaning they are 2.5ge switch ports? I take it with the term aggregate that you have some sort of port channel, or lagg or lacp setup.. And these switch on both sides support whatever method your using. And your not setup in any sort of load sharing setup across the multiple links?

          Does switch B have a 10ge link to switch C, or is this also a lagg? Does switch C only have the 1 10ge to pfsense where your vlans hairpin, or does it have also a 2x1 that carries the vlan B and the 10ge carries vlan A?

          edit: also what exactly is pfsense running on? Its not VM is it?

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by A Former User

            @mouseskowitz

            When testing with iperf within the same VLAN, you could expect something between 930-970 Mbps. However you are doing it between 2 VLANs so it is going to be slower because routing is involved. How much slower? Well, it depends on your firewall rules and the processing power of your server. The chain of devices is also quite long and the same data flows through Switch C twice. I would run some tests on shorter device chains to understand that better.

            1 Reply Last reply Reply Quote 0
            • M
              mouseskowitz
              last edited by

              @johnpoz your diagram was very close. pfSense is running on a dedicated server with and Intel Xeon D-1521 with 8GB of RAM.
              Screenshot from 2024-02-17 11-55-26.png

              1 Reply Last reply Reply Quote 0
              • M
                mouseskowitz
                last edited by

                I've been playing around with iperf3 all afternoon and have found some very strange behavior within the Unifi switches. If I have two servers connected to the 10G switch using the native VLAN 1 network, I can only get 1G speeds. If I simply switch both of them to a different VLAN, I can get 10G speeds. So, I'm thinking it might be an issue in the switch not in pfSense. We'll see what I can find out over in the Unifi forums.

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @mouseskowitz
                  last edited by johnpoz

                  @mouseskowitz yeah with even hairpinning on that 10ge connection I would expect you could see 900ish for sure..

                  Your saying if you have 2 devices connect at 10ge to the switch in vlan 1 (native default) they can't get 10ge? pfsense wouldn't even be part of that conversation..

                  Do you maybe have rate limiting set on the switch?

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mouseskowitz @johnpoz
                    last edited by

                    @johnpoz From what I can find my Unifi 16 XG is not supposed to be able to rate limit per VLAN, but that's what it feels like it's doing. I can get 10G speeds on VLAN10 and VLAN40, but only 1G on VLAN1 with the only change being the IP range/VLAN the hardware is set to. I might try plugging in a second 10G connection between the switch and pfSense and just run VLAN10 and VLAN40 on it. But that'll have to wait for another day.

                    johnpozJ 1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @mouseskowitz
                      last edited by

                      @mouseskowitz are you running like their IDS on that vlan? Or have captive portal or guest mode on or something like that.. I have limited experience with their switches.. Not really a fan to be honest.

                      I use to have a USGP3 for a short time while I waited for my 4860, and if you had IDS turned on it could only do like 120Mbps, but with it off it handled my 500mbps internet connection fine.

                      So I wouldn't be surprised if they has some setting that dropped your performance into the dirt..

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mouseskowitz @johnpoz
                        last edited by

                        @johnpoz to use their IDS you need to be using one of their gateways. I think it's the same way with the captive portal. You can rate limit on the wifi, but that doesn't apply to wired connections.

                        I moved VLAN1 over to a dedicated 1G connection. I can get 1G speeds going from VLAN10 to VLAN1, but I only get half the speed going the other way. I can still only get 1/2 1G speeds going from VLAN10 to VLAN40.

                        1 Reply Last reply Reply Quote 0
                        • M
                          mouseskowitz
                          last edited by

                          It seems like this issue was hardware related. I swapped out the 10G card and the strange behavior has gone away.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.