当前位置:网站首页>QUIC or TCP
QUIC or TCP
2022-06-23 03:00:00 【Jing Teng】
QUIC Birth process
QUIC agreement , The full name is quick udp internet connection, By the first Google Design implementation , And in 2013 Released in , The purpose is to solve TCP Protocol in congestion control 、 Multiplexing and other scenarios , And applied to Google On multiple services .
2018 year 10 month ,IETF Formal will be based on QUIC Of http The protocol is named HTTP/3, bring QUIC It has the conditions for global popularity .
stay 2021 year 5 month IETF published RFC9000, Officially launched QUIC Standardized version specification . So far the future has come .
gQUIC and iQUIC
from Google Originally designed and released QUIC, Generally known as gQUIC, Later by IETF released QUIC, It's called iQUIC. Although both names are QUIC But the underlying implementation is quite different .iQUIC Compared with gQuic The protocol is further optimized and improved , According to the Google To release information to the public by oneself becomes ,iQUIC be applied to Google Search and YouTube There are better effects on playing .
At present, it is commonly used gQUIC Version has Q39、Q43、Q46、Q50;
More commonly used iQUIC Version has h3-27、h3-29 and h3 v1.
QUIC Problem solved
1. Rapid connection establishment
Support 0RTT Quickly build a company , avoid TCP and TLS There must be at least two RTT Connection delay caused by handshake , Accelerate the establishment of the company , Reduce time .
For live 、 Short videos and other scenes that attach great importance to the first screen experience , The first frame time can be greatly optimized , Enhance user experience .
2. TCP The problem of head blocking
be based on TCP Of HTTP/2 There is still a head to head blocking problem , In case of packet loss, retransmission , It will block the subsequent message sending .QUIC No longer dependent on TCP Message serial number of , Use UDP Message communication , The loss of the queue header message does not affect the subsequent message transmission .
3. Connection migration problem
QUIC Really get rid of TCP Quintuples , It has incomparable advantages in the era of mobile Internet . For automatic connection wifi, Access elevator 4/5G The Internet and wifi Switch ,wifi When the network is weak, the operator will be automatically switched to optimize the experience , There is no need to shake hands again , You can use your unique connection ID to continue communication . It is very convenient for the continuous experience of the anchor or audience in the mobile scene .
In addition to solving TCP Beyond the inherent problems of ,QUIC In multiplexing 、 The protocol stack optimization and other scenarios have also been effectively optimized , It also has significant advantages for applications in weak network scenarios .
QUIC Experience
Many browsers and open source clients can support QUIC Protocol communication , Most of the latest browsers, such as chrome、firefox、Opera、Safari、 Use chrome Kernel QQ Browsers and so on support QUIC agreement , Open source clients such as quic_client,lsquic,nginx-quic All support QUIC agreement .
But of all the tools ,chrome It is undoubtedly the most convenient , Support for very sophisticated tools . The following is simple chrome Use QUIC How to experience .
Default chrome It's supporting QUIC Of , For the sake of insurance , It can be forced to open manually Chrome Of QUIC switch , stay Chrome Browser address bar input chrome://flags/#enable-quic, Set the switch to Enabled, And restart Chrome browser .
Use chrome Access support quic The website of the agreement , And open the developer tools , Check out the Protocol.
The new version of the Chrome At present, by default IETF QUIC, If you want to test Google QUIC agreement , You can use the command line tool to open Chrome And designate QUIC edition , for example : Get into Chrome The installation directory , perform chrome --enable-quic --quic-version=QUIC_VERSION_43.
--quic-version Later versions can specify gQUIC edition ( Such as QUIC_VERSION_43), You can also specify iQUIC edition ( Such as h3-27).
Tencent cloud live support QUIC Streaming and playing
From the official website of Tencent cloud live broadcast , You can see that Tencent cloud live broadcast has supported QUIC Streaming of , also gQUIC and iQUIC Can support , After being opened in the specified way, you can support , Better experience in weak network scenarios .
Reference documents :
[1] wikipedia quic: https://zh.wikipedia.org/wiki/QUIC#cite_note-:1-13
[2] RFC9000: https://datatracker.ietf.org/doc/html/rfc9000
[3] chromimu log: https://blog.chromium.org/2020/10/chrome-is-deploying-http3-and-ietf-quic.html
[4] Tencent cloud QUIC Protocol live broadcast : https://cloud.tencent.com/document/product/267/52522
边栏推荐
- Handlebars dynamic adjustment
- How PHP uses redis
- "Return index" of live broadcast E-commerce
- Online signature with canvas
- Related concepts of TTF, TOF, woff and woff2
- Easygbs adds websocket message push, which can quickly locate video playback faults
- SQLSERVER database restore stored procedure script
- 5 trends brought to us by customers
- Use of apicloud AVM framework list component list view and flex layout tutorial
- Learning records - things inherited by subclass parent of C #
猜你喜欢

Spark broadcast variables and accumulators (cases attached)

8. greed
What is sitelock? What is the function?

6. template for integer and real number dichotomy

Soft exam information system project manager_ Contract Law_ Copyright_ Implementation Regulations - Senior Information System Project Manager of soft exam 030

C language series - Section 4 - arrays

How to store, manage and view family photos in an orderly manner?

Vulnhub DC-5

Soft exam information system project manager_ Information system comprehensive testing and management - Senior Information System Project Manager of soft test 027

5. concept of ruler method
随机推荐
Function recursion and iteration
Aikuai multi dialing + load balancing overlay bandwidth
Transformation solution of digital intelligent supply chain platform for project management in engineering industry
Im web demo invite end hang up error avoidance
Win11 client remote ECS black screen
The metauniverse is just a cloak for future technological evolution
The difference between script in head and body
2022-01-27: heater. Winter has come. Your task is to design a
Reading redis source code (VI) multi threading of redis 6.0
Call rest port to implement nailing notification
Direct collection - super easy to use domestic color matching website
Use Sakura FRP intranet penetration service to build your own website / game server
The performance of the new Tokio scheduler is improved by 10 times
Use micro build to realize search function
Chaoscraft: join your girlfriend in Hackathon show -- Interview with the skate team
Soft exam information system project manager_ Information system comprehensive testing and management - Senior Information System Project Manager of soft test 027
Weekly Postgres world news 2022w04
Construction and exploration of vivo database and storage platform
Golang string comparison
How to batch make decreasing serial number barcode