Take you 5 minutes to understand http3

u teeurf8z 2020-11-08 13:52:18
minutes understand http3 http


You Lian HTTP2 I still don't understand , Someone started talking about HTTP3 了 , It's so hot . but HTTP3 There's also a reason to be concerned : It's fast .

1. Long ago

Before talking about the future , Let's talk about reality first .

You know HTTP Do you ? This is defined in 1991 The agreement was made to manage Web Of . Its full name is Hypertext Transfer Protocol , So you can get resources from the web , Web data from Web The server transfers it to your browser . It's based on lower level protocols ——TCP, Here's the point —— And it's stateless . This means that each request is completely independent . Each of the GIF Pictures are all independent on the Internet , This is for these GIF The picture itself is a good thing . But for us , Such a system is a bit fragmented .

The problem is that each request only looks for one file at a time . Create an expensive one each time TCP Connect . Imagine , If you have 10,000 A little trick , What a heavy burden it would be .

I know a lot of people like the pictures I made in my last article , So in order to better explain the protocol mechanism of the Internet , Here I'll make another picture .

 Take you 5 Minutes to understand HTTP3

Although browsers can make six different requests at the same time , however HTTP Still very slow , And it takes a lot of TCP Connect . in addition , We developers don't usually care about this . We like to stuff pages with all kinds of rubbish . For example, huge jQuery library , contain 300 A useless one CSS Style sheets , The end is a transparent 8 Trillion PNG chart .

When Google found out that we were dumping rubbish all over the Internet , And they started a project called SPDY Something. . What is the purpose ? Speed up the Internet, of course .

SPDY It's a norm , It is recommended to continue to use HTTP, But change some rules . By compressing the header 、 Prioritizing and multiplexing requests , It will put all of TCP The request and the connection become separate !

say concretely , When you read HTML when , The browser will see everything you want to ask in the page . then , It can get everything at once , In this way, you can avoid getting one file at a time .

HTTP2 The first draft of is based on SPDY.HTTP2 Soon it was widely adopted , And then everything on the Internet got much faster . today , On the Internet 42.7% Content usage HTTP2.

 Take you 5 Minutes to understand HTTP3

2. About HTTP3

HTTP2 In order to HTTP Based on and changing some rules of the product .HTTP3 So it is with . let me put it another way , After explaining the status quo , I can easily explain what the future looks like .

Google is a geek organization , They will never stop .SPDY Evolved into HTTP2 after , They think it's still not fast enough . therefore , They began to talk about QUIC This project . This is the second project that Google has developed and will be HTTP The formal upgrade technology of the agreement . that , What's special about this Agreement ?

HTTP3 The main improvement is in the transport layer . The transport layer won't have the heavy stuff I mentioned earlier TCP Connected to . Now? , Everything will go UDP.

By the way ,QUIC It means “ Fast UDP Internet Connect ”. This change in the protocol will significantly speed up connection establishment and data transfer . However , although UDP It must be faster 、 It's simpler , But it doesn't have TCP Reliability and error handling capabilities of .

TCP You have to go back and forth many times , To make connections in a square and stable way .UDP Don't worry so much , And it does run fast , The cost is the risk of stability degradation and packet loss . however ,UDP Can greatly reduce the delay in the request . The latency of repeated connections to the same server is almost zero , Because there's no need to go back and forth to establish a connection .

 Take you 5 Minutes to understand HTTP3

HTTP3 yes HTTP2 Reuse and compression of , The agreement is from TCP Change to UDP. then , Those people at Google have added layers they've made to the agreement , To ensure stability 、 Packet receiving sequence and security .

therefore ,HTTP3 In maintaining QUIC Use stability at the same time UDP To achieve high speed , At the same time, it won't sacrifice TLS The security of . Yes , stay QUIC in TLS1.3, You can use it to launch elegant SSL. The underlying mechanism of these layers is as follows :

 Take you 5 Minutes to understand HTTP3

2018 year ,QUIC Evolved into HTTP3. Internet Engineering Task Force (Internet Engineerring Task Force) The group of people who made the internet protocol agreed to the proposal . That's good news , Because for us impatient people , The Internet is never fast enough .

3. Conclusion

