SlideShare a Scribd company logo
1 of 37
How to Design and
Develop DNS System in
CDN
Agenda
 Intelligent DNS Resolution
 DNS Resolution
 Performance Requirement
 Relationship between Intelligent DNS and CDN traffic scheduling
Intelligent DNS Resolution
 Process
 CDN & DNS support standard protocols
 Communication of Authoritative DNS
 System Consuming Characteristics
Process
CDN & DNS Supports Standard Protocols
 rfc 1035 : basic
 rfc 2671 : EDNS0
 rfc 3596 : AAAA
 ECS supports: draft-vandergaast-edns-client-subnet-04
Authoritative DNS Communication
 Typical Messages
 Mainly UDP
 Single package request response
 Small package
 No-repeat five-tuple
 Business aspect
 Delay-sensitive
 Distribution deployment
System Consuming
 Network I/O Intensive
 Small package, high frequency
 One-time network I/O
 CPU Intensive
 Small package, high frequency
 One-time network I/O
 Domain mainly for string query and processing
 Extra CDN strategy computing
Domain Resolution
 Terminal interaction with local DNS
 Local DNS interaction with CDN DNS
 Local DNS interaction with DNS cluster
Terminal interaction with local DNS
 Most terminal uses local DNS
Local terminal users
Local DNS terminal users
Local DNS interaction with CDN DNS
 The user scale of local DNS varies significantly.
 CDN DNS perspective
 Local DNS cache dilutes hotspots
 Traffic scheduling perspective
 Each DNS visits cover varying sizes of users
CDN DNS
LDNS用户群
Local DNS interaction with DNS cluster
 Local DNS Picking:Resolving Delay
Sensitive
 Choose near NS for high probability
(short RTT)
 Choose far NS for low probability (long
RTT)
 Traffic scheduling perspective
 Each NS has unequal visits
Local DNS
Example: How to choose the best NS
0
5
10
15
20
25
30
35
40
45
50
DNSDevices
Delayms
DNS Resolution Sequences
Local DNS
Example: Punishiment under high delay
502502
0
50
100
150
200
500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700
DNSDevices
Delayms
DNS Resolution Sequences
Performance Requirement
 High quality DNS system’s performance
 Performance index evaluation
 Performance test
 Network I/O selection
 New DNS data storage
High quality DNS system’s performance
 Resemble ICMP echo services (ping)
Performance index evaluation
Performance
C40M - 40Gb
C10M - 10Gb
C1M - 1Gb
C500K-C100 - 100Mb
C10K - 10Mb
C1K - 1Mb
C100K
Domain Resolution
Quanlity
Huge DDoS
Small DDoS
DDoS
Huge website peak analysis
Active website
Single Machine
Performance
Knot、NSD、BIND、PowerDNS
BIND+DLZ+NOSQL
Hot-spot dilution’s impact on performances
 Reason of hot-spot dilution
 Upstream Local DNS is cache-like services, which won’t be visited in before
expiration
 Hot-spot dilution effects
 Online performance much lower than test performance
 High cache missing of software and hardware
 In Cloud, Higher cache missing of software and hardware
 Beware
 Extra resources need to be spared during evaluation
 On storage and algorithm selection, extra resources need to be spared for
random access performance stability
 Replay or clone online traffic for DNS test.
Performance Test
 queryperf
 DNSPerf
 tcpreplay
 tcpcopy
 Performance test devices
Traps in performace evaluation
 What is the parallel performance of CDN DNS?
 Authoritative DNS’s purpose is to finish one-time response ASAP
 For CPU intensive business, better lower the parallel operation to avoid getting out of
control
 QPS is the principal index on evaluating CDN DNS’s performance
 How about using queryperf/DNSPerf to evaluate online CDN DNS performance?
 Hard to cover the Local DNS variation of CDN DNS
 Fixed five-tuple makes it hard to show the lower level consuming
 Queryperf/DNSperf matches the testing device’s response rhythm to perform fixed
intensity stress test.
 Visit frequency of Internet usually follows Poisson distribution with fluctuation
 Don’t forget human-caused visit frequency fluctuation
 Regular probing, regular web crawler
