Figure 3: Handshake of QUIC compared to TCP with TLS 1.2 [1]
QUIC is a relatively new network protocol developed by Google and publicly available since 2013. It offers several technical advantages over traditional TCP, including solving head-of-line blocking, supporting multiplexing, reducing handshake times, and privacy by design. As shown in [fig:tcpVsQuicHandshake], TCP with TLS 1.2 requires seven interactions (TCP connection and TLS layer encryption) between client and server, while QUIC only needs one roundtrip (three interactions). When using DoT or DoTCP, multiple packets get bundled for transmission and acknowledgment. If parts of the bundle are lost or take a slower route, the other packages need to wait until all are acknowledged or retransmitted successfully due to the design of TCP. In comparison, QUIC utilizes UDP to extract the network protocol from the kernel space to the application layer. QUIC also allows for “connection migration”, which enables switching networks while maintaining the same QUIC connection. Due to the short lifetime of DNS connections, this feature is more useful for data-heavy and longer connections [8].
How does DoQ improve speed and privacy for DNS queries?
The natural evolution of QUIC results in DoQ because QUIC encrypts all data transmitted between client and server while reducing handshake time [13]. DoQ optimizes speed by lowering latency and removing packet blocking while also increasing privacy through encryption and additional encryption options. Although DoQ is not faster than unencrypted DNS, it remains the fastest method when encryption and privacy are desired. For more complex websites, measured by the number of resources such as images, CSS, and HTML, the initial encryption for DNS is amortized by using DoQ [14].
Adoption of DoQ is growing, with the highest adoption rates seen in Asia (over 45 %) and Europe (over 32 %) [16]. The first DNS resolver to adopt DoQ was AdGuard [8].
Streamlining Web Traffic with QUIC Coalescing
The concept of QUIC coalescing involves utilizing an established QUIC connection not only for DNS resolution but also for data transfer via HTTP/3, leveraging the advantages of 0-RTT (zero round-trip time) communication. This approach, as highlighted by [17], integrates DNS queries into the same connection used for actual data transmission, streamlining the communication process and reducing latency.
One of the significant benefits of QUIC coalescing would be the reduced PLT. Their study has shown that coalescing with QUIC can decrease PLT by approximately one-third over wired connections and by half over mobile connections under laboratory conditions. This substantial improvement is particularly advantageous for mobile users, where network conditions are often less stable and more prone to delays. By minimizing the number of round trips required for DNS resolution and data transfer, QUIC coalescing could enhance the overall efficiency and speed of web interactions.
Summary
The main goal of the DIIC research group is to make security effortless and intuitive by reducing bottlenecks and increasing speed. The emphasis is on ensuring that security measures do not compromise performance. As highlighted in the discussion, maintaining high performance is crucial because if security features degrade system performance, users are less likely to adopt them. This approach underscores the importance of seamless security integration that encourages widespread use without performance trade-offs.
One key takeaway is that DNS has evolved from an unencrypted protocol to one that supports multiple secure protocols (DoT and DoQ) to enhance user security and privacy. Furthermore, if you have read this far, we suggest you check your router or browser and enable either DoH or DoQ. It is as easy as flipping a switch and won’t affect the performance noticeably!
Summary written by Felix Hoffmann, Jonas Baltruschat, and Raihanul Sourav
References
[1]
2024. QUIC. Wikipedia.
[2]
Asrese, A.S. et al. 2019. Measuring web latency and rendering performance: Method, tools, and longitudinal dataset. IEEE Transactions on Network and Service Management. 16, 2 (2019), 535–549. DOI:https://doi.org/10.1109/TNSM.2019.2896710.
[3]
Bajpai, V. et al. 2017. Dissecting last-mile latency characteristics. SIGCOMM Comput. Commun. Rev. 47, 5 (Oct. 2017), 25–34. DOI:https://doi.org/10.1145/3155055.3155059.
[4]
Bajpai, V. et al. 2015. Lessons learned from using the RIPE atlas platform for measurement research. SIGCOMM Comput. Commun. Rev. 45, 3 (Jul. 2015), 35–42. DOI:https://doi.org/10.1145/2805789.2805796.
[5]
Bajpai, V. and Schönwälder, J. 2019. A longitudinal view of dual-stacked websites—failures, latency and happy eyeballs. IEEE/ACM Transactions on Networking. 27, 2 (2019), 577–590. DOI:https://doi.org/10.1109/TNET.2019.2895165.
[6]
Dhamdhere, A. et al. 2018. Inferring persistent interdomain congestion. Proceedings of the 2018 conference of the ACM special interest group on data communication (New York, NY, USA, 2018), 1–15.
[7]
Dickinson, J. et al. 2016. DNS Transport over TCP - Implementation Requirements. Technical Report #RFC 7766. Internet Engineering Task Force.
[8]
DNS-over-QUIC is now officially a proposed standard: 2023. https://adguard-dns.io/en/blog/dns-over-quic-official-standard.html. Accessed: 2024-06-06.
[9]
Doan, T. et al. 2021. Evaluating public DNS services in the wake of increasing centralization of DNS. (Jun. 2021), 1–9.
[10]
Doan, T. et al. 2021. Measuring DNS over TLS from the edge: Adoption, reliability, and response times. 192–209.
[11]
Doan, T.V. et al. 2020. A longitudinal view of netflix: Content delivery over IPv6 and content cache deployments. IEEE INFOCOM 2020 - IEEE conference on computer communications (2020), 1073–1082.
[12]
Doan, T.V. et al. 2022. An empirical view on consolidation of the web. ACM Trans. Internet Technol. 22, 3 (Feb. 2022). DOI:https://doi.org/10.1145/3503158.
[13]
Huitema, C. et al. 2022. DNS over Dedicated QUIC Connections. Technical Report #RFC 9250. Internet Engineering Task Force.
[14]
Kosek, M. et al. 2022. DNS Privacy with Speed? Evaluating DNS over QUIC and its Impact on Web Performance. Proceedings of the 22nd ACM Internet Measurement Conference (Oct. 2022), 44–50.
[15]
Kosek, M. et al. 2022. Measuring DNS over TCP in the era of increasing DNS response sizes: A view from the edge. SIGCOMM Comput. Commun. Rev. 52, 2 (Jun. 2022), 44–55. DOI:https://doi.org/10.1145/3544912.3544918.
[16]
One to Rule them All? A First Look at DNS over QUIC: 2022. http://arxiv.org/abs/2202.02987. Accessed: 2024-06-06.
[17]
Sengupta, J. et al. 2023. Web Privacy By Design: Evaluating Cross-layer Interactions of QUIC, DNS and H/3. 2023 IFIP Networking Conference (IFIP Networking) (Jun. 2023), 1–9.