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

    Setting MTU via DHCP

    Scheduled Pinned Locked Moved DHCP and DNS
    33 Posts 4 Posters 22.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      Yeah sure - that is not your typical local network was my point ;)

      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.7.2, 24.11

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

        @kiokoman said in Setting MTU via DHCP:

        AFAIK ,DHCP Server's only give what the client ask for. you can configure all the options you want but if the other side don't ask for it, it will not apply
        you can change MTU for windows with regedit

        I just tried it here. I specified the MTU as a 16 bit integer. It worked with Linux, but not Windows 10. I would consider this a bug in Windows (no surprise there), as a client is expected to use the LANs MTU without any manual configuration.

        Incidentally, I was reading an article, the other day, about a proposal to move the internet to jumbo frames, as things have changed so much since the dark ages when the Internet began. Back when I was at IBM, in the late '90s, we ran 4000 MTU, on the token ring LAN, IIRC. This change would just require increasing the MTU on the various equipment, which pretty much everything can handle these days. Path MTU discovery would take care of any differences along the way.

        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
        • kiokomanK
          kiokoman LAYER 8
          last edited by kiokoman

          yes, i was talking about windows client.
          windows only ask for this:

          1 Subnet Mask
          15 Domain Name
          3 Router
          6 Domain Name Server
          44 NetBIOS over TCP/IP Name Server
          46 NetBIOS over TCP/IP Node Type
          47 NetBIOS over TCP/IP Scope
          31 Perform Router Discovery
          33 Static Route
          121 Classless Static Route
          249 Classless Static Route (Microsoft)
          43 Vendor-Specific Information
          

          it's not a bug, it's how it is (shitty) designed

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

            @kiokoman said in Setting MTU via DHCP:

            it's not a bug, it's how it is (shitty) designed

            Well, we are talking about Windows. 😉

            Is there a setting that will allow Windows to ask for MTU?

            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
              last edited by

              One thing I've noticed is if the device has a valid lease, it will not do a full discover/request, but does a request only. Make sure that's not confusing things.

              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...

              kiokomanK 1 Reply Last reply Reply Quote 0
              • kiokomanK
                kiokoman LAYER 8 @JKnott
                last edited by

                @JKnott
                there is no settings that i know of

                As johnpoz say it's not a typical situation, usualy you set jumbo frames inside a lan but not to the wan, even corporate probably use Group Policy to run a script that would apply the changes.

                ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                Please do not use chat/PM to ask for help
                we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                  I can tell you that for all the corps had to support over the years.. Nobody is doing this on their local lan that client machines are connected to.. There have been a few companies that had jumbo setup on specific segments (waste of time if you ask me)..

                  This just makes no sense on your typical lan, especially a home network.. If want to play with it in your "lab" have at it.. Its not going to get you anything other then headaches when something doesn't work ;)

                  But yeah if windows shop was going to do it - they would prob set via group policy sure.

                  Here is a simple test... Set your storage nas/server with the larger mtu you want... Now set your machine your going to move files back and forth in your test... Move some files.. Did you speed increase by X percent? Did your cpu usage lower by Y percent.. Do the % gained in either of those two measurements make it worth the hassle? My bet is NO! ;)

                  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.7.2, 24.11

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

                    @kiokoman

                    It might not be common today, but years ago, when DHCP was starting out, different MTUs were common. I recall 576 used to be frequently used and, as I mentioned, we used 4000 at IBM, but it could have been configured for other. Still, a DHCP client that doesn't configure correctly for the network it's connected to is defective.

                    BTW, a Google search shows many others asking about why Windows doesn't support option 26. I guess this is more of Microsoft's habit of ignoring specs and doing their own thing.

                    In an earlier post I mentioned jumbo frames are used in the Internet2, which is used by a lot of researchers. This means they can't plug a Windows notebook directly into the network and then into other networks, without reconfiguration.

                    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 @johnpoz
                      last edited by

                      @johnpoz said in Setting MTU via DHCP:

                      I can tell you that for all the corps had to support over the years.. Nobody is doing this on their local lan that client machines are connected to..

                      I'll have to ask my cousin what he does. He's a nuclear physicist, who works with neutrinos. He spends a lot of time on supercomputers and runs Red Hat Linux on his notebook computer. He's currently at the Sudbury Neutrino Observatory, but had previously been at Fermilab and a couple of other places.

                      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
                      • kiokomanK
                        kiokoman LAYER 8
                        last edited by

                        I wasn't trying to find an excuse for the crap behavior of windows 😀
                        for example now that i have my stratum 1 running in a raspberry i would love to see option 42 but even that is not possible 😤

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                          Yeah sure there are questions about why windows doesn't ask for mtu in dhcp.. Not really sure what that has to do with the just plain FACT that its not worth the effort to change this on your local home network... If your a geek/nerd and into this sort of thing and you want to play with it - have at it on your lab network.

                          I went through my lets play with jumbo years ago when gig was somewhat new to the market, jumbo was all the rage - lower the cpu needed to move stuff, etc. etc.. Yeah back then a lot of the stuff was having to be done by the cpu, and not offloaded onto the nic, etc.

                          CPUs were far less powerful back then... Take it or leave it - this is my personal and professional opinion, with 30 some years in the biz, and plenty of geeking and nerding about network both at work, in my home, labbing this and that, etc.. etc..

                          Playing around with jumbo isn't worth the effort.. its not going to get you anything but headaches.. There just is no point to changing from the default.. You want to shave off your cpu from doing a couple of cycles?? So it can just do more work when wanting to talk to anything else on your network that is not capable of changing the mtu to jumbo.

                          Internet 3 going to use super jumbo frames ;) Doesn't mean anything when your talking about some local work/home network..

                          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.7.2, 24.11

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

                            @johnpoz said in Setting MTU via DHCP:

                            But yeah if windows shop was going to do it - they would prob set via group policy sure.

                            Does Active Directory support assigning MTU size?

                            As I mentioned, there has been some discussion about moving the Internet to jumbo frames, as the conditions that drove the smaller MTUs no longer exist. Also, users are moving a lot more data than we were 20 - 30 years ago.

                            From a network/ISP point of view, larger MTUs mean a lot less work for routers, which is a major consideration for many companies.

                            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...

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

                              @JKnott said in Setting MTU via DHCP:

                              Does Active Directory support assigning MTU size?

                              It does via making changes to the registry.. Which yeah pretty simple to roll out any sort of reg entry you want.

                              larger MTUs mean a lot less work for routers

                              If their routers are over worked moving their data around their network, their routers are under sized ;)

                              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.7.2, 24.11

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

                                @johnpoz said in Setting MTU via DHCP:

                                Not really sure what that has to do with the just plain FACT that its not worth the effort to change this on your local home network...

                                Perhaps not on a home network, but what about places like Google, where they have to move a huge amount of data? Each packet requires the router to handle it and that's done with something called interrupts, where the NIC taps the CPU on the shoulder and says handle this. The CPU then has to stop what it's doing, save the current state, handle the interrupt and then go back to what it was doing. With 1500 MTU, that happens 6x more often than with 9000. Then there's also the reduced bandwidth demand by having 1 header in place of 6, though that's a minor consideration. The Internet is getting faster (some carriers and ISPs are now moving to 100 Gb) and they need some way to reduce the load on routers, Jumbo frames help with that.

                                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 @johnpoz
                                  last edited by

                                  @johnpoz said in Setting MTU via DHCP:

                                  It does via making changes to the registry.. Which yeah pretty simple to roll out any sort of reg entry you want.

                                  What happens with a notebook, where the user takes it to a another network? Does that registry setting still apply?

                                  BTW, my only experience with AD is resetting passwords.

                                  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 @JKnott
                                    last edited by

                                    @JKnott said in Setting MTU via DHCP:

                                    As I mentioned, there has been some discussion about moving the Internet to jumbo frames, as the conditions that drove the smaller MTUs no longer exist.

                                    Jumbo Frame Deployment at Internet Exchange Points (IXPs)

                                    Hurricane Electric is a major Internet backbone provider.

                                    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
                                    • kiokomanK
                                      kiokoman LAYER 8
                                      last edited by

                                      yes the registry will not change, at this point you can create a simple .bat script that will change that value based on where you are or buy a second network card to use only with mtu 9000 set it and forget

                                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                      Please do not use chat/PM to ask for help
                                      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                                        @kiokoman said in Setting MTU via DHCP:

                                        yes the registry will not change, at this point you can create a simple .bat script that will change that value based on where you are or buy a second network card to use only with mtu 9000 set it and forget

                                        And you're back to having manually change something that should be done automagically. As I said, a DHCP client should adjust itself to the network, without any user intervention. This is definitely a "feature" in Windows.

                                        I was at IBM when DHCP started to become popular. I had my own static ip (9.29.146.147), which I used in my office, but I had to reconfigure when I went to another site. Someone at IBM came up with a utility for OS/2, which I could use to select different profiles, according to where I was. However, the switch to DHCP removed the need for that, other than switching between my static IP and DHCP. Funny thing, my current notebook computer, running Linux, still has that ability, where I can run a variety of profiles. As someone who frequently connects to customer networks and often needs a static configuration, that is quite handy, but it's not available in Windows.

                                        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
                                        • kiokomanK
                                          kiokoman LAYER 8
                                          last edited by kiokoman

                                          that was an expired draft from back 2011
                                          it's interesting what is written in the attached pdf https://ripe63.ripe.net/presentations/129-Jumbo_Frames_RIPE63_Nov2011.pdf

                                          Pros and Cons: summary
                                          Cons
                                          1.No standard/agreement for size of Jumbo Frames
                                          2.Increase transmission time, packet delay, jitter, etc.
                                          3.Require bigger buffers on equipment
                                          4.PMTUD doesn’t work
                                          5.Low traffic with the current maximum size

                                          Pros
                                          1.Less CPU load
                                          2.Less network packet overhead
                                          3.Better TCP performance

                                          30 4. Pros and Cons: applications

                                          Cons
                                          1.Inter-process communication (IPC)
                                          2.Protocols using small packets (DNS, VoIP, etc)
                                          3.Interoperability (no standards, broken PMTUD)

                                          Pros
                                          1.Data transfer (Backups/Clusters/NFS/NNTP)
                                          2.VPNs with payload 1500 bytes
                                          3.SAN (FCoE/iSCSI)

                                          31 4. Conclusion Personal
                                          1.Nature of Internet traffic: small packets
                                          2.All talks about Jumbo Frames are similar to IPv6 talks: started in 90x but IPv4 addresses are over and Ethernet with 1500 bytes still works fine

                                          The performance advantages are small.
                                          The implementation headache can be significant.

                                          In my opinion, Jumbo Frames aren't worth the effort. Equipment vendors have really optimized the heck out of 1500MTU packet delivery.
                                          to gain only maybe 2% in real usage
                                          http://www.boche.net/blog/2011/01/24/jumbo-frames-comparison-testing-with-ip-storage-and-vmotion/
                                          This comparison is from 2011,
                                          With the cpu power we have now i bet is less than 2%
                                          too many cons vs pros

                                          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                          Please do not use chat/PM to ask for help
                                          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                                            @kiokoman said in Setting MTU via DHCP:

                                            In my opinion, Jumbo Frames aren't worth the effort.

                                            Exactly!! They might have niche use cases.. But in your typical network - especially in a home with all kinds of different devices wanting to talk to each other.. Your media player wanting to pull your movies off your nas going to support them? That wireless roku stick you use to watch your plex or stream your music library, etc.

                                            Your pc printing to your "wireless" connected printer - sure great use case for jumbo there.. Make as BIG as possible ;) You know to shave off cpu time <rolleyes>..

                                            Add up ALL the devices in your network that interact with each other.. So ok you can shave 1/8 of 1% of cpu for the 20 seconds it takes to move a movie from your pc to your nas.. What about all the other devices pulling stuff that nas when the nas wants and things the network mtu is 9000..

                                            If you want to use jumbo on the SAN you use to backup your nas to your other nas - Go for it, might see some advantage there.. But for your overall network - just not worth it..

                                            To windows machine not pulling the mtu from dhcp - really talk about a niche issue.. How many home users boxes running windows even connected to a wired network these days? ;)

                                            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.7.2, 24.11

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