TCP and UDP are two different protocols which both can handle data communications between terminal through an Internet. In OSI model, both protocols are classified as Transport Layer Protocols.
TCP (Transmission Control Protocol)
>> Connection-oriented protocol
>> Suitable for applications that require high reliability, and transmission time is relatively less critical
>> Function as a message makes its way across the internet from one host to another host
>> Use by other protocols such as HTTP,HTTPs,FTP,SMTP,Telnet
>> Rearranges data packet in order specified
>> Speed slower than UDP
>> Reliability
>> Header size : 20bytes
>> TCP does error checking
>> Acknowledge segments
UDP (Universal Datagram Protocol)
>> Connectionless protocol
>> Used in message transport transfer
>> Suitable for application that need fast, efficient transmission
>> Use by other protocols such as DNS.DHCP,SNMP and etc
>> Has no inherent order as all packet are independent of each others
>> Speed UDP is fast because there no error-checking for packets
>> No reliability
>> UDP header size: 8 bytes
>> Do not need acknowledgement
No comments:
Post a Comment