Forum Discussion
How to clear Don't Fragment (DF) bit
there is some virtual server that have a problem that
packet segment lost when MTU = 1500
so i want to clear DF bit to fix this problem , and how to clear it?
thank you
- HamishCirrocumulusMSS won't help.
- kridsanaCirrocumulusBefore that , I need to know why F5 set DF bit in first place ?
- What_Lies_Bene1Cirrostratus
This is a pretty good article on the subject despite it being Cisco focussed: http://blog.ine.com/2008/11/05/deal.../more-327
- HamishCirrocumulusPosted By teepan123 on 01/01/2013 10:28 PM
DF bit is to tell routers NOT to fragment packets. This means that if a packet is too lareg to pass across a link with a different MTU, the packet muct be dropped and a message (ICMP host unreachable) must be sent back to the source to tell them to lower their MTU (Path MTU) to the remote host.
Having DF set is usually the default. And a good thing. Without it, you have to make the assumption that the path MTU to a remote host is 512 Bytes. That means many more packets for the same amount of data. WHich lowers throughput as the overheads go up.
So why not just fragment? Because it's bad. The target host has to buffer all thise fragments for an amount of time so it can rebuild the whole packet. This takes recources. Send enough fragmented packets to a host and it's a great DOS attack. Most hosts/firewalls will/should be configured to DROP fragmented packets. So that's another downside to removing the DF flag.
Dropping your local MTU to make a remote host work is also bad. ALL the MTU's on a local subnet MUST be the same size. (OK. MOst modern hosts will actually accept inbound packets larger than the configured MTU, but there's no guarantee. And performance will suffer too).
H
- HamishCirrocumulusActually that might be a good idea to raise an RFE to allow iRules to alter the path-mtu on the fly to a particular host...
- What_Lies_Bene1Cirrostratus
Hamish, forgive me if it seems I'm being argumentative but this is a lot like the conversations I have with people about Virtual Addresses not needing to be in the same subnet as any Self IP; the understanding that an apparent restriction or 'rule' doesn't exist can completely change a design or approach. I post this only for the benefit of others, not to annoy you ;-) I'm happy to discuss this privately if you'd like.
- HamishCirrocumulusI'll be blunt. You need to read the IP and ethernet standards before making statements about MTU's. Also don't call the MSS a layer-3 MTU. It's not. It's the MSS. Am i being pedantic? Yes. Most assuredly. Not to be an ***. But simply because THAT IS THE STANDARDS. It's why things appear to magically work so well across the whole internet. Because the standards are well written, easy to understand and precise. Yes, violating some of them DOES appear to work. Mostly. Until you discover the edge situations and learn the hard way that violating the standards is a little like dropping litter in Singapore... Just substitute $500 fine for damn thing isn't working... The lack of IMCP unreachable coming back (WHich is the whole cause of this thread) is a Case in point. Sure, not passing them APPEARS to work. But this in itself is one of the edge situations where it breaks. SOMEWHERE in the path between the two endpoints has a lower MTU. It works for SOME people because they're doing stuff correctly. SOMEONE has done something WRONG, which VIOLATES the STANDARDS in the first place. Putting ANOTHER VIOLATION in place to fix them is NOT the right way to do it.
- HamishCirrocumulusOh. And VS addresses DON"T need to be in the same vlan as a self IP. In fact you don't need ANY selfip on the VS VLAN. You just have to ensure the traffic routes THROUGH the BigIP. I'm not sure you'll find anyone who can successfully argue the other way round.
- What_Lies_Bene1CirrostratusI'm feeling the heat now! I've edited my post to correct the MSS/MTU 'order'. As stated here: http://en.wikipedia.org/wiki/Transmission_Control_ProtocolMaximum_segment_size:
- HamishCirrocumulusYou're quoting wikipedia at me for standards? Shame on you... It's worth exactly what you paid for it (For references see some amusing tales regarding new organisations who use it for references and them get found out because the info is just plain suspect).
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com