Joke Collection Website - Cold jokes - The difference between udp and tcp
The difference between udp and tcp
Many characteristics of TCP are related to the basic connection-oriented characteristics of TCP. Therefore, it is necessary to have a clearer understanding of TCP connection. Each TCP connection is uniquely determined by two endpoints at both ends of the communication. An endpoint is a socket (or socket).
Socket representation: write the port number after dotted decimal IP address. For example, if the IP address is 192.3.4.5 and the port number is 80, then the socket is (192.3.4.5: 80).
? The difference between TCP and UDP:
1, TCP is connection-based and UDP is connectionless.
2. Requirements for system resources: more TCP (TCP has 20-byte packets) and less UDP (UDP packets have only 8 bytes).
3.UDP program structure is relatively simple.
4.TCP is a byte stream mode and UDP is a data message mode.
5.TCP guarantees the correctness, security and reliability of data and the order of data, while UDP may lose packets, and UDP does not guarantee the order of data.
Refer to the above? Baidu encyclopedia -UDP protocol
- Previous article:Newly edited joke video
- Next article:China¡¯s holdings of U.S. Treasury bonds are equivalent to our country¡¯s GDP for several years!
- Related articles
- A hilarious joke
- Interesting sentences about eating
- Please find some funny jokes.
- Compared with Yun-peng Yue and Zhang Yunlei, why do you say there will be no more fires in Zhang Helun?
- I didn't expect anything, just smiled and waited. What kind of mentality is this?
- It is better to surpass others with practical actions than to be jealous of others.
- Humorous speeches of college students
- What are the confidence of straight men?
- Among the active players in NBA, which stars are more famous than strength?
- It's windy Lyrics of Dake Xiaoyi