Forum Discussion
Jeremiah_47575
Nimbostratus
Feb 14, 2010Recommended idle timeout setting for DNS (UDP)?
I have two sets of LTM 3400's hosting my primary and secondary dns vip's with a pool of dns servers behind each respective vip. The vip's are setup for Performance (Layer 4) and I'm using a custom 'fastL4-dns' profile to manage the "Idle Timeout" setting. My question is if there is a recommended setting? A legacy config had this set to 24 hours, leaving me with over a million idle/active connections while my backnet DNS servers were only processing a few hundred at a time (max). I've since dropped this down to default (300s) and then further to 120s, each time seeing a dramatic decrease in active connections and tmm resources. Upon lowering it to 10s, I began seeing zone xfer issues due to the size of our zone files and a conn reset being received when it took longer than 10s to send. For now, I've set it back to 120s and am seeing ~10000 connections per dns node, which isn't realistic.
What are suggested settings that have worked well for others?
Is there a way to 'fix' it so that these idle connections don't stick around?
Thanks,
-Jeremiah
- The_Bhattman
Nimbostratus
Hi Jeremiah, - hoolio
Cirrostratus
Hi Jeremiah, - Jeremiah_47575
Nimbostratus
I'm using a fastL4 all protocols (tcp/udp) vip currently with a custom fastL4-dns profile set at 120s. TCP is indeed needed for the zone xfer. Are you suggesting that I split it into 2 vip's... one UDP with 10s or less timeout and one TCP with 120s or 300s default? I suppose that might work well... I will test at earliest convenience. - hoolio
Cirrostratus
I don't have any experience testing DNS-specific VIPs, so I'd rather wait for someone else to provide their thoughts before you try something in production. - L4L7_53191
Nimbostratus
I've heard about a very powerful design pattern for DNS called the 'stateless UDP' pattern. It can be useful for fairly high volume DNS environments that fill up our connection tables quickly (which can certainly happenwith a massive number of UDP requests and default timeout settings). - Jeremiah_47575
Nimbostratus
Thanks Aaron and Matt. - Hamish
Cirrocumulus
I used to run DNS frontended by LTM for a pretty big organisation with a major web presence. IIRC we used 10seconds timeout on the UDP, and normal 300s on the tcp (Since it's only zone transfers and querys/responses that are too big to fit in a single 512B UDP datagram that use TCP - That's about 13 RR's depending on data). - L4L7_53191
Nimbostratus
This thread was timely as a couple of us are exploring the various options for a high-volume deployment. Really, it pretty much boils down to these, each with its own advantages and disadvantages: - Jeremiah_47575
Nimbostratus
I had a chance to test this configuration, but the stateless setup didn't work for me. I tried stateless udp profile on incoming fastL4/UDP vip as well as a wildcard/UDP vip for outbound. When using stateless profile on inbound and attempting a dig, I get errors about responding packet coming from different IP than expected. When stateless is set on wildcard, the dns slaves can't make UDP connections outbound. - L4L7_53191
Nimbostratus
Thanks for the update. Did you confirm that you're SNAT-ing correctly on the egress (response) VIP, and double checked your port translation settings? A client-side tcpdump/wireshark capture of a failed transaction would be really interesting to see. Either way, it seems like you've gotten a fairly solid solution for your needs in place, so thanks for sharing your setup.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects