TCP/IP stands for Transmission Control Protocol and Internet Protocol. In TCP/IP, IP deal with the packets only while TCP establishes a connection between 2 hosts and responsible for data transfer.
Difference Between TCP and UDP:
TCP and UDP work on Transport Layer (Layer-4). Both transmitting data from one host to another host-
|Stand For||Transmission Control Protocol||User Datagram Protocol|
|Connection||Connection-Oriented Protocol||Connection-Less Protocol|
|Reliability and Acknowledgement||More Reliable and ACK with 3 way-handshake||Unreliable and No ACK|
|Data Transfer||Slower than UDP||UDP is faster because there is no error checking|
|Header Size||20 Bytes||8 Bytes|
|Handshake||SYN, SYN-Ack, ACK||No Handshake|
|Use by protocols||Http, Https, FTP, telnet,||DNS, DHCP, TFTP, SNMP, RIP, VoIP|
Connection Oriented– This is giving guarantee for error free and sequencing and flow.
Connection Less– This is not giving error-free data guarantee.