Difficulty: Easy
Correct Answer: DNS
Explanation:
Introduction / Context:
Transport layer selection impacts reliability and overhead. Some application protocols are designed to operate over both TCP and UDP depending on the operation. Knowing which protocol flexibly uses both is essential for firewall rules, troubleshooting, and performance tuning.
Given Data / Assumptions:
Concept / Approach:
DNS typically uses UDP port 53 for standard queries and responses because messages are small and frequent. It uses TCP port 53 for zone transfers (AXFR/IXFR) and when responses exceed the UDP size limit or when DNSSEC data necessitates larger payloads. Thus, DNS is the canonical example of a protocol using both transports.
Step-by-Step Solution:
Verification / Alternative check:
Packet captures of dig +tcp and zone transfers show TCP/53 connections; standard dig defaults show UDP/53. Documentation for DNS RFCs also specifies both transports.
Why Other Options Are Wrong:
Common Pitfalls:
Blocking UDP/53 at firewalls and breaking resolution; assuming TCP is only for zone transfers—large EDNS0 responses can also switch to TCP.
Final Answer:
DNS
Discussion & Comments