The difference between TCP and UDP on the front end

  1. TCP is connection-oriented; UDP is connectionless;
  2. 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;
  3. TCP is byte-oriented; UDP is message-oriented;
  4. TCP can only support one-to-one; UDP supports one-to-one, one-to-many;
  5. The header of TCP is larger than 2 bytes; UDP is only 8 bytes

Guess you like

Origin blog.csdn.net/qq_43263320/article/details/113782807