As a transport layer the most common used is TCP which stands for Transmission Control Protocol. TCP make sure that the data sent by an application at one end of the internet is delivered in the order to the application at the end of internet , basically organize the data to send more reliable some applications most of the application that are web-client or email-client used it because its reliability but when an application don’t need it go for the other option which is UDP
UDP stands for User Datagram Protocol and it is used when an application doesn’t need that much reliable delivery that’s why some refer to it as “Unreliable datagram protocol.

Difference Between TCP and UDP
TCP :
- Connection Oriented Protocol
- more organized and secure
- use the three way handShake to set a session
- Guarantee that all the data is received
UDP:
- Is Connectionless Oriented Protocol
- It doesn’t establish a session
- It doesn’t guarantee the delivery of data
- Runs as fire and forget
- Faster than TPC

An application has the choice of at least two different Transport Layer services: TCP and UDP. You are the ones who decides what kind of protocols you will use for it and what it most convenient fortunately we have more than one option to pick.