N
The Daily Insight

What are the advantages and disadvantages between TCP and UDP?

Author

John Kim

Updated on April 29, 2026

The main advantages for UDP are that datagram boundaries are respected, you can broadcast, and it is fast. The main disadvantage is unreliability and therefore complicated to program at the application level. TCP and UDP use the same addressing scheme.

Subsequently, one may also ask, what is the advantage of UDP over TCP?

Applications that require constant data flow, bulk data and which require fastness than reliability uses UDP over TCP. udp provides better application level control over what data is sent. since the data is packaged in a udp segment and immediately passed over to the network layer

Furthermore, why TCP is more reliable than UDP? TCP is better than UDP because of following reasons: TCP is Reliable as it provides reliability of delivery of packets to the receiver while UDP is Non-reliable and does not give information about the packets. TCP provides flow control and error control characteristics while UDP doesn't provide it.

Also, what is the main difference between TCP and UDP?

TCP is a connection-oriented protocol and UDP is a connection-less protocol. TCP establishes a connection between a sender and receiver before data can be sent. UDP does not establish a connection before sending data.

What uses UDP protocol?

Numerous key Internet applications use UDP, including: the Domain Name System (DNS), where queries must be fast and only consist of a single request followed by a single reply packet, the Simple Network Management Protocol (SNMP), the Routing Information Protocol (RIP) and the Dynamic Host Configuration Protocol (DHCP)

Related Question Answers

Which is faster TCP or UDP?

UDP is faster than TCP, and the simple reason is because its non-existent acknowledge packet (ACK) that permits a continuous packet stream, instead of TCP that acknowledges a set of packets, calculated by using the TCP window size and round-trip time (RTT). People say that the major thing TCP gives you is reliability.

What is TCP or UDP?

They are TCP or Transmission Control Protocol and UDP or User Datagram Protocol. TCP is connection oriented – once a connection is established, data can be sent bidirectional. UDP is a simpler, connectionless Internet protocol. Multiple messages are sent as packets in chunks using UDP.

Why would you use UDP?

The result is that UDP can: Achieve higher throughput than TCP as long as the network drop rate are within limits that the application can handle. Deliver packets faster than TCP with less delay. Setup connections faster as there are no initial handshake to setup the connection.

Why would an application use UDP instead of TCP?

Typically, use UDP in applications where speed is more critical than reliability. For example, it may be better to use UDP in an application sending data from a fast acquisition where it is acceptable to lose some data points. TCP is for high-reliability data transmissions. UDP is for low-overhead transmissions.

What is the purpose of ARP?

ARP - Address Resolution Protocol Short for Address Resolution Protocol, a network layer protocol used to convert an IP address into a physical address (called a DLC address), such as an Ethernet address. A host wishing to obtain a physical address broadcastsan ARP request onto the TCP/IP network.

Why is TCP used?

Basically, TCP is a transport layer protocol in the OSI layer and it is used to create a connection between remote computers by transporting and ensuring the delivery of messages over supporting networks and the Internet.

Is TCP built on UDP?

If you're asking if TCP can be implemented in UDP, the answer is no. Both TCP and UDP are built on top of the IP, but the TCP uses different packet structure and at the layer-2 it is not possible to mimic the TCP using UDP packets.

What is best TCP or UDP?

TCP is comparatively slower than UDP. UDP is faster, simpler and more efficient than TCP. Retransmission of lost packets is possible in TCP, but not in UDP. There is no retransmission of lost packets in User Datagram Protocol (UDP).

What is 3 way handshake?

A three-way handshake is a method used in a TCP/IP network to create a connection between a local host/client and server. It is a three-step method that requires both the client and server to exchange SYN and ACK (acknowledgment) packets before actual data communication begins.

What is difference between HTTP and TCP?

TCP is in charge of setting up a reliable connection between two machines and HTTP uses this connection to transfer data between the server and the client. HTTP is used for transferring data while TCP is in charge of setting up a connection which should be used by HTTP in the communication process.

What is meant by UDP protocol?

User Datagram Protocol (UDP) is part of the Internet Protocol suite used by programs running on different computers on a network. UDP is used to send short messages called datagrams but overall, it is an unreliable, connectionless protocol. UDP is officially defined in RFC 768 and was formulated by David P. Reed.

How do I find my UDP port?

How to find your port number on Windows
  1. Start your command prompt.
  2. Type ipconfig.
  3. Next type netstat -a for a list of your various port numbers.

What type of protocol is UDP?

User Datagram Protocol (UDP) is a Transport Layer protocol. UDP is a part of Internet Protocol suite, referred as UDP/IP suite. Unlike TCP, it is unreliable and connectionless protocol. So, there is no need to establish connection prior to data transfer.

What is protocol explain?

A protocol is a set of rules and guidelines for communicating data. Rules are defined for each step and process during communication between two or more computers. Networks have to follow these rules to successfully transmit data.

Where is TCP IP used?

TCP/IP, or the Transmission Control Protocol/Internet Protocol, is a suite of communication protocols used to interconnect network devices on the internet. TCP/IP can also be used as a communications protocol in a private computer network (an intranet or an extranet).

What is the difference between IPv4 and IPv6?

KEY DIFFERENCE IPv4 is 32-Bit IP address whereas IPv6 is a 128-Bit IP address. IPv4 is a numeric addressing method whereas IPv6 is an alphanumeric addressing method. IPv4 binary bits are separated by a dot(.)

Is TCP or UDP safer?

TCP isn't more secure than UDP, it is more “reliable” as it is stateful and requires acknowledgment of each segment. UDP is stateless and just sends segments without knowing of the client gets them or not.

Is TCP encrypted?

Client/server communications encryption over TCP/IP. By default, communication packets are not encrypted, which poses a potential security risk. You can secure communications between client applications and the database server over TCP/IP using simple encryption or transport-layer security.

Can UDP be encrypted?

You can also use the IKE/IPsec protocol and use a UDP encapsulation of the IPsec portion. Usually IPsec is available at the OS level. You can also use OpenVPN, which looks to be a hybrid of TLS for key exchange and a proprietary UDP-based packet encryption protocol.

Why is TCP IP insecure?

In layman's terms, the security problem arises because TCP/IP uses the address of a connected device to serve the dual purpose of identifying that device as well. This creates a network vulnerability that is very visible and spoofable to users of malicious intent all over the world.

Why TCP is called reliable protocol?

The reason that Transmission Control Protocol (TCP) is considered 'reliable' is that the protocol itself checks to see if everything that was transmitted was delivered at the receiving end (it may not have been due to packet loss).

Is TCP or UDP better for streaming?

The most frequently used are Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). This feature makes UDP more suitable for live video streaming. However, due to the fact that TCP is widely used for various activities on the web, UDP transport protocol might be blocked by some firewalls.

How many UDP ports are there?

You can have a total of 65,535 TCP Ports and another 65,535 UDP ports. When a program on your computer sends or receives data over the Internet it sends that data to an ip address and a specific port on the remote computer, and receives the data on a usually random port on its own computer.

What is TCP IP in networking?

TCP/IP stands for Transmission Control Protocol/Internet Protocol, which is a set of networking protocols that allows two or more computers to communicate. The Defense Data Network, part of the Department of Defense, developed TCP/IP, and it has been widely adopted as a networking standard.

Why UDP is not reliable?

1 Answer. UDP is inherently unreliable in the sense that: UDP packets may be lost, and. the UDP protocol provides no mechanism to tell if packets have been lost, or to resend them.