Why does dns use udp instead of tcp




















They do that on top of the IP protocol, which means that they direct the packets to IP addresses. TCP is a widely used protocol. When you make a request for a website from your browser, it will most probably use exactly TCP protocol to send the data packets to the server.

For every request you send every action you take on the web page like click, sign in, etc. TCP is orientated to the reliability. All the data sent over TCP is tracked, and no data gets corrupted or lost on the way. The protocol numbers the packets and does error checking by pushing the receiver to confirm that it got the data. Post Views: 20, Featured Links. Featured Product. Join Our Newsletter Learn about the latest security threats, system optimization tricks, and the hottest new technologies in the industry.

We'll take an example of DNS Service. Two protocols are different from each other. TCP is a connection-oriented protocol and it requires data to be consistent at the destination and UDP is connection-less protocol and doesn't require data to be consistent or don't need a connection to be established with host for consistency of data.

UDP packets are smaller in size. UDP packets can't be greater than bytes. So any application needs data to be transferred greater than bytes require TCP in place. Or the same query might return the following TXT records, each providing a specific function such as spam detection or site verification as demonstrated in Figure FAQ In these situations, the client needs to re-transmit over TCP, which has no size limit.

The end symptom to the end client is usually slow DNS resolution, or inability to resolve certain domain names at all. You might be wondering where the size limit of bytes come from. The IPv4 standard 2 specifies that every host must be able to reassemble packets of bytes or less, take away header and other options, that leaves bytes for payload data.



0コメント

  • 1000 / 1000