Network I/O selection
Performance
Magnitude
Q40M - 40Gb
Q10M - 10Gb
Q1M - 1Gb
Q100K - 100Mb
Q10K - 10Mb
Q1K - 1Mb
Network I/O
DPDK
PF_RING,Netmap
BPS,netfilter
Socket
New DNS data storage
 Open LDAP LMDB
 Lightning Memory-Mapped Database
 PowerDNS + LMDB
 400kqps
 Knot DNS
 700kqps
Load Balancer Selection
 Switch/Router + Anycast in the Node
 First choice if condition allows
 Hardware Load Balancer
 Software Load Balancer
Intelligent DNS and CDN Traffic Scheduling
 Example analysis
 Factors that impact DNS scheduling
 How to assess DNS scheduling result
 Scheduling alogrithm can be used
DNS Scheduling optimizing examples
Factors that impack intelligent DNS scheduling
 Intelligent DNS doesn’t interact directly with terminal
 Some terminals change its Local DNS
 Local DNS Cache has impact on scheduling effection and expiration
 Local DNS covers varied sized user groups
 Local DNS optimizing action impacts data equity
Accuracy and precision of DNS Scheduling
0%
10%
20%
30%
40%
50%
60%
70%
High accuracy, low precision
0.00%
10.00%
20.00%
30.00%
40.00%
50.00%
60.00%
70.00%
80.00%
90.00%
Low accuracy, high precision
Actual Result Scheduling Target
Impacts of accuracy and precision of intelligent DNS
 Precision
 Impact dynamic adjustment of the scheduling system
 Impact device bandwidth usage
 Accuracy
 Impact prediction and planning of the scheduling system
DNS Scheduling basis
 DNS statistics data
 Better not use directly
 Intrinsic properties
 Local DNS IP location property
 Local DNS IP netowrk property
 Stateless properties
 Hash characteristic
 Random
Common Scheduling Categories
 Default equally divide by traffic
 By propotion
 IP categories
 Static location categories
 Dynamic network link categories
 …
Characteristics of Common Scheduling Categories
Category Accuracy Precision
By location Really bad Good
Default equally divide Very good Very good
Random Accurate Not stable
By Local DNS IPs Bad Good
Combine intelligent DNS with other scheduling ways
 Intelligent DNS for coarse-grained, other ways for finer grainuality
 Http 302
 Cluster
 Limit connections and traffics on devices
 Mixed uses in node for better productivity according to their own cases
 High quality and small traffic
 High precision intelligent DNS scheduling
 Low demand and huge traffic
 High precision intelligent DNS scheduling and cross-node scheduling
 Limit connections and traffics on auxiliary devices
Security
 Software pitfalls
 Heterogeneous software backup for each other
 Open source DNS based
 Function tailoring
 CDN is the most fundamental and stable part of the DNS software
 Useless code branches should be cut out
 DDos traffic attacking
 High performance unusual DNS software can be designed with the bandwidth advantages of
CDN
 Introduce 3rd part DNS security products
 Beware of the impact of security product introducing on traffic scheduling
 Improve the software performance to help the 3rd party security product and lower risks
High Availability
 Distribution deployment
 Heterogeneous DNS software
 Platform images
Heterogeneous DNS
 Combine two DNS software into one group
 13 global roots of DNS are mixed in ues for BIND and NSD
 Why heterogeneous DNS?
 Using the inconsistency of different DNS’s defects to ensure high availability
 Being one of the critical system, defects in DNS can be catastrophic
 Local DNS cluster retrying can be contagious and paralyze the whole sets of DNS
 Cost of development and maintenance
 DNS is simple and the development cycle is short
 DNS is the relatively stable network protocol, changes in CDN related part even smaller
 CDN related function
 Can be done when stable
 Open source DNS might be short on customized CDN features, but they are good fail-
safe system.
DNS Clone Backup
 Facing platform level and outside
malfunctions
 Platform level domain failure
 Domain registration failure
 Upper and top level domain failure
 Security threat
 Spread the risk
 Don’t put all the eggs in one basket
 Evacuation
 Transfer customer to backup platform
when under failure or threats
user1.cnd1.cn
user2.cnd1.cn
user3.cnd1.cn
user4.cnd1.cn
user5.cnd1.cn
user1.cnd2.comu
ser2.cnd2.com
user3.cnd2.com
user4.cnd2.com
user5.cnd2.com
user1
user2
user3
user4
user5
CDNPlatform
1
CDNPlatform
2
Customer
Thanks!
Beijing SpeedyCloud Technology Co., Ltd.,
For More Information, please visit: www.speedycloud.cn
You can also send email to: social@speedycloud.cn

