{"id":3355,"date":"2018-11-13T17:21:28","date_gmt":"2018-11-13T09:21:28","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=3355"},"modified":"2018-11-13T17:21:28","modified_gmt":"2018-11-13T09:21:28","slug":"%e4%bd%bf%e7%94%a8%e4%ba%86-30-%e5%b9%b4%e7%9a%84-http-%e8%a6%81%e6%8a%9b%e5%bc%83-tcp-%e4%bd%bf%e7%94%a8-udp-%e4%ba%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=3355","title":{"rendered":"\u4f7f\u7528\u4e86 30 \u5e74\u7684 HTTP \u8981\u629b\u5f03 TCP \u4f7f\u7528 UDP \u4e86\uff01"},"content":{"rendered":"<p>\n\tHTTP \u534f\u8bae\u53c8\u53eb\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\u3002\u81ea 1989 \u5e74\u5728\u6b27\u6d32\u6838\u5b50\u7814\u7a76\u7ec4\u7ec7\uff08CERN\uff09\u6240\u53d1\u8d77\u4ee5\u6765\uff0c\u5df2\u7ecf\u62e5\u6709\u4e86 30 \u5e74\u7684\u5386\u53f2\u3002\u5176\u4e2d\u5728&nbsp;1999\u5e746\u6708\u5b9a\u4e49\u4e86 HTTP \u534f\u8bae\u4e2d\u73b0\u4eca\u5e7f\u6cdb\u4f7f\u7528\u7684\u4e00\u4e2a\u7248\u672c HTTP 1.1\u3002\u4e4b\u540e\u518d\u4e5f\u6ca1\u6709\u4ec0\u4e48\u5927\u7684\u6539\u53d8\uff01\u76f4\u5230\u6700\u8fd1 HTTP 3.0 \u7684\u5236\u5b9a\uff0c\u624d\u4f20\u51fa HTTP \u5c06\u6709\u5927\u7684\u6539\u53d8\uff01\n<\/p>\n<p>\n\tHTTP \u534f\u8bae\u5728&nbsp;1.0\/1.1\/2 \u7248\u672c\u4e2d\u90fd\u4f7f\u7528 TCP \u6784\u5efa\u4f20\u8f93\u5c42\uff0c\u5176\u7279\u70b9\u6216\u8005\u8bf4\u4f18\u70b9\u5728\u4e8e\u53ef\u9760\u6027\u3001\u6709\u5e8f\u6027\u548c\u7ea0\u9519\u6027\u3002\u5373\u8fde\u63a5\u4e24\u7aef\u6536\u53d1\u4fe1\u606f\u662f\u4f9d\u5e8f\u4e14\u80fd\u591f\u68c0\u67e5\u9519\u8bef\uff0c\u5982\u679c\u6536\u65b9\u7684\u6570\u636e\u5305\u6709\u95ee\u9898\uff0c\u53ef\u4ee5\u518d\u6b21\u8bf7\u6c42\u53d1\u9001\u3002\n<\/p>\n<p>\n\t\u4f46\u662f\u57fa\u4e8e TCP \u7684 HTTP \u534f\u8bae\u603b\u662f\u88ab\u4eba\u4eec\u54ea\u91cc\u8ba8\u8bba\uff0c\u8bf4\u6027\u80fd\u5dee\u3001\u6548\u7387\u4f4e\u7b49\u3002\u4e8e\u662f\u57fa\u4e8e TCP \u7684 HTTP \u534f\u8bae\u88ab\u4eba\u4eec\u8ba8\u8bba\u4e86\u5f88\u4e45\uff0c\u751a\u81f3\u6709\u4eba\u5efa\u8bae Web \u5e94\u7528\u5e94\u8be5\u629b\u5f03 HTTP \u540c\u65f6\u501f\u9274 P2P \u534f\u8bae\u6765\u5b9e\u73b0\u3002\n<\/p>\n<p>\n\t\u8fd9\u4e9b\u8ba8\u8bba\u4e00\u76f4\u4f34\u968f\u7740 HTTP \u534f\u8bae\u7684\u53d1\u5c55\uff0c\u76f4\u5230\u8c37\u6b4c\u7684 QUIC \u534f\u8bae\u8bde\u751f\u3002\u5728\u4eca\u5e74\u7684 Google \u7684\u5f00\u53d1\u8005\u5927\u4f1a\u4e0a\uff0cJana Lyengar \u5411\u5927\u5bb6\u4ecb\u7ecd\u8bf4\uff0cQUIC \u534f\u8bae\u5df2\u7ecf\u5728 Internet \u4e0a\u5360\u636e\u4e867%\u5de6\u53f3\u7684\u6d41\u91cf\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"QUIC\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/quic.png\" style=\"width: 665px;height: 356px\" \/>\n<\/p>\n<p>\n\tQUIC(Quick UDP Internet Connection)\u662f\u4e13\u95e8\u4e3aHTTP\u4f20\u8f93\u5c42\u8bbe\u8ba1\u7684\uff0c\u7ecf\u8fc7\u4e86\u591a\u5e74\u5f00\u53d1\u4e4b\u540e\u5728 2014 \u5e74 Google \u5f00\u59cb\u90e8\u7f72\u3002\u5b83\u4e3b\u8981\u7528\u4e8e Chrome \u6d4f\u89c8\u5668\u6216\u662f\u5176\u4ed6 APP \u4e0e Google \u670d\u52a1\u5668\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\uff0c\u5e94\u7528\u4e4b\u540e YouTube \u4e0a\u7684\u91cd\u590d\u7f13\u51b2\u4e0b\u964d\u4e8615-18%\uff0cGoogle Search \u7684\u5ef6\u8fdf\u4e5f\u4e0b\u964d\u4e863.6-8%\u3002\u8003\u8651\u5230\u8fd9\u4e9b\u5e94\u7528\u573a\u666f\u5df2\u7ecf\u8fdb\u884c\u8fc7\u975e\u5e38\u591a\u7684\u4f18\u5316\uff0cQUIC \u7684\u6548\u679c\u5b9e\u5728\u8ba9\u4eba\u96be\u4ee5\u7f6e\u4fe1\u3002\n<\/p>\n<p>\n\t\u4e8e\u662f\u5728\u65b0\u4e00\u7248\u7684 HTTP \u4e2d\uff0c\u6709\u671b\u5f15\u5165\u8c37\u6b4c\u4e3b\u5bfc\u5f00\u53d1\u7684 QUIC \u534f\u8bae\uff08\u5feb\u901fUDP\u7f51\u7edc\u8fde\u63a5\uff09\u3002QUIC \u653e\u5f03\u4e86 TCP\uff0c\u800c\u4f7f\u7528\u4e86\u540c\u7ea7\u7684 UDP \u534f\u8bae\u505a\u4f20\u8f93\u5c42\u3002\n<\/p>\n<h2>\n\tQUIC \u76ee\u524d\u7684\u4f18\u52bf<br \/>\n<\/h2>\n<ol>\n<li>\n\t\t\u51cf\u5c11\u4e86 TCP \u4e09\u6b21\u63e1\u624b\u53ca TLS \u63e1\u624b\u65f6\u95f4\u3002\n\t<\/li>\n<li>\n\t\t\u6539\u8fdb\u7684\u62e5\u585e\u63a7\u5236\u3002\n\t<\/li>\n<li>\n\t\t\u907f\u514d\u961f\u5934\u963b\u585e\u7684\u591a\u8def\u590d\u7528\u3002\n\t<\/li>\n<li>\n\t\t\u8fde\u63a5\u8fc1\u79fb\u3002\n\t<\/li>\n<li>\n\t\t\u524d\u5411\u5197\u4f59\u7ea0\u9519\u3002\n\t<\/li>\n<\/ol>\n<h2>\n\tQUIC \u6838\u5fc3\u7279\u6027\u8fde\u63a5\u5efa\u7acb\u5ef6\u65f6\u4f4e<br \/>\n<\/h2>\n<p>\n\tQUIC \u76f8\u6bd4 HTTP2 \u6700\u5927\u7684\u6027\u80fd\u4f18\u52bf\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"HTTPS \u53ca QUIC \u5efa\u8fde\u8fc7\u7a0b\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/https-quic.png\" style=\"width: 694px;height: 322px\" \/>\n<\/p>\n<p>\n\tQUIC \u7531\u4e8e\u5efa\u7acb\u5728 UDP \u7684\u57fa\u7840\u4e0a\uff0c\u540c\u65f6\u53c8\u5b9e\u73b0\u4e86 0RTT \u7684\u5b89\u5168\u63e1\u624b\uff0c\u6240\u4ee5\u5728\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\uff0c\u53ea\u9700\u8981 0 \u4e2a RTT \u5c31\u80fd\u5b9e\u73b0\u6570\u636e\u53d1\u9001\uff0c\u5e76\u4e14 0RTT \u7684\u6210\u529f\u7387\u76f8\u6bd4 TLS \u7684 Sesison Ticket \u8981\u9ad8\u5f88\u591a\u3002\n<\/p>\n<p>\n\t\u76ee\u524d\u6839\u636e\u56fd\u5916\u6d88\u606f\uff0cHTTP \u7684\u5236\u5b9a\u5c0f\u7ec4 IETF \u6b63\u7740\u624b\u6784\u5efa HTTP over QUIC\uff0c\u5e76\u4e14\u6709\u671b\u6210\u4e3a HTTP\/3\u3002\n<\/p>\n<h2>\n\t\u53c2\u8003\u8d44\u6599<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t<a href=\"https:\/\/lwn.net\/Articles\/745590\/\" name=\"QUIC as a solution to protocol ossification\" target=\"_blank\" title=\"QUIC as a solution to protocol ossification\">QUIC as a solution to protocol ossification<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/en.wikipedia.org\/wiki\/QUIC\" name=\"QUIC\" target=\"_blank\" title=\"QUIC\">QUIC<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/daniel.haxx.se\/blog\/2018\/11\/11\/http-3\/\" name=\"HTTP\/3\" target=\"_blank\" title=\"HTTP\/3\">HTTP\/3<\/a>\n\t<\/li>\n<\/ul>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=3355\">\u4f7f\u7528\u4e86 30 \u5e74\u7684 HTTP \u8981\u629b\u5f03 TCP \u4f7f\u7528 UDP \u4e86\uff01<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>HTTP \u534f\u8bae\u53c8\u53eb\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\u3002\u81ea 1989 \u5e74\u5728\u6b27\u6d32\u6838\u5b50\u7814\u7a76\u7ec4\u7ec7\uff08CERN\uff09\u6240\u53d1\u8d77\u4ee5\u6765\uff0c\u5df2\u7ecf\u62e5\u6709\u4e86 30  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1749,1748,35,1059,1062],"class_list":["post-3355","post","type-post","status-publish","format-standard","hentry","category-yyzt","tag-http-3","tag-quic","tag-tcp","tag-tcpip"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3355"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3355\/revisions"}],"predecessor-version":[{"id":3356,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3355\/revisions\/3356"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}