Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Why UDP sometimes has an advantage over TCP

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about why UDP sometimes has more advantages than TCP. Xiaobian thinks it is quite practical, so share it with everyone to learn. I hope you can gain something after reading this article. Let's not say much. Let's take a look at it together with Xiaobian.

With the rapid development of network technology, network speed is no longer the bottleneck of transmission, UDP protocol with its simple, fast transmission advantages, in more and more scenarios to replace TCP.

1. Network speed improvement provides reliable network guarantee for UDP stability

Akamai (NASDAQ: AKAM), a CDN service provider, reported that in the seven years from 2008 to 2015, the average network speed in each country increased from 1.5Mbps to 5.1Mbps, and the speed increased nearly fourfold. The network environment becomes better, and the delay and stability of network transmission are also improved. The packet loss rate of UDP is lower than 5%. If the application layer retransmission is used again, the reliability of transmission can be fully guaranteed.

2. Comparison test results UDP performance is better than TCP

In order to speed up browsing, Google proposed SPDY protocol based on TCP and HTTP/2. Google experimented with UDP-based QUIC protocol on Chrome, reducing transmission rates to less than 100 ms.

Google's QUIC connection speed can be increased by 75%.

Google Search improved page load performance by 3% after adopting QUIC.

YouTube reduced rebuffering by 30% after adopting QUIC.

3. TCP design is too redundant, and it is difficult to further improve speed.

TCP uses complex congestion control algorithms, complicated handshake procedures and retransmission policies to ensure the reliability of network communications. Because TCP is built into the system protocol stack, it is extremely difficult to improve it.

4. UDP protocol replaces TCP in more and more scenarios with its advantages of simplicity and fast transmission.

4.1 web browsing

There are three advantages to using UDP:

It can simplify the handshake process and reduce the round-trip times of network communication.

TLS encryption and decryption process can be optimized;

Send and receive fast, no congestion.

4.2 streaming media

With TCP, once a packet loss occurs, TCP will buffer subsequent packets, wait for the previous packet to be retransmitted and received before continuing to send, and the delay will increase. UDP-based protocols such as WebRTC are excellent choices.

In 2010, Google acquired WebRTC (Web Real-Time Communication) technology through the acquisition of Global IP Solutions, which is used to improve the speed of web video.

https://www.admin5.com/article/20190826/922158.shtml

https://article.pchome.net/content-2099237.html

http://www.51cto.com/it/news/2019/0826/13790.html

4.3 real-time gaming

In the case of strict real-time requirements, it adopts customized reliable UDP protocols, such as Enet, RakNet (users have sony online game, minecraft), etc., and defines retransmission strategies to minimize the delay caused by packet loss and minimize the impact of network problems on gameplay.

UDP is used in classic games such as FPS games Quake, CS, and the famous game engine Unity3D is also RakNet.

4.4 Internet of Things

In 2014, Google's Nest established Thread Group, launched the Internet of Things Hub protocol Thread, and improved Internet of Things communication.

There are three key points to UDP adoption:

Network bandwidth requirements are small, but real-time requirements are high;

Most applications do not require maintenance connections;

Low power consumption is required;

Nearly 50% of the world's population now uses the Internet, people are constantly seeking faster and better service, everything is changing, and UDP will take over TCP's dominance in more and more areas.

The above is why UDP sometimes has more advantages than TCP. Xiaobian believes that some knowledge points may be seen or used in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report