TCP/IP:
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-
TCP | UDP | |
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 |
Error Checking | Yes | No |
Flow Control | Yes | No |
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.
Thanks a lot for the great guide. It was so easy to learn and implement. 🙂
LikeLiked by 1 person
is it safe to say udp is for streaming and tcp is for everything else?
LikeLiked by 1 person
It’s depends and tcp is a protocol which responsible for communication so you can say.
LikeLiked by 1 person
Well explained…thanks
LikeLiked by 1 person