Time to First Byte (TTFB) measures the delay between a client's request and the first byte of the response, covering DNS lookup, TCP and TLS handshake, and server processing.
Time to First Byte is a web performance metric, defined in the W3C Navigation Timing specification. It measures the elapsed time between the moment a client initiates a request and the moment it receives the first byte of the response body. In practical terms, TTFB is the sum of several sequential phases: DNS resolution (how long it takes to map a hostname to an IP), TCP connection establishment (the three-way handshake), TLS handshake (certificate exchange and key agreement), the time the request spends in transit to the server, the time the server spends processing the request, and the time the first response byte takes to travel back to the client.
TTFB is not a single thing happening at a single layer. It is an aggregate of every step that must complete before the client sees the first sign that the server is alive. Two sites can both report "200ms TTFB" while one is doing it through a warm CDN edge in the same city and the other is doing it through a transcontinental TLS handshake. The metric is identical; the causes are entirely different. Reading TTFB correctly requires breaking it down into its components.