- TCP is connection-oriented; UDP is connectionless;
- TCP provides reliable services: no errors, no loss, no duplication, and arrival in order;
UDP does its best to deliver, and does not guarantee reliable delivery; - TCP is byte-oriented; UDP is message-oriented;
- TCP can only support one-to-one; UDP supports one-to-one, one-to-many;
- The header of TCP is larger than 2 bytes; UDP is only 8 bytes
The difference between TCP and UDP on the front end
Guess you like
Origin blog.csdn.net/qq_43263320/article/details/113782807
Ranking