HTTP3 Represents a glamorous future , its HTTP The underlying potential has been brought to the best of Google's geeks . At the time of writing , Only 4.6% Of the Internet content in use HTTP3, But that number is likely to grow a lot in the next few years . This article only talks about the knowledge in this respect , But if you want to know more , There are many articles on the Internet for your reference .

Link to the original text :http://suo.im/5yhSj1

版权声明
本文为[u teeurf8z]所创,转载请带上原文链接,感谢

  1. [front end -- JavaScript] knowledge point (IV) -- memory leakage in the project (I)
  2. This mechanism in JS
  3. Vue 3.0 source code learning 1 --- rendering process of components
  4. Learning the realization of canvas and simple drawing
  5. gin里获取http请求过来的参数
  6. vue3的新特性
  7. Get the parameters from HTTP request in gin
  8. New features of vue3
  9. vue-cli 引入腾讯地图(最新 api,rocketmq原理面试
  10. Vue 学习笔记(3,免费Java高级工程师学习资源
  11. Vue 学习笔记(2,Java编程视频教程
  12. Vue cli introduces Tencent maps (the latest API, rocketmq)
  13. Vue learning notes (3, free Java senior engineer learning resources)
  14. Vue learning notes (2, Java programming video tutorial)
  15. 【Vue】—props属性
  16. 【Vue】—创建组件
  17. [Vue] - props attribute
  18. [Vue] - create component
  19. 浅谈vue响应式原理及发布订阅模式和观察者模式
  20. On Vue responsive principle, publish subscribe mode and observer mode
  21. 浅谈vue响应式原理及发布订阅模式和观察者模式
  22. On Vue responsive principle, publish subscribe mode and observer mode
  23. Xiaobai can understand it. It only takes 4 steps to solve the problem of Vue keep alive cache component
  24. Publish, subscribe and observer of design patterns
  25. Summary of common content added in ES6 + (II)
  26. No.8 Vue element admin learning (III) vuex learning and login method analysis
  27. Write a mini webpack project construction tool
  28. Shopping cart (front-end static page preparation)
  29. Introduction to the fluent platform
  30. Webpack5 cache
  31. The difference between drop-down box select option and datalist
  32. CSS review (III)
  33. Node.js学习笔记【七】
  34. Node.js learning notes [VII]
  35. Vue Router根据后台数据加载不同的组件(思考->实现->不止于实现)
  36. Vue router loads different components according to background data (thinking - & gt; Implementation - & gt; (more than implementation)
  37. 【JQuery框架,Java编程教程视频下载
  38. [jQuery framework, Java programming tutorial video download
  39. Vue Router根据后台数据加载不同的组件(思考->实现->不止于实现)
  40. Vue router loads different components according to background data (thinking - & gt; Implementation - & gt; (more than implementation)
  41. 【Vue,阿里P8大佬亲自教你
  42. 【Vue基础知识总结 5,字节跳动算法工程师面试经验
  43. [Vue, Ali P8 teaches you personally
  44. [Vue basic knowledge summary 5. Interview experience of byte beating Algorithm Engineer
  45. 【问题记录】- 谷歌浏览器 Html生成PDF
  46. [problem record] - PDF generated by Google browser HTML
  47. 【问题记录】- 谷歌浏览器 Html生成PDF
  48. [problem record] - PDF generated by Google browser HTML
  49. 【JavaScript】查漏补缺 —数组中reduce()方法
  50. [JavaScript] leak checking and defect filling - reduce() method in array
  51. 【重识 HTML (3),350道Java面试真题分享
  52. 【重识 HTML (2),Java并发编程必会的多线程你竟然还不会
  53. 【重识 HTML (1),二本Java小菜鸟4面字节跳动被秒成渣渣
  54. [re recognize HTML (3) and share 350 real Java interview questions
  55. [re recognize HTML (2). Multithreading is a must for Java Concurrent Programming. How dare you not
  56. [re recognize HTML (1), two Java rookies' 4-sided bytes beat and become slag in seconds
  57. 【重识 HTML ,nginx面试题阿里
  58. 【重识 HTML (4),ELK原来这么简单
  59. [re recognize HTML, nginx interview questions]
  60. [re recognize HTML (4). Elk is so simple