Skip to main content

TCP / UDP

TCPUDP
Reliable data transferUnreliable data transfer
Flow control: sender won’t overwhelm receiverNo flow control
Congestion control: throttle sender when network is overloadedNo congestion control
Does not provide: timing, minimum throughput guarantee, securityDoes not provide: timing, throughput guarantee or security
Connection orientedDatagram oriented
Extensive error checking mechanismBasic error checksum
With ACK segmentNo ACK segment
Packets arrive in sequenceNo sequencing
Slower than UDPFaster than TCP
Retransmission of lost packetsNo retransmission
SYN, ACK, SYN-ACK handshakesNo handshakes
Used by HTTP, HTTPS, FRP, SMTPUsed by DNS, DHCP, VoIP
Byte streamMessage Stream