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

    pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link)

    General pfSense Questions
    5
    30
    3.0k
    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.
    • M
      mer
      last edited by

      Unless you have complete control over the entire data path from source to destination, high probability is the data will get fragmented somewhere along the way.
      Normally fragmentation isn't a big deal because they get reassmbled at some point.
      Unless the traffic is UDP. UDP is "send and don't care if it actually gets there".
      A lot of video traffic is UDP.
      What happens if you lose a packet of video? Glitches, blocky, bad video.
      Most video codecs are "key frame periodically, incremental frames (deltas) in between". Key frame is basically a full frame of the video, so a large packet, the deltas are small. Key frames typically cause the receiver to synch.
      Big packets are more likely to be fragmented, fragments can be lost causing the whole packet to get lost, causing a user to see "bad video quality"

      TCP automatically retransmits lost packets which may result in a loss of usable bandwidth simply because packets are being retransmitted.

      If you look back at the timeframe of "birth of the Internet", most businesses had less than 100M internally, T1 to the external world, most home users were on a dial up serial modem at 115200bps. Your "worst" speeds from Comcast are better than what businesses used to have.

      I think the WAN port should negotiate with the upstream for things like MTU as others have said and "should not cause problems, but there may be cases where it does".

      JKnottJ 2 Replies Last reply Reply Quote 0
      • JKnottJ
        JKnott @mer
        last edited by

        @mer said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

        Unless you have complete control over the entire data path from source to destination, high probability is the data will get fragmented somewhere along the way.
        Normally fragmentation isn't a big deal because they get reassmbled at some point.
        Unless the traffic is UDP. UDP is "send and don't care if it actually gets there".
        A lot of video traffic is UDP.

        As I mentioned, the world is moving to PMTUD, not fragmentation. With IPv6, it's mandatory and is now used for much of IPv4. This means the sending host will be told the MTU is too big and will have to retransmit. Even with fragmentation, the packet does get reassembled, whether UDP or not. This is not a new issue and IP has been able to handle it from the start. As I pointed out, at one time, dial up connections used 576, while much of the world was 1500 and token ring was a few K. It was the routers between networks that enabled this to work smoothly.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @mer
          last edited by

          @mer said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

          TCP automatically retransmits lost packets which may result in a loss of usable bandwidth simply because packets are being retransmitted.

          With UDP, it's up to the application to request retransmission. Often, it just accepts the loss. A loss packet in something like audio or video is less disruptive than the delay caused by retransmission. In some cases, forward error correction might be used, which means an occasional lost packet is irrelevant.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          M 1 Reply Last reply Reply Quote 0
          • M
            mer @JKnott
            last edited by

            @JKnott I don't completely disagree, but if a lost packet is a key frame of video, that is often pretty disruptive.
            I agree on PMTUD, but sometimes it takes a little while for every one to get on the same page.

            I also was agreeing that large packets/MTU shouldn't be an issue, but there may be cases it is.
            That's all. No more, no less.

            JKnottJ 1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @mer
              last edited by

              @mer said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

              I also was agreeing that large packets/MTU shouldn't be an issue, but there may be cases it is.
              That's all. No more, no less.

              Of course, there's nothing that says large frames have to be used. VoIP is an example, where small packets are used, to minimize latency. Even with 1500, the amount of time it would take to fill a frame would cause a noticeable delay.

              Bottom line, the OP can use 9000 MTU on his LAN if he wants. However, I'm curious as to how well WiFi works with it. I believe 802.11ac supports aggregation. I'm not sure about n.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              RobbieTTR 1 Reply Last reply Reply Quote 1
              • RobbieTTR
                RobbieTT @JKnott
                last edited by

                @JKnott
                I run 1508 MTU on my WAN, 1500 MTU on my maintenance LAN and 9k set on my main LAN and VLAN at 10 GbE.

                In this mixed environment I have 2 main switches, a couple of tertiary switches, 5 APs, numerous servers, clients and sundry networked items. Everything purrs along as it should.

                ☕️

                JKnottJ 1 Reply Last reply Reply Quote 0
                • JKnottJ
                  JKnott @RobbieTT
                  last edited by

                  @RobbieTT said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                  9k set on my main LAN and VLAN at 10 GbE.

                  Have you tried Wifi on it? I'm curious if it will handle the larger frames. I believe you'll need to run 802.11ac or later to get the aggregation. I can't do that here, as my notebook computer is 12 years old and only runs 802.11n on 2.4 GHz.

                  PfSense running on Qotom mini PC
                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                  UniFi AC-Lite access point

                  I haven't lost my mind. It's around here...somewhere...

                  RobbieTTR 1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    But upstream on a WAN where you have no idea what is in the path I would always use 1500 unless whoever does control that hop has explicitly told you to use something larger. Yes, path MTU discovery should catch it but when it doesn't it sucks! 😉

                    RobbieTTR 1 Reply Last reply Reply Quote 0
                    • RobbieTTR
                      RobbieTT @JKnott
                      last edited by

                      @JKnott said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                      Have you tried Wifi on it? I'm curious if it will handle the larger frames. I believe you'll need to run 802.11ac or later to get the aggregation. I can't do that here, as my notebook computer is 12 years old and only runs 802.11n on 2.4 GHz.

                      The 10 GbE / 9k MTU has access points on it but wifi is not ethernet - encapsulated packets, additional headers, inherently simplex, pause frames, beacons, air time et al - so nothing native is carried across unadulterated on the RF segment of a link.

                      JKnottJ 1 Reply Last reply Reply Quote 0
                      • RobbieTTR
                        RobbieTT @stephenw10
                        last edited by

                        @stephenw10 said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                        But upstream on a WAN where you have no idea what is in the path I would always use 1500 unless whoever does control that hop has explicitly told you to use something larger. Yes, path MTU discovery should catch it but when it doesn't it sucks! 😉

                        Does anyone even try to run jumbo frames over a WAN - in almost all scenarios you would not make it past the first hop?

                        JKnottJ 1 Reply Last reply Reply Quote 1
                        • JKnottJ
                          JKnott @RobbieTT
                          last edited by

                          @RobbieTT said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                          so nothing native is carried across unadulterated on the RF segment of a link.

                          What happens if you just connect your own AP to the LAN side?

                          PfSense running on Qotom mini PC
                          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                          UniFi AC-Lite access point

                          I haven't lost my mind. It's around here...somewhere...

                          RobbieTTR 1 Reply Last reply Reply Quote 0
                          • JKnottJ
                            JKnott @RobbieTT
                            last edited by

                            @RobbieTT said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                            Does anyone even try to run jumbo frames over a WAN - in almost all scenarios you would not make it past the first hop?

                            If the other side of the router is just 1500, then you'd experience fragmentation or ICMP too big messages. Either way, it should still work. This is part of the function of every router.

                            PfSense running on Qotom mini PC
                            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                            UniFi AC-Lite access point

                            I haven't lost my mind. It's around here...somewhere...

                            1 Reply Last reply Reply Quote 0
                            • RobbieTTR
                              RobbieTT @JKnott
                              last edited by

                              @JKnott said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                              What happens if you just connect your own AP to the LAN side?

                              I do have my own APs on the LAN (& a VLAN) but wifi is still wifi. Even protocols can change in function over a wifi segment - for example, UDP packets are subject to ACKs over a wifi segment in a similar fashion to that of TCP over a wired segment.

                              ☕️

                              JKnottJ 1 Reply Last reply Reply Quote 0
                              • JKnottJ
                                JKnott @RobbieTT
                                last edited by

                                @RobbieTT

                                You seem to be missing my point. Can you ping various sizes beyond 1500, to see if they're successfully passed, without fragmentation or PMTUD? You may need to run Wireshark to see what's happening. I just want to know if WiFi is usable with jumbo frames. WiFi, without aggregation, has a larger MTU than 1500. I think it's around 2300 or so. What happens if you try to send a large file through WiFi?

                                I know the operation of WiFi is different than Ethernet, but it is effectively a bridge with all the dirty details hidden.

                                PfSense running on Qotom mini PC
                                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                UniFi AC-Lite access point

                                I haven't lost my mind. It's around here...somewhere...

                                RobbieTTR 1 Reply Last reply Reply Quote 0
                                • RobbieTTR
                                  RobbieTT @JKnott
                                  last edited by RobbieTT

                                  @JKnott
                                  If you are looking for the book figure* then the MTU you are seeking is 2312 bytes, so yes, it can easily be seen as jumbo frames as it is above the normal 1500 (well 1514) byte frame. But those 2312 bytes are a bit of a misnomer and most wifi boffins would not recognise it.

                                  It is more of an air-time space for transmission to take place, inclusive of all the additional overheads. Some may even argue that 2312 MTU should be cut in half due to the simplex nature of wifi; but as we are really talking about an airtime opportunity I think that is poor analogy.

                                  WiFi is just RF and RF is fun!

                                  ☕️

                                  *Often quoted as such but not actually the case in modern wifi but who cares

                                  JKnottJ 1 Reply Last reply Reply Quote 0
                                  • JKnottJ
                                    JKnott @RobbieTT
                                    last edited by

                                    @RobbieTT said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                                    WiFi is just RF and RF is fun!

                                    I know. I just borrowed this book from the library. It's the first physical book I've read in years, as they didn't have it in an ebook.

                                    I have also done some work with cell phone sites and short haul microwave and got my amateur radio licence almost 52 years ago.

                                    PfSense running on Qotom mini PC
                                    i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                    UniFi AC-Lite access point

                                    I haven't lost my mind. It's around here...somewhere...

                                    RobbieTTR 1 Reply Last reply Reply Quote 1
                                    • RobbieTTR
                                      RobbieTT @JKnott
                                      last edited by

                                      @JKnott said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                                      I have also done some work with cell phone sites and short haul microwave and got my amateur radio licence almost 52 years ago.

                                      5G seemed to go with simplicity and defined requirements; albeit they had to be steered in that direction in the early days. I don't think you could pay them now to do some of the stuff they originally had in mind. It's all about stability as that = printing money.

                                      My background was more on the exploiting, spoofing, denying, intercepting or generally being on the aggressive side of RF. I did also have to sit on the UK board that allocates and manages the RF spectrum. That was the 'not fun' part of RF.

                                      Regarding your thoughts on testing beyond 1500 MTU on a wifi segment. It's harder than you may think with commodity hardware as most have barriers in place to stop you from doing so. Many wifi interfaces deny the opportunity to fettle the interface at all. Some look like you can tweak them but under the hood nothing changes, either due to the OS or the driver/firmware/hardware itself.

                                      There are exceptions of course - macOS lets you control and pass MTU changes to the wifi interface but in more recent version this became limited to a range of 1280 to 1436 MTU. The point to note here is that it will not allow anywhere near the minimum or maximum MTU unless 'auto' is in place (which caps the interface at 1514 MTU). Ironically the only commodity hardware that used to use a wifi MTU above 1514 was also Apple in the guise of AirPort Time Capsules and Express units.

                                      Meanwhile we are seeing a drift to a new-normal MTU of 1280 (1294), so even the 1500 (1514) MTU will start to look relatively capacious.

                                      ☕️

                                      JKnottJ 1 Reply Last reply Reply Quote 0
                                      • JKnottJ
                                        JKnott @RobbieTT
                                        last edited by

                                        @RobbieTT said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                                        Meanwhile we are seeing a drift to a new-normal MTU of 1280 (1294),

                                        Where is that? It's definitely a step in the wrong direction.

                                        PfSense running on Qotom mini PC
                                        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                        UniFi AC-Lite access point

                                        I haven't lost my mind. It's around here...somewhere...

                                        RobbieTTR 1 Reply Last reply Reply Quote 0
                                        • RobbieTTR
                                          RobbieTT @JKnott
                                          last edited by RobbieTT

                                          @JKnott said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                                          Where is that? It's definitely a step in the wrong direction.

                                          We are partially there already due to Google's interpretation of TLS 1.3, HTTPS/3 and QUIC. YouTube for example:

                                           2023-10-28 at 15.47.30.png

                                          The joys of GAFAM.

                                          ☕️

                                          JKnottJ 1 Reply Last reply Reply Quote 0
                                          • JKnottJ
                                            JKnott @RobbieTT
                                            last edited by

                                            @RobbieTT said in pfSense as router: question about MTU to be set on a 10Gbps interface (WAN interface to 10Gbps ISP link):

                                            We are partially there already due to Google's interpretation of TLS 1.3, HTTPS/3 and QUIC. YouTube for example:

                                            That's not the same as layer 2 technology. VoIP uses even smaller packets. I don't know enough about QUIC etc. to comment.

                                            PfSense running on Qotom mini PC
                                            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                            UniFi AC-Lite access point

                                            I haven't lost my mind. It's around here...somewhere...

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