TCP vs UDP
Table of Contents
differences between TCP and UDP
TCP | UDP | |
---|---|---|
connection | connection-oriented | connectionless |
reliability | yes | no |
speed | slower | faster |
header size | 20 bytes | 8 bytes |
ordering | rearrange packets in the order specified | no order |
streaming of data | byte stream, buffered | entire message, sent once |
used by other protocols | HTTP, HTTPS, FTP, SMTP, Telnet | DNS, DHCP, TFTP, SNMP, RIP |
occasion | require high reliability, large amount of data | need fast, efficient transmission, small amount of data |
Written on September 26, 2017