Optimasi Load Balancing dan DNS pada CDN untuk Mempercepat Distribusi Konten menggunakan BIND dan HAProxy berbasis Linux

Cahyo Darujati, Moh Noor Al Azam, Novi Mustar Prihadi

Abstract


This research explores how to make content delivery faster using a Content Delivery Network (CDN) on Linux, focusing on optimizing DNS and load balancing with tools like BIND and HAProxy. It’s all about ensuring users get content quickly, no matter where they are. Set up three edge servers running HAProxy for load balancing and one BIND server for DNS, using a feature called geodns to direct users to the nearest server. We simulated users from different locations to mimic real-world use. Data was collected using tools like tcpdump for network traffic, Apache Bench for HTTP performance, and system monitoring tools to track CPU and memory usage. We measured latency (time to first byte), throughput (data speed), CPU usage, and error rates. Baseline: No optimizations, with latency at 244.2 ms, throughput at 100 MB/s, CPU usage at 70% with 15% variation, and 5% error rate. Geodns Only: Latency dropped to 111.2 ms, keeping throughput at 100 MB/s. Load Balancing Only: Throughput rose to 120 MB/s, CPU usage balanced to 60% with 5% variation, and error rate fell to 3%. Combined: Best results with latency at 107.2 ms, throughput at 120 MB/s, and error rate at 2%. An interesting detail is how geodns not only lowers latency but also helps balance server loads, which is especially useful in places like Indonesia with uneven user distribution. Combining both optimizations significantly boosts CDN performance, making it a great approach for content providers. It’s clear this can improve user experience, especially in areas with varied network setups.


Keywords


CDN; Load Balancing; DNS; HAProxy; BIND; Linux Ubuntu; Content Distribution Optimization

Full Text:

PDF

References


L. Zhe, D. Gengsheng, Z. Jingjing, and D. Wei, “Research and Implementation of Dual-stack Web Service Architecture Based on Intelligent DNS and Reverse Proxy Technology,” in 2020 12th International Conference on Advanced Infocomm Technology (ICAIT), Nov. 2020, pp. 68–73. doi: 10.1109/ICAIT51223.2020.9315501.

P. Varshney, S. Gaur, and S. Pal, “A novel approach of Load Balancing in Content Delivery Networks by optimizing the surrogate server,” in 2021 11th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Jan. 2021, pp. 790–795. doi: 10.1109/Confluence51648.2021.9377140.

Z. Cui, Y. Zhao, C. Li, Y. Song, and W. Li, “Content-Aware Load Balancing in CDN Network,” in 2020 IEEE 6th International Conference on Computer and Communications (ICCC), Dec. 2020, pp. 88–93. doi: 10.1109/ICCC51575.2020.9345240.

T. G. Papaioannou, K. Katsalis, V. Sourlas, and A. Amditis, “Virtual CDN Providers: Profit Maximization through Collaboration,” in 2019 IEEE Global Communications Conference (GLOBECOM), Dec. 2019, pp. 1–6. doi: 10.1109/GLOBECOM38437.2019.9014298.

M. Kumari and A. Kumar, “A Secure Fog Computing Architecture for IoT Based Smart Manufacturing System,” in 2021 International Conference on Simulation, Automation & Smart Manufacturing (SASM), Aug. 2021, pp. 1–5. doi: 10.1109/SASM51857.2021.9841119.

Z. Wang, J. Huang, and S. Rose, “Evolution and challenges of DNS-based CDNs,” Digit. Commun. Netw., vol. 4, no. 4, p. 10.1016/j.dcan.2017.07.005, 2018, doi: 10.1016/j.dcan.2017.07.005.

P. Bakonyi, T. Boros, and I. Kotuliak, “Classification Based Load Balancing in Content Delivery Networks,” in 2020 43rd International Conference on Telecommunications and Signal Processing (TSP), Jul. 2020, pp. 621–626. doi: 10.1109/TSP49548.2020.9163470.




DOI: https://doi.org/10.31284/j.kernel.2024.v5i1.7590

Refbacks

  • There are currently no refbacks.


Copyright (c) 2025 Cahyo Darujati, Moh Noor Al Azam

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Diindeks oleh:
Google Scholar logo Dimensions Logo