More Related Content

Recently uploaded

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

How to Design and Develop DNS System in CDN by SpeedyCloud

  • 1. How to Design and Develop DNS System in CDN
  • 2. Agenda  Intelligent DNS Resolution  DNS Resolution  Performance Requirement  Relationship between Intelligent DNS and CDN traffic scheduling
  • 3. Intelligent DNS Resolution  Process  CDN & DNS support standard protocols  Communication of Authoritative DNS  System Consuming Characteristics
  • 5. CDN & DNS Supports Standard Protocols  rfc 1035 : basic  rfc 2671 : EDNS0  rfc 3596 : AAAA  ECS supports: draft-vandergaast-edns-client-subnet-04
  • 6. Authoritative DNS Communication  Typical Messages  Mainly UDP  Single package request response  Small package  No-repeat five-tuple  Business aspect  Delay-sensitive  Distribution deployment
  • 7. System Consuming  Network I/O Intensive  Small package, high frequency  One-time network I/O  CPU Intensive  Small package, high frequency  One-time network I/O  Domain mainly for string query and processing  Extra CDN strategy computing
  • 8. Domain Resolution  Terminal interaction with local DNS  Local DNS interaction with CDN DNS  Local DNS interaction with DNS cluster
  • 9. Terminal interaction with local DNS  Most terminal uses local DNS Local terminal users Local DNS terminal users
  • 10. Local DNS interaction with CDN DNS  The user scale of local DNS varies significantly.  CDN DNS perspective  Local DNS cache dilutes hotspots  Traffic scheduling perspective  Each DNS visits cover varying sizes of users CDN DNS LDNS用户群
  • 11. Local DNS interaction with DNS cluster  Local DNS Picking:Resolving Delay Sensitive  Choose near NS for high probability (short RTT)  Choose far NS for low probability (long RTT)  Traffic scheduling perspective  Each NS has unequal visits
  • 12. Local DNS Example: How to choose the best NS 0 5 10 15 20 25 30 35 40 45 50 DNSDevices Delayms DNS Resolution Sequences
  • 13. Local DNS Example: Punishiment under high delay 502502 0 50 100 150 200 500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 DNSDevices Delayms DNS Resolution Sequences
  • 14. Performance Requirement  High quality DNS system’s performance  Performance index evaluation  Performance test  Network I/O selection  New DNS data storage
  • 15. High quality DNS system’s performance  Resemble ICMP echo services (ping)
  • 16. Performance index evaluation Performance C40M - 40Gb C10M - 10Gb C1M - 1Gb C500K-C100 - 100Mb C10K - 10Mb C1K - 1Mb C100K Domain Resolution Quanlity Huge DDoS Small DDoS DDoS Huge website peak analysis Active website Single Machine Performance Knot、NSD、BIND、PowerDNS BIND+DLZ+NOSQL
  • 17. Hot-spot dilution’s impact on performances  Reason of hot-spot dilution  Upstream Local DNS is cache-like services, which won’t be visited in before expiration  Hot-spot dilution effects  Online performance much lower than test performance  High cache missing of software and hardware  In Cloud, Higher cache missing of software and hardware  Beware  Extra resources need to be spared during evaluation  On storage and algorithm selection, extra resources need to be spared for random access performance stability  Replay or clone online traffic for DNS test.
  • 18. Performance Test  queryperf  DNSPerf  tcpreplay  tcpcopy  Performance test devices
  • 19. Traps in performace evaluation  What is the parallel performance of CDN DNS?  Authoritative DNS’s purpose is to finish one-time response ASAP  For CPU intensive business, better lower the parallel operation to avoid getting out of control  QPS is the principal index on evaluating CDN DNS’s performance
  • 20.  How about using queryperf/DNSPerf to evaluate online CDN DNS performance?  Hard to cover the Local DNS variation of CDN DNS  Fixed five-tuple makes it hard to show the lower level consuming  Queryperf/DNSperf matches the testing device’s response rhythm to perform fixed intensity stress test.  Visit frequency of Internet usually follows Poisson distribution with fluctuation  Don’t forget human-caused visit frequency fluctuation  Regular probing, regular web crawler
  • 21. Network I/O selection Performance Magnitude Q40M - 40Gb Q10M - 10Gb Q1M - 1Gb Q100K - 100Mb Q10K - 10Mb Q1K - 1Mb Network I/O DPDK PF_RING,Netmap BPS,netfilter Socket
  • 22. New DNS data storage  Open LDAP LMDB  Lightning Memory-Mapped Database  PowerDNS + LMDB  400kqps  Knot DNS  700kqps
  • 23. Load Balancer Selection  Switch/Router + Anycast in the Node  First choice if condition allows  Hardware Load Balancer  Software Load Balancer
  • 24. Intelligent DNS and CDN Traffic Scheduling  Example analysis  Factors that impact DNS scheduling  How to assess DNS scheduling result  Scheduling alogrithm can be used
  • 26. Factors that impack intelligent DNS scheduling  Intelligent DNS doesn’t interact directly with terminal  Some terminals change its Local DNS  Local DNS Cache has impact on scheduling effection and expiration  Local DNS covers varied sized user groups  Local DNS optimizing action impacts data equity
  • 27. Accuracy and precision of DNS Scheduling 0% 10% 20% 30% 40% 50% 60% 70% High accuracy, low precision 0.00% 10.00% 20.00% 30.00% 40.00% 50.00% 60.00% 70.00% 80.00% 90.00% Low accuracy, high precision Actual Result Scheduling Target
  • 28. Impacts of accuracy and precision of intelligent DNS  Precision  Impact dynamic adjustment of the scheduling system  Impact device bandwidth usage  Accuracy  Impact prediction and planning of the scheduling system
  • 29. DNS Scheduling basis  DNS statistics data  Better not use directly  Intrinsic properties  Local DNS IP location property  Local DNS IP netowrk property  Stateless properties  Hash characteristic  Random
  • 30. Common Scheduling Categories  Default equally divide by traffic  By propotion  IP categories  Static location categories  Dynamic network link categories  …
  • 31. Characteristics of Common Scheduling Categories Category Accuracy Precision By location Really bad Good Default equally divide Very good Very good Random Accurate Not stable By Local DNS IPs Bad Good
  • 32. Combine intelligent DNS with other scheduling ways  Intelligent DNS for coarse-grained, other ways for finer grainuality  Http 302  Cluster  Limit connections and traffics on devices  Mixed uses in node for better productivity according to their own cases  High quality and small traffic  High precision intelligent DNS scheduling  Low demand and huge traffic  High precision intelligent DNS scheduling and cross-node scheduling  Limit connections and traffics on auxiliary devices
  • 33. Security  Software pitfalls  Heterogeneous software backup for each other  Open source DNS based  Function tailoring  CDN is the most fundamental and stable part of the DNS software  Useless code branches should be cut out  DDos traffic attacking  High performance unusual DNS software can be designed with the bandwidth advantages of CDN  Introduce 3rd part DNS security products  Beware of the impact of security product introducing on traffic scheduling  Improve the software performance to help the 3rd party security product and lower risks
  • 34. High Availability  Distribution deployment  Heterogeneous DNS software  Platform images
  • 35. Heterogeneous DNS  Combine two DNS software into one group  13 global roots of DNS are mixed in ues for BIND and NSD  Why heterogeneous DNS?  Using the inconsistency of different DNS’s defects to ensure high availability  Being one of the critical system, defects in DNS can be catastrophic  Local DNS cluster retrying can be contagious and paralyze the whole sets of DNS  Cost of development and maintenance  DNS is simple and the development cycle is short  DNS is the relatively stable network protocol, changes in CDN related part even smaller  CDN related function  Can be done when stable  Open source DNS might be short on customized CDN features, but they are good fail- safe system.
  • 36. DNS Clone Backup  Facing platform level and outside malfunctions  Platform level domain failure  Domain registration failure  Upper and top level domain failure  Security threat  Spread the risk  Don’t put all the eggs in one basket  Evacuation  Transfer customer to backup platform when under failure or threats user1.cnd1.cn user2.cnd1.cn user3.cnd1.cn user4.cnd1.cn user5.cnd1.cn user1.cnd2.comu ser2.cnd2.com user3.cnd2.com user4.cnd2.com user5.cnd2.com user1 user2 user3 user4 user5 CDNPlatform 1 CDNPlatform 2 Customer
  • 37. Thanks! Beijing SpeedyCloud Technology Co., Ltd., For More Information, please visit: www.speedycloud.cn You can also send email to: social@speedycloud.cn